From cc601043060d2ad72a0c8289b75edafd690845bd Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Tue, 19 May 2026 10:44:29 +1000 Subject: [PATCH] chore(ui): deps + accessibility fixes --- .../dist/assets/DescribeInstancesCommand.js | 1 - .../dist/assets/QueryClientProvider.js | 1 - .../frontend/dist/assets/SignatureV4.js | 75 - .../spinifexui/frontend/dist/assets/_.js | 2 +- .../spinifexui/frontend/dist/assets/_auth.js | 2 +- .../frontend/dist/assets/_bucket.js | 2 +- .../spinifexui/frontend/dist/assets/_id.js | 2 +- .../spinifexui/frontend/dist/assets/_id10.js | 2 +- .../spinifexui/frontend/dist/assets/_id11.js | 2 +- .../spinifexui/frontend/dist/assets/_id12.js | 2 +- .../spinifexui/frontend/dist/assets/_id2.js | 2 +- .../spinifexui/frontend/dist/assets/_id3.js | 2 +- .../spinifexui/frontend/dist/assets/_id4.js | 2 +- .../spinifexui/frontend/dist/assets/_id5.js | 2 +- .../spinifexui/frontend/dist/assets/_id6.js | 2 +- .../spinifexui/frontend/dist/assets/_id7.js | 2 +- .../spinifexui/frontend/dist/assets/_id8.js | 2 +- .../spinifexui/frontend/dist/assets/_id9.js | 2 +- .../frontend/dist/assets/_policyArn.js | 2 +- .../frontend/dist/assets/_userName.js | 2 +- .../frontend/dist/assets/addEventListener.js | 1 - .../spinifexui/frontend/dist/assets/admin.js | 2 +- .../frontend/dist/assets/alert-dialog.js | 2 +- .../frontend/dist/assets/ami-details.js | 2 +- .../frontend/dist/assets/awsClient.js | 10 - .../frontend/dist/assets/back-link.js | 2 +- .../spinifexui/frontend/dist/assets/button.js | 1 - .../spinifexui/frontend/dist/assets/card.js | 2 +- .../spinifexui/frontend/dist/assets/check.js | 2 +- .../frontend/dist/assets/chevron-down.js | 2 +- .../frontend/dist/assets/chevron-right.js | 2 +- .../frontend/dist/assets/cli-command-panel.js | 4 +- .../frontend/dist/assets/collapsible.js | 2 +- .../frontend/dist/assets/compiler-runtime.js | 1 - .../spinifexui/frontend/dist/assets/copy.js | 2 +- .../frontend/dist/assets/create-bucket.js | 2 +- .../frontend/dist/assets/create-key-pair.js | 2 +- .../dist/assets/create-load-balancer.js | 4 +- .../dist/assets/create-placement-group.js | 2 +- .../frontend/dist/assets/create-policy.js | 2 +- .../dist/assets/create-security-group.js | 6 +- .../frontend/dist/assets/create-snapshot.js | 4 +- .../frontend/dist/assets/create-subnet.js | 8 +- .../dist/assets/create-target-group.js | 2 +- .../frontend/dist/assets/create-user.js | 2 +- .../frontend/dist/assets/create-volume.js | 2 +- .../frontend/dist/assets/create-vpc.js | 2 +- .../dist/assets/createBaseUIEventDetails.js | 1 - .../frontend/dist/assets/createLucideIcon.js | 1 - .../dist/assets/delete-confirmation-dialog.js | 2 +- .../frontend/dist/assets/describe-images.js | 2 +- .../dist/assets/describe-instances.js | 2 +- .../dist/assets/describe-key-pairs.js | 2 +- .../dist/assets/describe-load-balancers.js | 2 +- .../dist/assets/describe-placement-groups.js | 2 +- .../dist/assets/describe-security-groups.js | 2 +- .../dist/assets/describe-snapshots.js | 2 +- .../frontend/dist/assets/describe-subnets.js | 2 +- .../dist/assets/describe-target-groups.js | 2 +- .../frontend/dist/assets/describe-volumes.js | 2 +- .../frontend/dist/assets/describe-vpcs.js | 2 +- .../frontend/dist/assets/detail-row.js | 2 +- .../spinifexui/frontend/dist/assets/dist.js | 1 - .../frontend/dist/assets/download.js | 2 +- .../spinifexui/frontend/dist/assets/ec2.js | 2 +- .../spinifexui/frontend/dist/assets/ec22.js | 2 +- .../spinifexui/frontend/dist/assets/ec23.js | 1 - .../spinifexui/frontend/dist/assets/elbv2.js | 2 +- .../spinifexui/frontend/dist/assets/elbv22.js | 2 +- .../spinifexui/frontend/dist/assets/elbv23.js | 1 - .../frontend/dist/assets/error-banner.js | 2 +- .../frontend/dist/assets/event-streams.js | 2 +- .../spinifexui/frontend/dist/assets/field.js | 2 +- .../frontend/dist/assets/form-actions.js | 2 +- .../frontend/dist/assets/fromUtf8.browser.js | 1 - .../spinifexui/frontend/dist/assets/iam.js | 2 +- .../spinifexui/frontend/dist/assets/iam2.js | 2 +- .../spinifexui/frontend/dist/assets/iam3.js | 1 - .../frontend/dist/assets/import-key-pair.js | 2 +- .../spinifexui/frontend/dist/assets/index.css | 2 +- .../spinifexui/frontend/dist/assets/index.js | 90 +- .../dist/assets/lazyRouteComponent.js | 1 - .../spinifexui/frontend/dist/assets/link.js | 1 - .../frontend/dist/assets/list-card.js | 2 +- .../frontend/dist/assets/list-policies.js | 2 +- .../frontend/dist/assets/list-users.js | 2 +- .../spinifexui/frontend/dist/assets/login.js | 2 +- .../spinifexui/frontend/dist/assets/ls.js | 2 +- .../frontend/dist/assets/matchContext.js | 1 - .../spinifexui/frontend/dist/assets/nodes.js | 2 +- .../frontend/dist/assets/page-heading.js | 2 +- .../spinifexui/frontend/dist/assets/plus.js | 2 +- .../frontend/dist/assets/queryOptions.js | 1 - .../frontend/dist/assets/redirect.js | 1 - .../spinifexui/frontend/dist/assets/route.js | 2 +- .../spinifexui/frontend/dist/assets/route2.js | 2 +- .../frontend/dist/assets/run-instances.js | 2 +- .../spinifexui/frontend/dist/assets/s3.js | 4 +- .../spinifexui/frontend/dist/assets/s32.js | 1 - .../spinifexui/frontend/dist/assets/select.js | 2 +- .../frontend/dist/assets/separator.js | 1 - .../frontend/dist/assets/service-metrics.js | 2 +- .../frontend/dist/assets/state-badge.js | 2 +- .../spinifexui/frontend/dist/assets/tabs.js | 2 +- .../frontend/dist/assets/target-group-form.js | 2 +- .../frontend/dist/assets/textarea.js | 2 +- .../frontend/dist/assets/toUtf8.browser.js | 1 - .../frontend/dist/assets/trash-2.js | 2 +- .../frontend/dist/assets/triangle-alert.js | 2 +- .../frontend/dist/assets/upload-button.js | 2 +- .../dist/assets/use-copy-to-clipboard.js | 2 +- .../frontend/dist/assets/useBaseQuery.js | 2 +- .../frontend/dist/assets/useNavigate.js | 1 - .../dist/assets/useOpenInteractionType.js | 1 - .../frontend/dist/assets/useStore.js | 1 - .../spinifexui/frontend/dist/assets/zod.js | 2 +- .../spinifexui/frontend/dist/index.html | 25 - .../spinifexui/frontend/oxlint.config.ts | 1 + .../services/spinifexui/frontend/package.json | 32 +- .../spinifexui/frontend/pnpm-lock.yaml | 1828 +++++------------ .../components/elbv2/attributes-editor.tsx | 1 + .../src/components/elbv2/listeners-tab.tsx | 4 +- .../elbv2/register-targets-dialog.tsx | 1 + .../components/elbv2/target-group-form.tsx | 2 +- .../src/components/elbv2/targets-tab.tsx | 4 +- .../src/components/ui/input-group.tsx | 2 +- .../_auth/ec2/(instances)/run-instances.tsx | 8 +- .../-components/create-load-balancer-page.tsx | 6 + .../ec2/(volumes)/describe-volumes/$id.tsx | 1 + .../src/routes/_auth/ec2/(vpc)/create-vpc.tsx | 3 + .../ec2/-components/private-key-modal.tsx | 1 + .../frontend/src/test/elbv2-e2e.test.tsx | 18 +- 132 files changed, 744 insertions(+), 1589 deletions(-) delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/DescribeInstancesCommand.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/QueryClientProvider.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/SignatureV4.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/awsClient.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/button.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/createLucideIcon.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/dist.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/ec23.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/elbv23.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/iam3.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/link.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/matchContext.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/queryOptions.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/redirect.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/s32.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/separator.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useOpenInteractionType.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useStore.js diff --git a/spinifex/services/spinifexui/frontend/dist/assets/DescribeInstancesCommand.js b/spinifex/services/spinifexui/frontend/dist/assets/DescribeInstancesCommand.js deleted file mode 100644 index b2b04e1dd..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/DescribeInstancesCommand.js +++ /dev/null @@ -1 +0,0 @@ -import{Mt as e,in as t,rn as n,tn as r}from"./awsClient.js";var i=class extends n.classBuilder().ep(r).m(function(e,n,r,i){return[t(r,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(e).build(){};export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/QueryClientProvider.js b/spinifex/services/spinifexui/frontend/dist/assets/QueryClientProvider.js deleted file mode 100644 index 6dc57f674..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/QueryClientProvider.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";var r=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(){}},i=new class extends r{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},a={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},o=new class{#e=a;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function s(e){setTimeout(e,0)}var c=typeof window>`u`||`Deno`in globalThis;function l(){}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return typeof e==`number`&&e>=0&&e!==1/0}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function p(e,t){return typeof e==`function`?e(t):e}function m(e,t){return typeof e==`function`?e(t):e}function h(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==_(o,t.options))return!1}else if(!y(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function g(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(a))return!1}else if(!y(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function _(e,t){return(t?.queryKeyHashFn||v)(e)}function v(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function y(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>y(e[n],t[n])):!1}var b=Object.prototype.hasOwnProperty;function x(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=C(e)&&C(t);if(!r&&!(w(e)&&w(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{o.setTimeout(t,e)})}function D(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:x(e,t)}function O(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function k(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var A=Symbol();function j(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===A?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function M(e,t){return typeof e==`function`?e(...t):!!e}function N(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var P=(()=>{let e=()=>c;return{isServer(){return e()},setIsServer(t){e=t}}})();function F(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var I=s;function L(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=I,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var R=L(),z=new class extends r{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function B(e){return Math.min(1e3*2**e,3e4)}function V(e){return(e??`online`)===`online`?z.isOnline():!0}var H=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function U(e){let t=!1,n=0,r,a=F(),o=()=>a.status!==`pending`,s=t=>{if(!o()){let n=new H(t);p(n),e.onCancel?.(n)}},c=()=>{t=!0},l=()=>{t=!1},u=()=>i.isFocused()&&(e.networkMode===`always`||z.isOnline())&&e.canRun(),d=()=>V(e.networkMode)&&e.canRun(),f=e=>{o()||(r?.(),a.resolve(e))},p=e=>{o()||(r?.(),a.reject(e))},m=()=>new Promise(t=>{r=e=>{(o()||u())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),h=()=>{if(o())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(o())return;let i=e.retry??(P.isServer()?0:3),a=e.retryDelay??B,s=typeof a==`function`?a(n,r):a,c=i===!0||typeof i==`number`&&nu()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:l,canStart:d,start:()=>(d()?h():m().then(h),a)}}var W=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.gcTime)&&(this.#e=o.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(P.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(o.clearTimeout(this.#e),this.#e=void 0)}},G=e(n(),1),K=t(),q=G.createContext(void 0),J=e=>{let t=G.useContext(q);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Y=({client:e,children:t})=>(G.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,K.jsx)(q.Provider,{value:e,children:t}));export{o as A,D as C,M as D,S as E,r as M,A as O,y as S,p as T,_,V as a,h as b,R as c,N as d,O as f,v as g,u as h,H as i,i as j,f as k,F as l,j as m,J as n,U as o,k as p,W as r,z as s,Y as t,P as u,d as v,m as w,l as x,g as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/SignatureV4.js b/spinifex/services/spinifexui/frontend/dist/assets/SignatureV4.js deleted file mode 100644 index f98ed94a6..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/SignatureV4.js +++ /dev/null @@ -1,75 +0,0 @@ -import{t as e}from"./fromUtf8.browser.js";function t(e){var n,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(n=0;n{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),a=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),o=`-`,s=[],c=`arbitrary..`,l=e=>{let t=f(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return d(e);let n=e.split(o);return u(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=i[e],a=n[e];return t?a?r(a,t):t:a||s}return n[e]||s}}},u=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=u(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let s=t===0?e.join(o):e.slice(t).join(o),c=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?c+r:void 0})(),f=e=>{let{theme:t,classGroups:n}=e;return p(n,t)},p=(e,t)=>{let n=a();for(let r in e){let i=e[r];m(i,n,r,t)}return n},m=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){g(e,t,n);return}if(typeof e==`function`){ee(e,t,n,r);return}te(e,t,n,r)},g=(e,t,n)=>{let r=e===``?t:ne(t,e);r.classGroupId=n},ee=(e,t,n,r)=>{if(re(e)){m(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(i(n,e))},te=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(o),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,ie=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ae=`!`,oe=`:`,_=[],v=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),se=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return v(t,l,c,u)};if(t){let e=t+oe,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):v(_,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ce=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},le=e=>({cache:ie(e.cacheSize),parseClassName:se(e),sortModifiers:ce(e),...l(e)}),ue=/\s+/,de=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(ue),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),ee=d?g+ae:g,te=ee+h;if(o.indexOf(te)>-1)continue;o.push(te);let ne=i(h,m);for(let e=0;e0?` `+c:c)}return c},y=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=le(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=de(e,n);return i(e,a),a};return a=o,(...e)=>a(y(...e))},fe=[],S=e=>{let t=t=>t[e]||fe;return t.isThemeGetter=!0,t},pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,C=/^\((?:(\w[\w-]*):)?(.+)\)$/i,me=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,he=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ge=/\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$/,_e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>me.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),ve=e=>e.endsWith(`%`)&&D(e.slice(0,-1)),k=e=>he.test(e),ye=()=>!0,be=e=>ge.test(e)&&!_e.test(e),xe=()=>!1,A=e=>w.test(e),Se=e=>T.test(e),Ce=e=>!j(e)&&!N(e),we=e=>P(e,Be,xe),j=e=>pe.test(e),M=e=>P(e,Ve,be),Te=e=>P(e,He,D),Ee=e=>P(e,We,ye),De=e=>P(e,Ue,xe),Oe=e=>P(e,Re,xe),ke=e=>P(e,ze,Se),Ae=e=>P(e,Ge,A),N=e=>C.test(e),je=e=>F(e,Ve),Me=e=>F(e,Ue),Ne=e=>F(e,Re),Pe=e=>F(e,Be),Fe=e=>F(e,ze),Ie=e=>F(e,Ge,!0),Le=e=>F(e,We,!0),P=(e,t,n)=>{let r=pe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},F=(e,t,n=!1)=>{let r=C.exec(e);return r?r[1]?t(r[1]):n:!1},Re=e=>e===`position`||e===`percentage`,ze=e=>e===`image`||e===`url`,Be=e=>e===`length`||e===`size`||e===`bg-size`,Ve=e=>e===`length`,He=e=>e===`number`,Ue=e=>e===`family-name`,We=e=>e===`number`||e===`weight`,Ge=e=>e===`shadow`,Ke=x(()=>{let e=S(`color`),t=S(`font`),n=S(`text`),r=S(`font-weight`),i=S(`tracking`),a=S(`leading`),o=S(`breakpoint`),s=S(`container`),c=S(`spacing`),l=S(`radius`),u=S(`shadow`),d=S(`inset-shadow`),f=S(`text-shadow`),p=S(`drop-shadow`),m=S(`blur`),h=S(`perspective`),g=S(`aspect`),ee=S(`ease`),te=S(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],re=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ie=()=>[...re(),N,j],ae=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],oe=()=>[`auto`,`contain`,`none`],_=()=>[N,j,c],v=()=>[E,`full`,`auto`,..._()],se=()=>[O,`none`,`subgrid`,N,j],ce=()=>[`auto`,{span:[`full`,O,N,j]},O,N,j],le=()=>[O,`auto`,N,j],ue=()=>[`auto`,`min`,`max`,`fr`,N,j],de=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],y=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],b=()=>[`auto`,..._()],x=()=>[E,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,..._()],fe=()=>[E,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,..._()],pe=()=>[E,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,..._()],C=()=>[e,N,j],me=()=>[...re(),Ne,Oe,{position:[N,j]}],he=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ge=()=>[`auto`,`cover`,`contain`,Pe,we,{size:[N,j]}],_e=()=>[ve,je,M],w=()=>[``,`none`,`full`,l,N,j],T=()=>[``,D,je,M],be=()=>[`solid`,`dashed`,`dotted`,`double`],xe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],A=()=>[D,ve,Ne,Oe],Se=()=>[``,`none`,m,N,j],P=()=>[`none`,D,N,j],F=()=>[`none`,D,N,j],Re=()=>[D,N,j],ze=()=>[E,`full`,..._()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[k],breakpoint:[k],color:[ye],container:[k],"drop-shadow":[k],ease:[`in`,`out`,`in-out`],font:[Ce],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[k],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[k],shadow:[k],spacing:[`px`,D],text:[k],"text-shadow":[k],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,E,j,N,g]}],container:[`container`],columns:[{columns:[D,j,N,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ie()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{"inset-s":v(),start:v()}],end:[{"inset-e":v(),end:v()}],"inset-bs":[{"inset-bs":v()}],"inset-be":[{"inset-be":v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[O,`auto`,N,j]}],basis:[{basis:[E,`full`,`auto`,s,..._()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[D,E,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,D,N,j]}],shrink:[{shrink:[``,D,N,j]}],order:[{order:[O,`first`,`last`,`none`,N,j]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...de(),`normal`]}],"justify-items":[{"justify-items":[...y(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...y()]}],"align-content":[{content:[`normal`,...de()]}],"align-items":[{items:[...y(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...y(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...y(),`baseline`]}],"place-self":[{"place-self":[`auto`,...y()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:b()}],mx:[{mx:b()}],my:[{my:b()}],ms:[{ms:b()}],me:[{me:b()}],mbs:[{mbs:b()}],mbe:[{mbe:b()}],mt:[{mt:b()}],mr:[{mr:b()}],mb:[{mb:b()}],ml:[{ml:b()}],"space-x":[{"space-x":_()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":_()}],"space-y-reverse":[`space-y-reverse`],size:[{size:x()}],"inline-size":[{inline:[`auto`,...fe()]}],"min-inline-size":[{"min-inline":[`auto`,...fe()]}],"max-inline-size":[{"max-inline":[`none`,...fe()]}],"block-size":[{block:[`auto`,...pe()]}],"min-block-size":[{"min-block":[`auto`,...pe()]}],"max-block-size":[{"max-block":[`none`,...pe()]}],w:[{w:[s,`screen`,...x()]}],"min-w":[{"min-w":[s,`screen`,`none`,...x()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...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,je,M]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Le,Ee]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ve,j]}],"font-family":[{font:[Me,De,t]}],"font-features":[{"font-features":[j]}],"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,N,j]}],"line-clamp":[{"line-clamp":[D,`none`,N,Te]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":[`none`,N,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,N,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...be(),`wavy`]}],"text-decoration-thickness":[{decoration:[D,`from-font`,`auto`,N,M]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[D,`auto`,N,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:_()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,N,j]}],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`,N,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},O,N,j],radial:[``,N,j],conic:[O,N,j]},Fe,ke]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:_e()}],"gradient-via-pos":[{via:_e()}],"gradient-to-pos":[{to:_e()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-bs":[{"border-bs":T()}],"border-w-be":[{"border-be":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":T()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...be(),`hidden`,`none`]}],"divide-style":[{divide:[...be(),`hidden`,`none`]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...be(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[D,N,j]}],"outline-w":[{outline:[``,D,je,M]}],"outline-color":[{outline:C()}],shadow:[{shadow:[``,`none`,u,Ie,Ae]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ie,Ae]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:T()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[D,M]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":[`none`,f,Ie,Ae]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[D,N,j]}],"mix-blend":[{"mix-blend":[...xe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[N,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,N,j]}],filter:[{filter:[``,`none`,N,j]}],blur:[{blur:Se()}],brightness:[{brightness:[D,N,j]}],contrast:[{contrast:[D,N,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ie,Ae]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:[``,D,N,j]}],"hue-rotate":[{"hue-rotate":[D,N,j]}],invert:[{invert:[``,D,N,j]}],saturate:[{saturate:[D,N,j]}],sepia:[{sepia:[``,D,N,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,N,j]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[D,N,j]}],"backdrop-contrast":[{"backdrop-contrast":[D,N,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,D,N,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,N,j]}],"backdrop-invert":[{"backdrop-invert":[``,D,N,j]}],"backdrop-opacity":[{"backdrop-opacity":[D,N,j]}],"backdrop-saturate":[{"backdrop-saturate":[D,N,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,D,N,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,N,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[D,`initial`,N,j]}],ease:[{ease:[`linear`,`initial`,ee,N,j]}],delay:[{delay:[D,N,j]}],animate:[{animate:[`none`,te,N,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,N,j]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":[`scale-3d`],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[N,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":[`translate-none`],accent:[{accent:C()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:C()}],"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`,N,j]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,N,j]}],fill:[{fill:[`none`,...C()]}],"stroke-w":[{stroke:[D,je,M,Te]}],stroke:[{stroke:[`none`,...C()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function qe(...e){return Ke(n(e))}var Je=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Ye(e){return e?Je.format(new Date(e)):`Unknown`}var Xe=[`B`,`KB`,`MB`,`GB`,`TB`];function Ze(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${Xe[t]}`}function Qe(e){return e?.find(e=>e.Key===`Name`)?.Value}var $e=/\/$/;function et(e){return e.replace($e,``)}function tt(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function nt(e,t){return e.startsWith(t)?e:`${t}${e}`}function rt(e,t){return e.startsWith(t)?e.slice(t.length):e}var it;function I(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var at=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ot=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(it=globalThis).__zod_globalConfig??(it.__zod_globalConfig={});var st=globalThis.__zod_globalConfig;function L(e){return e&&Object.assign(st,e),st}function ct(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function lt(e,t){return typeof t==`bigint`?t.toString():t}function ut(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function dt(e){return e==null}function ft(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function pt(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function vt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var yt=ut(()=>{if(st.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function bt(e){if(vt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(vt(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function xt(e){return bt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var St=new Set([`string`,`number`,`symbol`]);function Ct(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function V(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function H(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function wt(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Tt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Et(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return V(e,B(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return z(this,`shape`,e),e},checks:[]}))}function Dt(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return V(e,B(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return z(this,`shape`,r),r},checks:[]}))}function Ot(e,t){if(!bt(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return V(e,B(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return z(this,`shape`,n),n}}))}function kt(e,t){if(!bt(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return V(e,B(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return z(this,`shape`,n),n}}))}function At(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return V(e,B(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return z(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function jt(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return V(t,B(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return z(this,`shape`,i),i},checks:[]}))}function Mt(e,t,n){return V(t,B(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return z(this,`shape`,i),i}}))}function Nt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function It(e){return typeof e==`string`?e:e?.message}function U(e,t,n){let r=e.message?e.message:It(e.inst?._zod.def?.error?.(e))??It(t?.error?.(e))??It(n.customError?.(e))??It(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Lt(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Rt(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var zt=(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,lt,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Bt=I(`$ZodError`,zt),Vt=I(`$ZodError`,zt,{Parent:Error});function Ht(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ut(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new at;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>U(e,a,L())));throw _t(t,i?.callee),t}return o.value},Gt=Wt(Vt),Kt=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>U(e,a,L())));throw _t(t,i?.callee),t}return o.value},qt=Kt(Vt),Jt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new at;return a.issues.length?{success:!1,error:new(e??Bt)(a.issues.map(e=>U(e,i,L())))}:{success:!0,data:a.value}},Yt=Jt(Vt),Xt=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>U(e,i,L())))}:{success:!0,data:a.value}},Zt=Xt(Vt),Qt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Wt(e)(t,n,i)},$t=e=>(t,n,r)=>Wt(e)(t,n,r),en=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Kt(e)(t,n,i)},tn=e=>async(t,n,r)=>Kt(e)(t,n,r),nn=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Jt(e)(t,n,i)},rn=e=>(t,n,r)=>Jt(e)(t,n,r),an=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Xt(e)(t,n,i)},on=e=>async(t,n,r)=>Xt(e)(t,n,r),sn=/^[cC][0-9a-z]{6,}$/,cn=/^[0-9a-z]+$/,ln=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,un=/^[0-9a-vA-V]{20}$/,dn=/^[A-Za-z0-9]{27}$/,fn=/^[a-zA-Z0-9_-]{21}$/,pn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,mn=/^([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})$/,hn=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_n=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function vn(){return new RegExp(_n,`u`)}var yn=/^(?:(?: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])$/,bn=/^(([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}|:))$/,xn=/^((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])$/,Sn=/^(([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])$/,Cn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wn=/^[A-Za-z0-9_-]*$/,Tn=/^https?$/,En=/^\+[1-9]\d{6,14}$/,Dn=`(?:(?:\\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])))`,On=RegExp(`^${Dn}$`);function kn(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function An(e){return RegExp(`^${kn(e)}$`)}function jn(e){let t=kn({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Dn}T(?:${r})$`)}var Mn=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Nn=/^-?\d+$/,Pn=/^-?\d+(?:\.\d+)?$/,Fn=/^(?:true|false)$/i,In=/^[^A-Z]*$/,Ln=/^[^a-z]*$/,W=I(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Rn={number:`number`,bigint:`bigint`,object:`date`},zn=I(`$ZodCheckLessThan`,(e,t)=>{W.init(e,t);let n=Rn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{W.init(e,t);let n=Rn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vn=I(`$ZodCheckMultipleOf`,(e,t)=>{W.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):pt(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})}}),Hn=I(`$ZodCheckNumberFormat`,(e,t)=>{W.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Tt[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Nn)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Un=I(`$ZodCheckMaxLength`,(e,t)=>{var n;W.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Lt(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wn=I(`$ZodCheckMinLength`,(e,t)=>{var n;W.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Lt(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Gn=I(`$ZodCheckLengthEquals`,(e,t)=>{var n;W.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!dt(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Lt(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Kn=I(`$ZodCheckStringFormat`,(e,t)=>{var n,r;W.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qn=I(`$ZodCheckRegex`,(e,t)=>{Kn.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})}}),Jn=I(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=In,Kn.init(e,t)}),Yn=I(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ln,Kn.init(e,t)}),Xn=I(`$ZodCheckIncludes`,(e,t)=>{W.init(e,t);let n=Ct(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Zn=I(`$ZodCheckStartsWith`,(e,t)=>{W.init(e,t);let n=RegExp(`^${Ct(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Qn=I(`$ZodCheckEndsWith`,(e,t)=>{W.init(e,t);let n=RegExp(`.*${Ct(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),$n=I(`$ZodCheckOverwrite`,(e,t)=>{W.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),er=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` -`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}},tr={major:4,minor:4,patch:3},G=I(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Nt(e),i;for(let a of t){if(a._zod.def.when){if(Pt(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new at;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Nt(e,t))});else{if(e.issues.length===t)continue;r||=Nt(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Nt(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new at;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new at;return o.then(e=>t(e,r,a))}return t(o,r,a)}}R(e,`~standard`,()=>({validate:t=>{try{let n=Yt(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Zt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),nr=I(`$ZodString`,(e,t)=>{G.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Mn(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}}),K=I(`$ZodStringFormat`,(e,t)=>{Kn.init(e,t),nr.init(e,t)}),rr=I(`$ZodGUID`,(e,t)=>{t.pattern??=mn,K.init(e,t)}),ir=I(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=hn(e)}else t.pattern??=hn();K.init(e,t)}),ar=I(`$ZodEmail`,(e,t)=>{t.pattern??=gn,K.init(e,t)}),or=I(`$ZodURL`,(e,t)=>{K.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Tn.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),sr=I(`$ZodEmoji`,(e,t)=>{t.pattern??=vn(),K.init(e,t)}),cr=I(`$ZodNanoID`,(e,t)=>{t.pattern??=fn,K.init(e,t)}),lr=I(`$ZodCUID`,(e,t)=>{t.pattern??=sn,K.init(e,t)}),ur=I(`$ZodCUID2`,(e,t)=>{t.pattern??=cn,K.init(e,t)}),dr=I(`$ZodULID`,(e,t)=>{t.pattern??=ln,K.init(e,t)}),fr=I(`$ZodXID`,(e,t)=>{t.pattern??=un,K.init(e,t)}),pr=I(`$ZodKSUID`,(e,t)=>{t.pattern??=dn,K.init(e,t)}),mr=I(`$ZodISODateTime`,(e,t)=>{t.pattern??=jn(t),K.init(e,t)}),hr=I(`$ZodISODate`,(e,t)=>{t.pattern??=On,K.init(e,t)}),gr=I(`$ZodISOTime`,(e,t)=>{t.pattern??=An(t),K.init(e,t)}),_r=I(`$ZodISODuration`,(e,t)=>{t.pattern??=pn,K.init(e,t)}),vr=I(`$ZodIPv4`,(e,t)=>{t.pattern??=yn,K.init(e,t),e._zod.bag.format=`ipv4`}),yr=I(`$ZodIPv6`,(e,t)=>{t.pattern??=bn,K.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})}}}),br=I(`$ZodCIDRv4`,(e,t)=>{t.pattern??=xn,K.init(e,t)}),xr=I(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Sn,K.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Sr(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Cr=I(`$ZodBase64`,(e,t)=>{t.pattern??=Cn,K.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Sr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function wr(e){if(!wn.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Sr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Tr=I(`$ZodBase64URL`,(e,t)=>{t.pattern??=wn,K.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{wr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Er=I(`$ZodE164`,(e,t)=>{t.pattern??=En,K.init(e,t)});function Dr(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Or=I(`$ZodJWT`,(e,t)=>{K.init(e,t),e._zod.check=n=>{Dr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),kr=I(`$ZodNumber`,(e,t)=>{G.init(e,t),e._zod.pattern=e._zod.bag.pattern??Pn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ar=I(`$ZodNumberFormat`,(e,t)=>{Hn.init(e,t),kr.init(e,t)}),jr=I(`$ZodBoolean`,(e,t)=>{G.init(e,t),e._zod.pattern=Fn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Mr=I(`$ZodUnknown`,(e,t)=>{G.init(e,t),e._zod.parse=e=>e}),Nr=I(`$ZodNever`,(e,t)=>{G.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Pr(e,t,n){e.issues.length&&t.issues.push(...Ft(n,e.issues)),t.value[n]=e.value}var Fr=I(`$ZodArray`,(e,t)=>{G.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ePr(t,n,e))):Pr(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Ir(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ft(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Lr(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=wt(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Rr(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Ir(e,n,i,t,u,d))):Ir(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var zr=I(`$ZodObject`,(e,t)=>{if(G.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ut(()=>Lr(t));R(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=vt,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Ir(n,t,e,s,r,i))):Ir(a,t,e,s,r,i)}return i?Rr(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Br=I(`$ZodObjectJIT`,(e,t)=>{zr.init(e,t);let n=e._zod.parse,r=ut(()=>Lr(t)),i=e=>{let t=new er([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ht(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ht(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` - if (${n}.issues.length) { - if (${o} in input) { - payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${o}, ...iss.path] : [${o}] - }))); - } - } - - if (${n}.value === undefined) { - if (${o} in input) { - newResult[${o}] = undefined; - } - } else { - newResult[${o}] = ${n}.value; - } - - `):c?t.write(` - if (${n}.issues.length) { - payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${o}, ...iss.path] : [${o}] - }))); - } - - if (${n}.value === undefined) { - if (${o} in input) { - newResult[${o}] = undefined; - } - } else { - newResult[${o}] = ${n}.value; - } - - `):t.write(` - const ${n}_present = ${o} in input; - if (${n}.issues.length) { - payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${o}, ...iss.path] : [${o}] - }))); - } - if (!${n}_present && !${n}.issues.length) { - payload.issues.push({ - code: "invalid_type", - expected: "nonoptional", - input: undefined, - path: [${o}] - }); - } - - if (${n}_present) { - if (${n}.value === undefined) { - newResult[${o}] = undefined; - } else { - newResult[${o}] = ${n}.value; - } - } - - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=vt,s=!st.jitless,c=s&&yt.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Rr([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Vr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Nt(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>U(e,r,L())))}),t)}var Hr=I(`$ZodUnion`,(e,t)=>{G.init(e,t),R(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),R(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),R(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),R(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ft(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Vr(t,r,e,i)):Vr(o,r,e,i)}}),Ur=I(`$ZodIntersection`,(e,t)=>{G.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Gr(e,t,n)):Gr(e,i,a)}});function Wr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(bt(e)&&bt(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Wr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Nt(e))return e;let o=Wr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Kr=I(`$ZodRecord`,(e,t)=>{G.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!bt(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>U(e,r,L())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Ft(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Ft(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Pn.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>U(e,r,L())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Ft(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Ft(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),qr=I(`$ZodEnum`,(e,t)=>{G.init(e,t);let n=ct(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>St.has(typeof e)).map(e=>typeof e==`string`?Ct(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Jr=I(`$ZodTransform`,(e,t)=>{G.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ot(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new at;return n.value=i,n.fallback=!0,n}});function Yr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Xr=I(`$ZodOptional`,(e,t)=>{G.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,R(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),R(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ft(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Yr(e,r)):Yr(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Zr=I(`$ZodExactOptional`,(e,t)=>{Xr.init(e,t),R(e._zod,`values`,()=>t.innerType._zod.values),R(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Qr=I(`$ZodNullable`,(e,t)=>{G.init(e,t),R(e._zod,`optin`,()=>t.innerType._zod.optin),R(e._zod,`optout`,()=>t.innerType._zod.optout),R(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ft(e.source)}|null)$`):void 0}),R(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),$r=I(`$ZodDefault`,(e,t)=>{G.init(e,t),e._zod.optin=`optional`,R(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ei(e,t)):ei(r,t)}});function ei(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ti=I(`$ZodPrefault`,(e,t)=>{G.init(e,t),e._zod.optin=`optional`,R(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ni=I(`$ZodNonOptional`,(e,t)=>{G.init(e,t),R(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ri(t,e)):ri(i,e)}});function ri(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var ii=I(`$ZodCatch`,(e,t)=>{G.init(e,t),e._zod.optin=`optional`,R(e._zod,`optout`,()=>t.innerType._zod.optout),R(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>U(e,n,L()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>U(e,n,L()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ai=I(`$ZodPipe`,(e,t)=>{G.init(e,t),R(e._zod,`values`,()=>t.in._zod.values),R(e._zod,`optin`,()=>t.in._zod.optin),R(e._zod,`optout`,()=>t.out._zod.optout),R(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>oi(e,t.in,n)):oi(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>oi(e,t.out,n)):oi(r,t.out,n)}});function oi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var si=I(`$ZodReadonly`,(e,t)=>{G.init(e,t),R(e._zod,`propValues`,()=>t.innerType._zod.propValues),R(e._zod,`values`,()=>t.innerType._zod.values),R(e._zod,`optin`,()=>t.innerType?._zod?.optin),R(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ci):ci(r)}});function ci(e){return e.value=Object.freeze(e.value),e}var li=I(`$ZodCustom`,(e,t)=>{W.init(e,t),G.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ui(t,n,r,e));ui(i,n,r,e)}});function ui(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Rt(e))}}var di,fi=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function pi(){return new fi}(di=globalThis).__zod_globalRegistry??(di.__zod_globalRegistry=pi());var mi=globalThis.__zod_globalRegistry;function hi(e,t){return new e({type:`string`,...H(t)})}function gi(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...H(t)})}function _i(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...H(t)})}function vi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...H(t)})}function yi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...H(t)})}function bi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...H(t)})}function xi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...H(t)})}function Si(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...H(t)})}function Ci(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...H(t)})}function wi(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...H(t)})}function Ti(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...H(t)})}function Ei(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...H(t)})}function Di(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...H(t)})}function Oi(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...H(t)})}function ki(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...H(t)})}function Ai(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...H(t)})}function ji(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...H(t)})}function Mi(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...H(t)})}function Ni(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...H(t)})}function Pi(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...H(t)})}function Fi(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...H(t)})}function Ii(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...H(t)})}function Li(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...H(t)})}function Ri(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...H(t)})}function zi(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...H(t)})}function Bi(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...H(t)})}function Vi(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...H(t)})}function Hi(e,t){return new e({type:`number`,checks:[],...H(t)})}function Ui(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...H(t)})}function Wi(e,t){return new e({type:`boolean`,...H(t)})}function Gi(e){return new e({type:`unknown`})}function Ki(e,t){return new e({type:`never`,...H(t)})}function qi(e,t){return new zn({check:`less_than`,...H(t),value:e,inclusive:!1})}function Ji(e,t){return new zn({check:`less_than`,...H(t),value:e,inclusive:!0})}function Yi(e,t){return new Bn({check:`greater_than`,...H(t),value:e,inclusive:!1})}function Xi(e,t){return new Bn({check:`greater_than`,...H(t),value:e,inclusive:!0})}function Zi(e,t){return new Vn({check:`multiple_of`,...H(t),value:e})}function Qi(e,t){return new Un({check:`max_length`,...H(t),maximum:e})}function $i(e,t){return new Wn({check:`min_length`,...H(t),minimum:e})}function ea(e,t){return new Gn({check:`length_equals`,...H(t),length:e})}function ta(e,t){return new qn({check:`string_format`,format:`regex`,...H(t),pattern:e})}function na(e){return new Jn({check:`string_format`,format:`lowercase`,...H(e)})}function ra(e){return new Yn({check:`string_format`,format:`uppercase`,...H(e)})}function ia(e,t){return new Xn({check:`string_format`,format:`includes`,...H(t),includes:e})}function aa(e,t){return new Zn({check:`string_format`,format:`starts_with`,...H(t),prefix:e})}function oa(e,t){return new Qn({check:`string_format`,format:`ends_with`,...H(t),suffix:e})}function sa(e){return new $n({check:`overwrite`,tx:e})}function ca(e){return sa(t=>t.normalize(e))}function la(){return sa(e=>e.trim())}function ua(){return sa(e=>e.toLowerCase())}function da(){return sa(e=>e.toUpperCase())}function fa(){return sa(e=>gt(e))}function pa(e,t,n){return new e({type:`array`,element:t,...H(n)})}function ma(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...H(n)})}function ha(e,t){let n=ga(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Rt(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Rt(r))}},e(t.value,t)),t);return n}function ga(e,t){let n=new W({check:`custom`,...H(t)});return n._zod.check=e,n}function _a(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??mi,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 q(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,q(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&J(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function va(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ - -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function ya(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:xa(t,`input`,e.processors),output:xa(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function J(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return J(r.element,n);if(r.type===`set`)return J(r.valueType,n);if(r.type===`lazy`)return J(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 J(r.innerType,n);if(r.type===`intersection`)return J(r.left,n)||J(r.right,n);if(r.type===`record`||r.type===`map`)return J(r.keyType,n)||J(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:J(r.in,n)||J(r.out,n);if(r.type===`object`){for(let e in r.shape)if(J(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(J(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(J(e,n))return!0;return!!(r.rest&&J(r.rest,n))}return!1}var ba=(e,t={})=>n=>{let r=_a({...n,processors:t});return q(e,r),va(r,e),ya(r,e)},xa=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=_a({...i??{},target:a,io:t,processors:n});return q(e,o),va(o,e),ya(o,e)},Sa={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ca=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Sa[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},wa=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Ta=(e,t,n,r)=>{n.type=`boolean`},Ea=(e,t,n,r)=>{n.not={}},Da=(e,t,n,r)=>{let i=e._zod.def,a=ct(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Oa=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},ka=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Aa=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=q(a.element,t,{...r,path:[...r.path,`items`]})},ja=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=q(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=q(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Ma=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>q(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Na=(e,t,n,r)=>{let i=e._zod.def,a=q(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=q(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Pa=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=q(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=q(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=q(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Fa=(e,t,n,r)=>{let i=e._zod.def,a=q(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ia=(e,t,n,r)=>{let i=e._zod.def;q(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},La=(e,t,n,r)=>{let i=e._zod.def;q(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Ra=(e,t,n,r)=>{let i=e._zod.def;q(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},za=(e,t,n,r)=>{let i=e._zod.def;q(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Ba=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;q(o,t,r);let s=t.seen.get(e);s.ref=o},Va=(e,t,n,r)=>{let i=e._zod.def;q(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ha=(e,t,n,r)=>{let i=e._zod.def;q(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ua=I(`ZodISODateTime`,(e,t)=>{mr.init(e,t),Z.init(e,t)});function Wa(e){return Ri(Ua,e)}var Ga=I(`ZodISODate`,(e,t)=>{hr.init(e,t),Z.init(e,t)});function Ka(e){return zi(Ga,e)}var qa=I(`ZodISOTime`,(e,t)=>{gr.init(e,t),Z.init(e,t)});function Ja(e){return Bi(qa,e)}var Ya=I(`ZodISODuration`,(e,t)=>{_r.init(e,t),Z.init(e,t)});function Xa(e){return Vi(Ya,e)}var Y=I(`ZodError`,(e,t)=>{Bt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ut(e,t)},flatten:{value:t=>Ht(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,lt,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,lt,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Za=Wt(Y),Qa=Kt(Y),$a=Jt(Y),eo=Xt(Y),to=Qt(Y),no=$t(Y),ro=en(Y),io=tn(Y),ao=nn(Y),oo=rn(Y),so=an(Y),co=on(Y),lo=new WeakMap;function uo(e,t,n){let r=Object.getPrototypeOf(e),i=lo.get(r);if(i||(i=new Set,lo.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var X=I(`ZodType`,(e,t)=>(G.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:xa(e,`input`),output:xa(e,`output`)}}),e.toJSONSchema=ba(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Za(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>$a(e,t,n),e.parseAsync=async(t,n)=>Qa(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>eo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>to(e,t,n),e.decode=(t,n)=>no(e,t,n),e.encodeAsync=async(t,n)=>ro(e,t,n),e.decodeAsync=async(t,n)=>io(e,t,n),e.safeEncode=(t,n)=>ao(e,t,n),e.safeDecode=(t,n)=>oo(e,t,n),e.safeEncodeAsync=async(t,n)=>so(e,t,n),e.safeDecodeAsync=async(t,n)=>co(e,t,n),uo(e,`ZodType`,{check(...e){let t=this.def;return this.clone(B(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return V(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Cs(e,t))},superRefine(e,t){return this.check(ws(e,t))},overwrite(e){return this.check(sa(e))},optional(){return as(this)},exactOptional(){return ss(this)},nullable(){return ls(this)},nullish(){return as(ls(this))},nonoptional(e){return hs(this,e)},array(){return Go(this)},or(e){return Yo([this,e])},and(e){return Zo(this,e)},transform(e){return ys(this,rs(e))},default(e){return ds(this,e)},prefault(e){return ps(this,e)},catch(e){return _s(this,e)},pipe(e){return ys(this,e)},readonly(){return xs(this)},describe(e){let t=this.clone();return mi.add(t,{description:e}),t},meta(...e){if(e.length===0)return mi.get(this);let t=this.clone();return mi.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return mi.get(e)?.description},configurable:!0}),e)),fo=I(`_ZodString`,(e,t)=>{nr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ca(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,uo(e,`_ZodString`,{regex(...e){return this.check(ta(...e))},includes(...e){return this.check(ia(...e))},startsWith(...e){return this.check(aa(...e))},endsWith(...e){return this.check(oa(...e))},min(...e){return this.check($i(...e))},max(...e){return this.check(Qi(...e))},length(...e){return this.check(ea(...e))},nonempty(...e){return this.check($i(1,...e))},lowercase(e){return this.check(na(e))},uppercase(e){return this.check(ra(e))},trim(){return this.check(la())},normalize(...e){return this.check(ca(...e))},toLowerCase(){return this.check(ua())},toUpperCase(){return this.check(da())},slugify(){return this.check(fa())}})}),po=I(`ZodString`,(e,t)=>{nr.init(e,t),fo.init(e,t),e.email=t=>e.check(gi(ho,t)),e.url=t=>e.check(Si(vo,t)),e.jwt=t=>e.check(Li(No,t)),e.emoji=t=>e.check(Ci(yo,t)),e.guid=t=>e.check(_i(go,t)),e.uuid=t=>e.check(vi(_o,t)),e.uuidv4=t=>e.check(yi(_o,t)),e.uuidv6=t=>e.check(bi(_o,t)),e.uuidv7=t=>e.check(xi(_o,t)),e.nanoid=t=>e.check(wi(bo,t)),e.guid=t=>e.check(_i(go,t)),e.cuid=t=>e.check(Ti(xo,t)),e.cuid2=t=>e.check(Ei(So,t)),e.ulid=t=>e.check(Di(Co,t)),e.base64=t=>e.check(Pi(Ao,t)),e.base64url=t=>e.check(Fi(jo,t)),e.xid=t=>e.check(Oi(wo,t)),e.ksuid=t=>e.check(ki(To,t)),e.ipv4=t=>e.check(Ai(Eo,t)),e.ipv6=t=>e.check(ji(Do,t)),e.cidrv4=t=>e.check(Mi(Oo,t)),e.cidrv6=t=>e.check(Ni(ko,t)),e.e164=t=>e.check(Ii(Mo,t)),e.datetime=t=>e.check(Wa(t)),e.date=t=>e.check(Ka(t)),e.time=t=>e.check(Ja(t)),e.duration=t=>e.check(Xa(t))});function mo(e){return hi(po,e)}var Z=I(`ZodStringFormat`,(e,t)=>{K.init(e,t),fo.init(e,t)}),ho=I(`ZodEmail`,(e,t)=>{ar.init(e,t),Z.init(e,t)}),go=I(`ZodGUID`,(e,t)=>{rr.init(e,t),Z.init(e,t)}),_o=I(`ZodUUID`,(e,t)=>{ir.init(e,t),Z.init(e,t)}),vo=I(`ZodURL`,(e,t)=>{or.init(e,t),Z.init(e,t)}),yo=I(`ZodEmoji`,(e,t)=>{sr.init(e,t),Z.init(e,t)}),bo=I(`ZodNanoID`,(e,t)=>{cr.init(e,t),Z.init(e,t)}),xo=I(`ZodCUID`,(e,t)=>{lr.init(e,t),Z.init(e,t)}),So=I(`ZodCUID2`,(e,t)=>{ur.init(e,t),Z.init(e,t)}),Co=I(`ZodULID`,(e,t)=>{dr.init(e,t),Z.init(e,t)}),wo=I(`ZodXID`,(e,t)=>{fr.init(e,t),Z.init(e,t)}),To=I(`ZodKSUID`,(e,t)=>{pr.init(e,t),Z.init(e,t)}),Eo=I(`ZodIPv4`,(e,t)=>{vr.init(e,t),Z.init(e,t)}),Do=I(`ZodIPv6`,(e,t)=>{yr.init(e,t),Z.init(e,t)}),Oo=I(`ZodCIDRv4`,(e,t)=>{br.init(e,t),Z.init(e,t)}),ko=I(`ZodCIDRv6`,(e,t)=>{xr.init(e,t),Z.init(e,t)}),Ao=I(`ZodBase64`,(e,t)=>{Cr.init(e,t),Z.init(e,t)}),jo=I(`ZodBase64URL`,(e,t)=>{Tr.init(e,t),Z.init(e,t)}),Mo=I(`ZodE164`,(e,t)=>{Er.init(e,t),Z.init(e,t)}),No=I(`ZodJWT`,(e,t)=>{Or.init(e,t),Z.init(e,t)}),Po=I(`ZodNumber`,(e,t)=>{kr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wa(e,t,n,r),uo(e,`ZodNumber`,{gt(e,t){return this.check(Yi(e,t))},gte(e,t){return this.check(Xi(e,t))},min(e,t){return this.check(Xi(e,t))},lt(e,t){return this.check(qi(e,t))},lte(e,t){return this.check(Ji(e,t))},max(e,t){return this.check(Ji(e,t))},int(e){return this.check(Lo(e))},safe(e){return this.check(Lo(e))},positive(e){return this.check(Yi(0,e))},nonnegative(e){return this.check(Xi(0,e))},negative(e){return this.check(qi(0,e))},nonpositive(e){return this.check(Ji(0,e))},multipleOf(e,t){return this.check(Zi(e,t))},step(e,t){return this.check(Zi(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Fo(e){return Hi(Po,e)}var Io=I(`ZodNumberFormat`,(e,t)=>{Ar.init(e,t),Po.init(e,t)});function Lo(e){return Ui(Io,e)}var Ro=I(`ZodBoolean`,(e,t)=>{jr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ta(e,t,n,r)});function zo(e){return Wi(Ro,e)}var Bo=I(`ZodUnknown`,(e,t)=>{Mr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Vo(){return Gi(Bo)}var Ho=I(`ZodNever`,(e,t)=>{Nr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ea(e,t,n,r)});function Uo(e){return Ki(Ho,e)}var Wo=I(`ZodArray`,(e,t)=>{Fr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Aa(e,t,n,r),e.element=t.element,uo(e,`ZodArray`,{min(e,t){return this.check($i(e,t))},nonempty(e){return this.check($i(1,e))},max(e,t){return this.check(Qi(e,t))},length(e,t){return this.check(ea(e,t))},unwrap(){return this.element}})});function Go(e,t){return pa(Wo,e,t)}var Ko=I(`ZodObject`,(e,t)=>{Br.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ja(e,t,n,r),R(e,`shape`,()=>t.shape),uo(e,`ZodObject`,{keyof(){return ts(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Vo()})},loose(){return this.clone({...this._zod.def,catchall:Vo()})},strict(){return this.clone({...this._zod.def,catchall:Uo()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ot(this,e)},safeExtend(e){return kt(this,e)},merge(e){return At(this,e)},pick(e){return Et(this,e)},omit(e){return Dt(this,e)},partial(...e){return jt(is,this,e[0])},required(...e){return Mt(ms,this,e[0])}})});function qo(e,t){return new Ko({type:`object`,shape:e??{},...H(t)})}var Jo=I(`ZodUnion`,(e,t)=>{Hr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ma(e,t,n,r),e.options=t.options});function Yo(e,t){return new Jo({type:`union`,options:e,...H(t)})}var Xo=I(`ZodIntersection`,(e,t)=>{Ur.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Na(e,t,n,r)});function Zo(e,t){return new Xo({type:`intersection`,left:e,right:t})}var Qo=I(`ZodRecord`,(e,t)=>{Kr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pa(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function $o(e,t,n){return!t||!t._zod?new Qo({type:`record`,keyType:mo(),valueType:e,...H(t)}):new Qo({type:`record`,keyType:e,valueType:t,...H(n)})}var es=I(`ZodEnum`,(e,t)=>{qr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Da(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new es({...t,checks:[],...H(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new es({...t,checks:[],...H(r),entries:i})}});function ts(e,t){return new es({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...H(t)})}var ns=I(`ZodTransform`,(e,t)=>{Jr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ka(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ot(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Rt(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Rt(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function rs(e){return new ns({type:`transform`,transform:e})}var is=I(`ZodOptional`,(e,t)=>{Xr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ha(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function as(e){return new is({type:`optional`,innerType:e})}var os=I(`ZodExactOptional`,(e,t)=>{Zr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ha(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ss(e){return new os({type:`optional`,innerType:e})}var cs=I(`ZodNullable`,(e,t)=>{Qr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fa(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ls(e){return new cs({type:`nullable`,innerType:e})}var us=I(`ZodDefault`,(e,t)=>{$r.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>La(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ds(e,t){return new us({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():xt(t)}})}var fs=I(`ZodPrefault`,(e,t)=>{ti.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ra(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ps(e,t){return new fs({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():xt(t)}})}var ms=I(`ZodNonOptional`,(e,t)=>{ni.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ia(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hs(e,t){return new ms({type:`nonoptional`,innerType:e,...H(t)})}var gs=I(`ZodCatch`,(e,t)=>{ii.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>za(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _s(e,t){return new gs({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var vs=I(`ZodPipe`,(e,t)=>{ai.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ba(e,t,n,r),e.in=t.in,e.out=t.out});function ys(e,t){return new vs({type:`pipe`,in:e,out:t})}var bs=I(`ZodReadonly`,(e,t)=>{si.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Va(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xs(e){return new bs({type:`readonly`,innerType:e})}var Ss=I(`ZodCustom`,(e,t)=>{li.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oa(e,t,n,r)});function Cs(e,t={}){return ma(Ss,e,t)}function ws(e,t){return ha(e,t)}var Ts=`spinifex:v1:aws-credentials`,Es=qo({accessKeyId:mo().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:mo().min(1,`Secret Access Key is required`)}),Q;function Ds(){if(Q!==void 0)return Q;try{let e=localStorage.getItem(Ts);if(!e)return Q=null,null;let t=JSON.parse(e),n=Es.safeParse(t);return Q=n.success?n.data:null,Q}catch{return Q=null,null}}function Os(e){try{localStorage.setItem(Ts,JSON.stringify(e)),Q=e}catch{Q=e}}function ks(){try{localStorage.removeItem(Ts)}catch{}Q=null}var As=e=>new TextEncoder().encode(e),js=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:As;function Ms(e){return e instanceof Uint8Array?e:typeof e==`string`?js(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Ns(e){return typeof e==`string`?e.length===0:e.byteLength===0}function Ps(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function Fs(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var Gs=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]),Ks=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],qs=2**53-1,Js=function(){function e(){this.state=Int32Array.from(Ks),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>qs)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Gs[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Ys=function(){function e(e){this.secret=e,this.hash=new Js,this.reset()}return e.prototype.update=function(e){if(!(Ns(e)||this.error))try{this.hash.update(Ms(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Hs(this,void 0,void 0,function(){return Us(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Js,this.secret){this.outer=new Js;var e=Xs(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Js;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Zs=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Qs(e){if($s(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return ec(t)}return!1}function $s(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function ec(e){return e&&Zs.every(function(t){return typeof e[t]==`function`})}var tc=function(){function e(e){Qs(Bs())?this.hash=new Vs(e):this.hash=new Ys(e)}return e.prototype.update=function(e,t){this.hash.update(Ms(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),nc=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=rc(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function rc(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var ic={},ac={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),ic[e]=t,ac[t]=e}function oc(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;ntypeof t==`string`?e(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),cc=`X-Amz-Algorithm`,lc=`X-Amz-Credential`,uc=`X-Amz-Date`,dc=`X-Amz-SignedHeaders`,fc=`X-Amz-Expires`,pc=`X-Amz-Signature`,mc=`X-Amz-Security-Token`,hc=`authorization`,gc=uc.toLowerCase(),_c=[hc,gc,`date`];pc.toLowerCase();var vc=`x-amz-content-sha256`,yc=mc.toLowerCase(),bc={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},xc=/^proxy-/,Sc=/^sec-/,Cc=`AWS4-HMAC-SHA256`,wc=`AWS4-HMAC-SHA256-PAYLOAD`,Tc=`UNSIGNED-PAYLOAD`,Ec=`aws4_request`,Dc={},Oc=[],kc=(e,t,n)=>`${e}/${t}/${n}/${Ec}`,Ac=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${$(await jc(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in Dc)return Dc[a];for(Oc.push(a);Oc.length>50;)delete Dc[Oc.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,Ec])o=await jc(e,o,t);return Dc[a]=o},jc=(e,t,n)=>{let r=new e(t);return r.update(sc(n)),r.digest()},Mc=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in bc||t?.has(a)||xc.test(a)||Sc.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},Nc=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,Pc=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||Nc(t)){let e=new n;return e.update(sc(t)),$(await e.digest())}return Tc},Fc=class{format(t){let n=[];for(let r of Object.keys(t)){let i=e(r);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[r]))}let r=new Uint8Array(n.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of n)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(t){switch(t.type){case`boolean`:return Uint8Array.from([+!t.value]);case`byte`:return Uint8Array.from([2,t.value]);case`short`:let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+t.value.byteLength));a.setUint8(0,6),a.setUint16(1,t.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(t.value,3),o;case`string`:let s=e(t.value),c=new DataView(new ArrayBuffer(3+s.byteLength));c.setUint8(0,7),c.setUint16(1,s.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(s,3),l;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(Rc.fromNumber(t.value.valueOf()).bytes,1),u;case`uuid`:if(!Lc.test(t.value))throw Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(oc(t.value.replace(/\-/g,``)),1),d}}},Ic;(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`})(Ic||={});var Lc=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Rc=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&zc(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&zc(e),parseInt($(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function zc(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Bc=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},Vc=(e,t={})=>{let{headers:n,query:r={}}=nc.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},Hc=e=>{e=nc.clone(e);for(let t of Object.keys(e.headers))_c.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Uc=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},Wc=e=>encodeURIComponent(e).replace(/[!'()*]/g,Gc),Gc=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,Kc=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=Wc(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${Wc(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${Wc(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},qc=e=>Jc(e).toISOString().replace(/\.\d{3}Z$/,`Z`),Jc=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,Yc=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=Uc(n),this.credentialProvider=Uc(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} -${this.getCanonicalPath(e)} -${Kc(e)} -${r.map(e=>`${e}:${t[e]}`).join(` -`)} - -${r.join(`;`)} -${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(sc(n)),`${r} -${e} -${t} -${$(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return Wc(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=qc(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},Xc=class extends Yc{headerFormatter=new Fc;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=kc(p,d,l??this.service),h=Vc(Hc(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[mc]=u.sessionToken),h.query[cc]=Cc,h.query[lc]=`${u.accessKeyId}/${m}`,h.query[uc]=f,h.query[fc]=r.toString(10);let g=Mc(h,i,o);return h.query[dc]=this.getCanonicalHeaderList(g),h.query[pc]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await Pc(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=kc(c,s,a??this.service),d=await Pc({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[wc,l,u,r,$(await f.digest()),d].join(` -`);return this.signString(p,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(sc(e)),$(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=Hc(e),{longDate:l,shortDate:u}=this.formatDate(t),d=kc(u,s,a??this.service);c.headers[gc]=l,o.sessionToken&&(c.headers[yc]=o.sessionToken);let f=await Pc(c,this.sha256);!Bc(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[vc]=f);let p=Mc(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[hc]=`${Cc} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,Cc),a=new this.sha256(await n);return a.update(sc(i)),$(await a.digest())}getSigningKey(e,t,n,r){return Ac(this.sha256,e,n,t,r||this.service)}};export{$o as A,Ze as B,Os as C,Lo as D,zo as E,nt as F,et as H,qe as I,tt as L,Gt as M,qt as N,Fo as O,Bt as P,rt as R,Ds as S,Go as T,n as U,Qe as V,Ns as _,sc as a,Es as b,nc as c,Hs as d,Us as f,Ps as g,Fs as h,Nc as i,mo as j,qo as k,tc as l,Bs as m,Wc as n,oc as o,Ws as p,Uc as r,$ as s,Xc as t,Qs as u,Ms as v,ts as w,ks as x,As as y,Ye as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_.js b/spinifex/services/spinifexui/frontend/dist/assets/_.js index 1ae0c9634..b9dcbd02f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./link.js";import{F as a,H as o,L as s,R as c}from"./SignatureV4.js";import{t as l}from"./back-link.js";import{n as u,r as d,t as f}from"./upload-button.js";import{r as p}from"./s3.js";import{t as m}from"./s32.js";import{h}from"./index.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=h.useParams(),y=s(v??``),{data:b}=r(m(t,y)),x=p(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>({name:e,path:`/s3/ls/${t}/${`${E.slice(0,n+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(l,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(f,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(n,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(d,{bucketName:t,folderName:o(c(e.Prefix,y)),fullPrefix:a(e.Prefix,y)},e.Prefix):null)})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(u,{bucketName:t,displayName:c(e.Key,y),fullKey:a(e.Key,y),object:e},e.Key):null)]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(i,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{n as r,r as i,t as a}from"./upload-button.js";import{r as o}from"./s3.js";import{Ca as s,Oa as c,P as l,eo as u,h as d,no as f,so as p,wa as m,xa as h}from"./index.js";var g=u(),_=p();function v(){let u=(0,g.c)(24),{bucket:p,_splat:v}=d.useParams(),y=s(v??``),{data:b}=t(l(p,y)),x=o(),S;u[0]===b.Contents?S=u[1]:(S=b.Contents??[],u[0]=b.Contents,u[1]=S);let C=S,w;u[2]===b.CommonPrefixes?w=u[3]:(w=b.CommonPrefixes??[],u[2]=b.CommonPrefixes,u[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:p,path:`/s3/ls/${p}`},...E.map((e,t)=>({name:e,path:`/s3/ls/${p}/${`${E.slice(0,t+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${p}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${p}`,k;u[4]===O?k=u[5]:(k=(0,_.jsx)(n,{to:O,children:`Back`}),u[4]=O,u[5]=k);let A;u[6]!==p||u[7]!==y||u[8]!==x.isPending||u[9]!==x.mutateAsync?(A=(0,_.jsx)(a,{bucket:p,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),u[6]=p,u[7]=y,u[8]=x.isPending,u[9]=x.mutateAsync,u[10]=A):A=u[10];let j;u[11]===x.error?j=u[12]:(j=x.error&&(0,_.jsx)(e,{error:x.error,msg:`Failed to upload object`}),u[11]=x.error,u[12]=j);let M;u[13]!==p||u[14]!==T||u[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(i,{bucketName:p,folderName:c(m(e.Prefix,y)),fullPrefix:h(e.Prefix,y)},e.Prefix):null)})]}),u[13]=p,u[14]=T,u[15]=y,u[16]=M):M=u[16];let N;u[17]!==p||u[18]!==C||u[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(r,{bucketName:p,displayName:m(e.Key,y),fullKey:h(e.Key,y),object:e},e.Key):null)]}),u[17]=p,u[18]=C,u[19]=y,u[20]=N):N=u[20];let P;return u[21]!==T.length||u[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),u[21]=T.length,u[22]=C.length,u[23]=P):P=u[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(f,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index a42bde983..6183bf2f2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./link.js";import{V as o}from"./SignatureV4.js";import{t as s}from"./createLucideIcon.js";import{t as c}from"./chevron-down.js";import{t as l}from"./chevron-right.js";import{c as u,o as d,p as f,x as p,y as m}from"./ec22.js";import{n as h}from"./s32.js";import{B as ee,H as g,U as _,V as v,v as y,z as b}from"./index.js";import{t as x}from"./page-heading.js";import{t as S}from"./state-badge.js";import{i as te,r as C,t as ne}from"./admin.js";import{a as w,i as T,n as E,o as D,r as O,t as k}from"./card.js";var A=s(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),j=s(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),re=s(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),ie=s(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),M=r(),N=e(n(),1),P=t(),F=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function I(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function L(){let e=(0,M.c)(110),{isAdmin:t,version:n,license:r}=y(),[a,o]=(0,N.useState)(!1),s;e[0]===t?s=e[1]:(s={...ne,enabled:t},e[0]=t,e[1]=s);let{data:u}=i(s),d;e[2]===t?d=e[3]:(d={...C,enabled:t},e[2]=t,e[3]=d);let{data:f}=i(d);if(!t||!n)return null;let p,m,h,g,_,v,b,x,S,T,E,A,j,I,L,z,B,V,H;if(e[4]!==r||e[5]!==u?.cluster_mode||e[6]!==u?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==f?.vms){g=u?.nodes??[];let t;e[31]===f?.vms?t=e[32]:(t=f?.vms??[],e[31]=f?.vms,e[32]=t);let i=t,a=u?.cluster_mode??`single-node`;h=r===`open-source`;let o=g[0]?.region??null,s=g.reduce(ce,0),c=g.reduce(se,0),l=g.reduce(oe,0),d=g.reduce(ae,0);E=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let y;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,P.jsx)(w,{className:`pb-2`,children:(0,P.jsxs)(D,{className:`flex items-center gap-2 text-sm`,children:[(0,P.jsx)(ie,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=y):y=e[33];let C;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=C):C=e[34];let ne;e[35]===n.version?ne=e[36]:(ne=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[C,(0,P.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=ne);let re;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=re):re=e[37];let M;e[38]===n.commit?M=e[39]:(M=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[re,(0,P.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=M);let N;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=N):N=e[40];let F;e[41]!==n.arch||e[42]!==n.os?(F=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[N,(0,P.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=F):F=e[43],S=(0,P.jsxs)(k,{children:[y,(0,P.jsxs)(O,{className:`space-y-1 text-xs`,children:[ne,M,F,o&&(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,P.jsx)(`span`,{children:o})]})]})]});let R;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,P.jsx)(w,{className:`pb-2`,children:(0,P.jsx)(D,{className:`text-sm`,children:`License & Support`})}),e[44]=R):R=e[44];let U;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=U):U=e[45];let W=h?`secondary`:`default`,G=h?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==W||e[47]!==G?(K=(0,P.jsxs)(`div`,{className:`flex items-center justify-between`,children:[U,(0,P.jsx)(te,{variant:W,children:G})]}),e[46]=W,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=h?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,P.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,P.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===h?X=e[53]:(X=h&&(0,P.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=h,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(T=(0,P.jsxs)(k,{children:[R,(0,P.jsxs)(O,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=T):T=e[57],m=k,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,P.jsx)(w,{className:`pb-2`,children:(0,P.jsxs)(D,{className:`flex items-center gap-2 text-sm`,children:[(0,P.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=b):b=e[58],p=O,B=`space-y-2 text-xs`,e[59]===a?V=e[60]:(V=(0,P.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,P.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=V);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],H=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,P.jsx)(`span`,{children:g.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`EC2 Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?_=e[64]:(_=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,P.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=_);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],v=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,P.jsxs)(`span`,{children:[c,` / `,s]})]}),L=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=z):z=e[66],A=d.toFixed(1),j=` / `,I=l.toFixed(1),e[4]=r,e[5]=u?.cluster_mode,e[6]=u?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=f?.vms,e[12]=p,e[13]=m,e[14]=h,e[15]=g,e[16]=_,e[17]=v,e[18]=b,e[19]=x,e[20]=S,e[21]=T,e[22]=E,e[23]=A,e[24]=j,e[25]=I,e[26]=L,e[27]=z,e[28]=B,e[29]=V,e[30]=H}else p=e[12],m=e[13],h=e[14],g=e[15],_=e[16],v=e[17],b=e[18],x=e[19],S=e[20],T=e[21],E=e[22],A=e[23],j=e[24],I=e[25],L=e[26],z=e[27],B=e[28],V=e[29],H=e[30];let U;e[67]!==A||e[68]!==j||e[69]!==I?(U=(0,P.jsxs)(`span`,{children:[A,j,I,` GB`]}),e[67]=A,e[68]=j,e[69]=I,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==L||e[73]!==z?(W=(0,P.jsxs)(`div`,{className:L,children:[z,U]}),e[71]=U,e[72]=L,e[73]=z,e[74]=W):W=e[74];let G;e[75]!==p||e[76]!==_||e[77]!==v||e[78]!==W||e[79]!==B||e[80]!==V||e[81]!==H?(G=(0,P.jsxs)(p,{className:B,children:[V,H,_,v,W]}),e[75]=p,e[76]=_,e[77]=v,e[78]=W,e[79]=B,e[80]=V,e[81]=H,e[82]=G):G=e[82];let K;e[83]!==m||e[84]!==b||e[85]!==G?(K=(0,P.jsxs)(m,{children:[b,G]}),e[83]=m,e[84]=b,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==x||e[88]!==S||e[89]!==T||e[90]!==K?(q=(0,P.jsxs)(`div`,{className:x,children:[S,T,K]}),e[87]=x,e[88]=S,e[89]=T,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==g||e[93]!==a?(J=g.length>0&&(0,P.jsxs)(k,{children:[(0,P.jsx)(w,{className:`pb-0`,children:(0,P.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,P.jsx)(c,{className:`size-3.5`}):(0,P.jsx)(l,{className:`size-3.5`}),`Nodes (`,g.length,`)`]})}),a&&(0,P.jsx)(O,{className:`pt-2`,children:(0,P.jsx)(R,{nodes:g})})]}),e[92]=g,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,P.jsx)(w,{className:`pb-2`,children:(0,P.jsx)(D,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===h?X=e[97]:(X=F.map(e=>(0,P.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,P.jsx)(`span`,{className:h?`text-muted-foreground`:void 0,children:e.name}),h?(0,P.jsx)(re,{className:`size-3 text-muted-foreground`}):(0,P.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=h,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,P.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===h?Q=e[101]:(Q=h&&(0,P.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=h,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,P.jsxs)(k,{children:[Y,(0,P.jsxs)(O,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==E||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,P.jsxs)(`div`,{className:E,children:[q,J,$]}),e[105]=E,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ae(e,t){return e+t.alloc_mem_gb}function oe(e,t){return e+t.total_mem_gb}function se(e,t){return e+t.alloc_vcpu}function ce(e,t){return e+t.total_vcpu}function R(e){let t=(0,M.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,P.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,P.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(z),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,P.jsx)(`div`,{className:`overflow-x-auto`,children:(0,P.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,P.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function z(e){return(0,P.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,P.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,P.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,P.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,P.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,P.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4`,children:I(e.uptime)}),(0,P.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,P.jsx)(`td`,{className:`py-1.5`,children:(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var B=5;function V(){let e=(0,M.c)(8),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,P.jsx)(x,{title:`Dashboard`}),n=(0,P.jsx)(L,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(H,{}),children:(0,P.jsx)(K,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(H,{}),children:(0,P.jsx)($,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(H,{}),children:(0,P.jsx)(pe,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(H,{}),children:(0,P.jsx)(he,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(H,{}),children:(0,P.jsx)(_e,{})}),e[6]=s):s=e[6];let c;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,P.jsxs)(P.Fragment,{children:[t,n,(0,P.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(H,{}),children:(0,P.jsx)(ye,{})})]})]}),e[7]=c):c=e[7],c}function H(){let e=(0,M.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,P.jsx)(w,{children:(0,P.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,P.jsxs)(k,{children:[t,(0,P.jsx)(O,{children:(0,P.jsxs)(`div`,{className:`space-y-2`,children:[(0,P.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,P.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function U(e){let t=(0,M.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,P.jsxs)(D,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,P.jsx)(E,{children:(0,P.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,P.jsxs)(w,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,P.jsx)(O,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,P.jsx)(T,{children:(0,P.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,P.jsxs)(k,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function W(e){let t=(0,M.c)(2),{total:n}=e;if(n<=B)return null;let r=n-B,i;return t[0]===r?i=t[1]:(i=(0,P.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function G(e){let t=(0,M.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,P.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function K(){let e=(0,M.c)(16),{data:t}=i(d),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(Q)??[];n=i.filter(Z),a=i.filter(X),o=i.filter(Y),r=i.filter(J),s=[...a,...r].slice(0,B),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,P.jsx)(_,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,P.jsxs)(`span`,{children:[a.length,` running`]}),(0,P.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,P.jsx)(`div`,{className:`space-y-0.5`,children:c.map(q)}),(0,P.jsx)(W,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=u):u=e[12];let f;return e[13]!==n.length||e[14]!==u?(f=(0,P.jsx)(U,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:u}),e[13]=n.length,e[14]=u,e[15]=f):f=e[15],f}function q(e){return(0,P.jsxs)(G,{children:[(0,P.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function J(e){return e.State?.Name===`pending`}function Y(e){return e.State?.Name===`stopped`}function X(e){return e.State?.Name===`running`}function Z(e){return e.State?.Name!==`terminated`}function Q(e){return e.Instances??[]}function $(){let e=(0,M.c)(3),{data:t}=i(m),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(fe,0),a=r.filter(de),o=r.filter(ue),s=r.slice(0,B),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,P.jsx)(A,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,P.jsx)(U,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,P.jsxs)(`span`,{children:[i,` GiB total`]}),(0,P.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,P.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,P.jsx)(`div`,{className:`space-y-0.5`,children:s.map(le)}),(0,P.jsx)(W,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function le(e){return(0,P.jsxs)(G,{children:[(0,P.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,P.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,P.jsx)(S,{state:e.State})]})]},e.VolumeId)}function ue(e){return e.State===`available`}function de(e){return e.State===`in-use`}function fe(e,t){return e+(t.Size??0)}function pe(){let e=(0,M.c)(3),{data:t}=i(p),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,B),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(v,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,P.jsx)(U,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,P.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(me),(0,P.jsx)(W,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function me(e){let t=o(e.Tags);return(0,P.jsxs)(G,{children:[(0,P.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,P.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function he(){let e=(0,M.c)(3),{data:t}=i(u),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,B),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(g,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,P.jsx)(U,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,P.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(ge),(0,P.jsx)(W,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function ge(e){return(0,P.jsx)(G,{children:(0,P.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function _e(){let e=(0,M.c)(3),{data:t}=i(h),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,B),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(j,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,P.jsx)(U,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,P.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(ve),(0,P.jsx)(W,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function ve(e){return(0,P.jsx)(G,{children:(0,P.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function ye(){let e=(0,M.c)(3),{data:t}=i(f),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,B),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(b,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,P.jsx)(U,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,P.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,P.jsx)(W,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function be(e){return(0,P.jsxs)(G,{children:[(0,P.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}export{V as component}; \ No newline at end of file +import{t as e}from"./useQuery.js";import{t}from"./chevron-down.js";import{t as n}from"./chevron-right.js";import{Ba as r,Bn as i,Da as a,Do as o,F as s,J as c,La as l,Ra as u,U as d,Ua as f,V as p,Va as m,co as h,eo as g,et as _,no as v,nt as y,so as b,za as x}from"./index.js";import{t as S}from"./page-heading.js";import{t as C}from"./state-badge.js";import{i as ee,r as w,t as T}from"./admin.js";import{a as E,i as D,n as O,o as te,r as k,t as A}from"./card.js";var j=f(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),M=f(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),ne=f(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=f(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),N=g(),P=o(h(),1),F=b(),I=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function L(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function R(){let r=(0,N.c)(110),{isAdmin:a,version:o,license:s}=i(),[c,l]=(0,P.useState)(!1),d;r[0]===a?d=r[1]:(d={...T,enabled:a},r[0]=a,r[1]=d);let{data:f}=e(d),p;r[2]===a?p=r[3]:(p={...w,enabled:a},r[2]=a,r[3]=p);let{data:m}=e(p);if(!a||!o)return null;let h,g,_,v,y,b,x,S,C,D,O,j,M,L,R,z,B,V,H;if(r[4]!==s||r[5]!==f?.cluster_mode||r[6]!==f?.nodes||r[7]!==o.arch||r[8]!==o.commit||r[9]!==o.os||r[10]!==o.version||r[11]!==m?.vms){v=f?.nodes??[];let e;r[31]===m?.vms?e=r[32]:(e=m?.vms??[],r[31]=m?.vms,r[32]=e);let t=e,n=f?.cluster_mode??`single-node`;_=s===`open-source`;let i=v[0]?.region??null,a=v.reduce(se,0),c=v.reduce(oe,0),l=v.reduce(ae,0),d=v.reduce(ie,0);O=`mb-6 space-y-4`,S=`grid grid-cols-1 gap-4 md:grid-cols-3`;let p;r[33]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,F.jsx)(E,{className:`pb-2`,children:(0,F.jsxs)(te,{className:`flex items-center gap-2 text-sm`,children:[(0,F.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),r[33]=p):p=r[33];let w;r[34]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),r[34]=w):w=r[34];let T;r[35]===o.version?T=r[36]:(T=(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[w,(0,F.jsx)(`span`,{className:`font-mono`,children:o.version})]}),r[35]=o.version,r[36]=T);let ne;r[37]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),r[37]=ne):ne=r[37];let N;r[38]===o.commit?N=r[39]:(N=(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[ne,(0,F.jsx)(`span`,{className:`font-mono`,children:o.commit})]}),r[38]=o.commit,r[39]=N);let P;r[40]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),r[40]=P):P=r[40];let I;r[41]!==o.arch||r[42]!==o.os?(I=(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[P,(0,F.jsxs)(`span`,{children:[o.os,`/`,o.arch]})]}),r[41]=o.arch,r[42]=o.os,r[43]=I):I=r[43],C=(0,F.jsxs)(A,{children:[p,(0,F.jsxs)(k,{className:`space-y-1 text-xs`,children:[T,N,I,i&&(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,F.jsx)(`span`,{children:i})]})]})]});let ce;r[44]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,F.jsx)(E,{className:`pb-2`,children:(0,F.jsx)(te,{className:`text-sm`,children:`License & Support`})}),r[44]=ce):ce=r[44];let U;r[45]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),r[45]=U):U=r[45];let W=_?`secondary`:`default`,G=_?`Open Source (AGPLv3)`:`Commercial`,K;r[46]!==W||r[47]!==G?(K=(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[U,(0,F.jsx)(ee,{variant:W,children:G})]}),r[46]=W,r[47]=G,r[48]=K):K=r[48];let q;r[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),r[49]=q):q=r[49];let J=_?`Community`:`Standard`,Y;r[50]===J?Y=r[51]:(Y=(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,F.jsx)(`span`,{children:J})]}),r[50]=J,r[51]=Y);let X;r[52]===_?X=r[53]:(X=_&&(0,F.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),r[52]=_,r[53]=X),r[54]!==K||r[55]!==Y||r[56]!==X?(D=(0,F.jsxs)(A,{children:[ce,(0,F.jsxs)(k,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),r[54]=K,r[55]=Y,r[56]=X,r[57]=D):D=r[57],g=A,r[58]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,F.jsx)(E,{className:`pb-2`,children:(0,F.jsxs)(te,{className:`flex items-center gap-2 text-sm`,children:[(0,F.jsx)(u,{className:`size-3.5`}),`Cluster Status`]})}),r[58]=x):x=r[58],h=k,B=`space-y-2 text-xs`,r[59]===n?V=r[60]:(V=(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsx)(ee,{variant:`outline`,children:n})}),r[59]=n,r[60]=V);let Z;r[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),r[61]=Z):Z=r[61],H=(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,F.jsx)(`span`,{children:v.length})]});let Q;r[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`EC2 Instances`}),r[62]=Q):Q=r[62],r[63]===t.length?y=r[64]:(y=(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,F.jsx)(`span`,{children:t.length})]}),r[63]=t.length,r[64]=y);let $;r[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),r[65]=$):$=r[65],b=(0,F.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,F.jsxs)(`span`,{children:[c,` / `,a]})]}),R=`flex justify-between`,r[66]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),r[66]=z):z=r[66],j=d.toFixed(1),M=` / `,L=l.toFixed(1),r[4]=s,r[5]=f?.cluster_mode,r[6]=f?.nodes,r[7]=o.arch,r[8]=o.commit,r[9]=o.os,r[10]=o.version,r[11]=m?.vms,r[12]=h,r[13]=g,r[14]=_,r[15]=v,r[16]=y,r[17]=b,r[18]=x,r[19]=S,r[20]=C,r[21]=D,r[22]=O,r[23]=j,r[24]=M,r[25]=L,r[26]=R,r[27]=z,r[28]=B,r[29]=V,r[30]=H}else h=r[12],g=r[13],_=r[14],v=r[15],y=r[16],b=r[17],x=r[18],S=r[19],C=r[20],D=r[21],O=r[22],j=r[23],M=r[24],L=r[25],R=r[26],z=r[27],B=r[28],V=r[29],H=r[30];let U;r[67]!==j||r[68]!==M||r[69]!==L?(U=(0,F.jsxs)(`span`,{children:[j,M,L,` GB`]}),r[67]=j,r[68]=M,r[69]=L,r[70]=U):U=r[70];let W;r[71]!==U||r[72]!==R||r[73]!==z?(W=(0,F.jsxs)(`div`,{className:R,children:[z,U]}),r[71]=U,r[72]=R,r[73]=z,r[74]=W):W=r[74];let G;r[75]!==h||r[76]!==y||r[77]!==b||r[78]!==W||r[79]!==B||r[80]!==V||r[81]!==H?(G=(0,F.jsxs)(h,{className:B,children:[V,H,y,b,W]}),r[75]=h,r[76]=y,r[77]=b,r[78]=W,r[79]=B,r[80]=V,r[81]=H,r[82]=G):G=r[82];let K;r[83]!==g||r[84]!==x||r[85]!==G?(K=(0,F.jsxs)(g,{children:[x,G]}),r[83]=g,r[84]=x,r[85]=G,r[86]=K):K=r[86];let q;r[87]!==S||r[88]!==C||r[89]!==D||r[90]!==K?(q=(0,F.jsxs)(`div`,{className:S,children:[C,D,K]}),r[87]=S,r[88]=C,r[89]=D,r[90]=K,r[91]=q):q=r[91];let J;r[92]!==v||r[93]!==c?(J=v.length>0&&(0,F.jsxs)(A,{children:[(0,F.jsx)(E,{className:`pb-0`,children:(0,F.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>l(!c),children:[c?(0,F.jsx)(t,{className:`size-3.5`}):(0,F.jsx)(n,{className:`size-3.5`}),`Nodes (`,v.length,`)`]})}),c&&(0,F.jsx)(k,{className:`pt-2`,children:(0,F.jsx)(ce,{nodes:v})})]}),r[92]=v,r[93]=c,r[94]=J):J=r[94];let Y;r[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,F.jsx)(E,{className:`pb-2`,children:(0,F.jsx)(te,{className:`text-sm`,children:`Commercial Add-ons`})}),r[95]=Y):Y=r[95];let X;r[96]===_?X=r[97]:(X=I.map(e=>(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,F.jsx)(`span`,{className:_?`text-muted-foreground`:void 0,children:e.name}),_?(0,F.jsx)(ne,{className:`size-3 text-muted-foreground`}):(0,F.jsx)(ee,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),r[96]=_,r[97]=X);let Z;r[98]===X?Z=r[99]:(Z=(0,F.jsx)(`div`,{className:`space-y-2`,children:X}),r[98]=X,r[99]=Z);let Q;r[100]===_?Q=r[101]:(Q=_&&(0,F.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),r[100]=_,r[101]=Q);let $;r[102]!==Z||r[103]!==Q?($=(0,F.jsxs)(A,{children:[Y,(0,F.jsxs)(k,{children:[Z,Q]})]}),r[102]=Z,r[103]=Q,r[104]=$):$=r[104];let le;return r[105]!==O||r[106]!==q||r[107]!==J||r[108]!==$?(le=(0,F.jsxs)(`div`,{className:O,children:[q,J,$]}),r[105]=O,r[106]=q,r[107]=J,r[108]=$,r[109]=le):le=r[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,N.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,F.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,F.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(z),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,F.jsx)(`div`,{className:`overflow-x-auto`,children:(0,F.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,F.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function z(e){return(0,F.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,F.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,F.jsx)(ee,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,F.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4`,children:L(e.uptime)}),(0,F.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,F.jsx)(`td`,{className:`py-1.5`,children:(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var B=5;function V(){let e=(0,N.c)(8),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(S,{title:`Dashboard`}),n=(0,F.jsx)(R,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(H,{}),children:(0,F.jsx)(K,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(H,{}),children:(0,F.jsx)($,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(H,{}),children:(0,F.jsx)(pe,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(H,{}),children:(0,F.jsx)(he,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(H,{}),children:(0,F.jsx)(_e,{})}),e[6]=s):s=e[6];let c;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsxs)(F.Fragment,{children:[t,n,(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(H,{}),children:(0,F.jsx)(ye,{})})]})]}),e[7]=c):c=e[7],c}function H(){let e=(0,N.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(E,{children:(0,F.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,F.jsxs)(A,{children:[t,(0,F.jsx)(k,{children:(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function U(e){let t=(0,N.c)(16),{title:n,icon:r,count:i,to:a,children:o}=e,s;t[0]!==r||t[1]!==n?(s=(0,F.jsxs)(te,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===i?c=t[4]:(c=(0,F.jsx)(O,{children:(0,F.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=c);let l;t[5]!==s||t[6]!==c?(l=(0,F.jsxs)(E,{children:[s,c]}),t[5]=s,t[6]=c,t[7]=l):l=t[7];let u;t[8]===o?u=t[9]:(u=(0,F.jsx)(k,{children:o}),t[8]=o,t[9]=u);let d;t[10]===a?d=t[11]:(d=(0,F.jsx)(D,{children:(0,F.jsx)(v,{to:a,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=a,t[11]=d);let f;return t[12]!==l||t[13]!==u||t[14]!==d?(f=(0,F.jsxs)(A,{children:[l,u,d]}),t[12]=l,t[13]=u,t[14]=d,t[15]=f):f=t[15],f}function W(e){let t=(0,N.c)(2),{total:n}=e;if(n<=B)return null;let r=n-B,i;return t[0]===r?i=t[1]:(i=(0,F.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function G(e){let t=(0,N.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,F.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function K(){let t=(0,N.c)(16),{data:n}=e(p),r,i,a,o,s;if(t[0]!==n?.Reservations){let e=n?.Reservations?.flatMap(Q)??[];r=e.filter(Z),a=e.filter(X),o=e.filter(Y),i=e.filter(J),s=[...a,...i].slice(0,B),t[0]=n?.Reservations,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5];let c=s,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(m,{className:`size-3.5`}),t[6]=l):l=t[6];let u;t[7]!==r.length||t[8]!==c||t[9]!==i||t[10]!==a||t[11]!==o?(u=r.length===0?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,F.jsxs)(`span`,{children:[a.length,` running`]}),(0,F.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,F.jsx)(`div`,{className:`space-y-0.5`,children:c.map(q)}),(0,F.jsx)(W,{total:a.length+i.length})]}),t[7]=r.length,t[8]=c,t[9]=i,t[10]=a,t[11]=o,t[12]=u):u=t[12];let d;return t[13]!==r.length||t[14]!==u?(d=(0,F.jsx)(U,{title:`Instances`,icon:l,count:r.length,to:`/ec2/describe-instances`,children:u}),t[13]=r.length,t[14]=u,t[15]=d):d=t[15],d}function q(e){return(0,F.jsxs)(G,{children:[(0,F.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function J(e){return e.State?.Name===`pending`}function Y(e){return e.State?.Name===`stopped`}function X(e){return e.State?.Name===`running`}function Z(e){return e.State?.Name!==`terminated`}function Q(e){return e.Instances??[]}function $(){let t=(0,N.c)(3),{data:n}=e(_),r;if(t[0]!==n?.Volumes){let e=n?.Volumes??[],i=e.reduce(fe,0),a=e.filter(de),o=e.filter(ue),s=e.slice(0,B),c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsx)(j,{className:`size-3.5`}),t[2]=c):c=t[2],r=(0,F.jsx)(U,{title:`Volumes`,icon:c,count:e.length,to:`/ec2/describe-volumes`,children:e.length===0?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,F.jsxs)(`span`,{children:[i,` GiB total`]}),(0,F.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,F.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,F.jsx)(`div`,{className:`space-y-0.5`,children:s.map(le)}),(0,F.jsx)(W,{total:e.length})]})}),t[0]=n?.Volumes,t[1]=r}else r=t[1];return r}function le(e){return(0,F.jsxs)(G,{children:[(0,F.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,F.jsx)(C,{state:e.State})]})]},e.VolumeId)}function ue(e){return e.State===`available`}function de(e){return e.State===`in-use`}function fe(e,t){return e+(t.Size??0)}function pe(){let t=(0,N.c)(3),{data:n}=e(y),r;if(t[0]!==n?.Vpcs){let e=n?.Vpcs??[],i=e.slice(0,B),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(x,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,F.jsx)(U,{title:`VPCs`,icon:a,count:e.length,to:`/ec2/describe-vpcs`,children:e.length===0?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,F.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(me),(0,F.jsx)(W,{total:e.length})]})}),t[0]=n?.Vpcs,t[1]=r}else r=t[1];return r}function me(e){let t=a(e.Tags);return(0,F.jsxs)(G,{children:[(0,F.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,F.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function he(){let t=(0,N.c)(3),{data:n}=e(d),i;if(t[0]!==n?.KeyPairs){let e=n?.KeyPairs??[],a=e.slice(0,B),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(r,{className:`size-3.5`}),t[2]=o):o=t[2],i=(0,F.jsx)(U,{title:`Key Pairs`,icon:o,count:e.length,to:`/ec2/describe-key-pairs`,children:e.length===0?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,F.jsxs)(`div`,{className:`space-y-0.5`,children:[a.map(ge),(0,F.jsx)(W,{total:e.length})]})}),t[0]=n?.KeyPairs,t[1]=i}else i=t[1];return i}function ge(e){return(0,F.jsx)(G,{children:(0,F.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function _e(){let t=(0,N.c)(3),{data:n}=e(s),r;if(t[0]!==n?.Buckets){let e=n?.Buckets??[],i=e.slice(0,B),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(M,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,F.jsx)(U,{title:`S3 Buckets`,icon:a,count:e.length,to:`/s3/ls`,children:e.length===0?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,F.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(ve),(0,F.jsx)(W,{total:e.length})]})}),t[0]=n?.Buckets,t[1]=r}else r=t[1];return r}function ve(e){return(0,F.jsx)(G,{children:(0,F.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function ye(){let t=(0,N.c)(3),{data:n}=e(c),r;if(t[0]!==n?.SecurityGroups){let e=n?.SecurityGroups??[],i=e.slice(0,B),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(l,{className:`size-3.5`}),t[2]=a):a=t[2],r=(0,F.jsx)(U,{title:`Security Groups`,icon:a,count:e.length,to:`/ec2/describe-security-groups`,children:e.length===0?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,F.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,F.jsx)(W,{total:e.length})]})}),t[0]=n?.SecurityGroups,t[1]=r}else r=t[1];return r}function be(e){return(0,F.jsxs)(G,{children:[(0,F.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}export{V as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js index c9136f467..da5e6a619 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{H as i}from"./SignatureV4.js";import{t as a}from"./back-link.js";import{n as o,r as s,t as c}from"./upload-button.js";import{r as l}from"./s3.js";import{t as u}from"./s32.js";import{g as d}from"./index.js";import{t as f}from"./page-heading.js";var p=t(),m=e();function h(){let e=(0,p.c)(31),{bucket:t}=d.useParams(),h;e[0]===t?h=e[1]:(h=u(t),e[0]=t,e[1]=h);let{data:g}=r(h),_=l(),v;e[2]===g.Contents?v=e[3]:(v=g.Contents??[],e[2]=g.Contents,e[3]=v);let y=v,b;e[4]===g.CommonPrefixes?b=e[5]:(b=g.CommonPrefixes??[],e[4]=g.CommonPrefixes,e[5]=b);let x=b,S;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(a,{to:`/s3/ls`,children:`Back to buckets`}),e[6]=S):S=e[6];let C;e[7]!==t||e[8]!==_.isPending||e[9]!==_.mutateAsync?(C=(0,m.jsx)(c,{bucket:t,isPending:_.isPending,onUpload:_.mutateAsync}),e[7]=t,e[8]=_.isPending,e[9]=_.mutateAsync,e[10]=C):C=e[10];let w;e[11]!==t||e[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:t}),e[11]=t,e[12]=C,e[13]=w):w=e[13];let T;e[14]===_.error?T=e[15]:(T=_.error&&(0,m.jsx)(n,{error:_.error,msg:`Failed to upload object`}),e[14]=_.error,e[15]=T);let E;e[16]!==t||e[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(s,{bucketName:t,folderName:i(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),e[16]=t,e[17]=x,e[18]=E):E=e[18];let D;e[19]!==t||e[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(o,{bucketName:t,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),e[19]=t,e[20]=y,e[21]=D):D=e[21];let O;e[22]!==x.length||e[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),e[22]=x.length,e[23]=y.length,e[24]=O):O=e[24];let k;return e[25]!==w||e[26]!==T||e[27]!==E||e[28]!==D||e[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),e[25]=w,e[26]=T,e[27]=E,e[28]=D,e[29]=O,e[30]=k):k=e[30],k}export{h as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{n as r,r as i,t as a}from"./upload-button.js";import{r as o}from"./s3.js";import{C as s,Oa as c,P as l,eo as u,so as d}from"./index.js";import{t as f}from"./page-heading.js";var p=u(),m=d();function h(){let u=(0,p.c)(31),{bucket:d}=s.useParams(),h;u[0]===d?h=u[1]:(h=l(d),u[0]=d,u[1]=h);let{data:g}=t(h),_=o(),v;u[2]===g.Contents?v=u[3]:(v=g.Contents??[],u[2]=g.Contents,u[3]=v);let y=v,b;u[4]===g.CommonPrefixes?b=u[5]:(b=g.CommonPrefixes??[],u[4]=g.CommonPrefixes,u[5]=b);let x=b,S;u[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(n,{to:`/s3/ls`,children:`Back to buckets`}),u[6]=S):S=u[6];let C;u[7]!==d||u[8]!==_.isPending||u[9]!==_.mutateAsync?(C=(0,m.jsx)(a,{bucket:d,isPending:_.isPending,onUpload:_.mutateAsync}),u[7]=d,u[8]=_.isPending,u[9]=_.mutateAsync,u[10]=C):C=u[10];let w;u[11]!==d||u[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:d}),u[11]=d,u[12]=C,u[13]=w):w=u[13];let T;u[14]===_.error?T=u[15]:(T=_.error&&(0,m.jsx)(e,{error:_.error,msg:`Failed to upload object`}),u[14]=_.error,u[15]=T);let E;u[16]!==d||u[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(i,{bucketName:d,folderName:c(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),u[16]=d,u[17]=x,u[18]=E):E=u[18];let D;u[19]!==d||u[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(r,{bucketName:d,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),u[19]=d,u[20]=y,u[21]=D):D=u[21];let O;u[22]!==x.length||u[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),u[22]=x.length,u[23]=y.length,u[24]=O):O=u[24];let k;return u[25]!==w||u[26]!==T||u[27]!==E||u[28]!==D||u[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),u[25]=w,u[26]=T,u[27]=E,u[28]=D,u[29]=O,u[30]=k):k=u[30],k}export{h as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id.js b/spinifex/services/spinifexui/frontend/dist/assets/_id.js index 93cdf0394..550f74c3d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{n as i}from"./ec22.js";import{t as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./system-managed.js";import{t as l}from"./ami-details.js";var u=t(),d=e();function f(){let e=(0,u.c)(14),{id:t}=a.useParams(),f;e[0]===t?f=e[1]:(f=i(t),e[0]=t,e[1]=f);let{data:p}=n(f),m=p?.Images?.[0];if(!m?.ImageId||c(m)){let t;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r,{to:`/ec2/describe-images`,children:`Back to images`}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]}),e[2]=t):t=e[2],t}let h;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(r,{to:`/ec2/describe-images`,children:`Back to images`}),e[3]=h):h=e[3];let g;e[4]===m.State?g=e[5]:(g=(0,d.jsx)(s,{state:m.State}),e[4]=m.State,e[5]=g);let _;e[6]!==m.ImageId||e[7]!==g?(_=(0,d.jsx)(o,{actions:g,subtitle:`EC2 Image Details`,title:m.ImageId}),e[6]=m.ImageId,e[7]=g,e[8]=_):_=e[8];let v;e[9]===m?v=e[10]:(v=(0,d.jsx)(l,{image:m,showExtendedDetails:!0}),e[9]=m,e[10]=v);let y;return e[11]!==_||e[12]!==v?(y=(0,d.jsxs)(d.Fragment,{children:[h,(0,d.jsxs)(`div`,{className:`space-y-6`,children:[_,v]})]}),e[11]=_,e[12]=v,e[13]=y):y=e[13],y}export{f as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{t}from"./back-link.js";import{L as n,eo as r,so as i,t as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./system-managed.js";import{t as l}from"./ami-details.js";var u=r(),d=i();function f(){let r=(0,u.c)(14),{id:i}=a.useParams(),f;r[0]===i?f=r[1]:(f=n(i),r[0]=i,r[1]=f);let{data:p}=e(f),m=p?.Images?.[0];if(!m?.ImageId||c(m)){let e;return r[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t,{to:`/ec2/describe-images`,children:`Back to images`}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]}),r[2]=e):e=r[2],e}let h;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(t,{to:`/ec2/describe-images`,children:`Back to images`}),r[3]=h):h=r[3];let g;r[4]===m.State?g=r[5]:(g=(0,d.jsx)(s,{state:m.State}),r[4]=m.State,r[5]=g);let _;r[6]!==m.ImageId||r[7]!==g?(_=(0,d.jsx)(o,{actions:g,subtitle:`EC2 Image Details`,title:m.ImageId}),r[6]=m.ImageId,r[7]=g,r[8]=_):_=r[8];let v;r[9]===m?v=r[10]:(v=(0,d.jsx)(l,{image:m,showExtendedDetails:!0}),r[9]=m,r[10]=v);let y;return r[11]!==_||r[12]!==v?(y=(0,d.jsxs)(d.Fragment,{children:[h,(0,d.jsxs)(`div`,{className:`space-y-6`,children:[_,v]})]}),r[11]=_,r[12]=v,r[13]=y):y=r[13],y}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js index 8c2e71b70..8def2439c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./link.js";import{t as o}from"./useNavigate.js";import{V as ee,z as s}from"./SignatureV4.js";import{t as c}from"./createLucideIcon.js";import{t as l}from"./back-link.js";import{a as u,i as d,n as f,r as p,t as m}from"./select.js";import{t as h}from"./trash-2.js";import{n as g,t as _}from"./button.js";import{S as v,b as y,t as te}from"./ec2.js";import{o as ne,v as re}from"./ec22.js";import{L as b,W as x,u as ie}from"./index.js";import{t as ae}from"./page-heading.js";import{t as S}from"./state-badge.js";import{n as C,t as w}from"./detail-row.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{a as N,t as P}from"./field.js";import{t as F}from"./delete-confirmation-dialog.js";var I=c(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=c(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=e(n()),z=t();function B(){let{id:e}=ie.useParams(),t=o(),{data:n}=i(re(e)),{data:c}=i(ne),B=n.Volumes?.[0],V=y(),H=te(),U=v(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=c.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(l,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(r,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(r,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(r,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ae,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(_,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(h,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(a,{className:g({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(_,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(_,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(_,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(a,{className:g({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(x,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(S,{state:B.State})]}),subtitle:`EC2 Volume Details`,title:B.VolumeId}),(0,z.jsxs)(C,{children:[(0,z.jsx)(C.Header,{children:`Volume Information`}),(0,z.jsxs)(C.Content,{children:[(0,z.jsx)(w,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(w,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(w,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(w,{label:`State`,value:B.State}),(0,z.jsx)(w,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(w,{label:`Create Time`,value:s(B.CreateTime)}),(0,z.jsx)(w,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(w,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(C,{children:[(0,z.jsx)(C.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(C.Content,{children:[(0,z.jsx)(w,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(w,{label:`Device`,value:e.Device}),(0,z.jsx)(w,{label:`Status`,value:e.State}),(0,z.jsx)(w,{label:`Attach Time`,value:s(e.AttachTime)}),(0,z.jsx)(w,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(F,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(N,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(m,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(d,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(u,{placeholder:`Select an instance`})}),(0,z.jsx)(f,{children:oe.map(e=>{let t=ee(e.Tags);return(0,z.jsxs)(p,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(N,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(b,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(l,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as a,r as o,t as ee}from"./select.js";import{t as s}from"./trash-2.js";import{S as c,b as l,t as te}from"./ec2.js";import{$ as u,Da as d,Do as f,Ha as p,Ta as m,Ua as h,V as g,ba as _,co as v,no as y,ro as ne,so as b,u as x,ya as S,yi as re}from"./index.js";import{t as ie}from"./page-heading.js";import{t as ae}from"./state-badge.js";import{n as C,t as w}from"./detail-row.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{a as N,t as P}from"./field.js";import{t as F}from"./delete-confirmation-dialog.js";var I=h(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=h(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=f(v()),z=b();function B(){let{id:f}=x.useParams(),h=ne(),{data:v}=t(u(f)),{data:b}=t(g),B=v.Volumes?.[0],V=l(),H=te(),U=c(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=b.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(e,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(e,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(e,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ie,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(S,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(s,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(y,{className:_({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(S,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(S,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(S,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(y,{className:_({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(p,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(ae,{state:B.State})]}),subtitle:`EC2 Volume Details`,title:B.VolumeId}),(0,z.jsxs)(C,{children:[(0,z.jsx)(C.Header,{children:`Volume Information`}),(0,z.jsxs)(C.Content,{children:[(0,z.jsx)(w,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(w,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(w,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(w,{label:`State`,value:B.State}),(0,z.jsx)(w,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(w,{label:`Create Time`,value:m(B.CreateTime)}),(0,z.jsx)(w,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(w,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(C,{children:[(0,z.jsx)(C.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(C.Content,{children:[(0,z.jsx)(w,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(y,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(w,{label:`Device`,value:e.Device}),(0,z.jsx)(w,{label:`Status`,value:e.State}),(0,z.jsx)(w,{label:`Attach Time`,value:m(e.AttachTime)}),(0,z.jsx)(w,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(F,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(f),h({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(N,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(ee,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(i,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(r,{placeholder:`Select an instance`})}),(0,z.jsx)(a,{children:oe.map(e=>{let t=d(e.Tags);return(0,z.jsxs)(o,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(P,{children:[(0,z.jsx)(N,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(re,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:f,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let e=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:f,instanceId:e??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js index cec347481..8ab16453d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{t as a}from"./back-link.js";import{E as o}from"./ec2.js";import{v as s}from"./ec22.js";import{L as c,d as l}from"./index.js";import{t as u}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{r as m,t as h}from"./zod.js";import{d as g}from"./ec23.js";import{t as _}from"./form-actions.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=l.useParams(),b=i(),x;e[0]===t?x=e[1]:(x=s(t),e[0]=t,e[1]=x);let{data:S}=r(x),C=S.Volumes?.[0],w=C?.VolumeId,T=o(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=h(g.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),e[2]=E,e[3]=D);let O;e[4]===E?O=e[5]:(O={size:E},e[4]=E,e[5]=O);let k;e[6]!==D||e[7]!==O?(k={resolver:D,defaultValues:O},e[6]=D,e[7]=O,e[8]=k):k=e[8];let{handleSubmit:A,register:j,formState:M}=m(k),{errors:N,isSubmitting:P}=M;if(!w){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(a,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(u,{subtitle:w,title:`Resize Volume`}),e[14]=w,e[15]=L,e[16]=R);let z;e[17]===T.error?z=e[18]:(z=T.error&&(0,y.jsx)(n,{error:T.error,msg:`Failed to resize volume`}),e[17]=T.error,e[18]=z);let B;e[19]!==A||e[20]!==I?(B=A(I),e[19]=A,e[20]=I,e[21]=B):B=e[21];let V;e[22]===E?V=e[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),e[22]=E,e[23]=V);let H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(d,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),e[24]=H):H=e[24];let U=!!N.size,W=E+1,G;e[25]===j?G=e[26]:(G=j(`size`,{valueAsNumber:!0}),e[25]=j,e[26]=G);let K;e[27]!==U||e[28]!==W||e[29]!==G?(K=(0,y.jsx)(c,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),e[27]=U,e[28]=W,e[29]=G,e[30]=K):K=e[30];let q;e[31]===N.size?q=e[32]:(q=(0,y.jsx)(f,{errors:[N.size]}),e[31]=N.size,e[32]=q);let J;e[33]!==K||e[34]!==q?(J=(0,y.jsxs)(p,{children:[H,K,q]}),e[33]=K,e[34]=q,e[35]=J):J=e[35];let Y;e[36]!==b||e[37]!==w?(Y=async()=>await b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),e[36]=b,e[37]=w,e[38]=Y):Y=e[38];let X;e[39]!==P||e[40]!==T.isPending||e[41]!==Y?(X=(0,y.jsx)(_,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),e[39]=P,e[40]=T.isPending,e[41]=Y,e[42]=X):X=e[42];let Z;e[43]!==V||e[44]!==J||e[45]!==X||e[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),e[43]=V,e[44]=J,e[45]=X,e[46]=B,e[47]=Z):Z=e[47];let Q;return e[48]!==Z||e[49]!==L||e[50]!==R||e[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),e[48]=Z,e[49]=L,e[50]=R,e[51]=z,e[52]=Q):Q=e[52],Q}export{b as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{E as r}from"./ec2.js";import{$ as i,d as a,eo as o,ro as s,so as c,yi as l}from"./index.js";import{t as u}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{r as m,t as h}from"./zod.js";import{d as g}from"./ec22.js";import{t as _}from"./form-actions.js";var v=o(),y=c();function b(){let o=(0,v.c)(53),{id:c}=a.useParams(),b=s(),x;o[0]===c?x=o[1]:(x=i(c),o[0]=c,o[1]=x);let{data:S}=t(x),C=S.Volumes?.[0],w=C?.VolumeId,T=r(),E=C?.Size??1,D;o[2]===E?D=o[3]:(D=h(g.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),o[2]=E,o[3]=D);let O;o[4]===E?O=o[5]:(O={size:E},o[4]=E,o[5]=O);let k;o[6]!==D||o[7]!==O?(k={resolver:D,defaultValues:O},o[6]=D,o[7]=O,o[8]=k):k=o[8];let{handleSubmit:A,register:j,formState:M}=m(k),{errors:N,isSubmitting:P}=M;if(!w){let e;return o[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),o[9]=e):e=o[9],e}let F;o[10]!==T||o[11]!==b||o[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},o[10]=T,o[11]=b,o[12]=w,o[13]=F):F=o[13];let I=F,L,R;o[14]===w?(L=o[15],R=o[16]):(L=(0,y.jsx)(n,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(u,{subtitle:w,title:`Resize Volume`}),o[14]=w,o[15]=L,o[16]=R);let z;o[17]===T.error?z=o[18]:(z=T.error&&(0,y.jsx)(e,{error:T.error,msg:`Failed to resize volume`}),o[17]=T.error,o[18]=z);let B;o[19]!==A||o[20]!==I?(B=A(I),o[19]=A,o[20]=I,o[21]=B):B=o[21];let V;o[22]===E?V=o[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),o[22]=E,o[23]=V);let H;o[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(d,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),o[24]=H):H=o[24];let U=!!N.size,W=E+1,G;o[25]===j?G=o[26]:(G=j(`size`,{valueAsNumber:!0}),o[25]=j,o[26]=G);let K;o[27]!==U||o[28]!==W||o[29]!==G?(K=(0,y.jsx)(l,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),o[27]=U,o[28]=W,o[29]=G,o[30]=K):K=o[30];let q;o[31]===N.size?q=o[32]:(q=(0,y.jsx)(f,{errors:[N.size]}),o[31]=N.size,o[32]=q);let J;o[33]!==K||o[34]!==q?(J=(0,y.jsxs)(p,{children:[H,K,q]}),o[33]=K,o[34]=q,o[35]=J):J=o[35];let Y;o[36]!==b||o[37]!==w?(Y=async()=>await b({to:`/ec2/describe-volumes/$id`,params:{id:w}}),o[36]=b,o[37]=w,o[38]=Y):Y=o[38];let X;o[39]!==P||o[40]!==T.isPending||o[41]!==Y?(X=(0,y.jsx)(_,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),o[39]=P,o[40]=T.isPending,o[41]=Y,o[42]=X):X=o[42];let Z;o[43]!==V||o[44]!==J||o[45]!==X||o[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),o[43]=V,o[44]=J,o[45]=X,o[46]=B,o[47]=Z):Z=o[47];let Q;return o[48]!==Z||o[49]!==L||o[50]!==R||o[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),o[48]=Z,o[49]=L,o[50]=R,o[51]=z,o[52]=Q):Q=o[52],Q}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js index d0556fd13..a29bce722 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./link.js";import{t as o}from"./useNavigate.js";import{V as s}from"./SignatureV4.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{x as d}from"./ec2.js";import{_ as f,b as p}from"./ec22.js";import{f as m}from"./index.js";import{t as h}from"./page-heading.js";import{t as g}from"./state-badge.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./delete-confirmation-dialog.js";var b=e(n()),x=t();function S(){let{id:e}=m.useParams(),t=o(),{data:n}=i(p(e)),{data:S}=i(f),C=n.Vpcs?.[0],w=d(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=s(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(r,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(u,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(l,{className:`size-4`}),`Delete`]}),(0,x.jsx)(g,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(y,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{x as i}from"./ec2.js";import{Da as a,Do as o,Q as s,co as c,f as l,no as u,ro as d,so as f,tt as p,ya as m}from"./index.js";import{t as h}from"./page-heading.js";import{t as g}from"./state-badge.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./delete-confirmation-dialog.js";var b=o(c()),x=f();function S(){let{id:o}=l.useParams(),c=d(),{data:f}=t(p(o)),{data:S}=t(s),C=f.Vpcs?.[0],w=i(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(e=>e.VpcId===o)??[],O=async()=>{try{await w.mutateAsync(o),c({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=a(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(e,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(m,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(r,{className:`size-4`}),`Delete`]}),(0,x.jsx)(g,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(u,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(y,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id2.js b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js index 2bc0ac33b..e0346abaf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./link.js";import{z as s}from"./SignatureV4.js";import{t as c}from"./createLucideIcon.js";import{t as l}from"./back-link.js";import{a as u,i as d,n as f,r as p,t as m}from"./select.js";import{t as h}from"./trash-2.js";import{t as g}from"./button.js";import{A as _,C as v,D as y,M as b,T as x,a as S,j as C}from"./ec2.js";import{a as w,i as T,n as E}from"./ec22.js";import{L as D,n as O}from"./index.js";import{t as k}from"./page-heading.js";import{t as A}from"./state-badge.js";import{n as j,t as M}from"./detail-row.js";import{t as ee}from"./ami-details.js";import{a as N,i as P,l as F,n as I,o as L,r as R,s as z,t as B}from"./alert-dialog.js";import{a as V,t as H}from"./field.js";import{t as U}from"./textarea.js";import{t as W}from"./delete-confirmation-dialog.js";var te=c(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),G=c(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),K=c(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),q=c(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),ne=c(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),re=c(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),J=e(n(),1),Y=t();function ie({instanceId:e,open:t,onOpenChange:n}){let r=S(),[i,a]=(0,J.useState)(``),[o,s]=(0,J.useState)(``),[c,l]=(0,J.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,Y.jsx)(B,{onOpenChange:u,open:t,children:(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(z,{children:[(0,Y.jsx)(F,{children:c?`Image Created`:`Create Image (AMI)`}),(0,Y.jsx)(N,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(H,{children:[(0,Y.jsx)(V,{children:(0,Y.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,Y.jsx)(D,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,Y.jsxs)(H,{children:[(0,Y.jsx)(V,{children:(0,Y.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,Y.jsx)(U,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,Y.jsxs)(L,{children:[(0,Y.jsx)(R,{children:c?`Close`:`Cancel`}),!c&&(0,Y.jsx)(I,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var X=r(),Z=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function ae(e){let t=(0,X.c)(43),{instanceId:n,state:r}=e,a=_(),o=C(),s=y(),c=b(),[l,u]=(0,J.useState)(!1),d=Z.has(r??``),f;t[0]!==n||t[1]!==c?(f=()=>{c.mutate(n,{onSettled:()=>u(!1)})},t[0]=n,t[1]=c,t[2]=f):f=t[2];let p=f;if(d&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,Y.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,Y.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,Y.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Y.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=m):m=t[6];let v;t[7]===a.error?v=t[8]:(v=a.error&&(0,Y.jsx)(i,{error:a.error,msg:`Failed to start instance`}),t[7]=a.error,t[8]=v);let x;t[9]===o.error?x=t[10]:(x=o.error&&(0,Y.jsx)(i,{error:o.error,msg:`Failed to stop instance`}),t[9]=o.error,t[10]=x);let S;t[11]===s.error?S=t[12]:(S=s.error&&(0,Y.jsx)(i,{error:s.error,msg:`Failed to reboot instance`}),t[11]=s.error,t[12]=S);let w;t[13]===c.error?w=t[14]:(w=c.error&&(0,Y.jsx)(i,{error:c.error,msg:`Failed to terminate instance`}),t[13]=c.error,t[14]=w);let T;t[15]!==n||t[16]!==a||t[17]!==r?(T=r===`stopped`&&(0,Y.jsxs)(g,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`default`,children:[(0,Y.jsx)(K,{className:`size-4`}),a.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=a,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==s||t[21]!==r||t[22]!==o?(E=r===`running`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(g,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,Y.jsx)(G,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,Y.jsxs)(g,{disabled:s.isPending,onClick:()=>s.mutate(n),size:`sm`,variant:`outline`,children:[(0,Y.jsx)(q,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=s,t[21]=r,t[22]=o,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==c.isPending?(D=(r===`stopped`||r===`running`)&&(0,Y.jsxs)(g,{disabled:c.isPending,onClick:()=>u(!0),size:`sm`,variant:`destructive`,children:[(0,Y.jsx)(h,{className:`size-4`}),c.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=c.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==p||t[32]!==l||t[33]!==k||t[34]!==c.isPending?(A=(0,Y.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:c.isPending,onConfirm:p,onOpenChange:u,open:l,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=p,t[32]=l,t[33]=k,t[34]=c.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==v||t[39]!==x||t[40]!==S||t[41]!==w?(j=(0,Y.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[m,v,x,S,w,O,A]}),t[36]=O,t[37]=A,t[38]=v,t[39]=x,t[40]=S,t[41]=w,t[42]=j):j=t[42],j}function Q(){let{id:e}=O.useParams(),{data:t}=a(T(e)),n=t.Reservations?.[0]?.Instances?.[0],{data:r}=a(E(n?.ImageId)),c=r?.Images?.[0],{data:h}=a(w),_=x(),y=v(),[b,S]=(0,J.useState)(!1),[C,D]=(0,J.useState)(``),[U,W]=(0,J.useState)(!1),[G,K]=(0,J.useState)(null),[q,X]=(0,J.useState)(!1),Z=[...new Set(h.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!n?.InstanceId)return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,Y.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let Q=s(n.LaunchTime),$=n.State?.Name===`running`,oe=n.State?.Name===`stopped`;async function se(){try{await _.mutateAsync({instanceId:e,instanceType:C}),S(!1),D(``)}catch{}}async function ce(){try{let t=await y.mutateAsync(e);K(t.Output?atob(t.Output):`(no output)`),W(!0)}catch{}}return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),_.error&&(0,Y.jsx)(i,{error:_.error,msg:`Failed to modify instance`}),y.error&&(0,Y.jsx)(i,{error:y.error,msg:`Failed to get console output`}),(0,Y.jsxs)(`div`,{className:`space-y-6`,children:[(0,Y.jsx)(k,{actions:(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[$&&(0,Y.jsxs)(g,{disabled:y.isPending,onClick:ce,size:`sm`,variant:`outline`,children:[(0,Y.jsx)(re,{className:`size-4`}),y.isPending?`Fetching…`:`View Console`]}),($||oe)&&(0,Y.jsxs)(g,{onClick:()=>X(!0),size:`sm`,variant:`outline`,children:[(0,Y.jsx)(te,{className:`size-4`}),`Create Image`]}),oe&&(0,Y.jsxs)(g,{onClick:()=>{D(n.InstanceType??``),S(!0)},size:`sm`,variant:`outline`,children:[(0,Y.jsx)(ne,{className:`size-4`}),`Modify Instance`]}),(0,Y.jsx)(A,{state:n.State?.Name})]}),subtitle:`EC2 Instance Details`,title:n.InstanceId}),(0,Y.jsx)(ae,{instanceId:n.InstanceId,state:n.State?.Name}),U&&G!==null&&(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:(0,Y.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,Y.jsx)(g,{onClick:()=>{W(!1),K(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,Y.jsx)(`div`,{className:`p-4`,children:(0,Y.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:G})})]}),(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:`Instance Information`}),(0,Y.jsxs)(j.Content,{children:[(0,Y.jsx)(M,{label:`Instance ID`,value:n.InstanceId}),(0,Y.jsx)(M,{label:`Instance Type`,value:n.InstanceType}),(0,Y.jsx)(M,{label:`Instance State`,value:n.State?.Name}),(0,Y.jsx)(M,{label:`State Code`,value:n.State?.Code?.toString()}),(0,Y.jsx)(M,{label:`Launch Time`,value:Q}),(0,Y.jsx)(M,{label:`Availability Zone`,value:n.Placement?.AvailabilityZone}),(0,Y.jsx)(M,{label:`Placement Group`,value:n.Placement?.GroupName?(0,Y.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:n.Placement.GroupName}):void 0})]})]}),(n.PrivateIpAddress||n.PublicIpAddress||n.VpcId||n.SubnetId||n.SecurityGroups&&n.SecurityGroups.length>0)&&(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:`Network & Security`}),(0,Y.jsxs)(j.Content,{children:[(0,Y.jsx)(M,{label:`Private IP Address`,value:n.PrivateIpAddress}),(0,Y.jsx)(M,{label:`Public IP Address`,value:n.PublicIpAddress}),(0,Y.jsx)(M,{label:`Private DNS`,value:n.PrivateDnsName}),(0,Y.jsx)(M,{label:`Public DNS`,value:n.PublicDnsName}),(0,Y.jsx)(M,{label:`VPC ID`,value:n.VpcId?(0,Y.jsx)(o,{className:`text-primary hover:underline`,params:{id:n.VpcId},to:`/ec2/describe-vpcs/$id`,children:n.VpcId}):void 0}),(0,Y.jsx)(M,{label:`Subnet ID`,value:n.SubnetId?(0,Y.jsx)(o,{className:`text-primary hover:underline`,params:{id:n.SubnetId},to:`/ec2/describe-subnets/$id`,children:n.SubnetId}):void 0}),(0,Y.jsx)(M,{label:`Key Name`,value:n.KeyName}),(0,Y.jsx)(M,{label:`Security Groups`,value:n.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),n.BlockDeviceMappings&&n.BlockDeviceMappings.length>0&&(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:`Block Device Mappings`}),n.BlockDeviceMappings.map(e=>(0,Y.jsxs)(j.Content,{children:[(0,Y.jsx)(M,{label:`Device Name`,value:e.DeviceName}),(0,Y.jsx)(M,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,Y.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,Y.jsx)(M,{label:`Status`,value:e.Ebs?.Status}),(0,Y.jsx)(M,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,Y.jsx)(M,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),c&&(0,Y.jsx)(ee,{image:c})]}),(0,Y.jsx)(B,{onOpenChange:e=>{e||(S(!1),D(``))},open:b,children:(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(z,{children:[(0,Y.jsx)(F,{children:`Modify Instance`}),(0,Y.jsxs)(N,{children:[`Select a new instance type for "`,n.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,Y.jsxs)(H,{children:[(0,Y.jsx)(V,{children:(0,Y.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,Y.jsxs)(m,{onValueChange:e=>D(e??``),value:C,children:[(0,Y.jsx)(d,{className:`w-full`,id:`instanceType`,children:(0,Y.jsx)(u,{})}),(0,Y.jsx)(f,{children:Z.map(e=>(0,Y.jsx)(p,{value:e,children:e},e))})]})]}),(0,Y.jsxs)(L,{children:[(0,Y.jsx)(R,{children:`Cancel`}),(0,Y.jsx)(I,{disabled:_.isPending||!C||C===n.InstanceType,onClick:se,children:_.isPending?`Saving…`:`Save Changes`})]})]})}),(0,Y.jsx)(ie,{instanceId:n.InstanceId,onOpenChange:X,open:q})]})}export{Q as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as a,r as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{A as l,C as u,D as d,M as f,T as p,a as m,j as h}from"./ec2.js";import{B as g,Do as _,L as v,Ta as y,Ua as b,co as x,eo as S,n as C,no as w,so as T,ya as E,yi as D,z as O}from"./index.js";import{t as k}from"./page-heading.js";import{t as A}from"./state-badge.js";import{n as j,t as M}from"./detail-row.js";import{t as ee}from"./ami-details.js";import{a as N,i as P,l as F,n as I,o as L,r as R,s as z,t as B}from"./alert-dialog.js";import{a as V,t as H}from"./field.js";import{t as U}from"./textarea.js";import{t as W}from"./delete-confirmation-dialog.js";var te=b(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),G=b(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),K=b(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),q=b(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),ne=b(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),re=b(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),J=_(x(),1),Y=T();function ie({instanceId:e,open:t,onOpenChange:n}){let r=m(),[i,a]=(0,J.useState)(``),[o,s]=(0,J.useState)(``),[c,l]=(0,J.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,Y.jsx)(B,{onOpenChange:u,open:t,children:(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(z,{children:[(0,Y.jsx)(F,{children:c?`Image Created`:`Create Image (AMI)`}),(0,Y.jsx)(N,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(H,{children:[(0,Y.jsx)(V,{children:(0,Y.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,Y.jsx)(D,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,Y.jsxs)(H,{children:[(0,Y.jsx)(V,{children:(0,Y.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,Y.jsx)(U,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,Y.jsxs)(L,{children:[(0,Y.jsx)(R,{children:c?`Close`:`Cancel`}),!c&&(0,Y.jsx)(I,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var X=S(),Z=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function ae(t){let n=(0,X.c)(43),{instanceId:r,state:i}=t,a=l(),o=h(),s=d(),u=f(),[p,m]=(0,J.useState)(!1),g=Z.has(i??``),_;n[0]!==r||n[1]!==u?(_=()=>{u.mutate(r,{onSettled:()=>m(!1)})},n[0]=r,n[1]=u,n[2]=_):_=n[2];let v=_;if(g&&i!==`terminated`){let e;return n[3]===i?e=n[4]:(e=(0,Y.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,Y.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,i,`. Actions will be available once the operation completes.`]})}),n[3]=i,n[4]=e),e}if(i===`terminated`){let e;return n[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Y.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,Y.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),n[5]=e):e=n[5],e}let y;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Y.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),n[6]=y):y=n[6];let b;n[7]===a.error?b=n[8]:(b=a.error&&(0,Y.jsx)(e,{error:a.error,msg:`Failed to start instance`}),n[7]=a.error,n[8]=b);let x;n[9]===o.error?x=n[10]:(x=o.error&&(0,Y.jsx)(e,{error:o.error,msg:`Failed to stop instance`}),n[9]=o.error,n[10]=x);let S;n[11]===s.error?S=n[12]:(S=s.error&&(0,Y.jsx)(e,{error:s.error,msg:`Failed to reboot instance`}),n[11]=s.error,n[12]=S);let C;n[13]===u.error?C=n[14]:(C=u.error&&(0,Y.jsx)(e,{error:u.error,msg:`Failed to terminate instance`}),n[13]=u.error,n[14]=C);let w;n[15]!==r||n[16]!==a||n[17]!==i?(w=i===`stopped`&&(0,Y.jsxs)(E,{disabled:a.isPending,onClick:()=>a.mutate(r),size:`sm`,variant:`default`,children:[(0,Y.jsx)(K,{className:`size-4`}),a.isPending?`Starting`:`Start`]}),n[15]=r,n[16]=a,n[17]=i,n[18]=w):w=n[18];let T;n[19]!==r||n[20]!==s||n[21]!==i||n[22]!==o?(T=i===`running`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(E,{disabled:o.isPending,onClick:()=>o.mutate(r),size:`sm`,variant:`outline`,children:[(0,Y.jsx)(G,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,Y.jsxs)(E,{disabled:s.isPending,onClick:()=>s.mutate(r),size:`sm`,variant:`outline`,children:[(0,Y.jsx)(q,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),n[19]=r,n[20]=s,n[21]=i,n[22]=o,n[23]=T):T=n[23];let D;n[24]!==i||n[25]!==u.isPending?(D=(i===`stopped`||i===`running`)&&(0,Y.jsxs)(E,{disabled:u.isPending,onClick:()=>m(!0),size:`sm`,variant:`destructive`,children:[(0,Y.jsx)(c,{className:`size-4`}),u.isPending?`Terminating`:`Terminate`]}),n[24]=i,n[25]=u.isPending,n[26]=D):D=n[26];let O;n[27]!==w||n[28]!==T||n[29]!==D?(O=(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[w,T,D]}),n[27]=w,n[28]=T,n[29]=D,n[30]=O):O=n[30];let k=`Are you sure you want to terminate the instance "${r}"? This action cannot be undone.`,A;n[31]!==v||n[32]!==p||n[33]!==k||n[34]!==u.isPending?(A=(0,Y.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:u.isPending,onConfirm:v,onOpenChange:m,open:p,pendingLabel:`Terminating…`,title:`Terminate Instance`}),n[31]=v,n[32]=p,n[33]=k,n[34]=u.isPending,n[35]=A):A=n[35];let j;return n[36]!==O||n[37]!==A||n[38]!==b||n[39]!==x||n[40]!==S||n[41]!==C?(j=(0,Y.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[y,b,x,S,C,O,A]}),n[36]=O,n[37]=A,n[38]=b,n[39]=x,n[40]=S,n[41]=C,n[42]=j):j=n[42],j}function Q(){let{id:c}=C.useParams(),{data:l}=t(O(c)),d=l.Reservations?.[0]?.Instances?.[0],{data:f}=t(v(d?.ImageId)),m=f?.Images?.[0],{data:h}=t(g),_=p(),b=u(),[x,S]=(0,J.useState)(!1),[T,D]=(0,J.useState)(``),[U,W]=(0,J.useState)(!1),[G,K]=(0,J.useState)(null),[q,X]=(0,J.useState)(!1),Z=[...new Set(h.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!d?.InstanceId)return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(n,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,Y.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let Q=y(d.LaunchTime),$=d.State?.Name===`running`,oe=d.State?.Name===`stopped`;async function se(){try{await _.mutateAsync({instanceId:c,instanceType:T}),S(!1),D(``)}catch{}}async function ce(){try{let e=await b.mutateAsync(c);K(e.Output?atob(e.Output):`(no output)`),W(!0)}catch{}}return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(n,{to:`/ec2/describe-instances`,children:`Back to instances`}),_.error&&(0,Y.jsx)(e,{error:_.error,msg:`Failed to modify instance`}),b.error&&(0,Y.jsx)(e,{error:b.error,msg:`Failed to get console output`}),(0,Y.jsxs)(`div`,{className:`space-y-6`,children:[(0,Y.jsx)(k,{actions:(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[$&&(0,Y.jsxs)(E,{disabled:b.isPending,onClick:ce,size:`sm`,variant:`outline`,children:[(0,Y.jsx)(re,{className:`size-4`}),b.isPending?`Fetching…`:`View Console`]}),($||oe)&&(0,Y.jsxs)(E,{onClick:()=>X(!0),size:`sm`,variant:`outline`,children:[(0,Y.jsx)(te,{className:`size-4`}),`Create Image`]}),oe&&(0,Y.jsxs)(E,{onClick:()=>{D(d.InstanceType??``),S(!0)},size:`sm`,variant:`outline`,children:[(0,Y.jsx)(ne,{className:`size-4`}),`Modify Instance`]}),(0,Y.jsx)(A,{state:d.State?.Name})]}),subtitle:`EC2 Instance Details`,title:d.InstanceId}),(0,Y.jsx)(ae,{instanceId:d.InstanceId,state:d.State?.Name}),U&&G!==null&&(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:(0,Y.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,Y.jsx)(E,{onClick:()=>{W(!1),K(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,Y.jsx)(`div`,{className:`p-4`,children:(0,Y.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:G})})]}),(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:`Instance Information`}),(0,Y.jsxs)(j.Content,{children:[(0,Y.jsx)(M,{label:`Instance ID`,value:d.InstanceId}),(0,Y.jsx)(M,{label:`Instance Type`,value:d.InstanceType}),(0,Y.jsx)(M,{label:`Instance State`,value:d.State?.Name}),(0,Y.jsx)(M,{label:`State Code`,value:d.State?.Code?.toString()}),(0,Y.jsx)(M,{label:`Launch Time`,value:Q}),(0,Y.jsx)(M,{label:`Availability Zone`,value:d.Placement?.AvailabilityZone}),(0,Y.jsx)(M,{label:`Placement Group`,value:d.Placement?.GroupName?(0,Y.jsx)(w,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:d.Placement.GroupName}):void 0})]})]}),(d.PrivateIpAddress||d.PublicIpAddress||d.VpcId||d.SubnetId||d.SecurityGroups&&d.SecurityGroups.length>0)&&(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:`Network & Security`}),(0,Y.jsxs)(j.Content,{children:[(0,Y.jsx)(M,{label:`Private IP Address`,value:d.PrivateIpAddress}),(0,Y.jsx)(M,{label:`Public IP Address`,value:d.PublicIpAddress}),(0,Y.jsx)(M,{label:`Private DNS`,value:d.PrivateDnsName}),(0,Y.jsx)(M,{label:`Public DNS`,value:d.PublicDnsName}),(0,Y.jsx)(M,{label:`VPC ID`,value:d.VpcId?(0,Y.jsx)(w,{className:`text-primary hover:underline`,params:{id:d.VpcId},to:`/ec2/describe-vpcs/$id`,children:d.VpcId}):void 0}),(0,Y.jsx)(M,{label:`Subnet ID`,value:d.SubnetId?(0,Y.jsx)(w,{className:`text-primary hover:underline`,params:{id:d.SubnetId},to:`/ec2/describe-subnets/$id`,children:d.SubnetId}):void 0}),(0,Y.jsx)(M,{label:`Key Name`,value:d.KeyName}),(0,Y.jsx)(M,{label:`Security Groups`,value:d.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),d.BlockDeviceMappings&&d.BlockDeviceMappings.length>0&&(0,Y.jsxs)(j,{children:[(0,Y.jsx)(j.Header,{children:`Block Device Mappings`}),d.BlockDeviceMappings.map(e=>(0,Y.jsxs)(j.Content,{children:[(0,Y.jsx)(M,{label:`Device Name`,value:e.DeviceName}),(0,Y.jsx)(M,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,Y.jsx)(w,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,Y.jsx)(M,{label:`Status`,value:e.Ebs?.Status}),(0,Y.jsx)(M,{label:`Attach Time`,value:y(e.Ebs?.AttachTime)}),(0,Y.jsx)(M,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),m&&(0,Y.jsx)(ee,{image:m})]}),(0,Y.jsx)(B,{onOpenChange:e=>{e||(S(!1),D(``))},open:x,children:(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(z,{children:[(0,Y.jsx)(F,{children:`Modify Instance`}),(0,Y.jsxs)(N,{children:[`Select a new instance type for "`,d.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,Y.jsxs)(H,{children:[(0,Y.jsx)(V,{children:(0,Y.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,Y.jsxs)(s,{onValueChange:e=>D(e??``),value:T,children:[(0,Y.jsx)(i,{className:`w-full`,id:`instanceType`,children:(0,Y.jsx)(r,{})}),(0,Y.jsx)(a,{children:Z.map(e=>(0,Y.jsx)(o,{value:e,children:e},e))})]})]}),(0,Y.jsxs)(L,{children:[(0,Y.jsx)(R,{children:`Cancel`}),(0,Y.jsx)(I,{disabled:_.isPending||!T||T===d.InstanceType,onClick:se,children:_.isPending?`Saving…`:`Save Changes`})]})]})}),(0,Y.jsx)(ie,{instanceId:d.InstanceId,onOpenChange:X,open:q})]})}export{Q as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js index 303cf4fcd..52eee0aeb 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{z as o}from"./SignatureV4.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{h as u}from"./ec2.js";import{s as d}from"./ec22.js";import{r as f}from"./index.js";import{t as p}from"./page-heading.js";import{n as m,t as h}from"./detail-row.js";import{t as g}from"./delete-confirmation-dialog.js";var _=e(n()),v=t();function y(){let{id:e}=f.useParams(),t=a(),{data:n}=i(d(e)),y=n.KeyPairs?.[0],b=u(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=o(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(r,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(l,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`EC2 Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(m,{children:[(0,v.jsx)(m.Header,{children:`Key Pair Information`}),(0,v.jsxs)(m.Content,{children:[(0,v.jsx)(h,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(h,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(h,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(h,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(h,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(m,{children:[(0,v.jsx)(m.Header,{children:`Tags`}),(0,v.jsx)(m.Content,{children:y.Tags.map(e=>(0,v.jsx)(h,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(g,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{h as i}from"./ec2.js";import{Do as a,H as o,Ta as s,co as c,r as l,ro as u,so as d,ya as f}from"./index.js";import{t as p}from"./page-heading.js";import{n as m,t as h}from"./detail-row.js";import{t as g}from"./delete-confirmation-dialog.js";var _=a(c()),v=d();function y(){let{id:a}=l.useParams(),c=u(),{data:d}=t(o(a)),y=d.KeyPairs?.[0],b=i(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(a),c({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=s(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(e,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(f,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(r,{className:`size-4`}),`Delete`]}),subtitle:`EC2 Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(m,{children:[(0,v.jsx)(m.Header,{children:`Key Pair Information`}),(0,v.jsxs)(m.Content,{children:[(0,v.jsx)(h,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(h,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(h,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(h,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(h,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(m,{children:[(0,v.jsx)(m.Header,{children:`Tags`}),(0,v.jsx)(m.Content,{children:y.Tags.map(e=>(0,v.jsx)(h,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(g,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js index 2834755de..92fe66307 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./useNavigate.js";import{V as s}from"./SignatureV4.js";import{t as c}from"./back-link.js";import{a as l,i as u,n as d,r as f,t as p}from"./select.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{_ as g}from"./ec22.js";import{a as _,c as v,i as y,t as b}from"./elbv2.js";import{a as x,c as S,n as C,r as w,t as T}from"./elbv22.js";import{L as E,i as D}from"./index.js";import{t as ee}from"./page-heading.js";import{t as te}from"./state-badge.js";import{n as O,t as k}from"./detail-row.js";import{a as A,i as j,l as M,n as N,o as P,r as F,s as ne,t as re}from"./alert-dialog.js";import{a as I,r as L,t as R}from"./field.js";import{t as z}from"./delete-confirmation-dialog.js";import{n as B,r as V,t as H}from"./zod.js";import{t as U}from"./elbv23.js";import{a as W,i as G,n as K,o as q,r as J,t as Y}from"./tabs.js";var X=e(n(),1),Z=r(),Q=t();function ie(e){let t=(0,Z.c)(33),{form:n,targetGroups:r}=e,{control:i,register:a,formState:o}=n,{errors:s}=o,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(I,{children:(0,Q.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[0]=c):c=t[0];let f;t[1]===i?f=t[2]:(f=(0,Q.jsxs)(R,{children:[c,(0,Q.jsx)(B,{control:i,name:`protocol`,render:oe})]}),t[1]=i,t[2]=f);let m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Q.jsx)(I,{children:(0,Q.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[3]=m):m=t[3];let h=!!s.port,g;t[4]===a?g=t[5]:(g=a(`port`,{valueAsNumber:!0}),t[4]=a,t[5]=g);let _;t[6]!==h||t[7]!==g?(_=(0,Q.jsx)(E,{"aria-invalid":h,id:`listener-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...g}),t[6]=h,t[7]=g,t[8]=_):_=t[8];let v;t[9]===s.port?v=t[10]:(v=(0,Q.jsx)(L,{errors:[s.port]}),t[9]=s.port,t[10]=v);let y;t[11]!==_||t[12]!==v?(y=(0,Q.jsxs)(R,{children:[m,_,v]}),t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Q.jsx)(I,{children:(0,Q.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[14]=b):b=t[14];let x;t[15]!==s.defaultTargetGroupArn||t[16]!==r?(x=e=>{let{field:t}=e;return(0,Q.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,Q.jsx)(u,{"aria-invalid":!!s.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,Q.jsx)(l,{placeholder:`Select target group`})}),(0,Q.jsx)(d,{children:r.map(ae)})]})},t[15]=s.defaultTargetGroupArn,t[16]=r,t[17]=x):x=t[17];let S;t[18]!==i||t[19]!==x?(S=(0,Q.jsx)(B,{control:i,name:`defaultTargetGroupArn`,render:x}),t[18]=i,t[19]=x,t[20]=S):S=t[20];let C;t[21]===s.defaultTargetGroupArn?C=t[22]:(C=(0,Q.jsx)(L,{errors:[s.defaultTargetGroupArn]}),t[21]=s.defaultTargetGroupArn,t[22]=C);let w;t[23]===r.length?w=t[24]:(w=r.length===0&&(0,Q.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[23]=r.length,t[24]=w);let T;t[25]!==S||t[26]!==C||t[27]!==w?(T=(0,Q.jsxs)(R,{children:[b,S,C,w]}),t[25]=S,t[26]=C,t[27]=w,t[28]=T):T=t[28];let D;return t[29]!==T||t[30]!==f||t[31]!==y?(D=(0,Q.jsxs)(Q.Fragment,{children:[f,y,T]}),t[29]=T,t[30]=f,t[31]=y,t[32]=D):D=t[32],D}function ae(e){return(0,Q.jsxs)(f,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function oe(e){let{field:t}=e;return(0,Q.jsxs)(p,{onValueChange:t.onChange,value:t.value,children:[(0,Q.jsx)(u,{className:`w-full`,id:`listener-protocol`,children:(0,Q.jsx)(l,{})}),(0,Q.jsx)(d,{children:(0,Q.jsx)(f,{value:`HTTP`,children:`HTTP`})})]})}function se({loadBalancerArn:e,vpcId:t}){let{data:n}=a(T(e)),{data:r}=a(S),o=b(),s=y(),[c,l]=(0,X.useState)(!1),[u,d]=(0,X.useState)(),f=n.Listeners??[],p=r.TargetGroups??[],g=p.filter(e=>e.VpcId===t),_=new Map;for(let e of p)e.TargetGroupArn&&e.TargetGroupName&&_.set(e.TargetGroupArn,e.TargetGroupName);let v=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=_.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,Q.jsxs)(`div`,{className:`space-y-3`,children:[(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Listeners cannot be edited. Delete and re-add to change.`}),o.error&&(0,Q.jsx)(i,{error:o.error,msg:`Failed to create listener`}),s.error&&(0,Q.jsx)(i,{error:s.error,msg:`Failed to delete listener`}),(0,Q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[f.length,` listener`,f.length===1?``:`s`]}),(0,Q.jsx)(h,{onClick:()=>l(!0),size:`sm`,children:`Add listener`})]}),f.length===0?(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,Q.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,Q.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,Q.jsx)(`thead`,{children:(0,Q.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`})]})}),(0,Q.jsx)(`tbody`,{children:f.map(e=>(0,Q.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,Q.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,Q.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,Q.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:v(e)}),(0,Q.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.ListenerArn}),(0,Q.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,Q.jsx)(h,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>d(e),size:`sm`,variant:`ghost`,children:(0,Q.jsx)(m,{className:`size-4`})})})]},e.ListenerArn??``))})]})}),(0,Q.jsx)(ce,{isPending:o.isPending,onOpenChange:l,onSubmit:async t=>{try{await o.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn}),l(!1)}catch{}},open:c,targetGroups:g}),(0,Q.jsx)(z,{description:u?`Delete listener ${u.Protocol}:${u.Port}? This cannot be undone.`:``,isPending:s.isPending,onConfirm:async()=>{if(u?.ListenerArn)try{await s.mutateAsync(u.ListenerArn)}finally{d(void 0)}},onOpenChange:e=>!e&&d(void 0),open:u!==void 0,title:`Delete listener`})]})}function ce(e){let t=(0,Z.c)(33),{open:n,onOpenChange:r,targetGroups:i,isPending:a,onSubmit:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:H(U),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=s):s=t[0];let c=V(s),l,u;t[1]!==c||t[2]!==n?(l=()=>{n||c.reset({protocol:`HTTP`,port:80,defaultTargetGroupArn:``})},u=[n,c],t[1]=c,t[2]=n,t[3]=l,t[4]=u):(l=t[3],u=t[4]),(0,X.useEffect)(l,u);let d;t[5]!==c||t[6]!==o?(d=c.handleSubmit(o),t[5]=c,t[6]=o,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Q.jsxs)(ne,{children:[(0,Q.jsx)(M,{children:`Add listener`}),(0,Q.jsx)(A,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[8]=p):p=t[8];let m;t[9]===f?m=t[10]:(m=e=>{e.preventDefault(),f()},t[9]=f,t[10]=m);let h;t[11]!==c||t[12]!==i?(h=(0,Q.jsx)(ie,{form:c,targetGroups:i}),t[11]=c,t[12]=i,t[13]=h):h=t[13];let g;t[14]!==m||t[15]!==h?(g=(0,Q.jsx)(`form`,{className:`space-y-4`,onSubmit:m,children:h}),t[14]=m,t[15]=h,t[16]=g):g=t[16];let _;t[17]===a?_=t[18]:(_=(0,Q.jsx)(F,{disabled:a,children:`Cancel`}),t[17]=a,t[18]=_);let v=a?`Adding…`:`Add listener`,y;t[19]!==f||t[20]!==a||t[21]!==v?(y=(0,Q.jsx)(N,{disabled:a,onClick:f,children:v}),t[19]=f,t[20]=a,t[21]=v,t[22]=y):y=t[22];let b;t[23]!==y||t[24]!==_?(b=(0,Q.jsxs)(P,{children:[_,y]}),t[23]=y,t[24]=_,t[25]=b):b=t[25];let x;t[26]!==b||t[27]!==g?(x=(0,Q.jsxs)(j,{className:`sm:max-w-lg`,children:[p,g,b]}),t[26]=b,t[27]=g,t[28]=x):x=t[28];let S;return t[29]!==r||t[30]!==n||t[31]!==x?(S=(0,Q.jsx)(re,{onOpenChange:r,open:n,children:x}),t[29]=r,t[30]=n,t[31]=x,t[32]=S):S=t[32],S}function le({arn:e}){let t=o(),{data:n}=a(w(e)),{data:r}=a(C(e)),{data:l}=a(x([e])),{data:u}=a(g),d=_(),f=v(),[p,y]=(0,X.useState)(!1),b=n.LoadBalancers?.[0];if(!b?.LoadBalancerArn)return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let S=async()=>{try{await d.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{y(!1)}},T=u.Subnets??[],E=e=>{let t=T.find(t=>t.SubnetId===e);if(!t)return e;let n=s(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},D=r.Attributes??[],A=l?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),d.error&&(0,Q.jsx)(i,{error:d.error,msg:`Failed to delete load balancer`}),(0,Q.jsxs)(`div`,{className:`space-y-6`,children:[(0,Q.jsx)(ee,{actions:(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsxs)(h,{onClick:()=>y(!0),size:`sm`,variant:`destructive`,children:[(0,Q.jsx)(m,{className:`size-4`}),`Delete`]}),(0,Q.jsx)(te,{state:b.State?.Code})]}),subtitle:`Load balancer details`,title:b.LoadBalancerName??b.LoadBalancerArn}),(0,Q.jsxs)(Y,{defaultValue:`overview`,children:[(0,Q.jsxs)(K,{children:[(0,Q.jsx)(G,{value:`overview`,children:`Overview`}),(0,Q.jsx)(G,{value:`listeners`,children:`Listeners`}),(0,Q.jsx)(G,{value:`attributes`,children:`Attributes`}),(0,Q.jsx)(G,{value:`tags`,children:`Tags`})]}),(0,Q.jsxs)(J,{value:`overview`,children:[(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Load balancer`}),(0,Q.jsxs)(O.Content,{children:[(0,Q.jsx)(k,{label:`ARN`,value:b.LoadBalancerArn}),(0,Q.jsx)(k,{label:`DNS name`,value:b.DNSName}),(0,Q.jsx)(k,{label:`State`,value:b.State?.Reason?`${b.State.Code} — ${b.State.Reason}`:b.State?.Code}),(0,Q.jsx)(k,{label:`Type`,value:b.Type}),(0,Q.jsx)(k,{label:`Scheme`,value:b.Scheme}),(0,Q.jsx)(k,{label:`IP address type`,value:b.IpAddressType}),(0,Q.jsx)(k,{label:`VPC`,value:b.VpcId}),(0,Q.jsx)(k,{label:`Created at`,value:b.CreatedTime?new Date(b.CreatedTime).toLocaleString():void 0})]})]}),(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Availability zones`}),(0,Q.jsx)(O.Content,{children:(b.AvailabilityZones??[]).map(e=>(0,Q.jsx)(k,{label:e.ZoneName??`—`,value:e.SubnetId?E(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(b.SecurityGroups??[]).length>0&&(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Security groups`}),(0,Q.jsx)(O.Content,{children:(b.SecurityGroups??[]).map(e=>(0,Q.jsx)(k,{label:`Security group`,value:e},e))})]})]}),(0,Q.jsx)(J,{value:`listeners`,children:(0,Q.jsx)(se,{loadBalancerArn:e,vpcId:b.VpcId})}),(0,Q.jsx)(J,{value:`attributes`,children:(0,Q.jsx)(W,{attributes:D,error:f.error,isPending:f.isPending,isSuccess:f.isSuccess,onSubmit:t=>{f.mutate({loadBalancerArn:e,attributes:t})},specs:q})}),(0,Q.jsx)(J,{value:`tags`,children:A.length>0?(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Tags`}),(0,Q.jsx)(O.Content,{children:A.map(e=>(0,Q.jsx)(k,{label:e.Key??``,value:e.Value},e.Key??``))})]}):(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`})})]})]}),(0,Q.jsx)(z,{description:`Are you sure you want to delete load balancer "${b.LoadBalancerName??b.LoadBalancerArn}"? This action cannot be undone.`,isPending:d.isPending,onConfirm:S,onOpenChange:y,open:p,title:`Delete load balancer`})]})}function $(){let e=(0,Z.c)(2),{id:t}=D.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,Q.jsx)(le,{arn:n}),e[0]=n,e[1]=r),r}export{$ as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as a,r as o,t as s}from"./select.js";import{t as c}from"./trash-2.js";import{a as l,c as u,i as d,t as f}from"./elbv2.js";import{Da as p,Do as m,E as h,O as g,Q as _,T as v,co as y,eo as b,i as x,j as S,ro as C,so as w,w as T,ya as E,yi as D}from"./index.js";import{t as ee}from"./page-heading.js";import{t as te}from"./state-badge.js";import{n as O,t as k}from"./detail-row.js";import{a as A,i as j,l as M,n as N,o as P,r as F,s as ne,t as re}from"./alert-dialog.js";import{a as I,r as L,t as R}from"./field.js";import{t as z}from"./delete-confirmation-dialog.js";import{n as B,r as V,t as H}from"./zod.js";import{t as U}from"./elbv22.js";import{a as W,i as G,n as K,o as q,r as J,t as Y}from"./tabs.js";var X=m(y(),1),Z=b(),Q=w();function ie(e){let t=(0,Z.c)(33),{form:n,targetGroups:o}=e,{control:c,register:l,formState:u}=n,{errors:d}=u,f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Q.jsx)(I,{children:(0,Q.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[0]=f):f=t[0];let p;t[1]===c?p=t[2]:(p=(0,Q.jsxs)(R,{children:[f,(0,Q.jsx)(B,{control:c,name:`protocol`,render:oe})]}),t[1]=c,t[2]=p);let m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Q.jsx)(I,{children:(0,Q.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[3]=m):m=t[3];let h=!!d.port,g;t[4]===l?g=t[5]:(g=l(`port`,{valueAsNumber:!0}),t[4]=l,t[5]=g);let _;t[6]!==h||t[7]!==g?(_=(0,Q.jsx)(D,{"aria-invalid":h,id:`listener-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...g}),t[6]=h,t[7]=g,t[8]=_):_=t[8];let v;t[9]===d.port?v=t[10]:(v=(0,Q.jsx)(L,{errors:[d.port]}),t[9]=d.port,t[10]=v);let y;t[11]!==_||t[12]!==v?(y=(0,Q.jsxs)(R,{children:[m,_,v]}),t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Q.jsx)(I,{children:(0,Q.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[14]=b):b=t[14];let x;t[15]!==d.defaultTargetGroupArn||t[16]!==o?(x=e=>{let{field:t}=e;return(0,Q.jsxs)(s,{onValueChange:t.onChange,value:t.value??``,children:[(0,Q.jsx)(i,{"aria-invalid":!!d.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,Q.jsx)(r,{placeholder:`Select target group`})}),(0,Q.jsx)(a,{children:o.map(ae)})]})},t[15]=d.defaultTargetGroupArn,t[16]=o,t[17]=x):x=t[17];let S;t[18]!==c||t[19]!==x?(S=(0,Q.jsx)(B,{control:c,name:`defaultTargetGroupArn`,render:x}),t[18]=c,t[19]=x,t[20]=S):S=t[20];let C;t[21]===d.defaultTargetGroupArn?C=t[22]:(C=(0,Q.jsx)(L,{errors:[d.defaultTargetGroupArn]}),t[21]=d.defaultTargetGroupArn,t[22]=C);let w;t[23]===o.length?w=t[24]:(w=o.length===0&&(0,Q.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[23]=o.length,t[24]=w);let T;t[25]!==S||t[26]!==C||t[27]!==w?(T=(0,Q.jsxs)(R,{children:[b,S,C,w]}),t[25]=S,t[26]=C,t[27]=w,t[28]=T):T=t[28];let E;return t[29]!==T||t[30]!==p||t[31]!==y?(E=(0,Q.jsxs)(Q.Fragment,{children:[p,y,T]}),t[29]=T,t[30]=p,t[31]=y,t[32]=E):E=t[32],E}function ae(e){return(0,Q.jsxs)(o,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function oe(e){let{field:t}=e;return(0,Q.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,Q.jsx)(i,{className:`w-full`,id:`listener-protocol`,children:(0,Q.jsx)(r,{})}),(0,Q.jsx)(a,{children:(0,Q.jsx)(o,{value:`HTTP`,children:`HTTP`})})]})}function se({loadBalancerArn:n,vpcId:r}){let{data:i}=t(T(n)),{data:a}=t(S),o=f(),s=d(),[l,u]=(0,X.useState)(!1),[p,m]=(0,X.useState)(),h=i.Listeners??[],g=a.TargetGroups??[],_=g.filter(e=>e.VpcId===r),v=new Map;for(let e of g)e.TargetGroupArn&&e.TargetGroupName&&v.set(e.TargetGroupArn,e.TargetGroupName);let y=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=v.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,Q.jsxs)(`div`,{className:`space-y-3`,children:[(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Listeners cannot be edited. Delete and re-add to change.`}),o.error&&(0,Q.jsx)(e,{error:o.error,msg:`Failed to create listener`}),s.error&&(0,Q.jsx)(e,{error:s.error,msg:`Failed to delete listener`}),(0,Q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[h.length,` listener`,h.length===1?``:`s`]}),(0,Q.jsx)(E,{onClick:()=>u(!0),size:`sm`,children:`Add listener`})]}),h.length===0?(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,Q.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,Q.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,Q.jsx)(`thead`,{children:(0,Q.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,Q.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,Q.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,Q.jsx)(`tbody`,{children:h.map(e=>(0,Q.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,Q.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,Q.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,Q.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:y(e)}),(0,Q.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.ListenerArn}),(0,Q.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,Q.jsx)(E,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>m(e),size:`sm`,variant:`ghost`,children:(0,Q.jsx)(c,{className:`size-4`})})})]},e.ListenerArn??``))})]})}),(0,Q.jsx)(ce,{isPending:o.isPending,onOpenChange:u,onSubmit:async e=>{try{await o.mutateAsync({loadBalancerArn:n,protocol:e.protocol,port:e.port,defaultTargetGroupArn:e.defaultTargetGroupArn}),u(!1)}catch{}},open:l,targetGroups:_}),(0,Q.jsx)(z,{description:p?`Delete listener ${p.Protocol}:${p.Port}? This cannot be undone.`:``,isPending:s.isPending,onConfirm:async()=>{if(p?.ListenerArn)try{await s.mutateAsync(p.ListenerArn)}finally{m(void 0)}},onOpenChange:e=>!e&&m(void 0),open:p!==void 0,title:`Delete listener`})]})}function ce(e){let t=(0,Z.c)(33),{open:n,onOpenChange:r,targetGroups:i,isPending:a,onSubmit:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:H(U),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=s):s=t[0];let c=V(s),l,u;t[1]!==c||t[2]!==n?(l=()=>{n||c.reset({protocol:`HTTP`,port:80,defaultTargetGroupArn:``})},u=[n,c],t[1]=c,t[2]=n,t[3]=l,t[4]=u):(l=t[3],u=t[4]),(0,X.useEffect)(l,u);let d;t[5]!==c||t[6]!==o?(d=c.handleSubmit(o),t[5]=c,t[6]=o,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Q.jsxs)(ne,{children:[(0,Q.jsx)(M,{children:`Add listener`}),(0,Q.jsx)(A,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[8]=p):p=t[8];let m;t[9]===f?m=t[10]:(m=e=>{e.preventDefault(),f()},t[9]=f,t[10]=m);let h;t[11]!==c||t[12]!==i?(h=(0,Q.jsx)(ie,{form:c,targetGroups:i}),t[11]=c,t[12]=i,t[13]=h):h=t[13];let g;t[14]!==m||t[15]!==h?(g=(0,Q.jsx)(`form`,{className:`space-y-4`,onSubmit:m,children:h}),t[14]=m,t[15]=h,t[16]=g):g=t[16];let _;t[17]===a?_=t[18]:(_=(0,Q.jsx)(F,{disabled:a,children:`Cancel`}),t[17]=a,t[18]=_);let v=a?`Adding…`:`Add listener`,y;t[19]!==f||t[20]!==a||t[21]!==v?(y=(0,Q.jsx)(N,{disabled:a,onClick:f,children:v}),t[19]=f,t[20]=a,t[21]=v,t[22]=y):y=t[22];let b;t[23]!==y||t[24]!==_?(b=(0,Q.jsxs)(P,{children:[_,y]}),t[23]=y,t[24]=_,t[25]=b):b=t[25];let x;t[26]!==b||t[27]!==g?(x=(0,Q.jsxs)(j,{className:`sm:max-w-lg`,children:[p,g,b]}),t[26]=b,t[27]=g,t[28]=x):x=t[28];let S;return t[29]!==r||t[30]!==n||t[31]!==x?(S=(0,Q.jsx)(re,{onOpenChange:r,open:n,children:x}),t[29]=r,t[30]=n,t[31]=x,t[32]=S):S=t[32],S}function le({arn:r}){let i=C(),{data:a}=t(h(r)),{data:o}=t(v(r)),{data:s}=t(g([r])),{data:d}=t(_),f=l(),m=u(),[y,b]=(0,X.useState)(!1),x=a.LoadBalancers?.[0];if(!x?.LoadBalancerArn)return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let S=async()=>{try{await f.mutateAsync(r),i({to:`/ec2/describe-load-balancers`})}finally{b(!1)}},w=d.Subnets??[],T=e=>{let t=w.find(t=>t.SubnetId===e);if(!t)return e;let n=p(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},D=o.Attributes??[],A=s?.TagDescriptions?.find(e=>e.ResourceArn===r)?.Tags??[];return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),f.error&&(0,Q.jsx)(e,{error:f.error,msg:`Failed to delete load balancer`}),(0,Q.jsxs)(`div`,{className:`space-y-6`,children:[(0,Q.jsx)(ee,{actions:(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsxs)(E,{onClick:()=>b(!0),size:`sm`,variant:`destructive`,children:[(0,Q.jsx)(c,{className:`size-4`}),`Delete`]}),(0,Q.jsx)(te,{state:x.State?.Code})]}),subtitle:`Load balancer details`,title:x.LoadBalancerName??x.LoadBalancerArn}),(0,Q.jsxs)(Y,{defaultValue:`overview`,children:[(0,Q.jsxs)(K,{children:[(0,Q.jsx)(G,{value:`overview`,children:`Overview`}),(0,Q.jsx)(G,{value:`listeners`,children:`Listeners`}),(0,Q.jsx)(G,{value:`attributes`,children:`Attributes`}),(0,Q.jsx)(G,{value:`tags`,children:`Tags`})]}),(0,Q.jsxs)(J,{value:`overview`,children:[(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Load balancer`}),(0,Q.jsxs)(O.Content,{children:[(0,Q.jsx)(k,{label:`ARN`,value:x.LoadBalancerArn}),(0,Q.jsx)(k,{label:`DNS name`,value:x.DNSName}),(0,Q.jsx)(k,{label:`State`,value:x.State?.Reason?`${x.State.Code} — ${x.State.Reason}`:x.State?.Code}),(0,Q.jsx)(k,{label:`Type`,value:x.Type}),(0,Q.jsx)(k,{label:`Scheme`,value:x.Scheme}),(0,Q.jsx)(k,{label:`IP address type`,value:x.IpAddressType}),(0,Q.jsx)(k,{label:`VPC`,value:x.VpcId}),(0,Q.jsx)(k,{label:`Created at`,value:x.CreatedTime?new Date(x.CreatedTime).toLocaleString():void 0})]})]}),(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Availability zones`}),(0,Q.jsx)(O.Content,{children:(x.AvailabilityZones??[]).map(e=>(0,Q.jsx)(k,{label:e.ZoneName??`—`,value:e.SubnetId?T(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(x.SecurityGroups??[]).length>0&&(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Security groups`}),(0,Q.jsx)(O.Content,{children:(x.SecurityGroups??[]).map(e=>(0,Q.jsx)(k,{label:`Security group`,value:e},e))})]})]}),(0,Q.jsx)(J,{value:`listeners`,children:(0,Q.jsx)(se,{loadBalancerArn:r,vpcId:x.VpcId})}),(0,Q.jsx)(J,{value:`attributes`,children:(0,Q.jsx)(W,{attributes:D,error:m.error,isPending:m.isPending,isSuccess:m.isSuccess,onSubmit:e=>{m.mutate({loadBalancerArn:r,attributes:e})},specs:q})}),(0,Q.jsx)(J,{value:`tags`,children:A.length>0?(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Tags`}),(0,Q.jsx)(O.Content,{children:A.map(e=>(0,Q.jsx)(k,{label:e.Key??``,value:e.Value},e.Key??``))})]}):(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`})})]})]}),(0,Q.jsx)(z,{description:`Are you sure you want to delete load balancer "${x.LoadBalancerName??x.LoadBalancerArn}"? This action cannot be undone.`,isPending:f.isPending,onConfirm:S,onOpenChange:b,open:y,title:`Delete load balancer`})]})}function $(){let e=(0,Z.c)(2),{id:t}=x.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,Q.jsx)(le,{arn:n}),e[0]=n,e[1]=r),r}export{$ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js index d7b2c594e..47e555d8d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./link.js";import{t as o}from"./useNavigate.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{g as u}from"./ec2.js";import{l as d,o as f}from"./ec22.js";import{a as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./state-badge.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./delete-confirmation-dialog.js";var y=e(n()),b=t();function x(){let{id:e}=p.useParams(),t=o(),{data:n}=i(d(e)),{data:x}=i(f),S=u(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(r,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(h,{state:T.State})]}),subtitle:`EC2 Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(v,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{g as i}from"./ec2.js";import{Do as a,V as o,W as s,a as c,co as l,no as u,ro as d,so as f,ya as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./state-badge.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./delete-confirmation-dialog.js";var y=a(l()),b=f();function x(){let{id:a}=c.useParams(),l=d(),{data:f}=t(s(a)),{data:x}=t(o),S=i(),[C,w]=(0,y.useState)(!1),T=f.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(e,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(p,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{className:`size-4`}),`Delete`]}),(0,b.jsx)(h,{state:T.State})]}),subtitle:`EC2 Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(u,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(v,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),l({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js index 66a02343d..0a44c4f7f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./link.js";import{t as o}from"./useNavigate.js";import{t as s}from"./back-link.js";import{a as c,i as l,n as u,r as d,t as f}from"./select.js";import{t as p}from"./plus.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{O as g,_,k as v,n as y,r as b}from"./ec2.js";import{f as x}from"./ec22.js";import{L as S,R as C,o as w}from"./index.js";import{t as T}from"./page-heading.js";import{n as E,t as D}from"./detail-row.js";import{i as O,l as k,n as A,o as j,r as M,s as N,t as P}from"./alert-dialog.js";import{a as F,r as I,t as L}from"./field.js";import{t as R}from"./delete-confirmation-dialog.js";import{n as z,r as B,t as V}from"./zod.js";import{f as H}from"./ec23.js";var U=e(n()),W=t();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function q({open:e,onOpenChange:t,direction:n,groupId:i}){let a=b(),o=y(),s=n===`ingress`?a:o,{control:p,handleSubmit:m,register:h,reset:g,watch:_,formState:{errors:v}}=B({resolver:V(H),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),x=_(`ipProtocol`),C=x===`-1`||x===`icmp`;return(0,W.jsx)(P,{onOpenChange:t,open:e,children:(0,W.jsxs)(O,{children:[(0,W.jsx)(N,{children:(0,W.jsxs)(k,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),s.error&&(0,W.jsx)(r,{error:s.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:m(async e=>{let n={groupId:i,ipProtocol:e.ipProtocol,fromPort:C?-1:e.fromPort,toPort:C?-1:e.toPort,cidrIp:e.cidrIp};await s.mutateAsync(n),g(),t(!1)}),children:[(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(z,{control:p,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(c,{})}),(0,W.jsxs)(u,{children:[(0,W.jsx)(d,{value:`tcp`,children:`TCP`}),(0,W.jsx)(d,{value:`udp`,children:`UDP`}),(0,W.jsx)(d,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(d,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(I,{errors:[v.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(S,{"aria-invalid":!!v.fromPort,disabled:C,id:`fromPort`,type:`number`,...h(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(I,{errors:[v.fromPort]})]}),(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(S,{"aria-invalid":!!v.toPort,disabled:C,id:`toPort`,type:`number`,...h(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(I,{errors:[v.toPort]})]})]}),(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(S,{"aria-invalid":!!v.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...h(`cidrIp`)}),(0,W.jsx)(I,{errors:[v.cidrIp]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(M,{onClick:()=>{g(),s.reset()},children:`Cancel`}),(0,W.jsx)(A,{disabled:s.isPending,form:`add-rule-form`,type:`submit`,children:s.isPending?`Adding…`:`Add Rule`})]})]})})}function J({rule:e,cidr:t,groupId:n,direction:i}){let a=v(),o=g(),s=i===`ingress`?a:o;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[i===`ingress`?`Source`:`Destination`,`:`,` `]}),t]})]}),(0,W.jsx)(h,{disabled:s.isPending,onClick:async()=>{try{await s.mutateAsync({groupId:n,ipProtocol:e.IpProtocol??`-1`,fromPort:e.FromPort??-1,toPort:e.ToPort??-1,cidrIp:t})}catch{}},size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(C,{className:`size-3`})})]}),s.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(r,{error:s.error,msg:`Failed to remove rule`})})]})}function Y(){let{id:e}=w.useParams(),t=o(),{data:n}=i(x(e)),c=n.SecurityGroups?.[0],l=_(),[u,d]=(0,U.useState)(!1),[f,g]=(0,U.useState)(!1),[v,y]=(0,U.useState)(!1),b=async()=>{try{await l.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{d(!1)}};if(!c?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let S=c.IpPermissions??[],C=c.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),l.error&&(0,W.jsx)(r,{error:l.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(T,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(h,{onClick:()=>d(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(m,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:c.GroupName?`${c.GroupId} (${c.GroupName})`:c.GroupId}),(0,W.jsxs)(E,{children:[(0,W.jsx)(E.Header,{children:`Security Group Information`}),(0,W.jsxs)(E.Content,{children:[(0,W.jsx)(D,{label:`Group ID`,value:c.GroupId}),(0,W.jsx)(D,{label:`Group Name`,value:c.GroupName}),(0,W.jsx)(D,{label:`Description`,value:c.Description}),(0,W.jsx)(D,{label:`VPC ID`,value:c.VpcId?(0,W.jsx)(a,{className:`text-primary hover:underline`,params:{id:c.VpcId},to:`/ec2/describe-vpcs/$id`,children:c.VpcId}):`—`}),(0,W.jsx)(D,{label:`Owner ID`,value:c.OwnerId})]})]}),(0,W.jsxs)(E,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,S.length,`)`]}),(0,W.jsxs)(h,{onClick:()=>g(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(p,{className:`size-4`}),`Add Rule`]})]}),S.length>0?(0,W.jsx)(`div`,{children:S.map(e=>(e.IpRanges??[]).map(t=>(0,W.jsx)(J,{cidr:t.CidrIp??``,direction:`ingress`,groupId:c.GroupId??``,rule:e},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.CidrIp}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(E,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,C.length,`)`]}),(0,W.jsxs)(h,{onClick:()=>y(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(p,{className:`size-4`}),`Add Rule`]})]}),C.length>0?(0,W.jsx)(`div`,{children:C.map(e=>(e.IpRanges??[]).map(t=>(0,W.jsx)(J,{cidr:t.CidrIp??``,direction:`egress`,groupId:c.GroupId??``,rule:e},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.CidrIp}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(R,{description:`Are you sure you want to delete the security group "${c.GroupId}"? This action cannot be undone.`,isPending:l.isPending,onConfirm:b,onOpenChange:d,open:u,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:c.GroupId,onOpenChange:g,open:f}),(0,W.jsx)(q,{direction:`egress`,groupId:c.GroupId,onOpenChange:y,open:v})]})}export{Y as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as a,r as o,t as s}from"./select.js";import{t as c}from"./plus.js";import{t as l}from"./trash-2.js";import{O as u,_ as d,k as f,n as p,r as m}from"./ec2.js";import{Do as h,Ia as g,co as _,no as v,o as y,q as b,ro as x,so as S,ya as C,yi as w}from"./index.js";import{t as T}from"./page-heading.js";import{n as E,t as D}from"./detail-row.js";import{i as O,l as k,n as A,o as j,r as M,s as N,t as P}from"./alert-dialog.js";import{a as F,r as I,t as L}from"./field.js";import{t as R}from"./delete-confirmation-dialog.js";import{n as z,r as B,t as V}from"./zod.js";import{f as H}from"./ec22.js";var U=h(_()),W=S();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function q({open:t,onOpenChange:n,direction:c,groupId:l}){let u=m(),d=p(),f=c===`ingress`?u:d,{control:h,handleSubmit:g,register:_,reset:v,watch:y,formState:{errors:b}}=B({resolver:V(H),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),x=y(`ipProtocol`),S=x===`-1`||x===`icmp`;return(0,W.jsx)(P,{onOpenChange:n,open:t,children:(0,W.jsxs)(O,{children:[(0,W.jsx)(N,{children:(0,W.jsxs)(k,{children:[`Add `,c===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),f.error&&(0,W.jsx)(e,{error:f.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:g(async e=>{let t={groupId:l,ipProtocol:e.ipProtocol,fromPort:S?-1:e.fromPort,toPort:S?-1:e.toPort,cidrIp:e.cidrIp};await f.mutateAsync(t),v(),n(!1)}),children:[(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(z,{control:h,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(s,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(i,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(r,{})}),(0,W.jsxs)(a,{children:[(0,W.jsx)(o,{value:`tcp`,children:`TCP`}),(0,W.jsx)(o,{value:`udp`,children:`UDP`}),(0,W.jsx)(o,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(o,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(I,{errors:[b.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(w,{"aria-invalid":!!b.fromPort,disabled:S,id:`fromPort`,type:`number`,..._(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(I,{errors:[b.fromPort]})]}),(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(w,{"aria-invalid":!!b.toPort,disabled:S,id:`toPort`,type:`number`,..._(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(I,{errors:[b.toPort]})]})]}),(0,W.jsxs)(L,{children:[(0,W.jsx)(F,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[c===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(w,{"aria-invalid":!!b.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,..._(`cidrIp`)}),(0,W.jsx)(I,{errors:[b.cidrIp]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(M,{onClick:()=>{v(),f.reset()},children:`Cancel`}),(0,W.jsx)(A,{disabled:f.isPending,form:`add-rule-form`,type:`submit`,children:f.isPending?`Adding…`:`Add Rule`})]})]})})}function J({rule:t,cidr:n,groupId:r,direction:i}){let a=f(),o=u(),s=i===`ingress`?a:o;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(t.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(t.FromPort,t.ToPort,t.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[i===`ingress`?`Source`:`Destination`,`:`,` `]}),n]})]}),(0,W.jsx)(C,{disabled:s.isPending,onClick:async()=>{try{await s.mutateAsync({groupId:r,ipProtocol:t.IpProtocol??`-1`,fromPort:t.FromPort??-1,toPort:t.ToPort??-1,cidrIp:n})}catch{}},size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(g,{className:`size-3`})})]}),s.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(e,{error:s.error,msg:`Failed to remove rule`})})]})}function Y(){let{id:r}=y.useParams(),i=x(),{data:a}=t(b(r)),o=a.SecurityGroups?.[0],s=d(),[u,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(!1),[h,g]=(0,U.useState)(!1),_=async()=>{try{await s.mutateAsync(r),i({to:`/ec2/describe-security-groups`})}finally{f(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(n,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let S=o.IpPermissions??[],w=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(n,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(e,{error:s.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(T,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(C,{onClick:()=>f(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(l,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(E,{children:[(0,W.jsx)(E.Header,{children:`Security Group Information`}),(0,W.jsxs)(E.Content,{children:[(0,W.jsx)(D,{label:`Group ID`,value:o.GroupId}),(0,W.jsx)(D,{label:`Group Name`,value:o.GroupName}),(0,W.jsx)(D,{label:`Description`,value:o.Description}),(0,W.jsx)(D,{label:`VPC ID`,value:o.VpcId?(0,W.jsx)(v,{className:`text-primary hover:underline`,params:{id:o.VpcId},to:`/ec2/describe-vpcs/$id`,children:o.VpcId}):`—`}),(0,W.jsx)(D,{label:`Owner ID`,value:o.OwnerId})]})]}),(0,W.jsxs)(E,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,S.length,`)`]}),(0,W.jsxs)(C,{onClick:()=>m(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(c,{className:`size-4`}),`Add Rule`]})]}),S.length>0?(0,W.jsx)(`div`,{children:S.map(e=>(e.IpRanges??[]).map(t=>(0,W.jsx)(J,{cidr:t.CidrIp??``,direction:`ingress`,groupId:o.GroupId??``,rule:e},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.CidrIp}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(E,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,w.length,`)`]}),(0,W.jsxs)(C,{onClick:()=>g(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(c,{className:`size-4`}),`Add Rule`]})]}),w.length>0?(0,W.jsx)(`div`,{children:w.map(e=>(e.IpRanges??[]).map(t=>(0,W.jsx)(J,{cidr:t.CidrIp??``,direction:`egress`,groupId:o.GroupId??``,rule:e},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.CidrIp}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(R,{description:`Are you sure you want to delete the security group "${o.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:_,onOpenChange:f,open:u,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:m,open:p}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:g,open:h})]})}export{Y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js index e4df6c8e1..ce4517c89 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./link.js";import{t as o}from"./useNavigate.js";import{z as s}from"./SignatureV4.js";import{t as c}from"./back-link.js";import{t as l}from"./copy.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{i as f,v as p}from"./ec2.js";import{d as m,m as h}from"./ec22.js";import{L as g,s as _}from"./index.js";import{t as v}from"./page-heading.js";import{t as y}from"./state-badge.js";import{n as b,t as x}from"./detail-row.js";import{a as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./alert-dialog.js";import{a as A,t as j}from"./field.js";import{t as M}from"./delete-confirmation-dialog.js";var N=e(n()),P=t();function F(){let{id:e}=_.useParams(),t=o(),{data:n}=i(h(e)),{data:F}=i(m),I=n.Snapshots?.[0],L=p(),R=f(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(c,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=s(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(c,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(r,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(r,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(d,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(u,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(d,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(l,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(y,{state:I.State})]}),subtitle:`EC2 Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(b,{children:[(0,P.jsx)(b.Header,{children:`Snapshot Information`}),(0,P.jsxs)(b.Content,{children:[(0,P.jsx)(x,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(x,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(x,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(x,{label:`State`,value:I.State}),(0,P.jsx)(x,{label:`Description`,value:I.Description}),(0,P.jsx)(x,{label:`Progress`,value:I.Progress}),(0,P.jsx)(x,{label:`Start Time`,value:Y}),(0,P.jsx)(x,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(x,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(M,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(k,{onOpenChange:H,open:V,children:(0,P.jsxs)(C,{children:[(0,P.jsxs)(O,{children:[(0,P.jsx)(w,{children:`Copy Snapshot`}),(0,P.jsx)(S,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(A,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(g,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(E,{children:[(0,P.jsx)(D,{children:`Cancel`}),(0,P.jsx)(T,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./copy.js";import{t as i}from"./trash-2.js";import{i as a,v as o}from"./ec2.js";import{Do as s,K as c,Ta as l,Y as u,co as d,no as f,ro as p,s as m,so as h,ya as g,yi as _}from"./index.js";import{t as v}from"./page-heading.js";import{t as y}from"./state-badge.js";import{n as b,t as x}from"./detail-row.js";import{a as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./alert-dialog.js";import{a as A,t as j}from"./field.js";import{t as M}from"./delete-confirmation-dialog.js";var N=s(d()),P=h();function F(){let{id:s}=m.useParams(),d=p(),{data:h}=t(u(s)),{data:F}=t(c),I=h.Snapshots?.[0],L=o(),R=a(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(s),d({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:s,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=l(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(e,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(e,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(g,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(i,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(g,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(r,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(y,{state:I.State})]}),subtitle:`EC2 Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(b,{children:[(0,P.jsx)(b.Header,{children:`Snapshot Information`}),(0,P.jsxs)(b.Content,{children:[(0,P.jsx)(x,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(x,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(f,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(x,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(x,{label:`State`,value:I.State}),(0,P.jsx)(x,{label:`Description`,value:I.Description}),(0,P.jsx)(x,{label:`Progress`,value:I.Progress}),(0,P.jsx)(x,{label:`Start Time`,value:Y}),(0,P.jsx)(x,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(x,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(M,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(k,{onOpenChange:H,open:V,children:(0,P.jsxs)(C,{children:[(0,P.jsxs)(O,{children:[(0,P.jsx)(w,{children:`Copy Snapshot`}),(0,P.jsx)(S,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(A,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(_,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(E,{children:[(0,P.jsx)(D,{children:`Cancel`}),(0,P.jsx)(T,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js index a13228db5..7ce4fb850 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./link.js";import{t as o}from"./useNavigate.js";import{V as s}from"./SignatureV4.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{y as d}from"./ec2.js";import{g as f}from"./ec22.js";import{c as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./state-badge.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./delete-confirmation-dialog.js";var y=e(n()),b=t();function x(){let{id:e}=p.useParams(),t=o(),{data:n}=i(f(e)),x=n.Subnets?.[0],S=d(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=s(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(r,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(u,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(l,{className:`size-4`}),`Delete`]}),(0,b.jsx)(h,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(v,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{y as i}from"./ec2.js";import{Da as a,Do as o,Z as s,c,co as l,no as u,ro as d,so as f,ya as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./state-badge.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./delete-confirmation-dialog.js";var y=o(l()),b=f();function x(){let{id:o}=c.useParams(),l=d(),{data:f}=t(s(o)),x=f.Subnets?.[0],S=i(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(o),l({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=a(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(e,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(p,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(r,{className:`size-4`}),`Delete`]}),(0,b.jsx)(h,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(u,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(v,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js index e107657a1..2aa0258e8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{t as s}from"./useNavigate.js";import{I as c,V as l}from"./SignatureV4.js";import{t as u}from"./back-link.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{o as p}from"./ec22.js";import{l as m,o as h,s as g,u as _}from"./elbv2.js";import{a as v,l as y,o as b,s as x}from"./elbv22.js";import{L as S,l as C}from"./index.js";import{t as w}from"./page-heading.js";import{n as T,t as E}from"./detail-row.js";import{a as D,i as O,l as k,n as A,o as j,r as M,s as N,t as P}from"./alert-dialog.js";import{t as F}from"./delete-confirmation-dialog.js";import{a as I,i as L,n as R,r as z,s as B,t as V}from"./tabs.js";var H=r(),U=e(n(),1),W=t();function G(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function K(e){let t=(0,H.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={},t[0]=c):c=t[0];let[u,d]=(0,U.useState)(c),[f,p]=(0,U.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,U.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,b;t[6]!==s||t[7]!==u?(b=()=>{let e=Object.entries(u).filter(q);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=G(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),s(t)},t[6]=s,t[7]=u,t[8]=b):b=t[8];let x=b,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,W.jsx)(k,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,W.jsxs)(N,{children:[C,(0,W.jsxs)(D,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,W.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=l(e.Tags);return(0,W.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,W.jsx)(`input`,{checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,W.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,W.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,W.jsx)(S,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let E;t[16]===f?E=t[17]:(E=f&&(0,W.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=E);let F;t[18]===o?F=t[19]:(F=(0,W.jsx)(M,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==x||t[21]!==o||t[22]!==I?(L=(0,W.jsx)(A,{disabled:o,onClick:x,children:I}),t[20]=x,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,W.jsxs)(j,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==E||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,W.jsxs)(O,{className:`sm:max-w-lg`,children:[w,T,E,R]}),t[27]=E,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,W.jsx)(P,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function q(e){let[,t]=e;return t.checked&&t!==void 0}var J=5e3,Y=new Set([`healthy`]),X=new Set([`unhealthy`,`unavailable`]),Z=new Set([`initial`,`draining`]);function Q(e){return e&&Y.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&X.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&Z.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function $(e){return`${e.Id??``}:${e.Port??``}`}function ee({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:s}=o(p),{data:l,isLoading:u,error:m}=a({...y(e),refetchInterval:r?J:!1,refetchIntervalInBackground:!1}),h=_(),v=g(),[b,x]=(0,U.useState)(!1),[S,C]=(0,U.useState)(),w=(s.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=l?.TargetHealthDescriptions??[];return(0,W.jsxs)(`div`,{className:`space-y-3`,children:[h.error&&(0,W.jsx)(i,{error:h.error,msg:`Failed to register targets`}),v.error&&(0,W.jsx)(i,{error:v.error,msg:`Failed to deregister target`}),m&&(0,W.jsx)(i,{error:m,msg:`Failed to load target health`}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:u?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,W.jsx)(f,{onClick:()=>x(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,W.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,W.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,W.jsx)(`thead`,{children:(0,W.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`})]})}),(0,W.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,W.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,W.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,W.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,W.jsx)(`td`,{className:`px-4 py-2`,children:(0,W.jsx)(`span`,{className:c(`rounded-full px-2 py-0.5 text-xs`,Q(n)),children:n??`unknown`})}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,W.jsx)(f,{"aria-label":`Deregister ${t.Id}`,onClick:()=>C(t),size:`sm`,variant:`ghost`,children:(0,W.jsx)(d,{className:`size-4`})})})]},$(t))})})]})}),(0,W.jsx)(K,{defaultPort:n,instances:w,isPending:h.isPending,onConfirm:async t=>{try{await h.mutateAsync({targetGroupArn:e,targets:t}),x(!1)}catch{}},onOpenChange:x,open:b}),(0,W.jsx)(F,{description:S?`Deregister ${S.Id}${S.Port?`:${S.Port}`:``} from this target group?`:``,isPending:v.isPending,onConfirm:async()=>{if(S?.Id)try{await v.mutateAsync({targetGroupArn:e,targets:[{id:S.Id,port:S.Port}]})}finally{C(void 0)}},onOpenChange:e=>!e&&C(void 0),open:S!==void 0,title:`Deregister target`})]})}function te({arn:e}){let t=s(),{data:n}=o(x(e)),{data:r}=o(b(e)),{data:a}=o(v([e])),c=h(),l=m(),[p,g]=(0,U.useState)(!1),[_,y]=(0,U.useState)(`overview`),S=n.TargetGroups?.[0];if(!S?.TargetGroupArn)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(u,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let C=async()=>{try{await c.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{g(!1)}},D=r.Attributes??[],O=a?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(u,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),c.error&&(0,W.jsx)(i,{error:c.error,msg:`Failed to delete target group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(w,{actions:(0,W.jsxs)(f,{onClick:()=>g(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(d,{className:`size-4`}),`Delete`]}),subtitle:`Target group details`,title:S.TargetGroupName??S.TargetGroupArn}),(0,W.jsxs)(V,{onValueChange:y,value:_,children:[(0,W.jsxs)(R,{children:[(0,W.jsx)(L,{value:`overview`,children:`Overview`}),(0,W.jsx)(L,{value:`targets`,children:`Targets`}),(0,W.jsx)(L,{value:`health-checks`,children:`Health checks`}),(0,W.jsx)(L,{value:`attributes`,children:`Attributes`}),(0,W.jsx)(L,{value:`tags`,children:`Tags`})]}),(0,W.jsx)(z,{value:`overview`,children:(0,W.jsxs)(T,{children:[(0,W.jsx)(T.Header,{children:`Target group`}),(0,W.jsxs)(T.Content,{children:[(0,W.jsx)(E,{label:`ARN`,value:S.TargetGroupArn}),(0,W.jsx)(E,{label:`Protocol`,value:S.Protocol}),(0,W.jsx)(E,{label:`Port`,value:S.Port?.toString()}),(0,W.jsx)(E,{label:`VPC`,value:S.VpcId}),(0,W.jsx)(E,{label:`Target type`,value:S.TargetType}),(0,W.jsx)(E,{label:`Protocol version`,value:S.ProtocolVersion}),(0,W.jsx)(E,{label:`IP address type`,value:S.IpAddressType})]})]})}),(0,W.jsx)(z,{value:`targets`,children:(0,W.jsx)(ee,{defaultPort:S.Port??80,isActive:_===`targets`,targetGroupArn:S.TargetGroupArn,vpcId:S.VpcId})}),(0,W.jsxs)(z,{value:`health-checks`,children:[(0,W.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,W.jsxs)(T,{children:[(0,W.jsx)(T.Header,{children:`Health check`}),(0,W.jsxs)(T.Content,{children:[(0,W.jsx)(E,{label:`Enabled`,value:S.HealthCheckEnabled===void 0?void 0:String(S.HealthCheckEnabled)}),(0,W.jsx)(E,{label:`Protocol`,value:S.HealthCheckProtocol}),(0,W.jsx)(E,{label:`Path`,value:S.HealthCheckPath}),(0,W.jsx)(E,{label:`Port`,value:S.HealthCheckPort}),(0,W.jsx)(E,{label:`Interval (s)`,value:S.HealthCheckIntervalSeconds?.toString()}),(0,W.jsx)(E,{label:`Timeout (s)`,value:S.HealthCheckTimeoutSeconds?.toString()}),(0,W.jsx)(E,{label:`Healthy threshold`,value:S.HealthyThresholdCount?.toString()}),(0,W.jsx)(E,{label:`Unhealthy threshold`,value:S.UnhealthyThresholdCount?.toString()}),(0,W.jsx)(E,{label:`Matcher (HTTP codes)`,value:S.Matcher?.HttpCode??S.Matcher?.GrpcCode})]})]})]}),(0,W.jsx)(z,{value:`attributes`,children:(0,W.jsx)(I,{attributes:D,error:l.error,isPending:l.isPending,isSuccess:l.isSuccess,onSubmit:t=>{l.mutate({targetGroupArn:e,attributes:t})},specs:B})}),(0,W.jsx)(z,{value:`tags`,children:O.length>0?(0,W.jsxs)(T,{children:[(0,W.jsx)(T.Header,{children:`Tags`}),(0,W.jsx)(T.Content,{children:O.map(e=>(0,W.jsx)(E,{label:e.Key??``,value:e.Value},e.Key??``))})]}):(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`})})]})]}),(0,W.jsx)(F,{description:`Are you sure you want to delete target group "${S.TargetGroupName??S.TargetGroupArn}"? This action cannot be undone.`,isPending:c.isPending,onConfirm:C,onOpenChange:g,open:p,title:`Delete target group`})]})}function ne(){let e=(0,H.c)(2),{id:t}=C.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,W.jsx)(te,{arn:n}),e[0]=n,e[1]=r),r}export{ne as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useQuery.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{t as i}from"./trash-2.js";import{l as a,o,s,u as c}from"./elbv2.js";import{A as l,Da as u,Do as d,M as f,O as p,Sa as m,V as h,co as g,eo as _,k as v,l as y,ro as b,so as x,ya as S,yi as C}from"./index.js";import{t as w}from"./page-heading.js";import{n as T,t as E}from"./detail-row.js";import{a as D,i as O,l as k,n as A,o as j,r as M,s as N,t as P}from"./alert-dialog.js";import{t as F}from"./delete-confirmation-dialog.js";import{a as I,i as L,n as R,r as z,s as B,t as V}from"./tabs.js";var H=_(),U=d(g(),1),W=x();function G(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function K(e){let t=(0,H.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={},t[0]=c):c=t[0];let[l,d]=(0,U.useState)(c),[f,p]=(0,U.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,U.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,b;t[6]!==s||t[7]!==l?(b=()=>{let e=Object.entries(l).filter(q);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=G(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),s(t)},t[6]=s,t[7]=l,t[8]=b):b=t[8];let x=b,S;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,W.jsx)(k,{children:`Register targets`}),t[9]=S):S=t[9];let w;t[10]===a?w=t[11]:(w=(0,W.jsxs)(N,{children:[S,(0,W.jsxs)(D,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==l?(T=i.length===0?(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,W.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=l[t],r=n?.checked??!1,i=u(e.Tags);return(0,W.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,W.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,W.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,W.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,W.jsx)(C,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=l,t[15]=T):T=t[15];let E;t[16]===f?E=t[17]:(E=f&&(0,W.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=E);let F;t[18]===o?F=t[19]:(F=(0,W.jsx)(M,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==x||t[21]!==o||t[22]!==I?(L=(0,W.jsx)(A,{disabled:o,onClick:x,children:I}),t[20]=x,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,W.jsxs)(j,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==E||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,W.jsxs)(O,{className:`sm:max-w-lg`,children:[w,T,E,R]}),t[27]=E,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,W.jsx)(P,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function q(e){let[,t]=e;return t.checked&&t!==void 0}var J=5e3,Y=new Set([`healthy`]),X=new Set([`unhealthy`,`unavailable`]),Z=new Set([`initial`,`draining`]);function Q(e){return e&&Y.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&X.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&Z.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function $(e){return`${e.Id??``}:${e.Port??``}`}function ee({targetGroupArn:r,vpcId:a,defaultPort:o,isActive:l}){let{data:u}=n(h),{data:d,isLoading:p,error:g}=t({...f(r),refetchInterval:l?J:!1,refetchIntervalInBackground:!1}),_=c(),v=s(),[y,b]=(0,U.useState)(!1),[x,C]=(0,U.useState)(),w=(u.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===a&&e.State?.Name!==`terminated`),T=d?.TargetHealthDescriptions??[];return(0,W.jsxs)(`div`,{className:`space-y-3`,children:[_.error&&(0,W.jsx)(e,{error:_.error,msg:`Failed to register targets`}),v.error&&(0,W.jsx)(e,{error:v.error,msg:`Failed to deregister target`}),g&&(0,W.jsx)(e,{error:g,msg:`Failed to load target health`}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:p?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,W.jsx)(S,{onClick:()=>b(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,W.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,W.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,W.jsx)(`thead`,{children:(0,W.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,W.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,W.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,W.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,W.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,W.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,W.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,W.jsx)(`td`,{className:`px-4 py-2`,children:(0,W.jsx)(`span`,{className:m(`rounded-full px-2 py-0.5 text-xs`,Q(n)),children:n??`unknown`})}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,W.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,W.jsx)(S,{"aria-label":`Deregister ${t.Id}`,onClick:()=>C(t),size:`sm`,variant:`ghost`,children:(0,W.jsx)(i,{className:`size-4`})})})]},$(t))})})]})}),(0,W.jsx)(K,{defaultPort:o,instances:w,isPending:_.isPending,onConfirm:async e=>{try{await _.mutateAsync({targetGroupArn:r,targets:e}),b(!1)}catch{}},onOpenChange:b,open:y}),(0,W.jsx)(F,{description:x?`Deregister ${x.Id}${x.Port?`:${x.Port}`:``} from this target group?`:``,isPending:v.isPending,onConfirm:async()=>{if(x?.Id)try{await v.mutateAsync({targetGroupArn:r,targets:[{id:x.Id,port:x.Port}]})}finally{C(void 0)}},onOpenChange:e=>!e&&C(void 0),open:x!==void 0,title:`Deregister target`})]})}function te({arn:t}){let s=b(),{data:c}=n(l(t)),{data:u}=n(v(t)),{data:d}=n(p([t])),f=o(),m=a(),[h,g]=(0,U.useState)(!1),[_,y]=(0,U.useState)(`overview`),x=c.TargetGroups?.[0];if(!x?.TargetGroupArn)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(r,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let C=async()=>{try{await f.mutateAsync(t),s({to:`/ec2/describe-target-groups`})}finally{g(!1)}},D=u.Attributes??[],O=d?.TagDescriptions?.find(e=>e.ResourceArn===t)?.Tags??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(r,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),f.error&&(0,W.jsx)(e,{error:f.error,msg:`Failed to delete target group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(w,{actions:(0,W.jsxs)(S,{onClick:()=>g(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(i,{className:`size-4`}),`Delete`]}),subtitle:`Target group details`,title:x.TargetGroupName??x.TargetGroupArn}),(0,W.jsxs)(V,{onValueChange:y,value:_,children:[(0,W.jsxs)(R,{children:[(0,W.jsx)(L,{value:`overview`,children:`Overview`}),(0,W.jsx)(L,{value:`targets`,children:`Targets`}),(0,W.jsx)(L,{value:`health-checks`,children:`Health checks`}),(0,W.jsx)(L,{value:`attributes`,children:`Attributes`}),(0,W.jsx)(L,{value:`tags`,children:`Tags`})]}),(0,W.jsx)(z,{value:`overview`,children:(0,W.jsxs)(T,{children:[(0,W.jsx)(T.Header,{children:`Target group`}),(0,W.jsxs)(T.Content,{children:[(0,W.jsx)(E,{label:`ARN`,value:x.TargetGroupArn}),(0,W.jsx)(E,{label:`Protocol`,value:x.Protocol}),(0,W.jsx)(E,{label:`Port`,value:x.Port?.toString()}),(0,W.jsx)(E,{label:`VPC`,value:x.VpcId}),(0,W.jsx)(E,{label:`Target type`,value:x.TargetType}),(0,W.jsx)(E,{label:`Protocol version`,value:x.ProtocolVersion}),(0,W.jsx)(E,{label:`IP address type`,value:x.IpAddressType})]})]})}),(0,W.jsx)(z,{value:`targets`,children:(0,W.jsx)(ee,{defaultPort:x.Port??80,isActive:_===`targets`,targetGroupArn:x.TargetGroupArn,vpcId:x.VpcId})}),(0,W.jsxs)(z,{value:`health-checks`,children:[(0,W.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,W.jsxs)(T,{children:[(0,W.jsx)(T.Header,{children:`Health check`}),(0,W.jsxs)(T.Content,{children:[(0,W.jsx)(E,{label:`Enabled`,value:x.HealthCheckEnabled===void 0?void 0:String(x.HealthCheckEnabled)}),(0,W.jsx)(E,{label:`Protocol`,value:x.HealthCheckProtocol}),(0,W.jsx)(E,{label:`Path`,value:x.HealthCheckPath}),(0,W.jsx)(E,{label:`Port`,value:x.HealthCheckPort}),(0,W.jsx)(E,{label:`Interval (s)`,value:x.HealthCheckIntervalSeconds?.toString()}),(0,W.jsx)(E,{label:`Timeout (s)`,value:x.HealthCheckTimeoutSeconds?.toString()}),(0,W.jsx)(E,{label:`Healthy threshold`,value:x.HealthyThresholdCount?.toString()}),(0,W.jsx)(E,{label:`Unhealthy threshold`,value:x.UnhealthyThresholdCount?.toString()}),(0,W.jsx)(E,{label:`Matcher (HTTP codes)`,value:x.Matcher?.HttpCode??x.Matcher?.GrpcCode})]})]})]}),(0,W.jsx)(z,{value:`attributes`,children:(0,W.jsx)(I,{attributes:D,error:m.error,isPending:m.isPending,isSuccess:m.isSuccess,onSubmit:e=>{m.mutate({targetGroupArn:t,attributes:e})},specs:B})}),(0,W.jsx)(z,{value:`tags`,children:O.length>0?(0,W.jsxs)(T,{children:[(0,W.jsx)(T.Header,{children:`Tags`}),(0,W.jsx)(T.Content,{children:O.map(e=>(0,W.jsx)(E,{label:e.Key??``,value:e.Value},e.Key??``))})]}):(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`})})]})]}),(0,W.jsx)(F,{description:`Are you sure you want to delete target group "${x.TargetGroupName??x.TargetGroupArn}"? This action cannot be undone.`,isPending:f.isPending,onConfirm:C,onOpenChange:g,open:h,title:`Delete target group`})]})}function ne(){let e=(0,H.c)(2),{id:t}=y.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,W.jsx)(te,{arn:n}),e[0]=n,e[1]=r),r}export{ne as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js index d06db3067..b80a3e0ac 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./useNavigate.js";import{z as s}from"./SignatureV4.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{o as d}from"./iam.js";import{a as f,i as p}from"./iam2.js";import{p as m}from"./index.js";import{t as h}from"./page-heading.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./delete-confirmation-dialog.js";var y=e(n()),b=r(),x=t();function S(e){let t=(0,b.c)(4),{document:n}=e,r;try{let e;t[0]===n?e=t[1]:(e=JSON.stringify(JSON.parse(n),null,2),t[0]=n,t[1]=e),r=e}catch{r=n}let i;return t[2]===r?i=t[3]:(i=(0,x.jsx)(`pre`,{className:`overflow-auto rounded-md border bg-muted p-4 font-mono text-sm`,children:r}),t[2]=r,t[3]=i),i}function C(){let{policyArn:e}=m.useParams(),t=decodeURIComponent(e),n=o(),{data:r}=a(p(t)),b=r.Policy,C=d(),[w,T]=(0,y.useState)(!1),{data:E}=a(f(t,b?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return b?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,x.jsx)(i,{error:C.error,msg:`Failed to delete policy`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(u,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`IAM Policy Details`,title:b.PolicyName??``}),(0,x.jsxs)(g,{children:[(0,x.jsx)(g.Header,{children:`Policy Information`}),(0,x.jsxs)(g.Content,{children:[(0,x.jsx)(_,{label:`Policy Name`,value:b.PolicyName}),(0,x.jsx)(_,{label:`Policy ID`,value:b.PolicyId}),(0,x.jsx)(_,{label:`ARN`,value:b.Arn}),(0,x.jsx)(_,{label:`Path`,value:b.Path}),(0,x.jsx)(_,{label:`Description`,value:b.Description??`-`}),(0,x.jsx)(_,{label:`Created`,value:s(b.CreateDate)})]})]}),D&&(0,x.jsxs)(g,{children:[(0,x.jsx)(g.Header,{children:`Policy Document`}),(0,x.jsx)(`div`,{className:`p-4`,children:(0,x.jsx)(S,{document:D})})]})]}),(0,x.jsx)(v,{description:`Are you sure you want to delete the policy "${b.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c,{to:`/iam/list-policies`,children:`Back to policies`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{C as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./trash-2.js";import{o as i}from"./iam.js";import{Do as a,Ta as o,b as s,co as c,eo as l,p as u,ro as d,so as f,y as p,ya as m}from"./index.js";import{t as h}from"./page-heading.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./delete-confirmation-dialog.js";var y=a(c()),b=l(),x=f();function S(e){let t=(0,b.c)(4),{document:n}=e,r;try{let e;t[0]===n?e=t[1]:(e=JSON.stringify(JSON.parse(n),null,2),t[0]=n,t[1]=e),r=e}catch{r=n}let i;return t[2]===r?i=t[3]:(i=(0,x.jsx)(`pre`,{className:`overflow-auto rounded-md border bg-muted p-4 font-mono text-sm`,children:r}),t[2]=r,t[3]=i),i}function C(){let{policyArn:a}=u.useParams(),c=decodeURIComponent(a),l=d(),{data:f}=t(p(c)),b=f.Policy,C=i(),[w,T]=(0,y.useState)(!1),{data:E}=t(s(c,b?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return b?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,x.jsx)(e,{error:C.error,msg:`Failed to delete policy`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(m,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(r,{className:`size-4`}),`Delete`]}),subtitle:`IAM Policy Details`,title:b.PolicyName??``}),(0,x.jsxs)(g,{children:[(0,x.jsx)(g.Header,{children:`Policy Information`}),(0,x.jsxs)(g.Content,{children:[(0,x.jsx)(_,{label:`Policy Name`,value:b.PolicyName}),(0,x.jsx)(_,{label:`Policy ID`,value:b.PolicyId}),(0,x.jsx)(_,{label:`ARN`,value:b.Arn}),(0,x.jsx)(_,{label:`Path`,value:b.Path}),(0,x.jsx)(_,{label:`Description`,value:b.Description??`-`}),(0,x.jsx)(_,{label:`Created`,value:o(b.CreateDate)})]})]}),D&&(0,x.jsxs)(g,{children:[(0,x.jsx)(g.Header,{children:`Policy Document`}),(0,x.jsx)(`div`,{className:`p-4`,children:(0,x.jsx)(S,{document:D})})]})]}),(0,x.jsx)(v,{description:`Are you sure you want to delete the policy "${b.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(c),l({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{C as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js index 178b24e5a..656e202b2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./useNavigate.js";import{z as s}from"./SignatureV4.js";import{t as c}from"./back-link.js";import{t as l}from"./check.js";import{t as u}from"./trash-2.js";import{t as d}from"./triangle-alert.js";import{t as f}from"./button.js";import{a as p,c as m,l as h,n as g,s as _,t as v}from"./iam.js";import{n as y,o as b,r as x,t as S}from"./iam2.js";import{m as C}from"./index.js";import{t as w}from"./page-heading.js";import{t as T}from"./state-badge.js";import{n as E,t as D}from"./detail-row.js";import{a as O,c as k,i as A,l as j,o as M,r as N,s as P,t as F}from"./alert-dialog.js";import{t as I}from"./delete-confirmation-dialog.js";import{t as L}from"./use-copy-to-clipboard.js";var R=e(n()),z=r(),B=t();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=L(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{children:(0,B.jsx)(d,{className:`text-destructive`})}),(0,B.jsx)(j,{children:`Save Your Access Key`}),(0,B.jsx)(O,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=s):s=t[0];let c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=c):c=t[1];let u;t[2]===r?u=t[3]:(u=(0,B.jsxs)(`div`,{children:[c,r]}),t[2]=r,t[3]=u);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==u||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[u,m]}),t[7]=u,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(f,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(M,{children:(0,B.jsx)(N,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(F,{open:!0,children:(0,B.jsxs)(A,{className:`max-w-2xl`,children:[s,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:e}=C.useParams(),t=o(),{data:n}=a(b(e)),{data:r}=a(S(e)),{data:l}=a(y(e)),{data:d}=a(x),O=_(),k=g(),A=p(),j=h(),M=v(),N=m(),[P,F]=(0,R.useState)(!1),[L,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=n.User,Y=r.AccessKeyMetadata??[],X=l.AttachedPolicies??[],Z=d.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await O.mutateAsync(e),t({to:`/iam/list-users`})}finally{F(!1)}},te=async()=>{let t=await k.mutateAsync(e);t.AccessKey&&z({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ne=async t=>{if(t.AccessKeyId){G(t.AccessKeyId);try{await j.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async t=>{G(t);try{await A.mutateAsync({userName:e,accessKeyId:t})}finally{G(null)}},ie=async t=>{await M.mutateAsync({userName:e,policyArn:t}),U(!1)},ae=async t=>{q(t);try{await N.mutateAsync({userName:e,policyArn:t})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{to:`/iam/list-users`,children:`Back to users`}),O.error&&(0,B.jsx)(i,{error:O.error,msg:`Failed to delete user`}),k.error&&(0,B.jsx)(i,{error:k.error,msg:`Failed to create access key`}),A.error&&(0,B.jsx)(i,{error:A.error,msg:`Failed to delete access key`}),M.error&&(0,B.jsx)(i,{error:M.error,msg:`Failed to attach policy`}),N.error&&(0,B.jsx)(i,{error:N.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(w,{actions:(0,B.jsxs)(f,{onClick:()=>F(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(u,{className:`size-4`}),`Delete`]}),subtitle:`IAM User Details`,title:J.UserName??``}),(0,B.jsxs)(E,{children:[(0,B.jsx)(E.Header,{children:`User Information`}),(0,B.jsxs)(E.Content,{children:[(0,B.jsx)(D,{label:`User Name`,value:J.UserName}),(0,B.jsx)(D,{label:`User ID`,value:J.UserId}),(0,B.jsx)(D,{label:`ARN`,value:J.Arn}),(0,B.jsx)(D,{label:`Path`,value:J.Path}),(0,B.jsx)(D,{label:`Created`,value:s(J.CreateDate)})]})]}),(0,B.jsxs)(E,{children:[(0,B.jsx)(E.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(f,{disabled:k.isPending,onClick:te,size:`sm`,children:k.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(E.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,s(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(T,{state:e.Status}),(0,B.jsx)(f,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(f,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(E,{children:[(0,B.jsx)(E.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(f,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(E.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:M.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(f,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(I,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:O.isPending,onConfirm:ee,onOpenChange:F,open:P,title:`Delete User`}),L&&(0,B.jsx)(V,{accessKeyId:L.accessKeyId,onClose:()=>z(null),secretAccessKey:L.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./check.js";import{t as i}from"./trash-2.js";import{t as a}from"./triangle-alert.js";import{a as o,c as s,l as c,n as l,s as u,t as d}from"./iam.js";import{Do as f,Ta as p,_ as m,co as h,eo as g,g as _,m as v,ro as y,so as b,v as x,x as S,ya as C}from"./index.js";import{t as w}from"./page-heading.js";import{t as T}from"./state-badge.js";import{n as E,t as D}from"./detail-row.js";import{a as O,c as k,i as A,l as j,o as M,r as N,s as P,t as F}from"./alert-dialog.js";import{t as I}from"./delete-confirmation-dialog.js";import{t as L}from"./use-copy-to-clipboard.js";var R=f(h()),z=g(),B=b();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:i,secretAccessKey:o}=e,{copied:s,copy:c}=L(),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{children:(0,B.jsx)(a,{className:`text-destructive`})}),(0,B.jsx)(j,{children:`Save Your Access Key`}),(0,B.jsx)(O,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=l):l=t[0];let u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=u):u=t[1];let d;t[2]===i?d=t[3]:(d=(0,B.jsxs)(`div`,{children:[u,i]}),t[2]=i,t[3]=d);let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=f):f=t[4];let p;t[5]===o?p=t[6]:(p=(0,B.jsxs)(`div`,{children:[f,o]}),t[5]=o,t[6]=p);let m;t[7]!==d||t[8]!==p?(m=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[d,p]}),t[7]=d,t[8]=p,t[9]=m):m=t[9];let h;t[10]!==i||t[11]!==c||t[12]!==o?(h=async()=>await c(`Access Key ID: ${i}\nSecret Access Key: ${o}`),t[10]=i,t[11]=c,t[12]=o,t[13]=h):h=t[13];let g;t[14]===s?g=t[15]:(g=s?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(r,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=s,t[15]=g);let _;t[16]!==h||t[17]!==g?(_=(0,B.jsx)(C,{className:`w-full`,onClick:h,type:`button`,variant:`outline`,children:g}),t[16]=h,t[17]=g,t[18]=_):_=t[18];let v;t[19]!==m||t[20]!==_?(v=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[m,_]}),t[19]=m,t[20]=_,t[21]=v):v=t[21];let y;t[22]===n?y=t[23]:(y=(0,B.jsx)(M,{children:(0,B.jsx)(N,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=y);let b;return t[24]!==v||t[25]!==y?(b=(0,B.jsx)(F,{open:!0,children:(0,B.jsxs)(A,{className:`max-w-2xl`,children:[l,v,y]})}),t[24]=v,t[25]=y,t[26]=b):b=t[26],b}function H(){let{userName:r}=v.useParams(),a=y(),{data:f}=t(S(r)),{data:h}=t(_(r)),{data:g}=t(m(r)),{data:b}=t(x),O=u(),k=l(),A=o(),j=c(),M=d(),N=s(),[P,F]=(0,R.useState)(!1),[L,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=f.User,Y=h.AccessKeyMetadata??[],X=g.AttachedPolicies??[],Z=b.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await O.mutateAsync(r),a({to:`/iam/list-users`})}finally{F(!1)}},te=async()=>{let e=await k.mutateAsync(r);e.AccessKey&&z({accessKeyId:e.AccessKey.AccessKeyId??``,secretAccessKey:e.AccessKey.SecretAccessKey??``})},ne=async e=>{if(e.AccessKeyId){G(e.AccessKeyId);try{await j.mutateAsync({userName:r,accessKeyId:e.AccessKeyId,status:e.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async e=>{G(e);try{await A.mutateAsync({userName:r,accessKeyId:e})}finally{G(null)}},ie=async e=>{await M.mutateAsync({userName:r,policyArn:e}),U(!1)},ae=async e=>{q(e);try{await N.mutateAsync({userName:r,policyArn:e})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),O.error&&(0,B.jsx)(e,{error:O.error,msg:`Failed to delete user`}),k.error&&(0,B.jsx)(e,{error:k.error,msg:`Failed to create access key`}),A.error&&(0,B.jsx)(e,{error:A.error,msg:`Failed to delete access key`}),M.error&&(0,B.jsx)(e,{error:M.error,msg:`Failed to attach policy`}),N.error&&(0,B.jsx)(e,{error:N.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(w,{actions:(0,B.jsxs)(C,{onClick:()=>F(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(i,{className:`size-4`}),`Delete`]}),subtitle:`IAM User Details`,title:J.UserName??``}),(0,B.jsxs)(E,{children:[(0,B.jsx)(E.Header,{children:`User Information`}),(0,B.jsxs)(E.Content,{children:[(0,B.jsx)(D,{label:`User Name`,value:J.UserName}),(0,B.jsx)(D,{label:`User ID`,value:J.UserId}),(0,B.jsx)(D,{label:`ARN`,value:J.Arn}),(0,B.jsx)(D,{label:`Path`,value:J.Path}),(0,B.jsx)(D,{label:`Created`,value:p(J.CreateDate)})]})]}),(0,B.jsxs)(E,{children:[(0,B.jsx)(E.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(C,{disabled:k.isPending,onClick:te,size:`sm`,children:k.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(E.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,p(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(T,{state:e.Status}),(0,B.jsx)(C,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(C,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(E,{children:[(0,B.jsx)(E.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(C,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(E.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:M.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(C,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(I,{description:`Are you sure you want to delete the user "${r}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:O.isPending,onConfirm:ee,onOpenChange:F,open:P,title:`Delete User`}),L&&(0,B.jsx)(V,{accessKeyId:L.accessKeyId,onClose:()=>z(null),secretAccessKey:L.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js b/spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js deleted file mode 100644 index e8f19b2c1..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,r as t}from"./compiler-runtime.js";import{hn as n}from"./awsClient.js";import{c as r}from"./dist.js";import{c as i,o as a}from"./button.js";var o=e(n()),s=e(t()),c=[];function l(e){s.useEffect(e,c)}var u=null;globalThis.requestAnimationFrame;var d=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},f=class e{static create(){return new e}static request(e){return d.request(e)}static cancel(e){return d.cancel(e)}currentId=u;request(e){this.cancel(),this.currentId=d.request(()=>{this.currentId=u,e()})}cancel=()=>{this.currentId!==u&&(d.cancel(this.currentId),this.currentId=u)};disposeEffect=()=>this.cancel};function p(){let e=r(f.create).current;return l(e.disposeEffect),e}function m(e){return e==null?e:`current`in e?e.current:e}var h=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),g={[h.startingStyle]:``},_={[h.endingStyle]:``},v={transitionStatus(e){return e===`starting`?g:e===`ending`?_:null}};function y(e,t=!1,n=!0){let r=p();return i((i,a=null)=>{r.cancel();let s=m(e);if(s==null)return;let c=s,l=()=>{o.flushSync(i)};if(typeof c.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function u(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||l()}).catch(()=>{if(n){a?.aborted||l();return}let e=c.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&u()})}if(t){let e=h.startingStyle;if(!c.hasAttribute(e)){r.request(u);return}let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),u())});t.observe(c,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(u)})}function b(e){let{enabled:t=!0,open:n,ref:r,onComplete:a}=e,o=i(a),c=y(r,n,!1);s.useEffect(()=>{if(!t)return;let e=new AbortController;return c(o,e.signal),()=>{e.abort()}},[t,n,o,c])}function x(e,t=!1,n=!1){let[r,i]=s.useState(e&&t?`idle`:void 0),[o,c]=s.useState(e);return e&&!o&&(c(!0),i(`starting`)),!e&&o&&r!==`ending`&&!n&&i(`ending`),!e&&!o&&r===`ending`&&i(void 0),a(()=>{if(!e&&o&&r!==`ending`&&n){let e=f.request(()=>{i(`ending`)});return()=>{f.cancel(e)}}},[e,o,r,n]),a(()=>{if(!e||t)return;let n=f.request(()=>{i(void 0)});return()=>{f.cancel(n)}},[t,e]),a(()=>{if(!e||!t)return;e&&o&&r!==`idle`&&i(`starting`);let n=f.request(()=>{i(`idle`)});return()=>{f.cancel(n)}},[t,e,o,r]),{mounted:o,setMounted:c,transitionStatus:r}}function S(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}export{h as a,f as c,y as i,p as l,x as n,v as o,b as r,m as s,S as t,l as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/admin.js b/spinifex/services/spinifexui/frontend/dist/assets/admin.js index e34f6a94a..53e392f8a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/admin.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/admin.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./queryOptions.js";import{d as n,t as r}from"./dist.js";import{I as i,S as a}from"./SignatureV4.js";import{G as o,y as s}from"./index.js";var c=e(),l=r(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function u(e){let t=(0,c.c)(13),r,a,s,u,d;if(t[0]!==e){let{className:c,variant:f,render:p,...m}=e;r=p,d=f===void 0?`default`:f,u=o,a=`span`,s=n({className:i(l({className:c,variant:d}))},m),t[0]=e,t[1]=r,t[2]=a,t[3]=s,t[4]=u,t[5]=d}else r=t[1],a=t[2],s=t[3],u=t[4],d=t[5];let f;t[6]===d?f=t[7]:(f={slot:`badge`,variant:d},t[6]=d,t[7]=f);let p;return t[8]!==r||t[9]!==a||t[10]!==s||t[11]!==f?(p={defaultTagName:a,props:s,render:r,state:f},t[8]=r,t[9]=a,t[10]=s,t[11]=f,t[12]=p):p=t[12],u(p)}var d=t({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=a();if(!e)throw Error(`Not authenticated`);return await s({action:`GetNodes`,credentials:e})},staleTime:1e4}),f=t({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=a();if(!e)throw Error(`Not authenticated`);return await s({action:`GetVMs`,credentials:e})},staleTime:1e4}),p=t({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=a();if(!e)throw Error(`Not authenticated`);return await s({action:`GetStorageStatus`,credentials:e})},staleTime:1e4});export{u as i,p as n,f as r,d as t}; \ No newline at end of file +import{$a as e,Ga as t,Sa as n,Vn as r,Wa as i,ao as a,eo as o,ir as s}from"./index.js";var c=o(),l=i(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function u(r){let i=(0,c.c)(13),a,o,s,u,d;if(i[0]!==r){let{className:c,variant:f,render:p,...m}=r;a=p,d=f===void 0?`default`:f,u=t,o=`span`,s=e({className:n(l({className:c,variant:d}))},m),i[0]=r,i[1]=a,i[2]=o,i[3]=s,i[4]=u,i[5]=d}else a=i[1],o=i[2],s=i[3],u=i[4],d=i[5];let f;i[6]===d?f=i[7]:(f={slot:`badge`,variant:d},i[6]=d,i[7]=f);let p;return i[8]!==a||i[9]!==o||i[10]!==s||i[11]!==f?(p={defaultTagName:o,props:s,render:a,state:f},i[8]=a,i[9]=o,i[10]=s,i[11]=f,i[12]=p):p=i[12],u(p)}var d=a({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=s();if(!e)throw Error(`Not authenticated`);return await r({action:`GetNodes`,credentials:e})},staleTime:1e4}),f=a({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=s();if(!e)throw Error(`Not authenticated`);return await r({action:`GetVMs`,credentials:e})},staleTime:1e4}),p=a({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=s();if(!e)throw Error(`Not authenticated`);return await r({action:`GetStorageStatus`,credentials:e})},staleTime:1e4});export{u as i,p as n,f as r,d as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js index e2cb2f2bc..83c3fd594 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{I as i}from"./SignatureV4.js";import{t as a}from"./button.js";import{D as o,E as s,F as c,I as l,M as u,N as d,O as f,P as p,T as m,k as h,w as g}from"./index.js";var _=e(n()),v=t();function y(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,actionsRef:u,handle:d,triggerId:f,defaultTriggerId:p=null}=e,h=l(!0),g=!!h,y=s.useStore(d?.store,{open:r,openProp:n,activeTriggerId:p,triggerIdProp:f,modal:!0,disablePointerDismissal:!0,nested:g,role:`alertdialog`});y.useControlledProp(`openProp`,n),y.useControlledProp(`triggerIdProp`,f),y.useSyncedValue(`nested`,g),y.useContextCallback(`onOpenChange`,i),y.useContextCallback(`onOpenChangeComplete`,a);let b=y.useState(`payload`);o({store:y,actionsRef:u,parentContext:h?.store.context,isDrawer:!1,onOpenChange:i,triggerIdProp:f});let x=_.useMemo(()=>({store:y}),[y]);return(0,v.jsx)(m.Provider,{value:!1,children:(0,v.jsx)(c.Provider,{value:x,children:typeof t==`function`?t({payload:b}):t})})}var b=r();function x(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,v.jsx)(y,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function S(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,v.jsx)(f,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function C(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(p,{className:a,"data-slot":`alert-dialog-overlay`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function w(e){let t=(0,b.c)(11),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o=a===void 0?`default`:a,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,v.jsx)(C,{}),t[4]=s):s=t[4];let c;t[5]===n?c=t[6]:(c=i(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,n),t[5]=n,t[6]=c);let l;return t[7]!==r||t[8]!==o||t[9]!==c?(l=(0,v.jsxs)(S,{children:[s,(0,v.jsx)(h,{className:c,"data-size":o,"data-slot":`alert-dialog-content`,...r})]}),t[7]=r,t[8]=o,t[9]=c,t[10]=l):l=t[10],l}function T(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`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]`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function E(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`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`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function D(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`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`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function O(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(g,{className:a,"data-slot":`alert-dialog-title`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function k(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(u,{className:a,"data-slot":`alert-dialog-description`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function A(e){let t=(0,b.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let o;t[3]===n?o=t[4]:(o=i(n),t[3]=n,t[4]=o);let s;return t[5]!==r||t[6]!==o?(s=(0,v.jsx)(a,{className:o,"data-slot":`alert-dialog-action`,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function j(e){let t=(0,b.c)(14),n,r,o,s;t[0]===e?(n=t[1],r=t[2],o=t[3],s=t[4]):({className:n,variant:o,size:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s);let c=o===void 0?`outline`:o,l=s===void 0?`default`:s,u;t[5]===n?u=t[6]:(u=i(n),t[5]=n,t[6]=u);let f;t[7]!==l||t[8]!==c?(f=(0,v.jsx)(a,{size:l,variant:c}),t[7]=l,t[8]=c,t[9]=f):f=t[9];let p;return t[10]!==r||t[11]!==u||t[12]!==f?(p=(0,v.jsx)(d,{className:u,"data-slot":`alert-dialog-cancel`,render:f,...r}),t[10]=r,t[11]=u,t[12]=f,t[13]=p):p=t[13],p}export{k as a,D as c,w as i,O as l,A as n,E as o,j as r,T as s,x as t}; \ No newline at end of file +import{Cr as e,Do as t,Mr as n,Sa as r,Sr as i,_i as a,co as o,di as s,eo as c,fi as l,kr as u,pi as d,so as f,vi as p,wr as m,xr as h,ya as g}from"./index.js";var _=t(o()),v=f();function y(t){let{children:n,open:r,defaultOpen:o=!1,onOpenChange:s,onOpenChangeComplete:c,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,h=p(!0),g=!!h,y=e.useStore(u?.store,{open:o,openProp:r,activeTriggerId:f,triggerIdProp:d,modal:!0,disablePointerDismissal:!0,nested:g,role:`alertdialog`});y.useControlledProp(`openProp`,r),y.useControlledProp(`triggerIdProp`,d),y.useSyncedValue(`nested`,g),y.useContextCallback(`onOpenChange`,s),y.useContextCallback(`onOpenChangeComplete`,c);let b=y.useState(`payload`);m({store:y,actionsRef:l,parentContext:h?.store.context,isDrawer:!1,onOpenChange:s,triggerIdProp:d});let x=_.useMemo(()=>({store:y}),[y]);return(0,v.jsx)(i.Provider,{value:!1,children:(0,v.jsx)(a.Provider,{value:x,children:typeof n==`function`?n({payload:b}):n})})}var b=c();function x(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,v.jsx)(y,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function S(e){let t=(0,b.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,v.jsx)(u,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function C(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(d,{className:a,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function w(e){let t=(0,b.c)(11),i,a,o;t[0]===e?(i=t[1],a=t[2],o=t[3]):({className:i,size:o,...a}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=o);let s=o===void 0?`default`:o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,v.jsx)(C,{}),t[4]=c):c=t[4];let l;t[5]===i?l=t[6]:(l=r(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,i),t[5]=i,t[6]=l);let u;return t[7]!==a||t[8]!==s||t[9]!==l?(u=(0,v.jsxs)(S,{children:[c,(0,v.jsx)(n,{className:l,"data-size":s,"data-slot":`alert-dialog-content`,...a})]}),t[7]=a,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}function T(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`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]`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function E(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`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`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function D(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`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`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function O(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(h,{className:a,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function k(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(s,{className:a,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function A(e){let t=(0,b.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,v.jsx)(g,{className:a,"data-slot":`alert-dialog-action`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function j(e){let t=(0,b.c)(14),n,i,a,o;t[0]===e?(n=t[1],i=t[2],a=t[3],o=t[4]):({className:n,variant:a,size:o,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a,t[4]=o);let s=a===void 0?`outline`:a,c=o===void 0?`default`:o,u;t[5]===n?u=t[6]:(u=r(n),t[5]=n,t[6]=u);let d;t[7]!==c||t[8]!==s?(d=(0,v.jsx)(g,{size:c,variant:s}),t[7]=c,t[8]=s,t[9]=d):d=t[9];let f;return t[10]!==i||t[11]!==u||t[12]!==d?(f=(0,v.jsx)(l,{className:u,"data-slot":`alert-dialog-cancel`,render:d,...i}),t[10]=i,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}export{k as a,D as c,w as i,O as l,A as n,E as o,j as r,T as s,x as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js index 3135d8d40..bee0815be 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./link.js";import{z as r}from"./SignatureV4.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file +import{Ta as e,eo as t,no as n,so as r}from"./index.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=r();function c(t){let r=(0,o.c)(58),{image:c,showExtendedDetails:u}=t,d=u===void 0?!1:u,f;r[0]===c.CreationDate?f=r[1]:(f=e(c.CreationDate),r[0]=c.CreationDate,r[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;r[2]===m?h=r[3]:(h=(0,s.jsx)(i.Header,{children:m}),r[2]=m,r[3]=h);let g;r[4]!==c.ImageId||r[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,r[4]=c.ImageId,r[5]=d,r[6]=g):g=r[6];let _;r[7]===g?_=r[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),r[7]=g,r[8]=_);let v;r[9]===c.Name?v=r[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),r[9]=c.Name,r[10]=v);let y;r[11]===c.Description?y=r[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),r[11]=c.Description,r[12]=y);let b;r[13]===c.Architecture?b=r[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),r[13]=c.Architecture,r[14]=b);let x;r[15]===c.VirtualizationType?x=r[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),r[15]=c.VirtualizationType,r[16]=x);let S=c.Platform??`Linux`,C;r[17]===S?C=r[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),r[17]=S,r[18]=C);let w;r[19]===c.PlatformDetails?w=r[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),r[19]=c.PlatformDetails,r[20]=w);let T;r[21]===c.ImageType?T=r[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),r[21]=c.ImageType,r[22]=T);let E;r[23]===c.RootDeviceType?E=r[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),r[23]=c.RootDeviceType,r[24]=E);let D;r[25]===c.RootDeviceName?D=r[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),r[25]=c.RootDeviceName,r[26]=D);let O;r[27]===c.OwnerId?O=r[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),r[27]=c.OwnerId,r[28]=O);let k;r[29]===c.State?k=r[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),r[29]=c.State,r[30]=k);let A;r[31]!==p||r[32]!==c.Public||r[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),r[31]=p,r[32]=c.Public,r[33]=d,r[34]=A):A=r[34];let j;r[35]!==x||r[36]!==C||r[37]!==w||r[38]!==T||r[39]!==E||r[40]!==D||r[41]!==O||r[42]!==k||r[43]!==A||r[44]!==_||r[45]!==v||r[46]!==y||r[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),r[35]=x,r[36]=C,r[37]=w,r[38]=T,r[39]=E,r[40]=D,r[41]=O,r[42]=k,r[43]=A,r[44]=_,r[45]=v,r[46]=y,r[47]=b,r[48]=j):j=r[48];let M;r[49]!==j||r[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),r[49]=j,r[50]=h,r[51]=M):M=r[51];let N;r[52]!==c.BlockDeviceMappings||r[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),r[52]=c.BlockDeviceMappings,r[53]=d,r[54]=N):N=r[54];let P;return r[55]!==M||r[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),r[55]=M,r[56]=N,r[57]=P):P=r[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js deleted file mode 100644 index 7d48b3a53..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js +++ /dev/null @@ -1,10 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/event-streams.js","assets/fromUtf8.browser.js","assets/toUtf8.browser.js"])))=>i.map(i=>d[i]); -import{i as e,r as t}from"./compiler-runtime.js";import{S as n,_ as r,c as i,d as a,f as o,g as s,h as c,l,m as u,n as d,o as f,p as ee,r as p,s as te,t as ne,u as re,v as ie,y as ae}from"./SignatureV4.js";import{t as oe}from"./fromUtf8.browser.js";import{t as se}from"./toUtf8.browser.js";var ce=e((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ce()})),ue=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),de=e=>({httpHandler:e.httpHandler()}),fe;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(fe||={});var pe;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(pe||={});var me=`__smithy_context`,he=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},ge=e=>e.__smithy_context||={},_e={SignatureV4a:null};function ve(e){return e}var ye=e=>t=>async n=>{if(!i.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:a=``}=e.requestHandler.metadata||{};if(a.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},be={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},xe=e=>({applyToStack:t=>{t.add(ye(e),be)}}),Se=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...ee}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(ee),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Ce={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},we=e=>({applyToStack:e=>{e.add(Se(),Ce)}}),Te={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`},Ee=()=>e=>async t=>e(t),De=e=>({applyToStack:e=>{e.add(Ee(),Te)}}),Oe=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function ke(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Ae=(e,t)=>(n,r)=>async i=>{let a=Oe(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=ke(e.httpAuthSchemes),s=ge(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` -`));return n(i)},je={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},Me=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Ae(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),je)}}),Ne=e=>e=>{throw e},Pe=(e,t)=>{},Fe=e=>(e,t)=>async n=>{if(!i.isInstance(n.request))return e(n);let r=ge(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=r,c=await e({...n,request:await s.sign(n.request,o,a)}).catch((s.errorHandler||Ne)(a));return(s.successHandler||Pe)(c.response,a),c},Ie={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Le=e=>({applyToStack:t=>{t.addRelativeTo(Fe(e),Ie)}}),Re=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},ze=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Be=Object.entries(ze).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),Ve=ze.split(``),He=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)};function Ue(e){let t;t=typeof e==`string`?oe(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}var We=class e extends Uint8Array{static fromString(t,n=`utf-8`){if(typeof t==`string`)return n===`base64`?e.mutate(He(t)):e.mutate(oe(t));throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(e=`utf-8`){return e===`base64`?Ue(this):se(this)}},Ge=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),Ke=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r -`),s){let t=n(await c);e.enqueue(`${a}:${t}\r\n`),e.enqueue(`\r -`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})};function qe(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=d(n),Array.isArray(r))for(let e=0,i=r.length;e{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var Xe={supported:void 0},Ze=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),Xe.supported===void 0&&(Xe.supported=typeof Request<`u`&&`keepalive`in Je(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=Qe(t);return Promise.reject(e)}let o=e.path,s=qe(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,ee={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(ee.cache=this.config.cache),f&&(ee.duplex=`half`),typeof AbortController<`u`&&(ee.signal=t),Xe.supported&&(ee.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(ee,this.config.requestInit(e));let p=()=>{},te=Je(d,ee),ne=[fetch(te).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new he({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new he({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),Ye(r)];return t&&ne.push(new Promise((e,n)=>{let r=()=>{n(Qe(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),p=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(ne).finally(p)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function Qe(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var $e=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?et(e):new Uint8Array(await e.arrayBuffer()):tt(e);async function et(e){let t=He(await nt(e));return new Uint8Array(t)}async function tt(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function nt(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var rt=`The stream has already been transformed.`,it=e=>{if(!at(e)&&!Ge(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=!1,n=async()=>{if(t)throw Error(rt);return t=!0,await $e(e)},r=e=>{if(typeof e.stream!=`function`)throw 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 e.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{let t=await n();if(e===`base64`)return Ue(t);if(e===`hex`)return te(t);if(e===void 0||e===`utf8`||e===`utf-8`)return se(t);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(t);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(t)throw Error(rt);if(t=!0,at(e))return r(e);if(Ge(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},at=e=>typeof Blob==`function`&&e instanceof Blob,ot=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return We.mutate(e);if(!e)return We.mutate(new Uint8Array);let n=t.streamCollector(e);return We.mutate(await n)};function st(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var ct=e=>typeof e==`function`?e():e,lt=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),ut=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=ge(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(lt(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(he.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:dt(/^x-[\w-]+-request-?id$/,n),extendedRequestId:dt(/^x-[\w-]+-id-2$/,n),cfId:dt(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},dt=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];function ft(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var pt=e=>{if(typeof e==`string`)return pt(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=ft(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},mt=e=>{if(typeof e==`object`){if(`url`in e){let t=pt(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return pt(e)},ht=e=>(t,n)=>async r=>{let{operationSchema:i}=ge(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>mt(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(lt(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},gt={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},_t={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function vt(e){return{applyToStack:t=>{t.add(ht(e),_t),t.add(ut(e),gt),e.protocol.setSerdeContext(e)}}}var yt=[];function bt(e){if(typeof e==`object`)return e;if(e|=0,yt[e])return yt[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return yt[e]=t}var xt={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},St=[],Ct={},m=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;Tt(i);)r.push(i[1]),i=i[0],a=ct(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,bt(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=ct(a),Et(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(St[t])return St[t]}else if(typeof t==`string`){if(Ct[t])return Ct[t]}else if(n&&t[xt.ns])return t[xt.ns];let r=ct(t);if(r instanceof e)return r;if(Tt(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),bt(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[xt.ns]=i:typeof r==`string`?Ct[r]=i:typeof r==`number`?St[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return bt(this.memberTraits)}getOwnTraits(){return bt(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return wt([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return wt([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return wt(Tt(r)?r:[r,0],e)}if(this.isDocumentSchema())return wt([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[xt.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,Et=e=>Array.isArray(e)&&e.length>=5,Dt=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},Ot=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Ht.warn(Vt(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},kt=Math.ceil(2**127*(2-2**-23)),At=e=>{let t=Ot(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>kt)throw TypeError(`Expected 32-bit float, got ${e}`);return t},jt=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},Mt=e=>Pt(e,16),Nt=e=>Pt(e,8),Pt=(e,t)=>{let n=jt(e);if(n!==void 0&&Ft(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},Ft=(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]}},It=e=>At(typeof e==`string`?Rt(e):e),Lt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Rt=e=>{let t=e.match(Lt);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},zt=e=>Mt(typeof e==`string`?Rt(e):e),Bt=e=>Nt(typeof e==`string`?Rt(e):e),Vt=e=>String(TypeError(e).stack||e).split(` -`).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` -`),Ht={warn:console.warn},Ut=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Wt=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function Gt(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${Ut[r]}, ${c} ${Wt[n]} ${t} ${l}:${u}:${d} GMT`}var Kt=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$/),qt=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$/),Jt=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})$/),Yt=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=Kt.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return Xt(zt(sn(i)),en(r),an(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=qt.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return $t(Xt(Zt(i),en(r),an(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=Jt.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return Xt(zt(sn(c)),en(n),an(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},Xt=(e,t,n,r)=>{let i=t-1;return nn(e,i,n),new Date(Date.UTC(e,i,n,an(r.hours,`hour`,0,23),an(r.minutes,`minute`,0,59),an(r.seconds,`seconds`,0,60),on(r.fractionalMilliseconds)))},Zt=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+zt(sn(e));return ne.getTime()-new Date().getTime()>Qt?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,en=e=>{let t=Wt.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},tn=[31,28,31,30,31,30,31,31,30,31,30,31],nn=(e,t,n)=>{let r=tn[t];if(t===1&&rn(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${Wt[t]} in ${e}: ${n}`)},rn=e=>e%4==0&&(e%100!=0||e%400==0),an=(e,t,n,r)=>{let i=Bt(sn(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},on=e=>e==null?0:It(`0.`+e)*1e3,sn=e=>{let t=0;for(;tt.toString(16).padStart(2,`0`)),un=()=>{if(cn)return cn();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,ln[e[0]]+ln[e[1]]+ln[e[2]]+ln[e[3]]+`-`+ln[e[4]]+ln[e[5]]+`-`+ln[e[6]]+ln[e[7]]+`-`+ln[e[8]]+ln[e[9]]+`-`+ln[e[10]]+ln[e[11]]+ln[e[12]]+ln[e[13]]+ln[e[14]]+ln[e[15]]},dn=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};dn.from=e=>e&&typeof e==`object`&&(e instanceof dn||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?dn(String(e)):dn(JSON.stringify(e)),dn.fromObject=dn.from;function fn(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var pn=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,mn=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,hn=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,gn=`(\\d?\\d)`,_n=`(\\d{4})`,vn=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),yn=RegExp(`^${pn}, ${gn} ${mn} ${_n} ${hn} GMT$`),bn=RegExp(`^${pn}, ${gn}-${mn}-(\\d\\d) ${hn} GMT$`),xn=RegExp(`^${pn} ${mn} ( [1-9]|\\d\\d) ${hn} ${_n}$`),Sn=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Cn=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 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 TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},wn=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=vn.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;En(r,1,12),En(i,1,31),En(a,0,23),En(o,0,59),En(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},Tn=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=yn.exec(e))?[,t,n,r,i,a,o,s]=c:(c=bn.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=xn.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),Sn.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);En(t,1,31),En(i,0,23),En(a,0,59),En(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)};function En(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}function Dn(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})},kn=/^-?\d*(\.\d+)?$/,An=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!kn.test(e))throw 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;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&kn.test(n.string)}},jn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Mn=`modulepreload`,Nn=function(e){return`/`+e},Pn={},Fn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Nn(t,n),t in Pn)return;Pn[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Mn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},In=class extends jn{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=Dt.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return i}getResponseType(){return he}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=m.of(t.input),i=bt(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await Fn(async()=>{let{EventStreamSerde:e}=await import(`./event-streams.js`);return{EventStreamSerde:e}},__vite__mapDeps([0,1,2]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Ln=class extends In{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},a=this.serializer,o={},s={},c=await n.endpoint(),l=m.of(e?.input),u=[],d=[],f=!1,ee,p=new i({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:o,headers:s,body:void 0});if(c){this.updateServiceEndpoint(p,c),this.setHostPrefix(p,e,r);let t=bt(e.traits);if(t.http){p.method=t.http[0];let[e,n]=t.http[1].split(`?`);p.path==`/`?p.path=e:p.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)o[e]=t}}for(let[e,t]of l.structIterator()){let n=t.getMergedTraits()??{},i=r[e];if(i==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(p.path.includes(`{${e}+}`)||p.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ee=await this.serializeEventStream({eventStream:r[e],requestSchema:l})):ee=i:(a.write(t,i),ee=a.flush());else if(n.httpLabel){a.write(t,i);let n=a.flush();p.path.includes(`{${e}+}`)?p.path=p.path.replace(`{${e}+}`,n.split(`/`).map(st).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,st(n)))}else if(n.httpHeader)a.write(t,i),s[n.httpHeader.toLowerCase()]=String(a.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in i){let r=i[e],o=n.httpPrefixHeaders+e;a.write([t.getValueSchema(),{httpHeader:o}],r),s[o.toLowerCase()]=a.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,i,o):(f=!0,u.push(e),d.push(t))}if(f&&r){let[e,t]=(l.getName(!0)??`#Unknown`).split(`#`),n=l.getSchema()[6],i=[3,e,t,l.getMergedTraits(),u,d,void 0];n?i[6]=n:i.pop(),a.write(i,r),ee=a.flush()}return p.headers=s,p.query=o,p.body=ee,p}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=m.of(e.output),a={};if(n.statusCode>=300){let i=await ot(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await ot(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await ot(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=m.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=it(n.body);else if(n.body){let i=await ot(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?Dn(o,`,`,2):On(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Rn=class extends In{async serializeRequest(e,t,n){let r=this.serializer,a={},o={},s=await n.endpoint(),c=m.of(e?.input),l=c.getSchema(),u,d=t&&typeof t==`object`?t:{},f=new i({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:a,headers:o,body:void 0});if(s&&(this.updateServiceEndpoint(f,s),this.setHostPrefix(f,e,d)),d){let e=c.getEventStreamMember();if(e){if(d[e]){let t={};for(let[n,i]of c.structIterator())n!==e&&d[n]&&(r.write(i,d[n]),t[n]=r.flush());u=await this.serializeEventStream({eventStream:d[e],requestSchema:c,initialRequest:t})}}else r.write(l,d),u=r.flush()}return f.headers=Object.assign(f.headers,o),f.query=a,f.body=u,f.method=`POST`,f}async deserializeResponse(e,t,n){let r=this.deserializer,i=m.of(e.output),a={};if(n.statusCode>=300){let i=await ot(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await ot(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function zn(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Bn=class extends jn{settings;constructor(e){super(),this.settings=e}read(e,t){let n=m.of(e);if(n.isListSchema())return On(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??He)(t);if(n.isTimestampSchema())switch(zn(n,this.settings)){case 5:return wn(t);case 6:return Tn(t);case 7:return Cn(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=dn.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new An(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??se)((this.serdeContext?.base64Decoder??He)(e))}},Vn=class extends jn{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new Bn(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=m.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??se;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??oe;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Hn=class extends jn{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=m.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(zn(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=Gt(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??Ue)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:fn(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=dn.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ue)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=un():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Un=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Hn(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=m.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function Wn(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var Gn=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},Kn=(e=>function(t){return qn(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Jn=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function Yn(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function Xn(e){let t=Re(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!Yn(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var Zn=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},Qn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},$n=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},er=`endpoints`;function tr(e){return typeof e!=`object`||!e?e:`ref`in e?`$${tr(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(tr).join(`, `)})`:JSON.stringify(e,null,2)}var nr={},rr=(e,t)=>e===t;function ir(...e){for(let t of e)if(t!=null)return t}var ar=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new $n(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new $n(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},or=(e,t)=>ar(t).reduce((n,r)=>{if(typeof n!=`object`)throw new $n(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),sr=e=>e!=null,cr=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),lr=(e,t=!1)=>{if(!t)return cr.test(e);let n=e.split(`.`);for(let e of n)if(!lr(e))return!1;return!0};function ur(e,t,n){return e?t:n}var dr=e=>!e,fr=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}$`),pr=e=>fr.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),mr={[fe.HTTP]:80,[fe.HTTPS]:443},hr=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(fe).includes(c))return null;let l=pr(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${mr[c]}`)||typeof e==`string`&&e.includes(`${r}:${mr[c]}`)?`:${mr[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function gr(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var _r={booleanEquals:rr,coalesce:ir,getAttr:or,isSet:sr,isValidHostLabel:lr,ite:ur,not:dr,parseURL:hr,split:gr,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},vr=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],br=(e,t,n)=>{if(typeof e==`string`)return vr(e,n);if(e.fn)return Sr.callFunction(e,n);if(e.ref)return yr(e,n);throw new $n(`'${t}': ${String(e)} is not a string, function or reference.`)},xr=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new $n(`'${n}' is already defined in Reference Record.`);let r=xr(e,t);t.logger?.debug?.(`${er} evaluateCondition: ${tr(e)} = ${tr(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},wr=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=br(e,`Header value entry`,t);if(typeof r!=`string`)throw new $n(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),Tr=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=Dr.getEndpointProperty(r,t),e),{}),Er=(e,t)=>{if(Array.isArray(e))return e.map(e=>Er(e,t));switch(typeof e){case`string`:return vr(e,t);case`object`:if(e===null)throw new $n(`Unexpected endpoint property: ${e}`);return Dr.getEndpointProperties(e,t);case`boolean`:return e;default:throw new $n(`Unexpected endpoint property type: ${typeof e}`)}},Dr={getEndpointProperty:Er,getEndpointProperties:Tr},Or=(e,t)=>{let n=br(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new $n(`Endpoint URL must be a string, got ${typeof n}`)},kr=1e8,Ar=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=kr){let e=i[o-kr];if(e[0]===-1){let[,t]=e;throw new $n(br(t,`Error`,c))}let[t,n,r]=e;return{url:Or(t,c),properties:Tr(n,c),headers:wr(r??{},c)}}throw new $n(`No matching endpoint.`)},jr=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!jr(t))return!1;return!0}return!(!lr(e)||e.length<3||e.length>63||e!==e.toLowerCase()||pr(e))},Mr=`:`,Nr=`/`,Pr=e=>{let t=e.split(Mr);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(Mr)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(Nr)).flat()}},Fr={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},Ir=``,Lr=e=>{let{partitions:t}=Fr;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},Rr=()=>Ir,zr={isVirtualHostableS3Bucket:jr,parseArn:Pr,partition:Lr};nr.aws=zr;function Br(e,t,n){return e.$source||={},e.$source[t]=n,e}var Vr;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(Vr||={});var Hr=Vr.STANDARD,Ur=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],Wr=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],Gr=[500,502,503,504],Kr=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],qr=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],Jr=e=>e?.$retryable!==void 0,Yr=e=>e.$metadata?.clockSkewCorrected,Xr=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},Zr=e=>e.$metadata?.httpStatusCode===429||Ur.includes(e.name)||e.$retryable?.throttling==1,Qr=(e,t=0)=>Jr(e)||Yr(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Wr.includes(e.name)||Kr.includes(e?.code||``)||qr.includes(e?.code||``)||Gr.includes(e.$metadata?.httpStatusCode||0)||Xr(e)||ei(e)||e.cause!==void 0&&t<=10&&Qr(e.cause,t+1),$r=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Qr(e)}return!1};function ei(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var ti=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||Zr(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},ni=20*1e3,ri=`amz-sdk-invocation-id`,ii=`amz-sdk-request`,ai=class e{static v2026=typeof process<`u`&&{}?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},oi=class{x=ai.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,ni);return Math.floor(t)}setDelayBase(e){this.x=e}},si=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(ni,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},ci={incompatible:1,attempts:2,capacity:3},li=class{mode=Vr.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=ai.delay(),this.retryBackoffStrategy??=new oi}async acquireInitialRetryToken(e){return new si(ai.delay(),0,void 0,ai.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?ai.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new si(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:ai.v2026&&r===ci.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:ci.incompatible,a=r=this.getCapacityCost(t.errorType)?0:ci.capacity;return i||a||o}getCapacityCost(e){return e===ai.modifiedCostType()?ai.throttlingCost():ai.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},ui=class{mode=Vr.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new ti,this.standardRetryStrategy=t?new li({maxAttempts:typeof e==`number`?e:3,...t}):new li(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};ai.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function di(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}var fi=/\d{12}\.ddb/;async function pi(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&di(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case Vr.ADAPTIVE:di(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case Vr.STANDARD:di(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(fi)&&di(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:di(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:di(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:di(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&di(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))di(e,n,r)}}var mi=`user-agent`,hi=`x-amz-user-agent`,gi=/[^!$%&'*+\-.^_`|~\w]/g,_i=/[^!$%&'*+\-.^_`|~\w#]/g,vi=1024;function yi(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=vi){t.length?t+=`,`+r:t+=r;continue}break}return t}var bi=e=>(t,n)=>async r=>{let{request:a}=r;if(!i.isInstance(a))return t(r);let{headers:o}=a,s=n?.userAgent?.map(xi)||[],c=(await e.defaultUserAgentProvider()).map(xi);await pi(n,e,r);let l=n;c.push(`m/${yi(Object.assign({},n.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=e?.customUserAgent?.map(xi)||[],d=await e.userAgentAppId();d&&c.push(xi([`app`,`${d}`]));let f=Rr(),ee=(f?[f]:[]).concat([...c,...s,...u]).join(` `),p=[...c.filter(e=>e.startsWith(`aws-sdk-`)),...u].join(` `);return e.runtime===`browser`?o[hi]=ee:(p&&(o[hi]=o[`x-amz-user-agent`]?`${o[mi]} ${p}`:p),o[mi]=ee),t({...r,request:a})},xi=e=>{let t=e[0].split(`/`).map(e=>e.replace(gi,`-`)).join(`/`),n=e[1]?.replace(_i,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Si={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},Ci=e=>({applyToStack:t=>{t.add(bi(e),Si)}}),wi=new Set,Ti=(e,t=lr)=>{if(!wi.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else wi.add(e)},Ei=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),Di=e=>Ei(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,Oi=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Di(typeof t==`function`?await t():t);return Ti(e),e},useFipsEndpoint:async()=>Ei(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},ki=`content-length`;function Ai(e){return t=>async n=>{let r=n.request;if(i.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(ki)===-1)try{let n=e(t);r.headers={...r.headers,[ki]:String(n)}}catch{}}return t({...n,request:r})}}var ji={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Mi=e=>({applyToStack:t=>{t.add(Ai(e.bodyLengthChecker),ji)}}),Ni=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),Ri(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Li(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},Pi=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Fi=/(\d+\.){3}\d+/,Ii=/\.\./,Li=e=>Pi.test(e)&&!Fi.test(e)&&!Ii.test(e),Ri=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},zi=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},Bi=async e=>void 0,Vi=e=>{if(typeof e==`object`){if(`url`in e){let t=pt(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(`, `)}return t}return e}return pt(e)},Hi=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await Bi(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(Vi(e)),n.isCustomEndpoint=!0)}let i=await Ui(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let a=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let e=await n.endpoint();if(e?.headers){a.headers??={};for(let[t,n]of Object.entries(e.headers))a.headers[t]=Array.isArray(n)?n:[n]}}return a},Ui=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await zi(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Ni(r),r},Wi=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&Wn(r,`ENDPOINT_OVERRIDE`,`N`);let a=await Hi(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a,r.authSchemes=a.properties?.authSchemes;let o=r.authSchemes?.[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let e=ge(r)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})},Gi={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name},Ki=(e,t)=>({applyToStack:n=>{n.addRelativeTo(Wi({config:e,instructions:t}),Gi)}}),qi=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=Object.assign(e,{endpoint:n==null?void 0:async()=>Vi(await p(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:p(r??!1),useFipsEndpoint:p(i??!1)}),o;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!o&&(o=Bi(e.serviceId)),o),a},Ji=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`),Yi=e=>{let{retryStrategy:t,retryMode:n}=e,r=p(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await p(n)()===Vr.ADAPTIVE?new ui(r):new li(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},Xi=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},Zi=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,Qi=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>$i[t.step]-$i[e.step]||ea[t.priority||`normal`]-ea[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=Xi(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of Xi(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Xi(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Xi(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${Zi(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=Xi(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Zi(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${Zi(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${Zi(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=Xi(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Zi(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${Zi(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${Zi(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(Qi()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=Xi(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(Qi());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return Zi(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},$i={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ea={high:3,normal:2,low:1},ta=class{config;middlewareStack=Qi();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},na=`***SensitiveInformation***`;function ra(e,t){if(t==null)return t;let n=m.of(e);if(n.getMergedTraits().sensitive)return na;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return na}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return na}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=ra(i,e[t]));return r}return t}var ia=class{middlewareStack=Qi();schema;static classBuilder(){return new aa}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,ee={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[me]:{commandInstance:this,...c},...l},{requestHandler:p}=t,te=n??{};return c.eventStream&&(te={isEventStream:!0,...te}),d.resolve(e=>p.handle(e.request,te),ee)}},aa=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends ia{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?ra.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?ra.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},oa=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},sa=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),ca=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{}}},la=Object.values(pe),ua=e=>{let t=[];for(let n in pe){let r=pe[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();la.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},da=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();la.includes(n)&&(t[n]=e.checksumConstructor())}),t},fa=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),pa=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},ma=e=>Object.assign(ua(e),fa(e)),ha=e=>Object.assign(da(e),pa(e)),ga=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=ga(e[n]));return e},_a=class{trace(){}debug(){}info(){}warn(){}error(){}},va=e=>e?.body instanceof ReadableStream;function ya(e,t){if(he.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(Yt(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var ba=e=>(t,n)=>async r=>{let a=await e.retryStrategy(),o=await e.maxAttempts();if(Sa(a)){a=a;let s=await a.acquireInitialRetryToken((n.partition_id??``)+(n.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:d}=r,f=i.isInstance(d);for(f&&(d.headers[ri]=un());;)try{f&&(d.headers[ii]=`attempt=${l+1}; max=${o}`);let{response:e,output:n}=await t(r);return a.recordSuccess(s),n.$metadata.attempts=l+1,n.$metadata.totalRetryDelay=u,{response:e,output:n}}catch(t){let r=Ca(t,e.logger);if(c=Ji(t),f&&va(d))throw(n.logger instanceof _a?console:n.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,r)}catch(e){throw typeof e.$backoff==`number`&&await xa(e.$backoff),c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let i=s.getRetryDelay();u+=i,await xa(i)}}else return a=a,a?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(t,r)},xa=e=>new Promise(t=>setTimeout(t,e)),Sa=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,Ca=(e,t)=>{let n={error:e,errorType:wa(e)},r=ya(e.$response,t);return r&&(n.retryAfterHint=r),n},wa=e=>Zr(e)?`THROTTLING`:Qr(e)?`TRANSIENT`:$r(e)?`SERVER_ERROR`:`CLIENT_ERROR`,Ta={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},Ea=e=>({applyToStack:t=>{t.add(ba(e),Ta)}}),Da=e=>he.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Oa=e=>new Date(Date.now()+e),ka=(e,t)=>Math.abs(Oa(t).getTime()-e)>=3e5,Aa=(e,t)=>{let n=Date.parse(e);return ka(n,t)?n-Date.now():t},ja=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},Ma=async e=>{let t=ja(`context`,e.context),n=ja(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await ja(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Na=class{async sign(e,t,n){if(!i.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await Ma(n),{config:a,signer:o}=r,{signingRegion:s,signingName:c}=r,l=n.context;if(l?.authSchemes?.length??!1){let[e,t]=l.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(s=t?.signingRegion??s,c=t?.signingName??c)}return await o.sign(e,{signingDate:Oa(a.systemClockOffset),signingRegion:s,signingService:c})}errorHandler(e){return t=>{let n=t.ServerTime??Da(t.$response);if(n){let r=ja(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=Aa(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=Da(e);if(n){let e=ja(`config`,t.config);e.systemClockOffset=Aa(n,e.systemClockOffset)}}},Pa=class extends Na{async sign(e,t,n){if(!i.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:a,signingRegion:o,signingRegionSet:s,signingName:c}=await Ma(n),l=(await r.sigv4aSigningRegionSet?.()??s??[o]).join(`,`);return await a.sign(e,{signingDate:Oa(r.systemClockOffset),signingRegion:l,signingService:c})}},Fa=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},Ia=e=>(e.sigv4aSigningRegionSet=Re(e.sigv4aSigningRegionSet),e),La=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=za(e,Ra(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Br(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?Re(e.signer):e.regionInfoProvider?()=>Re(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||ne)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await Re(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||ne)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Ra(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:Jn(t,Kn,qn):n?Re(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function za(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Ba=async(e,t,n)=>({operation:ge(t).operation,region:await p(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Va(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Ha=e=>{let t=[];switch(e.operation){default:t.push(Va(e))}return t},Ua=e=>{let t=La(e);return Object.assign(t,{authSchemePreference:p(e.authSchemePreference??[])})},Wa=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),Ga={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Ka={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-ec2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-ec2":`^3.972.22`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},qa=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??Ja.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??Ja.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},Ja={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`}},Ya=e=>()=>Promise.reject(e),Xa=typeof TextEncoder==`function`?new TextEncoder:null,Za=e=>{if(typeof e==`string`){if(Xa)return Xa.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let 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;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},Qa=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],$a=({defaultsMode:e}={})=>Fa(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(eo()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Qa.join(`, `)}, got ${t}`)}}),eo=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},to=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=Dt.for(r),a=Dt.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=sa(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return sa(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tm.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},no=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},ro=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},io=/[&<>"]/g,ao={"&":`&`,"<":`<`,">":`>`,'"':`"`};function oo(e){return e.replace(io,e=>ao[e])}var so=/[&"'<>\r\n\u0085\u2028]/g,co={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function lo(e){return e.replace(so,e=>co[e])}var uo=class{value;constructor(e){this.value=e}toString(){return lo(``+this.value)}},fo=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new uo(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${oo(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},po;function mo(e){po||=new DOMParser;let t=po.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var ho=class extends no{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Bn(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=m.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??se)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=m.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new ro(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=mo(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),ga(i)}return{}}},go=class extends no{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=m.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Ue)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(un())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof An?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),zn(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(Gt(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),ee=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,ee),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${st(e)}=`}writeValue(e){this.buffer+=st(e)}},_o=class extends Rn{options;serializer;deserializer;mixin=new to;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new go(t),this.deserializer=new ho(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(ct(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=m.of(e.output),a={};if(n.statusCode>=300){let i=await ot(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await ot(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=m.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},vo=class extends _o{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},yo=(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`},bo=class extends no{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=m.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??He)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=fo.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=fo.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=fo.of(e);if(typeof n!=`string`)if(t instanceof fo||t instanceof uo)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=fo.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=fo.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[ee,p]=this.getXmlnsAttribute(e,r),te=(e,t,n)=>{let r=fo.of(s,t),[i,a]=this.getXmlnsAttribute(o,p);a&&r.addAttribute(i,a),e.addChildNode(r);let l=fo.of(u);c.isListSchema()?this.writeList(c,n,l,p):c.isMapSchema()?this.writeMap(c,n,l,p,!0):c.isStructSchema()?l=this.writeStruct(c,n,p):this.writeSimpleInto(c,n,l,p),e.addChildNode(l)};if(f)for(let r in t){let i=t[r];if(d||i!=null){let t=fo.of(a.xmlName??e.getMemberName());te(t,r,i),n.addChildNode(t)}}else{let r;i||(r=fo.of(a.xmlName??e.getMemberName()),p&&r.addAttribute(ee,p),n.addChildNode(r));for(let e in t){let a=t[e];if(d||a!=null){let t=fo.of(`entry`);te(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=m.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??Ue)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(zn(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=Gt(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=Gt(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof An?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?un():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=m.of(e),o=new uo(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},xo=class extends no{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new bo(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ho(this.settings);return e.setSerdeContext(this.serdeContext),e}},So=class extends Ln{codec;serializer;deserializer;mixin=new to;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new xo(t),this.serializer=new Un(this.codec.createSerializer(),t),this.deserializer=new Vn(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=m.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=yo(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=m.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=f.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},Co=`ref`,wo=-1,To=!0,Eo=`isSet`,Do=`PartitionResult`,Oo=`booleanEquals`,ko=`getAttr`,Ao={[Co]:`Endpoint`},jo={[Co]:Do},Mo={},No=[{[Co]:`Region`}],Po={conditions:[[Eo,[Ao]],[Eo,No],[`aws.partition`,No,Do],[Oo,[{[Co]:`UseFIPS`},To]],[Oo,[{[Co]:`UseDualStack`},To]],[Oo,[{fn:ko,argv:[jo,`supportsDualStack`]},To]],[Oo,[{fn:ko,argv:[jo,`supportsFIPS`]},To]],[`stringEquals`,[{fn:ko,argv:[jo,`name`]},`aws-us-gov`]]],results:[[wo],[wo,`Invalid Configuration: FIPS and custom endpoint are not supported`],[wo,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Ao,Mo],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Mo],[wo,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,Mo],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,Mo],[wo,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,Mo],[wo,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,Mo],[wo,`Invalid Configuration: Missing Region`]]},Fo=2,Io=1e8,Lo=new Int32Array([-1,1,-1,0,13,3,1,4,Io+12,2,5,Io+12,3,8,6,4,7,Io+11,5,Io+9,Io+10,4,11,9,6,10,Io+8,7,Io+6,Io+7,5,12,Io+5,6,Io+4,Io+5,3,Io+1,14,4,Io+2,Io+3]),Ro=Zn.from(Lo,Fo,Po.conditions,Po.results),zo=new Qn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Bo=(e,t={})=>zo.get(e,()=>Ar(Ro,{endpointParams:e,logger:t.logger}));nr.aws=zr;var Vo=class e extends oa{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Ho=`AllAvailabilityZones`,Uo=`AttributeBooleanValue`,Wo=`AssociateCarrierIpAddress`,Go=`AdditionalFlexibleNetworkInterfaces`,Ko=`AvailableIpAddressCount`,qo=`AssignIpv6AddressOnCreation`,Jo=`AttachInternetGateway`,Yo=`AttachInternetGatewayRequest`,Xo=`AdditionalInfo`,Zo=`AssociationId`,Qo=`AttachmentId`,$o=`AmiLaunchIndex`,es=`AttachmentLimitType`,ts=`AssociatePublicIpAddress`,ns=`AmazonProvidedIpv6CidrBlock`,rs=`AutoRecoverySupported`,is=`AssociateRouteTableRequest`,as=`AssociateRouteTableResult`,os=`AssociateRouteTable`,ss=`AllRegions`,cs=`AssociatedResource`,ls=`AutoRecovery`,us=`AssociationState`,ds=`AuthorizeSecurityGroupEgress`,eee=`AuthorizeSecurityGroupEgressRequest`,tee=`AuthorizeSecurityGroupEgressResult`,nee=`AuthorizeSecurityGroupIngressRequest`,fs=`AuthorizeSecurityGroupIngressResult`,ps=`AuthorizeSecurityGroupIngress`,ms=`AmdSevSnp`,hs=`ArchitectureTypeList`,gs=`AttachTime`,_s=`AttachVolumeRequest`,vs=`AttributeValue`,ys=`AttachVolume`,bs=`AvailabilityZone`,xs=`AvailabilityZoneGeography`,Ss=`AvailabilityZoneGeographyList`,Cs=`AvailabilityZoneId`,ws=`AvailabilityZoneList`,Ts=`AvailabilityZoneMessage`,Es=`AvailabilityZoneMessageList`,Ds=`AvailabilityZoneSubGeography`,Os=`AvailabilityZoneSubGeographyList`,ks=`AvailabilityZones`,As=`Accelerators`,js=`Affinity`,Ms=`Arn`,Ns=`Architecture`,Ps=`Associations`,Fs=`Association`,Is=`Attribute`,Ls=`Attachment`,Rs=`Attachments`,zs=`BlobAttributeValue`,Bs=`BaselineBandwidthInGbps`,Vs=`BaselineBandwidthInMbps`,Hs=`BlockDeviceMapping`,Us=`BlockDeviceMappingList`,Ws=`BlockDeviceMappingRequestList`,Gs=`BlockDeviceMappings`,Ks=`BlockDurationMinutes`,qs=`BaselineIops`,Js=`BootMode`,Ys=`BootModeTypeList`,Xs=`BareMetal`,Zs=`BlockPublicAccessStates`,Qs=`BurstablePerformanceSupported`,$s=`BaselineThroughputInMBps`,ec=`BandwidthWeighting`,tc=`BandwidthWeightingTypeList`,nc=`BandwidthWeightings`,rc=`CidrBlock`,ic=`CidrBlockAssociationSet`,ac=`CapacityBlockId`,oc=`CidrBlockState`,sc=`CoreCountList`,cc=`CoreCount`,lc=`CpuCredits`,uc=`CompletionDurationMinutes`,dc=`CreationDate`,fc=`CarrierGatewayId`,pc=`CurrentGeneration`,mc=`CarrierIp`,hc=`CurrentInstanceBootMode`,gc=`CreateInternetGateway`,_c=`CreateInternetGatewayRequest`,vc=`CreateInternetGatewayResult`,yc=`CreateImageRequest`,bc=`CreateImageResult`,xc=`CidrIp`,Sc=`CidrIpv6`,Cc=`CidrIpv4`,wc=`CoreInfo`,Tc=`CreateImage`,Ec=`CreateKeyPair`,Dc=`CreateKeyPairRequest`,Oc=`CoreNetworkArn`,kc=`CpuOptions`,Ac=`CustomerOwnedIp`,jc=`CustomerOwnedIpv4Pool`,Mc=`CpuOptionsRequest`,Nc=`CreatePlacementGroup`,Pc=`CreatePlacementGroupRequest`,Fc=`CreatePlacementGroupResult`,Ic=`CapacityReservationId`,Lc=`CapacityReservationPreference`,Rc=`CreateRouteRequest`,zc=`CapacityReservationResourceGroupArn`,Bc=`CreateRouteResult`,Vc=`CapacityReservationSpecificationResponse`,Hc=`CapacityReservationSpecification`,Uc=`CapacityReservationTarget`,Wc=`CapacityReservationTargetResponse`,Gc=`CreateRouteTableRequest`,Kc=`CreateRouteTableResult`,qc=`CreateRouteTable`,Jc=`CreateRoute`,Yc=`CreateSecurityGroup`,Xc=`CreateSecurityGroupRequest`,Zc=`CreateSecurityGroupResult`,Qc=`CopySnapshotRequest`,$c=`CopySnapshotRequestPSU`,el=`CopySnapshotResult`,tl=`CreateSnapshotRequest`,nl=`CreateSubnetRequest`,rl=`CreateSubnetResult`,il=`CreditSpecificationRequest`,al=`CopySnapshot`,ol=`CreditSpecification`,sl=`CreateSnapshot`,cl=`CreateSubnet`,ll=`CurrentState`,ul=`ClientToken`,dl=`ConnectionTrackingConfiguration`,fl=`ConnectionTrackingSpecification`,pl=`ConnectionTrackingSpecificationRequest`,ml=`ConnectionTrackingSpecificationResponse`,hl=`CompletionTime`,gl=`CreateTime`,_l=`CreateVolumeRequest`,vl=`CreateVpcRequest`,yl=`CreateVpcResult`,bl=`CreateVolume`,xl=`CreateVpc`,Sl=`Code`,Cl=`Configured`,wl=`Count`,Tl=`DisableApiStop`,El=`DisableApiTermination`,Dl=`DestinationAvailabilityZone`,Ol=`DescribeAvailabilityZonesRequest`,kl=`DescribeAvailabilityZonesResult`,Al=`DescribeAvailabilityZones`,jl=`DestinationCidrBlock`,Ml=`DefaultConnectionTrackingConfiguration`,Nl=`DefaultCores`,Pl=`DataEncryptionKeyId`,Fl=`DefaultEnaQueueCountPerInterface`,Il=`DefaultForAz`,Ll=`DedicatedHostsSupported`,Rl=`DeviceIndex`,zl=`DestinationIpv6CidrBlock`,Bl=`DescribeInternetGatewaysRequest`,Vl=`DescribeInternetGatewaysResult`,Hl=`DescribeInternetGateways`,Ul=`DiskInfoList`,Wl=`DescribeImagesRequest`,Gl=`DescribeImagesResult`,Kl=`DescribeInstancesRequest`,ql=`DescribeInstancesResult`,Jl=`DescribeInstanceTypesRequest`,Yl=`DescribeInstanceTypesResult`,Xl=`DescribeInstanceTypes`,Zl=`DescribeImages`,Ql=`DescribeInstances`,$l=`DiskInfo`,eu=`DeleteKeyPair`,tu=`DeleteKeyPairRequest`,nu=`DeleteKeyPairResult`,ru=`DescribeKeyPairsRequest`,iu=`DescribeKeyPairsResult`,au=`DescribeKeyPairs`,ou=`DeviceName`,su=`DefaultNetworkCardIndex`,cu=`DestinationOutpostArn`,lu=`DhcpOptionsId`,uu=`DeleteOnTermination`,du=`DeletePlacementGroup`,fu=`DeletePlacementGroupRequest`,pu=`DescribePlacementGroupsRequest`,mu=`DescribePlacementGroupsResult`,hu=`DescribePlacementGroups`,gu=`DestinationPrefixListId`,_u=`DeregistrationProtection`,h=`DryRun`,vu=`DescribeRegionsRequest`,yu=`DescribeRegionsResult`,bu=`DescribeRouteTablesRequest`,xu=`DescribeRouteTablesResult`,Su=`DescribeRouteTables`,Cu=`DestinationRegion`,wu=`DescribeRegions`,Tu=`DeleteSecurityGroup`,Eu=`DeleteSecurityGroupRequest`,Du=`DeleteSecurityGroupResult`,Ou=`DescribeSecurityGroupsRequest`,ku=`DescribeSecurityGroupsResult`,Au=`DescribeSecurityGroups`,ju=`DeleteSnapshotRequest`,Mu=`DeleteSubnetRequest`,Nu=`DescribeSnapshotsRequest`,Pu=`DescribeSnapshotsResult`,Fu=`DescribeSubnetsRequest`,Iu=`DescribeSubnetsResult`,Lu=`DeleteSnapshot`,Ru=`DeleteSubnet`,zu=`DescribeSnapshots`,Bu=`DescribeSubnets`,Vu=`DefaultTcpEstablishedTimeout`,Hu=`DefaultThreadsPerCore`,Uu=`DeprecationTime`,Wu=`DefaultUdpStreamTimeout`,Gu=`DefaultUdpTimeout`,Ku=`DefaultVCpus`,qu=`DeleteVolumeRequest`,Ju=`DeleteVpcRequest`,Yu=`DescribeVolumesRequest`,Xu=`DescribeVolumesResult`,Zu=`DescribeVpcsRequest`,Qu=`DescribeVpcsResult`,$u=`DetachVolumeRequest`,ed=`DeleteVolume`,td=`DeleteVpc`,nd=`DescribeVolumes`,rd=`DescribeVpcs`,id=`DetachVolume`,ad=`Description`,od=`Device`,sd=`Disks`,cd=`EbsBlockDevice`,ld=`ExecutableByStringList`,ud=`ExecutableBy`,dd=`EbsCardIndex`,fd=`EbsCardInfoList`,pd=`EbsCardInfo`,md=`EbsCards`,hd=`EncryptionControl`,gd=`EnableDns64`,_d=`ElasticFileSystem`,vd=`ElasticFileSystemExclusion`,yd=`ElasticGpuAssociation`,bd=`ElasticGpuAssociationId`,xd=`ElasticGpuAssociationList`,Sd=`ElasticGpuAssociationState`,Cd=`ElasticGpuAssociationTime`,wd=`ElasticGpuAssociations`,Td=`ElasticGpuId`,Ed=`ElasticGpuSpecification`,Dd=`ElasticGpuSpecifications`,Od=`ElasticInferenceAccelerator`,kd=`ElasticInferenceAcceleratorAssociation`,Ad=`ElasticInferenceAcceleratorAssociationId`,jd=`ElasticInferenceAcceleratorAssociationList`,Md=`ElasticInferenceAcceleratorAssociationState`,Nd=`ElasticInferenceAcceleratorAssociationTime`,Pd=`ElasticInferenceAcceleratorArn`,Fd=`ElasticInferenceAcceleratorAssociations`,Id=`ElasticInferenceAccelerators`,Ld=`EbsInstanceBlockDevice`,Rd=`EbsInstanceBlockDeviceSpecification`,zd=`EncryptionInTransitSupported`,Bd=`EbsInfo`,Vd=`EfaInfo`,Hd=`EnableLniAtDeviceIndex`,Ud=`EbsOptimized`,Wd=`EbsOptimizedInfo`,Gd=`EgressOnlyInternetGateway`,Kd=`EgressOnlyInternetGatewayExclusion`,qd=`EgressOnlyInternetGatewayId`,Jd=`EnclaveOptionsRequest`,Yd=`EbsOptimizedSupport`,Xd=`EnclaveOptions`,Zd=`EnablePrimaryIpv6`,Qd=`EnaQueueCount`,$d=`EnableResourceNameDnsAAAARecord`,ef=`EnableResourceNameDnsARecord`,tf=`EnaSrdEnabled`,nf=`EnaSrdSpecification`,rf=`EnaSrdSpecificationRequest`,af=`EnaSrdSupported`,of=`EnaSrdUdpEnabled`,sf=`EnaSrdUdpSpecification`,cf=`EnaSrdUdpSpecificationRequest`,lf=`EfaSupported`,uf=`EncryptionSupport`,df=`EnaSupport`,ff=`EndTime`,pf=`ExecutableUsers`,mf=`Ebs`,hf=`Enabled`,gf=`Encrypted`,_f=`Endpoint`,vf=`Force`,yf=`FpgaDeviceInfo`,bf=`FpgaDeviceInfoList`,xf=`FpgaDeviceMemoryInfo`,Sf=`FlexibleEnaQueuesSupport`,Cf=`FpgaInfo`,wf=`FilterList`,Tf=`FromPort`,Ef=`FastRestored`,Df=`FullSnapshotSizeInBytes`,Of=`FreeTierEligible`,kf=`Filters`,Af=`Filter`,jf=`Fpgas`,Mf=`Groups`,Nf=`GroupArn`,Pf=`GetConsoleOutput`,Ff=`GetConsoleOutputRequest`,If=`GetConsoleOutputResult`,Lf=`GroupDescription`,Rf=`GpuDeviceInfo`,zf=`GpuDeviceInfoList`,Bf=`GpuDeviceMemoryInfo`,Vf=`GatewayId`,Hf=`GroupIdentifierList`,Uf=`GroupIdStringList`,Wf=`GpuInfo`,g=`GroupId`,Gf=`GroupIds`,Kf=`GroupIdentifier`,qf=`GroupLongName`,Jf=`GroupName`,Yf=`GroupNameStringList`,Xf=`GroupNames`,Zf=`GroupOwnerId`,Qf=`GpuPartitionSize`,$f=`Geography`,ep=`Gpus`,tp=`HiddenByDefault`,np=`HttpEndpoint`,rp=`HostId`,ip=`HibernationOptions`,ap=`HibernationOptionsRequest`,op=`HttpProtocolIpv6`,sp=`HttpPutResponseHopLimit`,cp=`HostResourceGroupArn`,lp=`HibernationSupported`,up=`HttpTokens`,dp=`HostnameType`,fp=`Hibernate`,pp=`Hypervisor`,mp=`Id`,hp=`Ipv6Addresses`,gp=`Ipv6AddressAttribute`,_p=`Ipv6AddressCount`,vp=`InstanceAttachmentEnaSrdSpecification`,yp=`InstanceAttachmentEnaSrdUdpSpecification`,bp=`InferenceAcceleratorInfo`,xp=`Ipv4AddressesPerInterface`,Sp=`Ipv6AddressesPerInterface`,Cp=`Ipv4AddressesPerSecondaryInterface`,wp=`ImageAllowed`,Tp=`IpAddress`,Ep=`Ipv6Address`,Dp=`InstanceBlockDeviceMapping`,Op=`InstanceBlockDeviceMappingList`,kp=`InstanceBlockDeviceMappingSpecification`,Ap=`InstanceBlockDeviceMappingSpecificationList`,jp=`Ipv6CidrBlock`,Mp=`Ipv6CidrBlockAssociationSet`,Np=`Ipv6CidrBlockNetworkBorderGroup`,Pp=`Ipv6CidrBlockState`,Fp=`IncludeDeprecated`,Ip=`InferenceDeviceInfo`,Lp=`InferenceDeviceInfoList`,Rp=`InferenceDeviceMemoryInfo`,ree=`IncludeDisabled`,zp=`IsDefault`,Bp=`IsEgress`,Vp=`InternetGateway`,Hp=`InternetGatewayAttachment`,Up=`InternetGatewayAttachmentList`,Wp=`InternetGatewayBlockMode`,Gp=`InternetGatewayExclusion`,Kp=`InternetGatewayId`,qp=`InternetGatewayIdList`,Jp=`InternetGatewayIds`,Yp=`InternetGatewayList`,Xp=`InternetGateways`,Zp=`InstanceId`,Qp=`InstanceIpv6Address`,$p=`InstanceIpv6AddressList`,em=`InstanceInterruptionBehavior`,tm=`IamInstanceProfile`,nm=`Ipv6IpamPoolId`,rm=`Ipv4IpamPoolId`,im=`InstanceIpv4PrefixList`,am=`InstanceIpv6PrefixList`,om=`IamInstanceProfileSpecification`,sm=`InstanceIpv4Prefix`,cm=`InstanceIpv6Prefix`,lm=`InstanceInitiatedShutdownBehavior`,um=`ImageIdStringList`,dm=`InstanceIdStringList`,fm=`ImageId`,pm=`ImageIds`,mm=`InstanceIds`,hm=`ImportKeyPair`,gm=`ImportKeyPairRequest`,_m=`ImportKeyPairResult`,vm=`ImageLocation`,ym=`ImageList`,bm=`InstanceLifecycle`,xm=`InstanceList`,Sm=`InstanceMaintenanceOptions`,Cm=`InstanceMaintenanceOptionsRequest`,wm=`InstanceMarketOptionsRequest`,Tm=`InstanceMetadataOptionsRequest`,Em=`InstanceMetadataOptionsResponse`,Dm=`InstanceMarketOptions`,Om=`IncludeManagedResources`,km=`InstanceMetadataTags`,Am=`Ipv6Native`,jm=`InstanceNetworkInterface`,Mm=`InstanceNetworkInterfaceAssociation`,Nm=`InstanceNetworkInterfaceAttachment`,Pm=`InstanceNetworkInterfaceList`,Fm=`InstanceNetworkInterfaceSpecification`,Im=`InstanceNetworkInterfaceSpecificationList`,Lm=`Ipv6NetmaskLength`,Rm=`Ipv4NetmaskLength`,zm=`InstanceNetworkPerformanceOptions`,Bm=`InstanceNetworkPerformanceOptionsRequest`,Vm=`ImageOwnerAlias`,Hm=`IpOwnerId`,Um=`InstanceOwnerId`,Wm=`InstanceOwningService`,Gm=`Ipv6PrefixCount`,Km=`Ipv4PrefixCount`,qm=`IpPermissionsEgress`,Jm=`InstancePrivateIpAddress`,Ym=`InstancePrivateIpAddressList`,Xm=`IsPrimaryIpv6`,Zm=`IncludePublicKey`,Qm=`IpPermissionList`,$m=`Ipv4PrefixList`,eh=`Ipv6PrefixList`,th=`Ipv4PrefixSpecificationRequest`,nh=`Ipv6PrefixSpecificationRequest`,rh=`Ipv6Prefixes`,ih=`IpPermissions`,ah=`IpPermission`,oh=`IpProtocol`,sh=`Ipv6Prefix`,ch=`Ipv6Pool`,lh=`Ipv4Prefixes`,uh=`Ipv4Prefix`,dh=`IpRangeList`,fh=`Ipv6RangeList`,ph=`IpRanges`,mh=`IpRange`,hh=`Ipv6Ranges`,gh=`Ipv6Range`,_h=`InstanceStateChange`,vh=`InstanceStateChangeList`,yh=`InstanceSecondaryInterfaceAttachment`,bh=`InstanceSecondaryInterfaceList`,xh=`InstanceSecondaryInterfacePrivateIpAddress`,Sh=`InstanceSecondaryInterfacePrivateIpAddressList`,Ch=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,wh=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Th=`InstanceSecondaryInterfaceSpecificationListRequest`,Eh=`InstanceSecondaryInterfaceSpecificationRequest`,Dh=`InstanceSecondaryInterface`,Oh=`InstanceStorageInfo`,kh=`InstanceStorageSupported`,Ah=`ImdsSupport`,jh=`InstanceState`,Mh=`IpSource`,Nh=`Ipv6Supported`,Ph=`InstanceType`,Fh=`InstanceTypeInfoList`,Ih=`InstanceTypeInfo`,Lh=`ImageType`,Rh=`InstanceTenancy`,zh=`InstanceTypes`,Bh=`InterfaceType`,Vh=`IncludeUnsupportedInRegion`,Hh=`Images`,Uh=`Image`,Wh=`Instance`,Gh=`Instances`,Kh=`Iops`,qh=`Key`,Jh=`KeyFormat`,Yh=`KeyFingerprint`,Xh=`KernelId`,Zh=`KmsKeyId`,Qh=`KeyMaterial`,$h=`KeyName`,eg=`KeyNameStringList`,tg=`KeyNames`,ng=`KeyPairs`,rg=`KeyPairId`,ig=`KeyPairIdStringList`,ag=`KeyPairIds`,og=`KeyPairInfo`,sg=`KeyPairList`,cg=`KeyPair`,lg=`KeyType`,ug=`Kernel`,dg=`LicenseConfigurationArn`,fg=`LicenseConfigurationRequest`,pg=`LicenseConfiguration`,mg=`LambdaExclusion`,hg=`LogicalGpuCount`,gg=`LocalGatewayId`,_g=`LinkedGroupId`,vg=`LicenseList`,yg=`LastLaunchedTime`,bg=`LicenseSpecifications`,xg=`LicenseSpecificationListRequest`,Sg=`LicenseSpecification`,Cg=`LaunchTemplate`,wg=`LaunchTemplateId`,Tg=`LaunchTemplateName`,Eg=`LaunchTemplateSpecification`,Dg=`LaunchTime`,Og=`Latest`,kg=`Lambda`,Ag=`Licenses`,jg=`Location`,Mg=`MultiAttachEnabled`,Ng=`MediaAcceleratorInfo`,Pg=`MacAddress`,Fg=`MaximumBandwidthInMbps`,Ig=`MapCustomerOwnedIpOnLaunch`,Lg=`MaxCount`,Rg=`MinCount`,zg=`MediaDeviceInfo`,Bg=`MediaDeviceInfoList`,Vg=`MediaDeviceMemoryInfo`,Hg=`MaximumEbsAttachments`,Ug=`MaximumEbsCards`,Wg=`MaximumEfaInterfaces`,Gg=`MaximumEnaQueueCount`,Kg=`MaximumEnaQueueCountPerInterface`,qg=`MaximumIops`,Jg=`ModifyInstanceAttributeRequest`,Yg=`ModifyInstanceAttributeValue`,Xg=`ModifyInstanceAttribute`,Zg=`MemoryInfo`,Qg=`MaximumNetworkCards`,$g=`MaximumNetworkInterfaces`,e_=`MetadataOptions`,t_=`MaintenanceOptions`,n_=`MapPublicIpOnLaunch`,r_=`MaxPrice`,i_=`MaxResults`,a_=`MaximumSecondaryNetworkInterfaces`,o_=`ModificationState`,s_=`MarketType`,c_=`MaximumThroughputInMBps`,l_=`ModifyVolumeRequest`,u_=`ModifyVolumeResult`,d_=`ModifyVolume`,f_=`Main`,p_=`Manufacturer`,m_=`Managed`,h_=`Message`,g_=`Messages`,__=`Mode`,v_=`Monitoring`,y_=`Name`,b_=`NetworkBorderGroup`,x_=`NetworkCards`,S_=`NetworkCardIndex`,C_=`NetworkCardInfoList`,w_=`NetworkCardInfo`,T_=`NoDevice`,E_=`NeuronDeviceCoreInfo`,D_=`NeuronDeviceInfo`,O_=`NeuronDeviceInfoList`,k_=`NeuronDeviceMemoryInfo`,A_=`NeuronDevices`,j_=`NitroEnclavesSupport`,M_=`NatGateway`,N_=`NatGatewayExclusion`,P_=`NatGatewayId`,F_=`NetworkInterfaceId`,I_=`NetworkInterfaces`,L_=`NetworkInfo`,R_=`NeuronInfo`,z_=`NetworkPerformanceOptions`,B_=`NetworkPerformance`,V_=`NoReboot`,H_=`NvmeSupport`,U_=`NitroTpmInfo`,W_=`NitroTpmSupport`,G_=`NitroTpmSupportedVersionsList`,_=`NextToken`,K_=`NestedVirtualization`,q_=`Origin`,J_=`OutpostArn`,Y_=`OwnerAlias`,X_=`OwnerId`,Z_=`OptInStatus`,Q_=`OriginalIops`,$_=`OwnerIds`,ev=`OriginalMultiAttachEnabled`,tv=`OdbNetworkArn`,nv=`OperatorRequest`,rv=`OperatorResponse`,iv=`OwnerStringList`,av=`OriginalSize`,ov=`OriginalThroughput`,sv=`OriginalVolumeType`,cv=`Operator`,lv=`Output`,uv=`Owners`,dv=`Owner`,fv=`Principal`,pv=`PeakBandwidthInGbps`,mv=`ProductCodeId`,hv=`ProductCodeList`,gv=`ProductCodeType`,_v=`PartitionCount`,vv=`ProductCode`,yv=`ProductCodes`,bv=`PrivateDnsName`,xv=`PrivateDnsNameOptions`,Sv=`PrivateDnsNameOptionsOnLaunch`,Cv=`PrivateDnsNameOptionsRequest`,wv=`PrivateDnsNameOptionsResponse`,Tv=`PublicDnsName`,Ev=`PlatformDetails`,Dv=`PlacementGroup`,Ov=`PlacementGroupInfo`,kv=`PlacementGroupIdStringList`,Av=`PlacementGroupList`,jv=`PlacementGroupStrategyList`,Mv=`PlacementGroups`,Nv=`PublicIp`,Pv=`PrivateIpAddressCount`,Fv=`PrivateIpAddressSpecification`,Iv=`PrivateIpAddressSpecificationList`,Lv=`PrivateIpAddress`,Rv=`PrivateIpAddresses`,zv=`PublicIpAddress`,Bv=`PublicIpv4Pool`,Vv=`PrimaryIpv6`,Hv=`ProcessorInfo`,Uv=`PublicKey`,Wv=`PublicKeyMaterial`,Gv=`PrefixListId`,Kv=`PrefixListIdList`,qv=`PrefixListIds`,Jv=`PartitionNumber`,Yv=`PeeringStatus`,Xv=`PhcSupport`,Zv=`PreviousState`,Qv=`PresignedUrl`,$v=`PropagatingVgw`,ey=`PropagatingVgwList`,ty=`PropagatingVgws`,ny=`ParentZoneId`,ry=`ParentZoneName`,iy=`Platform`,ay=`Placement`,oy=`Primary`,sy=`Progress`,cy=`Public`,ly=`Return`,uy=`RestorableByUserIds`,dy=`RestorableBy`,fy=`RootDeviceName`,py=`RootDeviceType`,my=`RootDeviceTypeList`,hy=`RestoreExpiryTime`,gy=`ResourceExclusions`,_y=`RegionGeography`,vy=`ReferencedGroupId`,yy=`ReferencedGroupInfo`,by=`RegionGeographyList`,xy=`RunInstancesMonitoringEnabled`,Sy=`RebootInstancesRequest`,Cy=`RunInstancesRequest`,wy=`RunInstancesUserData`,Ty=`RamdiskId`,Ey=`ReservationId`,Dy=`RebootInstances`,Oy=`RequesterId`,ky=`RunInstances`,Ay=`RegionList`,jy=`ReservationList`,My=`RouteList`,Ny=`RebootMigrationSupport`,Py=`RebootMigration`,Fy=`RegionName`,iee=`RegionNameStringList`,aee=`RegionNames`,oee=`ReferencedSecurityGroup`,see=`RevokeSecurityGroupEgress`,cee=`RevokeSecurityGroupEgressRequest`,lee=`RevokeSecurityGroupEgressResult`,uee=`RevokeSecurityGroupIngressRequest`,dee=`RevokeSecurityGroupIngressResult`,fee=`RevokeSecurityGroupIngress`,pee=`RevokedSecurityGroupRule`,mee=`RevokedSecurityGroupRuleList`,Iy=`RevokedSecurityGroupRules`,hee=`RouteTableAssociation`,gee=`RouteTableAssociationId`,_ee=`RouteTableAssociationList`,vee=`RouteTableAssociationState`,Ly=`RouteTableId`,yee=`RouteTableIdStringList`,bee=`RouteTableIds`,xee=`RouteTableList`,See=`ResourceType`,Ry=`RouteTable`,Cee=`RouteTables`,wee=`Ramdisk`,Tee=`Regions`,Eee=`Region`,Dee=`Reservations`,Oee=`Reservation`,zy=`Route`,By=`Routes`,Vy=`SupportedAdditionalProcessorFeatureList`,Hy=`SubnetArn`,Uy=`SupportedArchitectures`,Wy=`SupportedBootModes`,Gy=`SubnetCidrBlockState`,Ky=`SustainedClockSpeedInGhz`,qy=`SourceDestCheck`,Jy=`SpreadDomain`,Yy=`SupportedFeatures`,Xy=`SubGeography`,Zy=`SecurityGroupArn`,Qy=`SecurityGroupId`,$y=`SecurityGroupIdStringList`,eb=`SecurityGroupIds`,tb=`SecurityGroupList`,nb=`SecurityGroupRules`,rb=`SecurityGroupRuleArn`,ib=`SecurityGroupRuleIds`,ab=`SecurityGroupRuleIdList`,ob=`SecurityGroupRuleId`,sb=`SecurityGroupRuleList`,cb=`SecurityGroupRule`,lb=`SecurityGroupStringList`,ub=`SecurityGroups`,db=`SecurityGroup`,fb=`SubnetIds`,pb=`SubnetIpv6CidrBlockAssociation`,mb=`SubnetIpv6CidrBlockAssociationSet`,hb=`SizeInGB`,gb=`SourceImageId`,_b=`SecondaryInterfaceId`,vb=`SourceInstanceId`,yb=`SizeInMiB`,bb=`SpotInstanceRequestId`,xb=`SourceImageRegion`,Sb=`StartInstancesRequest`,Cb=`StartInstancesResult`,wb=`StopInstancesRequest`,Tb=`StopInstancesResult`,Eb=`SupportedInRegion`,Db=`SnapshotIdStringList`,Ob=`SubnetIdStringList`,kb=`SpotInstanceType`,Ab=`SecondaryInterfaces`,jb=`SecondaryInterface`,Mb=`SnapshotId`,Nb=`SnapshotIds`,Pb=`StartingInstances`,Fb=`StartInstances`,Ib=`StoppingInstances`,Lb=`StopInstances`,Rb=`SubnetId`,zb=`SnapshotLocation`,Bb=`SnapshotList`,Vb=`SpreadLevel`,Hb=`SubnetList`,Ub=`SpotMarketOptions`,Wb=`StatusMessage`,Gb=`StateMessage`,Kb=`SecondaryNetworkId`,qb=`SriovNetSupport`,Jb=`SecondaryNetworkSupported`,Yb=`SpotOptions`,Xb=`SkipOsShutdown`,Zb=`SecondaryPrivateIpAddressCount`,Qb=`SupportedRootDeviceTypes`,$b=`SourceRegion`,ex=`StateReason`,tx=`SourceSecurityGroupName`,nx=`SourceSecurityGroupOwnerId`,rx=`SourceSnapshotId`,ix=`SecondarySubnetId`,ax=`SupportedStrategies`,ox=`StartTime`,sx=`StateTransitionReason`,cx=`SseType`,lx=`StorageTier`,ux=`SupportedUsageClasses`,dx=`SensitiveUserData`,fx=`SourceVolumeId`,px=`SupportedVirtualizationTypes`,mx=`SupportedVersions`,hx=`Size`,gx=`Snapshots`,_x=`Snapshot`,v=`State`,vx=`Status`,yx=`Strategy`,bx=`Subnet`,xx=`Subnets`,y=`Tags`,Sx=`TcpEstablishedTimeout`,Cx=`TotalFpgaMemoryInMiB`,wx=`TransitGatewayId`,Tx=`TotalGpuMemoryInMiB`,Ex=`TerminateInstances`,Dx=`TotalInferenceMemoryInMiB`,Ox=`TerminateInstancesRequest`,kx=`TerminateInstancesResult`,Ax=`TargetIops`,jx=`TerminatingInstances`,Mx=`TagList`,Nx=`TargetMultiAttachEnabled`,Px=`TotalMediaMemoryInMiB`,Fx=`TotalNeuronDeviceMemoryInMiB`,Ix=`ToPort`,Lx=`ThreadsPerCore`,Rx=`ThreadsPerCoreList`,zx=`TagSpecifications`,Bx=`TotalSizeInGB`,Vx=`TagSpecificationList`,Hx=`TagSpecification`,Ux=`TargetSize`,Wx=`TpmSupport`,Gx=`TargetThroughput`,Kx=`TransferType`,qx=`TargetVolumeType`,Jx=`Tag`,Yx=`Tenancy`,Xx=`Throughput`,Zx=`Timestamp`,Qx=`Type`,$x=`UsageClassTypeList`,eS=`UserData`,tS=`UserId`,nS=`UserIdGroupPairs`,rS=`UserIdGroupPairList`,iS=`UserIdGroupPair`,aS=`UnknownIpPermissions`,oS=`UsageOperation`,sS=`UsageOperationUpdateTime`,cS=`UdpStreamTimeout`,lS=`UdpTimeout`,uS=`Value`,dS=`VolumeAttachmentList`,fS=`VolumeAttachment`,pS=`VpcCidrBlockAssociation`,mS=`VpcCidrBlockAssociationSet`,hS=`VpcCidrBlockState`,gS=`VCpuInfo`,_S=`ValidCores`,vS=`VpcEncryptionControl`,yS=`VpcEncryptionControlConfiguration`,bS=`VpcEncryptionControlExclusion`,xS=`VpcEncryptionControlExclusions`,SS=`VpcEncryptionControlId`,CS=`VpcEndpointId`,wS=`VpcId`,TS=`VpcIpv6CidrBlockAssociation`,ES=`VpcIpv6CidrBlockAssociationSet`,DS=`VolumeInitializationRate`,OS=`VolumeIdStringList`,kS=`VpcIdStringList`,AS=`VolumeId`,jS=`VolumeIds`,MS=`VpcIds`,NS=`VpcLattice`,PS=`VpcLatticeExclusion`,FS=`VolumeList`,IS=`VpcList`,LS=`VolumeModification`,RS=`VirtualName`,zS=`VolumeOwnerId`,BS=`VpcPeeringConnectionId`,VS=`VpcPeeringExclusion`,HS=`VirtualPrivateGateway`,US=`VirtualPrivateGatewayExclusion`,WS=`VpcPeering`,GS=`ValueStringList`,KS=`VolumeSize`,qS=`VolumeType`,JS=`VirtualizationTypeList`,YS=`ValidThreadsPerCore`,XS=`VirtualizationType`,ZS=`ValidUntil`,QS=`Values`,$S=`Version`,eC=`Volumes`,tC=`Volume`,nC=`Vpc`,rC=`Vpcs`,iC=`WorkloadsList`,aC=`Workloads`,oC=`ZoneId`,sC=`ZoneIdStringList`,cC=`ZoneIds`,lC=`ZoneName`,uC=`ZoneNameStringList`,dC=`ZoneNames`,fC=`ZoneType`,pC=`additionalFlexibleNetworkInterfaces`,mC=`availableIpAddressCount`,hC=`assignIpv6AddressOnCreation`,gC=`additionalInfo`,_C=`associationId`,vC=`attachmentId`,yC=`amiLaunchIndex`,bC=`attachmentLimitType`,xC=`associatePublicIpAddress`,SC=`amazonProvidedIpv6CidrBlock`,CC=`autoRecoverySupported`,wC=`associatedResource`,TC=`autoRecovery`,EC=`associationState`,DC=`amdSevSnp`,OC=`associationSet`,kC=`attachmentSet`,AC=`attachTime`,jC=`availabilityZone`,MC=`availabilityZoneId`,NC=`availabilityZoneInfo`,PC=`accelerators`,FC=`affinity`,IC=`arn`,LC=`architecture`,RC=`association`,zC=`attachment`,BC=`attribute`,VC=`baselineBandwidthInGbps`,HC=`baselineBandwidthInMbps`,UC=`blockDeviceMapping`,WC=`baselineIops`,GC=`bootMode`,KC=`bareMetal`,qC=`blockPublicAccessStates`,JC=`burstablePerformanceSupported`,YC=`baselineThroughputInMBps`,XC=`bandwidthWeighting`,ZC=`bandwidthWeightings`,QC=`cidrBlock`,$C=`cidrBlockAssociationSet`,ew=`capacityBlockId`,tw=`cidrBlockState`,nw=`coreCount`,rw=`completionDurationMinutes`,iw=`creationDate`,aw=`carrierGatewayId`,ow=`currentGeneration`,sw=`carrierIp`,cw=`currentInstanceBootMode`,lw=`cidrIp`,uw=`cidrIpv6`,dw=`cidrIpv4`,fw=`coreInfo`,pw=`coreNetworkArn`,mw=`cpuOptions`,hw=`customerOwnedIp`,gw=`customerOwnedIpv4Pool`,_w=`capacityReservationId`,vw=`capacityReservationPreference`,yw=`capacityReservationResourceGroupArn`,bw=`capacityReservationSpecification`,xw=`capacityReservationTarget`,Sw=`currentState`,Cw=`clientToken`,ww=`connectionTrackingConfiguration`,Tw=`completionTime`,Ew=`createTime`,Dw=`code`,Ow=`configured`,kw=`count`,Aw=`disableApiTermination`,jw=`destinationCidrBlock`,Mw=`defaultCores`,Nw=`dataEncryptionKeyId`,Pw=`defaultEnaQueueCountPerInterface`,Fw=`defaultForAz`,Iw=`dedicatedHostsSupported`,Lw=`deviceIndex`,Rw=`destinationIpv6CidrBlock`,zw=`deviceName`,Bw=`defaultNetworkCardIndex`,Vw=`dnsName`,Hw=`dhcpOptionsId`,Uw=`deleteOnTermination`,Ww=`destinationPrefixListId`,Gw=`deregistrationProtection`,b=`dryRun`,Kw=`destinationRegion`,qw=`defaultTcpEstablishedTimeout`,Jw=`defaultThreadsPerCore`,Yw=`deprecationTime`,Xw=`defaultUdpStreamTimeout`,Zw=`defaultUdpTimeout`,Qw=`defaultVCpus`,$w=`description`,eT=`device`,tT=`disks`,nT=`ebsCardIndex`,rT=`ebsCardSet`,iT=`encryptionControl`,aT=`enableDns64`,oT=`elasticFileSystem`,sT=`elasticGpuAssociationId`,cT=`elasticGpuAssociationState`,lT=`elasticGpuAssociationSet`,uT=`elasticGpuAssociationTime`,dT=`elasticGpuId`,fT=`elasticInferenceAcceleratorArn`,pT=`elasticInferenceAcceleratorAssociationId`,mT=`elasticInferenceAcceleratorAssociationState`,hT=`elasticInferenceAcceleratorAssociationSet`,gT=`elasticInferenceAcceleratorAssociationTime`,_T=`encryptionInTransitSupported`,vT=`ebsInfo`,yT=`efaInfo`,bT=`enableLniAtDeviceIndex`,xT=`ebsOptimized`,ST=`ebsOptimizedInfo`,CT=`egressOnlyInternetGateway`,wT=`egressOnlyInternetGatewayId`,TT=`ebsOptimizedSupport`,ET=`enclaveOptions`,DT=`enaQueueCount`,x=`ec2QueryName`,OT=`enableResourceNameDnsAAAARecord`,kT=`enableResourceNameDnsARecord`,AT=`enaSrdEnabled`,jT=`enaSrdSpecification`,MT=`enaSrdSupported`,NT=`enaSrdUdpEnabled`,PT=`enaSrdUdpSpecification`,FT=`efaSupported`,IT=`encryptionSupport`,LT=`enaSupport`,RT=`endTime`,zT=`ebs`,BT=`enabled`,VT=`encrypted`,HT=`flexibleEnaQueuesSupport`,UT=`fpgaInfo`,WT=`fromPort`,GT=`fastRestored`,KT=`fullSnapshotSizeInBytes`,qT=`freeTierEligible`,JT=`force`,YT=`fpgas`,XT=`groupArn`,ZT=`groupDescription`,QT=`gatewayId`,$T=`gpuInfo`,eE=`groupId`,tE=`groupLongName`,nE=`groupName`,rE=`groupOwnerId`,iE=`gpuPartitionSize`,aE=`geographySet`,oE=`groupSet`,sE=`gpus`,cE=`groups`,lE=`hypervisor`,uE=`hiddenByDefault`,dE=`httpEndpoint`,fE=`hostId`,pE=`hibernationOptions`,mE=`httpProtocolIpv6`,hE=`httpPutResponseHopLimit`,gE=`hostResourceGroupArn`,_E=`hibernationSupported`,vE=`httpTokens`,yE=`hostnameType`,bE=`id`,xE=`ipv6AddressAttribute`,SE=`ipv6AddressCount`,CE=`inferenceAcceleratorInfo`,wE=`ipv4AddressesPerInterface`,TE=`ipv6AddressesPerInterface`,EE=`ipv4AddressesPerSecondaryInterface`,DE=`ipv6AddressesSet`,OE=`imageAllowed`,kE=`ipAddress`,AE=`ipv6Address`,jE=`ipv6CidrBlock`,ME=`ipv6CidrBlockAssociationSet`,NE=`ipv6CidrBlockState`,PE=`isDefault`,FE=`isEgress`,IE=`internetGateway`,LE=`internetGatewayBlockMode`,RE=`internetGatewayId`,zE=`internetGatewaySet`,BE=`instanceId`,VE=`iamInstanceProfile`,HE=`instanceInitiatedShutdownBehavior`,UE=`imageId`,WE=`imageLocation`,GE=`instanceLifecycle`,KE=`instanceMetadataTags`,qE=`ipv6Native`,JE=`imageOwnerAlias`,YE=`imageOwnerId`,XE=`instanceOwnerId`,ZE=`ipOwnerId`,QE=`instanceOwningService`,$E=`ipPermissionsEgress`,eD=`isPrimaryIpv6`,tD=`ipv4PrefixSet`,nD=`ipv6PrefixSet`,rD=`ipProtocol`,iD=`ipPermissions`,aD=`ipv4Prefix`,oD=`ipv6Pool`,sD=`ipv6Prefix`,cD=`isPublic`,lD=`ipRanges`,uD=`ipv6Ranges`,dD=`instanceStorageInfo`,fD=`instanceStorageSupported`,pD=`imagesSet`,mD=`imageState`,hD=`imdsSupport`,gD=`instancesSet`,_D=`instanceState`,vD=`ipSource`,yD=`ipv6Supported`,bD=`instanceType`,xD=`instanceTypeSet`,SD=`idempotencyToken`,CD=`imageType`,wD=`instanceTenancy`,TD=`interfaceType`,ED=`iops`,S=`item`,DD=`key`,OD=`keyFingerprint`,kD=`kernelId`,AD=`kmsKeyId`,jD=`keyMaterial`,MD=`keyName`,ND=`keyPairId`,PD=`keySet`,FD=`keyType`,ID=`kernel`,LD=`licenseConfigurationArn`,RD=`logicalGpuCount`,zD=`localGatewayId`,BD=`linkedGroupId`,VD=`lastLaunchedTime`,HD=`licenseSet`,UD=`launchTime`,WD=`lambda`,GD=`multiAttachEnabled`,KD=`mediaAcceleratorInfo`,qD=`macAddress`,JD=`maximumBandwidthInMbps`,YD=`mapCustomerOwnedIpOnLaunch`,XD=`maximumEbsAttachments`,ZD=`maximumEbsCards`,QD=`maximumEfaInterfaces`,$D=`maximumEnaQueueCount`,eO=`maximumEnaQueueCountPerInterface`,tO=`maximumIops`,nO=`memoryInfo`,rO=`maximumNetworkCards`,iO=`maximumNetworkInterfaces`,aO=`metadataOptions`,oO=`maintenanceOptions`,sO=`mapPublicIpOnLaunch`,cO=`maxResults`,lO=`messageSet`,uO=`maximumSecondaryNetworkInterfaces`,dO=`modificationState`,fO=`maximumThroughputInMBps`,pO=`main`,mO=`manufacturer`,hO=`managed`,gO=`message`,_O=`monitoring`,vO=`mode`,yO=`name`,bO=`networkBorderGroup`,xO=`networkCards`,SO=`networkCardIndex`,CO=`noDevice`,wO=`neuronDevices`,TO=`nitroEnclavesSupport`,EO=`natGateway`,DO=`natGatewayId`,OO=`networkInterfaceId`,kO=`networkInterfaceSet`,AO=`networkInterface`,jO=`networkInfo`,MO=`neuronInfo`,NO=`networkPerformanceOptions`,PO=`networkPerformance`,FO=`noReboot`,IO=`nvmeSupport`,LO=`nitroTpmInfo`,RO=`nitroTpmSupport`,zO=`nextToken`,BO=`nestedVirtualization`,VO=`origin`,HO=`outpostArn`,UO=`ownerAlias`,WO=`ownerId`,GO=`optInStatus`,KO=`originalIops`,qO=`originalMultiAttachEnabled`,JO=`odbNetworkArn`,YO=`originalSize`,XO=`originalThroughput`,ZO=`originalVolumeType`,QO=`operator`,$O=`output`,ek=`principal`,tk=`peakBandwidthInGbps`,nk=`productCodes`,rk=`partitionCount`,ik=`productCode`,ak=`privateDnsNameOptions`,ok=`privateDnsNameOptionsOnLaunch`,sk=`privateDnsName`,ck=`publicDnsName`,lk=`platformDetails`,uk=`placementGroup`,dk=`placementGroupInfo`,fk=`placementGroupSet`,pk=`publicIp`,mk=`privateIpAddressesSet`,hk=`privateIpAddressSet`,gk=`privateIpAddress`,_k=`publicIpv4Pool`,vk=`processorInfo`,yk=`publicKey`,bk=`publicKeyMaterial`,xk=`prefixListId`,Sk=`prefixListIds`,Ck=`partitionNumber`,wk=`peeringStatus`,Tk=`phcSupport`,Ek=`previousState`,Dk=`presignedUrl`,Ok=`propagatingVgwSet`,kk=`parentZoneId`,Ak=`parentZoneName`,jk=`platform`,Mk=`placement`,Nk=`primary`,Pk=`progress`,Fk=`return`,Ik=`rootDeviceName`,Lk=`rootDeviceType`,Rk=`restoreExpiryTime`,zk=`regionEndpoint`,Bk=`resourceExclusions`,Vk=`referencedGroupId`,Hk=`referencedGroupInfo`,Uk=`reservationId`,Wk=`ramdiskId`,Gk=`regionInfo`,Kk=`requesterId`,qk=`rebootMigrationSupport`,Jk=`rebootMigration`,Yk=`regionName`,Xk=`revokedSecurityGroupRuleSet`,Zk=`reservationSet`,Qk=`routeSet`,$k=`routeTableAssociationId`,eA=`routeTableId`,tA=`routeTableSet`,nA=`resourceType`,rA=`routeTable`,iA=`ramdisk`,aA=`reason`,oA=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,sA=`supportedArchitectures`,cA=`subnetArn`,lA=`supportedBootModes`,uA=`sustainedClockSpeedInGhz`,dA=`sourceDestCheck`,fA=`spreadDomain`,pA=`supportedFeatures`,mA=`securityGroupArn`,hA=`securityGroupInfo`,gA=`securityGroupRuleArn`,_A=`securityGroupRuleId`,vA=`securityGroupRuleSet`,yA=`subGeographySet`,bA=`sizeInGB`,xA=`sourceInstanceId`,SA=`secondaryInterfaceId`,CA=`sourceImageId`,wA=`sizeInMiB`,TA=`sourceImageRegion`,EA=`spotInstanceRequestId`,DA=`supportedInRegion`,OA=`secondaryInterfaceSet`,kA=`snapshotId`,AA=`subnetId`,jA=`spreadLevel`,MA=`statusMessage`,NA=`stateMessage`,PA=`secondaryNetworkId`,FA=`secondaryNetworkSupported`,IA=`sriovNetSupport`,LA=`secondaryPrivateIpAddressCount`,RA=`supportedRootDeviceTypes`,zA=`stateReason`,BA=`sourceSecurityGroupName`,VA=`sourceSecurityGroupOwnerId`,HA=`secondarySubnetId`,UA=`snapshotSet`,WA=`subnetSet`,GA=`supportedStrategies`,KA=`startTime`,qA=`sseType`,JA=`storageTier`,YA=`supportedUsageClasses`,XA=`sourceVolumeId`,ZA=`supportedVirtualizationTypes`,QA=`supportedVersions`,$A=`size`,ej=`state`,tj=`status`,nj=`strategy`,rj=`subnet`,ij=`tenancy`,aj=`tcpEstablishedTimeout`,oj=`totalFpgaMemoryInMiB`,sj=`transitGatewayId`,cj=`totalGpuMemoryInMiB`,lj=`totalInferenceMemoryInMiB`,uj=`targetIops`,dj=`targetMultiAttachEnabled`,fj=`totalMediaMemoryInMiB`,pj=`totalNeuronDeviceMemoryInMiB`,mj=`toPort`,hj=`threadsPerCore`,gj=`tagSet`,_j=`totalSizeInGB`,vj=`targetSize`,yj=`tpmSupport`,bj=`targetThroughput`,xj=`transferType`,Sj=`targetVolumeType`,Cj=`throughput`,wj=`timestamp`,Tj=`type`,Ej=`userData`,Dj=`userId`,Oj=`unknownIpPermissionSet`,kj=`usageOperation`,Aj=`usageOperationUpdateTime`,jj=`udpStreamTimeout`,Mj=`udpTimeout`,Nj=`value`,Pj=`vCpuInfo`,Fj=`validCores`,Ij=`vpcEncryptionControlId`,Lj=`vpcId`,Rj=`volumeInitializationRate`,zj=`volumeId`,Bj=`vpcLattice`,Vj=`volumeModification`,Hj=`virtualName`,Uj=`volumeOwnerId`,Wj=`vpcPeeringConnectionId`,Gj=`virtualPrivateGateway`,Kj=`vpcPeering`,qj=`volumeSet`,Jj=`volumeSize`,Yj=`vpcSet`,Xj=`volumeType`,Zj=`validThreadsPerCore`,Qj=`virtualizationType`,$j=`version`,eM=`vpc`,tM=`workloadSet`,C=`xmlName`,nM=`zoneId`,rM=`zoneName`,iM=`zoneState`,aM=`zoneType`,w=`com.amazonaws.ec2`,oM=Dt.for(oA),sM=[-3,oA,`EC2ServiceException`,0,[],[]];oM.registerError(sM,Vo);var cM=[oM],lM=[0,w,$c,8,0],uM=[0,w,Yg,8,0],dM=[0,w,wy,8,0],fM=[0,w,dx,8,0],pM=[3,w,is,0,[Ly,Vf,Bv,h,Rb],[[0,{[x]:`RouteTableId`,[C]:eA}],0,0,[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`SubnetId`,[C]:AA}]],1],mM=[3,w,as,0,[Zo,us],[[0,{[x]:`AssociationId`,[C]:_C}],[()=>tI,{[x]:`AssociationState`,[C]:EC}]]],hM=[3,w,Yo,0,[Kp,wS,h],[[0,{[x]:`InternetGatewayId`,[C]:RE}],[0,{[x]:`VpcId`,[C]:Lj}],[2,{[x]:`DryRun`,[C]:b}]],2],gM=[3,w,_s,0,[od,Zp,AS,dd,h],[0,0,0,1,[2,{[x]:`DryRun`,[C]:b}]],3],_M=[3,w,Uo,0,[uS],[[2,{[x]:`Value`,[C]:Nj}]]],vM=[3,w,vs,0,[uS],[[0,{[x]:`Value`,[C]:Nj}]]],yM=[3,w,eee,0,[g,zx,h,tx,nx,oh,Tf,Ix,xc,ih],[[0,{[x]:`GroupId`,[C]:eE}],[()=>mR,{[C]:Hx}],[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`SourceSecurityGroupName`,[C]:BA}],[0,{[x]:`SourceSecurityGroupOwnerId`,[C]:VA}],[0,{[x]:`IpProtocol`,[C]:rD}],[1,{[x]:`FromPort`,[C]:WT}],[1,{[x]:`ToPort`,[C]:mj}],[0,{[x]:`CidrIp`,[C]:lw}],[()=>TL,{[x]:`IpPermissions`,[C]:iD}]],1],bM=[3,w,tee,0,[ly,nb],[[2,{[x]:`Return`,[C]:Fk}],[()=>oR,{[x]:`SecurityGroupRuleSet`,[C]:vA}]]],xM=[3,w,nee,0,[xc,Tf,g,Jf,ih,oh,tx,nx,Ix,zx,h],[0,1,0,0,[()=>TL,0],0,0,0,1,[()=>mR,{[C]:Hx}],[2,{[x]:`DryRun`,[C]:b}]]],SM=[3,w,fs,0,[ly,nb],[[2,{[x]:`Return`,[C]:Fk}],[()=>oR,{[x]:`SecurityGroupRuleSet`,[C]:vA}]]],CM=[3,w,bs,0,[Z_,g_,Fy,lC,oC,Jf,b_,fC,ry,ny,qf,$f,Xy,v],[[0,{[x]:`OptInStatus`,[C]:GO}],[()=>LI,{[x]:`MessageSet`,[C]:lO}],[0,{[x]:`RegionName`,[C]:Yk}],[0,{[x]:`ZoneName`,[C]:rM}],[0,{[x]:`ZoneId`,[C]:nM}],[0,{[x]:`GroupName`,[C]:nE}],[0,{[x]:`NetworkBorderGroup`,[C]:bO}],[0,{[x]:`ZoneType`,[C]:aM}],[0,{[x]:`ParentZoneName`,[C]:Ak}],[0,{[x]:`ParentZoneId`,[C]:kk}],[0,{[x]:`GroupLongName`,[C]:tE}],[()=>FI,{[x]:`GeographySet`,[C]:aE}],[()=>RI,{[x]:`SubGeographySet`,[C]:yA}],[0,{[x]:`ZoneState`,[C]:iM}]]],wM=[3,w,xs,0,[y_],[[0,{[x]:`Name`,[C]:yO}]]],TM=[3,w,Ts,0,[h_],[[0,{[x]:`Message`,[C]:gO}]]],EM=[3,w,Ds,0,[y_],[[0,{[x]:`Name`,[C]:yO}]]],DM=[3,w,zs,0,[uS],[[21,{[x]:`Value`,[C]:Nj}]]],OM=[3,w,Hs,0,[mf,T_,ou,RS],[[()=>KN,{[x]:`Ebs`,[C]:zT}],[0,{[x]:`NoDevice`,[C]:CO}],[0,{[x]:`DeviceName`,[C]:zw}],[0,{[x]:`VirtualName`,[C]:Hj}]]],kM=[3,w,Zs,0,[Wp],[[0,{[x]:`InternetGatewayBlockMode`,[C]:LE}]]],AM=[3,w,Hc,0,[Lc,Uc],[0,()=>MM]],jM=[3,w,Vc,0,[Lc,Uc],[[0,{[x]:`CapacityReservationPreference`,[C]:vw}],[()=>NM,{[x]:`CapacityReservationTarget`,[C]:xw}]]],MM=[3,w,Uc,0,[Ic,zc],[0,0]],NM=[3,w,Wc,0,[Ic,zc],[[0,{[x]:`CapacityReservationId`,[C]:_w}],[0,{[x]:`CapacityReservationResourceGroupArn`,[C]:yw}]]],PM=[3,w,pl,0,[Sx,cS,lS],[1,1,1]],FM=[3,w,ml,0,[Sx,cS,lS],[[1,{[x]:`TcpEstablishedTimeout`,[C]:aj}],[1,{[x]:`UdpStreamTimeout`,[C]:jj}],[1,{[x]:`UdpTimeout`,[C]:Mj}]]],IM=[3,w,Qc,0,[$b,rx,ad,cu,Cu,gf,Zh,Qv,zx,uc,Dl,h],[0,0,0,0,[0,{[x]:`DestinationRegion`,[C]:Kw}],[2,{[x]:`Encrypted`,[C]:VT}],[0,{[x]:`KmsKeyId`,[C]:AD}],[()=>lM,{[x]:`PresignedUrl`,[C]:Dk}],[()=>mR,{[C]:Hx}],1,0,[2,{[x]:`DryRun`,[C]:b}]],2],LM=[3,w,el,0,[y,Mb],[[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`SnapshotId`,[C]:kA}]]],RM=[3,w,kc,0,[cc,Lx,ms,K_],[[1,{[x]:`CoreCount`,[C]:nw}],[1,{[x]:`ThreadsPerCore`,[C]:hj}],[0,{[x]:`AmdSevSnp`,[C]:DC}],[0,{[x]:`NestedVirtualization`,[C]:BO}]]],zM=[3,w,Mc,0,[cc,Lx,ms,K_],[1,1,0,0]],BM=[3,w,yc,0,[Zp,y_,zx,zb,h,ad,V_,Gs],[[0,{[x]:`InstanceId`,[C]:BE}],[0,{[x]:`Name`,[C]:yO}],[()=>mR,{[C]:Hx}],0,[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`Description`,[C]:$w}],[2,{[x]:`NoReboot`,[C]:FO}],[()=>VI,{[x]:`BlockDeviceMapping`,[C]:UC}]],2],VM=[3,w,bc,0,[fm],[[0,{[x]:`ImageId`,[C]:UE}]]],HM=[3,w,_c,0,[zx,h],[[()=>mR,{[C]:Hx}],[2,{[x]:`DryRun`,[C]:b}]]],UM=[3,w,vc,0,[Vp],[[()=>nF,{[x]:`InternetGateway`,[C]:IE}]]],WM=[3,w,Dc,0,[$h,lg,zx,Jh,h],[0,0,[()=>mR,{[C]:Hx}],0,[2,{[x]:`DryRun`,[C]:b}]],1],GM=[3,w,Pc,0,[_v,zx,Vb,_g,cv,h,Jf,yx],[1,[()=>mR,{[C]:Hx}],0,0,()=>kF,[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`GroupName`,[C]:nE}],[0,{[x]:`Strategy`,[C]:nj}]]],KM=[3,w,Fc,0,[Dv],[[()=>MF,{[x]:`PlacementGroup`,[C]:uk}]]],qM=[3,w,Rc,0,[Ly,gu,CS,wx,gg,fc,Oc,tv,h,jl,Vf,zl,qd,Zp,F_,BS,P_],[[0,{[x]:`RouteTableId`,[C]:eA}],0,0,0,0,0,0,0,[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`DestinationCidrBlock`,[C]:jw}],[0,{[x]:`GatewayId`,[C]:QT}],[0,{[x]:`DestinationIpv6CidrBlock`,[C]:Rw}],[0,{[x]:`EgressOnlyInternetGatewayId`,[C]:wT}],[0,{[x]:`InstanceId`,[C]:BE}],[0,{[x]:`NetworkInterfaceId`,[C]:OO}],[0,{[x]:`VpcPeeringConnectionId`,[C]:Wj}],[0,{[x]:`NatGatewayId`,[C]:DO}]],1],JM=[3,w,Bc,0,[ly],[[2,{[x]:`Return`,[C]:Fk}]]],YM=[3,w,Gc,0,[wS,zx,ul,h],[[0,{[x]:`VpcId`,[C]:Lj}],[()=>mR,{[C]:Hx}],[0,4],[2,{[x]:`DryRun`,[C]:b}]],1],XM=[3,w,Kc,0,[Ry,ul],[[()=>$F,{[x]:`RouteTable`,[C]:rA}],[0,{[x]:`ClientToken`,[C]:Cw}]]],ZM=[3,w,Xc,0,[ad,Jf,wS,zx,h],[[0,{[C]:Lf}],0,0,[()=>mR,{[C]:Hx}],[2,{[x]:`DryRun`,[C]:b}]],2],QM=[3,w,Zc,0,[g,y,Zy],[[0,{[x]:`GroupId`,[C]:eE}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`SecurityGroupArn`,[C]:mA}]]],$M=[3,w,tl,0,[AS,ad,J_,zx,jg,h],[0,0,0,[()=>mR,{[C]:Hx}],0,[2,{[x]:`DryRun`,[C]:b}]],1],eN=[3,w,nl,0,[wS,zx,bs,Cs,rc,jp,J_,Am,rm,Rm,nm,Lm,h],[0,[()=>mR,{[C]:Hx}],0,0,0,0,0,2,0,1,0,1,[2,{[x]:`DryRun`,[C]:b}]],1],tN=[3,w,rl,0,[bx],[[()=>pI,{[x]:`Subnet`,[C]:rj}]]],nN=[3,w,_l,0,[bs,Cs,gf,Kh,Zh,J_,hx,Mb,qS,zx,Mg,Xx,ul,DS,cv,h],[0,0,[2,{[x]:`Encrypted`,[C]:VT}],1,0,0,1,0,0,[()=>mR,{[C]:Hx}],2,1,[0,4],1,()=>kF,[2,{[x]:`DryRun`,[C]:b}]]],rN=[3,w,vl,0,[rc,ch,jp,rm,Rm,nm,Lm,Np,vS,zx,h,Rh,ns],[0,0,0,0,1,0,1,0,()=>kI,[()=>mR,{[C]:Hx}],[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`InstanceTenancy`,[C]:wD}],[2,{[x]:`AmazonProvidedIpv6CidrBlock`,[C]:SC}]]],iN=[3,w,yl,0,[nC],[[()=>TI,{[x]:`Vpc`,[C]:eM}]]],aN=[3,w,il,0,[lc],[0],1],oN=[3,w,Ml,0,[Vu,Gu,Wu],[[1,{[x]:`DefaultTcpEstablishedTimeout`,[C]:qw}],[1,{[x]:`DefaultUdpTimeout`,[C]:Zw}],[1,{[x]:`DefaultUdpStreamTimeout`,[C]:Xw}]]],sN=[3,w,tu,0,[$h,rg,h],[0,0,[2,{[x]:`DryRun`,[C]:b}]]],cN=[3,w,nu,0,[ly,rg],[[2,{[x]:`Return`,[C]:Fk}],[0,{[x]:`KeyPairId`,[C]:ND}]]],lN=[3,w,fu,0,[Jf,h],[[0,{[x]:`GroupName`,[C]:nE}],[2,{[x]:`DryRun`,[C]:b}]],1],uN=[3,w,Eu,0,[g,Jf,h],[0,0,[2,{[x]:`DryRun`,[C]:b}]]],dN=[3,w,Du,0,[ly,g],[[2,{[x]:`Return`,[C]:Fk}],[0,{[x]:`GroupId`,[C]:eE}]]],fN=[3,w,ju,0,[Mb,h],[0,[2,{[x]:`DryRun`,[C]:b}]],1],pN=[3,w,Mu,0,[Rb,h],[0,[2,{[x]:`DryRun`,[C]:b}]],1],mN=[3,w,qu,0,[AS,h],[0,[2,{[x]:`DryRun`,[C]:b}]],1],hN=[3,w,Ju,0,[wS,h],[0,[2,{[x]:`DryRun`,[C]:b}]],1],gN=[3,w,Ol,0,[dC,cC,Ho,h,kf],[[()=>kR,{[C]:lC}],[()=>OR,{[C]:oC}],2,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}]]],_N=[3,w,kl,0,[ks],[[()=>II,{[x]:`AvailabilityZoneInfo`,[C]:NC}]]],vN=[3,w,Wl,0,[pf,pm,uv,Fp,ree,i_,_,h,kf],[[()=>XI,{[C]:ud}],[()=>rL,{[C]:fm}],[()=>zL,{[C]:dv}],2,2,1,0,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}]]],yN=[3,w,Gl,0,[_,Hh],[[0,{[x]:`NextToken`,[C]:zO}],[()=>iL,{[x]:`ImagesSet`,[C]:pD}]]],bN=[3,w,Kl,0,[mm,Om,h,kf,_,i_],[[()=>cL,{[C]:Zp}],2,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}],[0,{[x]:`NextToken`,[C]:zO}],[1,{[x]:`MaxResults`,[C]:cO}]]],xN=[3,w,ql,0,[_,Dee],[[0,{[x]:`NextToken`,[C]:zO}],[()=>XL,{[x]:`ReservationSet`,[C]:Zk}]]],SN=[3,w,Jl,0,[h,zh,kf,i_,_,Vh],[2,[64,{[C]:Ph}],[()=>ZI,{[C]:Af}],1,0,2]],CN=[3,w,Yl,0,[zh,_],[[()=>xL,{[x]:`InstanceTypeSet`,[C]:xD}],[0,{[x]:`NextToken`,[C]:zO}]]],wN=[3,w,Bl,0,[_,i_,h,Jp,kf],[0,1,[2,{[x]:`DryRun`,[C]:b}],[()=>CL,{[x]:`InternetGatewayId`,[C]:RE}],[()=>ZI,{[C]:Af}]]],TN=[3,w,Vl,0,[Xp,_],[[()=>wL,{[x]:`InternetGatewaySet`,[C]:zE}],[0,{[x]:`NextToken`,[C]:zO}]]],EN=[3,w,ru,0,[tg,ag,Zm,h,kf],[[()=>AL,{[C]:$h}],[()=>jL,{[C]:rg}],2,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}]]],DN=[3,w,iu,0,[ng],[[()=>ML,{[x]:`KeySet`,[C]:PD}]]],ON=[3,w,pu,0,[Gf,h,Xf,kf],[[()=>BL,{[C]:g}],[2,{[x]:`DryRun`,[C]:b}],[64,{[x]:`GroupName`,[C]:nE}],[()=>ZI,{[C]:Af}]]],kN=[3,w,mu,0,[Mv],[[()=>VL,{[x]:`PlacementGroupSet`,[C]:fk}]]],AN=[3,w,vu,0,[aee,ss,h,kf],[[()=>YL,{[C]:Fy}],2,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}]]],jN=[3,w,yu,0,[Tee],[[()=>JL,{[x]:`RegionInfo`,[C]:Gk}]]],MN=[3,w,bu,0,[_,i_,h,bee,kf],[0,1,[2,{[x]:`DryRun`,[C]:b}],[()=>tR,{[C]:Ly}],[()=>ZI,{[C]:Af}]]],NN=[3,w,xu,0,[Cee,_],[[()=>nR,{[x]:`RouteTableSet`,[C]:tA}],[0,{[x]:`NextToken`,[C]:zO}]]],PN=[3,w,Ou,0,[Gf,Xf,_,i_,h,kf],[[()=>tL,{[C]:g}],[()=>nL,{[C]:Jf}],0,1,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}]]],FN=[3,w,ku,0,[_,ub],[[0,{[x]:`NextToken`,[C]:zO}],[()=>iR,{[x]:`SecurityGroupInfo`,[C]:hA}]]],IN=[3,w,Nu,0,[i_,_,$_,uy,Nb,h,kf],[1,0,[()=>zL,{[C]:dv}],[64,{[C]:dy}],[()=>cR,{[C]:Mb}],[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}]]],LN=[3,w,Pu,0,[_,gx],[[0,{[x]:`NextToken`,[C]:zO}],[()=>lR,{[x]:`SnapshotSet`,[C]:UA}]]],RN=[3,w,Fu,0,[kf,fb,_,i_,h],[[()=>ZI,{[C]:Af}],[()=>uR,{[C]:Rb}],0,1,[2,{[x]:`DryRun`,[C]:b}]]],zN=[3,w,Iu,0,[_,xx],[[0,{[x]:`NextToken`,[C]:zO}],[()=>fR,{[x]:`SubnetSet`,[C]:WA}]]],BN=[3,w,Yu,0,[jS,Om,h,kf,_,i_],[[()=>xR,{[C]:AS}],2,[2,{[x]:`DryRun`,[C]:b}],[()=>ZI,{[C]:Af}],[0,{[x]:`NextToken`,[C]:zO}],[1,{[x]:`MaxResults`,[C]:cO}]]],VN=[3,w,Xu,0,[_,eC],[[0,{[x]:`NextToken`,[C]:zO}],[()=>SR,{[x]:`VolumeSet`,[C]:qj}]]],HN=[3,w,Zu,0,[kf,MS,_,i_,h],[[()=>ZI,{[C]:Af}],[()=>wR,{[C]:wS}],0,1,[2,{[x]:`DryRun`,[C]:b}]]],UN=[3,w,Qu,0,[_,rC],[[0,{[x]:`NextToken`,[C]:zO}],[()=>ER,{[x]:`VpcSet`,[C]:Yj}]]],WN=[3,w,$u,0,[AS,od,vf,Zp,h],[0,0,2,0,[2,{[x]:`DryRun`,[C]:b}]],1],GN=[3,w,$l,0,[hb,wl,Qx],[[1,{[x]:`SizeInGB`,[C]:bA}],[1,{[x]:`Count`,[C]:kw}],[0,{[x]:`Type`,[C]:Tj}]]],KN=[3,w,cd,0,[uu,Kh,Mb,KS,qS,Zh,Xx,J_,bs,gf,DS,Cs,dd],[[2,{[x]:`DeleteOnTermination`,[C]:Uw}],[1,{[x]:`Iops`,[C]:ED}],[0,{[x]:`SnapshotId`,[C]:kA}],[1,{[x]:`VolumeSize`,[C]:Jj}],[0,{[x]:`VolumeType`,[C]:Xj}],[0,{[x]:`KmsKeyId`,[C]:AD}],[1,{[x]:`Throughput`,[C]:Cj}],[0,{[x]:`OutpostArn`,[C]:HO}],[0,{[x]:`AvailabilityZone`,[C]:jC}],[2,{[x]:`Encrypted`,[C]:VT}],1,0,1]],qN=[3,w,pd,0,[dd,Vs,$s,qs,Fg,c_,qg],[[1,{[x]:`EbsCardIndex`,[C]:nT}],[1,{[x]:`BaselineBandwidthInMbps`,[C]:HC}],[1,{[x]:`BaselineThroughputInMBps`,[C]:YC}],[1,{[x]:`BaselineIops`,[C]:WC}],[1,{[x]:`MaximumBandwidthInMbps`,[C]:JD}],[1,{[x]:`MaximumThroughputInMBps`,[C]:fO}],[1,{[x]:`MaximumIops`,[C]:tO}]]],JN=[3,w,Bd,0,[Yd,uf,Wd,H_,Hg,es,Ug,md],[[0,{[x]:`EbsOptimizedSupport`,[C]:TT}],[0,{[x]:`EncryptionSupport`,[C]:IT}],[()=>ZN,{[x]:`EbsOptimizedInfo`,[C]:ST}],[0,{[x]:`NvmeSupport`,[C]:IO}],[1,{[x]:`MaximumEbsAttachments`,[C]:XD}],[0,{[x]:`AttachmentLimitType`,[C]:bC}],[1,{[x]:`MaximumEbsCards`,[C]:ZD}],[()=>GI,{[x]:`EbsCardSet`,[C]:rT}]]],YN=[3,w,Ld,0,[gs,uu,vx,AS,cs,zS,cv,dd],[[4,{[x]:`AttachTime`,[C]:AC}],[2,{[x]:`DeleteOnTermination`,[C]:Uw}],[0,{[x]:`Status`,[C]:tj}],[0,{[x]:`VolumeId`,[C]:zj}],[0,{[x]:`AssociatedResource`,[C]:wC}],[0,{[x]:`VolumeOwnerId`,[C]:Uj}],[()=>AF,{[x]:`Operator`,[C]:QO}],[1,{[x]:`EbsCardIndex`,[C]:nT}]]],XN=[3,w,Rd,0,[AS,uu],[[0,{[x]:`VolumeId`,[C]:zj}],[2,{[x]:`DeleteOnTermination`,[C]:Uw}]]],ZN=[3,w,Wd,0,[Vs,$s,qs,Fg,c_,qg],[[1,{[x]:`BaselineBandwidthInMbps`,[C]:HC}],[1,{[x]:`BaselineThroughputInMBps`,[C]:YC}],[1,{[x]:`BaselineIops`,[C]:WC}],[1,{[x]:`MaximumBandwidthInMbps`,[C]:JD}],[1,{[x]:`MaximumThroughputInMBps`,[C]:fO}],[1,{[x]:`MaximumIops`,[C]:tO}]]],QN=[3,w,Vd,0,[Wg],[[1,{[x]:`MaximumEfaInterfaces`,[C]:QD}]]],$N=[3,w,yd,0,[Td,bd,Sd,Cd],[[0,{[x]:`ElasticGpuId`,[C]:dT}],[0,{[x]:`ElasticGpuAssociationId`,[C]:sT}],[0,{[x]:`ElasticGpuAssociationState`,[C]:cT}],[0,{[x]:`ElasticGpuAssociationTime`,[C]:uT}]]],eP=[3,w,Ed,0,[Qx],[0],1],tP=[3,w,Od,0,[Qx,wl],[0,1],1],nP=[3,w,kd,0,[Pd,Ad,Md,Nd],[[0,{[x]:`ElasticInferenceAcceleratorArn`,[C]:fT}],[0,{[x]:`ElasticInferenceAcceleratorAssociationId`,[C]:pT}],[0,{[x]:`ElasticInferenceAcceleratorAssociationState`,[C]:mT}],[4,{[x]:`ElasticInferenceAcceleratorAssociationTime`,[C]:gT}]]],rP=[3,w,rf,0,[tf,sf],[2,()=>iP]],iP=[3,w,cf,0,[of],[2]],aP=[3,w,Xd,0,[hf],[[2,{[x]:`Enabled`,[C]:BT}]]],oP=[3,w,Jd,0,[hf],[2]],sP=[3,w,Af,0,[y_,QS],[0,[()=>vR,{[C]:uS}]]],cP=[3,w,yf,0,[y_,p_,wl,Zg],[[0,{[x]:`Name`,[C]:yO}],[0,{[x]:`Manufacturer`,[C]:mO}],[1,{[x]:`Count`,[C]:kw}],[()=>lP,{[x]:`MemoryInfo`,[C]:nO}]]],lP=[3,w,xf,0,[yb],[[1,{[x]:`SizeInMiB`,[C]:wA}]]],uP=[3,w,Cf,0,[jf,Cx],[[()=>QI,{[x]:`Fpgas`,[C]:YT}],[1,{[x]:`TotalFpgaMemoryInMiB`,[C]:oj}]]],dP=[3,w,Ff,0,[Zp,Og,h],[0,2,[2,{[x]:`DryRun`,[C]:b}]],1],fP=[3,w,If,0,[Zp,Zx,lv],[[0,{[x]:`InstanceId`,[C]:BE}],[4,{[x]:`Timestamp`,[C]:wj}],[0,{[x]:`Output`,[C]:$O}]]],pP=[3,w,Rf,0,[y_,p_,wl,hg,Qf,aC,Zg],[[0,{[x]:`Name`,[C]:yO}],[0,{[x]:`Manufacturer`,[C]:mO}],[1,{[x]:`Count`,[C]:kw}],[1,{[x]:`LogicalGpuCount`,[C]:RD}],[1,{[x]:`GpuPartitionSize`,[C]:iE}],[()=>DR,{[x]:`WorkloadSet`,[C]:tM}],[()=>mP,{[x]:`MemoryInfo`,[C]:nO}]]],mP=[3,w,Bf,0,[yb],[[1,{[x]:`SizeInMiB`,[C]:wA}]]],hP=[3,w,Wf,0,[ep,Tx],[[()=>$I,{[x]:`Gpus`,[C]:sE}],[1,{[x]:`TotalGpuMemoryInMiB`,[C]:cj}]]],gP=[3,w,Kf,0,[g,Jf],[[0,{[x]:`GroupId`,[C]:eE}],[0,{[x]:`GroupName`,[C]:nE}]]],_P=[3,w,ip,0,[Cl],[[2,{[x]:`Configured`,[C]:Ow}]]],vP=[3,w,ap,0,[Cl],[2]],yP=[3,w,tm,0,[Ms,mp],[[0,{[x]:`Arn`,[C]:IC}],[0,{[x]:`Id`,[C]:bE}]]],bP=[3,w,om,0,[Ms,y_],[[0,{[x]:`Arn`,[C]:IC}],[0,{[x]:`Name`,[C]:yO}]]],xP=[3,w,Uh,0,[Ev,oS,Gs,ad,df,pp,Vm,y_,fy,py,qb,ex,y,XS,Js,Wx,Uu,Ah,vb,_u,yg,wp,gb,xb,Of,fm,vm,v,X_,dc,cy,yv,Ns,Lh,Xh,Ty,iy],[[0,{[x]:`PlatformDetails`,[C]:lk}],[0,{[x]:`UsageOperation`,[C]:kj}],[()=>BI,{[x]:`BlockDeviceMapping`,[C]:UC}],[0,{[x]:`Description`,[C]:$w}],[2,{[x]:`EnaSupport`,[C]:LT}],[0,{[x]:`Hypervisor`,[C]:lE}],[0,{[x]:`ImageOwnerAlias`,[C]:JE}],[0,{[x]:`Name`,[C]:yO}],[0,{[x]:`RootDeviceName`,[C]:Ik}],[0,{[x]:`RootDeviceType`,[C]:Lk}],[0,{[x]:`SriovNetSupport`,[C]:IA}],[()=>uI,{[x]:`StateReason`,[C]:zA}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`VirtualizationType`,[C]:Qj}],[0,{[x]:`BootMode`,[C]:GC}],[0,{[x]:`TpmSupport`,[C]:yj}],[0,{[x]:`DeprecationTime`,[C]:Yw}],[0,{[x]:`ImdsSupport`,[C]:hD}],[0,{[x]:`SourceInstanceId`,[C]:xA}],[0,{[x]:`DeregistrationProtection`,[C]:Gw}],[0,{[x]:`LastLaunchedTime`,[C]:VD}],[2,{[x]:`ImageAllowed`,[C]:OE}],[0,{[x]:`SourceImageId`,[C]:CA}],[0,{[x]:`SourceImageRegion`,[C]:TA}],[2,{[x]:`FreeTierEligible`,[C]:qT}],[0,{[x]:`ImageId`,[C]:UE}],[0,{[x]:`ImageLocation`,[C]:WE}],[0,{[x]:`ImageState`,[C]:mD}],[0,{[x]:`ImageOwnerId`,[C]:YE}],[0,{[x]:`CreationDate`,[C]:iw}],[2,{[x]:`IsPublic`,[C]:cD}],[()=>GL,{[x]:`ProductCodes`,[C]:nk}],[0,{[x]:`Architecture`,[C]:LC}],[0,{[x]:`ImageType`,[C]:CD}],[0,{[x]:`KernelId`,[C]:kD}],[0,{[x]:`RamdiskId`,[C]:Wk}],[0,{[x]:`Platform`,[C]:jk}]]],SP=[3,w,gm,0,[$h,Wv,zx,h],[[0,{[x]:`KeyName`,[C]:MD}],[21,{[x]:`PublicKeyMaterial`,[C]:bk}],[()=>mR,{[C]:Hx}],[2,{[x]:`DryRun`,[C]:b}]],2],CP=[3,w,_m,0,[Yh,$h,rg,y],[[0,{[x]:`KeyFingerprint`,[C]:OD}],[0,{[x]:`KeyName`,[C]:MD}],[0,{[x]:`KeyPairId`,[C]:ND}],[()=>T,{[x]:`TagSet`,[C]:gj}]]],wP=[3,w,bp,0,[As,Dx],[[()=>aL,{[x]:`Accelerators`,[C]:PC}],[1,{[x]:`TotalInferenceMemoryInMiB`,[C]:lj}]]],TP=[3,w,Ip,0,[wl,y_,p_,Zg],[[1,{[x]:`Count`,[C]:kw}],[0,{[x]:`Name`,[C]:yO}],[0,{[x]:`Manufacturer`,[C]:mO}],[()=>EP,{[x]:`MemoryInfo`,[C]:nO}]]],EP=[3,w,Rp,0,[yb],[[1,{[x]:`SizeInMiB`,[C]:wA}]]],DP=[3,w,Wh,0,[Ns,Gs,ul,Ud,df,pp,tm,bm,wd,Fd,I_,J_,fy,py,ub,qy,bb,qb,ex,y,XS,kc,ac,Ic,Hc,ip,Ag,e_,Xd,Js,Ev,oS,sS,xv,Ep,Wx,t_,hc,z_,cv,Ab,Zp,fm,v,bv,Tv,sx,$h,$o,yv,Ph,Dg,ay,Xh,Ty,iy,v_,Rb,wS,Lv,zv],[[0,{[x]:`Architecture`,[C]:LC}],[()=>oL,{[x]:`BlockDeviceMapping`,[C]:UC}],[0,{[x]:`ClientToken`,[C]:Cw}],[2,{[x]:`EbsOptimized`,[C]:xT}],[2,{[x]:`EnaSupport`,[C]:LT}],[0,{[x]:`Hypervisor`,[C]:lE}],[()=>yP,{[x]:`IamInstanceProfile`,[C]:VE}],[0,{[x]:`InstanceLifecycle`,[C]:GE}],[()=>KI,{[x]:`ElasticGpuAssociationSet`,[C]:lT}],[()=>JI,{[x]:`ElasticInferenceAcceleratorAssociationSet`,[C]:hT}],[()=>pL,{[x]:`NetworkInterfaceSet`,[C]:kO}],[0,{[x]:`OutpostArn`,[C]:HO}],[0,{[x]:`RootDeviceName`,[C]:Ik}],[0,{[x]:`RootDeviceType`,[C]:Lk}],[()=>eL,{[x]:`GroupSet`,[C]:oE}],[2,{[x]:`SourceDestCheck`,[C]:dA}],[0,{[x]:`SpotInstanceRequestId`,[C]:EA}],[0,{[x]:`SriovNetSupport`,[C]:IA}],[()=>uI,{[x]:`StateReason`,[C]:zA}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`VirtualizationType`,[C]:Qj}],[()=>RM,{[x]:`CpuOptions`,[C]:mw}],[0,{[x]:`CapacityBlockId`,[C]:ew}],[0,{[x]:`CapacityReservationId`,[C]:_w}],[()=>jM,{[x]:`CapacityReservationSpecification`,[C]:bw}],[()=>_P,{[x]:`HibernationOptions`,[C]:pE}],[()=>NL,{[x]:`LicenseSet`,[C]:HD}],[()=>zP,{[x]:`MetadataOptions`,[C]:aO}],[()=>aP,{[x]:`EnclaveOptions`,[C]:ET}],[0,{[x]:`BootMode`,[C]:GC}],[0,{[x]:`PlatformDetails`,[C]:lk}],[0,{[x]:`UsageOperation`,[C]:kj}],[4,{[x]:`UsageOperationUpdateTime`,[C]:Aj}],[()=>LF,{[x]:`PrivateDnsNameOptions`,[C]:ak}],[0,{[x]:`Ipv6Address`,[C]:AE}],[0,{[x]:`TpmSupport`,[C]:yj}],[()=>FP,{[x]:`MaintenanceOptions`,[C]:oO}],[0,{[x]:`CurrentInstanceBootMode`,[C]:cw}],[()=>WP,{[x]:`NetworkPerformanceOptions`,[C]:NO}],[()=>AF,{[x]:`Operator`,[C]:QO}],[()=>gL,{[x]:`SecondaryInterfaceSet`,[C]:OA}],[0,{[x]:`InstanceId`,[C]:BE}],[0,{[x]:`ImageId`,[C]:UE}],[()=>QP,{[x]:`InstanceState`,[C]:_D}],[0,{[x]:`PrivateDnsName`,[C]:sk}],[0,{[x]:`DnsName`,[C]:Vw}],[0,{[x]:`Reason`,[C]:aA}],[0,{[x]:`KeyName`,[C]:MD}],[1,{[x]:`AmiLaunchIndex`,[C]:yC}],[()=>GL,{[x]:`ProductCodes`,[C]:nk}],[0,{[x]:`InstanceType`,[C]:bD}],[4,{[x]:`LaunchTime`,[C]:UD}],[()=>jF,{[x]:`Placement`,[C]:Mk}],[0,{[x]:`KernelId`,[C]:kD}],[0,{[x]:`RamdiskId`,[C]:Wk}],[0,{[x]:`Platform`,[C]:jk}],[()=>xF,{[x]:`Monitoring`,[C]:_O}],[0,{[x]:`SubnetId`,[C]:AA}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`PrivateIpAddress`,[C]:gk}],[0,{[x]:`IpAddress`,[C]:kE}]]],OP=[3,w,vp,0,[tf,sf],[[2,{[x]:`EnaSrdEnabled`,[C]:AT}],[()=>kP,{[x]:`EnaSrdUdpSpecification`,[C]:PT}]]],kP=[3,w,yp,0,[of],[[2,{[x]:`EnaSrdUdpEnabled`,[C]:NT}]]],AP=[3,w,Dp,0,[ou,mf],[[0,{[x]:`DeviceName`,[C]:zw}],[()=>YN,{[x]:`Ebs`,[C]:zT}]]],jP=[3,w,kp,0,[ou,mf,RS,T_],[[0,{[x]:`DeviceName`,[C]:zw}],[()=>XN,{[x]:`Ebs`,[C]:zT}],[0,{[x]:`VirtualName`,[C]:Hj}],[0,{[x]:`NoDevice`,[C]:CO}]]],MP=[3,w,sm,0,[uh],[[0,{[x]:`Ipv4Prefix`,[C]:aD}]]],NP=[3,w,Qp,0,[Ep,Xm],[[0,{[x]:`Ipv6Address`,[C]:AE}],[2,{[x]:`IsPrimaryIpv6`,[C]:eD}]]],PP=[3,w,cm,0,[sh],[[0,{[x]:`Ipv6Prefix`,[C]:sD}]]],FP=[3,w,Sm,0,[ls,Py],[[0,{[x]:`AutoRecovery`,[C]:TC}],[0,{[x]:`RebootMigration`,[C]:Jk}]]],IP=[3,w,Cm,0,[ls],[0]],LP=[3,w,wm,0,[s_,Yb],[0,()=>sI]],RP=[3,w,Tm,0,[up,sp,np,op,km],[0,1,0,0,0]],zP=[3,w,Em,0,[v,up,sp,np,op,km],[[0,{[x]:`State`,[C]:ej}],[0,{[x]:`HttpTokens`,[C]:vE}],[1,{[x]:`HttpPutResponseHopLimit`,[C]:hE}],[0,{[x]:`HttpEndpoint`,[C]:dE}],[0,{[x]:`HttpProtocolIpv6`,[C]:mE}],[0,{[x]:`InstanceMetadataTags`,[C]:KE}]]],BP=[3,w,jm,0,[Fs,Ls,ad,Mf,hp,Pg,F_,X_,bv,Lv,Rv,qy,vx,Rb,wS,Bh,lh,rh,dl,cv],[[()=>VP,{[x]:`Association`,[C]:RC}],[()=>HP,{[x]:`Attachment`,[C]:zC}],[0,{[x]:`Description`,[C]:$w}],[()=>eL,{[x]:`GroupSet`,[C]:oE}],[()=>uL,{[x]:`Ipv6AddressesSet`,[C]:DE}],[0,{[x]:`MacAddress`,[C]:qD}],[0,{[x]:`NetworkInterfaceId`,[C]:OO}],[0,{[x]:`OwnerId`,[C]:WO}],[0,{[x]:`PrivateDnsName`,[C]:sk}],[0,{[x]:`PrivateIpAddress`,[C]:gk}],[()=>hL,{[x]:`PrivateIpAddressesSet`,[C]:mk}],[2,{[x]:`SourceDestCheck`,[C]:dA}],[0,{[x]:`Status`,[C]:tj}],[0,{[x]:`SubnetId`,[C]:AA}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`InterfaceType`,[C]:TD}],[()=>lL,{[x]:`Ipv4PrefixSet`,[C]:tD}],[()=>dL,{[x]:`Ipv6PrefixSet`,[C]:nD}],[()=>FM,{[x]:`ConnectionTrackingConfiguration`,[C]:ww}],[()=>AF,{[x]:`Operator`,[C]:QO}]]],VP=[3,w,Mm,0,[mc,Ac,Hm,Tv,Nv],[[0,{[x]:`CarrierIp`,[C]:sw}],[0,{[x]:`CustomerOwnedIp`,[C]:hw}],[0,{[x]:`IpOwnerId`,[C]:ZE}],[0,{[x]:`PublicDnsName`,[C]:ck}],[0,{[x]:`PublicIp`,[C]:pk}]]],HP=[3,w,Nm,0,[gs,Qo,uu,Rl,vx,S_,nf,Qd],[[4,{[x]:`AttachTime`,[C]:AC}],[0,{[x]:`AttachmentId`,[C]:vC}],[2,{[x]:`DeleteOnTermination`,[C]:Uw}],[1,{[x]:`DeviceIndex`,[C]:Lw}],[0,{[x]:`Status`,[C]:tj}],[1,{[x]:`NetworkCardIndex`,[C]:SO}],[()=>OP,{[x]:`EnaSrdSpecification`,[C]:jT}],[1,{[x]:`EnaQueueCount`,[C]:DT}]]],UP=[3,w,Fm,0,[ts,uu,ad,Rl,Mf,_p,hp,F_,Lv,Rv,Zb,Rb,Wo,Bh,S_,lh,Km,rh,Gm,Vv,nf,fl,Qd],[[2,{[x]:`AssociatePublicIpAddress`,[C]:xC}],[2,{[x]:`DeleteOnTermination`,[C]:Uw}],[0,{[x]:`Description`,[C]:$w}],[1,{[x]:`DeviceIndex`,[C]:Lw}],[()=>rR,{[C]:Qy}],[1,{[x]:`Ipv6AddressCount`,[C]:SE}],[()=>uL,{[x]:`Ipv6Addresses`,[C]:DE}],[0,{[x]:`NetworkInterfaceId`,[C]:OO}],[0,{[x]:`PrivateIpAddress`,[C]:gk}],[()=>WL,{[x]:`PrivateIpAddresses`,[C]:mk}],[1,{[x]:`SecondaryPrivateIpAddressCount`,[C]:LA}],[0,{[x]:`SubnetId`,[C]:AA}],2,0,1,[()=>DL,{[C]:uh}],1,[()=>OL,{[C]:sh}],1,2,()=>rP,()=>PM,1]],WP=[3,w,zm,0,[ec],[[0,{[x]:`BandwidthWeighting`,[C]:XC}]]],GP=[3,w,Bm,0,[ec],[0]],KP=[3,w,Jm,0,[Fs,oy,bv,Lv],[[()=>VP,{[x]:`Association`,[C]:RC}],[2,{[x]:`Primary`,[C]:Nk}],[0,{[x]:`PrivateDnsName`,[C]:sk}],[0,{[x]:`PrivateIpAddress`,[C]:gk}]]],qP=[3,w,Dh,0,[Ls,Pg,_b,X_,Rv,qy,vx,ix,Kb,Bh],[[()=>JP,{[x]:`Attachment`,[C]:zC}],[0,{[x]:`MacAddress`,[C]:qD}],[0,{[x]:`SecondaryInterfaceId`,[C]:SA}],[0,{[x]:`OwnerId`,[C]:WO}],[()=>_L,{[x]:`PrivateIpAddressSet`,[C]:hk}],[2,{[x]:`SourceDestCheck`,[C]:dA}],[0,{[x]:`Status`,[C]:tj}],[0,{[x]:`SecondarySubnetId`,[C]:HA}],[0,{[x]:`SecondaryNetworkId`,[C]:PA}],[0,{[x]:`InterfaceType`,[C]:TD}]]],JP=[3,w,yh,0,[gs,Qo,uu,Rl,vx,S_],[[4,{[x]:`AttachTime`,[C]:AC}],[0,{[x]:`AttachmentId`,[C]:vC}],[2,{[x]:`DeleteOnTermination`,[C]:Uw}],[1,{[x]:`DeviceIndex`,[C]:Lw}],[0,{[x]:`Status`,[C]:tj}],[1,{[x]:`NetworkCardIndex`,[C]:SO}]]],YP=[3,w,xh,0,[Lv],[[0,{[x]:`PrivateIpAddress`,[C]:gk}]]],XP=[3,w,wh,0,[Lv],[0],1],ZP=[3,w,Eh,0,[uu,Rl,Rv,Pv,ix,Bh,S_],[2,1,[()=>vL,{[C]:Lv}],1,0,0,1]],QP=[3,w,jh,0,[Sl,y_],[[1,{[x]:`Code`,[C]:Dw}],[0,{[x]:`Name`,[C]:yO}]]],$P=[3,w,_h,0,[Zp,ll,Zv],[[0,{[x]:`InstanceId`,[C]:BE}],[()=>QP,{[x]:`CurrentState`,[C]:Sw}],[()=>QP,{[x]:`PreviousState`,[C]:Ek}]]],eF=[3,w,Oh,0,[Bx,sd,H_,uf],[[1,{[x]:`TotalSizeInGB`,[C]:_j}],[()=>WI,{[x]:`Disks`,[C]:tT}],[0,{[x]:`NvmeSupport`,[C]:IO}],[0,{[x]:`EncryptionSupport`,[C]:IT}]]],tF=[3,w,Ih,0,[Ph,pc,Of,ux,Qb,px,Xs,pp,Hv,gS,Zg,kh,Oh,Bd,L_,Wf,Cf,Ov,bp,lp,Qs,Ll,rs,Wy,j_,W_,U_,Ng,R_,Xv,Ny,Eb],[[0,{[x]:`InstanceType`,[C]:bD}],[2,{[x]:`CurrentGeneration`,[C]:ow}],[2,{[x]:`FreeTierEligible`,[C]:qT}],[()=>gR,{[x]:`SupportedUsageClasses`,[C]:YA}],[()=>QL,{[x]:`SupportedRootDeviceTypes`,[C]:RA}],[()=>yR,{[x]:`SupportedVirtualizationTypes`,[C]:ZA}],[2,{[x]:`BareMetal`,[C]:KC}],[0,{[x]:`Hypervisor`,[C]:lE}],[()=>zF,{[x]:`ProcessorInfo`,[C]:vk}],[()=>xI,{[x]:`VCpuInfo`,[C]:Pj}],[()=>_F,{[x]:`MemoryInfo`,[C]:nO}],[2,{[x]:`InstanceStorageSupported`,[C]:fD}],[()=>eF,{[x]:`InstanceStorageInfo`,[C]:dD}],[()=>JN,{[x]:`EbsInfo`,[C]:vT}],[()=>CF,{[x]:`NetworkInfo`,[C]:jO}],[()=>hP,{[x]:`GpuInfo`,[C]:$T}],[()=>uP,{[x]:`FpgaInfo`,[C]:UT}],[()=>NF,{[x]:`PlacementGroupInfo`,[C]:dk}],[()=>wP,{[x]:`InferenceAcceleratorInfo`,[C]:CE}],[2,{[x]:`HibernationSupported`,[C]:_E}],[2,{[x]:`BurstablePerformanceSupported`,[C]:JC}],[2,{[x]:`DedicatedHostsSupported`,[C]:Iw}],[2,{[x]:`AutoRecoverySupported`,[C]:CC}],[()=>HI,{[x]:`SupportedBootModes`,[C]:lA}],[0,{[x]:`NitroEnclavesSupport`,[C]:TO}],[0,{[x]:`NitroTpmSupport`,[C]:RO}],[()=>OF,{[x]:`NitroTpmInfo`,[C]:LO}],[()=>mF,{[x]:`MediaAcceleratorInfo`,[C]:KD}],[()=>DF,{[x]:`NeuronInfo`,[C]:MO}],[0,{[x]:`PhcSupport`,[C]:Tk}],[0,{[x]:`RebootMigrationSupport`,[C]:qk}],[2,{[x]:`SupportedInRegion`,[C]:DA}]]],nF=[3,w,Vp,0,[Rs,Kp,X_,y],[[()=>SL,{[x]:`AttachmentSet`,[C]:kC}],[0,{[x]:`InternetGatewayId`,[C]:RE}],[0,{[x]:`OwnerId`,[C]:WO}],[()=>T,{[x]:`TagSet`,[C]:gj}]]],rF=[3,w,Hp,0,[v,wS],[[0,{[x]:`State`,[C]:ej}],[0,{[x]:`VpcId`,[C]:Lj}]]],iF=[3,w,ah,0,[oh,Tf,Ix,nS,ph,hh,qv],[[0,{[x]:`IpProtocol`,[C]:rD}],[1,{[x]:`FromPort`,[C]:WT}],[1,{[x]:`ToPort`,[C]:mj}],[()=>_R,{[x]:`Groups`,[C]:cE}],[()=>EL,{[x]:`IpRanges`,[C]:lD}],[()=>kL,{[x]:`Ipv6Ranges`,[C]:uD}],[()=>UL,{[x]:`PrefixListIds`,[C]:Sk}]]],aF=[3,w,mh,0,[ad,xc],[[0,{[x]:`Description`,[C]:$w}],[0,{[x]:`CidrIp`,[C]:lw}]]],oF=[3,w,th,0,[uh],[0]],sF=[3,w,nh,0,[sh],[0]],cF=[3,w,gh,0,[ad,Sc],[[0,{[x]:`Description`,[C]:$w}],[0,{[x]:`CidrIpv6`,[C]:uw}]]],lF=[3,w,cg,0,[rg,y,$h,Yh,Qh],[[0,{[x]:`KeyPairId`,[C]:ND}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`KeyName`,[C]:MD}],[0,{[x]:`KeyFingerprint`,[C]:OD}],[()=>fM,{[x]:`KeyMaterial`,[C]:jD}]]],uF=[3,w,og,0,[rg,lg,y,Uv,gl,$h,Yh],[[0,{[x]:`KeyPairId`,[C]:ND}],[0,{[x]:`KeyType`,[C]:FD}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`PublicKey`,[C]:yk}],[4,{[x]:`CreateTime`,[C]:Ew}],[0,{[x]:`KeyName`,[C]:MD}],[0,{[x]:`KeyFingerprint`,[C]:OD}]]],dF=[3,w,Eg,0,[wg,Tg,$S],[0,0,0]],fF=[3,w,pg,0,[dg],[[0,{[x]:`LicenseConfigurationArn`,[C]:LD}]]],pF=[3,w,fg,0,[dg],[0]],mF=[3,w,Ng,0,[As,Px],[[()=>FL,{[x]:`Accelerators`,[C]:PC}],[1,{[x]:`TotalMediaMemoryInMiB`,[C]:fj}]]],hF=[3,w,zg,0,[wl,y_,p_,Zg],[[1,{[x]:`Count`,[C]:kw}],[0,{[x]:`Name`,[C]:yO}],[0,{[x]:`Manufacturer`,[C]:mO}],[()=>gF,{[x]:`MemoryInfo`,[C]:nO}]]],gF=[3,w,Vg,0,[yb],[[1,{[x]:`SizeInMiB`,[C]:wA}]]],_F=[3,w,Zg,0,[yb],[[1,{[x]:`SizeInMiB`,[C]:wA}]]],vF=[3,w,Jg,0,[Zp,qy,Tl,h,Is,uS,Gs,El,Ph,ug,wee,eS,lm,Mf,Ud,qb,df],[[0,{[x]:`InstanceId`,[C]:BE}],[()=>_M,0],[()=>_M,0],[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`Attribute`,[C]:BC}],[()=>uM,{[x]:`Value`,[C]:Nj}],[()=>sL,{[x]:`BlockDeviceMapping`,[C]:UC}],[()=>_M,{[x]:`DisableApiTermination`,[C]:Aw}],[()=>vM,{[x]:`InstanceType`,[C]:bD}],[()=>vM,{[x]:`Kernel`,[C]:ID}],[()=>vM,{[x]:`Ramdisk`,[C]:iA}],[()=>DM,{[x]:`UserData`,[C]:Ej}],[()=>vM,{[x]:`InstanceInitiatedShutdownBehavior`,[C]:HE}],[()=>tL,{[C]:g}],[()=>_M,{[x]:`EbsOptimized`,[C]:xT}],[()=>vM,{[x]:`SriovNetSupport`,[C]:IA}],[()=>_M,{[x]:`EnaSupport`,[C]:LT}]],1],yF=[3,w,l_,0,[AS,h,hx,qS,Kh,Xx,Mg],[0,2,1,0,1,1,2],1],bF=[3,w,u_,0,[LS],[[()=>wI,{[x]:`VolumeModification`,[C]:Vj}]]],xF=[3,w,v_,0,[v],[[0,{[x]:`State`,[C]:ej}]]],SF=[3,w,w_,0,[S_,B_,$g,Go,Bs,pv,Fl,Gg,Kg],[[1,{[x]:`NetworkCardIndex`,[C]:SO}],[0,{[x]:`NetworkPerformance`,[C]:PO}],[1,{[x]:`MaximumNetworkInterfaces`,[C]:iO}],[1,{[x]:`AdditionalFlexibleNetworkInterfaces`,[C]:pC}],[1,{[x]:`BaselineBandwidthInGbps`,[C]:VC}],[1,{[x]:`PeakBandwidthInGbps`,[C]:tk}],[1,{[x]:`DefaultEnaQueueCountPerInterface`,[C]:Pw}],[1,{[x]:`MaximumEnaQueueCount`,[C]:$D}],[1,{[x]:`MaximumEnaQueueCountPerInterface`,[C]:eO}]]],CF=[3,w,L_,0,[B_,$g,Qg,su,x_,xp,Sp,Nh,df,lf,Vd,zd,af,nc,Sf,dl,Jb,a_,Cp],[[0,{[x]:`NetworkPerformance`,[C]:PO}],[1,{[x]:`MaximumNetworkInterfaces`,[C]:iO}],[1,{[x]:`MaximumNetworkCards`,[C]:rO}],[1,{[x]:`DefaultNetworkCardIndex`,[C]:Bw}],[()=>IL,{[x]:`NetworkCards`,[C]:xO}],[1,{[x]:`Ipv4AddressesPerInterface`,[C]:wE}],[1,{[x]:`Ipv6AddressesPerInterface`,[C]:TE}],[2,{[x]:`Ipv6Supported`,[C]:yD}],[0,{[x]:`EnaSupport`,[C]:LT}],[2,{[x]:`EfaSupported`,[C]:FT}],[()=>QN,{[x]:`EfaInfo`,[C]:yT}],[2,{[x]:`EncryptionInTransitSupported`,[C]:_T}],[2,{[x]:`EnaSrdSupported`,[C]:MT}],[()=>zI,{[x]:`BandwidthWeightings`,[C]:ZC}],[0,{[x]:`FlexibleEnaQueuesSupport`,[C]:HT}],[()=>oN,{[x]:`ConnectionTrackingConfiguration`,[C]:ww}],[2,{[x]:`SecondaryNetworkSupported`,[C]:FA}],[1,{[x]:`MaximumSecondaryNetworkInterfaces`,[C]:uO}],[1,{[x]:`Ipv4AddressesPerSecondaryInterface`,[C]:EE}]]],wF=[3,w,E_,0,[wl,$S],[[1,{[x]:`Count`,[C]:kw}],[1,{[x]:`Version`,[C]:$j}]]],TF=[3,w,D_,0,[wl,y_,wc,Zg],[[1,{[x]:`Count`,[C]:kw}],[0,{[x]:`Name`,[C]:yO}],[()=>wF,{[x]:`CoreInfo`,[C]:fw}],[()=>EF,{[x]:`MemoryInfo`,[C]:nO}]]],EF=[3,w,k_,0,[yb],[[1,{[x]:`SizeInMiB`,[C]:wA}]]],DF=[3,w,R_,0,[A_,Fx],[[()=>LL,{[x]:`NeuronDevices`,[C]:wO}],[1,{[x]:`TotalNeuronDeviceMemoryInMiB`,[C]:pj}]]],OF=[3,w,U_,0,[mx],[[()=>RL,{[x]:`SupportedVersions`,[C]:QA}]]],kF=[3,w,nv,0,[fv],[0]],AF=[3,w,rv,0,[m_,fv,tp],[[2,{[x]:`Managed`,[C]:hO}],[0,{[x]:`Principal`,[C]:ek}],[2,{[x]:`HiddenByDefault`,[C]:uE}]]],jF=[3,w,ay,0,[Cs,js,Jf,Jv,rp,Yx,Jy,cp,g,bs],[[0,{[x]:`AvailabilityZoneId`,[C]:MC}],[0,{[x]:`Affinity`,[C]:FC}],[0,{[x]:`GroupName`,[C]:nE}],[1,{[x]:`PartitionNumber`,[C]:Ck}],[0,{[x]:`HostId`,[C]:fE}],[0,{[x]:`Tenancy`,[C]:ij}],[0,{[x]:`SpreadDomain`,[C]:fA}],[0,{[x]:`HostResourceGroupArn`,[C]:gE}],[0,{[x]:`GroupId`,[C]:eE}],[0,{[x]:`AvailabilityZone`,[C]:jC}]]],MF=[3,w,Dv,0,[Jf,v,yx,_v,g,y,Nf,Vb,_g,cv],[[0,{[x]:`GroupName`,[C]:nE}],[0,{[x]:`State`,[C]:ej}],[0,{[x]:`Strategy`,[C]:nj}],[1,{[x]:`PartitionCount`,[C]:rk}],[0,{[x]:`GroupId`,[C]:eE}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`GroupArn`,[C]:XT}],[0,{[x]:`SpreadLevel`,[C]:jA}],[0,{[x]:`LinkedGroupId`,[C]:BD}],[()=>AF,{[x]:`Operator`,[C]:QO}]]],NF=[3,w,Ov,0,[ax],[[()=>HL,{[x]:`SupportedStrategies`,[C]:GA}]]],PF=[3,w,Gv,0,[ad,Gv],[[0,{[x]:`Description`,[C]:$w}],[0,{[x]:`PrefixListId`,[C]:xk}]]],FF=[3,w,Sv,0,[dp,ef,$d],[[0,{[x]:`HostnameType`,[C]:yE}],[2,{[x]:`EnableResourceNameDnsARecord`,[C]:kT}],[2,{[x]:`EnableResourceNameDnsAAAARecord`,[C]:OT}]]],IF=[3,w,Cv,0,[dp,ef,$d],[0,2,2]],LF=[3,w,wv,0,[dp,ef,$d],[[0,{[x]:`HostnameType`,[C]:yE}],[2,{[x]:`EnableResourceNameDnsARecord`,[C]:kT}],[2,{[x]:`EnableResourceNameDnsAAAARecord`,[C]:OT}]]],RF=[3,w,Fv,0,[oy,Lv],[[2,{[x]:`Primary`,[C]:Nk}],[0,{[x]:`PrivateIpAddress`,[C]:gk}]]],zF=[3,w,Hv,0,[Uy,Ky,Yy,p_],[[()=>PI,{[x]:`SupportedArchitectures`,[C]:sA}],[1,{[x]:`SustainedClockSpeedInGhz`,[C]:uA}],[()=>pR,{[x]:`SupportedFeatures`,[C]:pA}],[0,{[x]:`Manufacturer`,[C]:mO}]]],BF=[3,w,vv,0,[mv,gv],[[0,{[x]:`ProductCode`,[C]:ik}],[0,{[x]:`Type`,[C]:Tj}]]],VF=[3,w,$v,0,[Vf],[[0,{[x]:`GatewayId`,[C]:QT}]]],HF=[3,w,Sy,0,[mm,h],[[()=>cL,{[C]:Zp}],[2,{[x]:`DryRun`,[C]:b}]],1],UF=[3,w,oee,0,[g,Yv,tS,wS,BS],[[0,{[x]:`GroupId`,[C]:eE}],[0,{[x]:`PeeringStatus`,[C]:wk}],[0,{[x]:`UserId`,[C]:Dj}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`VpcPeeringConnectionId`,[C]:Wj}]]],WF=[3,w,Eee,0,[Z_,$f,Fy,_f],[[0,{[x]:`OptInStatus`,[C]:GO}],[()=>qL,{[x]:`GeographySet`,[C]:aE}],[0,{[x]:`RegionName`,[C]:Yk}],[0,{[x]:`RegionEndpoint`,[C]:zk}]]],GF=[3,w,_y,0,[y_],[[0,{[x]:`Name`,[C]:yO}]]],KF=[3,w,Oee,0,[Ey,X_,Oy,Mf,Gh],[[0,{[x]:`ReservationId`,[C]:Uk}],[0,{[x]:`OwnerId`,[C]:WO}],[0,{[x]:`RequesterId`,[C]:Kk}],[()=>eL,{[x]:`GroupSet`,[C]:oE}],[()=>fL,{[x]:`InstancesSet`,[C]:gD}]]],qF=[3,w,pee,0,[ob,g,Bp,oh,Tf,Ix,Cc,Sc,Gv,vy,ad],[[0,{[x]:`SecurityGroupRuleId`,[C]:_A}],[0,{[x]:`GroupId`,[C]:eE}],[2,{[x]:`IsEgress`,[C]:FE}],[0,{[x]:`IpProtocol`,[C]:rD}],[1,{[x]:`FromPort`,[C]:WT}],[1,{[x]:`ToPort`,[C]:mj}],[0,{[x]:`CidrIpv4`,[C]:dw}],[0,{[x]:`CidrIpv6`,[C]:uw}],[0,{[x]:`PrefixListId`,[C]:xk}],[0,{[x]:`ReferencedGroupId`,[C]:Vk}],[0,{[x]:`Description`,[C]:$w}]]],JF=[3,w,cee,0,[g,ib,h,tx,nx,oh,Tf,Ix,xc,ih],[[0,{[x]:`GroupId`,[C]:eE}],[()=>aR,{[C]:ob}],[2,{[x]:`DryRun`,[C]:b}],[0,{[x]:`SourceSecurityGroupName`,[C]:BA}],[0,{[x]:`SourceSecurityGroupOwnerId`,[C]:VA}],[0,{[x]:`IpProtocol`,[C]:rD}],[1,{[x]:`FromPort`,[C]:WT}],[1,{[x]:`ToPort`,[C]:mj}],[0,{[x]:`CidrIp`,[C]:lw}],[()=>TL,{[x]:`IpPermissions`,[C]:iD}]],1],YF=[3,w,lee,0,[ly,aS,Iy],[[2,{[x]:`Return`,[C]:Fk}],[()=>TL,{[x]:`UnknownIpPermissionSet`,[C]:Oj}],[()=>ZL,{[x]:`RevokedSecurityGroupRuleSet`,[C]:Xk}]]],XF=[3,w,uee,0,[xc,Tf,g,Jf,ih,oh,tx,nx,Ix,ib,h],[0,1,0,0,[()=>TL,0],0,0,0,1,[()=>aR,{[C]:ob}],[2,{[x]:`DryRun`,[C]:b}]]],ZF=[3,w,dee,0,[ly,aS,Iy],[[2,{[x]:`Return`,[C]:Fk}],[()=>TL,{[x]:`UnknownIpPermissionSet`,[C]:Oj}],[()=>ZL,{[x]:`RevokedSecurityGroupRuleSet`,[C]:Xk}]]],QF=[3,w,zy,0,[jl,zl,gu,qd,Vf,Zp,Um,P_,wx,gg,fc,F_,q_,v,BS,Oc,tv,Tp],[[0,{[x]:`DestinationCidrBlock`,[C]:jw}],[0,{[x]:`DestinationIpv6CidrBlock`,[C]:Rw}],[0,{[x]:`DestinationPrefixListId`,[C]:Ww}],[0,{[x]:`EgressOnlyInternetGatewayId`,[C]:wT}],[0,{[x]:`GatewayId`,[C]:QT}],[0,{[x]:`InstanceId`,[C]:BE}],[0,{[x]:`InstanceOwnerId`,[C]:XE}],[0,{[x]:`NatGatewayId`,[C]:DO}],[0,{[x]:`TransitGatewayId`,[C]:sj}],[0,{[x]:`LocalGatewayId`,[C]:zD}],[0,{[x]:`CarrierGatewayId`,[C]:aw}],[0,{[x]:`NetworkInterfaceId`,[C]:OO}],[0,{[x]:`Origin`,[C]:VO}],[0,{[x]:`State`,[C]:ej}],[0,{[x]:`VpcPeeringConnectionId`,[C]:Wj}],[0,{[x]:`CoreNetworkArn`,[C]:pw}],[0,{[x]:`OdbNetworkArn`,[C]:JO}],[0,{[x]:`IpAddress`,[C]:kE}]]],$F=[3,w,Ry,0,[Ps,ty,Ly,By,y,wS,X_],[[()=>eR,{[x]:`AssociationSet`,[C]:OC}],[()=>KL,{[x]:`PropagatingVgwSet`,[C]:Ok}],[0,{[x]:`RouteTableId`,[C]:eA}],[()=>$L,{[x]:`RouteSet`,[C]:Qk}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`OwnerId`,[C]:WO}]]],eI=[3,w,hee,0,[f_,gee,Ly,Rb,Vf,Bv,us],[[2,{[x]:`Main`,[C]:pO}],[0,{[x]:`RouteTableAssociationId`,[C]:$k}],[0,{[x]:`RouteTableId`,[C]:eA}],[0,{[x]:`SubnetId`,[C]:AA}],[0,{[x]:`GatewayId`,[C]:QT}],[0,{[x]:`PublicIpv4Pool`,[C]:_k}],[()=>tI,{[x]:`AssociationState`,[C]:EC}]]],tI=[3,w,vee,0,[v,Wb],[[0,{[x]:`State`,[C]:ej}],[0,{[x]:`StatusMessage`,[C]:MA}]]],nI=[3,w,xy,0,[hf],[[2,{[x]:`Enabled`,[C]:BT}]],1],rI=[3,w,Cy,0,[Lg,Rg,Gs,fm,Ph,_p,hp,Xh,$h,v_,ay,Ty,eb,ub,Rb,eS,Ed,Id,zx,Cg,Dm,ol,kc,Hc,ip,bg,e_,Xd,xv,t_,Tl,Zd,z_,cv,Ab,h,El,lm,Lv,ul,Xo,I_,tm,Ud],[1,1,[()=>VI,{[C]:Hs}],0,0,1,[()=>uL,{[C]:Ep}],0,0,[()=>nI,0],[()=>jF,0],0,[()=>rR,{[C]:Qy}],[()=>sR,{[C]:db}],0,[()=>dM,0],[()=>qI,0],[()=>YI,{[C]:Od}],[()=>mR,{[C]:Hx}],()=>dF,()=>LP,()=>aN,()=>zM,()=>AM,()=>vP,[()=>PL,{[C]:Sg}],()=>RP,()=>oP,()=>IF,()=>IP,2,2,()=>GP,()=>kF,[()=>yL,{[C]:jb}],[2,{[x]:`DryRun`,[C]:b}],[2,{[x]:`DisableApiTermination`,[C]:Aw}],[0,{[x]:`InstanceInitiatedShutdownBehavior`,[C]:HE}],[0,{[x]:`PrivateIpAddress`,[C]:gk}],[0,{[x]:`ClientToken`,[SD]:1,[C]:Cw}],[0,{[x]:`AdditionalInfo`,[C]:gC}],[()=>mL,{[x]:`NetworkInterface`,[C]:AO}],[()=>bP,{[x]:`IamInstanceProfile`,[C]:VE}],[2,{[x]:`EbsOptimized`,[C]:xT}]],2],iI=[3,w,db,0,[g,qm,y,wS,Zy,X_,Jf,ad,ih],[[0,{[x]:`GroupId`,[C]:eE}],[()=>TL,{[x]:`IpPermissionsEgress`,[C]:$E}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`SecurityGroupArn`,[C]:mA}],[0,{[x]:`OwnerId`,[C]:WO}],[0,{[x]:`GroupName`,[C]:nE}],[0,{[x]:`GroupDescription`,[C]:ZT}],[()=>TL,{[x]:`IpPermissions`,[C]:iD}]]],aI=[3,w,cb,0,[ob,g,Zf,Bp,oh,Tf,Ix,Cc,Sc,Gv,yy,ad,y,rb],[[0,{[x]:`SecurityGroupRuleId`,[C]:_A}],[0,{[x]:`GroupId`,[C]:eE}],[0,{[x]:`GroupOwnerId`,[C]:rE}],[2,{[x]:`IsEgress`,[C]:FE}],[0,{[x]:`IpProtocol`,[C]:rD}],[1,{[x]:`FromPort`,[C]:WT}],[1,{[x]:`ToPort`,[C]:mj}],[0,{[x]:`CidrIpv4`,[C]:dw}],[0,{[x]:`CidrIpv6`,[C]:uw}],[0,{[x]:`PrefixListId`,[C]:xk}],[()=>UF,{[x]:`ReferencedGroupInfo`,[C]:Hk}],[0,{[x]:`Description`,[C]:$w}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`SecurityGroupRuleArn`,[C]:gA}]]],oI=[3,w,_x,0,[Y_,J_,y,lx,hy,cx,bs,Kx,uc,hl,Df,Mb,AS,v,Gb,ox,sy,X_,ad,KS,gf,Zh,Pl],[[0,{[x]:`OwnerAlias`,[C]:UO}],[0,{[x]:`OutpostArn`,[C]:HO}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`StorageTier`,[C]:JA}],[4,{[x]:`RestoreExpiryTime`,[C]:Rk}],[0,{[x]:`SseType`,[C]:qA}],[0,{[x]:`AvailabilityZone`,[C]:jC}],[0,{[x]:`TransferType`,[C]:xj}],[1,{[x]:`CompletionDurationMinutes`,[C]:rw}],[4,{[x]:`CompletionTime`,[C]:Tw}],[1,{[x]:`FullSnapshotSizeInBytes`,[C]:KT}],[0,{[x]:`SnapshotId`,[C]:kA}],[0,{[x]:`VolumeId`,[C]:zj}],[0,{[x]:`Status`,[C]:tj}],[0,{[x]:`StatusMessage`,[C]:MA}],[4,{[x]:`StartTime`,[C]:KA}],[0,{[x]:`Progress`,[C]:Pk}],[0,{[x]:`OwnerId`,[C]:WO}],[0,{[x]:`Description`,[C]:$w}],[1,{[x]:`VolumeSize`,[C]:Jj}],[2,{[x]:`Encrypted`,[C]:VT}],[0,{[x]:`KmsKeyId`,[C]:AD}],[0,{[x]:`DataEncryptionKeyId`,[C]:Nw}]]],sI=[3,w,Ub,0,[r_,kb,Ks,ZS,em],[0,0,1,4,0]],cI=[3,w,Sb,0,[mm,Xo,h],[[()=>cL,{[C]:Zp}],[0,{[x]:`AdditionalInfo`,[C]:gC}],[2,{[x]:`DryRun`,[C]:b}]],1],lI=[3,w,Cb,0,[Pb],[[()=>bL,{[x]:`InstancesSet`,[C]:gD}]]],uI=[3,w,ex,0,[Sl,h_],[[0,{[x]:`Code`,[C]:Dw}],[0,{[x]:`Message`,[C]:gO}]]],dI=[3,w,wb,0,[mm,fp,Xb,h,vf],[[()=>cL,{[C]:Zp}],2,2,[2,{[x]:`DryRun`,[C]:b}],[2,{[x]:`Force`,[C]:JT}]],1],fI=[3,w,Tb,0,[Ib],[[()=>bL,{[x]:`InstancesSet`,[C]:gD}]]],pI=[3,w,bx,0,[Cs,Hd,Ig,jc,X_,qo,Mp,y,Hy,J_,gd,Am,Sv,Zs,Qx,Rb,v,wS,rc,Ko,bs,Il,n_],[[0,{[x]:`AvailabilityZoneId`,[C]:MC}],[1,{[x]:`EnableLniAtDeviceIndex`,[C]:bT}],[2,{[x]:`MapCustomerOwnedIpOnLaunch`,[C]:YD}],[0,{[x]:`CustomerOwnedIpv4Pool`,[C]:gw}],[0,{[x]:`OwnerId`,[C]:WO}],[2,{[x]:`AssignIpv6AddressOnCreation`,[C]:hC}],[()=>dR,{[x]:`Ipv6CidrBlockAssociationSet`,[C]:ME}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`SubnetArn`,[C]:cA}],[0,{[x]:`OutpostArn`,[C]:HO}],[2,{[x]:`EnableDns64`,[C]:aT}],[2,{[x]:`Ipv6Native`,[C]:qE}],[()=>FF,{[x]:`PrivateDnsNameOptionsOnLaunch`,[C]:ok}],[()=>kM,{[x]:`BlockPublicAccessStates`,[C]:qC}],[0,{[x]:`Type`,[C]:Tj}],[0,{[x]:`SubnetId`,[C]:AA}],[0,{[x]:`State`,[C]:ej}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`CidrBlock`,[C]:QC}],[1,{[x]:`AvailableIpAddressCount`,[C]:mC}],[0,{[x]:`AvailabilityZone`,[C]:jC}],[2,{[x]:`DefaultForAz`,[C]:Fw}],[2,{[x]:`MapPublicIpOnLaunch`,[C]:sO}]]],mI=[3,w,Gy,0,[v,Wb],[[0,{[x]:`State`,[C]:ej}],[0,{[x]:`StatusMessage`,[C]:MA}]]],hI=[3,w,pb,0,[Zo,jp,Pp,gp,Mh],[[0,{[x]:`AssociationId`,[C]:_C}],[0,{[x]:`Ipv6CidrBlock`,[C]:jE}],[()=>mI,{[x]:`Ipv6CidrBlockState`,[C]:NE}],[0,{[x]:`Ipv6AddressAttribute`,[C]:xE}],[0,{[x]:`IpSource`,[C]:vD}]]],gI=[3,w,Jx,0,[qh,uS],[[0,{[x]:`Key`,[C]:DD}],[0,{[x]:`Value`,[C]:Nj}]]],_I=[3,w,Hx,0,[See,y],[[0,{[x]:`ResourceType`,[C]:nA}],[()=>T,{[C]:Jx}]]],vI=[3,w,Ox,0,[mm,vf,Xb,h],[[()=>cL,{[C]:Zp}],2,2,[2,{[x]:`DryRun`,[C]:b}]],1],yI=[3,w,kx,0,[jx],[[()=>bL,{[x]:`InstancesSet`,[C]:gD}]]],bI=[3,w,iS,0,[ad,tS,Jf,g,wS,BS,Yv],[[0,{[x]:`Description`,[C]:$w}],[0,{[x]:`UserId`,[C]:Dj}],[0,{[x]:`GroupName`,[C]:nE}],[0,{[x]:`GroupId`,[C]:eE}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`VpcPeeringConnectionId`,[C]:Wj}],[0,{[x]:`PeeringStatus`,[C]:wk}]]],xI=[3,w,gS,0,[Ku,Nl,Hu,_S,YS],[[1,{[x]:`DefaultVCpus`,[C]:Qw}],[1,{[x]:`DefaultCores`,[C]:Mw}],[1,{[x]:`DefaultThreadsPerCore`,[C]:Jw}],[()=>UI,{[x]:`ValidCores`,[C]:Fj}],[()=>hR,{[x]:`ValidThreadsPerCore`,[C]:Zj}]]],SI=[3,w,tC,0,[Cs,J_,fx,Kh,y,qS,Ef,Mg,Xx,cx,cv,DS,AS,hx,Mb,bs,v,gl,Rs,gf,Zh],[[0,{[x]:`AvailabilityZoneId`,[C]:MC}],[0,{[x]:`OutpostArn`,[C]:HO}],[0,{[x]:`SourceVolumeId`,[C]:XA}],[1,{[x]:`Iops`,[C]:ED}],[()=>T,{[x]:`TagSet`,[C]:gj}],[0,{[x]:`VolumeType`,[C]:Xj}],[2,{[x]:`FastRestored`,[C]:GT}],[2,{[x]:`MultiAttachEnabled`,[C]:GD}],[1,{[x]:`Throughput`,[C]:Cj}],[0,{[x]:`SseType`,[C]:qA}],[()=>AF,{[x]:`Operator`,[C]:QO}],[1,{[x]:`VolumeInitializationRate`,[C]:Rj}],[0,{[x]:`VolumeId`,[C]:zj}],[1,{[x]:`Size`,[C]:$A}],[0,{[x]:`SnapshotId`,[C]:kA}],[0,{[x]:`AvailabilityZone`,[C]:jC}],[0,{[x]:`Status`,[C]:tj}],[4,{[x]:`CreateTime`,[C]:Ew}],[()=>bR,{[x]:`AttachmentSet`,[C]:kC}],[2,{[x]:`Encrypted`,[C]:VT}],[0,{[x]:`KmsKeyId`,[C]:AD}]]],CI=[3,w,fS,0,[uu,cs,Wm,dd,AS,Zp,od,v,gs],[[2,{[x]:`DeleteOnTermination`,[C]:Uw}],[0,{[x]:`AssociatedResource`,[C]:wC}],[0,{[x]:`InstanceOwningService`,[C]:QE}],[1,{[x]:`EbsCardIndex`,[C]:nT}],[0,{[x]:`VolumeId`,[C]:zj}],[0,{[x]:`InstanceId`,[C]:BE}],[0,{[x]:`Device`,[C]:eT}],[0,{[x]:`Status`,[C]:tj}],[4,{[x]:`AttachTime`,[C]:AC}]]],wI=[3,w,LS,0,[AS,o_,Wb,Ux,Ax,qx,Gx,Nx,av,Q_,sv,ov,ev,sy,ox,ff,cv],[[0,{[x]:`VolumeId`,[C]:zj}],[0,{[x]:`ModificationState`,[C]:dO}],[0,{[x]:`StatusMessage`,[C]:MA}],[1,{[x]:`TargetSize`,[C]:vj}],[1,{[x]:`TargetIops`,[C]:uj}],[0,{[x]:`TargetVolumeType`,[C]:Sj}],[1,{[x]:`TargetThroughput`,[C]:bj}],[2,{[x]:`TargetMultiAttachEnabled`,[C]:dj}],[1,{[x]:`OriginalSize`,[C]:YO}],[1,{[x]:`OriginalIops`,[C]:KO}],[0,{[x]:`OriginalVolumeType`,[C]:ZO}],[1,{[x]:`OriginalThroughput`,[C]:XO}],[2,{[x]:`OriginalMultiAttachEnabled`,[C]:qO}],[1,{[x]:`Progress`,[C]:Pk}],[4,{[x]:`StartTime`,[C]:KA}],[4,{[x]:`EndTime`,[C]:RT}],[()=>AF,{[x]:`Operator`,[C]:QO}]]],TI=[3,w,nC,0,[X_,Rh,Mp,ic,zp,hd,y,Zs,wS,v,rc,lu],[[0,{[x]:`OwnerId`,[C]:WO}],[0,{[x]:`InstanceTenancy`,[C]:wD}],[()=>TR,{[x]:`Ipv6CidrBlockAssociationSet`,[C]:ME}],[()=>CR,{[x]:`CidrBlockAssociationSet`,[C]:$C}],[2,{[x]:`IsDefault`,[C]:PE}],[()=>OI,{[x]:`EncryptionControl`,[C]:iT}],[()=>T,{[x]:`TagSet`,[C]:gj}],[()=>kM,{[x]:`BlockPublicAccessStates`,[C]:qC}],[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`State`,[C]:ej}],[0,{[x]:`CidrBlock`,[C]:QC}],[0,{[x]:`DhcpOptionsId`,[C]:Hw}]]],EI=[3,w,pS,0,[Zo,rc,oc],[[0,{[x]:`AssociationId`,[C]:_C}],[0,{[x]:`CidrBlock`,[C]:QC}],[()=>DI,{[x]:`CidrBlockState`,[C]:tw}]]],DI=[3,w,hS,0,[v,Wb],[[0,{[x]:`State`,[C]:ej}],[0,{[x]:`StatusMessage`,[C]:MA}]]],OI=[3,w,vS,0,[wS,SS,__,v,Gb,gy,y],[[0,{[x]:`VpcId`,[C]:Lj}],[0,{[x]:`VpcEncryptionControlId`,[C]:Ij}],[0,{[x]:`Mode`,[C]:vO}],[0,{[x]:`State`,[C]:ej}],[0,{[x]:`StateMessage`,[C]:NA}],[()=>jI,{[x]:`ResourceExclusions`,[C]:Bk}],[()=>T,{[x]:`TagSet`,[C]:gj}]]],kI=[3,w,yS,0,[__,Gp,Kd,N_,US,VS,mg,PS,vd],[0,0,0,0,0,0,0,0,0],1],AI=[3,w,bS,0,[v,Gb],[[0,{[x]:`State`,[C]:ej}],[0,{[x]:`StateMessage`,[C]:NA}]]],jI=[3,w,xS,0,[Vp,Gd,M_,HS,WS,kg,NS,_d],[[()=>AI,{[x]:`InternetGateway`,[C]:IE}],[()=>AI,{[x]:`EgressOnlyInternetGateway`,[C]:CT}],[()=>AI,{[x]:`NatGateway`,[C]:EO}],[()=>AI,{[x]:`VirtualPrivateGateway`,[C]:Gj}],[()=>AI,{[x]:`VpcPeering`,[C]:Kj}],[()=>AI,{[x]:`Lambda`,[C]:WD}],[()=>AI,{[x]:`VpcLattice`,[C]:Bj}],[()=>AI,{[x]:`ElasticFileSystem`,[C]:oT}]]],MI=[3,w,TS,0,[Zo,jp,Pp,b_,ch,gp,Mh],[[0,{[x]:`AssociationId`,[C]:_C}],[0,{[x]:`Ipv6CidrBlock`,[C]:jE}],[()=>DI,{[x]:`Ipv6CidrBlockState`,[C]:NE}],[0,{[x]:`NetworkBorderGroup`,[C]:bO}],[0,{[x]:`Ipv6Pool`,[C]:oD}],[0,{[x]:`Ipv6AddressAttribute`,[C]:xE}],[0,{[x]:`IpSource`,[C]:vD}]]],NI=`unit`,PI=[1,w,hs,0,[0,{[C]:S}]],FI=[1,w,Ss,0,[()=>wM,{[C]:S}]],II=[1,w,ws,0,[()=>CM,{[C]:S}]],LI=[1,w,Es,0,[()=>TM,{[C]:S}]],RI=[1,w,Os,0,[()=>EM,{[C]:S}]],zI=[1,w,tc,0,[0,{[C]:S}]],BI=[1,w,Us,0,[()=>OM,{[C]:S}]],VI=[1,w,Ws,0,[()=>OM,{[C]:Hs}]],HI=[1,w,Ys,0,[0,{[C]:S}]],UI=[1,w,sc,0,[1,{[C]:S}]],WI=[1,w,Ul,0,[()=>GN,{[C]:S}]],GI=[1,w,fd,0,[()=>qN,{[C]:S}]],KI=[1,w,xd,0,[()=>$N,{[C]:S}]],qI=[1,w,Dd,0,[()=>eP,{[C]:S}]],JI=[1,w,jd,0,[()=>nP,{[C]:S}]],YI=[1,w,Id,0,[()=>tP,{[C]:S}]],XI=[1,w,ld,0,[0,{[C]:ud}]],ZI=[1,w,wf,0,[()=>sP,{[C]:Af}]],QI=[1,w,bf,0,[()=>cP,{[C]:S}]],$I=[1,w,zf,0,[()=>pP,{[C]:S}]],eL=[1,w,Hf,0,[()=>gP,{[C]:S}]],tL=[1,w,Uf,0,[0,{[C]:eE}]],nL=[1,w,Yf,0,[0,{[C]:Jf}]],rL=[1,w,um,0,[0,{[C]:fm}]],iL=[1,w,ym,0,[()=>xP,{[C]:S}]],aL=[1,w,Lp,0,[()=>TP,0]],oL=[1,w,Op,0,[()=>AP,{[C]:S}]],sL=[1,w,Ap,0,[()=>jP,{[C]:S}]],cL=[1,w,dm,0,[0,{[C]:Zp}]],lL=[1,w,im,0,[()=>MP,{[C]:S}]],uL=[1,w,$p,0,[()=>NP,{[C]:S}]],dL=[1,w,am,0,[()=>PP,{[C]:S}]],fL=[1,w,xm,0,[()=>DP,{[C]:S}]],pL=[1,w,Pm,0,[()=>BP,{[C]:S}]],mL=[1,w,Im,0,[()=>UP,{[C]:S}]],hL=[1,w,Ym,0,[()=>KP,{[C]:S}]],gL=[1,w,bh,0,[()=>qP,{[C]:S}]],_L=[1,w,Sh,0,[()=>YP,{[C]:S}]],vL=[1,w,Ch,0,[()=>XP,{[C]:S}]],yL=[1,w,Th,0,[()=>ZP,{[C]:S}]],bL=[1,w,vh,0,[()=>$P,{[C]:S}]],xL=[1,w,Fh,0,[()=>tF,{[C]:S}]],SL=[1,w,Up,0,[()=>rF,{[C]:S}]],CL=[1,w,qp,0,[0,{[C]:S}]],wL=[1,w,Yp,0,[()=>nF,{[C]:S}]],TL=[1,w,Qm,0,[()=>iF,{[C]:S}]],EL=[1,w,dh,0,[()=>aF,{[C]:S}]],DL=[1,w,$m,0,[()=>oF,{[C]:S}]],OL=[1,w,eh,0,[()=>sF,{[C]:S}]],kL=[1,w,fh,0,[()=>cF,{[C]:S}]],AL=[1,w,eg,0,[0,{[C]:$h}]],jL=[1,w,ig,0,[0,{[C]:rg}]],ML=[1,w,sg,0,[()=>uF,{[C]:S}]],NL=[1,w,vg,0,[()=>fF,{[C]:S}]],PL=[1,w,xg,0,[()=>pF,{[C]:S}]],FL=[1,w,Bg,0,[()=>hF,{[C]:S}]],IL=[1,w,C_,0,[()=>SF,{[C]:S}]],LL=[1,w,O_,0,[()=>TF,{[C]:S}]],RL=[1,w,G_,0,[0,{[C]:S}]],zL=[1,w,iv,0,[0,{[C]:dv}]],BL=[1,w,kv,0,[0,{[C]:g}]],VL=[1,w,Av,0,[()=>MF,{[C]:S}]],HL=[1,w,jv,0,[0,{[C]:S}]],UL=[1,w,Kv,0,[()=>PF,{[C]:S}]],WL=[1,w,Iv,0,[()=>RF,{[C]:S}]],GL=[1,w,hv,0,[()=>BF,{[C]:S}]],KL=[1,w,ey,0,[()=>VF,{[C]:S}]],qL=[1,w,by,0,[()=>GF,{[C]:S}]],JL=[1,w,Ay,0,[()=>WF,{[C]:S}]],YL=[1,w,iee,0,[0,{[C]:Fy}]],XL=[1,w,jy,0,[()=>KF,{[C]:S}]],ZL=[1,w,mee,0,[()=>qF,{[C]:S}]],QL=[1,w,my,0,[0,{[C]:S}]],$L=[1,w,My,0,[()=>QF,{[C]:S}]],eR=[1,w,_ee,0,[()=>eI,{[C]:S}]],tR=[1,w,yee,0,[0,{[C]:S}]],nR=[1,w,xee,0,[()=>$F,{[C]:S}]],rR=[1,w,$y,0,[0,{[C]:Qy}]],iR=[1,w,tb,0,[()=>iI,{[C]:S}]],aR=[1,w,ab,0,[0,{[C]:S}]],oR=[1,w,sb,0,[()=>aI,{[C]:S}]],sR=[1,w,lb,0,[0,{[C]:db}]],cR=[1,w,Db,0,[0,{[C]:Mb}]],lR=[1,w,Bb,0,[()=>oI,{[C]:S}]],uR=[1,w,Ob,0,[0,{[C]:Rb}]],dR=[1,w,mb,0,[()=>hI,{[C]:S}]],fR=[1,w,Hb,0,[()=>pI,{[C]:S}]],pR=[1,w,Vy,0,[0,{[C]:S}]],T=[1,w,Mx,0,[()=>gI,{[C]:S}]],mR=[1,w,Vx,0,[()=>_I,{[C]:S}]],hR=[1,w,Rx,0,[1,{[C]:S}]],gR=[1,w,$x,0,[0,{[C]:S}]],_R=[1,w,rS,0,[()=>bI,{[C]:S}]],vR=[1,w,GS,0,[0,{[C]:S}]],yR=[1,w,JS,0,[0,{[C]:S}]],bR=[1,w,dS,0,[()=>CI,{[C]:S}]],xR=[1,w,OS,0,[0,{[C]:AS}]],SR=[1,w,FS,0,[()=>SI,{[C]:S}]],CR=[1,w,mS,0,[()=>EI,{[C]:S}]],wR=[1,w,kS,0,[0,{[C]:wS}]],TR=[1,w,ES,0,[()=>MI,{[C]:S}]],ER=[1,w,IS,0,[()=>TI,{[C]:S}]],DR=[1,w,iC,0,[0,{[C]:S}]],OR=[1,w,sC,0,[0,{[C]:oC}]],kR=[1,w,uC,0,[0,{[C]:lC}]],AR=[9,w,os,0,()=>pM,()=>mM],jR=[9,w,Jo,0,()=>hM,()=>NI],MR=[9,w,ys,0,()=>gM,()=>CI],NR=[9,w,ds,0,()=>yM,()=>bM],PR=[9,w,ps,0,()=>xM,()=>SM],FR=[9,w,al,0,()=>IM,()=>LM],IR=[9,w,Tc,0,()=>BM,()=>VM],LR=[9,w,gc,0,()=>HM,()=>UM],RR=[9,w,Ec,0,()=>WM,()=>lF],zR=[9,w,Nc,0,()=>GM,()=>KM],BR=[9,w,Jc,0,()=>qM,()=>JM],VR=[9,w,qc,0,()=>YM,()=>XM],HR=[9,w,Yc,0,()=>ZM,()=>QM],UR=[9,w,sl,0,()=>$M,()=>oI],WR=[9,w,cl,0,()=>eN,()=>tN],GR=[9,w,bl,0,()=>nN,()=>SI],KR=[9,w,xl,0,()=>rN,()=>iN],qR=[9,w,eu,0,()=>sN,()=>cN],JR=[9,w,du,0,()=>lN,()=>NI],YR=[9,w,Tu,0,()=>uN,()=>dN],XR=[9,w,Lu,0,()=>fN,()=>NI],ZR=[9,w,Ru,0,()=>pN,()=>NI],QR=[9,w,ed,0,()=>mN,()=>NI],$R=[9,w,td,0,()=>hN,()=>NI],ez=[9,w,Al,0,()=>gN,()=>_N],tz=[9,w,Zl,0,()=>vN,()=>yN],nz=[9,w,Ql,0,()=>bN,()=>xN],rz=[9,w,Xl,0,()=>SN,()=>CN],iz=[9,w,Hl,0,()=>wN,()=>TN],az=[9,w,au,0,()=>EN,()=>DN],oz=[9,w,hu,0,()=>ON,()=>kN],sz=[9,w,wu,0,()=>AN,()=>jN],cz=[9,w,Su,0,()=>MN,()=>NN],lz=[9,w,Au,0,()=>PN,()=>FN],uz=[9,w,zu,0,()=>IN,()=>LN],dz=[9,w,Bu,0,()=>RN,()=>zN],fz=[9,w,nd,0,()=>BN,()=>VN],pz=[9,w,rd,0,()=>HN,()=>UN],mz=[9,w,id,0,()=>WN,()=>CI],hz=[9,w,Pf,0,()=>dP,()=>fP],gz=[9,w,hm,0,()=>SP,()=>CP],_z=[9,w,Xg,0,()=>vF,()=>NI],vz=[9,w,d_,0,()=>yF,()=>bF],yz=[9,w,Dy,0,()=>HF,()=>NI],bz=[9,w,see,0,()=>JF,()=>YF],xz=[9,w,fee,0,()=>XF,()=>ZF],Sz=[9,w,ky,0,()=>rI,()=>KF],Cz=[9,w,Fb,0,()=>cI,()=>lI],wz=[9,w,Lb,0,()=>dI,()=>fI],Tz=[9,w,Ex,0,()=>vI,()=>yI],Ez=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??He,base64Encoder:e?.base64Encoder??Ue,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Bo,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ha,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Na}],logger:e?.logger??new _a,protocol:e?.protocol??vo,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:cM,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??pt,utf8Decoder:e?.utf8Decoder??oe,utf8Encoder:e?.utf8Encoder??se}),Dz=e=>{let t=$a(e),n=()=>t().then(ca),r=Ez(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Za,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qa({serviceId:r.serviceId,clientVersion:Ka.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Ya(`Region is missing`),requestHandler:Ze.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Hr),sha256:e?.sha256??l,streamCollector:e?.streamCollector??$e,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Oz=e=>({setRegion(t){e.region=t},region(){return e.region}}),kz=e=>({region:e.region()}),Az=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},jz=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Mz=(e,t)=>{let n=Object.assign(Oz(e),ma(e),ue(e),Az(e));return t.forEach(e=>e.configure(n)),Object.assign(e,kz(n),ha(n),de(n),jz(n))},Nz=class extends ta{config;constructor(...[e]){let t=Dz(e||{});super(t),this.initConfig=t;let n=Mz(Ua(qi(ve(Oi(Yi(Xn(Wa(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(Ci(this.config)),this.middlewareStack.use(Ea(this.config)),this.middlewareStack.use(Mi(this.config)),this.middlewareStack.use(xe(this.config)),this.middlewareStack.use(we(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:Ba,identityProviderConfigProvider:async e=>new Gn({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Le(this.config))}destroy(){super.destroy()}},Pz=async(e,t,n)=>({operation:ge(t).operation,region:await p(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Fz(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Iz=e=>{let t=[];switch(e.operation){default:t.push(Fz(e))}return t},Lz=e=>{let t=La(e);return Object.assign(t,{authSchemePreference:p(e.authSchemePreference??[])})},Rz=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),zz={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Bz={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-elastic-load-balancing-v2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},Vz=`ref`,Hz=-1,Uz=!0,Wz=`isSet`,Gz=`PartitionResult`,Kz=`booleanEquals`,qz=`getAttr`,Jz={[Vz]:`Endpoint`},Yz={[Vz]:Gz},Xz={},Zz=[{[Vz]:`Region`}],Qz={conditions:[[Wz,[Jz]],[Wz,Zz],[`aws.partition`,Zz,Gz],[Kz,[{[Vz]:`UseFIPS`},Uz]],[Kz,[{[Vz]:`UseDualStack`},Uz]],[Kz,[{fn:qz,argv:[Yz,`supportsDualStack`]},Uz]],[Kz,[{fn:qz,argv:[Yz,`supportsFIPS`]},Uz]],[`stringEquals`,[{fn:qz,argv:[Yz,`name`]},`aws-us-gov`]]],results:[[Hz],[Hz,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Hz,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Jz,Xz],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Xz],[Hz,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,Xz],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,Xz],[Hz,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,Xz],[Hz,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,Xz],[Hz,`Invalid Configuration: Missing Region`]]},$z=2,eB=1e8,tB=new Int32Array([-1,1,-1,0,13,3,1,4,eB+12,2,5,eB+12,3,8,6,4,7,eB+11,5,eB+9,eB+10,4,11,9,6,10,eB+8,7,eB+6,eB+7,5,12,eB+5,6,eB+4,eB+5,3,eB+1,14,4,eB+2,eB+3]),nB=Zn.from(tB,$z,Qz.conditions,Qz.results),rB=new Qn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),iB=(e,t={})=>rB.get(e,()=>Ar(nB,{endpointParams:e,logger:t.logger}));nr.aws=zr;var E=class e extends oa{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},aB=class e extends E{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oB=class e extends E{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sB=class e extends E{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cB=class e extends E{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lB=class e extends E{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uB=class e extends E{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dB=class e extends E{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fB=class e extends E{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pB=class e extends E{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mB=class e extends E{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hB=class e extends E{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gB=class e extends E{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_B=class e extends E{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vB=class e extends E{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yB=class e extends E{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bB=class e extends E{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xB=class e extends E{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SB=class e extends E{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CB=class e extends E{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wB=class e extends E{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TB=class e extends E{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EB=class e extends E{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DB=class e extends E{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OB=class e extends E{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kB=class e extends E{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},AB=class e extends E{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jB=class e extends E{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MB=class e extends E{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NB=class e extends E{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PB=class e extends E{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FB=class e extends E{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},IB=class e extends E{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LB=class e extends E{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},RB=class e extends E{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zB=class e extends E{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BB=class e extends E{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VB=class e extends E{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HB=class e extends E{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UB=class e extends E{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WB=class e extends E{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GB=class e extends E{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KB=class e extends E{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qB=class e extends E{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JB=class e extends E{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YB=class e extends E{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XB=class e extends E{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZB=class e extends E{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QB=class e extends E{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$B=class e extends E{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eV=class e extends E{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tV=class e extends E{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nV=class e extends E{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rV=class e extends E{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iV=class e extends E{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aV=class e extends E{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oV=class e extends E{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sV=`Action`,cV=`AdditionalClaims`,lV=`AuthenticateCognitoActionConfig`,uV=`AuthenticateCognitoConfig`,dV=`AnomalyDetection`,fV=`AuthorizationEndpoint`,pV=`AllocationId`,mV=`AllocationIdNotFoundException`,hV=`ALPNPolicyNotSupportedException`,gV=`AdministrativeOverride`,_V=`AuthenticateOidcActionConfig`,vV=`AuthenticateOidcConfig`,yV=`AlpnPolicy`,bV=`AuthenticationRequestExtraParams`,xV=`AdvertiseTrustStoreCaNames`,SV=`AvailabilityZone`,CV=`AvailabilityZoneNotSupportedException`,wV=`AvailabilityZones`,TV=`Actions`,EV=`Attributes`,DV=`Certificates`,OV=`CertificateArn`,kV=`CaCertificatesBundleNotFoundException`,AV=`CapacityDecreaseRequestsLimitExceededException`,jV=`CanonicalHostedZoneId`,MV=`ClientId`,NV=`CertificateList`,PV=`CreateLoadBalancer`,FV=`CreateLoadBalancerInput`,IV=`CreateLoadBalancerOutput`,LV=`CreateListenerInput`,RV=`CreateListenerOutput`,zV=`CreateListener`,BV=`CertificateNotFoundException`,VV=`CustomerOwnedIpv4Pool`,HV=`CapacityReservationPendingException`,UV=`ClientSecret`,WV=`ContentType`,GV=`CreateTargetGroup`,KV=`CreateTargetGroupInput`,qV=`CreateTargetGroupOutput`,JV=`CreatedTime`,YV=`CapacityUnitsLimitExceededException`,XV=`Certificate`,ZV=`Code`,QV=`Description`,$V=`DefaultActions`,eH=`DeleteAssociationSameAccountException`,tH=`DeleteListener`,nH=`DeleteLoadBalancer`,rH=`DescribeLoadBalancerAttributes`,iH=`DescribeLoadBalancerAttributesInput`,aH=`DescribeLoadBalancerAttributesOutput`,oH=`DeleteLoadBalancerInput`,sH=`DescribeLoadBalancersInput`,cH=`DuplicateLoadBalancerNameException`,lH=`DeleteLoadBalancerOutput`,uH=`DescribeLoadBalancersOutput`,dH=`DescribeLoadBalancers`,fH=`DuplicateListenerException`,pH=`DeleteListenerInput`,mH=`DescribeListenersInput`,hH=`DeleteListenerOutput`,gH=`DescribeListenersOutput`,_H=`DescribeListeners`,vH=`DNSName`,yH=`DurationSeconds`,bH=`DeregisterTargets`,xH=`DeleteTargetGroup`,SH=`DescribeTargetGroupAttributes`,CH=`DescribeTargetGroupAttributesInput`,wH=`DescribeTargetGroupAttributesOutput`,TH=`DeleteTargetGroupInput`,EH=`DescribeTargetGroupsInput`,DH=`DuplicateTargetGroupNameException`,OH=`DeleteTargetGroupOutput`,kH=`DescribeTargetGroupsOutput`,AH=`DescribeTargetGroups`,jH=`DescribeTargetHealth`,MH=`DescribeTargetHealthInput`,NH=`DescribeTargetHealthOutput`,PH=`DeregisterTargetsInput`,FH=`DescribeTagsInput`,IH=`DuplicateTagKeysException`,LH=`DeregisterTargetsOutput`,RH=`DescribeTagsOutput`,zH=`DuplicateTrustStoreNameException`,BH=`DescribeTags`,VH=`Enabled`,HH=`EnablePrefixForIpv6SourceNat`,UH=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,WH=`Format`,GH=`ForwardActionConfig`,KH=`ForwardConfig`,qH=`FixedResponseActionConfig`,JH=`FixedResponseConfig`,YH=`GrpcCode`,XH=`Host`,ZH=`HttpCode`,QH=`HealthCheckEnabled`,$H=`HealthCheckIntervalSeconds`,eU=`HealthCheckProtocol`,tU=`HealthCheckPort`,nU=`HealthCheckPath`,rU=`HealthCheckTimeoutSeconds`,iU=`HealthyThresholdCount`,aU=`HealthUnavailableException`,oU=`Issuer`,sU=`IpAddress`,cU=`IpAddressType`,lU=`InvalidCaCertificatesBundleException`,uU=`IgnoreClientCertificateExpiry`,dU=`InsufficientCapacityException`,fU=`InvalidConfigurationRequestException`,pU=`IsDefault`,mU=`Ipv4IpamPoolId`,hU=`InvalidLoadBalancerActionException`,gU=`IpamPools`,_U=`IPv6Address`,vU=`IncompatibleProtocolsException`,yU=`InvalidRevocationContentException`,bU=`InvalidSchemeException`,xU=`InvalidSubnetException`,SU=`InvalidSecurityGroupException`,CU=`InvalidTargetException`,wU=`Id`,TU=`Include`,EU=`JwksEndpoint`,DU=`JwtValidationActionAdditionalClaim`,OU=`JwtValidationActionAdditionalClaims`,kU=`JwtValidationActionConfig`,AU=`JwtValidationConfig`,jU=`Key`,MU=`Listeners`,NU=`ListenerArn`,PU=`ListenerArns`,FU=`LoadBalancers`,IU=`LoadBalancerAddresses`,LU=`LoadBalancerArn`,RU=`LoadBalancerArns`,zU=`LoadBalancerAddress`,BU=`LoadBalancerAttribute`,VU=`LoadBalancerAttributes`,HU=`LoadBalancerName`,UU=`LoadBalancerNotFoundException`,WU=`LoadBalancerState`,GU=`LoadBalancer`,KU=`ListenerNotFoundException`,qU=`Listener`,D=`Message`,JU=`MutualAuthentication`,YU=`MutualAuthenticationAttributes`,XU=`MessageBody`,ZU=`MitigationInEffect`,QU=`ModifyLoadBalancerAttributes`,$U=`ModifyLoadBalancerAttributesInput`,eW=`ModifyLoadBalancerAttributesOutput`,tW=`ModifyTargetGroupAttributes`,nW=`ModifyTargetGroupAttributesInput`,rW=`ModifyTargetGroupAttributesOutput`,iW=`Matcher`,aW=`Marker`,oW=`Mode`,sW=`Name`,cW=`NextMarker`,lW=`Names`,uW=`Order`,dW=`OutpostId`,fW=`OperationNotPermittedException`,pW=`OnUnauthenticatedRequest`,mW=`PrivateIPv4Address`,hW=`PriorityInUseException`,gW=`PriorRequestNotCompleteException`,_W=`PageSize`,vW=`ProtocolVersion`,yW=`Path`,bW=`Port`,xW=`Protocol`,SW=`Query`,CW=`QuicServerId`,wW=`Reason`,TW=`ResourceArns`,EW=`RedirectActionConfig`,DW=`ResourceArn`,OW=`RedirectConfig`,kW=`RevocationContentNotFoundException`,AW=`RevocationIdNotFoundException`,jW=`ResourceInUseException`,MW=`ResourceNotFoundException`,NW=`RuleNotFoundException`,PW=`RegisterTargetsInput`,FW=`RegisterTargetsOutput`,IW=`RegisterTargets`,LW=`Result`,RW=`State`,zW=`StatusCode`,BW=`SessionCookieName`,VW=`SecurityGroups`,HW=`SubnetId`,UW=`SubnetMappings`,WW=`SubnetMapping`,GW=`SubnetNotFoundException`,KW=`SourceNatIpv6Prefixes`,qW=`SourceNatIpv6Prefix`,JW=`SslPolicy`,YW=`SSLPolicyNotFoundException`,XW=`SessionTimeout`,ZW=`Scope`,QW=`Scheme`,$W=`Subnets`,eG=`Type`,tG=`TargetControlPort`,nG=`TagDescriptions`,rG=`TagDescription`,iG=`TargetDescription`,aG=`TargetDescriptions`,oG=`TokenEndpoint`,sG=`TargetGroups`,cG=`TargetGroupArn`,lG=`TargetGroupAssociationLimitException`,uG=`TargetGroupArns`,dG=`TargetGroupAttribute`,fG=`TargetGroupAttributes`,pG=`TargetGroupList`,mG=`TargetGroupName`,hG=`TargetGroupNotFoundException`,gG=`TargetGroupStickinessConfig`,_G=`TargetGroupTuple`,vG=`TargetGroup`,yG=`TargetHealth`,bG=`TargetHealthDescriptions`,xG=`TargetHealthDescription`,SG=`TagList`,CG=`TooManyActionsException`,wG=`TooManyCertificatesException`,TG=`TooManyLoadBalancersException`,EG=`TooManyListenersException`,DG=`TooManyRulesException`,OG=`TooManyRegistrationsForTargetIdException`,kG=`TooManyTagsException`,AG=`TooManyTargetsException`,jG=`TooManyTargetGroupsException`,MG=`TooManyTrustStoresException`,NG=`TooManyTrustStoreRevocationEntriesException`,PG=`TooManyUniqueTargetGroupsPerLoadBalancerException`,FG=`TrustStoreArn`,IG=`TrustStoreAssociationNotFoundException`,LG=`TrustStoreAssociationStatus`,RG=`TrustStoreInUseException`,zG=`TrustStoreNotFoundException`,BG=`TrustStoreNotReadyException`,VG=`TargetType`,HG=`Tags`,UG=`Tag`,WG=`Targets`,GG=`Target`,KG=`UseExistingClientSecret`,qG=`UserInfoEndpoint`,JG=`UserPoolArn`,YG=`UserPoolClientId`,XG=`UserPoolDomain`,ZG=`UnsupportedProtocolException`,QG=`UnhealthyThresholdCount`,$G=`Values`,eK=`VpcId`,tK=`Value`,nK=`Weight`,rK=`ZoneName`,O=`awsQueryError`,k=`client`,A=`error`,j=`httpError`,iK=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,aK=`server`,M=`com.amazonaws.elasticloadbalancingv2`,oK=Dt.for(iK),sK=[-3,iK,`ElasticLoadBalancingV2ServiceException`,0,[],[]];oK.registerError(sK,E);var N=Dt.for(M),cK=[-3,M,mV,{[O]:[`AllocationIdNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(cK,_B);var lK=[-3,M,hV,{[O]:[`ALPNPolicyNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(lK,vB);var uK=[-3,M,CV,{[O]:[`AvailabilityZoneNotSupported`,400],[A]:k,[j]:400},[D],[0]];N.registerError(uK,yB);var dK=[-3,M,kV,{[O]:[`CaCertificatesBundleNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(dK,bB);var fK=[-3,M,AV,{[O]:[`CapacityDecreaseRequestLimitExceeded`,400],[A]:k,[j]:400},[D],[0]];N.registerError(fK,xB);var pK=[-3,M,HV,{[O]:[`CapacityReservationPending`,400],[A]:k,[j]:400},[D],[0]];N.registerError(pK,SB);var mK=[-3,M,YV,{[O]:[`CapacityUnitsLimitExceeded`,400],[A]:k,[j]:400},[D],[0]];N.registerError(mK,CB);var hK=[-3,M,BV,{[O]:[`CertificateNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(hK,aB);var gK=[-3,M,eH,{[O]:[`DeleteAssociationSameAccount`,400],[A]:k,[j]:400},[D],[0]];N.registerError(gK,QB);var _K=[-3,M,fH,{[O]:[`DuplicateListener`,400],[A]:k,[j]:400},[D],[0]];N.registerError(_K,wB);var vK=[-3,M,cH,{[O]:[`DuplicateLoadBalancerName`,400],[A]:k,[j]:400},[D],[0]];N.registerError(vK,LB);var yK=[-3,M,IH,{[O]:[`DuplicateTagKeys`,400],[A]:k,[j]:400},[D],[0]];N.registerError(yK,cB);var bK=[-3,M,DH,{[O]:[`DuplicateTargetGroupName`,400],[A]:k,[j]:400},[D],[0]];N.registerError(bK,JB);var xK=[-3,M,zH,{[O]:[`DuplicateTrustStoreName`,400],[A]:k,[j]:400},[D],[0]];N.registerError(xK,YB);var SK=[-3,M,aU,{[O]:[`HealthUnavailable`,500],[A]:aK,[j]:500},[D],[0]];N.registerError(SK,nV);var CK=[-3,M,vU,{[O]:[`IncompatibleProtocols`,400],[A]:k,[j]:400},[D],[0]];N.registerError(CK,TB);var wK=[-3,M,dU,{[O]:[`InsufficientCapacity`,500],[A]:aK,[j]:500},[D],[0]];N.registerError(wK,aV);var TK=[-3,M,lU,{[O]:[`InvalidCaCertificatesBundle`,400],[A]:k,[j]:400},[D],[0]];N.registerError(TK,XB);var EK=[-3,M,fU,{[O]:[`InvalidConfigurationRequest`,400],[A]:k,[j]:400},[D],[0]];N.registerError(EK,EB);var DK=[-3,M,hU,{[O]:[`InvalidLoadBalancerAction`,400],[A]:k,[j]:400},[D],[0]];N.registerError(DK,DB);var OK=[-3,M,yU,{[O]:[`InvalidRevocationContent`,400],[A]:k,[j]:400},[D],[0]];N.registerError(OK,mB);var kK=[-3,M,bU,{[O]:[`InvalidScheme`,400],[A]:k,[j]:400},[D],[0]];N.registerError(kK,RB);var AK=[-3,M,SU,{[O]:[`InvalidSecurityGroup`,400],[A]:k,[j]:400},[D],[0]];N.registerError(AK,zB);var jK=[-3,M,xU,{[O]:[`InvalidSubnet`,400],[A]:k,[j]:400},[D],[0]];N.registerError(jK,BB);var MK=[-3,M,CU,{[O]:[`InvalidTarget`,400],[A]:k,[j]:400},[D],[0]];N.registerError(MK,tV);var NK=[-3,M,KU,{[O]:[`ListenerNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(NK,oB);var PK=[-3,M,UU,{[O]:[`LoadBalancerNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(PK,lB);var FK=[-3,M,fW,{[O]:[`OperationNotPermitted`,400],[A]:k,[j]:400},[D],[0]];N.registerError(FK,VB);var IK=[-3,M,hW,{[O]:[`PriorityInUse`,400],[A]:k,[j]:400},[D],[0]];N.registerError(IK,GB);var LK=[-3,M,gW,{[O]:[`PriorRequestNotComplete`,429],[A]:k,[j]:429},[D],[0]];N.registerError(LK,oV);var RK=[-3,M,jW,{[O]:[`ResourceInUse`,400],[A]:k,[j]:400},[D],[0]];N.registerError(RK,HB);var zK=[-3,M,MW,{[O]:[`ResourceNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(zK,iV);var BK=[-3,M,kW,{[O]:[`RevocationContentNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(BK,hB);var VK=[-3,M,AW,{[O]:[`RevocationIdNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(VK,rV);var HK=[-3,M,NW,{[O]:[`RuleNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(HK,uB);var UK=[-3,M,YW,{[O]:[`SSLPolicyNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(UK,OB);var WK=[-3,M,GW,{[O]:[`SubnetNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(WK,UB);var GK=[-3,M,lG,{[O]:[`TargetGroupAssociationLimit`,400],[A]:k,[j]:400},[D],[0]];N.registerError(GK,kB);var KK=[-3,M,hG,{[O]:[`TargetGroupNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(KK,dB);var qK=[-3,M,CG,{[O]:[`TooManyActions`,400],[A]:k,[j]:400},[D],[0]];N.registerError(qK,AB);var JK=[-3,M,wG,{[O]:[`TooManyCertificates`,400],[A]:k,[j]:400},[D],[0]];N.registerError(JK,sB);var YK=[-3,M,EG,{[O]:[`TooManyListeners`,400],[A]:k,[j]:400},[D],[0]];N.registerError(YK,jB);var XK=[-3,M,TG,{[O]:[`TooManyLoadBalancers`,400],[A]:k,[j]:400},[D],[0]];N.registerError(XK,WB);var ZK=[-3,M,OG,{[O]:[`TooManyRegistrationsForTargetId`,400],[A]:k,[j]:400},[D],[0]];N.registerError(ZK,MB);var QK=[-3,M,DG,{[O]:[`TooManyRules`,400],[A]:k,[j]:400},[D],[0]];N.registerError(QK,KB);var $K=[-3,M,kG,{[O]:[`TooManyTags`,400],[A]:k,[j]:400},[D],[0]];N.registerError($K,fB);var eq=[-3,M,jG,{[O]:[`TooManyTargetGroups`,400],[A]:k,[j]:400},[D],[0]];N.registerError(eq,qB);var tq=[-3,M,AG,{[O]:[`TooManyTargets`,400],[A]:k,[j]:400},[D],[0]];N.registerError(tq,NB);var nq=[-3,M,NG,{[O]:[`TooManyTrustStoreRevocationEntries`,400],[A]:k,[j]:400},[D],[0]];N.registerError(nq,gB);var rq=[-3,M,MG,{[O]:[`TooManyTrustStores`,400],[A]:k,[j]:400},[D],[0]];N.registerError(rq,ZB);var iq=[-3,M,PG,{[O]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[A]:k,[j]:400},[D],[0]];N.registerError(iq,PB);var aq=[-3,M,IG,{[O]:[`AssociationNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(aq,$B);var oq=[-3,M,RG,{[O]:[`TrustStoreInUse`,400],[A]:k,[j]:400},[D],[0]];N.registerError(oq,eV);var sq=[-3,M,zG,{[O]:[`TrustStoreNotFound`,400],[A]:k,[j]:400},[D],[0]];N.registerError(sq,pB);var cq=[-3,M,BG,{[O]:[`TrustStoreNotReady`,400],[A]:k,[j]:400},[D],[0]];N.registerError(cq,FB);var lq=[-3,M,ZG,{[O]:[`UnsupportedProtocol`,400],[A]:k,[j]:400},[D],[0]];N.registerError(lq,IB);var uq=[oK,N],dq=[3,M,sV,0,[eG,cG,vV,uV,uW,OW,JH,KH,AU],[0,0,()=>hq,()=>mq,1,()=>cJ,()=>Kq,()=>qq,()=>Xq],1],fq=[3,M,gV,0,[RW,wW,QV],[0,0,0]],pq=[3,M,dV,0,[LW,ZU],[0,0]],mq=[3,M,lV,0,[JG,YG,XG,BW,ZW,XW,bV,pW],[0,0,0,0,0,1,128,0],3],hq=[3,M,_V,0,[oU,fV,oG,qG,MV,UV,BW,ZW,XW,bV,pW,KG],[0,0,0,0,0,0,0,0,1,128,0,2],5],gq=[3,M,SV,0,[rK,HW,dW,IU,KW],[0,0,0,()=>EJ,64]],_q=[3,M,XV,0,[OV,pU],[0,2]],vq=[3,M,LV,0,[LU,$V,xW,bW,JW,DV,yV,HG,JU],[0,()=>xJ,0,1,0,()=>CJ,64,()=>jJ,()=>sJ],2],yq=[3,M,RV,0,[MU],[()=>TJ]],bq=[3,M,FV,0,[sW,$W,UW,VW,QW,HG,eG,cU,VV,HH,gU],[0,64,()=>kJ,64,0,()=>jJ,0,0,0,0,()=>Jq],1],xq=[3,M,IV,0,[FU],[()=>OJ]],Sq=[3,M,KV,0,[sW,xW,vW,bW,eK,eU,tU,QH,nU,$H,rU,iU,QG,iW,VG,HG,cU,tG],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>nJ,0,()=>jJ,0,1],1],Cq=[3,M,qV,0,[sG],[()=>FJ]],wq=[3,M,pH,0,[NU],[0],1],Tq=[3,M,hH,0,[],[]],Eq=[3,M,oH,0,[LU],[0],1],Dq=[3,M,lH,0,[],[]],Oq=[3,M,TH,0,[cG],[0],1],kq=[3,M,OH,0,[],[]],Aq=[3,M,PH,0,[cG,WG],[0,()=>MJ],2],jq=[3,M,LH,0,[],[]],Mq=[3,M,mH,0,[LU,PU,aW,_W],[0,64,0,1]],Nq=[3,M,gH,0,[MU,cW],[()=>TJ,0]],Pq=[3,M,iH,0,[LU],[0],1],Fq=[3,M,aH,0,[EV],[()=>DJ]],Iq=[3,M,sH,0,[RU,lW,aW,_W],[64,64,0,1]],Lq=[3,M,uH,0,[FU,cW],[()=>OJ,0]],Rq=[3,M,FH,0,[TW],[64],1],zq=[3,M,RH,0,[nG],[()=>AJ]],Bq=[3,M,CH,0,[cG],[0],1],Vq=[3,M,wH,0,[EV],[()=>NJ]],Hq=[3,M,EH,0,[LU,uG,lW,aW,_W],[0,64,64,0,1]],Uq=[3,M,kH,0,[sG,cW],[()=>FJ,0]],Wq=[3,M,MH,0,[cG,WG,TU],[0,()=>MJ,64],1],Gq=[3,M,NH,0,[bG],[()=>IJ]],Kq=[3,M,qH,0,[zW,XU,WV],[0,0,0],1],qq=[3,M,GH,0,[sG,gG],[()=>PJ,()=>_J]],Jq=[3,M,gU,0,[mU],[0]],Yq=[3,M,DU,0,[WH,sW,$G],[0,0,64],3],Xq=[3,M,kU,0,[EU,oU,cV],[0,0,()=>wJ],2],Zq=[3,M,qU,0,[NU,LU,bW,xW,DV,JW,$V,yV,JU],[0,0,1,0,()=>CJ,0,()=>xJ,64,()=>sJ]],Qq=[3,M,GU,0,[LU,vH,jV,JV,HU,QW,eK,RW,eG,wV,VW,cU,VV,UH,HH,gU],[0,0,0,4,0,0,0,()=>tJ,0,()=>SJ,64,0,0,0,0,()=>Jq]],$q=[3,M,zU,0,[sU,pV,mW,_U],[0,0,0,0]],eJ=[3,M,BU,0,[jU,tK],[0,0]],tJ=[3,M,WU,0,[ZV,wW],[0,0]],nJ=[3,M,iW,0,[ZH,YH],[0,0]],rJ=[3,M,$U,0,[LU,EV],[0,()=>DJ],2],iJ=[3,M,eW,0,[EV],[()=>DJ]],aJ=[3,M,nW,0,[cG,EV],[0,()=>NJ],2],oJ=[3,M,rW,0,[EV],[()=>NJ]],sJ=[3,M,YU,0,[oW,FG,uU,LG,xV],[0,0,2,0,0]],cJ=[3,M,EW,0,[zW,xW,bW,XH,yW,SW],[0,0,0,0,0,0],1],lJ=[3,M,PW,0,[cG,WG],[0,()=>MJ],2],uJ=[3,M,FW,0,[],[]],dJ=[3,M,WW,0,[HW,pV,mW,_U,qW],[0,0,0,0,0]],fJ=[3,M,UG,0,[jU,tK],[0,0],1],pJ=[3,M,rG,0,[DW,HG],[0,()=>jJ]],mJ=[3,M,iG,0,[wU,bW,SV,CW],[0,1,0,0],1],hJ=[3,M,vG,0,[cG,mG,xW,bW,eK,eU,tU,QH,$H,rU,iU,QG,nU,iW,RU,VG,vW,cU,tG],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>nJ,64,0,0,0,1]],gJ=[3,M,dG,0,[jU,tK],[0,0]],_J=[3,M,gG,0,[VH,yH],[2,1]],vJ=[3,M,_G,0,[cG,nK],[0,1]],yJ=[3,M,yG,0,[RW,wW,QV],[0,0,0]],bJ=[3,M,xG,0,[GG,tU,yG,dV,gV],[()=>mJ,0,()=>yJ,()=>pq,()=>fq]],xJ=[1,M,TV,0,()=>dq],SJ=[1,M,wV,0,()=>gq],CJ=[1,M,NV,0,()=>_q],wJ=[1,M,OU,0,()=>Yq],TJ=[1,M,MU,0,()=>Zq],EJ=[1,M,IU,0,()=>$q],DJ=[1,M,VU,0,()=>eJ],OJ=[1,M,FU,0,()=>Qq],kJ=[1,M,UW,0,()=>dJ],AJ=[1,M,nG,0,()=>pJ],jJ=[1,M,SG,0,()=>fJ],MJ=[1,M,aG,0,()=>mJ],NJ=[1,M,fG,0,()=>gJ],PJ=[1,M,pG,0,()=>vJ],FJ=[1,M,sG,0,()=>hJ],IJ=[1,M,bG,0,()=>bJ],LJ=[9,M,zV,0,()=>vq,()=>yq],RJ=[9,M,PV,0,()=>bq,()=>xq],zJ=[9,M,GV,0,()=>Sq,()=>Cq],BJ=[9,M,tH,0,()=>wq,()=>Tq],VJ=[9,M,nH,0,()=>Eq,()=>Dq],HJ=[9,M,xH,0,()=>Oq,()=>kq],UJ=[9,M,bH,0,()=>Aq,()=>jq],WJ=[9,M,_H,0,()=>Mq,()=>Nq],GJ=[9,M,rH,0,()=>Pq,()=>Fq],KJ=[9,M,dH,0,()=>Iq,()=>Lq],qJ=[9,M,BH,0,()=>Rq,()=>zq],JJ=[9,M,SH,0,()=>Bq,()=>Vq],YJ=[9,M,AH,0,()=>Hq,()=>Uq],XJ=[9,M,jH,0,()=>Wq,()=>Gq],ZJ=[9,M,QU,0,()=>rJ,()=>iJ],QJ=[9,M,tW,0,()=>aJ,()=>oJ],$J=[9,M,IW,0,()=>lJ,()=>uJ],eY=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??He,base64Encoder:e?.base64Encoder??Ue,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??iB,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Iz,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Na}],logger:e?.logger??new _a,protocol:e?.protocol??_o,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:uq,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??pt,utf8Decoder:e?.utf8Decoder??oe,utf8Encoder:e?.utf8Encoder??se}),tY=e=>{let t=$a(e),n=()=>t().then(ca),r=eY(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Za,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qa({serviceId:r.serviceId,clientVersion:Bz.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Ya(`Region is missing`),requestHandler:Ze.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Hr),sha256:e?.sha256??l,streamCollector:e?.streamCollector??$e,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},nY=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},rY=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),iY=(e,t)=>{let n=Object.assign(Oz(e),ma(e),ue(e),nY(e));return t.forEach(e=>e.configure(n)),Object.assign(e,kz(n),ha(n),de(n),rY(n))},aY=class extends ta{config;constructor(...[e]){let t=tY(e||{});super(t),this.initConfig=t;let n=iY(Lz(qi(ve(Oi(Yi(Xn(Rz(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(Ci(this.config)),this.middlewareStack.use(Ea(this.config)),this.middlewareStack.use(Mi(this.config)),this.middlewareStack.use(xe(this.config)),this.middlewareStack.use(we(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:Pz,identityProviderConfigProvider:async e=>new Gn({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Le(this.config))}destroy(){super.destroy()}},oY=async(e,t,n)=>({operation:ge(t).operation,region:await p(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function sY(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var cY=e=>{let t=[];switch(e.operation){default:t.push(sY(e))}return t},lY=e=>{let t=La(e);return Object.assign(t,{authSchemePreference:p(e.authSchemePreference??[])})},uY=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),dY={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},fY={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-iam`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},pY=`ref`,mY=`authSchemes`,hY=`name`,gY=`signingRegion`,_Y=-1,vY=!0,yY=`isSet`,bY=`PartitionResult`,xY=`booleanEquals`,SY=`stringEquals`,CY=`getAttr`,wY=`sigv4`,TY={[pY]:`Endpoint`},EY={fn:CY,argv:[{[pY]:bY},`name`]},DY={[pY]:bY},OY={[mY]:[{[hY]:wY,[gY]:`us-east-1`}]},kY={[mY]:[{[hY]:wY,[gY]:`cn-north-1`}]},AY={[mY]:[{[hY]:wY,[gY]:`us-gov-west-1`}]},jY={[mY]:[{[hY]:wY,[gY]:`us-iso-east-1`}]},MY={[mY]:[{[hY]:wY,[gY]:`us-isob-east-1`}]},NY={[mY]:[{[hY]:wY,[gY]:`{PartitionResult#implicitGlobalRegion}`}]},PY=[{[pY]:`Region`}],FY={conditions:[[yY,[TY]],[yY,PY],[`aws.partition`,PY,bY],[xY,[{[pY]:`UseFIPS`},vY]],[xY,[{[pY]:`UseDualStack`},vY]],[SY,[EY,`aws`]],[SY,[EY,`aws-cn`]],[SY,[EY,`aws-us-gov`]],[xY,[{fn:CY,argv:[DY,`supportsDualStack`]},vY]],[SY,[EY,`aws-iso`]],[SY,[EY,`aws-iso-b`]],[xY,[{fn:CY,argv:[DY,`supportsFIPS`]},vY]],[SY,[EY,`aws-iso-e`]],[SY,[EY,`aws-iso-f`]],[SY,[EY,`aws-eusc`]]],results:[[_Y],[_Y,`Invalid Configuration: FIPS and custom endpoint are not supported`],[_Y,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[TY,{}],[`https://iam.global.api.aws`,OY],[`https://iam-fips.global.api.aws`,OY],[`https://iam.global.api.amazonwebservices.com.cn`,kY],[`https://iam.cn-north-1.amazonaws.com.cn`,kY],[`https://iam.us-gov.api.aws`,AY],[`https://iam.us-gov.amazonaws.com`,AY],[`https://iam.us-iso-east-1.c2s.ic.gov`,jY],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,jY],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,MY],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,MY],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[mY]:[{[hY]:wY,[gY]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[mY]:[{[hY]:wY,[gY]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[mY]:[{[hY]:wY,[gY]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,NY],[_Y,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,NY],[_Y,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,NY],[_Y,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,NY],[_Y,`Invalid Configuration: Missing Region`]]},IY=2,P=1e8,LY=new Int32Array([-1,1,-1,0,27,3,1,4,P+24,2,5,P+24,3,18,6,4,14,7,6,P+7,8,7,P+9,9,9,P+10,10,10,P+12,11,12,P+14,12,13,P+15,13,14,P+16,P+23,5,P+4,15,6,P+6,16,7,P+8,17,8,P+21,P+22,4,23,19,7,P+9,20,9,P+11,21,10,P+13,22,11,P+19,P+20,5,P+5,24,7,P+8,25,8,26,P+18,11,P+17,P+18,3,P+1,28,4,P+2,P+3]),RY=Zn.from(LY,IY,FY.conditions,FY.results),zY=new Qn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),BY=(e,t={})=>zY.get(e,()=>Ar(RY,{endpointParams:e,logger:t.logger}));nr.aws=zr;var F=class e extends oa{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},VY=class e extends F{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HY=class e extends F{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UY=class e extends F{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},WY=class e extends F{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GY=class e extends F{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KY=class e extends F{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qY=class e extends F{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JY=class e extends F{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YY=class e extends F{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XY=class e extends F{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZY=class e extends F{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QY=class e extends F{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$Y=class e extends F{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eX=class e extends F{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tX=class e extends F{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nX=class e extends F{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rX=class e extends F{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iX=class e extends F{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aX=class e extends F{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oX=class e extends F{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sX=class e extends F{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cX=class e extends F{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lX=class e extends F{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uX=class e extends F{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dX=class e extends F{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fX=class e extends F{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pX=class e extends F{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mX=class e extends F{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hX=class e extends F{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},gX=class e extends F{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_X=class e extends F{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vX=class e extends F{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yX=class e extends F{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bX=class e extends F{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xX=class e extends F{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SX=`Arn`,CX=`AttachmentCount`,wX=`AccessKey`,TX=`AccessKeyId`,EX=`AccessKeyMetadata`,DX=`AccountNotManagementOrDelegatedAdministratorException`,OX=`AttachedPolicy`,kX=`AttachedPermissionsBoundary`,AX=`AttachedPolicies`,jX=`AttachUserPolicy`,MX=`AttachUserPolicyRequest`,NX=`CreateAccessKey`,PX=`CreateAccessKeyRequest`,FX=`CreateAccessKeyResponse`,IX=`CreateDate`,LX=`CallerIsNotManagementAccountException`,RX=`ConcurrentModificationException`,zX=`CreatePolicyRequest`,BX=`CreatePolicyResponse`,VX=`CreatePolicy`,HX=`CredentialReportExpiredException`,UX=`CredentialReportNotPresentException`,WX=`CredentialReportNotReadyException`,GX=`CreateUser`,KX=`CreateUserRequest`,qX=`CreateUserResponse`,JX=`Description`,YX=`DeleteAccessKey`,XX=`DeleteAccessKeyRequest`,ZX=`DeleteConflictException`,QX=`DuplicateCertificateException`,$X=`DeletePolicyRequest`,eZ=`DeletePolicy`,tZ=`DuplicateSSHPublicKeyException`,nZ=`DeleteUser`,rZ=`DetachUserPolicyRequest`,iZ=`DetachUserPolicy`,aZ=`DeleteUserRequest`,oZ=`DefaultVersionId`,sZ=`Document`,cZ=`EntityAlreadyExistsException`,lZ=`EntityTemporarilyUnmodifiableException`,uZ=`FeatureDisabledException`,dZ=`FeatureEnabledException`,fZ=`GetPolicy`,pZ=`GetPolicyRequest`,mZ=`GetPolicyResponse`,hZ=`GetPolicyVersion`,gZ=`GetPolicyVersionRequest`,_Z=`GetPolicyVersionResponse`,vZ=`GetUser`,yZ=`GetUserRequest`,bZ=`GetUserResponse`,xZ=`IsAttachable`,SZ=`InvalidAuthenticationCodeException`,CZ=`InvalidCertificateException`,wZ=`IsDefaultVersion`,TZ=`InvalidInputException`,EZ=`InvalidPublicKeyException`,DZ=`IsTruncated`,OZ=`InvalidUserTypeException`,kZ=`Key`,AZ=`KeyPairMismatchException`,jZ=`ListAccessKeys`,MZ=`ListAccessKeysRequest`,NZ=`ListAccessKeysResponse`,PZ=`ListAttachedUserPolicies`,FZ=`ListAttachedUserPoliciesRequest`,IZ=`ListAttachedUserPoliciesResponse`,LZ=`LimitExceededException`,RZ=`ListPoliciesRequest`,zZ=`ListPoliciesResponse`,BZ=`ListPolicies`,VZ=`ListUsers`,HZ=`ListUsersRequest`,UZ=`ListUsersResponse`,WZ=`Message`,GZ=`MalformedCertificateException`,KZ=`MaxItems`,qZ=`MalformedPolicyDocumentException`,JZ=`Marker`,YZ=`NoSuchEntityException`,XZ=`OnlyAttached`,ZZ=`OpenIdIdpCommunicationErrorException`,QZ=`OrganizationNotFoundException`,$Z=`OrganizationNotInAllFeaturesModeException`,eQ=`PolicyArn`,tQ=`PermissionsBoundary`,nQ=`PermissionsBoundaryArn`,rQ=`PermissionsBoundaryType`,iQ=`PermissionsBoundaryUsageCount`,aQ=`PolicyDocument`,oQ=`PolicyEvaluationException`,sQ=`PolicyId`,cQ=`PasswordLastUsed`,lQ=`PolicyName`,uQ=`PolicyNotAttachableException`,dQ=`PasswordPolicyViolationException`,fQ=`PathPrefix`,pQ=`PolicyUsageFilter`,mQ=`PolicyVersion`,hQ=`Path`,gQ=`Policy`,_Q=`Policies`,vQ=`ReportGenerationLimitExceededException`,yQ=`Status`,bQ=`SecretAccessKey`,xQ=`ServiceAccessNotEnabledException`,SQ=`ServiceFailureException`,CQ=`ServiceNotSupportedException`,wQ=`Scope`,TQ=`Tags`,EQ=`Tag`,DQ=`UpdateAccessKey`,OQ=`UpdateAccessKeyRequest`,kQ=`UpdateDate`,AQ=`UnmodifiableEntityException`,jQ=`UserId`,MQ=`UserName`,NQ=`UnrecognizedPublicKeyEncodingException`,PQ=`User`,FQ=`Users`,IQ=`VersionId`,LQ=`Value`,RQ=`accessKeyMetadataListType`,zQ=`accessKeySecretType`,BQ=`attachedPoliciesListType`,I=`awsQueryError`,L=`client`,R=`error`,z=`httpError`,B=`message`,VQ=`policyListType`,HQ=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,UQ=`server`,WQ=`tagListType`,GQ=`userListType`,V=`com.amazonaws.iam`,KQ=Dt.for(HQ),qQ=[-3,HQ,`IAMServiceException`,0,[],[]];KQ.registerError(qQ,F);var H=Dt.for(V),JQ=[-3,V,DX,{[R]:L,[z]:400},[WZ],[0]];H.registerError(JQ,WY);var YQ=[-3,V,LX,{[R]:L,[z]:400},[WZ],[0]];H.registerError(YQ,cX);var XQ=[-3,V,RX,{[I]:[`ConcurrentModification`,409],[R]:L,[z]:409},[B],[0]];H.registerError(XQ,VY);var ZQ=[-3,V,HX,{[I]:[`ReportExpired`,410],[R]:L,[z]:410},[B],[0]];H.registerError(ZQ,dX);var QQ=[-3,V,UX,{[I]:[`ReportNotPresent`,410],[R]:L,[z]:410},[B],[0]];H.registerError(QQ,fX);var $Q=[-3,V,WX,{[I]:[`ReportInProgress`,404],[R]:L,[z]:404},[B],[0]];H.registerError($Q,pX);var e$=[-3,V,ZX,{[I]:[`DeleteConflict`,409],[R]:L,[z]:409},[B],[0]];H.registerError(e$,nX);var t$=[-3,V,QX,{[I]:[`DuplicateCertificate`,409],[R]:L,[z]:409},[B],[0]];H.registerError(t$,vX);var n$=[-3,V,tZ,{[I]:[`DuplicateSSHPublicKey`,400],[R]:L,[z]:400},[B],[0]];H.registerError(n$,bX);var r$=[-3,V,cZ,{[I]:[`EntityAlreadyExists`,409],[R]:L,[z]:409},[B],[0]];H.registerError(r$,qY);var i$=[-3,V,lZ,{[I]:[`EntityTemporarilyUnmodifiable`,409],[R]:L,[z]:409},[B],[0]];H.registerError(i$,XY);var a$=[-3,V,uZ,{[I]:[`FeatureDisabled`,404],[R]:L,[z]:404},[B],[0]];H.registerError(a$,oX);var o$=[-3,V,dZ,{[I]:[`FeatureEnabled`,409],[R]:L,[z]:409},[B],[0]];H.registerError(o$,lX);var s$=[-3,V,SZ,{[I]:[`InvalidAuthenticationCode`,403],[R]:L,[z]:403},[B],[0]];H.registerError(s$,sX);var c$=[-3,V,CZ,{[I]:[`InvalidCertificate`,400],[R]:L,[z]:400},[B],[0]];H.registerError(c$,yX);var l$=[-3,V,TZ,{[I]:[`InvalidInput`,400],[R]:L,[z]:400},[B],[0]];H.registerError(l$,GY);var u$=[-3,V,EZ,{[I]:[`InvalidPublicKey`,400],[R]:L,[z]:400},[B],[0]];H.registerError(u$,xX);var d$=[-3,V,OZ,{[I]:[`InvalidUserType`,400],[R]:L,[z]:400},[B],[0]];H.registerError(d$,ZY);var f$=[-3,V,AZ,{[I]:[`KeyPairMismatch`,400],[R]:L,[z]:400},[B],[0]];H.registerError(f$,gX);var p$=[-3,V,LZ,{[I]:[`LimitExceeded`,409],[R]:L,[z]:409},[B],[0]];H.registerError(p$,KY);var m$=[-3,V,GZ,{[I]:[`MalformedCertificate`,400],[R]:L,[z]:400},[B],[0]];H.registerError(m$,_X);var h$=[-3,V,qZ,{[I]:[`MalformedPolicyDocument`,400],[R]:L,[z]:400},[B],[0]];H.registerError(h$,eX);var g$=[-3,V,YZ,{[I]:[`NoSuchEntity`,404],[R]:L,[z]:404},[B],[0]];H.registerError(g$,HY);var _$=[-3,V,ZZ,{[I]:[`OpenIdIdpCommunicationError`,400],[R]:L,[z]:400},[B],[0]];H.registerError(_$,$Y);var v$=[-3,V,QZ,{[R]:L,[z]:400},[WZ],[0]];H.registerError(v$,rX);var y$=[-3,V,$Z,{[R]:L,[z]:400},[WZ],[0]];H.registerError(y$,iX);var b$=[-3,V,dQ,{[I]:[`PasswordPolicyViolation`,400],[R]:L,[z]:400},[B],[0]];H.registerError(b$,QY);var x$=[-3,V,oQ,{[I]:[`PolicyEvaluation`,500],[R]:UQ,[z]:500},[B],[0]];H.registerError(x$,hX);var S$=[-3,V,uQ,{[I]:[`PolicyNotAttachable`,400],[R]:L,[z]:400},[B],[0]];H.registerError(S$,YY);var C$=[-3,V,vQ,{[I]:[`ReportGenerationLimitExceeded`,409],[R]:L,[z]:409},[B],[0]];H.registerError(C$,uX);var w$=[-3,V,xQ,{[R]:L,[z]:400},[WZ],[0]];H.registerError(w$,aX);var T$=[-3,V,SQ,{[I]:[`ServiceFailure`,500],[R]:UQ,[z]:500},[B],[0]];H.registerError(T$,UY);var E$=[-3,V,CQ,{[I]:[`NotSupportedService`,404],[R]:L,[z]:404},[B],[0]];H.registerError(E$,tX);var D$=[-3,V,AQ,{[I]:[`UnmodifiableEntity`,400],[R]:L,[z]:400},[B],[0]];H.registerError(D$,JY);var O$=[-3,V,NQ,{[I]:[`UnrecognizedPublicKeyEncoding`,400],[R]:L,[z]:400},[B],[0]];H.registerError(O$,mX);var k$=[KQ,H],A$=[0,V,zQ,8,0],j$=[3,V,wX,0,[MQ,TX,yQ,bQ,IX],[0,0,0,[()=>A$,0],4],4],M$=[3,V,EX,0,[MQ,TX,yQ,IX],[0,0,0,4]],N$=[3,V,kX,0,[rQ,nQ],[0,0]],P$=[3,V,OX,0,[lQ,eQ],[0,0]],F$=[3,V,MX,0,[MQ,eQ],[0,0],2],I$=[3,V,PX,0,[MQ],[0]],L$=[3,V,FX,0,[wX],[[()=>j$,0]],1],R$=[3,V,zX,0,[lQ,aQ,hQ,JX,TQ],[0,0,0,0,()=>h1],2],z$=[3,V,BX,0,[gQ],[()=>o1]],B$=[3,V,KX,0,[MQ,hQ,tQ,TQ],[0,0,0,()=>h1],1],V$=[3,V,qX,0,[PQ],[()=>u1]],H$=[3,V,XX,0,[TX,MQ],[0,0],1],U$=[3,V,$X,0,[eQ],[0],1],W$=[3,V,aZ,0,[MQ],[0],1],G$=[3,V,rZ,0,[MQ,eQ],[0,0],2],K$=[3,V,pZ,0,[eQ],[0],1],q$=[3,V,mZ,0,[gQ],[()=>o1]],J$=[3,V,gZ,0,[eQ,IQ],[0,0],2],Y$=[3,V,_Z,0,[mQ],[()=>s1]],X$=[3,V,yZ,0,[MQ],[0]],Z$=[3,V,bZ,0,[PQ],[()=>u1],1],Q$=[3,V,MZ,0,[MQ,JZ,KZ],[0,0,1]],$$=[3,V,NZ,0,[EX,DZ,JZ],[()=>f1,2,0],1],e1=[3,V,FZ,0,[MQ,fQ,JZ,KZ],[0,0,0,1],1],t1=[3,V,IZ,0,[AX,DZ,JZ],[()=>p1,2,0]],n1=[3,V,RZ,0,[wQ,XZ,fQ,pQ,JZ,KZ],[0,2,0,0,0,1]],r1=[3,V,zZ,0,[_Q,DZ,JZ],[()=>m1,2,0]],i1=[3,V,HZ,0,[fQ,JZ,KZ],[0,0,1]],a1=[3,V,UZ,0,[FQ,DZ,JZ],[()=>g1,2,0],1],o1=[3,V,gQ,0,[lQ,sQ,SX,hQ,oZ,CX,iQ,xZ,JX,IX,kQ,TQ],[0,0,0,0,0,1,1,2,0,4,4,()=>h1]],s1=[3,V,mQ,0,[sZ,IQ,wZ,IX],[0,0,2,4]],c1=[3,V,EQ,0,[kZ,LQ],[0,0],2],l1=[3,V,OQ,0,[TX,yQ,MQ],[0,0,0],2],u1=[3,V,PQ,0,[hQ,MQ,jQ,SX,IX,cQ,tQ,TQ],[0,0,0,0,4,4,()=>N$,()=>h1],5],d1=`unit`,f1=[1,V,RQ,0,()=>M$],p1=[1,V,BQ,0,()=>P$],m1=[1,V,VQ,0,()=>o1],h1=[1,V,WQ,0,()=>c1],g1=[1,V,GQ,0,()=>u1],_1=[9,V,jX,0,()=>F$,()=>d1],v1=[9,V,NX,0,()=>I$,()=>L$],y1=[9,V,VX,0,()=>R$,()=>z$],b1=[9,V,GX,0,()=>B$,()=>V$],x1=[9,V,YX,0,()=>H$,()=>d1],S1=[9,V,eZ,0,()=>U$,()=>d1],C1=[9,V,nZ,0,()=>W$,()=>d1],w1=[9,V,iZ,0,()=>G$,()=>d1],T1=[9,V,fZ,0,()=>K$,()=>q$],E1=[9,V,hZ,0,()=>J$,()=>Y$],D1=[9,V,vZ,0,()=>X$,()=>Z$],O1=[9,V,jZ,0,()=>Q$,()=>$$],k1=[9,V,PZ,0,()=>e1,()=>t1],A1=[9,V,BZ,0,()=>n1,()=>r1],j1=[9,V,VZ,0,()=>i1,()=>a1],M1=[9,V,DQ,0,()=>l1,()=>d1],N1=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??He,base64Encoder:e?.base64Encoder??Ue,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??BY,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??cY,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Na}],logger:e?.logger??new _a,protocol:e?.protocol??_o,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:k$,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??pt,utf8Decoder:e?.utf8Decoder??oe,utf8Encoder:e?.utf8Encoder??se}),P1=e=>{let t=$a(e),n=()=>t().then(ca),r=N1(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Za,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qa({serviceId:r.serviceId,clientVersion:fY.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Ya(`Region is missing`),requestHandler:Ze.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Hr),sha256:e?.sha256??l,streamCollector:e?.streamCollector??$e,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},F1=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},I1=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),L1=(e,t)=>{let n=Object.assign(Oz(e),ma(e),ue(e),F1(e));return t.forEach(e=>e.configure(n)),Object.assign(e,kz(n),ha(n),de(n),I1(n))},R1=class extends ta{config;constructor(...[e]){let t=P1(e||{});super(t),this.initConfig=t;let n=L1(lY(qi(ve(Oi(Yi(Xn(uY(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(Ci(this.config)),this.middlewareStack.use(Ea(this.config)),this.middlewareStack.use(Mi(this.config)),this.middlewareStack.use(xe(this.config)),this.middlewareStack.use(we(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:oY,identityProviderConfigProvider:async e=>new Gn({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Le(this.config))}destroy(){super.destroy()}};function z1(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&i.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var B1={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},V1=e=>({applyToStack:t=>{t.add(z1(e),B1)}}),H1={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},U1=H1.WHEN_SUPPORTED,W1={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},G1=H1.WHEN_SUPPORTED,K1;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(K1||={});var q1;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(q1||={});var J1=K1.CRC32,Y1=function(){function e(){this.crc32=new X1}return e.prototype.update=function(e){r(e)||this.crc32.update(ie(e))},e.prototype.digest=function(){return a(this,void 0,void 0,function(){return o(this,function(e){return[2,s(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new X1},e}(),X1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=ee(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^Z1[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),Z1=c([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]),Q1=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:p(t??U1),responseChecksumValidation:p(n??G1),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},$1=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,`region`,{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,`region`,{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},e0={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function t0(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var n0={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},r0=e=>({applyToStack:t=>{t.add(t0(e),n0),t.addRelativeTo($1(e),e0)}}),i0=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new a0(Promise.resolve(e)))})),t)):i.set(r,new a0(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},s0=`sigv4-s3express`,c0=`X-Amz-S3session-Token`,l0=c0.toLowerCase(),u0=class extends ne{async signWithCredentials(e,t,n){let r=d0(t);e.headers[l0]=t.sessionToken;let i=this;return f0(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=d0(t);return delete e.headers[l0],e.headers[c0]=t.sessionToken,e.query=e.query??{},e.query[c0]=t.sessionToken,f0(this,r),this.presign(e,n)}};function d0(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function f0(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}var p0=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,a=t.properties?.authSchemes?.[0]?.name===s0;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(di(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),a){let t=r.input.Bucket;if(t){let a=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=a,i.isInstance(r.request)&&a.sessionToken&&(r.request.headers[l0]=a.sessionToken)}}}return t(r)},m0={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},h0=e=>({applyToStack:t=>{t.add(p0(e),m0)}}),g0=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},_0=e=>e=>{throw e},v0=(e,t)=>{},y0=e=>(t,n)=>async r=>{if(!i.isInstance(r.request))return t(r);let a=ge(n).selectedHttpAuthScheme;if(!a)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:o={}},identity:s,signer:c}=a,l;l=n.s3ExpressIdentity?await g0(n.s3ExpressIdentity,o,r.request,await e.signer()):await c.sign(r.request,s,o);let u=await t({...r,request:l}).catch((c.errorHandler||_0)(o));return(c.successHandler||v0)(u.response,o),u},b0=e=>({applyToStack:t=>{t.addRelativeTo(y0(e),Ie)}}),x0=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new o0(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})};function S0(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var C0={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},w0=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!he.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await T0(s,e);if(a.body=S0(c),c.length===0&&C0[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},T0=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),E0={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},D0=e=>({applyToStack:t=>{t.addRelativeTo(w0(e),E0)}}),O0=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6;function k0(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var A0={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function j0({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!O0(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var M0={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},N0=e=>({applyToStack:t=>{t.add(j0(e),M0),t.addRelativeTo(k0(e),A0)}}),P0=class extends So{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=m.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}},F0=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),I0={CrtSignerV4:null},L0=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof I0.CrtSignerV4==`function`?`crt`:typeof _e.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new u0(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=I0.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=I0.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=I0.CrtSignerV4,t=_e.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},U=`ref`,W=`argv`,R0=`backend`,z0=`authSchemes`,B0=`disableDoubleEncoding`,V0=`signingName`,H0=`signingRegion`,U0=`signingRegionSet`,G=-1,K=!0,W0=!1,G0=`isSet`,K0=`booleanEquals`,q=`stringEquals`,q0=`coalesce`,J0=`substring`,J=``,Y0=`aws.partition`,X0=`partitionResult`,Z0=`accessPointSuffix`,Q0=`regionPrefix`,$0=e=>`outpostId_ssa_`+e+J,e2=`hardwareType`,t2=`ite`,n2=`isValidHostLabel`,r2=`sigv4`,i2=`aws.isVirtualHostableS3Bucket`,a2=`url`,o2=`getAttr`,s2=`bucketArn`,c2=`--`,l2=`arnType`,u2=`accesspoint`,d2=e=>`accessPointName_ssa_`+e+J,f2=`s3-object-lambda`,p2=`s3-outposts`,m2=`bucketPartition`,h2=`us-east-1`,g2=`outpostType`,_2=`name`,v2=`s3`,y2=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,b2=`{url#scheme}://{url#authority}{url#path}`,x2=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,S2=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,C2=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,w2=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,T2=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",E2=`sigv4a`,D2=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,O2=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k2=`https://s3.{partitionResult#dnsSuffix}`,A2={[U]:`UseFIPS`},j2={[U]:`UseDualStack`},M2={[U]:`Bucket`},N2={fn:o2,[W]:[{[U]:X0},_2]},P2={[U]:a2},F2={[U]:`Region`},I2={[U]:s2},L2={[U]:l2},R2={[U]:`accessPointName_ssa_1`},z2={fn:o2,[W]:[I2,`region`]},B2={[U]:e2},V2={fn:o2,[W]:[I2,`service`]},H2={fn:o2,[W]:[I2,`accountId`]},U2={[R0]:`S3Express`,[z0]:[{[B0]:!0,[_2]:`{_s3e_auth}`,[V0]:`s3express`,[H0]:`{Region}`}]},W2={[R0]:`S3Express`,[z0]:[{[B0]:!0,[_2]:r2,[V0]:`s3express`,[H0]:`{Region}`}]},G2={[z0]:[{[B0]:!0,[_2]:E2,[V0]:p2,[U0]:[`*`]},{[B0]:!0,[_2]:r2,[V0]:p2,[H0]:`{Region}`}]},K2={[z0]:[{[B0]:!0,[_2]:r2,[V0]:v2,[H0]:h2}]},Y={[z0]:[{[B0]:!0,[_2]:r2,[V0]:v2,[H0]:`{Region}`}]},q2={[z0]:[{[B0]:!0,[_2]:r2,[V0]:f2,[H0]:`{bucketArn#region}`}]},J2={[z0]:[{[B0]:!0,[_2]:r2,[V0]:v2,[H0]:`{bucketArn#region}`}]},Y2={[z0]:[{[B0]:!0,[_2]:E2,[V0]:p2,[U0]:[`*`]},{[B0]:!0,[_2]:r2,[V0]:p2,[H0]:`{bucketArn#region}`}]},X2={[z0]:[{[B0]:!0,[_2]:r2,[V0]:f2,[H0]:`{Region}`}]},Z2=[F2],Q2=[{[U]:`Endpoint`}],$2=[M2],e4=[M2,0,7,!0],t4=[I2,`resourceId[1]`],n4=[`*`],r4={conditions:[[G0,Z2],[K0,[{[U]:`Accelerate`},K]],[K0,[A2,K]],[K0,[j2,K]],[G0,Q2],[G0,$2],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,0,6,K]},J]},`--x-s3`]],[q,[{fn:q0,[W]:[{fn:J0,[W]:e4},J]},`--xa-s3`]],[Y0,Z2,X0],[J0,e4,Z0],[q,[{[U]:Z0},`--op-s3`]],[J0,[M2,8,12,K],Q0],[J0,[M2,32,49,K],$0(2)],[J0,[M2,49,50,K],e2],[K0,[{[U]:`ForcePathStyle`},K]],[q,[N2,`aws-cn`]],[t2,[j2,`.dualstack`,J],`_s3e_ds`],[n2,[{[U]:$0(2)},W0]],[t2,[A2,`-fips`,J],`_s3e_fips`],[t2,[{fn:q0,[W]:[{[U]:`DisableS3ExpressSessionAuth`},W0]},r2,`sigv4-s3express`],`_s3e_auth`],[i2,[M2,W0]],[`parseURL`,Q2,a2],[K0,[{fn:q0,[W]:[{[U]:`UseS3ExpressControlEndpoint`},W0]},K]],[i2,[M2,K]],[q,[{fn:o2,[W]:[P2,`scheme`]},`http`]],[n2,[F2,W0]],[`aws.parseArn`,$2,s2],[o2,[{fn:`split`,[W]:[M2,c2,0]},`[-2]`],`s3expressAvailabilityZoneId`],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,0,4,W0]},J]},`arn:`]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,16,18,K]},J]},c2]],[K0,[{fn:o2,[W]:[P2,`isIp`]},K]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,21,23,K]},J]},c2]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,27,29,K]},J]},c2]],[q,[{[U]:Q0},`beta`]],[`uriEncode`,$2,`uri_encoded_bucket`],[n2,[F2,K]],[K0,[{fn:q0,[W]:[{[U]:`UseObjectLambdaEndpoint`},W0]},K]],[o2,[I2,`resourceId[0]`],l2],[q,[L2,J]],[q,[L2,u2]],[o2,t4,d2(1)],[q,[R2,J]],[q,[z2,J]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,14,16,K]},J]},c2]],[q,[B2,`e`]],[q,[B2,`o`]],[q,[F2,`aws-global`]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,19,21,K]},J]},c2]],[q,[V2,f2]],[K0,[{fn:q0,[W]:[{[U]:`DisableAccessPoints`},W0]},K]],[q,[V2,p2]],[Y0,[z2],m2],[n2,[R2,K]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,26,28,K]},J]},c2]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,15,17,K]},J]},c2]],[o2,[I2,`resourceId[4]`]],[q,[{fn:q0,[W]:[{fn:J0,[W]:[M2,20,22,K]},J]},c2]],[K0,[{[U]:`UseGlobalEndpoint`},K]],[q,[F2,h2]],[o2,t4,$0(1)],[K0,[{fn:q0,[W]:[{[U]:`UseArnRegion`},K]},K]],[n2,[{[U]:$0(1)},W0]],[o2,[I2,`resourceId[2]`],g2],[q,[F2,z2]],[q,[{fn:o2,[W]:[{[U]:m2},_2]},N2]],[K0,[{[U]:`DisableMultiRegionAccessPoints`},K]],[n2,[z2,K]],[q,[{fn:o2,[W]:[I2,`partition`]},N2]],[q,[H2,J]],[q,[V2,v2]],[n2,[H2,W0]],[o2,[I2,`resourceId[3]`],d2(2)],[n2,[R2,W0]],[q,[{[U]:g2},u2]],[n2,[{[U]:d2(2)},W0]]],results:[[G],[G,`Accelerate cannot be used with FIPS`],[G,`Cannot set dual-stack in combination with a custom endpoint.`],[G,`A custom endpoint cannot be combined with FIPS`],[G,`A custom endpoint cannot be combined with S3 Accelerate`],[G,`Partition does not support FIPS`],[G,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,U2],[y2,U2],[G,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,W2],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,U2],[G,`Unrecognized S3Express bucket name format.`],[b2,U2],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,W2],[G,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,G2],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,G2],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,G2],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,G2],[G,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[G,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[G,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[G,"Custom endpoint `{Endpoint}` was not a valid URI"],[G,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,Y],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,Y],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,Y],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,Y],[x2,K2],[y2,K2],[x2,Y],[y2,Y],[S2,K2],[S2,Y],[C2,K2],[C2,Y],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,Y],[G,`Invalid region: region was not a valid DNS name.`],[G,`S3 Object Lambda does not support Dual-stack`],[G,`S3 Object Lambda does not support S3 Accelerate`],[G,`Access points are not supported for this operation`],[G,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[G,`Invalid ARN: Missing account id`],[w2(1),q2],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,q2],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,q2],[G,T2(1)],[G,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[G,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[G,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[G,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[G,`Invalid ARN: bucket ARN is missing a region`],[G,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[G,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[G,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,J2],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,J2],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,J2],[w2(1),J2],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,J2],[G,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[G,`S3 MRAP does not support dual-stack`],[G,`S3 MRAP does not support FIPS`],[G,`S3 MRAP does not support S3 Accelerate`],[G,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[z0]:[{[B0]:K,name:E2,[V0]:v2,[U0]:n4}]}],[G,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[G,`Invalid Access Point Name`],[G,`S3 Outposts does not support Dual-stack`],[G,`S3 Outposts does not support FIPS`],[G,`S3 Outposts does not support S3 Accelerate`],[G,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,Y2],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Y2],[G,T2(2)],[G,"Expected an outpost type `accesspoint`, found {outpostType}"],[G,`Invalid ARN: expected an access point name`],[G,`Invalid ARN: Expected a 4-component resource`],[G,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[G,`Invalid ARN: The Outpost Id was not set`],[G,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[G,`Invalid ARN: No ARN type specified`],[G,"Invalid ARN: `{Bucket}` was not a valid ARN"],[G,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,K2],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,Y],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,K2],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,Y],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,K2],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,Y],[D2,K2],[D2,Y],[O2,K2],[O2,Y],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,Y],[G,`Path-style addressing cannot be used with S3 Accelerate`],[b2,X2],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,X2],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,X2],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,Y],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,Y],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,K2],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,Y],[b2,K2],[b2,Y],[k2,K2],[k2,Y],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,Y],[G,`A region must be set when sending requests to S3.`]]},i4=2,X=1e8,a4=new Int32Array([-1,1,-1,0,3,X+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,X+115,16,10,13,18,11,13,19,12,13,22,X+14,13,35,14,X+42,36,X+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,X+86,38,X+86,29,39,47,30,48,X+58,31,50,32,X+85,51,33,136,55,X+76,34,59,35,X+84,60,39,36,61,37,X+83,62,38,146,63,41,X+46,61,40,X+83,62,41,150,64,42,X+54,66,43,X+53,70,44,X+52,71,45,X+81,73,46,X+80,74,X+78,X+79,40,48,X+57,41,X+57,49,42,185,50,48,62,51,49,X+45,52,51,53,526,60,56,54,62,X+55,55,63,57,X+46,62,X+55,57,64,58,X+54,66,59,X+53,69,60,X+65,70,61,X+52,72,X+64,X+51,49,X+45,63,51,64,526,60,67,65,62,X+55,66,63,68,X+46,62,X+55,68,64,69,X+54,66,70,X+53,68,X+47,71,70,72,X+52,72,X+50,X+51,25,74,X+42,46,X+39,75,57,76,X+41,58,X+40,X+41,26,X+88,78,28,X+87,79,34,82,80,35,81,545,36,X+103,X+115,46,X+97,83,57,84,X+99,58,X+98,X+99,5,101,86,8,87,X+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,X+14,95,35,96,X+42,36,X+103,X+42,22,X+13,98,35,99,X+42,36,X+101,100,46,X+110,X+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,X+23,26,107,502,37,108,X+86,38,X+86,109,39,112,110,48,X+58,111,50,136,X+85,40,113,X+57,41,X+57,114,42,115,500,48,X+56,116,52,117,X+72,65,X+69,X+72,21,501,X+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,X+23,23,128,129,24,189,129,26,130,197,37,131,X+86,38,X+86,132,39,159,133,48,X+58,134,50,135,X+85,51,141,136,55,X+76,137,59,138,X+84,60,X+83,139,61,140,X+83,63,X+83,X+46,55,X+76,142,59,143,X+84,60,148,144,61,145,X+83,62,147,146,63,150,X+46,63,153,X+46,61,149,X+83,62,153,150,64,151,X+54,66,152,X+53,70,X+82,X+52,64,154,X+54,66,155,X+53,70,156,X+52,71,157,X+81,73,158,X+80,74,X+77,X+79,40,160,X+57,41,X+57,161,42,185,162,48,174,163,49,X+45,164,51,165,526,60,168,166,62,X+55,167,63,169,X+46,62,X+55,169,64,170,X+54,66,171,X+53,69,172,X+65,70,173,X+52,72,X+63,X+51,49,X+45,175,51,176,526,60,179,177,62,X+55,178,63,180,X+46,62,X+55,180,64,181,X+54,66,182,X+53,68,X+47,183,70,184,X+52,72,X+48,X+51,48,X+56,186,52,187,X+72,65,X+69,188,67,X+70,X+71,25,X+36,X+42,21,191,X+23,25,192,X+42,30,194,193,46,X+34,X+36,46,X+33,X+35,21,196,X+23,26,X+88,197,28,X+87,198,34,201,199,35,200,545,36,X+101,X+115,46,X+95,X+96,17,203,X+22,20,204,X+21,21,205,550,33,206,550,44,X+16,207,45,X+18,X+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,X+9,20,217,227,21,231,X+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,X+12,19,226,224,20,225,X+9,21,X+9,X+12,20,230,227,21,228,X+9,30,229,X+9,34,X+7,X+9,21,231,415,30,232,X+8,34,X+7,X+8,4,X+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,X+86,38,X+86,248,39,249,518,40,250,X+57,41,X+57,251,42,538,252,48,X+43,253,49,X+45,254,51,255,526,60,258,256,62,X+55,257,63,259,X+46,62,X+55,259,64,260,X+54,66,261,X+53,69,262,X+65,70,263,X+52,72,X+62,X+51,25,265,X+42,46,X+31,X+32,26,X+88,267,28,X+87,268,34,269,544,46,X+93,X+94,8,397,X+9,8,407,X+9,3,346,273,4,X+3,274,5,284,275,8,276,X+115,15,X+5,277,16,278,281,18,279,281,19,280,281,22,X+14,281,35,282,X+42,36,X+102,283,46,X+106,X+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,X+86,38,X+86,291,39,292,307,40,293,X+57,41,X+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,X+5,302,20,337,303,26,304,341,37,305,X+86,38,X+86,306,39,309,307,48,X+58,308,50,X+74,X+85,40,310,X+57,41,X+57,311,42,335,312,48,324,313,49,X+45,314,51,315,526,60,318,316,62,X+55,317,63,319,X+46,62,X+55,319,64,320,X+54,66,321,X+53,69,322,X+65,70,323,X+52,72,X+61,X+51,49,X+45,325,51,326,526,60,329,327,62,X+55,328,63,330,X+46,62,X+55,330,64,331,X+54,66,332,X+53,68,X+47,333,70,334,X+52,72,X+49,X+51,48,X+56,336,52,X+67,X+72,25,338,X+42,46,X+27,X+28,15,X+5,340,26,X+88,341,28,X+87,342,34,345,343,35,344,545,36,X+102,X+115,46,X+91,X+92,4,X+2,347,5,357,348,8,349,X+115,15,X+5,350,16,351,354,18,352,354,19,353,354,22,X+14,354,35,355,X+42,36,X+43,356,46,X+104,X+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,X+5,367,20,387,368,26,369,391,37,370,X+86,38,X+86,371,39,372,518,40,373,X+57,41,X+57,374,42,538,375,48,X+43,376,49,X+45,377,51,378,526,60,381,379,62,X+55,380,63,382,X+46,62,X+55,382,64,383,X+54,66,384,X+53,69,385,X+65,70,386,X+52,72,X+60,X+51,25,388,X+42,46,X+25,X+26,15,X+5,390,26,X+88,391,28,X+87,392,34,393,544,46,X+89,X+90,15,X+5,547,8,396,X+9,15,X+5,397,16,398,410,18,399,410,19,400,410,20,401,X+9,27,402,X+12,29,X+11,403,31,X+11,404,32,X+11,422,8,406,X+9,15,X+5,407,16,408,410,18,409,410,19,411,410,20,X+12,X+9,20,414,412,22,413,X+9,34,X+10,X+9,22,416,415,27,419,X+12,27,418,417,34,X+10,X+12,34,X+10,419,43,X+11,420,47,X+11,421,53,X+11,422,54,X+11,423,56,X+11,X+12,2,X+1,425,3,478,426,4,X+4,427,5,438,428,8,429,X+115,16,430,433,18,431,433,19,432,433,22,X+14,433,35,434,X+42,36,X+44,435,46,X+112,436,57,437,X+114,58,X+113,X+114,6,X+6,439,7,X+6,440,8,450,441,14,501,442,26,443,502,37,444,X+86,38,X+86,445,39,446,465,40,447,X+57,41,X+57,448,42,471,449,48,X+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,X+42,46,X+37,X+38,20,540,461,26,462,474,37,463,X+86,38,X+86,464,39,467,465,48,X+58,466,50,X+75,X+85,40,468,X+57,41,X+57,469,42,471,470,48,X+44,524,48,X+44,472,52,X+68,X+72,26,X+88,474,28,X+87,475,34,X+100,476,35,477,545,36,X+44,X+115,4,X+2,479,5,488,480,8,481,X+115,16,482,485,18,483,485,19,484,485,22,X+14,485,35,486,X+42,36,X+43,487,46,X+108,X+109,6,X+6,489,7,X+6,490,8,503,491,14,501,492,26,493,502,37,494,X+86,38,X+86,495,39,496,518,40,497,X+57,41,X+57,498,42,538,499,48,X+43,500,49,X+45,526,26,X+88,502,28,X+87,X+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,X+42,46,X+29,X+30,20,540,514,26,515,542,37,516,X+86,38,X+86,517,39,520,518,48,X+58,519,50,X+73,X+85,40,521,X+57,41,X+57,522,42,538,523,48,X+43,524,49,X+45,525,51,529,526,60,X+55,527,62,X+55,528,63,X+55,X+46,60,532,530,62,X+55,531,63,533,X+46,62,X+55,533,64,534,X+54,66,535,X+53,69,536,X+65,70,537,X+52,72,X+59,X+51,48,X+43,539,52,X+66,X+72,25,X+24,X+42,26,X+88,542,28,X+87,543,34,X+100,544,35,546,545,36,X+42,X+115,36,X+43,X+115,17,548,X+22,20,549,X+21,33,552,550,44,X+17,551,45,X+19,X+20,44,X+15,553,45,X+15,X+20]),o4=Zn.from(a4,i4,r4.conditions,r4.results),s4=new Qn({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),c4=(e,t={})=>s4.get(e,()=>Ar(o4,{endpointParams:e,logger:t.logger}));nr.aws=zr;var l4=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=ge(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Ui(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:ge(t).operation,region:await p(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function u4(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function d4(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var f4=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(L0.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(c4,e=>{let t=[];switch(e.operation){default:t.push(u4(e)),t.push(d4(e))}return t},{"aws.auth#sigv4":u4,"aws.auth#sigv4a":d4}),p4=e=>{let t=Ia(La(e));return Object.assign(t,{authSchemePreference:p(e.authSchemePreference??[])})},m4=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??{}}),h4={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`}},g4=class e extends oa{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},_4=class e extends g4{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},v4=class e extends g4{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},y4=class e extends g4{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},b4=class e extends g4{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},x4=class e extends g4{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},S4=class e extends g4{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},C4=class e extends g4{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},w4=class e extends g4{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},T4=class e extends g4{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},E4=class e extends g4{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},D4=class e extends g4{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},O4=class e extends g4{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},k4=class e extends g4{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},A4=class e extends g4{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},j4=class e extends g4{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},M4=`ACL`,N4=`AccessDenied`,P4=`AbortDate`,F4=`AccessKeyId`,I4=`AbortMultipartUpload`,L4=`AbortMultipartUploadOutput`,R4=`AbortMultipartUploadRequest`,z4=`AcceptRanges`,B4=`AbortRuleId`,V4=`AccessTier`,H4=`Bucket`,U4=`BucketArn`,W4=`BucketAlreadyExists`,G4=`BucketAlreadyOwnedByYou`,K4=`BypassGovernanceRetention`,q4=`BucketInfo`,J4=`BucketKeyEnabled`,Y4=`BucketNamespace`,X4=`BucketRegion`,Z4=`Body`,Q4=`Buckets`,$4=`ChecksumAlgorithm`,e3=`CreateBucket`,t3=`CreateBucketConfiguration`,n3=`CreateBucketOutput`,r3=`CreateBucketRequest`,i3=`CacheControl`,a3=`ChecksumCRC32`,o3=`ChecksumCRC32C`,s3=`ChecksumCRC64NVME`,c3=`Cache-Control`,l3=`CreationDate`,u3=`Content-Disposition`,d3=`ContentDisposition`,f3=`Content-Encoding`,p3=`ContentEncoding`,m3=`ContentLanguage`,h3=`Content-Language`,g3=`Content-Length`,_3=`ContentLength`,v3=`Content-MD5`,y3=`ChecksumMD5`,b3=`ContentMD5`,x3=`CompletedMultipartUpload`,S3=`CompleteMultipartUploadOutput`,C3=`CreateMultipartUploadOutput`,w3=`CompleteMultipartUploadResult`,T3=`CompleteMultipartUploadRequest`,E3=`CreateMultipartUploadRequest`,D3=`CompleteMultipartUpload`,O3=`CreateMultipartUpload`,k3=`ChecksumMode`,A3=`CommonPrefix`,j3=`CommonPrefixList`,M3=`CompletedPartList`,N3=`CompletedPart`,P3=`CommonPrefixes`,F3=`ContentRange`,I3=`Content-Range`,L3=`ChecksumSHA1`,R3=`ChecksumSHA256`,z3=`ChecksumSHA512`,B3=`CreateSessionOutput`,V3=`CreateSessionResult`,H3=`CreateSessionRequest`,U3=`CreateSession`,W3=`ChecksumType`,G3=`Content-Type`,K3=`ContentType`,q3=`ContinuationToken`,J3=`ChecksumXXHASH64`,Y3=`ChecksumXXHASH3`,X3=`ChecksumXXHASH128`,Z3=`Contents`,Q3=`Credentials`,$3=`DeleteMarker`,e6=`DisplayName`,t6=`DeleteObjectOutput`,n6=`DeleteObjectRequest`,r6=`DeleteObject`,i6=`DataRedundancy`,a6=`Delimiter`,o6=`Expiration`,s6=`ExpectedBucketOwner`,c6=`ExpiresString`,l6=`EncryptionTypeMismatch`,u6=`ETag`,d6=`EncodingType`,f6=`Expires`,p6=`FetchOwner`,m6=`GrantFullControl`,h6=`GetObject`,g6=`GetObjectOutput`,_6=`GetObjectRequest`,v6=`GrantRead`,y6=`GrantReadACP`,b6=`GrantWrite`,x6=`GrantWriteACP`,S6=`ID`,C6=`IfMatch`,w6=`IfMatchInitiatedTime`,T6=`IfMatchLastModifiedTime`,E6=`IfMatchSize`,D6=`If-Modified-Since`,O6=`IfModifiedSince`,k6=`InitiateMultipartUploadResult`,A6=`If-Match`,j6=`IfNoneMatch`,M6=`If-None-Match`,N6=`InvalidObjectState`,P6=`IdempotencyParameterMismatch`,F6=`InvalidRequest`,I6=`IsRestoreInProgress`,L6=`IsTruncated`,R6=`IfUnmodifiedSince`,z6=`If-Unmodified-Since`,B6=`InvalidWriteOffset`,V6=`Key`,H6=`KeyCount`,U6=`Location`,W6=`ListAllMyBucketsResult`,G6=`ListBuckets`,K6=`ListBucketsOutput`,q6=`ListBucketsRequest`,J6=`ListBucketResult`,Y6=`LocationConstraint`,X6=`LocationInfo`,Z6=`LastModified`,Q6=`Last-Modified`,$6=`ListObjectsV2`,e8=`ListObjectsV2Output`,t8=`ListObjectsV2Request`,n8=`Metadata`,r8=`MaxBuckets`,i8=`MFA`,a8=`MaxKeys`,o8=`MissingMeta`,s8=`MpuObjectSize`,c8=`MultipartUpload`,l8=`Name`,u8=`NextContinuationToken`,d8=`NotFound`,f8=`NoSuchBucket`,p8=`NoSuchKey`,m8=`NoSuchUpload`,h8=`Owner`,g8=`ObjectAlreadyInActiveTierError`,_8=`ObjectLockEnabledForBucket`,v8=`ObjectLockLegalHoldStatus`,y8=`ObjectLockMode`,b8=`ObjectLockRetainUntilDate`,x8=`ObjectList`,S8=`ObjectNotInActiveTierError`,C8=`ObjectOwnership`,w8=`OptionalObjectAttributes`,T8=`Object`,E8=`Prefix`,D8=`PartsCount`,O8=`PartNumber`,k8=`PutObject`,A8=`PutObjectOutput`,j8=`PutObjectRequest`,M8=`PutObjectTagging`,N8=`PutObjectTaggingOutput`,P8=`PutObjectTaggingRequest`,F8=`Parts`,I8=`Part`,L8=`RequestCharged`,R8=`ResponseCacheControl`,z8=`ResponseContentDisposition`,B8=`ResponseContentEncoding`,V8=`ResponseContentLanguage`,H8=`ResponseContentType`,U8=`ResponseExpires`,W8=`RestoreExpiryDate`,G8=`RequestPayer`,K8=`ReplicationStatus`,q8=`RestoreStatus`,J8=`Range`,Y8=`Restore`,X8=`StartAfter`,Z8=`SecretAccessKey`,Q8=`StreamingBlob`,$8=`StorageClass`,e5=`SessionCredentialValue`,t5=`SessionCredentials`,n5=`SessionMode`,r5=`ServerSideEncryption`,i5=`SSECustomerAlgorithm`,a5=`SSECustomerKey`,o5=`SSECustomerKeyMD5`,s5=`SSEKMSEncryptionContext`,c5=`SSEKMSKeyId`,l5=`SessionToken`,u5=`Size`,d5=`Tags`,f5=`TagCount`,p5=`TooManyParts`,m5=`TagSet`,h5=`Tag`,g5=`Tagging`,_5=`Type`,v5=`UploadId`,y5=`UploadPart`,b5=`UploadPartOutput`,x5=`UploadPartRequest`,S5=`Value`,C5=`VersionId`,w5=`WriteOffsetBytes`,T5=`WebsiteRedirectLocation`,E5=`accept-ranges`,D5=`bucket-region`,O5=`client`,k5=`continuation-token`,A5=`delimiter`,j5=`error`,M5=`encoding-type`,N5=`fetch-owner`,P5=`http`,F5=`httpChecksum`,I5=`httpError`,Z=`httpHeader`,L5=`httpPayload`,R5=`httpPrefixHeaders`,Q=`httpQuery`,z5=`max-buckets`,B5=`max-keys`,V5=`prefix`,H5=`partNumber`,U5=`response-cache-control`,W5=`response-content-disposition`,G5=`response-content-encoding`,K5=`response-content-language`,q5=`response-content-type`,J5=`response-expires`,Y5=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,X5=`start-after`,Z5=`streaming`,Q5=`uploadId`,$5=`versionId`,e7=`xmlFlattened`,t7=`xmlName`,n7=`x-amz-acl`,r7=`x-amz-abort-date`,i7=`x-amz-abort-rule-id`,a7=`x-amz-bucket-arn`,o7=`x-amz-bypass-governance-retention`,s7=`x-amz-bucket-namespace`,c7=`x-amz-bucket-object-lock-enabled`,l7=`x-amz-checksum-algorithm`,u7=`x-amz-checksum-crc32`,d7=`x-amz-checksum-crc32c`,f7=`x-amz-checksum-crc64nvme`,p7=`x-amz-checksum-md5`,m7=`x-amz-checksum-mode`,h7=`x-amz-checksum-sha1`,g7=`x-amz-checksum-sha256`,_7=`x-amz-checksum-sha512`,v7=`x-amz-create-session-mode`,y7=`x-amz-checksum-type`,b7=`x-amz-checksum-xxhash64`,x7=`x-amz-checksum-xxhash3`,S7=`x-amz-checksum-xxhash128`,C7=`x-amz-delete-marker`,w7=`x-amz-expiration`,T7=`x-amz-expected-bucket-owner`,E7=`x-amz-grant-full-control`,D7=`x-amz-grant-read`,O7=`x-amz-grant-read-acp`,k7=`x-amz-grant-write`,A7=`x-amz-grant-write-acp`,j7=`x-amz-if-match-initiated-time`,M7=`x-amz-if-match-last-modified-time`,N7=`x-amz-if-match-size`,P7=`x-amz-meta-`,F7=`x-amz-mfa`,I7=`x-amz-missing-meta`,L7=`x-amz-mp-object-size`,R7=`x-amz-mp-parts-count`,z7=`x-amz-object-lock-legal-hold`,B7=`x-amz-object-lock-mode`,V7=`x-amz-object-lock-retain-until-date`,H7=`x-amz-object-ownership`,U7=`x-amz-optional-object-attributes`,W7=`x-amz-object-size`,G7=`x-amz-restore`,K7=`x-amz-request-charged`,q7=`x-amz-request-payer`,J7=`x-amz-replication-status`,Y7=`x-amz-storage-class`,X7=`x-amz-sdk-checksum-algorithm`,Z7=`x-amz-server-side-encryption`,Q7=`x-amz-server-side-encryption-aws-kms-key-id`,$7=`x-amz-server-side-encryption-bucket-key-enabled`,e9=`x-amz-server-side-encryption-context`,t9=`x-amz-server-side-encryption-customer-algorithm`,n9=`x-amz-server-side-encryption-customer-key`,r9=`x-amz-server-side-encryption-customer-key-MD5`,i9=`x-amz-tagging`,a9=`x-amz-tagging-count`,o9=`x-amz-version-id`,s9=`x-amz-write-offset-bytes`,c9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,l9=Dt.for(Y5),u9=[-3,Y5,`S3ServiceException`,0,[],[]];l9.registerError(u9,g4);var d9=Dt.for($),f9=[-3,$,N4,{[j5]:O5,[I5]:403},[],[]];d9.registerError(f9,v4);var p9=[-3,$,W4,{[j5]:O5,[I5]:409},[],[]];d9.registerError(p9,b4);var m9=[-3,$,G4,{[j5]:O5,[I5]:409},[],[]];d9.registerError(m9,x4);var h9=[-3,$,l6,{[j5]:O5,[I5]:400},[],[]];d9.registerError(h9,E4);var g9=[-3,$,P6,{[j5]:O5,[I5]:400},[],[]];d9.registerError(g9,A4);var _9=[-3,$,N6,{[j5]:O5,[I5]:403},[$8,V4],[0,0]];d9.registerError(_9,C4);var v9=[-3,$,F6,{[j5]:O5,[I5]:400},[],[]];d9.registerError(v9,D4);var y9=[-3,$,B6,{[j5]:O5,[I5]:400},[],[]];d9.registerError(y9,O4);var b9=[-3,$,f8,{[j5]:O5,[I5]:404},[],[]];d9.registerError(b9,S4);var x9=[-3,$,p8,{[j5]:O5,[I5]:404},[],[]];d9.registerError(x9,w4);var S9=[-3,$,m8,{[j5]:O5,[I5]:404},[],[]];d9.registerError(S9,_4);var C9=[-3,$,d8,{[j5]:O5},[],[]];d9.registerError(C9,T4);var w9=[-3,$,g8,{[j5]:O5,[I5]:403},[],[]];d9.registerError(w9,j4);var T9=[-3,$,S8,{[j5]:O5,[I5]:403},[],[]];d9.registerError(T9,y4);var kee=[-3,$,p5,{[j5]:O5,[I5]:400},[],[]];d9.registerError(kee,k4);var Aee=[l9,d9],E9=[0,$,e5,8,0],D9=[0,$,a5,8,0],O9=[0,$,s5,8,0],k9=[0,$,c5,8,0],A9=[0,$,Q8,{[Z5]:1},42],jee=[3,$,L4,0,[L8],[[0,{[Z]:K7}]]],Mee=[3,$,R4,0,[H4,V6,v5,G8,s6,w6],[[0,1],[0,1],[0,{[Q]:Q5}],[0,{[Z]:q7}],[0,{[Z]:T7}],[6,{[Z]:j7}]],3],Nee=[3,$,H4,0,[l8,l3,X4,U4],[0,4,0,0]],Pee=[3,$,q4,0,[i6,_5],[0,0]],Fee=[3,$,A3,0,[E8],[0]],Iee=[3,$,x3,0,[F8],[[()=>hte,{[e7]:1,[t7]:I8}]]],Lee=[3,$,N3,0,[u6,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,O8],[0,0,0,0,0,0,0,0,0,0,0,1]],Ree=[3,$,S3,{[t7]:w3},[U6,H4,V6,o6,u6,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,W3,r5,C5,c5,J4,L8],[0,0,0,[0,{[Z]:w7}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:Z7}],[0,{[Z]:o9}],[()=>k9,{[Z]:Q7}],[2,{[Z]:$7}],[0,{[Z]:K7}]]],zee=[3,$,T3,0,[H4,V6,v5,c8,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,W3,s8,G8,s6,C6,j6,i5,a5,o5],[[0,1],[0,1],[0,{[Q]:Q5}],[()=>Iee,{[L5]:1,[t7]:D3}],[0,{[Z]:u7}],[0,{[Z]:d7}],[0,{[Z]:f7}],[0,{[Z]:h7}],[0,{[Z]:g7}],[0,{[Z]:_7}],[0,{[Z]:p7}],[0,{[Z]:b7}],[0,{[Z]:x7}],[0,{[Z]:S7}],[0,{[Z]:y7}],[1,{[Z]:L7}],[0,{[Z]:q7}],[0,{[Z]:T7}],[0,{[Z]:A6}],[0,{[Z]:M6}],[0,{[Z]:t9}],[()=>D9,{[Z]:n9}],[0,{[Z]:r9}]],3],Bee=[3,$,t3,0,[Y6,U6,H4,d5],[0,()=>tte,()=>Pee,[()=>M9,0]]],Vee=[3,$,n3,0,[U6,U4],[[0,{[Z]:U6}],[0,{[Z]:a7}]]],Hee=[3,$,r3,0,[H4,M4,t3,m6,v6,y6,b6,x6,_8,C8,Y4],[[0,1],[0,{[Z]:n7}],[()=>Bee,{[L5]:1,[t7]:t3}],[0,{[Z]:E7}],[0,{[Z]:D7}],[0,{[Z]:O7}],[0,{[Z]:k7}],[0,{[Z]:A7}],[2,{[Z]:c7}],[0,{[Z]:H7}],[0,{[Z]:s7}]],1],Uee=[3,$,C3,{[t7]:k6},[P4,B4,H4,V6,v5,r5,i5,o5,c5,s5,J4,L8,$4,W3],[[4,{[Z]:r7}],[0,{[Z]:i7}],[0,{[t7]:H4}],0,0,[0,{[Z]:Z7}],[0,{[Z]:t9}],[0,{[Z]:r9}],[()=>k9,{[Z]:Q7}],[()=>O9,{[Z]:e9}],[2,{[Z]:$7}],[0,{[Z]:K7}],[0,{[Z]:l7}],[0,{[Z]:y7}]]],Wee=[3,$,E3,0,[H4,V6,M4,i3,d3,p3,m3,K3,f6,m6,v6,y6,x6,n8,r5,$8,T5,i5,a5,o5,c5,s5,J4,G8,g5,y8,b8,v8,s6,$4,W3],[[0,1],[0,1],[0,{[Z]:n7}],[0,{[Z]:c3}],[0,{[Z]:u3}],[0,{[Z]:f3}],[0,{[Z]:h3}],[0,{[Z]:G3}],[4,{[Z]:f6}],[0,{[Z]:E7}],[0,{[Z]:D7}],[0,{[Z]:O7}],[0,{[Z]:A7}],[128,{[R5]:P7}],[0,{[Z]:Z7}],[0,{[Z]:Y7}],[0,{[Z]:c9}],[0,{[Z]:t9}],[()=>D9,{[Z]:n9}],[0,{[Z]:r9}],[()=>k9,{[Z]:Q7}],[()=>O9,{[Z]:e9}],[2,{[Z]:$7}],[0,{[Z]:q7}],[0,{[Z]:i9}],[0,{[Z]:B7}],[5,{[Z]:V7}],[0,{[Z]:z7}],[0,{[Z]:T7}],[0,{[Z]:l7}],[0,{[Z]:y7}]],2],Gee=[3,$,B3,{[t7]:V3},[Q3,r5,c5,s5,J4],[[()=>cte,{[t7]:Q3}],[0,{[Z]:Z7}],[()=>k9,{[Z]:Q7}],[()=>O9,{[Z]:e9}],[2,{[Z]:$7}]],1],Kee=[3,$,H3,0,[H4,n5,r5,c5,s5,J4],[[0,1],[0,{[Z]:v7}],[0,{[Z]:Z7}],[()=>k9,{[Z]:Q7}],[()=>O9,{[Z]:e9}],[2,{[Z]:$7}]],1],qee=[3,$,t6,0,[$3,C5,L8],[[2,{[Z]:C7}],[0,{[Z]:o9}],[0,{[Z]:K7}]]],Jee=[3,$,n6,0,[H4,V6,i8,C5,G8,K4,s6,C6,T6,E6],[[0,1],[0,1],[0,{[Z]:F7}],[0,{[Q]:$5}],[0,{[Z]:q7}],[2,{[Z]:o7}],[0,{[Z]:T7}],[0,{[Z]:A6}],[6,{[Z]:M7}],[1,{[Z]:N7}]],2],Yee=[3,$,g6,0,[Z4,$3,z4,o6,Y8,Z6,_3,u6,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,W3,o8,C5,i3,d3,p3,m3,F3,K3,f6,c6,T5,r5,n8,i5,o5,c5,J4,$8,L8,K8,D8,f5,y8,b8,v8],[[()=>A9,16],[2,{[Z]:C7}],[0,{[Z]:E5}],[0,{[Z]:w7}],[0,{[Z]:G7}],[4,{[Z]:Q6}],[1,{[Z]:g3}],[0,{[Z]:u6}],[0,{[Z]:u7}],[0,{[Z]:d7}],[0,{[Z]:f7}],[0,{[Z]:h7}],[0,{[Z]:g7}],[0,{[Z]:_7}],[0,{[Z]:p7}],[0,{[Z]:b7}],[0,{[Z]:x7}],[0,{[Z]:S7}],[0,{[Z]:y7}],[1,{[Z]:I7}],[0,{[Z]:o9}],[0,{[Z]:c3}],[0,{[Z]:u3}],[0,{[Z]:f3}],[0,{[Z]:h3}],[0,{[Z]:I3}],[0,{[Z]:G3}],[4,{[Z]:f6}],[0,{[Z]:c6}],[0,{[Z]:c9}],[0,{[Z]:Z7}],[128,{[R5]:P7}],[0,{[Z]:t9}],[0,{[Z]:r9}],[()=>k9,{[Z]:Q7}],[2,{[Z]:$7}],[0,{[Z]:Y7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[1,{[Z]:R7}],[1,{[Z]:a9}],[0,{[Z]:B7}],[5,{[Z]:V7}],[0,{[Z]:z7}]]],Xee=[3,$,_6,0,[H4,V6,C6,O6,j6,R6,J8,R8,z8,B8,V8,H8,U8,C5,i5,a5,o5,G8,O8,s6,k3],[[0,1],[0,1],[0,{[Z]:A6}],[4,{[Z]:D6}],[0,{[Z]:M6}],[4,{[Z]:z6}],[0,{[Z]:J8}],[0,{[Q]:U5}],[0,{[Q]:W5}],[0,{[Q]:G5}],[0,{[Q]:K5}],[0,{[Q]:q5}],[6,{[Q]:J5}],[0,{[Q]:$5}],[0,{[Z]:t9}],[()=>D9,{[Z]:n9}],[0,{[Z]:r9}],[0,{[Z]:q7}],[1,{[Q]:H5}],[0,{[Z]:T7}],[0,{[Z]:m7}]],2],Zee=[3,$,K6,{[t7]:W6},[Q4,h8,q3,E8],[[()=>pte,0],()=>j9,0,0]],Qee=[3,$,q6,0,[r8,q3,E8,X4],[[1,{[Q]:z5}],[0,{[Q]:k5}],[0,{[Q]:V5}],[0,{[Q]:D5}]]],$ee=[3,$,e8,{[t7]:J6},[L6,Z3,l8,E8,a6,a8,P3,d6,H6,q3,u8,X8,L8],[2,[()=>gte,{[e7]:1}],0,0,0,1,[()=>mte,{[e7]:1}],0,1,0,0,0,[0,{[Z]:K7}]]],ete=[3,$,t8,0,[H4,a6,d6,a8,E8,q3,p6,X8,G8,s6,w8],[[0,1],[0,{[Q]:A5}],[0,{[Q]:M5}],[1,{[Q]:B5}],[0,{[Q]:V5}],[0,{[Q]:k5}],[2,{[Q]:N5}],[0,{[Q]:X5}],[0,{[Z]:q7}],[0,{[Z]:T7}],[64,{[Z]:U7}]],1],tte=[3,$,X6,0,[_5,l8],[0,0]],nte=[3,$,T8,0,[V6,Z6,u6,$4,W3,u5,$8,h8,q8],[0,4,0,[64,{[e7]:1}],0,1,0,()=>j9,()=>ste]],j9=[3,$,h8,0,[e6,S6],[0,0]],rte=[3,$,A8,0,[o6,u6,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,W3,r5,C5,i5,o5,c5,s5,J4,u5,L8],[[0,{[Z]:w7}],[0,{[Z]:u6}],[0,{[Z]:u7}],[0,{[Z]:d7}],[0,{[Z]:f7}],[0,{[Z]:h7}],[0,{[Z]:g7}],[0,{[Z]:_7}],[0,{[Z]:p7}],[0,{[Z]:b7}],[0,{[Z]:x7}],[0,{[Z]:S7}],[0,{[Z]:y7}],[0,{[Z]:Z7}],[0,{[Z]:o9}],[0,{[Z]:t9}],[0,{[Z]:r9}],[()=>k9,{[Z]:Q7}],[()=>O9,{[Z]:e9}],[2,{[Z]:$7}],[1,{[Z]:W7}],[0,{[Z]:K7}]]],ite=[3,$,j8,0,[H4,V6,M4,Z4,i3,d3,p3,m3,_3,b3,K3,$4,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,f6,C6,j6,m6,v6,y6,x6,w5,n8,r5,$8,T5,i5,a5,o5,c5,s5,J4,G8,g5,y8,b8,v8,s6],[[0,1],[0,1],[0,{[Z]:n7}],[()=>A9,16],[0,{[Z]:c3}],[0,{[Z]:u3}],[0,{[Z]:f3}],[0,{[Z]:h3}],[1,{[Z]:g3}],[0,{[Z]:v3}],[0,{[Z]:G3}],[0,{[Z]:X7}],[0,{[Z]:u7}],[0,{[Z]:d7}],[0,{[Z]:f7}],[0,{[Z]:h7}],[0,{[Z]:g7}],[0,{[Z]:_7}],[0,{[Z]:p7}],[0,{[Z]:b7}],[0,{[Z]:x7}],[0,{[Z]:S7}],[4,{[Z]:f6}],[0,{[Z]:A6}],[0,{[Z]:M6}],[0,{[Z]:E7}],[0,{[Z]:D7}],[0,{[Z]:O7}],[0,{[Z]:A7}],[1,{[Z]:s9}],[128,{[R5]:P7}],[0,{[Z]:Z7}],[0,{[Z]:Y7}],[0,{[Z]:c9}],[0,{[Z]:t9}],[()=>D9,{[Z]:n9}],[0,{[Z]:r9}],[()=>k9,{[Z]:Q7}],[()=>O9,{[Z]:e9}],[2,{[Z]:$7}],[0,{[Z]:q7}],[0,{[Z]:i9}],[0,{[Z]:B7}],[5,{[Z]:V7}],[0,{[Z]:z7}],[0,{[Z]:T7}]],2],ate=[3,$,N8,0,[C5],[[0,{[Z]:o9}]]],ote=[3,$,P8,0,[H4,V6,g5,C5,b3,$4,s6,G8],[[0,1],[0,1],[()=>ute,{[L5]:1,[t7]:g5}],[0,{[Q]:$5}],[0,{[Z]:v3}],[0,{[Z]:X7}],[0,{[Z]:T7}],[0,{[Z]:q7}]],3],ste=[3,$,q8,0,[I6,W8],[2,4]],cte=[3,$,t5,0,[F4,Z8,l5,o6],[[0,{[t7]:F4}],[()=>E9,{[t7]:Z8}],[()=>E9,{[t7]:l5}],[4,{[t7]:o6}]],4],lte=[3,$,h5,0,[V6,S5],[0,0],2],ute=[3,$,g5,0,[m5],[[()=>M9,0]],1],dte=[3,$,b5,0,[r5,u6,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,i5,o5,c5,J4,L8],[[0,{[Z]:Z7}],[0,{[Z]:u6}],[0,{[Z]:u7}],[0,{[Z]:d7}],[0,{[Z]:f7}],[0,{[Z]:h7}],[0,{[Z]:g7}],[0,{[Z]:_7}],[0,{[Z]:p7}],[0,{[Z]:b7}],[0,{[Z]:x7}],[0,{[Z]:S7}],[0,{[Z]:t9}],[0,{[Z]:r9}],[()=>k9,{[Z]:Q7}],[2,{[Z]:$7}],[0,{[Z]:K7}]]],fte=[3,$,x5,0,[H4,V6,O8,v5,Z4,_3,b3,$4,a3,o3,s3,L3,R3,z3,y3,J3,Y3,X3,i5,a5,o5,G8,s6],[[0,1],[0,1],[1,{[Q]:H5}],[0,{[Q]:Q5}],[()=>A9,16],[1,{[Z]:g3}],[0,{[Z]:v3}],[0,{[Z]:X7}],[0,{[Z]:u7}],[0,{[Z]:d7}],[0,{[Z]:f7}],[0,{[Z]:h7}],[0,{[Z]:g7}],[0,{[Z]:_7}],[0,{[Z]:p7}],[0,{[Z]:b7}],[0,{[Z]:x7}],[0,{[Z]:S7}],[0,{[Z]:t9}],[()=>D9,{[Z]:n9}],[0,{[Z]:r9}],[0,{[Z]:q7}],[0,{[Z]:T7}]],4],pte=[1,$,Q4,0,[()=>Nee,{[t7]:H4}]],mte=[1,$,j3,0,()=>Fee],hte=[1,$,M3,0,()=>Lee],gte=[1,$,x8,0,[()=>nte,0]],M9=[1,$,m5,0,[()=>lte,{[t7]:h5}]],_te=[9,$,I4,{[P5]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>Mee,()=>jee],vte=[9,$,D3,{[P5]:[`POST`,`/{Key+}`,200]},()=>zee,()=>Ree],yte=[9,$,e3,{[P5]:[`PUT`,`/`,200]},()=>Hee,()=>Vee],bte=[9,$,O3,{[P5]:[`POST`,`/{Key+}?uploads`,200]},()=>Wee,()=>Uee],xte=[9,$,U3,{[P5]:[`GET`,`/?session`,200]},()=>Kee,()=>Gee],Ste=[9,$,r6,{[P5]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>Jee,()=>qee],Cte=[9,$,h6,{[F5]:`-`,[P5]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>Xee,()=>Yee],wte=[9,$,G6,{[P5]:[`GET`,`/?x-id=ListBuckets`,200]},()=>Qee,()=>Zee],Tte=[9,$,$6,{[P5]:[`GET`,`/?list-type=2`,200]},()=>ete,()=>$ee],Ete=[9,$,k8,{[F5]:`-`,[P5]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>ite,()=>rte],Dte=[9,$,M8,{[F5]:`-`,[P5]:[`PUT`,`/{Key+}?tagging`,200]},()=>ote,()=>ate],Ote=[9,$,y5,{[F5]:`-`,[P5]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>fte,()=>dte],kte=class extends ia.classBuilder().ep({...h4,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[Ki(n,e.getEndpointParameterInstructions()),D0(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(xte).build(){},Ate={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.10`,"@aws-sdk/middleware-expect-continue":`^3.972.10`,"@aws-sdk/middleware-flexible-checksums":`^3.974.16`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-location-constraint":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-s3":`^3.972.37`,"@aws-sdk/middleware-ssec":`^3.972.10`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/signature-v4-multi-region":`^3.996.25`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/eventstream-serde-browser":`^4.2.14`,"@smithy/eventstream-serde-config-resolver":`^4.3.14`,"@smithy/eventstream-serde-node":`^4.2.14`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-blob-browser":`^4.2.15`,"@smithy/hash-node":`^4.2.14`,"@smithy/hash-stream-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/md5-js":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-stream":`^4.5.25`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1045.0`,"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function N9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var P9={name:`SHA-1`},F9={name:`HMAC`,hash:P9},jte=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),Mte=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){u().crypto.subtle.importKey(`raw`,I9(e),F9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!N9(e)){var t=I9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return u().crypto.subtle.sign(F9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):N9(this.toHash)?Promise.resolve(jte):Promise.resolve().then(function(){return u().crypto.subtle.digest(P9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function I9(e){return typeof e==`string`?ae(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Nte=function(){function e(e){if(re(u()))this.hash=new Mte(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(ie(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),L9=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&R9(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&R9(e),parseInt(te(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function R9(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Pte=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(L9.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Wte.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(f(e.value.replace(/\-/g,``)),1),u}}parse(e){let t={},n=0;for(;n{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),nne=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})},rne=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new ene({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=ine(e)?tne(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream==`function`?nne(n):n}},ine=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,ane=e=>new rne(e);async function one(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},cne=[1732584193,4023233417,2562383102,271733878],lne=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(une(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=dne(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=W9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=W9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=W9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=W9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=W9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=W9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=W9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=W9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=W9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=W9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=W9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=W9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=W9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=W9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=W9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=W9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=G9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=G9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=G9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=G9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=G9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=G9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=G9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=G9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=G9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=G9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=G9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=G9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=G9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=G9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=G9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=G9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=K9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=K9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=K9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=K9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=K9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=K9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=K9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=K9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=K9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=K9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=K9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=K9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=K9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=K9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=K9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=K9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=q9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=q9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=q9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=q9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=q9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=q9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=q9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=q9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=q9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=q9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=q9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=q9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=q9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=q9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=q9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=q9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(cne),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function U9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function W9(e,t,n,r,i,a,o){return U9(t&n|~t&r,e,t,i,a,o)}function G9(e,t,n,r,i,a,o){return U9(t&r|n&~r,e,t,i,a,o)}function K9(e,t,n,r,i,a,o){return U9(t^n^r,e,t,i,a,o)}function q9(e,t,n,r,i,a,o){return U9(n^(t|~r),e,t,i,a,o)}function une(e){return typeof e==`string`?e.length===0:e.byteLength===0}function dne(e){return typeof e==`string`?oe(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var fne=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??He,base64Encoder:e?.base64Encoder??Ue,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??c4,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??Ke,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??f4,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Na},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Pa}],logger:e?.logger??new _a,protocol:e?.protocol??P0,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:Aee,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??it,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??L0,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??pt,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??oe,utf8Encoder:e?.utf8Encoder??se}),pne=e=>{let t=$a(e),n=()=>t().then(ca),r=fne(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Za,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qa({serviceId:r.serviceId,clientVersion:Ate.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??ane,maxAttempts:e?.maxAttempts??3,md5:e?.md5??lne,region:e?.region??Ya(`Region is missing`),requestHandler:Ze.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Hr),sha1:e?.sha1??Nte,sha256:e?.sha256??l,streamCollector:e?.streamCollector??$e,streamHasher:e?.streamHasher??sne,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},mne=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},hne=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),gne=(e,t)=>{let n=Object.assign(Oz(e),ma(e),ue(e),mne(e));return t.forEach(e=>e.configure(n)),Object.assign(e,kz(n),ha(n),de(n),hne(n))},_ne=class extends ta{config;constructor(...[e]){let t=pne(e||{});super(t),this.initConfig=t;let n=gne(x0(p4(F0(qi(ve(Oi(Yi(Q1(Xn(m4(t))))))))),{session:[()=>this,kte]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(Ci(this.config)),this.middlewareStack.use(Ea(this.config)),this.middlewareStack.use(Mi(this.config)),this.middlewareStack.use(xe(this.config)),this.middlewareStack.use(we(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:l4,identityProviderConfigProvider:async e=>new Gn({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(N0(this.config)),this.middlewareStack.use(V1(this.config)),this.middlewareStack.use(r0(this.config)),this.middlewareStack.use(h0(this.config)),this.middlewareStack.use(b0(this.config))}destroy(){super.destroy()}},J9=`ap-southeast-2`,Y9=`${window.location.protocol}//localhost:9999`,vne=`${window.location.protocol}//localhost:8443`,X9=null,Z9=null,Q9=null,$9=null;function yne(){if(!X9){let e=n();if(!e)throw Error(`AWS credentials not configured`);X9=new Nz({endpoint:Y9,region:J9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),X9.middlewareStack.add(e=>async t=>(i.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function bne(){if(!Z9){let e=n();if(!e)throw Error(`AWS credentials not configured`);Z9=new aY({endpoint:Y9,region:J9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),Z9.middlewareStack.add(e=>async t=>(i.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function xne(){if(!Q9){let e=n();if(!e)throw Error(`AWS credentials not configured`);Q9=new R1({endpoint:Y9,region:J9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),Q9.middlewareStack.add(e=>async t=>(i.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function Sne(){if(!$9){let e=n();if(!e)throw Error(`AWS credentials not configured`);$9=new _ne({endpoint:vne,region:J9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),$9.middlewareStack.add(e=>async t=>(i.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),$9.middlewareStack.add(e=>async t=>(i.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function Cne(){X9=null,Z9=null,Q9=null,$9=null}export{YJ as $,wz as $t,C1 as A,tz as At,dY as B,dz as Bt,W1 as C,JR as Ct,b1 as D,QR as Dt,y1 as E,ZR as Et,O1 as F,oz as Ft,VJ as G,gz as Gt,RJ as H,pz as Ht,k1 as I,sz as It,WJ as J,yz as Jt,HJ as K,_z as Kt,A1 as L,cz as Lt,T1 as M,nz as Mt,E1 as N,iz as Nt,x1 as O,$R as Ot,D1 as P,az as Pt,JJ as Q,Cz as Qt,j1 as R,lz as Rt,H1 as S,qR as St,v1 as T,XR as Tt,zJ as U,mz as Ut,LJ as V,fz as Vt,BJ as W,hz as Wt,KJ as X,xz as Xt,GJ as Y,bz as Yt,qJ as Z,Sz as Zt,h4 as _,HR as _t,Sne as a,Hi as an,AR as at,K1 as b,GR as bt,yte as c,Fn as cn,NR as ct,Cte as d,qe as dn,IR as dt,Tz as en,XJ as et,wte as f,Ge as fn,LR as ft,Ote as g,VR as gt,Dte as h,le as hn,BR as ht,xne as i,Ki as in,zz as it,w1 as j,rz as jt,S1 as k,ez as kt,bte as l,Yt as ln,PR as lt,Ete as m,he as mn,zR as mt,yne as n,_a as nn,QJ as nt,_te as o,Vi as on,jR as ot,Tte as p,Ue as pn,RR as pt,UJ as q,vz as qt,bne as r,ia as rn,$J as rt,vte as s,di as sn,MR as st,Cne as t,Ga as tn,ZJ as tt,Ste as u,st as un,FR as ut,D0 as v,UR as vt,_1 as w,YR as wt,J1 as x,KR as xt,Y1 as y,WR as yt,M1 as z,uz as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js index 09450f776..06c82fac1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./link.js";import{t as r}from"./createLucideIcon.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file +import{Ua as e,eo as t,no as n,so as r}from"./index.js";var i=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=r();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/button.js b/spinifex/services/spinifexui/frontend/dist/assets/button.js deleted file mode 100644 index 6dc5f99dd..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/button.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,d as a,l as o,n as s,t as c,u as l}from"./dist.js";import{I as u}from"./SignatureV4.js";var d=e(n());function f(){return typeof window<`u`}function p(e){return g(e)?(e.nodeName||``).toLowerCase():`#document`}function m(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function h(e){return((g(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function g(e){return f()?e instanceof Node||e instanceof m(e).Node:!1}function _(e){return f()?e instanceof Element||e instanceof m(e).Element:!1}function v(e){return f()?e instanceof HTMLElement||e instanceof m(e).HTMLElement:!1}function y(e){return!f()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof m(e).ShadowRoot}function b(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function x(e){return/^(table|td|th)$/.test(p(e))}function S(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var C=/transform|translate|scale|rotate|perspective|filter/,w=/paint|layout|strict|content/,T=e=>!!e&&e!==`none`,E;function D(e){let t=_(e)?j(e):e;return T(t.transform)||T(t.translate)||T(t.scale)||T(t.rotate)||T(t.perspective)||!k()&&(T(t.backdropFilter)||T(t.filter))||C.test(t.willChange||``)||w.test(t.contain||``)}function O(e){let t=N(e);for(;v(t)&&!A(t);){if(D(t))return t;if(S(t))return null;t=N(t)}return null}function k(){return E??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),E}function A(e){return/^(html|body|#document)$/.test(p(e))}function j(e){return m(e).getComputedStyle(e)}function M(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function N(e){if(p(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||y(e)&&e.host||h(e);return y(t)?t.host:t}function P(e){let t=N(e);return A(t)?e.ownerDocument?e.ownerDocument.body:e.body:v(t)&&b(t)?t:P(t)}function F(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=P(e),i=r===e.ownerDocument?.body,a=m(r);if(i){let e=I(a);return t.concat(a,a.visualViewport||[],b(r)?r:[],e&&n?F(e):[])}else return t.concat(r,F(r,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var L=d[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],R=L&&L!==d.useLayoutEffect?L:e=>e();function z(e){let t=i(B).current;return t.next=e,R(t.effect),t.trampoline}function B(){let e={next:void 0,callback:V,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function V(){}var H={...d},U=typeof document<`u`?d.useLayoutEffect:()=>{},W=d.createContext(void 0);function G(e=!1){let t=d.useContext(W);if(t===void 0&&!e)throw Error(o(16));return t}function K(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:d.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function q(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:o}=e,s=d.useRef(null),c=G(!0),u=o??c!==void 0,{props:f}=K({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:r,isNativeButton:i}),p=d.useCallback(()=>{let e=s.current;J(e)&&u&&t&&f.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,f.disabled,u]);return U(p,[p]),{getButtonProps:d.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:s,onPointerDown:c,...d}=e;return a({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(l(e),s?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,o=J(a),c=!i&&Y(a),d=r&&(i?o:!c),f=e.key===`Enter`,p=e.key===` `,m=a.getAttribute(`role`),h=m?.startsWith(`menuitem`)||m===`option`||m===`gridcell`;if(r&&u&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),c||i&&o?(a.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!i&&(p||f)&&e.preventDefault(),!i&&f&&n?.(e))},onKeyUp(e){if(!t){if(l(e),o?.(e),e.target===e.currentTarget&&i&&u&&J(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!u&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}c?.(e)}},i?void 0:{role:`button`},f,d)},[t,f,u,i]),buttonRef:z(e=>{s.current=e,p()})}}function J(e){return v(e)&&e.tagName===`BUTTON`}function Y(e){return!!(e?.tagName===`A`&&e?.href)}var X=d.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:c,...l}=e,{getButtonProps:u,buttonRef:d}=q({disabled:i,focusableWhenDisabled:a,native:o});return s(`button`,e,{state:{disabled:i},ref:[t,d],props:[l,u]})}),Z=r(),Q=t(),$=c(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none 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]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{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:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,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 ee(e){let t=(0,Z.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=u($({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,Q.jsx)(X,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}export{b as C,k as D,S as E,g as S,x as T,m as _,G as a,v as b,z as c,h as d,I as f,N as g,F as h,W as i,j as l,M as m,$ as n,U as o,p,q as r,H as s,ee as t,O as u,D as v,y as w,A as x,_ as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/card.js b/spinifex/services/spinifexui/frontend/dist/assets/card.js index f07f8cf67..ffab1edba 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/card.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{I as n}from"./SignatureV4.js";var r=t(),i=e();function a(e){let t=(0,r.c)(10),a,o,s;t[0]===e?(a=t[1],o=t[2],s=t[3]):({className:a,size:s,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s);let c=s===void 0?`default`:s,l;t[4]===a?l=t[5]:(l=n(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground 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`,a),t[4]=a,t[5]=l);let u;return t[6]!==o||t[7]!==c||t[8]!==l?(u=(0,i.jsx)(`div`,{className:l,"data-size":c,"data-slot":`card`,...o}),t[6]=o,t[7]=c,t[8]=l,t[9]=u):u=t[9],u}function o(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-header`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function s(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`text-sm font-medium`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-title`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function c(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-action`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function l(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`px-4 group-data-[size=sm]/card:px-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-content`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-footer`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{o as a,u as i,c as n,s as o,l as r,a as t}; \ No newline at end of file +import{Sa as e,eo as t,so as n}from"./index.js";var r=t(),i=n();function a(t){let n=(0,r.c)(10),a,o,s;n[0]===t?(a=n[1],o=n[2],s=n[3]):({className:a,size:s,...o}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=s);let c=s===void 0?`default`:s,l;n[4]===a?l=n[5]:(l=e(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground 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`,a),n[4]=a,n[5]=l);let u;return n[6]!==o||n[7]!==c||n[8]!==l?(u=(0,i.jsx)(`div`,{className:l,"data-size":c,"data-slot":`card`,...o}),n[6]=o,n[7]=c,n[8]=l,n[9]=u):u=n[9],u}function o(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-header`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`text-sm font-medium`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-title`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-action`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function l(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`px-4 group-data-[size=sm]/card:px-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-content`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function u(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-footer`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{o as a,u as i,c as n,s as o,l as r,a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/check.js b/spinifex/services/spinifexui/frontend/dist/assets/check.js index 5ddb6de60..fc7f1d9ca 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/check.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/check.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js index fbfd38c65..ca402d67b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js index 5d81b9134..6dbb08e16 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js index c46f0c0ec..b2a3e02ca 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js @@ -1,3 +1,3 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{I as i}from"./SignatureV4.js";import{t as a}from"./createLucideIcon.js";import{t as o}from"./check.js";import{t as s}from"./chevron-down.js";import{t as c}from"./copy.js";import{t as l}from"./button.js";import{t as u}from"./use-copy-to-clipboard.js";var d=a(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=e(n(),1),m=t(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` +import{t as e}from"./check.js";import{t}from"./chevron-down.js";import{t as n}from"./copy.js";import{Do as r,Sa as i,Ua as a,co as o,eo as s,so as c,ya as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=a(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=s(),p=r(o(),1),m=c(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` -`)}function _(e){let t=(0,f.c)(18),{commands:n}=e,[r,a]=(0,p.useState)(!1),{copied:h,copy:_}=u();if(n.length===0)return null;let b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>a(y),t[0]=b):b=t[0];let x,S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),t[1]=x,t[2]=S):(x=t[1],S=t[2]);let C=r&&`rotate-180`,w;t[3]===C?w=t[4]:(w=i(`ml-auto size-3.5 transition-transform`,C),t[3]=C,t[4]=w);let T;t[5]===w?T=t[6]:(T=(0,m.jsx)(s,{className:w}),t[5]=w,t[6]=T);let E;t[7]!==r||t[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":r,children:[x,S,T]}),t[7]=r,t[8]=T,t[9]=E):E=t[9];let D;t[10]!==n||t[11]!==h||t[12]!==_||t[13]!==r?(D=r&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:n.length>1?`${n.length} commands`:`command`}),(0,m.jsxs)(l,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(n)),children:[h?(0,m.jsx)(o,{className:`size-2.5`}):(0,m.jsx)(c,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:n.map((e,t)=>(0,m.jsxs)(`div`,{children:[n.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),tc(y),a[0]=b):b=a[0];let x,S;a[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),a[1]=x,a[2]=S):(x=a[1],S=a[2]);let C=s&&`rotate-180`,w;a[3]===C?w=a[4]:(w=i(`ml-auto size-3.5 transition-transform`,C),a[3]=C,a[4]=w);let T;a[5]===w?T=a[6]:(T=(0,m.jsx)(t,{className:w}),a[5]=w,a[6]=T);let E;a[7]!==s||a[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":s,children:[x,S,T]}),a[7]=s,a[8]=T,a[9]=E):E=a[9];let D;a[10]!==o||a[11]!==h||a[12]!==_||a[13]!==s?(D=s&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:o.length>1?`${o.length} commands`:`command`}),(0,m.jsxs)(l,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(o)),children:[h?(0,m.jsx)(e,{className:`size-2.5`}):(0,m.jsx)(n,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:o.map((e,t)=>(0,m.jsxs)(`div`,{children:[o.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),t{let t=!o,n=p(f,e.nativeEvent);if(r(t,n),n.isCanceled)return;let i=I.current;P.current===`css-animation`&&i!=null&&i.style.removeProperty(`animation-name`),!k&&!j&&(P.current!=null&&P.current!==`css-animation`&&!m&&t&&h(!0),P.current===`css-animation`&&(!v&&t&&b(!0),!m&&t&&h(!0))),l(t),P.current===`none`&&m&&!t&&h(!1)});return c(()=>{a&&P.current===`none`&&!o&&h(!1)},[a,o,t,h]),w.useMemo(()=>({abortControllerRef:N,animationTypeRef:P,disabled:i,handleTrigger:R,height:x,mounted:m,open:o,panelId:O,panelRef:I,runOnceAnimationsFinish:L,setDimensions:C,setHiddenUntilFound:A,setKeepMounted:M,setMounted:h,setOpen:l,setPanelIdState:D,setVisible:b,transitionDimensionRef:F,transitionStatus:g,visible:v,width:S}),[N,P,i,R,x,m,o,O,I,L,C,A,M,h,l,b,F,g,v,S])}var E=w.createContext(void 0);function D(){let e=w.useContext(E);if(e===void 0)throw Error(i(15));return e}var O=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=h.startingStyle]=`startingStyle`,e[e.endingStyle=h.endingStyle]=`endingStyle`,e}({}),k=function(e){return e.panelOpen=`data-panel-open`,e}({}),A={[O.open]:``},j={[O.closed]:``},M={open(e){return e?{[k.panelOpen]:``}:null}},N={open(e){return e?A:j},...b},P=t(),F=w.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:c,open:l,style:u,...d}=e,f=s(c),p=T({open:l,defaultOpen:i,onOpenChange:f,disabled:o}),m=w.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=w.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),g=a(`div`,e,{state:m,ref:t,props:d,stateAttributesMapping:N});return(0,P.jsx)(E.Provider,{value:h,children:g})}),I={...M,...b},L=w.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:s}=D(),{className:c,disabled:u=s,id:d,render:f,nativeButton:p=!0,style:m,...h}=e,{getButtonProps:g,buttonRef:_}=l({disabled:u,focusableWhenDisabled:!0,native:p}),v=w.useMemo(()=>({"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i}),[n,r,i]);return a(`button`,e,{state:o,ref:[t,_],props:[v,h,g],stateAttributesMapping:I})}),R=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e}({});function z(e){let{abortControllerRef:t,animationTypeRef:n,externalRef:r,height:i,hiddenUntilFound:a,keepMounted:l,id:u,mounted:d,onOpenChange:f,open:h,panelRef:_,runOnceAnimationsFinish:y,setDimensions:b,setMounted:x,setOpen:T,setVisible:E,transitionDimensionRef:D,visible:k,width:A}=e,j=w.useRef(!1),M=w.useRef(null),N=w.useRef(h),P=w.useRef(h),F=v(),I=w.useMemo(()=>n.current===`css-animation`?!k:!h&&!d,[h,d,k,n]),L=o(r,_,s(e=>{if(!e)return;if(n.current==null||D.current==null){let t=getComputedStyle(e),r=t.animationName!==`none`&&t.animationName!==``,i=t.transitionDuration!==`0s`&&t.transitionDuration!==``;r&&i||(t.animationName===`none`&&t.transitionDuration!==`0s`?n.current=`css-transition`:t.animationName!==`none`&&t.transitionDuration===`0s`?n.current=`css-animation`:n.current=`none`),e.getAttribute(R.orientation)===`horizontal`||t.transitionProperty.indexOf(`width`)>-1?D.current=`width`:D.current=`height`}if(n.current!==`css-transition`)return;(i===void 0||A===void 0)&&(b({height:e.scrollHeight,width:e.scrollWidth}),P.current&&e.style.setProperty(`transition-duration`,`0s`));let t=-1,r=-1;return t=g.request(()=>{P.current=!1,r=g.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{g.cancel(t),g.cancel(r)}}));return c(()=>{if(n.current!==`css-transition`)return;let e=_.current;if(!e)return;let r=-1;if(t.current!=null&&(t.current.abort(),t.current=null),h){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)}),!P.current&&!l&&e.setAttribute(O.startingStyle,``),b({height:e.scrollHeight,width:e.scrollWidth}),r=g.request(()=>{Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(e.scrollHeight===0&&e.scrollWidth===0)return;b({height:e.scrollHeight,width:e.scrollWidth});let n=new AbortController;t.current=n;let r=n.signal,i=null,a=O.endingStyle;return i=new MutationObserver(o=>{o.some(e=>e.type===`attributes`&&e.attributeName===a)&&(i?.disconnect(),i=null,y(()=>{b({height:0,width:0}),e.style.removeProperty(`content-visibility`),x(!1),t.current===n&&(t.current=null)},r))}),i.observe(e,{attributes:!0,attributeFilter:[a]}),()=>{i?.disconnect(),F.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{g.cancel(r)}},[t,n,F,a,l,d,h,_,y,b,x]),c(()=>{if(n.current!==`css-animation`)return;let e=_.current;e&&(M.current=e.style.animationName||M.current,e.style.setProperty(`animation-name`,`none`),b({height:e.scrollHeight,width:e.scrollWidth}),!N.current&&!j.current&&e.style.removeProperty(`animation-name`),h?(t.current!=null&&(t.current.abort(),t.current=null),x(!0),E(!0)):(t.current=new AbortController,y(()=>{x(!1),E(!1),t.current=null},t.current.signal)))},[t,n,h,_,y,b,x,E,k]),C(()=>{let e=g.request(()=>{N.current=!1});return()=>g.cancel(e)}),c(()=>{if(!a)return;let e=_.current;if(!e)return;let t=-1,n=-1;return h&&j.current&&(e.style.transitionDuration=`0s`,b({height:e.scrollHeight,width:e.scrollWidth}),t=g.request(()=>{j.current=!1,n=g.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{g.cancel(t),g.cancel(n)}},[a,h,_,b]),c(()=>{let e=_.current;e&&a&&I&&(e.setAttribute(`hidden`,`until-found`),n.current===`css-transition`&&e.setAttribute(O.startingStyle,``))},[a,I,n,_]),w.useEffect(function(){let e=_.current;if(!e)return;function t(e){j.current=!0,T(!0),f(!0,p(m,e))}return S(e,`beforematch`,t)},[f,_,T]),w.useMemo(()=>({props:{hidden:I,id:u,ref:L}}),[I,u,L])}var B=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),V=w.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:o,id:s,style:l,...u}=e,{abortControllerRef:d,animationTypeRef:f,height:p,mounted:m,onOpenChange:h,open:g,panelId:_,panelRef:v,runOnceAnimationsFinish:y,setDimensions:b,setHiddenUntilFound:S,setKeepMounted:C,setMounted:T,setPanelIdState:E,setOpen:O,setVisible:k,state:A,transitionDimensionRef:j,visible:M,width:P,transitionStatus:F}=D(),I=r??!1,L=i??!1;c(()=>{if(s)return E(s),()=>{E(void 0)}},[s,E]),c(()=>{S(I)},[S,I]),c(()=>{C(L)},[C,L]);let{props:R}=z({abortControllerRef:d,animationTypeRef:f,externalRef:t,height:p,hiddenUntilFound:I,id:_,keepMounted:L,mounted:m,onOpenChange:h,open:g,panelRef:v,runOnceAnimationsFinish:y,setDimensions:b,setMounted:T,setOpen:O,setVisible:k,transitionDimensionRef:j,visible:M,width:P});x({open:g&&F===`idle`,ref:v,onComplete(){g&&b({height:void 0,width:void 0})}});let V=a(`div`,e,{state:w.useMemo(()=>({...A,transitionStatus:F}),[A,F]),ref:[t,v],props:[R,{style:{[B.collapsiblePanelHeight]:p===void 0?`auto`:`${p}px`,[B.collapsiblePanelWidth]:P===void 0?`auto`:`${P}px`}},u],stateAttributesMapping:N});return L||I||m?V:null}),H=r();function U(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(F,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function W(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(L,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function G(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(V,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{G as n,W as r,U as t}; \ No newline at end of file +import{Ai as e,Di as t,Do as n,Fi as r,Ii as i,Ka as a,Li as o,Ma as s,Mi as c,Na as l,Ni as u,Pi as d,Qa as f,Ti as p,Xa as m,bi as h,co as g,eo as _,ga as v,ji as y,ka as b,so as x,ui as S,zi as C}from"./index.js";var w=n(g());function T(n){let{open:r,defaultOpen:i,onOpenChange:a,disabled:o}=n,c=r!==void 0,[d,f]=e({controlled:r,default:i,name:`Collapsible`,state:`open`}),{mounted:p,setMounted:m,transitionStatus:g}=y(d,!0,!0),[_,b]=w.useState(d),[{height:x,width:S},C]=w.useState({height:void 0,width:void 0}),T=v(),[E,D]=w.useState(),O=E??T,[k,A]=w.useState(!1),[j,M]=w.useState(!1),N=w.useRef(null),P=w.useRef(null),F=w.useRef(null),I=w.useRef(null),L=u(I,!1),R=l(e=>{let n=!d,r=h(t,e.nativeEvent);if(a(n,r),r.isCanceled)return;let i=I.current;P.current===`css-animation`&&i!=null&&i.style.removeProperty(`animation-name`),!k&&!j&&(P.current!=null&&P.current!==`css-animation`&&!p&&n&&m(!0),P.current===`css-animation`&&(!_&&n&&b(!0),!p&&n&&m(!0))),f(n),P.current===`none`&&p&&!n&&m(!1)});return s(()=>{c&&P.current===`none`&&!d&&m(!1)},[c,d,r,m]),w.useMemo(()=>({abortControllerRef:N,animationTypeRef:P,disabled:o,handleTrigger:R,height:x,mounted:p,open:d,panelId:O,panelRef:I,runOnceAnimationsFinish:L,setDimensions:C,setHiddenUntilFound:A,setKeepMounted:M,setMounted:m,setOpen:f,setPanelIdState:D,setVisible:b,transitionDimensionRef:F,transitionStatus:g,visible:_,width:S}),[N,P,o,R,x,p,d,O,I,L,C,A,M,m,f,b,F,g,_,S])}var E=w.createContext(void 0);function D(){let e=w.useContext(E);if(e===void 0)throw Error(f(15));return e}var O=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=d.startingStyle]=`startingStyle`,e[e.endingStyle=d.endingStyle]=`endingStyle`,e}({}),k=function(e){return e.panelOpen=`data-panel-open`,e}({}),A={[O.open]:``},j={[O.closed]:``},M={open(e){return e?{[k.panelOpen]:``}:null}},N={open(e){return e?A:j},...r},P=x(),F=w.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:s,open:c,style:u,...d}=e,f=l(s),p=T({open:c,defaultOpen:i,onOpenChange:f,disabled:o}),m=w.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=w.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),g=a(`div`,e,{state:m,ref:t,props:d,stateAttributesMapping:N});return(0,P.jsx)(E.Provider,{value:h,children:g})}),I={...M,...r},L=w.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:s}=D(),{className:c,disabled:l=s,id:u,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=b({disabled:l,focusableWhenDisabled:!0,native:f}),_=w.useMemo(()=>({"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i}),[n,r,i]);return a(`button`,e,{state:o,ref:[t,g],props:[_,m,h],stateAttributesMapping:I})}),R=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e}({});function z(e){let{abortControllerRef:t,animationTypeRef:n,externalRef:r,height:a,hiddenUntilFound:c,keepMounted:u,id:d,mounted:f,onOpenChange:g,open:_,panelRef:v,runOnceAnimationsFinish:y,setDimensions:b,setMounted:x,setOpen:T,setVisible:E,transitionDimensionRef:D,visible:k,width:A}=e,j=w.useRef(!1),M=w.useRef(null),N=w.useRef(_),P=w.useRef(_),F=o(),I=w.useMemo(()=>n.current===`css-animation`?!k:!_&&!f,[_,f,k,n]),L=m(r,v,l(e=>{if(!e)return;if(n.current==null||D.current==null){let t=getComputedStyle(e),r=t.animationName!==`none`&&t.animationName!==``,i=t.transitionDuration!==`0s`&&t.transitionDuration!==``;r&&i||(t.animationName===`none`&&t.transitionDuration!==`0s`?n.current=`css-transition`:t.animationName!==`none`&&t.transitionDuration===`0s`?n.current=`css-animation`:n.current=`none`),e.getAttribute(R.orientation)===`horizontal`||t.transitionProperty.indexOf(`width`)>-1?D.current=`width`:D.current=`height`}if(n.current!==`css-transition`)return;(a===void 0||A===void 0)&&(b({height:e.scrollHeight,width:e.scrollWidth}),P.current&&e.style.setProperty(`transition-duration`,`0s`));let t=-1,r=-1;return t=i.request(()=>{P.current=!1,r=i.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{i.cancel(t),i.cancel(r)}}));return s(()=>{if(n.current!==`css-transition`)return;let e=v.current;if(!e)return;let r=-1;if(t.current!=null&&(t.current.abort(),t.current=null),_){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)}),!P.current&&!u&&e.setAttribute(O.startingStyle,``),b({height:e.scrollHeight,width:e.scrollWidth}),r=i.request(()=>{Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(e.scrollHeight===0&&e.scrollWidth===0)return;b({height:e.scrollHeight,width:e.scrollWidth});let n=new AbortController;t.current=n;let r=n.signal,i=null,a=O.endingStyle;return i=new MutationObserver(o=>{o.some(e=>e.type===`attributes`&&e.attributeName===a)&&(i?.disconnect(),i=null,y(()=>{b({height:0,width:0}),e.style.removeProperty(`content-visibility`),x(!1),t.current===n&&(t.current=null)},r))}),i.observe(e,{attributes:!0,attributeFilter:[a]}),()=>{i?.disconnect(),F.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{i.cancel(r)}},[t,n,F,c,u,f,_,v,y,b,x]),s(()=>{if(n.current!==`css-animation`)return;let e=v.current;e&&(M.current=e.style.animationName||M.current,e.style.setProperty(`animation-name`,`none`),b({height:e.scrollHeight,width:e.scrollWidth}),!N.current&&!j.current&&e.style.removeProperty(`animation-name`),_?(t.current!=null&&(t.current.abort(),t.current=null),x(!0),E(!0)):(t.current=new AbortController,y(()=>{x(!1),E(!1),t.current=null},t.current.signal)))},[t,n,_,v,y,b,x,E,k]),C(()=>{let e=i.request(()=>{N.current=!1});return()=>i.cancel(e)}),s(()=>{if(!c)return;let e=v.current;if(!e)return;let t=-1,n=-1;return _&&j.current&&(e.style.transitionDuration=`0s`,b({height:e.scrollHeight,width:e.scrollWidth}),t=i.request(()=>{j.current=!1,n=i.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{i.cancel(t),i.cancel(n)}},[c,_,v,b]),s(()=>{let e=v.current;e&&c&&I&&(e.setAttribute(`hidden`,`until-found`),n.current===`css-transition`&&e.setAttribute(O.startingStyle,``))},[c,I,n,v]),w.useEffect(function(){let e=v.current;if(!e)return;function t(e){j.current=!0,T(!0),g(!0,h(p,e))}return S(e,`beforematch`,t)},[g,v,T]),w.useMemo(()=>({props:{hidden:I,id:d,ref:L}}),[I,d,L])}var B=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),V=w.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:o,id:l,style:u,...d}=e,{abortControllerRef:f,animationTypeRef:p,height:m,mounted:h,onOpenChange:g,open:_,panelId:v,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:S,setKeepMounted:C,setMounted:T,setPanelIdState:E,setOpen:O,setVisible:k,state:A,transitionDimensionRef:j,visible:M,width:P,transitionStatus:F}=D(),I=r??!1,L=i??!1;s(()=>{if(l)return E(l),()=>{E(void 0)}},[l,E]),s(()=>{S(I)},[S,I]),s(()=>{C(L)},[C,L]);let{props:R}=z({abortControllerRef:f,animationTypeRef:p,externalRef:t,height:m,hiddenUntilFound:I,id:v,keepMounted:L,mounted:h,onOpenChange:g,open:_,panelRef:y,runOnceAnimationsFinish:b,setDimensions:x,setMounted:T,setOpen:O,setVisible:k,transitionDimensionRef:j,visible:M,width:P});c({open:_&&F===`idle`,ref:y,onComplete(){_&&x({height:void 0,width:void 0})}});let V=a(`div`,e,{state:w.useMemo(()=>({...A,transitionStatus:F}),[A,F]),ref:[t,y],props:[R,{style:{[B.collapsiblePanelHeight]:m===void 0?`auto`:`${m}px`,[B.collapsiblePanelWidth]:P===void 0?`auto`:`${P}px`}},d],stateAttributesMapping:N});return L||I||h?V:null}),H=_();function U(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(F,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function W(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(L,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function G(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(V,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{G as n,W as r,U as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js b/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js deleted file mode 100644 index f2db5362c..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=l()})),d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),m=o(((e,t)=>{t.exports=p()}));export{c as a,o as i,f as n,u as r,m as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/copy.js b/spinifex/services/spinifexui/frontend/dist/assets/copy.js index ad47eb762..fdbabd6ff 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/copy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/copy.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js index d94b021f7..4b264b586 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useNavigate.js";import{j as i,k as a}from"./SignatureV4.js";import{t as o}from"./back-link.js";import{t as s}from"./cli-command-panel.js";import{t as c}from"./s3.js";import{L as l}from"./index.js";import{t as u}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{r as m,t as h}from"./zod.js";import{t as g}from"./form-actions.js";var _=t(),v=a({bucketName:i().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),y=e();function b(){let e=(0,_.c)(40),t=r(),i=c(),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={resolver:h(v)},e[0]=a):a=e[0];let{handleSubmit:b,register:S,watch:C,formState:w}=m(a),{errors:T,isSubmitting:E}=w,D;e[1]!==i||e[2]!==t?(D=async e=>{await i.mutateAsync(e),t({to:`/s3/ls`})},e[1]=i,e[2]=t,e[3]=D):D=e[3];let O=D,k,A;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,y.jsx)(o,{to:`/s3/ls`,children:`Back to buckets`}),A=(0,y.jsx)(u,{title:`Create Bucket`}),e[4]=k,e[5]=A):(k=e[4],A=e[5]);let j;e[6]===i.error?j=e[7]:(j=i.error&&(0,y.jsx)(n,{error:i.error,msg:`Failed to create bucket`}),e[6]=i.error,e[7]=j);let M;e[8]!==b||e[9]!==O?(M=b(O),e[8]=b,e[9]=O,e[10]=M):M=e[10];let N;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(d,{children:(0,y.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),e[11]=N):N=e[11];let P=!!T.bucketName,F;e[12]===S?F=e[13]:(F=S(`bucketName`),e[12]=S,e[13]=F);let I;e[14]!==P||e[15]!==F?(I=(0,y.jsx)(l,{"aria-invalid":P,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...F}),e[14]=P,e[15]=F,e[16]=I):I=e[16];let L;e[17]===T.bucketName?L=e[18]:(L=(0,y.jsx)(f,{errors:[T.bucketName]}),e[17]=T.bucketName,e[18]=L);let R;e[19]!==I||e[20]!==L?(R=(0,y.jsxs)(p,{children:[N,I,L]}),e[19]=I,e[20]=L,e[21]=R):R=e[21];let z;e[22]===C?z=e[23]:(z=x(C),e[22]=C,e[23]=z);let B;e[24]===z?B=e[25]:(B=(0,y.jsx)(s,{commands:z}),e[24]=z,e[25]=B);let V;e[26]===t?V=e[27]:(V=async()=>await t({to:`/s3/ls`}),e[26]=t,e[27]=V);let H;e[28]!==i.isPending||e[29]!==E||e[30]!==V?(H=(0,y.jsx)(g,{isPending:i.isPending,isSubmitting:E,onCancel:V,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),e[28]=i.isPending,e[29]=E,e[30]=V,e[31]=H):H=e[31];let U;e[32]!==R||e[33]!==B||e[34]!==H||e[35]!==M?(U=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[R,B,H]}),e[32]=R,e[33]=B,e[34]=H,e[35]=M,e[36]=U):U=e[36];let W;return e[37]!==U||e[38]!==j?(W=(0,y.jsxs)(y.Fragment,{children:[k,A,j,U]}),e[37]=U,e[38]=j,e[39]=W):W=e[39],W}function x(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{b as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{t as r}from"./s3.js";import{dr as i,eo as a,pr as o,ro as s,so as c,yi as l}from"./index.js";import{t as u}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{r as m,t as h}from"./zod.js";import{t as g}from"./form-actions.js";var _=a(),v=i({bucketName:o().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),y=c();function b(){let i=(0,_.c)(40),a=s(),o=r(),c;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={resolver:h(v)},i[0]=c):c=i[0];let{handleSubmit:b,register:S,watch:C,formState:w}=m(c),{errors:T,isSubmitting:E}=w,D;i[1]!==o||i[2]!==a?(D=async e=>{await o.mutateAsync(e),a({to:`/s3/ls`})},i[1]=o,i[2]=a,i[3]=D):D=i[3];let O=D,k,A;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,y.jsx)(t,{to:`/s3/ls`,children:`Back to buckets`}),A=(0,y.jsx)(u,{title:`Create Bucket`}),i[4]=k,i[5]=A):(k=i[4],A=i[5]);let j;i[6]===o.error?j=i[7]:(j=o.error&&(0,y.jsx)(e,{error:o.error,msg:`Failed to create bucket`}),i[6]=o.error,i[7]=j);let M;i[8]!==b||i[9]!==O?(M=b(O),i[8]=b,i[9]=O,i[10]=M):M=i[10];let N;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(d,{children:(0,y.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),i[11]=N):N=i[11];let P=!!T.bucketName,F;i[12]===S?F=i[13]:(F=S(`bucketName`),i[12]=S,i[13]=F);let I;i[14]!==P||i[15]!==F?(I=(0,y.jsx)(l,{"aria-invalid":P,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...F}),i[14]=P,i[15]=F,i[16]=I):I=i[16];let L;i[17]===T.bucketName?L=i[18]:(L=(0,y.jsx)(f,{errors:[T.bucketName]}),i[17]=T.bucketName,i[18]=L);let R;i[19]!==I||i[20]!==L?(R=(0,y.jsxs)(p,{children:[N,I,L]}),i[19]=I,i[20]=L,i[21]=R):R=i[21];let z;i[22]===C?z=i[23]:(z=x(C),i[22]=C,i[23]=z);let B;i[24]===z?B=i[25]:(B=(0,y.jsx)(n,{commands:z}),i[24]=z,i[25]=B);let V;i[26]===a?V=i[27]:(V=async()=>await a({to:`/s3/ls`}),i[26]=a,i[27]=V);let H;i[28]!==o.isPending||i[29]!==E||i[30]!==V?(H=(0,y.jsx)(g,{isPending:o.isPending,isSubmitting:E,onCancel:V,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),i[28]=o.isPending,i[29]=E,i[30]=V,i[31]=H):H=i[31];let U;i[32]!==R||i[33]!==B||i[34]!==H||i[35]!==M?(U=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[R,B,H]}),i[32]=R,i[33]=B,i[34]=H,i[35]=M,i[36]=U):U=i[36];let W;return i[37]!==U||i[38]!==j?(W=(0,y.jsxs)(y.Fragment,{children:[k,A,j,U]}),i[37]=U,i[38]=j,i[39]=W):W=i[39],W}function x(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js index 76a2dfab8..413fff83f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useNavigate.js";import{t as o}from"./back-link.js";import{t as s}from"./check.js";import{t as c}from"./download.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./triangle-alert.js";import{t as d}from"./button.js";import{s as f}from"./ec2.js";import{L as p}from"./index.js";import{t as m}from"./page-heading.js";import{a as h,c as g,i as _,l as v,o as y,r as b,s as x,t as S}from"./alert-dialog.js";import{a as C,r as w,t as T}from"./field.js";import{r as E,t as D}from"./zod.js";import{t as O}from"./use-copy-to-clipboard.js";import{r as k}from"./ec23.js";import{t as A}from"./form-actions.js";var j=e(n()),M=r(),N=t();function P(e){let t=(0,M.c)(37),{open:n,keyName:r,keyMaterial:i}=e,o=a(),{copied:l,copy:f}=O(),p;t[0]!==i||t[1]!==r?(p=()=>{let e=new Blob([i],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${r}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=i,t[1]=r,t[2]=p):p=t[2];let m=p,C;t[3]===o?C=t[4]:(C=()=>{o({to:`/ec2/describe-key-pairs`})},t[3]=o,t[4]=C);let w=C,T,E;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,N.jsx)(g,{children:(0,N.jsx)(u,{className:`text-destructive`})}),E=(0,N.jsx)(v,{children:`Save Your Private Key`}),t[5]=T,t[6]=E):(T=t[5],E=t[6]);let D;t[7]===r?D=t[8]:(D=(0,N.jsxs)(x,{children:[T,E,(0,N.jsxs)(h,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=D);let k;t[9]===i?k=t[10]:(k=(0,N.jsx)(`textarea`,{className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:i}),t[9]=i,t[10]=k);let A;t[11]!==f||t[12]!==i?(A=async()=>await f(i),t[11]=f,t[12]=i,t[13]=A):A=t[13];let j;t[14]===l?j=t[15]:(j=l?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(s,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=l,t[15]=j);let P;t[16]!==A||t[17]!==j?(P=(0,N.jsx)(d,{className:`flex-1`,onClick:A,type:`button`,variant:`outline`,children:j}),t[16]=A,t[17]=j,t[18]=P):P=t[18];let F;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(c,{className:`mr-2 size-4`}),t[19]=F):F=t[19];let I;t[20]===m?I=t[21]:(I=(0,N.jsxs)(d,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[20]=m,t[21]=I);let L;t[22]!==I||t[23]!==P?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[22]=I,t[23]=P,t[24]=L):L=t[24];let R;t[25]!==L||t[26]!==k?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[k,L]}),t[25]=L,t[26]=k,t[27]=R):R=t[27];let z;t[28]===w?z=t[29]:(z=(0,N.jsx)(y,{children:(0,N.jsx)(b,{onClick:w,children:`Close and Continue`})}),t[28]=w,t[29]=z);let B;t[30]!==R||t[31]!==z||t[32]!==D?(B=(0,N.jsxs)(_,{className:`max-w-2xl`,children:[D,R,z]}),t[30]=R,t[31]=z,t[32]=D,t[33]=B):B=t[33];let V;return t[34]!==n||t[35]!==B?(V=(0,N.jsx)(S,{open:n,children:B}),t[34]=n,t[35]=B,t[36]=V):V=t[36],V}function F(){let e=(0,M.c)(42),t=a(),n=f(),[r,s]=(0,j.useState)(null),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={resolver:D(k)},e[0]=c):c=e[0];let{handleSubmit:u,register:d,watch:h,formState:g}=E(c),{errors:_,isSubmitting:v}=g,y;e[1]===n?y=e[2]:(y=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&s({keyName:e.keyName,material:t.KeyMaterial})},e[1]=n,e[2]=y);let b=y,x,S;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,N.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),S=(0,N.jsx)(m,{title:`Create Key Pair`}),e[3]=x,e[4]=S):(x=e[3],S=e[4]);let O;e[5]===n.error?O=e[6]:(O=n.error&&(0,N.jsx)(i,{error:n.error,msg:`Failed to create key pair`}),e[5]=n.error,e[6]=O);let F;e[7]!==u||e[8]!==b?(F=u(b),e[7]=u,e[8]=b,e[9]=F):F=e[9];let L;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(C,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[10]=L):L=e[10];let R=!!_.keyName,z;e[11]===d?z=e[12]:(z=d(`keyName`),e[11]=d,e[12]=z);let B;e[13]!==R||e[14]!==z?(B=(0,N.jsx)(p,{"aria-invalid":R,id:`keyName`,placeholder:`my-key-pair…`,...z}),e[13]=R,e[14]=z,e[15]=B):B=e[15];let V;e[16]===_.keyName?V=e[17]:(V=(0,N.jsx)(w,{errors:[_.keyName]}),e[16]=_.keyName,e[17]=V);let H;e[18]!==B||e[19]!==V?(H=(0,N.jsxs)(T,{children:[L,B,V]}),e[18]=B,e[19]=V,e[20]=H):H=e[20];let U;e[21]===h?U=e[22]:(U=I(h),e[21]=h,e[22]=U);let W;e[23]===U?W=e[24]:(W=(0,N.jsx)(l,{commands:U}),e[23]=U,e[24]=W);let G;e[25]===t?G=e[26]:(G=async()=>await t({to:`/ec2/describe-key-pairs`}),e[25]=t,e[26]=G);let K;e[27]!==n.isPending||e[28]!==v||e[29]!==G?(K=(0,N.jsx)(A,{isPending:n.isPending,isSubmitting:v,onCancel:G,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[27]=n.isPending,e[28]=v,e[29]=G,e[30]=K):K=e[30];let q;e[31]!==H||e[32]!==W||e[33]!==K||e[34]!==F?(q=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[H,W,K]}),e[31]=H,e[32]=W,e[33]=K,e[34]=F,e[35]=q):q=e[35];let J;e[36]===r?J=e[37]:(J=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[36]=r,e[37]=J);let Y;return e[38]!==q||e[39]!==J||e[40]!==O?(Y=(0,N.jsxs)(N.Fragment,{children:[x,S,O,q,J]}),e[38]=q,e[39]=J,e[40]=O,e[41]=Y):Y=e[41],Y}function I(e){let t=e(`keyName`);return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./check.js";import{t as r}from"./download.js";import{t as i}from"./cli-command-panel.js";import{t as a}from"./triangle-alert.js";import{s as o}from"./ec2.js";import{Do as s,co as c,eo as l,ro as u,so as d,ya as f,yi as p}from"./index.js";import{t as m}from"./page-heading.js";import{a as h,c as g,i as _,l as v,o as y,r as b,s as x,t as S}from"./alert-dialog.js";import{a as C,r as w,t as T}from"./field.js";import{r as E,t as D}from"./zod.js";import{t as O}from"./use-copy-to-clipboard.js";import{r as k}from"./ec22.js";import{t as A}from"./form-actions.js";var j=s(c()),M=l(),N=d();function P(e){let t=(0,M.c)(38),{open:i,keyName:o,keyMaterial:s}=e,c=u(),{copied:l,copy:d}=O(),p;t[0]!==s||t[1]!==o?(p=()=>{let e=new Blob([s],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${o}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=s,t[1]=o,t[2]=p):p=t[2];let m=p,C;t[3]===c?C=t[4]:(C=()=>{c({to:`/ec2/describe-key-pairs`})},t[3]=c,t[4]=C);let w=C,T,E;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,N.jsx)(g,{children:(0,N.jsx)(a,{className:`text-destructive`})}),E=(0,N.jsx)(v,{children:`Save Your Private Key`}),t[5]=T,t[6]=E):(T=t[5],E=t[6]);let D;t[7]===o?D=t[8]:(D=(0,N.jsxs)(x,{children:[T,E,(0,N.jsxs)(h,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:o}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=o,t[8]=D);let k=`Private key material for ${o}`,A;t[9]!==s||t[10]!==k?(A=(0,N.jsx)(`textarea`,{"aria-label":k,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:s}),t[9]=s,t[10]=k,t[11]=A):A=t[11];let j;t[12]!==d||t[13]!==s?(j=async()=>await d(s),t[12]=d,t[13]=s,t[14]=j):j=t[14];let P;t[15]===l?P=t[16]:(P=l?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(n,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=l,t[16]=P);let F;t[17]!==j||t[18]!==P?(F=(0,N.jsx)(f,{className:`flex-1`,onClick:j,type:`button`,variant:`outline`,children:P}),t[17]=j,t[18]=P,t[19]=F):F=t[19];let I;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,N.jsx)(r,{className:`mr-2 size-4`}),t[20]=I):I=t[20];let L;t[21]===m?L=t[22]:(L=(0,N.jsxs)(f,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[I,`Download .pem File`]}),t[21]=m,t[22]=L);let R;t[23]!==F||t[24]!==L?(R=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[F,L]}),t[23]=F,t[24]=L,t[25]=R):R=t[25];let z;t[26]!==R||t[27]!==A?(z=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[A,R]}),t[26]=R,t[27]=A,t[28]=z):z=t[28];let B;t[29]===w?B=t[30]:(B=(0,N.jsx)(y,{children:(0,N.jsx)(b,{onClick:w,children:`Close and Continue`})}),t[29]=w,t[30]=B);let V;t[31]!==z||t[32]!==B||t[33]!==D?(V=(0,N.jsxs)(_,{className:`max-w-2xl`,children:[D,z,B]}),t[31]=z,t[32]=B,t[33]=D,t[34]=V):V=t[34];let H;return t[35]!==i||t[36]!==V?(H=(0,N.jsx)(S,{open:i,children:V}),t[35]=i,t[36]=V,t[37]=H):H=t[37],H}function F(){let n=(0,M.c)(42),r=u(),a=o(),[s,c]=(0,j.useState)(null),l;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={resolver:D(k)},n[0]=l):l=n[0];let{handleSubmit:d,register:f,watch:h,formState:g}=E(l),{errors:_,isSubmitting:v}=g,y;n[1]===a?y=n[2]:(y=async e=>{let t=await a.mutateAsync(e);t.KeyMaterial&&c({keyName:e.keyName,material:t.KeyMaterial})},n[1]=a,n[2]=y);let b=y,x,S;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,N.jsx)(t,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),S=(0,N.jsx)(m,{title:`Create Key Pair`}),n[3]=x,n[4]=S):(x=n[3],S=n[4]);let O;n[5]===a.error?O=n[6]:(O=a.error&&(0,N.jsx)(e,{error:a.error,msg:`Failed to create key pair`}),n[5]=a.error,n[6]=O);let F;n[7]!==d||n[8]!==b?(F=d(b),n[7]=d,n[8]=b,n[9]=F):F=n[9];let L;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(C,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),n[10]=L):L=n[10];let R=!!_.keyName,z;n[11]===f?z=n[12]:(z=f(`keyName`),n[11]=f,n[12]=z);let B;n[13]!==R||n[14]!==z?(B=(0,N.jsx)(p,{"aria-invalid":R,id:`keyName`,placeholder:`my-key-pair…`,...z}),n[13]=R,n[14]=z,n[15]=B):B=n[15];let V;n[16]===_.keyName?V=n[17]:(V=(0,N.jsx)(w,{errors:[_.keyName]}),n[16]=_.keyName,n[17]=V);let H;n[18]!==B||n[19]!==V?(H=(0,N.jsxs)(T,{children:[L,B,V]}),n[18]=B,n[19]=V,n[20]=H):H=n[20];let U;n[21]===h?U=n[22]:(U=I(h),n[21]=h,n[22]=U);let W;n[23]===U?W=n[24]:(W=(0,N.jsx)(i,{commands:U}),n[23]=U,n[24]=W);let G;n[25]===r?G=n[26]:(G=async()=>await r({to:`/ec2/describe-key-pairs`}),n[25]=r,n[26]=G);let K;n[27]!==a.isPending||n[28]!==v||n[29]!==G?(K=(0,N.jsx)(A,{isPending:a.isPending,isSubmitting:v,onCancel:G,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),n[27]=a.isPending,n[28]=v,n[29]=G,n[30]=K):K=n[30];let q;n[31]!==H||n[32]!==W||n[33]!==K||n[34]!==F?(q=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[H,W,K]}),n[31]=H,n[32]=W,n[33]=K,n[34]=F,n[35]=q):q=n[35];let J;n[36]===s?J=n[37]:(J=s&&(0,N.jsx)(P,{keyMaterial:s.material,keyName:s.keyName,open:!!s}),n[36]=s,n[37]=J);let Y;return n[38]!==q||n[39]!==J||n[40]!==O?(Y=(0,N.jsxs)(N.Fragment,{children:[x,S,O,q,J]}),n[38]=q,n[39]=J,n[40]=O,n[41]=Y):Y=n[41],Y}function I(e){let t=e(`keyName`);return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js index 4bd822f14..a7baf312a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js @@ -1,4 +1,4 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{V as o}from"./SignatureV4.js";import{t as s}from"./back-link.js";import{a as c,i as l,n as u,r as d,t as f}from"./select.js";import{t as p}from"./plus.js";import{t as m}from"./cli-command-panel.js";import{t as h}from"./trash-2.js";import{t as g}from"./button.js";import{_,p as ee,x as te}from"./ec22.js";import{n as ne}from"./elbv2.js";import{c as re}from"./elbv22.js";import{L as v}from"./index.js";import{t as ie}from"./page-heading.js";import{a as y,r as b,t as x}from"./field.js";import{n as S,r as C,t as w}from"./zod.js";import{t as T}from"./form-actions.js";import{t as E}from"./target-group-form.js";import{n as D,r as O}from"./elbv23.js";var k=e(n(),1),A=t();function ae(e){let t=o(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function oe(e){let t=o(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function se(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function j(){let e=a(),{data:t}=i(te),{data:n}=i(_),{data:o}=i(ee),{data:j}=i(re),M=ne(),[N,P]=(0,k.useState)(null),F=t.Vpcs??[],I=n.Subnets??[],L=o.SecurityGroups??[],R=j.TargetGroups??[],z=C({resolver:w(D),defaultValues:{name:``,scheme:`internet-facing`,vpcId:F[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``}}}),B=C({resolver:w(O),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:F[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:V,register:H,watch:U,control:W,setValue:G,getValues:K,formState:{errors:q,isSubmitting:le}}=z,J=U(`vpcId`),ue=U(`subnetIds`),de=U(`securityGroupIds`),Y=U(`listener.targetGroupMode`),fe=U(`tags`),X=I.filter(e=>e.VpcId===J),Z=L.filter(e=>e.VpcId===J),Q=R.filter(e=>e.VpcId===J),pe=(e=``)=>{let t=e??``;G(`vpcId`,t,{shouldValidate:!0}),G(`subnetIds`,[],{shouldValidate:!0}),G(`securityGroupIds`,[]),G(`listener.existingTargetGroupArn`,``),B.setValue(`vpcId`,t)},me=e=>{let t=K(`subnetIds`);G(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},he=e=>{let t=K(`securityGroupIds`);G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},ge=async t=>{P(null);let n;if(t.listener.targetGroupMode===`new`){if(!await B.trigger())return;n=B.getValues()}let r=await M.mutateAsync({lb:{name:t.name,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,newTargetGroup:n}});P(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=se(X);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(ie,{title:`Create load balancer`}),M.error&&(0,A.jsx)(r,{error:M.error,msg:`Failed to create load balancer`}),N?.error&&(0,A.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,A.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,N.failedStep]}),(0,A.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:N.error.message}),N.created.length>0&&(0,A.jsxs)(`div`,{className:`mt-3`,children:[(0,A.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,A.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:N.created.map((e,t)=>(0,A.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,A.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V(ge),children:[(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:(0,A.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,A.jsx)(v,{"aria-invalid":!!q.name,id:`lb-name`,placeholder:`my-load-balancer`,...H(`name`)}),(0,A.jsx)(b,{errors:[q.name]})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:`Scheme`}),(0,A.jsx)(S,{control:W,name:`scheme`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:(0,A.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,A.jsx)(S,{control:W,name:`vpcId`,render:({field:e})=>(0,A.jsxs)(f,{onValueChange:e=>pe(e),value:e.value??``,children:[(0,A.jsx)(l,{"aria-invalid":!!q.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,A.jsx)(c,{placeholder:`Select VPC`})}),(0,A.jsx)(u,{children:F.map(e=>(0,A.jsx)(d,{value:e.VpcId??``,children:ae(e)},e.VpcId))})]})}),(0,A.jsx)(b,{errors:[q.vpcId]})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:`Subnets (select at least 2)`}),$.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,A.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:ue.includes(e.SubnetId??``),onChange:()=>me(e.SubnetId??``),type:`checkbox`}),(0,A.jsx)(`span`,{className:`font-mono`,children:oe(e)})]},e.SubnetId))})]},e.az))}),(0,A.jsx)(b,{errors:[q.subnetIds]})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:`Security groups`}),Z.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:de.includes(e.GroupId??``),onChange:()=>he(e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:`Tags`}),(0,A.jsxs)(`div`,{className:`space-y-2`,children:[fe.map((e,t)=>(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(v,{placeholder:`Key`,...H(`tags.${t}.key`)}),(0,A.jsx)(v,{placeholder:`Value`,...H(`tags.${t}.value`)}),(0,A.jsx)(g,{onClick:()=>G(`tags`,K(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,A.jsx)(h,{className:`size-3.5`})})]},t)),(0,A.jsxs)(g,{onClick:()=>G(`tags`,[...K(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,A.jsx)(p,{className:`size-3.5`}),`Add tag`]})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:(0,A.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,A.jsx)(S,{control:W,name:`listener.protocol`,render:({field:e})=>(0,A.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(l,{className:`w-full`,id:`listener-protocol`,children:(0,A.jsx)(c,{})}),(0,A.jsx)(u,{children:(0,A.jsx)(d,{value:`HTTP`,children:`HTTP`})})]})})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:(0,A.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,A.jsx)(v,{"aria-invalid":!!q.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...H(`listener.port`,{valueAsNumber:!0})}),(0,A.jsx)(b,{errors:[q.listener?.port]})]}),(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:`Default target group`}),(0,A.jsx)(S,{control:W,name:`listener.targetGroupMode`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Y===`existing`&&(0,A.jsxs)(x,{children:[(0,A.jsx)(y,{children:(0,A.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,A.jsx)(S,{control:W,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,A.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(l,{"aria-invalid":!!q.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,A.jsx)(c,{placeholder:`Select target group`})}),(0,A.jsx)(u,{children:Q.map(e=>(0,A.jsxs)(d,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,A.jsx)(b,{errors:[q.listener?.existingTargetGroupArn]}),Q.length===0&&(0,A.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Y===`new`&&(0,A.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,A.jsx)(E,{form:B,vpcs:F})})]}),(0,A.jsx)(m,{commands:ce(U,B.watch)}),(0,A.jsx)(T,{isPending:M.isPending,isSubmitting:le,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create load balancer`})]})]})}function ce(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`scheme`)||`internet-facing`,s=r(`subnetIds`),c=r(`securityGroupIds`),l=n(`listener.protocol`)||`HTTP`,u=i(`listener.port`)??80,d=n(`listener.targetGroupMode`),f=n(`listener.existingTargetGroupArn`),p=[],m={type:`comment`,value:`# Create ALB with listener and default target group +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as a,r as o,t as s}from"./select.js";import{t as c}from"./plus.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./trash-2.js";import{n as d}from"./elbv2.js";import{Da as f,Do as p,J as m,Q as h,co as g,j as _,nt as v,ro as y,so as b,ya as x,yi as S}from"./index.js";import{t as ee}from"./page-heading.js";import{a as C,r as w,t as T}from"./field.js";import{n as E,r as D,t as O}from"./zod.js";import{t as te}from"./form-actions.js";import{t as ne}from"./target-group-form.js";import{n as re,r as ie}from"./elbv22.js";var k=p(g(),1),A=b();function j(e){let t=f(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function M(e){let t=f(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function ae(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function N(){let f=y(),{data:p}=t(v),{data:g}=t(h),{data:b}=t(m),{data:N}=t(_),P=d(),[F,I]=(0,k.useState)(null),L=p.Vpcs??[],se=g.Subnets??[],ce=b.SecurityGroups??[],R=N.TargetGroups??[],z=D({resolver:O(re),defaultValues:{name:``,scheme:`internet-facing`,vpcId:L[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``}}}),B=D({resolver:O(ie),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:L[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:V,register:H,watch:U,control:W,setValue:G,getValues:K,formState:{errors:q,isSubmitting:le}}=z,J=U(`vpcId`),ue=U(`subnetIds`),de=U(`securityGroupIds`),Y=U(`listener.targetGroupMode`),fe=U(`tags`),X=se.filter(e=>e.VpcId===J),Z=ce.filter(e=>e.VpcId===J),Q=R.filter(e=>e.VpcId===J),pe=(e=``)=>{let t=e??``;G(`vpcId`,t,{shouldValidate:!0}),G(`subnetIds`,[],{shouldValidate:!0}),G(`securityGroupIds`,[]),G(`listener.existingTargetGroupArn`,``),B.setValue(`vpcId`,t)},me=e=>{let t=K(`subnetIds`);G(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},he=e=>{let t=K(`securityGroupIds`);G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},ge=async e=>{I(null);let t;if(e.listener.targetGroupMode===`new`){if(!await B.trigger())return;t=B.getValues()}let n=await P.mutateAsync({lb:{name:e.name,scheme:e.scheme,vpcId:e.vpcId,subnetIds:e.subnetIds,securityGroupIds:e.securityGroupIds,tags:e.tags},listener:{protocol:e.listener.protocol,port:e.listener.port,targetGroupMode:e.listener.targetGroupMode,existingTargetGroupArn:e.listener.existingTargetGroupArn,newTargetGroup:t}});I(n),!n.error&&n.loadBalancerArn&&f({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n.loadBalancerArn)}})},$=ae(X);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(n,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(ee,{title:`Create load balancer`}),P.error&&(0,A.jsx)(e,{error:P.error,msg:`Failed to create load balancer`}),F?.error&&(0,A.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,A.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,F.failedStep]}),(0,A.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:F.error.message}),F.created.length>0&&(0,A.jsxs)(`div`,{className:`mt-3`,children:[(0,A.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,A.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:F.created.map((e,t)=>(0,A.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,A.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V(ge),children:[(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:(0,A.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,A.jsx)(S,{"aria-invalid":!!q.name,id:`lb-name`,placeholder:`my-load-balancer`,...H(`name`)}),(0,A.jsx)(w,{errors:[q.name]})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:`Scheme`}),(0,A.jsx)(E,{control:W,name:`scheme`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:(0,A.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,A.jsx)(E,{control:W,name:`vpcId`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e=>pe(e),value:e.value??``,children:[(0,A.jsx)(i,{"aria-invalid":!!q.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,A.jsx)(r,{placeholder:`Select VPC`})}),(0,A.jsx)(a,{children:L.map(e=>(0,A.jsx)(o,{value:e.VpcId??``,children:j(e)},e.VpcId))})]})}),(0,A.jsx)(w,{errors:[q.vpcId]})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:`Subnets (select at least 2)`}),$.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,A.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Subnet ${M(e)}`,checked:ue.includes(e.SubnetId??``),onChange:()=>me(e.SubnetId??``),type:`checkbox`}),(0,A.jsx)(`span`,{className:`font-mono`,children:M(e)})]},e.SubnetId))})]},e.az))}),(0,A.jsx)(w,{errors:[q.subnetIds]})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:`Security groups`}),Z.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:de.includes(e.GroupId??``),onChange:()=>he(e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:`Tags`}),(0,A.jsxs)(`div`,{className:`space-y-2`,children:[fe.map((e,t)=>(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(S,{placeholder:`Key`,...H(`tags.${t}.key`)}),(0,A.jsx)(S,{placeholder:`Value`,...H(`tags.${t}.value`)}),(0,A.jsx)(x,{onClick:()=>G(`tags`,K(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,A.jsx)(u,{className:`size-3.5`})})]},t)),(0,A.jsxs)(x,{onClick:()=>G(`tags`,[...K(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,A.jsx)(c,{className:`size-3.5`}),`Add tag`]})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:(0,A.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,A.jsx)(E,{control:W,name:`listener.protocol`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(i,{className:`w-full`,id:`listener-protocol`,children:(0,A.jsx)(r,{})}),(0,A.jsx)(a,{children:(0,A.jsx)(o,{value:`HTTP`,children:`HTTP`})})]})})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:(0,A.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,A.jsx)(S,{"aria-invalid":!!q.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...H(`listener.port`,{valueAsNumber:!0})}),(0,A.jsx)(w,{errors:[q.listener?.port]})]}),(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:`Default target group`}),(0,A.jsx)(E,{control:W,name:`listener.targetGroupMode`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Y===`existing`&&(0,A.jsxs)(T,{children:[(0,A.jsx)(C,{children:(0,A.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,A.jsx)(E,{control:W,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,A.jsxs)(s,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(i,{"aria-invalid":!!q.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,A.jsx)(r,{placeholder:`Select target group`})}),(0,A.jsx)(a,{children:Q.map(e=>(0,A.jsxs)(o,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,A.jsx)(w,{errors:[q.listener?.existingTargetGroupArn]}),Q.length===0&&(0,A.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Y===`new`&&(0,A.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,A.jsx)(ne,{form:B,vpcs:L})})]}),(0,A.jsx)(l,{commands:oe(U,B.watch)}),(0,A.jsx)(te,{isPending:P.isPending,isSubmitting:le,onCancel:async()=>await f({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create load balancer`})]})]})}function oe(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`scheme`)||`internet-facing`,s=r(`subnetIds`),c=r(`securityGroupIds`),l=n(`listener.protocol`)||`HTTP`,u=i(`listener.port`)??80,d=n(`listener.targetGroupMode`),f=n(`listener.existingTargetGroupArn`),p=[],m={type:`comment`,value:`# Create ALB with listener and default target group `},h=e=>{let n=t(e);return typeof n==`string`?n:``},g=e=>{let n=t(e);return typeof n==`number`&&Number.isFinite(n)?n:void 0};if(d===`new`){let e=h(`name`)||``,t=g(`port`)??80,n=h(`vpcId`);p.push({label:`Create Target Group`,parts:[m,{type:`variable`,value:`TG_ARN=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${e}`},{type:`flag`,value:` \\ @@ -14,4 +14,4 @@ import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./err --load-balancer-arn`},{type:`variable`,value:` "$LB_ARN"`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${l}`},{type:`flag`,value:` \\ --port`},{type:`value`,value:` ${u}`},{type:`flag`,value:` \\ - --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}]}),p}var M=j;export{M as component}; \ No newline at end of file + --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}]}),p}var P=N;export{P as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js index d7ab8188e..e5aa797c7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useNavigate.js";import{t as i}from"./back-link.js";import{a as ee,i as a,n as o,r as s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{c as u}from"./ec2.js";import{L as d}from"./index.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{n as g,r as _,t as v}from"./zod.js";import{i as y}from"./ec23.js";import{t as b}from"./form-actions.js";var te=t(),x=e();function S(){let e=(0,te.c)(52),t=r(),S=u(),C;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(C={resolver:v(y),defaultValues:{groupName:``,strategy:`spread`}},e[0]=C):C=e[0];let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=_(C),{errors:k,isSubmitting:A}=O,j;e[1]!==S||e[2]!==t?(j=async e=>{t({to:`/ec2/describe-placement-groups/$id`,params:{id:(await S.mutateAsync(e)).PlacementGroup?.GroupId??``}})},e[1]=S,e[2]=t,e[3]=j):j=e[3];let M=j,N,P;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,x.jsx)(i,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,x.jsx)(f,{title:`Create Placement Group`}),e[4]=N,e[5]=P):(N=e[4],P=e[5]);let F;e[6]===S.error?F=e[7]:(F=S.error&&(0,x.jsx)(n,{error:S.error,msg:`Failed to create placement group`}),e[6]=S.error,e[7]=F);let I;e[8]!==T||e[9]!==M?(I=T(M),e[8]=T,e[9]=M,e[10]=I):I=e[10];let L;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,x.jsx)(p,{children:(0,x.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[11]=L):L=e[11];let R=!!k.groupName,z;e[12]===E?z=e[13]:(z=E(`groupName`),e[12]=E,e[13]=z);let B;e[14]!==R||e[15]!==z?(B=(0,x.jsx)(d,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[14]=R,e[15]=z,e[16]=B):B=e[16];let V;e[17]===k.groupName?V=e[18]:(V=(0,x.jsx)(m,{errors:[k.groupName]}),e[17]=k.groupName,e[18]=V);let H;e[19]!==B||e[20]!==V?(H=(0,x.jsxs)(h,{children:[L,B,V]}),e[19]=B,e[20]=V,e[21]=H):H=e[21];let U;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,x.jsx)(p,{children:(0,x.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[22]=U):U=e[22];let W;e[23]===k.strategy?W=e[24]:(W=e=>{let{field:t}=e;return(0,x.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,x.jsx)(a,{"aria-invalid":!!k.strategy,className:`w-full`,id:`strategy`,children:(0,x.jsx)(ee,{})}),(0,x.jsxs)(o,{children:[(0,x.jsx)(s,{value:`spread`,children:`spread`}),(0,x.jsx)(s,{value:`cluster`,children:`cluster`})]})]})},e[23]=k.strategy,e[24]=W);let G;e[25]!==w||e[26]!==W?(G=(0,x.jsx)(g,{control:w,name:`strategy`,render:W}),e[25]=w,e[26]=W,e[27]=G):G=e[27];let K;e[28]===k.strategy?K=e[29]:(K=(0,x.jsx)(m,{errors:[k.strategy]}),e[28]=k.strategy,e[29]=K);let q;e[30]!==G||e[31]!==K?(q=(0,x.jsxs)(h,{children:[U,G,K]}),e[30]=G,e[31]=K,e[32]=q):q=e[32];let J;e[33]===D?J=e[34]:(J=ne(D),e[33]=D,e[34]=J);let Y;e[35]===J?Y=e[36]:(Y=(0,x.jsx)(l,{commands:J}),e[35]=J,e[36]=Y);let X;e[37]===t?X=e[38]:(X=async()=>await t({to:`/ec2/describe-placement-groups`}),e[37]=t,e[38]=X);let Z;e[39]!==S.isPending||e[40]!==A||e[41]!==X?(Z=(0,x.jsx)(b,{isPending:S.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[39]=S.isPending,e[40]=A,e[41]=X,e[42]=Z):Z=e[42];let Q;e[43]!==H||e[44]!==q||e[45]!==Y||e[46]!==Z||e[47]!==I?(Q=(0,x.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[43]=H,e[44]=q,e[45]=Y,e[46]=Z,e[47]=I,e[48]=Q):Q=e[48];let $;return e[49]!==Q||e[50]!==F?($=(0,x.jsxs)(x.Fragment,{children:[N,P,F,Q]}),e[49]=Q,e[50]=F,e[51]=$):$=e[51],$}function C(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ne(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{a as n,i as r,n as i,r as a,t as ee}from"./select.js";import{t as o}from"./cli-command-panel.js";import{c as s}from"./ec2.js";import{eo as c,ro as l,so as u,yi as d}from"./index.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{n as g,r as _,t as v}from"./zod.js";import{i as te}from"./ec22.js";import{t as y}from"./form-actions.js";var b=c(),x=u();function S(){let c=(0,b.c)(52),u=l(),S=s(),C;c[0]===Symbol.for(`react.memo_cache_sentinel`)?(C={resolver:v(te),defaultValues:{groupName:``,strategy:`spread`}},c[0]=C):C=c[0];let{control:T,handleSubmit:E,register:D,watch:O,formState:ne}=_(C),{errors:k,isSubmitting:A}=ne,j;c[1]!==S||c[2]!==u?(j=async e=>{u({to:`/ec2/describe-placement-groups/$id`,params:{id:(await S.mutateAsync(e)).PlacementGroup?.GroupId??``}})},c[1]=S,c[2]=u,c[3]=j):j=c[3];let M=j,N,P;c[4]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,x.jsx)(t,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,x.jsx)(f,{title:`Create Placement Group`}),c[4]=N,c[5]=P):(N=c[4],P=c[5]);let F;c[6]===S.error?F=c[7]:(F=S.error&&(0,x.jsx)(e,{error:S.error,msg:`Failed to create placement group`}),c[6]=S.error,c[7]=F);let I;c[8]!==E||c[9]!==M?(I=E(M),c[8]=E,c[9]=M,c[10]=I):I=c[10];let L;c[11]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,x.jsx)(p,{children:(0,x.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),c[11]=L):L=c[11];let R=!!k.groupName,z;c[12]===D?z=c[13]:(z=D(`groupName`),c[12]=D,c[13]=z);let B;c[14]!==R||c[15]!==z?(B=(0,x.jsx)(d,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),c[14]=R,c[15]=z,c[16]=B):B=c[16];let V;c[17]===k.groupName?V=c[18]:(V=(0,x.jsx)(m,{errors:[k.groupName]}),c[17]=k.groupName,c[18]=V);let H;c[19]!==B||c[20]!==V?(H=(0,x.jsxs)(h,{children:[L,B,V]}),c[19]=B,c[20]=V,c[21]=H):H=c[21];let U;c[22]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,x.jsx)(p,{children:(0,x.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),c[22]=U):U=c[22];let W;c[23]===k.strategy?W=c[24]:(W=e=>{let{field:t}=e;return(0,x.jsxs)(ee,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,x.jsx)(r,{"aria-invalid":!!k.strategy,className:`w-full`,id:`strategy`,children:(0,x.jsx)(n,{})}),(0,x.jsxs)(i,{children:[(0,x.jsx)(a,{value:`spread`,children:`spread`}),(0,x.jsx)(a,{value:`cluster`,children:`cluster`})]})]})},c[23]=k.strategy,c[24]=W);let G;c[25]!==T||c[26]!==W?(G=(0,x.jsx)(g,{control:T,name:`strategy`,render:W}),c[25]=T,c[26]=W,c[27]=G):G=c[27];let K;c[28]===k.strategy?K=c[29]:(K=(0,x.jsx)(m,{errors:[k.strategy]}),c[28]=k.strategy,c[29]=K);let q;c[30]!==G||c[31]!==K?(q=(0,x.jsxs)(h,{children:[U,G,K]}),c[30]=G,c[31]=K,c[32]=q):q=c[32];let J;c[33]===O?J=c[34]:(J=w(O),c[33]=O,c[34]=J);let Y;c[35]===J?Y=c[36]:(Y=(0,x.jsx)(o,{commands:J}),c[35]=J,c[36]=Y);let X;c[37]===u?X=c[38]:(X=async()=>await u({to:`/ec2/describe-placement-groups`}),c[37]=u,c[38]=X);let Z;c[39]!==S.isPending||c[40]!==A||c[41]!==X?(Z=(0,x.jsx)(y,{isPending:S.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),c[39]=S.isPending,c[40]=A,c[41]=X,c[42]=Z):Z=c[42];let Q;c[43]!==H||c[44]!==q||c[45]!==Y||c[46]!==Z||c[47]!==I?(Q=(0,x.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),c[43]=H,c[44]=q,c[45]=Y,c[46]=Z,c[47]=I,c[48]=Q):Q=c[48];let $;return c[49]!==Q||c[50]!==F?($=(0,x.jsxs)(x.Fragment,{children:[N,P,F,Q]}),c[49]=Q,c[50]=F,c[51]=$):$=c[51],$}function C(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function w(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n?C(n):``}`},{type:`flag`,value:` \\ --strategy`},{type:`value`,value:` ${i||`spread`}`}]}]}export{S as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js index 049e49da7..25dba942b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useNavigate.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{r as o}from"./iam.js";import{L as s}from"./index.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as f}from"./textarea.js";import{r as p,t as m}from"./zod.js";import{t as h}from"./form-actions.js";import{t as g}from"./iam3.js";var ee=t(),_=e(),te=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function v(){let e=(0,ee.c)(63),t=r(),v=o(),y;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={resolver:m(g),defaultValues:{policyDocument:te}},e[0]=y):y=e[0];let{handleSubmit:b,register:x,watch:S,formState:re}=p(y),{errors:C,isSubmitting:w}=re,T;e[1]!==v||e[2]!==t?(T=async e=>{await v.mutateAsync(e),t({to:`/iam/list-policies`})},e[1]=v,e[2]=t,e[3]=T):T=e[3];let E=T,D,O;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,_.jsx)(i,{to:`/iam/list-policies`,children:`Back to policies`}),O=(0,_.jsx)(c,{title:`Create Policy`}),e[4]=D,e[5]=O):(D=e[4],O=e[5]);let k;e[6]===v.error?k=e[7]:(k=v.error&&(0,_.jsx)(n,{error:v.error,msg:`Failed to create policy`}),e[6]=v.error,e[7]=k);let A;e[8]!==b||e[9]!==E?(A=b(E),e[8]=b,e[9]=E,e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),e[11]=j):j=e[11];let M=!!C.policyName,N;e[12]===x?N=e[13]:(N=x(`policyName`),e[12]=x,e[13]=N);let P;e[14]!==M||e[15]!==N?(P=(0,_.jsx)(s,{"aria-invalid":M,id:`policyName`,placeholder:`my-policy...`,...N}),e[14]=M,e[15]=N,e[16]=P):P=e[16];let F;e[17]===C.policyName?F=e[18]:(F=(0,_.jsx)(u,{errors:[C.policyName]}),e[17]=C.policyName,e[18]=F);let I;e[19]!==P||e[20]!==F?(I=(0,_.jsxs)(d,{children:[j,P,F]}),e[19]=P,e[20]=F,e[21]=I):I=e[21];let L;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[22]=L):L=e[22];let R;e[23]===x?R=e[24]:(R=x(`description`),e[23]=x,e[24]=R);let z;e[25]===R?z=e[26]:(z=(0,_.jsx)(s,{id:`description`,placeholder:`A brief description of this policy...`,...R}),e[25]=R,e[26]=z);let B;e[27]===C.description?B=e[28]:(B=(0,_.jsx)(u,{errors:[C.description]}),e[27]=C.description,e[28]=B);let V;e[29]!==z||e[30]!==B?(V=(0,_.jsxs)(d,{children:[L,z,B]}),e[29]=z,e[30]=B,e[31]=V):V=e[31];let H;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),e[32]=H):H=e[32];let U=!!C.policyDocument,W;e[33]===x?W=e[34]:(W=x(`policyDocument`),e[33]=x,e[34]=W);let G;e[35]!==U||e[36]!==W?(G=(0,_.jsx)(f,{"aria-invalid":U,className:`font-mono text-sm`,id:`policyDocument`,rows:15,...W}),e[35]=U,e[36]=W,e[37]=G):G=e[37];let K;e[38]===C.policyDocument?K=e[39]:(K=(0,_.jsx)(u,{errors:[C.policyDocument]}),e[38]=C.policyDocument,e[39]=K);let q;e[40]!==G||e[41]!==K?(q=(0,_.jsxs)(d,{children:[H,G,K]}),e[40]=G,e[41]=K,e[42]=q):q=e[42];let J;e[43]===S?J=e[44]:(J=ne(S),e[43]=S,e[44]=J);let Y;e[45]===J?Y=e[46]:(Y=(0,_.jsx)(a,{commands:J}),e[45]=J,e[46]=Y);let X;e[47]===t?X=e[48]:(X=async()=>await t({to:`/iam/list-policies`}),e[47]=t,e[48]=X);let Z;e[49]!==v.isPending||e[50]!==w||e[51]!==X?(Z=(0,_.jsx)(h,{isPending:v.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),e[49]=v.isPending,e[50]=w,e[51]=X,e[52]=Z):Z=e[52];let Q;e[53]!==I||e[54]!==V||e[55]!==q||e[56]!==Y||e[57]!==Z||e[58]!==A?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,V,q,Y,Z]}),e[53]=I,e[54]=V,e[55]=q,e[56]=Y,e[57]=Z,e[58]=A,e[59]=Q):Q=e[59];let $;return e[60]!==Q||e[61]!==k?($=(0,_.jsxs)(_.Fragment,{children:[D,O,k,Q]}),e[60]=Q,e[61]=k,e[62]=$):$=e[62],$}function ne(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{r}from"./iam.js";import{eo as i,ro as a,so as o,yi as s}from"./index.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as f}from"./textarea.js";import{r as p,t as m}from"./zod.js";import{t as h}from"./form-actions.js";import{t as g}from"./iam2.js";var ee=i(),_=o(),te=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function v(){let i=(0,ee.c)(63),o=a(),v=r(),y;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={resolver:m(g),defaultValues:{policyDocument:te}},i[0]=y):y=i[0];let{handleSubmit:b,register:x,watch:S,formState:re}=p(y),{errors:C,isSubmitting:w}=re,T;i[1]!==v||i[2]!==o?(T=async e=>{await v.mutateAsync(e),o({to:`/iam/list-policies`})},i[1]=v,i[2]=o,i[3]=T):T=i[3];let E=T,D,O;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,_.jsx)(t,{to:`/iam/list-policies`,children:`Back to policies`}),O=(0,_.jsx)(c,{title:`Create Policy`}),i[4]=D,i[5]=O):(D=i[4],O=i[5]);let k;i[6]===v.error?k=i[7]:(k=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create policy`}),i[6]=v.error,i[7]=k);let A;i[8]!==b||i[9]!==E?(A=b(E),i[8]=b,i[9]=E,i[10]=A):A=i[10];let j;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),i[11]=j):j=i[11];let M=!!C.policyName,N;i[12]===x?N=i[13]:(N=x(`policyName`),i[12]=x,i[13]=N);let P;i[14]!==M||i[15]!==N?(P=(0,_.jsx)(s,{"aria-invalid":M,id:`policyName`,placeholder:`my-policy...`,...N}),i[14]=M,i[15]=N,i[16]=P):P=i[16];let F;i[17]===C.policyName?F=i[18]:(F=(0,_.jsx)(u,{errors:[C.policyName]}),i[17]=C.policyName,i[18]=F);let I;i[19]!==P||i[20]!==F?(I=(0,_.jsxs)(d,{children:[j,P,F]}),i[19]=P,i[20]=F,i[21]=I):I=i[21];let L;i[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),i[22]=L):L=i[22];let R;i[23]===x?R=i[24]:(R=x(`description`),i[23]=x,i[24]=R);let z;i[25]===R?z=i[26]:(z=(0,_.jsx)(s,{id:`description`,placeholder:`A brief description of this policy...`,...R}),i[25]=R,i[26]=z);let B;i[27]===C.description?B=i[28]:(B=(0,_.jsx)(u,{errors:[C.description]}),i[27]=C.description,i[28]=B);let V;i[29]!==z||i[30]!==B?(V=(0,_.jsxs)(d,{children:[L,z,B]}),i[29]=z,i[30]=B,i[31]=V):V=i[31];let H;i[32]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),i[32]=H):H=i[32];let U=!!C.policyDocument,W;i[33]===x?W=i[34]:(W=x(`policyDocument`),i[33]=x,i[34]=W);let G;i[35]!==U||i[36]!==W?(G=(0,_.jsx)(f,{"aria-invalid":U,className:`font-mono text-sm`,id:`policyDocument`,rows:15,...W}),i[35]=U,i[36]=W,i[37]=G):G=i[37];let K;i[38]===C.policyDocument?K=i[39]:(K=(0,_.jsx)(u,{errors:[C.policyDocument]}),i[38]=C.policyDocument,i[39]=K);let q;i[40]!==G||i[41]!==K?(q=(0,_.jsxs)(d,{children:[H,G,K]}),i[40]=G,i[41]=K,i[42]=q):q=i[42];let J;i[43]===S?J=i[44]:(J=ne(S),i[43]=S,i[44]=J);let Y;i[45]===J?Y=i[46]:(Y=(0,_.jsx)(n,{commands:J}),i[45]=J,i[46]=Y);let X;i[47]===o?X=i[48]:(X=async()=>await o({to:`/iam/list-policies`}),i[47]=o,i[48]=X);let Z;i[49]!==v.isPending||i[50]!==w||i[51]!==X?(Z=(0,_.jsx)(h,{isPending:v.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),i[49]=v.isPending,i[50]=w,i[51]=X,i[52]=Z):Z=i[52];let Q;i[53]!==I||i[54]!==V||i[55]!==q||i[56]!==Y||i[57]!==Z||i[58]!==A?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,V,q,Y,Z]}),i[53]=I,i[54]=V,i[55]=q,i[56]=Y,i[57]=Z,i[58]=A,i[59]=Q):Q=i[59];let $;return i[60]!==Q||i[61]!==k?($=(0,_.jsxs)(_.Fragment,{children:[D,O,k,Q]}),i[60]=Q,i[61]=k,i[62]=$):$=i[62],$}function ne(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ --policy-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Policy`,parts:s}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js index 4243137f7..0564cedfa 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{V as a}from"./SignatureV4.js";import{t as o}from"./back-link.js";import{a as s,i as ee,n as te,r as c,t as ne}from"./select.js";import{t as re}from"./cli-command-panel.js";import{l as ie}from"./ec2.js";import{x as ae}from"./ec22.js";import{L as l}from"./index.js";import{t as oe}from"./page-heading.js";import{a as u,r as d,t as f}from"./field.js";import{n as se,r as ce,t as le}from"./zod.js";import{a as ue}from"./ec23.js";import{t as de}from"./form-actions.js";var fe=t(),p=e();function m(){let e=(0,fe.c)(69),t=i(),{data:a}=r(ae),c=ie(),m;e[0]===a.Vpcs?m=e[1]:(m=a.Vpcs??[],e[0]=a.Vpcs,e[1]=m);let h=m,g;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=le(ue),e[2]=g):g=e[2];let _=h[0]?.VpcId??``,v;e[3]===_?v=e[4]:(v={resolver:g,defaultValues:{groupName:``,description:``,vpcId:_}},e[3]=_,e[4]=v);let{control:y,handleSubmit:b,register:x,watch:S,formState:he}=ce(v),{errors:C,isSubmitting:w}=he,T;e[5]!==c||e[6]!==t?(T=async e=>{let n=(await c.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[5]=c,e[6]=t,e[7]=T):T=e[7];let E=T,D,O;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,p.jsx)(o,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,p.jsx)(oe,{title:`Create Security Group`}),e[8]=D,e[9]=O):(D=e[8],O=e[9]);let k;e[10]===c.error?k=e[11]:(k=c.error&&(0,p.jsx)(n,{error:c.error,msg:`Failed to create security group`}),e[10]=c.error,e[11]=k);let A;e[12]!==b||e[13]!==E?(A=b(E),e[12]=b,e[13]=E,e[14]=A):A=e[14];let j;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=j):j=e[15];let M=!!C.groupName,N;e[16]===x?N=e[17]:(N=x(`groupName`),e[16]=x,e[17]=N);let P;e[18]!==M||e[19]!==N?(P=(0,p.jsx)(l,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[18]=M,e[19]=N,e[20]=P):P=e[20];let F;e[21]===C.groupName?F=e[22]:(F=(0,p.jsx)(d,{errors:[C.groupName]}),e[21]=C.groupName,e[22]=F);let I;e[23]!==P||e[24]!==F?(I=(0,p.jsxs)(f,{children:[j,P,F]}),e[23]=P,e[24]=F,e[25]=I):I=e[25];let L;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[26]=L):L=e[26];let R=!!C.description,z;e[27]===x?z=e[28]:(z=x(`description`),e[27]=x,e[28]=z);let B;e[29]!==R||e[30]!==z?(B=(0,p.jsx)(l,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[29]=R,e[30]=z,e[31]=B):B=e[31];let V;e[32]===C.description?V=e[33]:(V=(0,p.jsx)(d,{errors:[C.description]}),e[32]=C.description,e[33]=V);let H;e[34]!==B||e[35]!==V?(H=(0,p.jsxs)(f,{children:[L,B,V]}),e[34]=B,e[35]=V,e[36]=H):H=e[36];let U;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[37]=U):U=e[37];let W;e[38]!==C.vpcId||e[39]!==h?(W=e=>{let{field:t}=e;return(0,p.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,p.jsx)(ee,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,p.jsx)(s,{})}),(0,p.jsx)(te,{children:h.map(pe)})]})},e[38]=C.vpcId,e[39]=h,e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==W?(G=(0,p.jsx)(se,{control:y,name:`vpcId`,render:W}),e[41]=y,e[42]=W,e[43]=G):G=e[43];let K;e[44]===C.vpcId?K=e[45]:(K=(0,p.jsx)(d,{errors:[C.vpcId]}),e[44]=C.vpcId,e[45]=K);let q;e[46]!==G||e[47]!==K?(q=(0,p.jsxs)(f,{children:[U,G,K]}),e[46]=G,e[47]=K,e[48]=q):q=e[48];let J;e[49]===S?J=e[50]:(J=me(S),e[49]=S,e[50]=J);let Y;e[51]===J?Y=e[52]:(Y=(0,p.jsx)(re,{commands:J}),e[51]=J,e[52]=Y);let X;e[53]===t?X=e[54]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[53]=t,e[54]=X);let Z;e[55]!==c.isPending||e[56]!==w||e[57]!==X?(Z=(0,p.jsx)(de,{isPending:c.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[55]=c.isPending,e[56]=w,e[57]=X,e[58]=Z):Z=e[58];let Q;e[59]!==I||e[60]!==H||e[61]!==q||e[62]!==Y||e[63]!==Z||e[64]!==A?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[59]=I,e[60]=H,e[61]=q,e[62]=Y,e[63]=Z,e[64]=A,e[65]=Q):Q=e[65];let $;return e[66]!==Q||e[67]!==k?($=(0,p.jsxs)(p.Fragment,{children:[D,O,k,Q]}),e[66]=Q,e[67]=k,e[68]=$):$=e[68],$}function pe(e){let t=a(e.Tags);return(0,p.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function me(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`vpcId`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i as ee,n as i,r as a,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{l as ne}from"./ec2.js";import{Da as s,eo as c,nt as re,ro as ie,so as l,yi as ae}from"./index.js";import{t as oe}from"./page-heading.js";import{a as u,r as d,t as f}from"./field.js";import{n as se,r as ce,t as le}from"./zod.js";import{a as ue}from"./ec22.js";import{t as de}from"./form-actions.js";var fe=c(),p=l();function m(){let a=(0,fe.c)(69),s=ie(),{data:c}=t(re),l=ne(),m;a[0]===c.Vpcs?m=a[1]:(m=c.Vpcs??[],a[0]=c.Vpcs,a[1]=m);let h=m,g;a[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=le(ue),a[2]=g):g=a[2];let _=h[0]?.VpcId??``,v;a[3]===_?v=a[4]:(v={resolver:g,defaultValues:{groupName:``,description:``,vpcId:_}},a[3]=_,a[4]=v);let{control:y,handleSubmit:b,register:x,watch:S,formState:he}=ce(v),{errors:C,isSubmitting:w}=he,T;a[5]!==l||a[6]!==s?(T=async e=>{let t=(await l.mutateAsync(e)).GroupId;s(t?{to:`/ec2/describe-security-groups/$id`,params:{id:t}}:{to:`/ec2/describe-security-groups`})},a[5]=l,a[6]=s,a[7]=T):T=a[7];let E=T,D,O;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,p.jsx)(n,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,p.jsx)(oe,{title:`Create Security Group`}),a[8]=D,a[9]=O):(D=a[8],O=a[9]);let k;a[10]===l.error?k=a[11]:(k=l.error&&(0,p.jsx)(e,{error:l.error,msg:`Failed to create security group`}),a[10]=l.error,a[11]=k);let A;a[12]!==b||a[13]!==E?(A=b(E),a[12]=b,a[13]=E,a[14]=A):A=a[14];let j;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),a[15]=j):j=a[15];let M=!!C.groupName,N;a[16]===x?N=a[17]:(N=x(`groupName`),a[16]=x,a[17]=N);let P;a[18]!==M||a[19]!==N?(P=(0,p.jsx)(ae,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),a[18]=M,a[19]=N,a[20]=P):P=a[20];let F;a[21]===C.groupName?F=a[22]:(F=(0,p.jsx)(d,{errors:[C.groupName]}),a[21]=C.groupName,a[22]=F);let I;a[23]!==P||a[24]!==F?(I=(0,p.jsxs)(f,{children:[j,P,F]}),a[23]=P,a[24]=F,a[25]=I):I=a[25];let L;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),a[26]=L):L=a[26];let R=!!C.description,z;a[27]===x?z=a[28]:(z=x(`description`),a[27]=x,a[28]=z);let B;a[29]!==R||a[30]!==z?(B=(0,p.jsx)(ae,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),a[29]=R,a[30]=z,a[31]=B):B=a[31];let V;a[32]===C.description?V=a[33]:(V=(0,p.jsx)(d,{errors:[C.description]}),a[32]=C.description,a[33]=V);let H;a[34]!==B||a[35]!==V?(H=(0,p.jsxs)(f,{children:[L,B,V]}),a[34]=B,a[35]=V,a[36]=H):H=a[36];let U;a[37]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),a[37]=U):U=a[37];let W;a[38]!==C.vpcId||a[39]!==h?(W=e=>{let{field:t}=e;return(0,p.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,p.jsx)(ee,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,p.jsx)(r,{})}),(0,p.jsx)(i,{children:h.map(pe)})]})},a[38]=C.vpcId,a[39]=h,a[40]=W):W=a[40];let G;a[41]!==y||a[42]!==W?(G=(0,p.jsx)(se,{control:y,name:`vpcId`,render:W}),a[41]=y,a[42]=W,a[43]=G):G=a[43];let K;a[44]===C.vpcId?K=a[45]:(K=(0,p.jsx)(d,{errors:[C.vpcId]}),a[44]=C.vpcId,a[45]=K);let q;a[46]!==G||a[47]!==K?(q=(0,p.jsxs)(f,{children:[U,G,K]}),a[46]=G,a[47]=K,a[48]=q):q=a[48];let J;a[49]===S?J=a[50]:(J=me(S),a[49]=S,a[50]=J);let Y;a[51]===J?Y=a[52]:(Y=(0,p.jsx)(te,{commands:J}),a[51]=J,a[52]=Y);let X;a[53]===s?X=a[54]:(X=async()=>await s({to:`/ec2/describe-security-groups`}),a[53]=s,a[54]=X);let Z;a[55]!==l.isPending||a[56]!==w||a[57]!==X?(Z=(0,p.jsx)(de,{isPending:l.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),a[55]=l.isPending,a[56]=w,a[57]=X,a[58]=Z):Z=a[58];let Q;a[59]!==I||a[60]!==H||a[61]!==q||a[62]!==Y||a[63]!==Z||a[64]!==A?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),a[59]=I,a[60]=H,a[61]=q,a[62]=Y,a[63]=Z,a[64]=A,a[65]=Q):Q=a[65];let $;return a[66]!==Q||a[67]!==k?($=(0,p.jsxs)(p.Fragment,{children:[D,O,k,Q]}),a[66]=Q,a[67]=k,a[68]=$):$=a[68],$}function pe(e){let t=s(e.Tags);return(0,p.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function me(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),ee=typeof r==`string`?r:``,i=e(`vpcId`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --description`},{type:`value`,value:` "${i||``}"`}];return o&&s.push({type:`flag`,value:` \\ - --vpc-id`},{type:`value`,value:` ${o}`}),[{label:`Create Security Group`,parts:s}]}export{m as component}; \ No newline at end of file + --description`},{type:`value`,value:` "${ee||``}"`}];return a&&o.push({type:`flag`,value:` \\ + --vpc-id`},{type:`value`,value:` ${a}`}),[{label:`Create Security Group`,parts:o}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js index 500488d0d..92fa2dbaa 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{t as a}from"./back-link.js";import{a as o,i as s,n as c,r as l,t as u}from"./select.js";import{t as d}from"./cli-command-panel.js";import{u as ee}from"./ec2.js";import{y as te}from"./ec22.js";import{_ as ne}from"./index.js";import{t as f}from"./page-heading.js";import{a as p,r as re,t as m}from"./field.js";import{t as h}from"./textarea.js";import{n as ie,r as ae,t as g}from"./zod.js";import{o as oe}from"./ec23.js";import{t as _}from"./form-actions.js";var se=t(),v=e();function y(){let e=(0,se.c)(51),t=i(),{data:l}=r(te),y=ee(),x;e[0]===l.Volumes?x=e[1]:(x=l.Volumes??[],e[0]=l.Volumes,e[1]=x);let S=x,{volumeId:C}=ne.useSearch(),w=C??S[0]?.VolumeId??``,T;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=g(oe),e[2]=T):T=e[2];let E;e[3]===w?E=e[4]:(E={resolver:T,defaultValues:{volumeId:w,description:``}},e[3]=w,e[4]=E);let{control:D,handleSubmit:O,register:k,watch:A,formState:j}=ae(E),{errors:M,isSubmitting:N}=j,P;e[5]!==y||e[6]!==t?(P=async e=>{await y.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[5]=y,e[6]=t,e[7]=P):P=e[7];let F=P,I,L;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,v.jsx)(a,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,v.jsx)(f,{title:`Create Snapshot`}),e[8]=I,e[9]=L):(I=e[8],L=e[9]);let R;e[10]===y.error?R=e[11]:(R=y.error&&(0,v.jsx)(n,{error:y.error,msg:`Failed to create snapshot`}),e[10]=y.error,e[11]=R);let z;e[12]!==O||e[13]!==F?(z=O(F),e[12]=O,e[13]=F,e[14]=z):z=e[14];let B;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[15]=B):B=e[15];let V;e[16]!==M.volumeId||e[17]!==S?(V=e=>{let{field:t}=e;return(0,v.jsxs)(u,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,v.jsx)(s,{"aria-invalid":!!M.volumeId,className:`w-full`,id:`volumeId`,children:(0,v.jsx)(o,{})}),(0,v.jsx)(c,{children:S.map(b)})]})},e[16]=M.volumeId,e[17]=S,e[18]=V):V=e[18];let H;e[19]!==D||e[20]!==V?(H=(0,v.jsx)(ie,{control:D,name:`volumeId`,render:V}),e[19]=D,e[20]=V,e[21]=H):H=e[21];let U;e[22]===M.volumeId?U=e[23]:(U=(0,v.jsx)(re,{errors:[M.volumeId]}),e[22]=M.volumeId,e[23]=U);let W;e[24]!==H||e[25]!==U?(W=(0,v.jsxs)(m,{children:[B,H,U]}),e[24]=H,e[25]=U,e[26]=W):W=e[26];let G;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[27]=G):G=e[27];let K;e[28]===k?K=e[29]:(K=k(`description`),e[28]=k,e[29]=K);let q;e[30]===K?q=e[31]:(q=(0,v.jsxs)(m,{children:[G,(0,v.jsx)(h,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[30]=K,e[31]=q);let J;e[32]===A?J=e[33]:(J=ce(A),e[32]=A,e[33]=J);let Y;e[34]===J?Y=e[35]:(Y=(0,v.jsx)(d,{commands:J}),e[34]=J,e[35]=Y);let X;e[36]===t?X=e[37]:(X=async()=>await t({to:`/ec2/describe-snapshots`}),e[36]=t,e[37]=X);let Z;e[38]!==y.isPending||e[39]!==N||e[40]!==X?(Z=(0,v.jsx)(_,{isPending:y.isPending,isSubmitting:N,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[38]=y.isPending,e[39]=N,e[40]=X,e[41]=Z):Z=e[41];let Q;e[42]!==W||e[43]!==q||e[44]!==Y||e[45]!==Z||e[46]!==z?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[42]=W,e[43]=q,e[44]=Y,e[45]=Z,e[46]=z,e[47]=Q):Q=e[47];let $;return e[48]!==Q||e[49]!==R?($=(0,v.jsxs)(v.Fragment,{children:[I,L,R,Q]}),e[48]=Q,e[49]=R,e[50]=$):$=e[50],$}function b(e){return(0,v.jsxs)(l,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function ce(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as a,r as o,t as s}from"./select.js";import{t as c}from"./cli-command-panel.js";import{u as l}from"./ec2.js";import{N as u,eo as d,et as f,ro as p,so as m}from"./index.js";import{t as h}from"./page-heading.js";import{a as g,r as ee,t as _}from"./field.js";import{t as te}from"./textarea.js";import{n as ne,r as re,t as v}from"./zod.js";import{o as ie}from"./ec22.js";import{t as y}from"./form-actions.js";var ae=d(),b=m();function x(){let o=(0,ae.c)(51),d=p(),{data:m}=t(f),x=l(),S;o[0]===m.Volumes?S=o[1]:(S=m.Volumes??[],o[0]=m.Volumes,o[1]=S);let C=S,{volumeId:ce}=u.useSearch(),w=ce??C[0]?.VolumeId??``,T;o[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=v(ie),o[2]=T):T=o[2];let E;o[3]===w?E=o[4]:(E={resolver:T,defaultValues:{volumeId:w,description:``}},o[3]=w,o[4]=E);let{control:D,handleSubmit:O,register:k,watch:A,formState:j}=re(E),{errors:M,isSubmitting:N}=j,P;o[5]!==x||o[6]!==d?(P=async e=>{await x.mutateAsync(e),d({to:`/ec2/describe-snapshots`})},o[5]=x,o[6]=d,o[7]=P):P=o[7];let F=P,I,L;o[8]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,b.jsx)(n,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,b.jsx)(h,{title:`Create Snapshot`}),o[8]=I,o[9]=L):(I=o[8],L=o[9]);let R;o[10]===x.error?R=o[11]:(R=x.error&&(0,b.jsx)(e,{error:x.error,msg:`Failed to create snapshot`}),o[10]=x.error,o[11]=R);let z;o[12]!==O||o[13]!==F?(z=O(F),o[12]=O,o[13]=F,o[14]=z):z=o[14];let B;o[15]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,b.jsx)(g,{children:(0,b.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),o[15]=B):B=o[15];let V;o[16]!==M.volumeId||o[17]!==C?(V=e=>{let{field:t}=e;return(0,b.jsxs)(s,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,b.jsx)(i,{"aria-invalid":!!M.volumeId,className:`w-full`,id:`volumeId`,children:(0,b.jsx)(r,{})}),(0,b.jsx)(a,{children:C.map(oe)})]})},o[16]=M.volumeId,o[17]=C,o[18]=V):V=o[18];let H;o[19]!==D||o[20]!==V?(H=(0,b.jsx)(ne,{control:D,name:`volumeId`,render:V}),o[19]=D,o[20]=V,o[21]=H):H=o[21];let U;o[22]===M.volumeId?U=o[23]:(U=(0,b.jsx)(ee,{errors:[M.volumeId]}),o[22]=M.volumeId,o[23]=U);let W;o[24]!==H||o[25]!==U?(W=(0,b.jsxs)(_,{children:[B,H,U]}),o[24]=H,o[25]=U,o[26]=W):W=o[26];let G;o[27]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,b.jsx)(g,{children:(0,b.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),o[27]=G):G=o[27];let K;o[28]===k?K=o[29]:(K=k(`description`),o[28]=k,o[29]=K);let q;o[30]===K?q=o[31]:(q=(0,b.jsxs)(_,{children:[G,(0,b.jsx)(te,{id:`description`,placeholder:`Snapshot description`,...K})]}),o[30]=K,o[31]=q);let J;o[32]===A?J=o[33]:(J=se(A),o[32]=A,o[33]=J);let Y;o[34]===J?Y=o[35]:(Y=(0,b.jsx)(c,{commands:J}),o[34]=J,o[35]=Y);let X;o[36]===d?X=o[37]:(X=async()=>await d({to:`/ec2/describe-snapshots`}),o[36]=d,o[37]=X);let Z;o[38]!==x.isPending||o[39]!==N||o[40]!==X?(Z=(0,b.jsx)(y,{isPending:x.isPending,isSubmitting:N,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),o[38]=x.isPending,o[39]=N,o[40]=X,o[41]=Z):Z=o[41];let Q;o[42]!==W||o[43]!==q||o[44]!==Y||o[45]!==Z||o[46]!==z?(Q=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),o[42]=W,o[43]=q,o[44]=Y,o[45]=Z,o[46]=z,o[47]=Q):Q=o[47];let $;return o[48]!==Q||o[49]!==R?($=(0,b.jsxs)(b.Fragment,{children:[I,L,R,Q]}),o[48]=Q,o[49]=R,o[50]=$):$=o[50],$}function oe(e){return(0,b.jsxs)(o,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function se(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ --volume-id`},{type:`value`,value:` ${n||``}`}];return i&&a.push({type:`flag`,value:` \\ - --description`},{type:`value`,value:` "${i}"`}),[{label:`Create Snapshot`,parts:a}]}export{y as component}; \ No newline at end of file + --description`},{type:`value`,value:` "${i}"`}),[{label:`Create Snapshot`,parts:a}]}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js index 2a2c59acf..93ddb5897 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{V as a}from"./SignatureV4.js";import{t as o}from"./back-link.js";import{a as s,i as c,n as ee,r as l,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{d as re}from"./ec2.js";import{t as ie,x as ae}from"./ec22.js";import{L as oe}from"./index.js";import{t as se}from"./page-heading.js";import{a as u,r as ce,t as d}from"./field.js";import{n as le,r as ue,t as de}from"./zod.js";import{s as fe}from"./ec23.js";import{t as pe}from"./form-actions.js";var me=t(),f=e();function p(){let e=(0,me.c)(66),t=i(),{data:a}=r(ae),{data:p}=r(ie),m=re(),h;e[0]===a.Vpcs?h=e[1]:(h=a.Vpcs??[],e[0]=a.Vpcs,e[1]=h);let g=h,_;e[2]===p.AvailabilityZones?_=e[3]:(_=p.AvailabilityZones??[],e[2]=p.AvailabilityZones,e[3]=_);let v=_,y;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=de(fe),e[4]=y):y=e[4];let b=g[0]?.VpcId??``,x;e[5]===b?x=e[6]:(x={resolver:y,defaultValues:{vpcId:b,cidrBlock:`10.0.1.0/24`,availabilityZone:``}},e[5]=b,e[6]=x);let{control:S,handleSubmit:C,register:w,watch:T,formState:ve}=ue(x),{errors:E,isSubmitting:D}=ve,O;e[7]!==m||e[8]!==t?(O=async e=>{let n=(await m.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[7]=m,e[8]=t,e[9]=O):O=e[9];let k=O,A,j;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,f.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),j=(0,f.jsx)(se,{title:`Create Subnet`}),e[10]=A,e[11]=j):(A=e[10],j=e[11]);let M;e[12]===m.error?M=e[13]:(M=m.error&&(0,f.jsx)(n,{error:m.error,msg:`Failed to create subnet`}),e[12]=m.error,e[13]=M);let N;e[14]!==C||e[15]!==k?(N=C(k),e[14]=C,e[15]=k,e[16]=N):N=e[16];let P;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[17]=P):P=e[17];let F;e[18]!==E.vpcId||e[19]!==g?(F=e=>{let{field:t}=e;return(0,f.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(c,{"aria-invalid":!!E.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(s,{})}),(0,f.jsx)(ee,{children:g.map(ge)})]})},e[18]=E.vpcId,e[19]=g,e[20]=F):F=e[20];let I;e[21]!==S||e[22]!==F?(I=(0,f.jsx)(le,{control:S,name:`vpcId`,render:F}),e[21]=S,e[22]=F,e[23]=I):I=e[23];let L;e[24]===E.vpcId?L=e[25]:(L=(0,f.jsx)(ce,{errors:[E.vpcId]}),e[24]=E.vpcId,e[25]=L);let R;e[26]!==I||e[27]!==L?(R=(0,f.jsxs)(d,{children:[P,I,L]}),e[26]=I,e[27]=L,e[28]=R):R=e[28];let z;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[29]=z):z=e[29];let B=!!E.cidrBlock,V;e[30]===w?V=e[31]:(V=w(`cidrBlock`),e[30]=w,e[31]=V);let H;e[32]!==B||e[33]!==V?(H=(0,f.jsx)(oe,{"aria-invalid":B,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...V}),e[32]=B,e[33]=V,e[34]=H):H=e[34];let U;e[35]===E.cidrBlock?U=e[36]:(U=(0,f.jsx)(ce,{errors:[E.cidrBlock]}),e[35]=E.cidrBlock,e[36]=U);let W;e[37]!==H||e[38]!==U?(W=(0,f.jsxs)(d,{children:[z,H,U]}),e[37]=H,e[38]=U,e[39]=W):W=e[39];let G;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[40]=G):G=e[40];let K;e[41]===v?K=e[42]:(K=e=>{let{field:t}=e;return(0,f.jsxs)(te,{onValueChange:e=>t.onChange(e===`none`?``:e),value:t.value??`none`,children:[(0,f.jsx)(c,{className:`w-full`,id:`availabilityZone`,children:(0,f.jsx)(s,{})}),(0,f.jsxs)(ee,{children:[(0,f.jsx)(l,{value:`none`,children:`none`}),v.map(he)]})]})},e[41]=v,e[42]=K);let q;e[43]!==S||e[44]!==K?(q=(0,f.jsxs)(d,{children:[G,(0,f.jsx)(le,{control:S,name:`availabilityZone`,render:K})]}),e[43]=S,e[44]=K,e[45]=q):q=e[45];let J;e[46]===T?J=e[47]:(J=_e(T),e[46]=T,e[47]=J);let Y;e[48]===J?Y=e[49]:(Y=(0,f.jsx)(ne,{commands:J}),e[48]=J,e[49]=Y);let X;e[50]===t?X=e[51]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[50]=t,e[51]=X);let Z;e[52]!==m.isPending||e[53]!==D||e[54]!==X?(Z=(0,f.jsx)(pe,{isPending:m.isPending,isSubmitting:D,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[52]=m.isPending,e[53]=D,e[54]=X,e[55]=Z):Z=e[55];let Q;e[56]!==N||e[57]!==R||e[58]!==W||e[59]!==q||e[60]!==Y||e[61]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[R,W,q,Y,Z]}),e[56]=N,e[57]=R,e[58]=W,e[59]=q,e[60]=Y,e[61]=Z,e[62]=Q):Q=e[62];let $;return e[63]!==Q||e[64]!==M?($=(0,f.jsxs)(f.Fragment,{children:[A,j,M,Q]}),e[63]=Q,e[64]=M,e[65]=$):$=e[65],$}function he(e){return(0,f.jsx)(l,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ge(e){let t=a(e.Tags);return(0,f.jsx)(l,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),i=typeof r==`string`?r:``,a=e(`availabilityZone`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ - --vpc-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --cidr-block`},{type:`value`,value:` ${i||``}`}];return o&&s.push({type:`flag`,value:` \\ - --availability-zone`},{type:`value`,value:` ${o}`}),[{label:`Create Subnet`,parts:s}]}export{p as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as ee}from"./back-link.js";import{a as n,i as r,n as i,r as a,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{d as ne}from"./ec2.js";import{Da as s,I as re,eo as c,nt as ie,ro as ae,so as l,yi as oe}from"./index.js";import{t as se}from"./page-heading.js";import{a as u,r as ce,t as d}from"./field.js";import{n as le,r as ue,t as de}from"./zod.js";import{s as fe}from"./ec22.js";import{t as pe}from"./form-actions.js";var me=c(),f=l();function p(){let s=(0,me.c)(66),c=ae(),{data:l}=t(ie),{data:p}=t(re),m=ne(),h;s[0]===l.Vpcs?h=s[1]:(h=l.Vpcs??[],s[0]=l.Vpcs,s[1]=h);let g=h,_;s[2]===p.AvailabilityZones?_=s[3]:(_=p.AvailabilityZones??[],s[2]=p.AvailabilityZones,s[3]=_);let v=_,y;s[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=de(fe),s[4]=y):y=s[4];let b=g[0]?.VpcId??``,x;s[5]===b?x=s[6]:(x={resolver:y,defaultValues:{vpcId:b,cidrBlock:`10.0.1.0/24`,availabilityZone:``}},s[5]=b,s[6]=x);let{control:S,handleSubmit:C,register:w,watch:T,formState:ve}=ue(x),{errors:E,isSubmitting:D}=ve,O;s[7]!==m||s[8]!==c?(O=async e=>{let t=(await m.mutateAsync(e)).Subnet?.SubnetId;c(t?{to:`/ec2/describe-subnets/$id`,params:{id:t}}:{to:`/ec2/describe-subnets`})},s[7]=m,s[8]=c,s[9]=O):O=s[9];let k=O,A,j;s[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,f.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),j=(0,f.jsx)(se,{title:`Create Subnet`}),s[10]=A,s[11]=j):(A=s[10],j=s[11]);let M;s[12]===m.error?M=s[13]:(M=m.error&&(0,f.jsx)(e,{error:m.error,msg:`Failed to create subnet`}),s[12]=m.error,s[13]=M);let N;s[14]!==C||s[15]!==k?(N=C(k),s[14]=C,s[15]=k,s[16]=N):N=s[16];let P;s[17]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),s[17]=P):P=s[17];let F;s[18]!==E.vpcId||s[19]!==g?(F=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(r,{"aria-invalid":!!E.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(n,{})}),(0,f.jsx)(i,{children:g.map(ge)})]})},s[18]=E.vpcId,s[19]=g,s[20]=F):F=s[20];let I;s[21]!==S||s[22]!==F?(I=(0,f.jsx)(le,{control:S,name:`vpcId`,render:F}),s[21]=S,s[22]=F,s[23]=I):I=s[23];let L;s[24]===E.vpcId?L=s[25]:(L=(0,f.jsx)(ce,{errors:[E.vpcId]}),s[24]=E.vpcId,s[25]=L);let R;s[26]!==I||s[27]!==L?(R=(0,f.jsxs)(d,{children:[P,I,L]}),s[26]=I,s[27]=L,s[28]=R):R=s[28];let z;s[29]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),s[29]=z):z=s[29];let B=!!E.cidrBlock,V;s[30]===w?V=s[31]:(V=w(`cidrBlock`),s[30]=w,s[31]=V);let H;s[32]!==B||s[33]!==V?(H=(0,f.jsx)(oe,{"aria-invalid":B,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...V}),s[32]=B,s[33]=V,s[34]=H):H=s[34];let U;s[35]===E.cidrBlock?U=s[36]:(U=(0,f.jsx)(ce,{errors:[E.cidrBlock]}),s[35]=E.cidrBlock,s[36]=U);let W;s[37]!==H||s[38]!==U?(W=(0,f.jsxs)(d,{children:[z,H,U]}),s[37]=H,s[38]=U,s[39]=W):W=s[39];let G;s[40]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),s[40]=G):G=s[40];let K;s[41]===v?K=s[42]:(K=e=>{let{field:t}=e;return(0,f.jsxs)(o,{onValueChange:e=>t.onChange(e===`none`?``:e),value:t.value??`none`,children:[(0,f.jsx)(r,{className:`w-full`,id:`availabilityZone`,children:(0,f.jsx)(n,{})}),(0,f.jsxs)(i,{children:[(0,f.jsx)(a,{value:`none`,children:`none`}),v.map(he)]})]})},s[41]=v,s[42]=K);let q;s[43]!==S||s[44]!==K?(q=(0,f.jsxs)(d,{children:[G,(0,f.jsx)(le,{control:S,name:`availabilityZone`,render:K})]}),s[43]=S,s[44]=K,s[45]=q):q=s[45];let J;s[46]===T?J=s[47]:(J=_e(T),s[46]=T,s[47]=J);let Y;s[48]===J?Y=s[49]:(Y=(0,f.jsx)(te,{commands:J}),s[48]=J,s[49]=Y);let X;s[50]===c?X=s[51]:(X=async()=>await c({to:`/ec2/describe-subnets`}),s[50]=c,s[51]=X);let Z;s[52]!==m.isPending||s[53]!==D||s[54]!==X?(Z=(0,f.jsx)(pe,{isPending:m.isPending,isSubmitting:D,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),s[52]=m.isPending,s[53]=D,s[54]=X,s[55]=Z):Z=s[55];let Q;s[56]!==N||s[57]!==R||s[58]!==W||s[59]!==q||s[60]!==Y||s[61]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[R,W,q,Y,Z]}),s[56]=N,s[57]=R,s[58]=W,s[59]=q,s[60]=Y,s[61]=Z,s[62]=Q):Q=s[62];let $;return s[63]!==Q||s[64]!==M?($=(0,f.jsxs)(f.Fragment,{children:[A,j,M,Q]}),s[63]=Q,s[64]=M,s[65]=$):$=s[65],$}function he(e){return(0,f.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ge(e){let t=s(e.Tags);return(0,f.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){let t=e(`vpcId`),ee=typeof t==`string`?t:``,n=e(`cidrBlock`),r=typeof n==`string`?n:``,i=e(`availabilityZone`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ + --vpc-id`},{type:`value`,value:` ${ee||``}`},{type:`flag`,value:` \\ + --cidr-block`},{type:`value`,value:` ${r||``}`}];return a&&o.push({type:`flag`,value:` \\ + --availability-zone`},{type:`value`,value:` ${a}`}),[{label:`Create Subnet`,parts:o}]}export{p as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js index f85bcab76..09508b5d6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js @@ -1,4 +1,4 @@ -import{n as e}from"./compiler-runtime.js";import{t}from"./error-banner.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{x as o}from"./ec22.js";import{r as s}from"./elbv2.js";import{t as c}from"./page-heading.js";import{r as l,t as u}from"./zod.js";import{t as d}from"./form-actions.js";import{t as f}from"./target-group-form.js";import{r as p}from"./elbv23.js";var m=e();function h(){let e=r(),{data:h}=n(o),_=s(),v=h.Vpcs??[],y=l({resolver:u(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(c,{title:`Create target group`}),_.error&&(0,m.jsx)(t,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async t=>{try{let n=(await _.mutateAsync(t)).TargetGroups?.[0]?.TargetGroupArn;e(n?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(a,{commands:g(x)}),(0,m.jsx)(d,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await e({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create target group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{r as i}from"./elbv2.js";import{nt as a,ro as o,so as s}from"./index.js";import{t as c}from"./page-heading.js";import{r as l,t as u}from"./zod.js";import{t as d}from"./form-actions.js";import{t as f}from"./target-group-form.js";import{r as p}from"./elbv22.js";var m=s();function h(){let s=o(),{data:h}=t(a),_=i(),v=h.Vpcs??[],y=l({resolver:u(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(c,{title:`Create target group`}),_.error&&(0,m.jsx)(e,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async e=>{try{let t=(await _.mutateAsync(e)).TargetGroups?.[0]?.TargetGroupArn;s(t?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(t)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(d,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await s({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create target group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${i}`},{type:`flag`,value:` \\ --port`},{type:`value`,value:` ${a??80}`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js index 18deebe53..802f82ad2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useNavigate.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{i as o}from"./iam.js";import{L as s}from"./index.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{r as f,t as p}from"./zod.js";import{t as m}from"./form-actions.js";import{n as h}from"./iam3.js";var g=t(),_=e();function v(){let e=(0,g.c)(51),t=r(),v=o(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:p(h)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,watch:C,formState:w}=f(b),{errors:T,isSubmitting:E}=w,D;e[1]!==v||e[2]!==t?(D=async e=>{await v.mutateAsync(e),t({to:`/iam/list-users`})},e[1]=v,e[2]=t,e[3]=D):D=e[3];let O=D,k,A;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(i,{to:`/iam/list-users`,children:`Back to users`}),A=(0,_.jsx)(c,{title:`Create User`}),e[4]=k,e[5]=A):(k=e[4],A=e[5]);let j;e[6]===v.error?j=e[7]:(j=v.error&&(0,_.jsx)(n,{error:v.error,msg:`Failed to create user`}),e[6]=v.error,e[7]=j);let M;e[8]!==x||e[9]!==O?(M=x(O),e[8]=x,e[9]=O,e[10]=M):M=e[10];let N;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),e[11]=N):N=e[11];let P=!!T.userName,F;e[12]===S?F=e[13]:(F=S(`userName`),e[12]=S,e[13]=F);let I;e[14]!==P||e[15]!==F?(I=(0,_.jsx)(s,{"aria-invalid":P,id:`userName`,placeholder:`my-user...`,...F}),e[14]=P,e[15]=F,e[16]=I):I=e[16];let L;e[17]===T.userName?L=e[18]:(L=(0,_.jsx)(u,{errors:[T.userName]}),e[17]=T.userName,e[18]=L);let R;e[19]!==I||e[20]!==L?(R=(0,_.jsxs)(d,{children:[N,I,L]}),e[19]=I,e[20]=L,e[21]=R):R=e[21];let z;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[22]=z):z=e[22];let B;e[23]===S?B=e[24]:(B=S(`path`),e[23]=S,e[24]=B);let V;e[25]===B?V=e[26]:(V=(0,_.jsx)(s,{id:`path`,placeholder:`/`,...B}),e[25]=B,e[26]=V);let H;e[27]===T.path?H=e[28]:(H=(0,_.jsx)(u,{errors:[T.path]}),e[27]=T.path,e[28]=H);let U;e[29]!==V||e[30]!==H?(U=(0,_.jsxs)(d,{children:[z,V,H]}),e[29]=V,e[30]=H,e[31]=U):U=e[31];let W;e[32]===C?W=e[33]:(W=y(C),e[32]=C,e[33]=W);let G;e[34]===W?G=e[35]:(G=(0,_.jsx)(a,{commands:W}),e[34]=W,e[35]=G);let K;e[36]===t?K=e[37]:(K=async()=>await t({to:`/iam/list-users`}),e[36]=t,e[37]=K);let q;e[38]!==v.isPending||e[39]!==E||e[40]!==K?(q=(0,_.jsx)(m,{isPending:v.isPending,isSubmitting:E,onCancel:K,pendingLabel:`Creating...`,submitLabel:`Create User`}),e[38]=v.isPending,e[39]=E,e[40]=K,e[41]=q):q=e[41];let J;e[42]!==R||e[43]!==U||e[44]!==G||e[45]!==q||e[46]!==M?(J=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[R,U,G,q]}),e[42]=R,e[43]=U,e[44]=G,e[45]=q,e[46]=M,e[47]=J):J=e[47];let Y;return e[48]!==J||e[49]!==j?(Y=(0,_.jsxs)(_.Fragment,{children:[k,A,j,J]}),e[48]=J,e[49]=j,e[50]=Y):Y=e[50],Y}function y(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{v as component}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{i as r}from"./iam.js";import{eo as i,ro as a,so as o,yi as s}from"./index.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{r as f,t as p}from"./zod.js";import{t as m}from"./form-actions.js";import{n as h}from"./iam2.js";var g=i(),_=o();function v(){let i=(0,g.c)(51),o=a(),v=r(),b;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:p(h)},i[0]=b):b=i[0];let{handleSubmit:x,register:S,watch:C,formState:w}=f(b),{errors:T,isSubmitting:E}=w,D;i[1]!==v||i[2]!==o?(D=async e=>{await v.mutateAsync(e),o({to:`/iam/list-users`})},i[1]=v,i[2]=o,i[3]=D):D=i[3];let O=D,k,A;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(t,{to:`/iam/list-users`,children:`Back to users`}),A=(0,_.jsx)(c,{title:`Create User`}),i[4]=k,i[5]=A):(k=i[4],A=i[5]);let j;i[6]===v.error?j=i[7]:(j=v.error&&(0,_.jsx)(e,{error:v.error,msg:`Failed to create user`}),i[6]=v.error,i[7]=j);let M;i[8]!==x||i[9]!==O?(M=x(O),i[8]=x,i[9]=O,i[10]=M):M=i[10];let N;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),i[11]=N):N=i[11];let P=!!T.userName,F;i[12]===S?F=i[13]:(F=S(`userName`),i[12]=S,i[13]=F);let I;i[14]!==P||i[15]!==F?(I=(0,_.jsx)(s,{"aria-invalid":P,id:`userName`,placeholder:`my-user...`,...F}),i[14]=P,i[15]=F,i[16]=I):I=i[16];let L;i[17]===T.userName?L=i[18]:(L=(0,_.jsx)(u,{errors:[T.userName]}),i[17]=T.userName,i[18]=L);let R;i[19]!==I||i[20]!==L?(R=(0,_.jsxs)(d,{children:[N,I,L]}),i[19]=I,i[20]=L,i[21]=R):R=i[21];let z;i[22]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,_.jsx)(l,{children:(0,_.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),i[22]=z):z=i[22];let B;i[23]===S?B=i[24]:(B=S(`path`),i[23]=S,i[24]=B);let V;i[25]===B?V=i[26]:(V=(0,_.jsx)(s,{id:`path`,placeholder:`/`,...B}),i[25]=B,i[26]=V);let H;i[27]===T.path?H=i[28]:(H=(0,_.jsx)(u,{errors:[T.path]}),i[27]=T.path,i[28]=H);let U;i[29]!==V||i[30]!==H?(U=(0,_.jsxs)(d,{children:[z,V,H]}),i[29]=V,i[30]=H,i[31]=U):U=i[31];let W;i[32]===C?W=i[33]:(W=y(C),i[32]=C,i[33]=W);let G;i[34]===W?G=i[35]:(G=(0,_.jsx)(n,{commands:W}),i[34]=W,i[35]=G);let K;i[36]===o?K=i[37]:(K=async()=>await o({to:`/iam/list-users`}),i[36]=o,i[37]=K);let q;i[38]!==v.isPending||i[39]!==E||i[40]!==K?(q=(0,_.jsx)(m,{isPending:v.isPending,isSubmitting:E,onCancel:K,pendingLabel:`Creating...`,submitLabel:`Create User`}),i[38]=v.isPending,i[39]=E,i[40]=K,i[41]=q):q=i[41];let J;i[42]!==R||i[43]!==U||i[44]!==G||i[45]!==q||i[46]!==M?(J=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[R,U,G,q]}),i[42]=R,i[43]=U,i[44]=G,i[45]=q,i[46]=M,i[47]=J):J=i[47];let Y;return i[48]!==J||i[49]!==j?(Y=(0,_.jsxs)(_.Fragment,{children:[k,A,j,J]}),i[48]=J,i[49]=j,i[50]=Y):Y=i[50],Y}function y(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js index f1f659bfa..875c40a85 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{t as a}from"./back-link.js";import{a as ee,i as te,n as o,r as s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{f as ne}from"./ec2.js";import{t as re}from"./ec22.js";import{L as u}from"./index.js";import{t as ie}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{n as ae,r as oe,t as se}from"./zod.js";import{c as m}from"./ec23.js";import{t as ce}from"./form-actions.js";var h=t(),g=e();function _(){let e=(0,h.c)(57),t=i(),{data:s}=r(re),_=ne(),b;e[0]===s.AvailabilityZones?b=e[1]:(b=s.AvailabilityZones??[],e[0]=s.AvailabilityZones,e[1]=b);let x=b,S=x[0]?.ZoneName??``,C;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=se(m),e[2]=C):C=e[2];let w;e[3]===S?w=e[4]:(w={resolver:C,defaultValues:{size:1,availabilityZone:S}},e[3]=S,e[4]=w);let{control:T,handleSubmit:E,register:D,watch:O,formState:le}=oe(w),{errors:k,isSubmitting:A}=le,j;e[5]!==_||e[6]!==t?(j=async e=>{await _.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=_,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,g.jsx)(a,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,g.jsx)(ie,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===_.error?F=e[11]:(F=_.error&&(0,g.jsx)(n,{error:_.error,msg:`Failed to create volume`}),e[10]=_.error,e[11]=F);let I;e[12]!==E||e[13]!==M?(I=E(M),e[12]=E,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),e[15]=L):L=e[15];let R=!!k.size,z;e[16]===D?z=e[17]:(z=D(`size`,{valueAsNumber:!0}),e[16]=D,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,g.jsx)(u,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===k.size?V=e[22]:(V=(0,g.jsx)(f,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,g.jsxs)(p,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),e[26]=U):U=e[26];let W;e[27]!==x||e[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,g.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(te,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,g.jsx)(ee,{})}),(0,g.jsx)(o,{children:x.map(v)})]})},e[27]=x,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==T||e[31]!==W?(G=(0,g.jsx)(ae,{control:T,name:`availabilityZone`,render:W}),e[30]=T,e[31]=W,e[32]=G):G=e[32];let K;e[33]===k.availabilityZone?K=e[34]:(K=(0,g.jsx)(f,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,g.jsxs)(p,{children:[U,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===O?J=e[39]:(J=y(O),e[38]=O,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,g.jsx)(l,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-volumes`}),e[42]=t,e[43]=X);let Z;e[44]!==_.isPending||e[45]!==A||e[46]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=_.isPending,e[45]=A,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==H||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==I?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[48]=H,e[49]=q,e[50]=Y,e[51]=Z,e[52]=I,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==F?($=(0,g.jsxs)(g.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function v(e){return(0,g.jsx)(s,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function y(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{a as r,i,n as ee,r as a,t as o}from"./select.js";import{t as s}from"./cli-command-panel.js";import{f as c}from"./ec2.js";import{I as l,eo as u,ro as te,so as d,yi as ne}from"./index.js";import{t as re}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{n as ie,r as ae,t as oe}from"./zod.js";import{c as se}from"./ec22.js";import{t as ce}from"./form-actions.js";var h=u(),g=d();function _(){let a=(0,h.c)(57),u=te(),{data:d}=t(l),_=c(),y;a[0]===d.AvailabilityZones?y=a[1]:(y=d.AvailabilityZones??[],a[0]=d.AvailabilityZones,a[1]=y);let b=y,x=b[0]?.ZoneName??``,S;a[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=oe(se),a[2]=S):S=a[2];let C;a[3]===x?C=a[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},a[3]=x,a[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=ae(C),{errors:k,isSubmitting:A}=O,j;a[5]!==_||a[6]!==u?(j=async e=>{await _.mutateAsync(e),u({to:`/ec2/describe-volumes`})},a[5]=_,a[6]=u,a[7]=j):j=a[7];let M=j,N,P;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,g.jsx)(n,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,g.jsx)(re,{title:`Create Volume`}),a[8]=N,a[9]=P):(N=a[8],P=a[9]);let F;a[10]===_.error?F=a[11]:(F=_.error&&(0,g.jsx)(e,{error:_.error,msg:`Failed to create volume`}),a[10]=_.error,a[11]=F);let I;a[12]!==T||a[13]!==M?(I=T(M),a[12]=T,a[13]=M,a[14]=I):I=a[14];let L;a[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,g.jsx)(f,{children:(0,g.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),a[15]=L):L=a[15];let R=!!k.size,z;a[16]===E?z=a[17]:(z=E(`size`,{valueAsNumber:!0}),a[16]=E,a[17]=z);let B;a[18]!==R||a[19]!==z?(B=(0,g.jsx)(ne,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),a[18]=R,a[19]=z,a[20]=B):B=a[20];let V;a[21]===k.size?V=a[22]:(V=(0,g.jsx)(p,{errors:[k.size]}),a[21]=k.size,a[22]=V);let H;a[23]!==B||a[24]!==V?(H=(0,g.jsxs)(m,{children:[L,B,V]}),a[23]=B,a[24]=V,a[25]=H):H=a[25];let U;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsx)(f,{children:(0,g.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),a[26]=U):U=a[26];let W;a[27]!==b||a[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,g.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(i,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,g.jsx)(r,{})}),(0,g.jsx)(ee,{children:b.map(le)})]})},a[27]=b,a[28]=k.availabilityZone,a[29]=W):W=a[29];let G;a[30]!==w||a[31]!==W?(G=(0,g.jsx)(ie,{control:w,name:`availabilityZone`,render:W}),a[30]=w,a[31]=W,a[32]=G):G=a[32];let K;a[33]===k.availabilityZone?K=a[34]:(K=(0,g.jsx)(p,{errors:[k.availabilityZone]}),a[33]=k.availabilityZone,a[34]=K);let q;a[35]!==G||a[36]!==K?(q=(0,g.jsxs)(m,{children:[U,G,K]}),a[35]=G,a[36]=K,a[37]=q):q=a[37];let J;a[38]===D?J=a[39]:(J=v(D),a[38]=D,a[39]=J);let Y;a[40]===J?Y=a[41]:(Y=(0,g.jsx)(s,{commands:J}),a[40]=J,a[41]=Y);let X;a[42]===u?X=a[43]:(X=async()=>await u({to:`/ec2/describe-volumes`}),a[42]=u,a[43]=X);let Z;a[44]!==_.isPending||a[45]!==A||a[46]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),a[44]=_.isPending,a[45]=A,a[46]=X,a[47]=Z):Z=a[47];let Q;a[48]!==H||a[49]!==q||a[50]!==Y||a[51]!==Z||a[52]!==I?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),a[48]=H,a[49]=q,a[50]=Y,a[51]=Z,a[52]=I,a[53]=Q):Q=a[53];let $;return a[54]!==Q||a[55]!==F?($=(0,g.jsxs)(g.Fragment,{children:[N,P,F,Q]}),a[54]=Q,a[55]=F,a[56]=$):$=a[56],$}function le(e){return(0,g.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function v(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ --size`},{type:`value`,value:` ${n||1}`},{type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${i||``}`}]}]}export{_ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js index e581fc548..b273bb6f8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js @@ -1,4 +1,4 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useNavigate.js";import{t as o}from"./back-link.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{a as l,i as u,n as d,r as f,t as p}from"./select.js";import{t as m}from"./cli-command-panel.js";import{t as h}from"./button.js";import{N as g,m as _,p as v}from"./ec2.js";import{L as y}from"./index.js";import{t as b}from"./page-heading.js";import{a as x,r as S,t as C}from"./field.js";import{n as w,r as T,t as E}from"./zod.js";import{l as D}from"./ec23.js";import{t as O}from"./form-actions.js";var k=r(),A=e(n(),1),j=t();function M(e){let t=(0,k.c)(18),{form:n,type:r,count:i,defaults:a}=e,[o,l]=(0,A.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(i===0)return null;let d;t[0]===o?d=t[1]:(d=()=>l(!o),t[0]=o,t[1]=d);let f;t[2]===o?f=t[3]:(f=o?(0,j.jsx)(s,{className:`size-3`}):(0,j.jsx)(c,{className:`size-3`}),t[2]=o,t[3]=f);let p;t[4]!==d||t[5]!==f||t[6]!==r?(p=(0,j.jsxs)(h,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,r,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=r,t[7]=p):p=t[7];let m;t[8]!==i||t[9]!==a||t[10]!==o||t[11]!==u||t[12]!==n||t[13]!==r?(m=o&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(y,{defaultValue:a[t],placeholder:a[t],...n.register(`${u}.${t}`)})]},t))}),t[8]=i,t[9]=a,t[10]=o,t[11]=u,t[12]=n,t[13]=r,t[14]=m):m=t[14];let g;return t[15]!==p||t[16]!==m?(g=(0,j.jsxs)(`div`,{className:`mt-2`,children:[p,m]}),t[15]=p,t[16]=m,t[17]=g):g=t[17],g}function N(e){let t=(0,k.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,j.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let e=a(),t=v(),n=_(),[r,s]=(0,A.useState)(null),c=T({resolver:E(D),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=c,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=g(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async r=>{if(s(null),r.mode===`vpc-only`){let n=r.autoGenerateNames&&r.namePrefix?`${r.namePrefix}-vpc`:r.namePrefix,i=(await t.mutateAsync({cidrBlock:r.cidrBlock,name:n||void 0})).Vpc?.VpcId;e(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let i=await n.mutateAsync(r);s(i),!i.error&&i.vpcId&&e({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),J(``)},X=t.error??n.error,Z=t.isPending||n.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(b,{title:`Create VPC`}),X&&(0,j.jsx)(i,{error:X,msg:`Failed to create VPC`}),r?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,r.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:r.error.message}),r.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:r.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Resources to create`}),(0,j.jsx)(w,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(y,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(w,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(y,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(S,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Tenancy`}),(0,j.jsx)(w,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(p,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(u,{id:`tenancy`,children:(0,j.jsx)(l,{})}),(0,j.jsxs)(d,{children:[(0,j.jsx)(f,{value:`default`,children:`default`}),(0,j.jsx)(f,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Number of public subnets`}),(0,j.jsx)(w,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(h,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:c,type:`public`})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Number of private subnets`}),(0,j.jsx)(w,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(h,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:c,type:`private`})]})]}),(0,j.jsx)(m,{commands:B(F,K)}),(0,j.jsx)(O,{isPending:Z,isSubmitting:V,onCancel:async()=>await e({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./chevron-down.js";import{t as r}from"./chevron-right.js";import{a as i,i as a,n as o,r as s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{N as u,m as d,p as f}from"./ec2.js";import{Do as p,co as m,eo as h,ro as g,so as _,ya as v,yi as y}from"./index.js";import{t as b}from"./page-heading.js";import{a as x,r as S,t as C}from"./field.js";import{n as w,r as T,t as E}from"./zod.js";import{l as D}from"./ec22.js";import{t as O}from"./form-actions.js";var k=h(),A=p(m(),1),j=_();function M(e){let t=(0,k.c)(18),{form:i,type:a,count:o,defaults:s}=e,[c,l]=(0,A.useState)(!1),u=a===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(o===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(n,{className:`size-3`}):(0,j.jsx)(r,{className:`size-3`}),t[2]=c,t[3]=f);let p;t[4]!==d||t[5]!==f||t[6]!==a?(p=(0,j.jsxs)(v,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,a,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=a,t[7]=p):p=t[7];let m;t[8]!==o||t[9]!==s||t[10]!==c||t[11]!==u||t[12]!==i||t[13]!==a?(m=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:o},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[a===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(y,{defaultValue:s[t],placeholder:s[t],...i.register(`${u}.${t}`)})]},t))}),t[8]=o,t[9]=s,t[10]=c,t[11]=u,t[12]=i,t[13]=a,t[14]=m):m=t[14];let h;return t[15]!==p||t[16]!==m?(h=(0,j.jsxs)(`div`,{className:`mt-2`,children:[p,m]}),t[15]=p,t[16]=m,t[17]=h):h=t[17],h}function N(e){let t=(0,k.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,j.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let n=g(),r=f(),p=d(),[m,h]=(0,A.useState)(null),_=T({resolver:E(D),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=_,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=u(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async e=>{if(h(null),e.mode===`vpc-only`){let t=e.autoGenerateNames&&e.namePrefix?`${e.namePrefix}-vpc`:e.namePrefix,i=(await r.mutateAsync({cidrBlock:e.cidrBlock,name:t||void 0})).Vpc?.VpcId;n(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let t=await p.mutateAsync(e);h(t),!t.error&&t.vpcId&&n({to:`/ec2/describe-vpcs/$id`,params:{id:t.vpcId}}),J(``)},X=r.error??p.error,Z=r.isPending||p.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(t,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(b,{title:`Create VPC`}),X&&(0,j.jsx)(e,{error:X,msg:`Failed to create VPC`}),m?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,m.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:m.error.message}),m.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:m.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Resources to create`}),(0,j.jsx)(w,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(y,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(w,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(y,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(S,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Tenancy`}),(0,j.jsx)(w,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(a,{id:`tenancy`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(s,{value:`default`,children:`default`}),(0,j.jsx)(s,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Number of public subnets`}),(0,j.jsx)(w,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(v,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:_,type:`public`})]}),(0,j.jsxs)(C,{children:[(0,j.jsx)(x,{children:`Number of private subnets`}),(0,j.jsx)(w,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(v,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:_,type:`private`})]})]}),(0,j.jsx)(l,{commands:B(F,K)}),(0,j.jsx)(O,{isPending:Z,isSubmitting:V,onCancel:async()=>await n({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${a||`10.0.0.0/16`}`}];return s&&s!==`default`&&e.push({type:`flag`,value:` \\ --instance-tenancy`},{type:`value`,value:` ${s}`}),[{label:`Create VPC`,parts:e}]}let c=[],l=[...t.publicSubnets.map((e,t)=>({...e,name:`PUBLIC_SUBNET_${t+1}`})),...t.privateSubnets.map((e,t)=>({...e,name:`PRIVATE_SUBNET_${t+1}`}))];c.push({label:`Create VPC`,parts:[{type:`comment`,value:`# Create VPC with subnets, internet gateway, and routing diff --git a/spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js b/spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js deleted file mode 100644 index eaf051aad..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,r as t}from"./compiler-runtime.js";import{i as n}from"./dist.js";import{s as r,w as i}from"./button.js";var a=e(t()),o=0;function s(e,t=`mui`){let[n,r]=a.useState(e),i=e||n;return a.useEffect(()=>{n??(o+=1,r(`${t}-${o}`))},[n,t]),i}var c=r.useId;function l(e,t){if(c!==void 0){let n=c();return e??(t?`${t}-${n}`:n)}return s(e,t)}function u(e){return l(e,`base-ui`)}function d(e){return e?.ownerDocument||document}function f(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function p(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&i(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function m(e){return`composedPath`in e?e.composedPath()[0]:e.target}var h=`none`,g=`trigger-press`,_=`trigger-hover`,v=`trigger-focus`,y=`outside-press`,b=`item-press`,x=`close-press`,S=`focus-out`,C=`escape-key`,w=`list-navigation`,T=`cancel-open`,E=`disabled`,D=`imperative-action`,O=`window-resize`;function k(e,t,r,i){let a=!1,o=!1,s=i??n;return{reason:e,event:t??new Event(`base-ui`),cancel(){a=!0},allowPropagation(){o=!0},get isCanceled(){return a},get isPropagationAllowed(){return o},trigger:r,...s}}export{p as _,C as a,u as b,b as c,y as d,v as f,f as g,O as h,E as i,w as l,g as m,T as n,S as o,_ as p,x as r,D as s,k as t,h as u,m as v,l as x,d as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/createLucideIcon.js b/spinifex/services/spinifexui/frontend/dist/assets/createLucideIcon.js deleted file mode 100644 index 56dec13fd..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/createLucideIcon.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,r as t}from"./compiler-runtime.js";var n=e(t(),1),r=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),i=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),o=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)},s={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`},c=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},l=(0,n.createContext)({}),u=()=>(0,n.useContext)(l),d=(0,n.forwardRef)(({color:e,size:t,strokeWidth:i,absoluteStrokeWidth:a,className:o=``,children:l,iconNode:d,...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,color:_=`currentColor`,className:v=``}=u()??{},y=a??g?Number(i??h)*24/Number(t??m):i??h;return(0,n.createElement)(`svg`,{ref:p,...s,width:t??m??s.width,height:t??m??s.height,stroke:e??_,strokeWidth:y,className:r(`lucide`,v,o),...!l&&!c(f)&&{"aria-hidden":`true`},...f},[...d.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])}),f=(e,t)=>{let a=(0,n.forwardRef)(({className:a,...s},c)=>(0,n.createElement)(d,{ref:c,iconNode:t,className:r(`lucide-${i(o(e))}`,`lucide-${e}`,a),...s}));return a.displayName=o(e),a};export{f as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js index 947a6e4d9..bc7e53c60 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/delete-confirmation-dialog.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./alert-dialog.js";var u=t(),d=e();function f(e){let t=(0,u.c)(19),{open:f,onOpenChange:p,title:m,description:h,isPending:g,onConfirm:_,confirmLabel:v,pendingLabel:y}=e,b=v===void 0?`Delete`:v,x=y===void 0?`Deleting…`:y,S;t[0]===m?S=t[1]:(S=(0,d.jsx)(i,{children:m}),t[0]=m,t[1]=S);let C;t[2]===h?C=t[3]:(C=(0,d.jsx)(n,{children:h}),t[2]=h,t[3]=C);let w;t[4]!==S||t[5]!==C?(w=(0,d.jsxs)(c,{children:[S,C]}),t[4]=S,t[5]=C,t[6]=w):w=t[6];let T;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,d.jsx)(s,{children:`Cancel`}),t[7]=T):T=t[7];let E=g?x:b,D;t[8]!==g||t[9]!==_||t[10]!==E?(D=(0,d.jsxs)(o,{children:[T,(0,d.jsx)(a,{disabled:g,onClick:_,children:E})]}),t[8]=g,t[9]=_,t[10]=E,t[11]=D):D=t[11];let O;t[12]!==w||t[13]!==D?(O=(0,d.jsxs)(r,{children:[w,D]}),t[12]=w,t[13]=D,t[14]=O):O=t[14];let k;return t[15]!==p||t[16]!==f||t[17]!==O?(k=(0,d.jsx)(l,{onOpenChange:p,open:f,children:O}),t[15]=p,t[16]=f,t[17]=O,t[18]=k):k=t[18],k}export{f as t}; \ No newline at end of file +import{eo as e,so as t}from"./index.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./alert-dialog.js";var u=e(),d=t();function f(e){let t=(0,u.c)(19),{open:f,onOpenChange:p,title:m,description:h,isPending:g,onConfirm:_,confirmLabel:v,pendingLabel:y}=e,b=v===void 0?`Delete`:v,x=y===void 0?`Deleting…`:y,S;t[0]===m?S=t[1]:(S=(0,d.jsx)(i,{children:m}),t[0]=m,t[1]=S);let C;t[2]===h?C=t[3]:(C=(0,d.jsx)(n,{children:h}),t[2]=h,t[3]=C);let w;t[4]!==S||t[5]!==C?(w=(0,d.jsxs)(c,{children:[S,C]}),t[4]=S,t[5]=C,t[6]=w):w=t[6];let T;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,d.jsx)(s,{children:`Cancel`}),t[7]=T):T=t[7];let E=g?x:b,D;t[8]!==g||t[9]!==_||t[10]!==E?(D=(0,d.jsxs)(o,{children:[T,(0,d.jsx)(a,{disabled:g,onClick:_,children:E})]}),t[8]=g,t[9]=_,t[10]=E,t[11]=D):D=t[11];let O;t[12]!==w||t[13]!==D?(O=(0,d.jsxs)(r,{children:[w,D]}),t[12]=w,t[13]=D,t[14]=O):O=t[14];let k;return t[15]!==p||t[16]!==f||t[17]!==O?(k=(0,d.jsx)(l,{onOpenChange:p,open:f,children:O}),t[15]=p,t[16]=f,t[17]=O,t[18]=k):k=t[18],k}export{f as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js index b186284d8..5e575a513 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{r}from"./ec22.js";import{t as i}from"./page-heading.js";import{t as a}from"./state-badge.js";import{t as o}from"./system-managed.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(r),a;if(e[0]!==t.Images){let n=(t.Images??[]).filter(f),r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,l.jsx)(i,{title:`EC2 Images`}),e[2]=r):r=e[2],a=(0,l.jsxs)(l.Fragment,{children:[r,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),e[0]=t.Images,e[1]=a}else a=e[1];return a}function d(e){return e.ImageId?(0,l.jsx)(s,{badge:(0,l.jsx)(a,{state:e.State}),params:{id:e.ImageId},subtitle:e.ImageId??``,title:e.Name??e.ImageId??``,to:`/ec2/describe-images/$id`},e.ImageId):null}function f(e){return!o(e)}export{u as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{R as t,eo as n,so as r}from"./index.js";import{t as i}from"./page-heading.js";import{t as a}from"./state-badge.js";import{t as o}from"./system-managed.js";import{t as s}from"./list-card.js";var c=n(),l=r();function u(){let n=(0,c.c)(3),{data:r}=e(t),a;if(n[0]!==r.Images){let e=(r.Images??[]).filter(f),t;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(i,{title:`EC2 Images`}),n[2]=t):t=n[2],a=(0,l.jsxs)(l.Fragment,{children:[t,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No images found.`})]}),n[0]=r.Images,n[1]=a}else a=n[1];return a}function d(e){return e.ImageId?(0,l.jsx)(s,{badge:(0,l.jsx)(a,{state:e.State}),params:{id:e.ImageId},subtitle:e.ImageId??``,title:e.Name??e.ImageId??``,to:`/ec2/describe-images/$id`},e.ImageId):null}function f(e){return!o(e)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js index bbf220d1a..d21e4917b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{o as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let e=(0,l.c)(3),{data:t}=n(a),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)??[]).toSorted(m),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(i,{children:`Run Instances`})}),title:`EC2 Instances`}),e[2]=a):a=e[2],s=(0,u.jsxs)(u.Fragment,{children:[a,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),e[0]=t.Reservations,e[1]=s}else s=e[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType}`,title:e.InstanceId,to:`/ec2/describe-instances/$id`},e.InstanceId):null}function m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances??[]}export{f as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{V as t,eo as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=n(),u=i(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let n=(0,l.c)(3),{data:i}=e(t),s;if(n[0]!==i.Reservations){let e=(i.Reservations?.flatMap(h)??[]).toSorted(m),t;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(a,{children:`Run Instances`})}),title:`EC2 Instances`}),n[2]=t):t=n[2],s=(0,u.jsxs)(u.Fragment,{children:[t,e.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:e.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),n[0]=i.Reservations,n[1]=s}else s=n[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType}`,title:e.InstanceId,to:`/ec2/describe-instances/$id`},e.InstanceId):null}function m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances??[]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js index ad328477f..0219490b4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{c as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(4),{data:t}=n(a),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(i,{variant:`outline`,children:`Import Key Pair`})}),e[2]=a):a=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[a,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(i,{children:`Create Key Pair`})})]}),title:`EC2 Key Pairs`}),e[3]=c):c=e[3],s=(0,l.jsxs)(l.Fragment,{children:[c,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),e[0]=t.KeyPairs,e[1]=s}else s=e[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:e.KeyPairId??``,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{U as t,eo as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=n(),l=i();function u(){let n=(0,c.c)(4),{data:i}=e(t),s;if(n[0]!==i.KeyPairs){let e=(i.KeyPairs??[]).toSorted(f),t;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(a,{variant:`outline`,children:`Import Key Pair`})}),n[2]=t):t=n[2];let c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[t,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(a,{children:`Create Key Pair`})})]}),title:`EC2 Key Pairs`}),n[3]=c):c=n[3],s=(0,l.jsxs)(l.Fragment,{children:[c,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),n[0]=i.KeyPairs,n[1]=s}else s=n[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:e.KeyPairId??``,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js index 198e2d8a3..25f668886 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./useNavigate.js";import{t as a}from"./button.js";import{i as o}from"./elbv22.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(e){return e?new Date(e).toLocaleString():``}function f(){let e=(0,l.c)(10),t=i(),{data:f}=n(o),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,u.jsx)(s,{actions:(0,u.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,u.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,u.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,u.jsx)(`thead`,{children:(0,u.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,u.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,u.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,u.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,u.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,u.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,u.jsx)(`td`,{className:`px-4 py-2`,children:(0,u.jsx)(c,{state:e.State?.Code})}),(0,u.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,u.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,u.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,u.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:d(e.CreatedTime)})]},n)})})]})}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,u.jsxs)(u.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{D as t,eo as n,no as r,ro as i,so as a,ya as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";var l=n(),u=a();function d(e){return e?new Date(e).toLocaleString():``}function f(){let n=(0,l.c)(10),a=i(),{data:f}=e(t),m;n[0]===f.LoadBalancers?m=n[1]:(m=f.LoadBalancers??[],n[0]=f.LoadBalancers,n[1]=m);let h=m,g;n[2]===a?g=n[3]:(g=(0,u.jsx)(s,{actions:(0,u.jsx)(o,{onClick:async()=>await a({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),n[2]=a,n[3]=g);let _;n[4]!==h||n[5]!==a?(_=h.length>0?(0,u.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,u.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,u.jsx)(`thead`,{children:(0,u.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,u.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,u.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let t=e.LoadBalancerArn;return(0,u.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await a({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(t)}}),children:[(0,u.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,u.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(t)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??t})}),(0,u.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,u.jsx)(`td`,{className:`px-4 py-2`,children:(0,u.jsx)(c,{state:e.State?.Code})}),(0,u.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,u.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,u.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,u.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:d(e.CreatedTime)})]},t)})})]})}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),n[4]=h,n[5]=a,n[6]=_):_=n[6];let v;return n[7]!==g||n[8]!==_?(v=(0,u.jsxs)(u.Fragment,{children:[g,_]}),n[7]=g,n[8]=_,n[9]=v):v=n[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js index 4a6abdb56..85c3f93ce 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{u as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.PlacementGroups?s=e[1]:(s=t.PlacementGroups??[],e[0]=t.PlacementGroups,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(i,{children:`Create Placement Group`})}),title:`EC2 Placement Groups`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No placement groups found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.GroupId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.GroupId},subtitle:`${e.Strategy} \u2022 ${e.GroupId}`,title:e.GroupName??e.GroupId,to:`/ec2/describe-placement-groups/$id`},e.GroupId):null}export{d as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{G as t,eo as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=n(),u=i();function d(){let n=(0,l.c)(5),{data:i}=e(t),s;n[0]===i.PlacementGroups?s=n[1]:(s=i.PlacementGroups??[],n[0]=i.PlacementGroups,n[1]=s);let c=s,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(a,{children:`Create Placement Group`})}),title:`EC2 Placement Groups`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No placement groups found.`})]}),n[3]=c,n[4]=p),p}function f(e){return e.GroupId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.GroupId},subtitle:`${e.Strategy} \u2022 ${e.GroupId}`,title:e.GroupName??e.GroupId,to:`/ec2/describe-placement-groups/$id`},e.GroupId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js index 7a319ad09..ebc2d3b1a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{p as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(5),{data:t}=n(a),s;e[0]===t.SecurityGroups?s=e[1]:(s=t.SecurityGroups??[],e[0]=t.SecurityGroups,e[1]=s);let u=s,f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/ec2/create-security-group`,children:(0,l.jsx)(i,{children:`Create Security Group`})}),title:`Security Groups`}),e[2]=f):f=e[2];let p;return e[3]===u?p=e[4]:(p=(0,l.jsxs)(l.Fragment,{children:[f,u.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:u.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No security groups found.`})]}),e[3]=u,e[4]=p),p}function d(e){return e.GroupId?(0,l.jsx)(s,{params:{id:e.GroupId},subtitle:e.VpcId??``,title:e.GroupName?`${e.GroupId} (${e.GroupName})`:e.GroupId,to:`/ec2/describe-security-groups/$id`},e.GroupId):null}export{u as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{J as t,eo as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=n(),l=i();function u(){let n=(0,c.c)(5),{data:i}=e(t),s;n[0]===i.SecurityGroups?s=n[1]:(s=i.SecurityGroups??[],n[0]=i.SecurityGroups,n[1]=s);let u=s,f;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/ec2/create-security-group`,children:(0,l.jsx)(a,{children:`Create Security Group`})}),title:`Security Groups`}),n[2]=f):f=n[2];let p;return n[3]===u?p=n[4]:(p=(0,l.jsxs)(l.Fragment,{children:[f,u.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:u.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No security groups found.`})]}),n[3]=u,n[4]=p),p}function d(e){return e.GroupId?(0,l.jsx)(s,{params:{id:e.GroupId},subtitle:e.VpcId??``,title:e.GroupName?`${e.GroupId} (${e.GroupName})`:e.GroupId,to:`/ec2/describe-security-groups/$id`},e.GroupId):null}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js index 5e7c3adc1..e0338a389 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{h as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Snapshots?s=e[1]:(s=t.Snapshots??[],e[0]=t.Snapshots,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(i,{children:`Create Snapshot`})}),title:`EC2 Snapshots`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{X as t,eo as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=n(),u=i();function d(){let n=(0,l.c)(5),{data:i}=e(t),s;n[0]===i.Snapshots?s=n[1]:(s=i.Snapshots??[],n[0]=i.Snapshots,n[1]=s);let c=s,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(a,{children:`Create Snapshot`})}),title:`EC2 Snapshots`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),n[3]=c,n[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js index 0a37aa761..e266e39e1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{V as i}from"./SignatureV4.js";import{t as a}from"./button.js";import{_ as o}from"./ec22.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";import{t as l}from"./list-card.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(l,{badge:(0,d.jsx)(c,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{Da as t,Q as n,eo as r,no as i,so as a,ya as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";import{t as l}from"./list-card.js";var u=r(),d=a();function f(){let t=(0,u.c)(5),{data:r}=e(n),a;t[0]===r.Subnets?a=t[1]:(a=r.Subnets??[],t[0]=r.Subnets,t[1]=a);let c=a,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(i,{to:`/ec2/create-subnet`,children:(0,d.jsx)(o,{children:`Create Subnet`})}),title:`Subnets`}),t[2]=l):l=t[2];let f;return t[3]===c?f=t[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),t[3]=c,t[4]=f),f}function p(e){if(!e.SubnetId)return null;let n=t(e.Tags);return(0,d.jsx)(l,{badge:(0,d.jsx)(c,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:n?`${e.SubnetId} (${n})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js index caef61481..c73a2f3dc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./link.js";import{t as a}from"./useNavigate.js";import{t as o}from"./button.js";import{c as s,l as c}from"./elbv22.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=a(),{data:n}=r(s),c;e[0]===n.TargetGroups?c=e[1]:(c=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=c);let f=c,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(i,{to:`/ec2/create-target-group`,children:(0,d.jsx)(o,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=c(r),t[0]=r,t[1]=i);let{data:a,isLoading:o}=n(i);if(o){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let s,l;if(t[3]!==a?.TargetHealthDescriptions){s=a?.TargetHealthDescriptions??[];let e={};for(let t of s){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=s,t[5]=l}else s=t[4],l=t[5];let f=l,p;t[6]===s.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:s.length}),t[6]=s.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file +import{t as e}from"./useQuery.js";import{t}from"./useSuspenseQuery.js";import{M as n,eo as r,j as i,no as a,ro as o,so as s,ya as c}from"./index.js";import{t as l}from"./page-heading.js";var u=r(),d=s();function f(){let e=(0,u.c)(6),n=o(),{data:r}=t(i),s;e[0]===r.TargetGroups?s=e[1]:(s=r.TargetGroups??[],e[0]=r.TargetGroups,e[1]=s);let f=s,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(a,{to:`/ec2/create-target-group`,children:(0,d.jsx)(c,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==n||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let t=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await n({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(t)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(a,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(t)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??t})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:t})]},t)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=n,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(t){let r=(0,u.c)(13),{arn:i}=t,a;r[0]===i?a=r[1]:(a=n(i),r[0]=i,r[1]=a);let{data:o,isLoading:s}=e(a);if(s){let e;return r[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),r[2]=e):e=r[2],e}let c,l;if(r[3]!==o?.TargetHealthDescriptions){c=o?.TargetHealthDescriptions??[];let e={};for(let t of c){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,r[3]=o?.TargetHealthDescriptions,r[4]=c,r[5]=l}else c=r[4],l=r[5];let f=l,p;r[6]===c.length?p=r[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),r[6]=c.length,r[7]=p);let m;r[8]===f?m=r[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),r[8]=f,r[9]=m);let g;return r[10]!==p||r[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),r[10]=p,r[11]=m,r[12]=g):g=r[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js index 04f65022e..7b9e024e7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{y as a}from"./ec22.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Volumes?s=e[1]:(s=t.Volumes??[],e[0]=t.Volumes,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(i,{children:`Create Volume`})}),title:`EC2 Volumes`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB`,title:e.VolumeId,to:`/ec2/describe-volumes/$id`},e.VolumeId):null}export{d as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{eo as t,et as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./state-badge.js";import{t as c}from"./list-card.js";var l=t(),u=i();function d(){let t=(0,l.c)(5),{data:i}=e(n),s;t[0]===i.Volumes?s=t[1]:(s=i.Volumes??[],t[0]=i.Volumes,t[1]=s);let c=s,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(a,{children:`Create Volume`})}),title:`EC2 Volumes`}),t[2]=d):d=t[2];let p;return t[3]===c?p=t[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),t[3]=c,t[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(c,{badge:(0,u.jsx)(s,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB`,title:e.VolumeId,to:`/ec2/describe-volumes/$id`},e.VolumeId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js index bde703d33..e5eb31ab6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{V as i}from"./SignatureV4.js";import{t as a}from"./button.js";import{x as o}from"./ec22.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";import{t as l}from"./list-card.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(l,{badge:(0,d.jsx)(c,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{Da as t,eo as n,no as r,nt as i,so as a,ya as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./state-badge.js";import{t as l}from"./list-card.js";var u=n(),d=a();function f(){let t=(0,u.c)(5),{data:n}=e(i),a;t[0]===n.Vpcs?a=t[1]:(a=n.Vpcs??[],t[0]=n.Vpcs,t[1]=a);let c=a,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(o,{children:`Create VPC`})}),title:`VPCs`}),t[2]=l):l=t[2];let f;return t[3]===c?f=t[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),t[3]=c,t[4]=f),f}function p(e){if(!e.VpcId)return null;let n=t(e.Tags);return(0,d.jsx)(l,{badge:(0,d.jsx)(c,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:n?`${e.VpcId} (${n})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js b/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js index 942dfe228..acfc5fb89 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/detail-row.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";var n=t(),r=e();function i(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`rounded-lg border bg-card`,children:i}),t[0]=i,t[1]=a),a}function a(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`border-b p-4`,children:(0,r.jsx)(`h2`,{className:`font-semibold`,children:i})}),t[0]=i,t[1]=a),a}function o(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:i}),t[0]=i,t[1]=a),a}var s=Object.assign(i,{Header:a,Content:o});function c(e){let t=(0,n.c)(9),{label:i,value:a}=e,o;t[0]===i?o=t[1]:(o=(0,r.jsx)(`dt`,{className:`text-sm text-muted-foreground`,children:i}),t[0]=i,t[1]=o);let s;t[2]===a?s=t[3]:(s=a||(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}),t[2]=a,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,r.jsx)(`dd`,{className:`mt-1 font-mono text-sm`,children:s}),t[4]=s,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,r.jsxs)(`div`,{children:[o,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}export{s as n,c as t}; \ No newline at end of file +import{eo as e,so as t}from"./index.js";var n=e(),r=t();function i(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`rounded-lg border bg-card`,children:i}),t[0]=i,t[1]=a),a}function a(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`border-b p-4`,children:(0,r.jsx)(`h2`,{className:`font-semibold`,children:i})}),t[0]=i,t[1]=a),a}function o(e){let t=(0,n.c)(2),{children:i}=e,a;return t[0]===i?a=t[1]:(a=(0,r.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:i}),t[0]=i,t[1]=a),a}var s=Object.assign(i,{Header:a,Content:o});function c(e){let t=(0,n.c)(9),{label:i,value:a}=e,o;t[0]===i?o=t[1]:(o=(0,r.jsx)(`dt`,{className:`text-sm text-muted-foreground`,children:i}),t[0]=i,t[1]=o);let s;t[2]===a?s=t[3]:(s=a||(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}),t[2]=a,t[3]=s);let c;t[4]===s?c=t[5]:(c=(0,r.jsx)(`dd`,{className:`mt-1 font-mono text-sm`,children:s}),t[4]=s,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,r.jsxs)(`div`,{children:[o,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}export{s as n,c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/dist.js b/spinifex/services/spinifexui/frontend/dist/assets/dist.js deleted file mode 100644 index 68973bc5f..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/dist.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,r as t}from"./compiler-runtime.js";import{U as n}from"./SignatureV4.js";function r(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var i={};function a(e,t,n,r,i){if(!n&&!r&&!i&&!e)return s(t);let a=s(e);return t&&(a=c(a,t)),n&&(a=c(a,n)),r&&(a=c(a,r)),i&&(a=c(a,i)),a}function o(e){if(e.length===0)return i;if(e.length===1)return s(e[0]);let t=s(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function f(e){return typeof e==`function`}function p(e,t){return f(e)?e(t):e??i}function m(e,t){return t?e?(...n)=>{let r=n[0];if(v(r)){let i=r;g(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:h(t):e}function h(e){return e&&((...t)=>{let n=t[0];return v(n)&&g(n),e(...t)})}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function _(e,t){return t?e?t+` `+e:t:e}function v(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function y(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var b=y(`https://base-ui.com/production-error`,`Base UI`),x=e(t()),S={};function C(e,t){let n=x.useRef(S);return n.current===S&&(n.current=e(t)),n}function w(e,t,n,r){let i=C(E).current;return D(i,e,t,n,r)&&k(i,[e,t,n,r]),i.callback}function T(e){let t=C(E).current;return O(t,e)&&k(t,e),t.callback}function E(){return{callback:null,cleanup:null,refs:[]}}function D(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function O(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function k(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function M(e){if(!x.isValidElement(e))return null;let t=e,n=t.props;return(j(19)?n?.ref:t.ref)??null}function N(){}var P=Object.freeze([]),F=Object.freeze({});function I(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function L(e,t){return typeof e==`function`?e(t):e}function R(e,t){return typeof e==`function`?e(t):e}function z(e,t,n={}){let r=t.render,i=B(t,n);return n.enabled===!1?null:U(e,r,i,n.state??F)}function B(e,t={}){let{className:n,style:i,render:a}=e,{state:o=F,ref:s,props:c,stateAttributesMapping:l,enabled:u=!0}=t,d=u?L(n,o):void 0,f=u?R(i,o):void 0,p=u?I(o,l):F,m=u&&c?V(c):void 0,h=u?r(p,m)??{}:F;return typeof document<`u`&&(u?Array.isArray(s)?h.ref=T([h.ref,M(a),...s]):h.ref=w(h.ref,M(a),s):w(null,null)),u?(d!==void 0&&(h.className=_(h.className,d)),f!==void 0&&(h.style=r(h.style,f)),h):F}function V(e){return Array.isArray(e)?o(e):a(void 0,e)}var H=Symbol.for(`react.lazy`);function U(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=a(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===H&&(i=x.Children.toArray(t)[0]),x.cloneElement(i,e)}if(e&&typeof e==`string`)return W(e,n);throw Error(b(8))}function W(e,t){return e===`button`?(0,x.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,x.createElement)(`img`,{alt:``,...t,key:t.key}):x.createElement(e,t)}var G=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,K=n,q=(e,t)=>n=>{if(t?.variants==null)return K(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=G(t)||G(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return K(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};export{N as a,C as c,a as d,F as i,b as l,z as n,j as o,P as r,w as s,q as t,g as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/download.js b/spinifex/services/spinifexui/frontend/dist/assets/download.js index 637e84d9b..b55283264 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/download.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/download.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js index adf14fb43..9f4f50276 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{n}from"./error-banner.js";import{$t as r,Ct as i,Dt as a,Et as o,Gt as s,Jt as c,Kt as l,Ot as u,Qt as d,St as f,Tt as p,Ut as ee,Wt as m,Xt as h,Yt as g,Zt as _,_t as v,an as y,at as te,bt as ne,ct as re,dn as ie,dt as ae,en as oe,ft as se,gt as ce,ht as le,in as b,lt as ue,mt as de,n as x,on as S,ot as C,pt as w,qt as T,rn as E,st as D,tn as O,un as k,ut as A,vt as j,wt as M,xt as N,yt as P}from"./awsClient.js";import{c as F,t as I}from"./SignatureV4.js";import{c as L}from"./ec22.js";var R=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(te).build(){},z=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(C).build(){},B=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(D).build(){},V=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(re).build(){},H=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(ue).build(){};function fe(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?ie(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var pe=`2016-11-15`;function me(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await y(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():S(i),o=new F({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:pe,DestinationRegion:t}}),s=await new I({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:fe(s)}},F.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${k(n.input.PresignedUrl)}`)}}return t(n)}}var he={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},ge=e=>({applyToStack:t=>{t.add(me(e),he)}}),_e=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),ge(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(A).build(){},ve=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(ae).build(){},ye=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(se).build(){},be=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(w).build(){},xe=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(de).build(){},Se=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(le).build(){},U=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(ce).build(){},Ce=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(v).build(){},we=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(j).build(){},W=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(P).build(){},Te=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(ne).build(){},G=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(N).build(){},Ee=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(f).build(){},De=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(i).build(){},Oe=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(M).build(){},ke=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(p).build(){},Ae=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(o).build(){},je=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(a).build(){},Me=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(u).build(){},Ne=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(ee).build(){},Pe=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(m).build(){},Fe=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(s).build(){},Ie=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(l).build(){},Le=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(T).build(){},Re=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(c).build(){},ze=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(g).build(){},Be=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(h).build(){},Ve=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(_).build(){},He=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(d).build(){},Ue=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(r).build(){},We=class extends E.classBuilder().ep(O).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(oe).build(){},K={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},q=e();function J(e){let t=e.split(`/`),n=t[0]??``,r=t[1]??`0`,i=Number.parseInt(r,10),a=n.split(`.`).map(e=>Number.parseInt(e,10)),o=a[0]??0,s=a[1]??0,c=a[2]??0,l=a[3]??0;return{network:((o<<24|s<<16|c<<8|l)>>>0&(i===0?0:4294967295<<32-i>>>0))>>>0,prefix:i}}function Y(e){return`${e>>>24&255}.${e>>>16&255}.${e>>>8&255}.${e&255}`}function X(e){return 2**(32-e)}function Ge(e){let t=e+4;return Math.min(t,28)}function Z(e,t,n){let{network:r,prefix:i}=J(e),a=Ge(i),o=X(a),s=X(i)/2,c=[];for(let e=0;e>>0;c.push({cidr:`${Y(t)}/${a}`,label:`Public Subnet ${e+1}`})}let l=[];for(let e=0;e>>0;l.push({cidr:`${Y(t)}/${a}`,label:`Private Subnet ${e+1}`})}return{publicSubnets:c,privateSubnets:l}}function Ke(e,t){let n=J(e),r=J(t),i=n.network+X(n.prefix)-1>>>0,a=r.network+X(r.prefix)-1>>>0;return n.network<=a&&r.network<=i}function qe(e,t){let n=J(e),r=J(t),i=n.network+X(n.prefix)-1>>>0,a=r.network+X(r.prefix)-1>>>0;return r.network>=n.network&&a<=i}function Je(e,t=16,n=28){let r=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(e);if(!r||[Number.parseInt(r[1]??`0`,10),Number.parseInt(r[2]??`0`,10),Number.parseInt(r[3]??`0`,10),Number.parseInt(r[4]??`0`,10)].some(e=>e>255))return!1;let i=Number.parseInt(r[5]??`0`,10);return i>=t&&i<=n}var Ye=/\s+/;function Xe(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ze,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Ze(e){let t=new He({InstanceIds:[e]});return await x().send(t)}function Qe(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:$e,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function $e(e){let t=new Ue({InstanceIds:[e]});return await x().send(t)}function et(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:tt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function tt(e){let t=new We({InstanceIds:[e]});return await x().send(t)}function nt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:rt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function rt(e){let t=new Re({InstanceIds:[e]});return await x().send(t)}function it(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:at,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function at(e){let t=new Ve({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:ot(e)});return await x().send(t)}function ot(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function st(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ct,onSuccess:()=>{r.invalidateQueries(L)}},e[0]=r,e[1]=i),n(i)}async function ct(e){let t=new be({KeyName:e.keyName,KeyType:`rsa`});return await x().send(t)}function lt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ut,onSuccess:()=>{r.invalidateQueries(L)}},e[0]=r,e[1]=i),n(i)}async function ut(e){let t=e.publicKeyMaterial.trim().split(Ye).slice(0,2).join(` `),n=new Fe({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await x().send(n)}function dt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ft,onSuccess:()=>{r.invalidateQueries(L)}},e[0]=r,e[1]=i),n(i)}async function ft(e){let t=new Ee({KeyPairId:e});return await x().send(t)}function pt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:mt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function mt(e){let t=new Te({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await x().send(t)}function ht(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:gt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function gt(e){let t=new Le({VolumeId:e.volumeId,Size:e.size});return await x().send(t)}function _t(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:vt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function vt(e){let t=new je({VolumeId:e});return await x().send(t)}function yt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:bt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function bt(e){let t=new we({VolumeId:e.volumeId,Description:e.description||void 0});return await x().send(t)}function xt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:St,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function St(e){let t=new ke({SnapshotId:e});return await x().send(t)}function Ct(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:wt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function wt(e){let t=new _e({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await x().send(t)}function Tt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Et,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Et(e){let t=new B({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await x().send(t)}function Dt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ot,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Ot(e){let t=new Ne({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await x().send(t)}function kt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:At,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function At(e){let{instanceId:t,...n}=e,r=new Ie({InstanceId:t,InstanceType:{Value:n.instanceType}});return await x().send(r)}function jt(){let e=(0,q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={mutationFn:Mt},e[0]=t):t=e[0],n(t)}async function Mt(e){let t=new Pe({InstanceId:e});return await x().send(t)}function Nt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Pt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Pt(e){let t=new ve({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await x().send(t)}function Ft(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:It,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}async function It(e){let t=new G({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await x().send(t)}function Lt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Rt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}async function Rt(e){let t=new Me({VpcId:e});return await x().send(t)}function zt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Bt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}async function Bt(e){let t=new W({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0});return await x().send(t)}function Vt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ht,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}async function Ht(e){let t=new Ae({SubnetId:e});return await x().send(t)}function Ut(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Wt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Wt(e){let t=new xe({GroupName:e.groupName,Strategy:e.strategy});return await x().send(t)}function Gt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Kt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Kt(e){let t=new De({GroupName:e});return await x().send(t)}function qt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Jt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Jt(e){let t=new Ce({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await x().send(t)}function Q(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Yt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Yt(e){let t=new Oe({GroupId:e});return await x().send(t)}function Xt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Zt,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Zt(e){let t=new H({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function Qt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:$t,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function $t(e){let t=new V({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function en(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:tn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function tn(e){let t=new Be({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function nn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:rn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function rn(e){let t=new ze({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function an(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=an(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function on(){let e=t();return n({mutationFn:async e=>{let t=x(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new G({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(K.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=Z(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=[];for(let a=0;a0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new ye({TagSpecifications:$(K.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new U({VpcId:c,TagSpecifications:$(K.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new Se({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`;for(let e of f)await t.send(new R({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){a=`creating private route table`;let e=r?`${r}-rtb-private`:void 0,o=(await t.send(new U({VpcId:c,TagSpecifications:$(K.route_table,e,i)}))).RouteTable?.RouteTableId;if(!o)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:o}),a=`associating private subnets with route table`;for(let e of p)await t.send(new R({RouteTableId:o,SubnetId:e}))}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}})}export{Xe as A,jt as C,nt as D,ht as E,Ke as F,Je as I,et as M,Z as N,nn as O,qe as P,Dt as S,kt as T,Q as _,Nt as a,_t as b,Ut as c,zt as d,pt as f,Gt as g,dt as h,Ct as i,Qe as j,en as k,qt as l,on as m,Qt as n,it as o,Ft as p,Xt as r,st as s,Tt as t,yt as u,xt as v,lt as w,Lt as x,Vt as y}; \ No newline at end of file +import{n as e}from"./error-banner.js";import{$t as t,An as n,Cn as r,Dn as i,En as a,Hn as o,In as s,Jn as c,Jt as l,Kt as u,Ln as d,Mn as f,Nn as p,On as m,Qt as h,Sn as g,Tn as _,U as v,Xt as y,Yt as ee,Zt as te,_n as ne,an as re,bn as ie,cn as ae,dn as oe,en as se,eo as ce,fn as le,gn as ue,hn as de,in as b,it as x,jn as S,ln as C,mn as w,nn as T,on as E,oo as D,pn as O,qt as k,rn as A,sn as j,tn as M,un as N,vn as P,wn as F,xn as I,yn as L}from"./index.js";var R=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(u).build(){},z=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(k).build(){},B=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(l).build(){},V=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(ee).build(){},H=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(y).build(){};function fe(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?d(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var pe=`2016-11-15`;function me(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await f(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():p(i),l=new c({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:pe,DestinationRegion:t}}),u=await new o({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(l,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:fe(u)}},c.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${s(n.input.PresignedUrl)}`)}}return t(n)}}var he={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},ge=e=>({applyToStack:t=>{t.add(me(e),he)}}),_e=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),ge(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(te).build(){},ve=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(h).build(){},ye=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(t).build(){},be=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(se).build(){},xe=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(M).build(){},Se=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(T).build(){},U=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(A).build(){},Ce=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(b).build(){},we=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(re).build(){},W=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(E).build(){},Te=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(j).build(){},G=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(ae).build(){},Ee=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(C).build(){},De=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(N).build(){},Oe=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(oe).build(){},ke=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(le).build(){},Ae=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(O).build(){},je=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(w).build(){},Me=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(de).build(){},Ne=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(ue).build(){},Pe=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(ne).build(){},Fe=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(P).build(){},Ie=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(L).build(){},Le=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(ie).build(){},Re=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(I).build(){},ze=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(g).build(){},Be=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(r).build(){},Ve=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(F).build(){},He=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(_).build(){},Ue=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(a).build(){},We=class extends n.classBuilder().ep(m).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(i).build(){},K={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},q=ce();function J(e){let t=e.split(`/`),n=t[0]??``,r=t[1]??`0`,i=Number.parseInt(r,10),a=n.split(`.`).map(e=>Number.parseInt(e,10)),o=a[0]??0,s=a[1]??0,c=a[2]??0,l=a[3]??0;return{network:((o<<24|s<<16|c<<8|l)>>>0&(i===0?0:4294967295<<32-i>>>0))>>>0,prefix:i}}function Y(e){return`${e>>>24&255}.${e>>>16&255}.${e>>>8&255}.${e&255}`}function X(e){return 2**(32-e)}function Ge(e){let t=e+4;return Math.min(t,28)}function Z(e,t,n){let{network:r,prefix:i}=J(e),a=Ge(i),o=X(a),s=X(i)/2,c=[];for(let e=0;e>>0;c.push({cidr:`${Y(t)}/${a}`,label:`Public Subnet ${e+1}`})}let l=[];for(let e=0;e>>0;l.push({cidr:`${Y(t)}/${a}`,label:`Private Subnet ${e+1}`})}return{publicSubnets:c,privateSubnets:l}}function Ke(e,t){let n=J(e),r=J(t),i=n.network+X(n.prefix)-1>>>0,a=r.network+X(r.prefix)-1>>>0;return n.network<=a&&r.network<=i}function qe(e,t){let n=J(e),r=J(t),i=n.network+X(n.prefix)-1>>>0,a=r.network+X(r.prefix)-1>>>0;return r.network>=n.network&&a<=i}function Je(e,t=16,n=28){let r=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(e);if(!r||[Number.parseInt(r[1]??`0`,10),Number.parseInt(r[2]??`0`,10),Number.parseInt(r[3]??`0`,10),Number.parseInt(r[4]??`0`,10)].some(e=>e>255))return!1;let i=Number.parseInt(r[5]??`0`,10);return i>=t&&i<=n}var Ye=/\s+/;function Xe(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ze,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Ze(e){let t=new He({InstanceIds:[e]});return await x().send(t)}function Qe(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:$e,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function $e(e){let t=new Ue({InstanceIds:[e]});return await x().send(t)}function et(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function tt(e){let t=new We({InstanceIds:[e]});return await x().send(t)}function nt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:rt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function rt(e){let t=new Re({InstanceIds:[e]});return await x().send(t)}function it(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:at,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function at(e){let t=new Ve({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:ot(e)});return await x().send(t)}function ot(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function st(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:ct,onSuccess:()=>{n.invalidateQueries(v)}},t[0]=n,t[1]=r),e(r)}async function ct(e){let t=new be({KeyName:e.keyName,KeyType:`rsa`});return await x().send(t)}function lt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:ut,onSuccess:()=>{n.invalidateQueries(v)}},t[0]=n,t[1]=r),e(r)}async function ut(e){let t=e.publicKeyMaterial.trim().split(Ye).slice(0,2).join(` `),n=new Fe({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await x().send(n)}function dt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:ft,onSuccess:()=>{n.invalidateQueries(v)}},t[0]=n,t[1]=r),e(r)}async function ft(e){let t=new Ee({KeyPairId:e});return await x().send(t)}function pt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:mt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function mt(e){let t=new Te({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await x().send(t)}function ht(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function gt(e){let t=new Le({VolumeId:e.volumeId,Size:e.size});return await x().send(t)}function _t(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},t[0]=n,t[1]=r),e(r)}async function vt(e){let t=new je({VolumeId:e});return await x().send(t)}function yt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:bt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function bt(e){let t=new we({VolumeId:e.volumeId,Description:e.description||void 0});return await x().send(t)}function xt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:St,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function St(e){let t=new ke({SnapshotId:e});return await x().send(t)}function Ct(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:wt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},t[0]=n,t[1]=r),e(r)}async function wt(e){let t=new _e({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await x().send(t)}function Tt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Et,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Et(e){let t=new B({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await x().send(t)}function Dt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ot,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function Ot(e){let t=new Ne({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await x().send(t)}function kt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:At,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},t[0]=n,t[1]=r),e(r)}async function At(e){let{instanceId:t,...n}=e,r=new Ie({InstanceId:t,InstanceType:{Value:n.instanceType}});return await x().send(r)}function jt(){let t=(0,q.c)(1),n;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:Mt},t[0]=n):n=t[0],e(n)}async function Mt(e){let t=new Pe({InstanceId:e});return await x().send(t)}function Nt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},t[0]=n,t[1]=r),e(r)}async function Pt(e){let t=new ve({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await x().send(t)}function Ft(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:It,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},t[0]=n,t[1]=r),e(r)}async function It(e){let t=new G({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await x().send(t)}function Lt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Rt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},t[0]=n,t[1]=r),e(r)}async function Rt(e){let t=new Me({VpcId:e});return await x().send(t)}function zt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Bt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},t[0]=n,t[1]=r),e(r)}async function Bt(e){let t=new W({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0});return await x().send(t)}function Vt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Ht,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},t[0]=n,t[1]=r),e(r)}async function Ht(e){let t=new Ae({SubnetId:e});return await x().send(t)}function Ut(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Wt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Wt(e){let t=new xe({GroupName:e.groupName,Strategy:e.strategy});return await x().send(t)}function Gt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Kt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Kt(e){let t=new De({GroupName:e});return await x().send(t)}function qt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Jt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Jt(e){let t=new Ce({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await x().send(t)}function Q(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},t[0]=n,t[1]=r),e(r)}async function Yt(e){let t=new Oe({GroupId:e});return await x().send(t)}function Xt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:Zt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function Zt(e){let t=new H({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function Qt(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:$t,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function $t(e){let t=new V({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function en(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:tn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function tn(e){let t=new Be({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function nn(){let t=(0,q.c)(2),n=D(),r;return t[0]===n?r=t[1]:(r={mutationFn:rn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},t[0]=n,t[1]=r),e(r)}async function rn(e){let t=new ze({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await x().send(t)}function an(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=an(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function on(){let t=D();return e({mutationFn:async e=>{let t=x(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new G({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(K.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=Z(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=[];for(let a=0;a0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new ye({TagSpecifications:$(K.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new U({VpcId:c,TagSpecifications:$(K.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new Se({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`;for(let e of f)await t.send(new R({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){a=`creating private route table`;let e=r?`${r}-rtb-private`:void 0,o=(await t.send(new U({VpcId:c,TagSpecifications:$(K.route_table,e,i)}))).RouteTable?.RouteTableId;if(!o)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:o}),a=`associating private subnets with route table`;for(let e of p)await t.send(new R({RouteTableId:o,SubnetId:e}))}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),t.invalidateQueries({queryKey:[`ec2`,`subnets`]}),t.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),t.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}})}export{Xe as A,jt as C,nt as D,ht as E,Ke as F,Je as I,et as M,Z as N,nn as O,qe as P,Dt as S,kt as T,Q as _,Nt as a,_t as b,Ut as c,zt as d,pt as f,Gt as g,dt as h,Ct as i,Qe as j,en as k,qt as l,on as m,Qt as n,it as o,Ft as p,Xt as r,st as s,Tt as t,yt as u,xt as v,lt as w,Lt as x,Vt as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec22.js b/spinifex/services/spinifexui/frontend/dist/assets/ec22.js index 673614e2e..5489c0935 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec22.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec22.js @@ -1 +1 @@ -import{t as e}from"./queryOptions.js";import{At as t,Bt as n,Ft as r,Ht as i,It as a,Lt as o,Nt as s,Pt as c,Rt as l,Vt as u,in as d,jt as f,kt as p,n as m,rn as h,tn as g,zt as _}from"./awsClient.js";import{t as v}from"./DescribeInstancesCommand.js";var y=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(p).build(){},b=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(t).build(){},x=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(f).build(){},S=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(s).build(){},C=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(c).build(){},w=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(r).build(){},T=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(a).build(){},E=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(o).build(){},D=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(l).build(){},O=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(_).build(){},k=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(n).build(){},A=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(u).build(){},j=class extends h.classBuilder().ep(g).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(i).build(){},M=e({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new y({});return await m().send(e)},staleTime:3e5}),N=e({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new v({});return await m().send(e)},refetchInterval:5e3}),P=t=>e({queryKey:[`ec2`,`instances`,t],queryFn:async()=>{let e=new v({InstanceIds:[t]});return await m().send(e)},refetchInterval:5e3}),F=e({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new x({Filters:[{Name:`capacity`,Values:[`true`]}]});return await m().send(e)},refetchInterval:5e3}),I=e({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new b({});return await m().send(e)}}),L=t=>e({queryKey:[`ec2`,`images`,t??`none`],queryFn:async()=>{if(!t)return{Images:[],$metadata:{}};let e=new b({ImageIds:[t]});return await m().send(e)}}),R=e({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new C({});return await m().send(e)}}),z=t=>e({queryKey:[`ec2`,`keypairs`,t],queryFn:async()=>{let e=new C({KeyPairIds:[t]});return await m().send(e)}}),B=e({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new T({});return await m().send(e)},staleTime:3e5}),V=e({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new k({});return await m().send(e)}}),H=t=>e({queryKey:[`ec2`,`subnets`,t],queryFn:async()=>{let e=new k({SubnetIds:[t]});return await m().send(e)}}),U=e({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new O({});return await m().send(e)},refetchInterval:5e3}),W=t=>e({queryKey:[`ec2`,`snapshots`,t],queryFn:async()=>{let e=new O({SnapshotIds:[t]});return await m().send(e)},refetchInterval:5e3});e({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new S({});return await m().send(e)}}),e({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new E({});return await m().send(e)}});var G=e({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new j({});return await m().send(e)}}),K=t=>e({queryKey:[`ec2`,`vpcs`,t],queryFn:async()=>{let e=new j({VpcIds:[t]});return await m().send(e)}}),q=e({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new w({});return await m().send(e)}}),J=t=>e({queryKey:[`ec2`,`placementGroups`,t],queryFn:async()=>{let e=new w({GroupIds:[t]});return await m().send(e)}}),Y=e({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new D({});return await m().send(e)}}),X=t=>e({queryKey:[`ec2`,`securityGroups`,t],queryFn:async()=>{let e=new D({GroupIds:[t]});return await m().send(e)}}),Z=e({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new A({});return await m().send(e)},refetchInterval:5e3}),Q=t=>e({queryKey:[`ec2`,`volumes`,t],queryFn:async()=>{let e=new A({VolumeIds:[t]});return await m().send(e)},refetchInterval:5e3});export{V as _,F as a,K as b,R as c,B as d,X as f,H as g,U as h,P as i,J as l,W as m,L as n,N as o,Y as p,I as r,z as s,M as t,q as u,Q as v,G as x,Z as y}; \ No newline at end of file +import{F as e,I as t,P as n}from"./ec2.js";import{cr as r,dr as i,lr as a,or as o,pr as s,sr as c,ur as l}from"./index.js";var u=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,d=s().min(1,`Key name is required`).max(255,`Key name must be 255 characters or less`).regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,`Key name contains invalid characters`),f=[`gp3`],p=i({imageId:s(`Please select an Image`),instanceType:s(`Please select an instance type`),keyName:s(`Please select a key pair`).min(1,`Key pair is required`),subnetId:s().optional(),placementGroupName:s().optional(),count:a(`Instance count must be a whole number`).min(1,`Instance count must be at least 1`),rootDeviceName:s().optional(),rootVolumeSize:l().int(`Volume size must be a whole number`).min(1,`Volume size must be at least 1 GiB`).max(16384,`Volume size must be at most 16384 GiB`).optional(),rootVolumeType:o(f).optional(),rootDeleteOnTermination:r().optional()}),m=i({keyName:d}),h=i({keyName:d,publicKeyMaterial:s().min(1,`Public key is required`).refine(e=>e.trim().length>0,`Public key cannot be empty`)}),g=i({size:l().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`).max(16384,`Size must be at most 16384 GiB`),availabilityZone:s().min(1,`Availability zone is required`)}),_=i({size:l().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`)}),v=i({volumeId:s().min(1,`Volume is required`),description:s().optional()});i({sourceSnapshotId:s().min(1,`Source snapshot is required`),sourceRegion:s().min(1,`Source region is required`),description:s().optional()}),i({volumeId:s().min(1,`Volume is required`),instanceId:s().min(1,`Instance is required`),device:s().optional()}),i({volumeId:s().min(1,`Volume is required`),instanceId:s().optional(),force:r().optional()}),i({instanceType:s().min(1,`Instance type is required`)}),i({name:s().min(1,`Name is required`),description:s().optional()});var y=i({vpcId:s().min(1,`VPC is required`),cidrBlock:s().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.1.0/24)`),availabilityZone:s().optional()});i({cidrBlock:s().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`),name:s().optional()});var b=i({key:s().min(1,`Key is required`),value:s()}),x=i({mode:o([`vpc-only`,`vpc-and-more`]),namePrefix:s().optional(),autoGenerateNames:r(),cidrBlock:s().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`).refine(e=>t(e),`CIDR has invalid octets or prefix length (must be /16 to /28)`),tenancy:o([`default`,`dedicated`]),publicSubnetCount:l().int().min(0).max(1),privateSubnetCount:l().int().min(0).max(2),publicSubnetCidrs:c(s()),privateSubnetCidrs:c(s()),tags:c(b)}).superRefine((r,i)=>{if(r.mode!==`vpc-and-more`)return;let a=[];for(let[e,o]of r.publicSubnetCidrs.entries())t(o,16,28)?(n(r.cidrBlock,o)||i.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`publicSubnetCidrs`,e]}),a.push({cidr:o,field:`publicSubnetCidrs`,index:e})):i.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`publicSubnetCidrs`,e]});for(let[e,o]of r.privateSubnetCidrs.entries())t(o,16,28)?(n(r.cidrBlock,o)||i.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`privateSubnetCidrs`,e]}),a.push({cidr:o,field:`privateSubnetCidrs`,index:e})):i.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`privateSubnetCidrs`,e]});for(let t=0;te.trim().length>0,`Public key cannot be empty`)}),g=a({size:n().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`).max(16384,`Size must be at most 16384 GiB`),availabilityZone:i().min(1,`Availability zone is required`)}),_=a({size:n().int(`Size must be a whole number`).min(1,`Size must be at least 1 GiB`)}),v=a({volumeId:i().min(1,`Volume is required`),description:i().optional()});a({sourceSnapshotId:i().min(1,`Source snapshot is required`),sourceRegion:i().min(1,`Source region is required`),description:i().optional()}),a({volumeId:i().min(1,`Volume is required`),instanceId:i().min(1,`Instance is required`),device:i().optional()}),a({volumeId:i().min(1,`Volume is required`),instanceId:i().optional(),force:t().optional()}),a({instanceType:i().min(1,`Instance type is required`)}),a({name:i().min(1,`Name is required`),description:i().optional()});var y=a({vpcId:i().min(1,`VPC is required`),cidrBlock:i().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.1.0/24)`),availabilityZone:i().optional()});a({cidrBlock:i().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`),name:i().optional()});var b=a({key:i().min(1,`Key is required`),value:i()}),x=a({mode:o([`vpc-only`,`vpc-and-more`]),namePrefix:i().optional(),autoGenerateNames:t(),cidrBlock:i().min(1,`CIDR block is required`).regex(u,`Must be a valid CIDR block (e.g. 10.0.0.0/16)`).refine(e=>c(e),`CIDR has invalid octets or prefix length (must be /16 to /28)`),tenancy:o([`default`,`dedicated`]),publicSubnetCount:n().int().min(0).max(1),privateSubnetCount:n().int().min(0).max(2),publicSubnetCidrs:r(i()),privateSubnetCidrs:r(i()),tags:r(b)}).superRefine((e,t)=>{if(e.mode!==`vpc-and-more`)return;let n=[];for(let[r,i]of e.publicSubnetCidrs.entries())c(i,16,28)?(l(e.cidrBlock,i)||t.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`publicSubnetCidrs`,r]}),n.push({cidr:i,field:`publicSubnetCidrs`,index:r})):t.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`publicSubnetCidrs`,r]});for(let[r,i]of e.privateSubnetCidrs.entries())c(i,16,28)?(l(e.cidrBlock,i)||t.addIssue({code:`custom`,message:`Subnet CIDR must be within the VPC CIDR range`,path:[`privateSubnetCidrs`,r]}),n.push({cidr:i,field:`privateSubnetCidrs`,index:r})):t.addIssue({code:`custom`,message:`Invalid subnet CIDR format or prefix length`,path:[`privateSubnetCidrs`,r]});for(let e=0;e{r.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=r,e[1]=i),n(i)}async function k(e){let t=new x({LoadBalancerArn:e});return await p().send(t)}function A(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:j,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=r,e[1]=i),n(i)}async function j(e){let t=new w({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(M)});return await p().send(t)}function M(e){return{Key:e.key,Value:e.value}}function N(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:P,onSuccess:()=>{r.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=r,e[1]=i),n(i)}async function P(e){let t=e.tags.filter(I).map(F),n=new y({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:e.healthCheck.path,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:{HttpCode:e.healthCheck.matcher},Tags:t.length>0?t:void 0});return await p().send(n)}function F(e){return{Key:e.key,Value:e.value}}function I(e){return e.key.length>0}function L(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:R,onSuccess:()=>{r.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=r,e[1]=i),n(i)}async function R(e){let t=new S({TargetGroupArn:e});return await p().send(t)}function z(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:B,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=r,e[1]=i),n(i)}async function B(e){let t=new T({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(V)});return await p().send(t)}function V(e){return{Key:e.key,Value:e.value}}function H(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:U,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=r,e[1]=i),n(i)}async function U(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new _({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t});return await p().send(n)}function W(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:G,onSuccess:()=>{r.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=r,e[1]=i),n(i)}async function G(e){let t=new b({ListenerArn:e});return await p().send(t)}function K(){let e=t();return n({mutationFn:async e=>{let t=p(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value}));if(i=(await t.send(new y({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:a.healthCheck.path,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:{HttpCode:a.healthCheck.matcher},Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new v({Name:e.lb.name,Scheme:e.lb.scheme,Type:`application`,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new _({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}]})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function q(e){return e.map(e=>({Id:e.id,Port:e.port}))}function J(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Y,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=r,e[1]=i),n(i)}async function Y(e){let t=new E({TargetGroupArn:e.targetGroupArn,Targets:q(e.targets)});return await p().send(t)}function X(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Z,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=r,e[1]=i),n(i)}async function Z(e){let t=new C({TargetGroupArn:e.targetGroupArn,Targets:q(e.targets)});return await p().send(t)}export{O as a,A as c,W as i,z as l,K as n,L as o,N as r,X as s,H as t,J as u}; \ No newline at end of file +import{n as e}from"./error-banner.js";import{An as t,Bt as n,Ft as r,Ht as i,It as a,Lt as o,Pt as s,Rt as c,Ut as l,Vt as u,Wt as d,at as f,eo as p,jn as m,oo as h,zt as g}from"./index.js";var _=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(s).build(){},v=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(r).build(){},y=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(a).build(){},b=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(o).build(){},x=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(c).build(){},S=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(g).build(){},C=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(n).build(){},w=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(u).build(){},T=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(i).build(){},E=class extends t.classBuilder().ep(d).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(l).build(){},D=p();function O(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},t[0]=n,t[1]=r),e(r)}async function k(e){let t=new x({LoadBalancerArn:e});return await f().send(t)}function A(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},t[0]=n,t[1]=r),e(r)}async function j(e){let t=new w({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(M)});return await f().send(t)}function M(e){return{Key:e.key,Value:e.value}}function N(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:P,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},t[0]=n,t[1]=r),e(r)}async function P(e){let t=e.tags.filter(I).map(F),n=new y({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:e.healthCheck.path,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:{HttpCode:e.healthCheck.matcher},Tags:t.length>0?t:void 0});return await f().send(n)}function F(e){return{Key:e.key,Value:e.value}}function I(e){return e.key.length>0}function L(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:R,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},t[0]=n,t[1]=r),e(r)}async function R(e){let t=new S({TargetGroupArn:e});return await f().send(t)}function z(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:B,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},t[0]=n,t[1]=r),e(r)}async function B(e){let t=new T({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(V)});return await f().send(t)}function V(e){return{Key:e.key,Value:e.value}}function H(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},t[0]=n,t[1]=r),e(r)}async function U(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new _({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t});return await f().send(n)}function W(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},t[0]=n,t[1]=r),e(r)}async function G(e){let t=new b({ListenerArn:e});return await f().send(t)}function K(){let t=h();return e({mutationFn:async e=>{let t=f(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value}));if(i=(await t.send(new y({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:a.healthCheck.path,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:{HttpCode:a.healthCheck.matcher},Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new v({Name:e.lb.name,Scheme:e.lb.scheme,Type:`application`,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new _({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}]})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{t.invalidateQueries({queryKey:[`elbv2`]})}})}function q(e){return e.map(e=>({Id:e.id,Port:e.port}))}function J(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},t[0]=n,t[1]=r),e(r)}async function Y(e){let t=new E({TargetGroupArn:e.targetGroupArn,Targets:q(e.targets)});return await f().send(t)}function X(){let t=(0,D.c)(2),n=h(),r;return t[0]===n?r=t[1]:(r={mutationFn:Z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},t[0]=n,t[1]=r),e(r)}async function Z(e){let t=new C({TargetGroupArn:e.targetGroupArn,Targets:q(e.targets)});return await f().send(t)}export{O as a,A as c,W as i,z as l,K as n,L as o,N as r,X as s,H as t,J as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js index 752c141c8..63039acd9 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js @@ -1 +1 @@ -import{t as e}from"./queryOptions.js";import{$ as t,J as n,Q as r,X as i,Y as a,Z as o,et as s,in as c,it as l,r as u,rn as d}from"./awsClient.js";var f=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(n).build(){},p=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(a).build(){},m=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(i).build(){},h=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(o).build(){},g=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(r).build(){},_=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(t).build(){},v=class extends d.classBuilder().ep(l).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(s).build(){},y=5e3,b=e({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new m({});return await u().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?y:!1}),x=t=>e({queryKey:[`elbv2`,`loadBalancers`,t],queryFn:async()=>{let e=new m({LoadBalancerArns:[t]});return await u().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?y:!1}),S=t=>e({queryKey:[`elbv2`,`loadBalancers`,t,`attributes`],queryFn:async()=>{let e=new p({LoadBalancerArn:t});return await u().send(e)}}),C=e({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new _({});return await u().send(e)}}),w=t=>e({queryKey:[`elbv2`,`targetGroups`,t],queryFn:async()=>{let e=new _({TargetGroupArns:[t]});return await u().send(e)}}),T=t=>e({queryKey:[`elbv2`,`targetGroups`,t,`attributes`],queryFn:async()=>{let e=new g({TargetGroupArn:t});return await u().send(e)}}),E=t=>e({queryKey:[`elbv2`,`listeners`,t],queryFn:async()=>{let e=new f({LoadBalancerArn:t});return await u().send(e)}}),D=t=>e({queryKey:[`elbv2`,`targetGroups`,t,`health`],queryFn:async()=>{let e=new v({TargetGroupArn:t});return await u().send(e)}}),O=t=>e({queryKey:[`elbv2`,`tags`,...t],queryFn:async()=>{let e=new h({ResourceArns:t});return await u().send(e)},enabled:t.length>0});export{O as a,C as c,b as i,D as l,S as n,T as o,x as r,w as s,E as t}; \ No newline at end of file +import{dr as e,fr as t,or as n,pr as r,sr as i,ur as a}from"./index.js";var o=/^(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$/,s=r().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`).refine(e=>!e.startsWith(`internal-`),`Name cannot start with 'internal-'`),c=r().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`),l=a().int(`Port must be a whole number`).min(1,`Port must be at least 1`).max(65535,`Port must be at most 65535`),u=e({key:r().min(1,`Tag key is required`).max(128),value:r().max(256)}),d=e({protocol:n([`HTTP`]),path:r().min(1,`Path is required`).max(1024),port:r().min(1),intervalSeconds:a().int().min(5).max(300),timeoutSeconds:a().int().min(2).max(120),healthyThresholdCount:a().int().min(2).max(10),unhealthyThresholdCount:a().int().min(2).max(10),matcher:r().regex(/^\d{3}(?:[-,]\d{3})*$/,`Matcher must be HTTP codes like 200 or 200-299 or 200,201`)}),f=e({name:c,protocol:n([`HTTP`]),port:l,vpcId:r().min(1,`VPC is required`),healthCheck:d,tags:i(u)}),p=e({protocol:n([`HTTP`]),port:l,defaultTargetGroupArn:r().min(1,`Target group is required`)}),m=e({name:s,scheme:n([`internet-facing`,`internal`]),vpcId:r().min(1,`VPC is required`),subnetIds:i(r()).min(2,`At least 2 subnets are required for an ALB`),securityGroupIds:i(r()),tags:i(u),listener:e({protocol:n([`HTTP`]),port:l,targetGroupMode:n([`new`,`existing`]),existingTargetGroupArn:r().optional()}).refine(e=>e.targetGroupMode===`existing`?!!e.existingTargetGroupArn:!0,{error:`Target group is required`,path:[`existingTargetGroupArn`]})});e({targets:i(e({instanceId:r().min(1,`Instance is required`),port:l.optional()})).min(1,`At least one target is required`)}),t(r(),r());export{m as n,f as r,p as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv23.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv23.js deleted file mode 100644 index 52dc3d4e3..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv23.js +++ /dev/null @@ -1 +0,0 @@ -import{A as e,O as t,T as n,j as r,k as i,w as a}from"./SignatureV4.js";var o=/^(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$/,s=r().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`).refine(e=>!e.startsWith(`internal-`),`Name cannot start with 'internal-'`),c=r().min(1,`Name is required`).max(32,`Name must be 32 characters or less`).regex(o,`Name may contain only letters, digits, and hyphens; must start and end with alphanumeric`),l=t().int(`Port must be a whole number`).min(1,`Port must be at least 1`).max(65535,`Port must be at most 65535`),u=i({key:r().min(1,`Tag key is required`).max(128),value:r().max(256)}),d=i({protocol:a([`HTTP`]),path:r().min(1,`Path is required`).max(1024),port:r().min(1),intervalSeconds:t().int().min(5).max(300),timeoutSeconds:t().int().min(2).max(120),healthyThresholdCount:t().int().min(2).max(10),unhealthyThresholdCount:t().int().min(2).max(10),matcher:r().regex(/^\d{3}(?:[-,]\d{3})*$/,`Matcher must be HTTP codes like 200 or 200-299 or 200,201`)}),f=i({name:c,protocol:a([`HTTP`]),port:l,vpcId:r().min(1,`VPC is required`),healthCheck:d,tags:n(u)}),p=i({protocol:a([`HTTP`]),port:l,defaultTargetGroupArn:r().min(1,`Target group is required`)}),m=i({name:s,scheme:a([`internet-facing`,`internal`]),vpcId:r().min(1,`VPC is required`),subnetIds:n(r()).min(2,`At least 2 subnets are required for an ALB`),securityGroupIds:n(r()),tags:n(u),listener:i({protocol:a([`HTTP`]),port:l,targetGroupMode:a([`new`,`existing`]),existingTargetGroupArn:r().optional()}).refine(e=>e.targetGroupMode===`existing`?!!e.existingTargetGroupArn:!0,{error:`Target group is required`,path:[`existingTargetGroupArn`]})});i({targets:n(i({instanceId:r().min(1,`Instance is required`),port:l.optional()})).min(1,`At least one target is required`)}),e(r(),r());export{m as n,f as r,p as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js b/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js index 615ba4e4a..d11c0e5fb 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/error-banner.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{D as i,E as a,M as o,c as s,g as c,n as l,x as u}from"./QueryClientProvider.js";import{q as d}from"./index.js";var f=class extends o{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),a(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&c(t.mutationKey)!==c(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??d();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){s.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},p=e(n(),1);function m(e,t){let n=l(t),[r]=p.useState(()=>new f(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);let a=p.useSyncExternalStore(p.useCallback(e=>r.subscribe(s.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=p.useCallback((e,t)=>{r.mutate(e,t).catch(u)},[r]);if(a.error&&i(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var h=r(),g=t();function _(e){let t=(0,h.c)(7),{msg:n,error:r}=e,i;r&&(i=r.name===`Error`?r.message:r.name);let a;t[0]===n?a=t[1]:(a=n&&(0,g.jsx)(`h2`,{className:`text-sm text-destructive`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,g.jsx)(`p`,{className:`text-sm text-destructive`,children:i}),t[2]=i,t[3]=o);let s;return t[4]!==a||t[5]!==o?(s=(0,g.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6],s}export{m as n,_ as t}; \ No newline at end of file +import{Do as e,To as t,bo as n,co as r,do as i,eo as a,go as o,lo as s,mo as c,oo as l,so as u,xo as d}from"./index.js";var f=class extends t{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),n(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&c(t.mutationKey)!==c(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??s();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){i.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},p=e(r(),1);function m(e,t){let n=l(t),[r]=p.useState(()=>new f(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);let a=p.useSyncExternalStore(p.useCallback(e=>r.subscribe(i.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=p.useCallback((e,t)=>{r.mutate(e,t).catch(o)},[r]);if(a.error&&d(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}var h=a(),g=u();function _(e){let t=(0,h.c)(7),{msg:n,error:r}=e,i;r&&(i=r.name===`Error`?r.message:r.name);let a;t[0]===n?a=t[1]:(a=n&&(0,g.jsx)(`h2`,{className:`text-sm text-destructive`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,g.jsx)(`p`,{className:`text-sm text-destructive`,children:i}),t[2]=i,t[3]=o);let s;return t[4]!==a||t[5]!==o?(s=(0,g.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6],s}export{m as n,_ as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js b/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js index 4e6f695f6..c9ff314a3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js @@ -1 +1 @@ -import{t as e}from"./fromUtf8.browser.js";import{t}from"./toUtf8.browser.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(e.body,async e=>{let r=``;for(let t in e)if(t!==`__type`){r=t;break}let i=e[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??t)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let t=e[r].headers[s]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?a[s]=BigInt(t.toString()):a[s]=Number(t):a[s]=t)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(t,n,r){let i=this.serializer,a=t,o=null,s,c=n.getSchema()[4].includes(t),l={};if(c){let e=n.getMemberSchema(t);if(e.isStructSchema()){for(let[n,i]of e.structIterator()){let{eventHeader:e,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(e){let e=r[t][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=e&&e<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),e!=null&&(l[n]={type:a,value:e},delete r[t][n])}}if(o!==null){let n=e.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[t][o])}else i.write(e,r[t])}else if(e.isUnitSchema())i.write(e,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[e,n]=r[t];a=e,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??e)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file +import{Kn as e,Wn as t}from"./index.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(e.body,async e=>{let r=``;for(let t in e)if(t!==`__type`){r=t;break}let i=e[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??t)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let t=e[r].headers[s]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?a[s]=BigInt(t.toString()):a[s]=Number(t):a[s]=t)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(t,n,r){let i=this.serializer,a=t,o=null,s,c=n.getSchema()[4].includes(t),l={};if(c){let e=n.getMemberSchema(t);if(e.isStructSchema()){for(let[n,i]of e.structIterator()){let{eventHeader:e,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(e){let e=r[t][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=e&&e<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),e!=null&&(l[n]={type:a,value:e},delete r[t][n])}}if(o!==null){let n=e.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[t][o])}else i.write(e,r[t])}else if(e.isUnitSchema())i.write(e,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[e,n]=r[t];a=e,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??e)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/field.js b/spinifex/services/spinifexui/frontend/dist/assets/field.js index 807e89ed1..c1efb4575 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/field.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/field.js @@ -1 +1 @@ -import{n as e,r as t,t as n}from"./compiler-runtime.js";import{t as r}from"./dist.js";import{I as i}from"./SignatureV4.js";import"./separator.js";t();var a=n(),o=e();function s(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`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`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}var c=r(`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:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.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 l(e){let t=(0,a.c)(11),n,r,s;t[0]===e?(n=t[1],r=t[2],s=t[3]):({className:n,orientation:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s);let l=s===void 0?`vertical`:s,u;t[4]!==n||t[5]!==l?(u=i(c({orientation:l}),n),t[4]=n,t[5]=l,t[6]=u):u=t[6];let d;return t[7]!==l||t[8]!==r||t[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...r}),t[7]=l,t[8]=r,t[9]=u,t[10]=d):d=t[10],d}function u(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function d(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`text-left text-xs/relaxed leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function f(e){let t=(0,a.c)(15),n,r,s,c;t[0]===e?(n=t[1],r=t[2],s=t[3],c=t[4]):({className:r,children:n,errors:s,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s,t[4]=c);let l;bb0:{if(n){l=n;break bb0}if(!s?.length){l=null;break bb0}let e;t[5]===s?e=t[6]:(e=[...new Map(s.map(m)).values()],t[5]=s,t[6]=e);let r=e;if(r?.length===1){l=r[0]?.message;break bb0}let i;t[7]===r?i=t[8]:(i=(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(p)}),t[7]=r,t[8]=i),l=i}let u=l;if(!u)return null;let d;t[9]===r?d=t[10]:(d=i(`text-xs/relaxed font-normal text-destructive`,r),t[9]=r,t[10]=d);let f;return t[11]!==u||t[12]!==c||t[13]!==d?(f=(0,o.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),t[11]=u,t[12]=c,t[13]=d,t[14]=f):f=t[14],f}function p(e){return e?.message&&(0,o.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{u as a,s as i,d as n,f as r,l as t}; \ No newline at end of file +import{Sa as e,Wa as t,co as n,eo as r,so as i}from"./index.js";n();var a=r(),o=i();function s(t){let n=(0,a.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=e(`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`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}var c=t(`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:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.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 l(t){let n=(0,a.c)(11),r,i,s;n[0]===t?(r=n[1],i=n[2],s=n[3]):({className:r,orientation:s,...i}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s);let l=s===void 0?`vertical`:s,u;n[4]!==r||n[5]!==l?(u=e(c({orientation:l}),r),n[4]=r,n[5]=l,n[6]=u):u=n[6];let d;return n[7]!==l||n[8]!==i||n[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...i}),n[7]=l,n[8]=i,n[9]=u,n[10]=d):d=n[10],d}function u(t){let n=(0,a.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=e(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}function d(t){let n=(0,a.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=e(`text-left text-xs/relaxed leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}function f(t){let n=(0,a.c)(15),r,i,s,c;n[0]===t?(r=n[1],i=n[2],s=n[3],c=n[4]):({className:i,children:r,errors:s,...c}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s,n[4]=c);let l;bb0:{if(r){l=r;break bb0}if(!s?.length){l=null;break bb0}let e;n[5]===s?e=n[6]:(e=[...new Map(s.map(m)).values()],n[5]=s,n[6]=e);let t=e;if(t?.length===1){l=t[0]?.message;break bb0}let i;n[7]===t?i=n[8]:(i=(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:t.map(p)}),n[7]=t,n[8]=i),l=i}let u=l;if(!u)return null;let d;n[9]===i?d=n[10]:(d=e(`text-xs/relaxed font-normal text-destructive`,i),n[9]=i,n[10]=d);let f;return n[11]!==u||n[12]!==c||n[13]!==d?(f=(0,o.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),n[11]=u,n[12]=c,n[13]=d,n[14]=f):f=n[14],f}function p(e){return e?.message&&(0,o.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{u as a,s as i,d as n,f as r,l as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js b/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js index f2074c408..1af4e2629 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./button.js";var r=t(),i=e();function a(e){let t=(0,r.c)(9),{isSubmitting:a,isPending:o,onCancel:s,submitLabel:c,pendingLabel:l}=e,u=a||o,d;t[0]!==u||t[1]!==s?(d=(0,i.jsx)(n,{disabled:u,onClick:s,type:`button`,variant:`outline`,children:`Cancel`}),t[0]=u,t[1]=s,t[2]=d):d=t[2];let f=u?l:c,p;t[3]!==u||t[4]!==f?(p=(0,i.jsx)(n,{disabled:u,type:`submit`,children:f}),t[3]=u,t[4]=f,t[5]=p):p=t[5];let m;return t[6]!==d||t[7]!==p?(m=(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[d,p]}),t[6]=d,t[7]=p,t[8]=m):m=t[8],m}export{a as t}; \ No newline at end of file +import{eo as e,so as t,ya as n}from"./index.js";var r=e(),i=t();function a(e){let t=(0,r.c)(9),{isSubmitting:a,isPending:o,onCancel:s,submitLabel:c,pendingLabel:l}=e,u=a||o,d;t[0]!==u||t[1]!==s?(d=(0,i.jsx)(n,{disabled:u,onClick:s,type:`button`,variant:`outline`,children:`Cancel`}),t[0]=u,t[1]=s,t[2]=d):d=t[2];let f=u?l:c,p;t[3]!==u||t[4]!==f?(p=(0,i.jsx)(n,{disabled:u,type:`submit`,children:f}),t[3]=u,t[4]=f,t[5]=p):p=t[5];let m;return t[6]!==d||t[7]!==p?(m=(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[d,p]}),t[6]=d,t[7]=p,t[8]=m):m=t[8],m}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js b/spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js deleted file mode 100644 index f075af6d7..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js +++ /dev/null @@ -1 +0,0 @@ -var e=e=>new TextEncoder().encode(e);export{e as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam.js b/spinifex/services/spinifexui/frontend/dist/assets/iam.js index 00dbebd43..f3bf2e243 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{n}from"./error-banner.js";import{A as r,B as i,D as a,E as o,O as s,T as c,i as l,in as u,j as d,k as f,rn as p,w as m,z as h}from"./awsClient.js";var g=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(m).build(){},_=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(c).build(){},v=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(o).build(){},y=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(a).build(){},b=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(s).build(){},x=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(f).build(){},S=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(r).build(){},C=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(d).build(){},w=class extends p.classBuilder().ep(i).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(h).build(){},T=e();function E(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:D,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=r,e[1]=i),n(i)}async function D(e){let t=new y({UserName:e.userName,Path:e.path||void 0});return await l().send(t)}function O(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:k,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=r,e[1]=i),n(i)}async function k(e){let t=new S({UserName:e});return await l().send(t)}function A(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:j,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=r,e[1]=i),n(i)}async function j(e){let t=new _({UserName:e});return await l().send(t)}function M(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:N,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=r,e[1]=i),n(i)}async function N(e){let{userName:t,accessKeyId:n}=e,r=new b({UserName:t,AccessKeyId:n});return await l().send(r)}function P(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:F,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=r,e[1]=i),n(i)}async function F(e){let{userName:t,accessKeyId:n,status:r}=e,i=new w({UserName:t,AccessKeyId:n,Status:r});return await l().send(i)}function I(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:L,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=r,e[1]=i),n(i)}async function L(e){let t=new v({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await l().send(t)}function R(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:z,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=r,e[1]=i),n(i)}async function z(e){let t=new x({PolicyArn:e});return await l().send(t)}function B(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:V,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=r,e[1]=i),n(i)}async function V(e){let{userName:t,policyArn:n}=e,r=new g({UserName:t,PolicyArn:n});return await l().send(r)}function H(){let e=(0,T.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:U,onSuccess:()=>{r.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=r,e[1]=i),n(i)}async function U(e){let{userName:t,policyArn:n}=e,r=new C({UserName:t,PolicyArn:n});return await l().send(r)}export{M as a,H as c,E as i,P as l,A as n,R as o,I as r,O as s,B as t}; \ No newline at end of file +import{n as e}from"./error-banner.js";import{An as t,At as n,Dt as r,Et as i,Mt as a,Nt as o,Ot as s,Tt as c,eo as l,jn as u,jt as d,kt as f,oo as p,ot as m,wt as h}from"./index.js";var g=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(h).build(){},_=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(c).build(){},v=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(i).build(){},y=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(r).build(){},b=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(s).build(){},x=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(f).build(){},S=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(n).build(){},C=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(d).build(){},w=class extends t.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(a).build(){},T=l();function E(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},t[0]=n,t[1]=r),e(r)}async function D(e){let t=new y({UserName:e.userName,Path:e.path||void 0});return await m().send(t)}function O(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},t[0]=n,t[1]=r),e(r)}async function k(e){let t=new S({UserName:e});return await m().send(t)}function A(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:j,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function j(e){let t=new _({UserName:e});return await m().send(t)}function M(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:N,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function N(e){let{userName:t,accessKeyId:n}=e,r=new b({UserName:t,AccessKeyId:n});return await m().send(r)}function P(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},t[0]=n,t[1]=r),e(r)}async function F(e){let{userName:t,accessKeyId:n,status:r}=e,i=new w({UserName:t,AccessKeyId:n,Status:r});return await m().send(i)}function I(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:L,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},t[0]=n,t[1]=r),e(r)}async function L(e){let t=new v({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await m().send(t)}function R(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},t[0]=n,t[1]=r),e(r)}async function z(e){let t=new x({PolicyArn:e});return await m().send(t)}function B(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},t[0]=n,t[1]=r),e(r)}async function V(e){let{userName:t,policyArn:n}=e,r=new g({UserName:t,PolicyArn:n});return await m().send(r)}function H(){let t=(0,T.c)(2),n=p(),r;return t[0]===n?r=t[1]:(r={mutationFn:U,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},t[0]=n,t[1]=r),e(r)}async function U(e){let{userName:t,policyArn:n}=e,r=new C({UserName:t,PolicyArn:n});return await m().send(r)}export{M as a,H as c,E as i,P as l,A as n,R as o,I as r,O as s,B as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js index a0b6c7fa8..68320bff8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js @@ -1 +1 @@ -import{t as e}from"./queryOptions.js";import{B as t,F as n,I as r,L as i,M as a,N as o,P as s,R as c,i as l,in as u,rn as d}from"./awsClient.js";var f=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(a).build(){},p=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(o).build(){},m=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(s).build(){},h=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(n).build(){},g=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(r).build(){},_=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(i).build(){},v=class extends d.classBuilder().ep(t).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(c).build(){},y=e({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new v({});return await l().send(e)},staleTime:3e5}),b=t=>e({queryKey:[`iam`,`users`,t],queryFn:async()=>{let e=new m({UserName:t});return await l().send(e)},staleTime:3e5}),x=t=>e({queryKey:[`iam`,`access-keys`,t],queryFn:async()=>{let e=new h({UserName:t});return await l().send(e)},staleTime:3e5}),S=e({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new _({Scope:`Local`});return await l().send(e)},staleTime:3e5}),C=t=>e({queryKey:[`iam`,`policies`,t],queryFn:async()=>{let e=new f({PolicyArn:t});return await l().send(e)},staleTime:3e5}),w=(t,n)=>e({queryKey:[`iam`,`policy-versions`,t,n],queryFn:async()=>{let e=new p({PolicyArn:t,VersionId:n});return await l().send(e)},staleTime:3e5}),T=t=>e({queryKey:[`iam`,`attached-user-policies`,t],queryFn:async()=>{let e=new g({UserName:t});return await l().send(e)},staleTime:3e5});export{w as a,C as i,T as n,b as o,S as r,y as s,x as t}; \ No newline at end of file +import{dr as e,pr as t}from"./index.js";var n=e({userName:t().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:t().optional()}),r=e({policyName:t().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),description:t().optional(),policyDocument:t().min(1,`Policy document is required`).refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Policy document must be valid JSON`})});export{n,r as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam3.js b/spinifex/services/spinifexui/frontend/dist/assets/iam3.js deleted file mode 100644 index 95c33eafe..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam3.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,k as t}from"./SignatureV4.js";var n=t({userName:e().min(1,`User name is required`).max(64,`User name must be 64 characters or less`).regex(/^[\w+=,.@-]+$/,`User name contains invalid characters`),path:e().optional()}),r=t({policyName:e().min(1,`Policy name is required`).max(128,`Policy name must be 128 characters or less`).regex(/^[\w+=,.@-]+$/,`Policy name contains invalid characters`),description:e().optional(),policyDocument:e().min(1,`Policy document is required`).refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:`Policy document must be valid JSON`})});export{n,r as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js index 6ec29b4ee..4afc12ab8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useNavigate.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{w as o}from"./ec2.js";import{L as s}from"./index.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as f}from"./textarea.js";import{r as p,t as m}from"./zod.js";import{u as h}from"./ec23.js";import{t as g}from"./form-actions.js";var _=t(),v=e();function y(){let e=(0,_.c)(53),t=r(),y=o(),x;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:m(h)},e[0]=x):x=e[0];let{handleSubmit:S,register:C,watch:w,formState:T}=p(x),{errors:E,isSubmitting:D}=T,O;e[1]!==y||e[2]!==t?(O=async e=>{await y.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[1]=y,e[2]=t,e[3]=O):O=e[3];let k=O,A,j;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,v.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),j=(0,v.jsx)(c,{title:`Import Key Pair`}),e[4]=A,e[5]=j):(A=e[4],j=e[5]);let M;e[6]===y.error?M=e[7]:(M=y.error&&(0,v.jsx)(n,{error:y.error,msg:`Failed to import key pair`}),e[6]=y.error,e[7]=M);let N;e[8]!==S||e[9]!==k?(N=S(k),e[8]=S,e[9]=k,e[10]=N):N=e[10];let P;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,v.jsx)(l,{children:(0,v.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[11]=P):P=e[11];let F=!!E.keyName,I;e[12]===C?I=e[13]:(I=C(`keyName`),e[12]=C,e[13]=I);let L;e[14]!==F||e[15]!==I?(L=(0,v.jsx)(s,{"aria-invalid":F,id:`keyName`,placeholder:`my-key-pair…`,...I}),e[14]=F,e[15]=I,e[16]=L):L=e[16];let R;e[17]===E.keyName?R=e[18]:(R=(0,v.jsx)(u,{errors:[E.keyName]}),e[17]=E.keyName,e[18]=R);let z;e[19]!==L||e[20]!==R?(z=(0,v.jsxs)(d,{children:[P,L,R]}),e[19]=L,e[20]=R,e[21]=z):z=e[21];let B,V;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,v.jsx)(l,{children:(0,v.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),V=(0,v.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),e[22]=B,e[23]=V):(B=e[22],V=e[23]);let H=!!E.publicKeyMaterial,U;e[24]===C?U=e[25]:(U=C(`publicKeyMaterial`),e[24]=C,e[25]=U);let W;e[26]!==H||e[27]!==U?(W=(0,v.jsx)(f,{"aria-invalid":H,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...U}),e[26]=H,e[27]=U,e[28]=W):W=e[28];let G;e[29]===E.publicKeyMaterial?G=e[30]:(G=(0,v.jsx)(u,{errors:[E.publicKeyMaterial]}),e[29]=E.publicKeyMaterial,e[30]=G);let K;e[31]!==W||e[32]!==G?(K=(0,v.jsxs)(d,{children:[B,V,W,G]}),e[31]=W,e[32]=G,e[33]=K):K=e[33];let q;e[34]===w?q=e[35]:(q=b(w),e[34]=w,e[35]=q);let J;e[36]===q?J=e[37]:(J=(0,v.jsx)(a,{commands:q}),e[36]=q,e[37]=J);let Y;e[38]===t?Y=e[39]:(Y=async()=>await t({to:`/ec2/describe-key-pairs`}),e[38]=t,e[39]=Y);let X;e[40]!==y.isPending||e[41]!==D||e[42]!==Y?(X=(0,v.jsx)(g,{isPending:y.isPending,isSubmitting:D,onCancel:Y,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[40]=y.isPending,e[41]=D,e[42]=Y,e[43]=X):X=e[43];let Z;e[44]!==z||e[45]!==K||e[46]!==J||e[47]!==X||e[48]!==N?(Z=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[z,K,J,X]}),e[44]=z,e[45]=K,e[46]=J,e[47]=X,e[48]=N,e[49]=Z):Z=e[49];let Q;return e[50]!==Z||e[51]!==M?(Q=(0,v.jsxs)(v.Fragment,{children:[A,j,M,Z]}),e[50]=Z,e[51]=M,e[52]=Q):Q=e[52],Q}function b(e){let t=e(`keyName`);return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./back-link.js";import{t as n}from"./cli-command-panel.js";import{w as r}from"./ec2.js";import{eo as i,ro as a,so as o,yi as s}from"./index.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as f}from"./textarea.js";import{r as p,t as m}from"./zod.js";import{u as h}from"./ec22.js";import{t as g}from"./form-actions.js";var _=i(),v=o();function y(){let i=(0,_.c)(53),o=a(),y=r(),x;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:m(h)},i[0]=x):x=i[0];let{handleSubmit:S,register:C,watch:w,formState:T}=p(x),{errors:E,isSubmitting:D}=T,O;i[1]!==y||i[2]!==o?(O=async e=>{await y.mutateAsync(e),o({to:`/ec2/describe-key-pairs`})},i[1]=y,i[2]=o,i[3]=O):O=i[3];let k=O,A,j;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,v.jsx)(t,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),j=(0,v.jsx)(c,{title:`Import Key Pair`}),i[4]=A,i[5]=j):(A=i[4],j=i[5]);let M;i[6]===y.error?M=i[7]:(M=y.error&&(0,v.jsx)(e,{error:y.error,msg:`Failed to import key pair`}),i[6]=y.error,i[7]=M);let N;i[8]!==S||i[9]!==k?(N=S(k),i[8]=S,i[9]=k,i[10]=N):N=i[10];let P;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,v.jsx)(l,{children:(0,v.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),i[11]=P):P=i[11];let F=!!E.keyName,I;i[12]===C?I=i[13]:(I=C(`keyName`),i[12]=C,i[13]=I);let L;i[14]!==F||i[15]!==I?(L=(0,v.jsx)(s,{"aria-invalid":F,id:`keyName`,placeholder:`my-key-pair…`,...I}),i[14]=F,i[15]=I,i[16]=L):L=i[16];let R;i[17]===E.keyName?R=i[18]:(R=(0,v.jsx)(u,{errors:[E.keyName]}),i[17]=E.keyName,i[18]=R);let z;i[19]!==L||i[20]!==R?(z=(0,v.jsxs)(d,{children:[P,L,R]}),i[19]=L,i[20]=R,i[21]=z):z=i[21];let B,V;i[22]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,v.jsx)(l,{children:(0,v.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),V=(0,v.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),i[22]=B,i[23]=V):(B=i[22],V=i[23]);let H=!!E.publicKeyMaterial,U;i[24]===C?U=i[25]:(U=C(`publicKeyMaterial`),i[24]=C,i[25]=U);let W;i[26]!==H||i[27]!==U?(W=(0,v.jsx)(f,{"aria-invalid":H,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...U}),i[26]=H,i[27]=U,i[28]=W):W=i[28];let G;i[29]===E.publicKeyMaterial?G=i[30]:(G=(0,v.jsx)(u,{errors:[E.publicKeyMaterial]}),i[29]=E.publicKeyMaterial,i[30]=G);let K;i[31]!==W||i[32]!==G?(K=(0,v.jsxs)(d,{children:[B,V,W,G]}),i[31]=W,i[32]=G,i[33]=K):K=i[33];let q;i[34]===w?q=i[35]:(q=b(w),i[34]=w,i[35]=q);let J;i[36]===q?J=i[37]:(J=(0,v.jsx)(n,{commands:q}),i[36]=q,i[37]=J);let Y;i[38]===o?Y=i[39]:(Y=async()=>await o({to:`/ec2/describe-key-pairs`}),i[38]=o,i[39]=Y);let X;i[40]!==y.isPending||i[41]!==D||i[42]!==Y?(X=(0,v.jsx)(g,{isPending:y.isPending,isSubmitting:D,onCancel:Y,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),i[40]=y.isPending,i[41]=D,i[42]=Y,i[43]=X):X=i[43];let Z;i[44]!==z||i[45]!==K||i[46]!==J||i[47]!==X||i[48]!==N?(Z=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[z,K,J,X]}),i[44]=z,i[45]=K,i[46]=J,i[47]=X,i[48]=N,i[49]=Z):Z=i[49];let Q;return i[50]!==Z||i[51]!==M?(Q=(0,v.jsxs)(v.Fragment,{children:[A,j,M,Z]}),i[50]=Z,i[51]=M,i[52]=Q):Q=i[52],Q}function b(e){let t=e(`keyName`);return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`},{type:`flag`,value:` \\ --public-key-material`},{type:`value`,value:` fileb://path/to/key.pub`}]}]}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.css b/spinifex/services/spinifexui/frontend/dist/assets/index.css index eb94fef01..ce3fd6c69 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.css +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.css @@ -1,2 +1,2 @@ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */ -@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:#ffe2e2;--color-red-800:#9f0712;--color-red-900:#82181a;--color-amber-500:#f99c00;--color-yellow-100:#fef9c2;--color-yellow-800:#874b00;--color-yellow-900:#733e0a;--color-green-100:#dcfce7;--color-green-800:#016630;--color-green-900:#0d542b;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-blue-500:#3080ff;--color-gray-100:#f3f4f6;--color-gray-800:#1e2939;--color-zinc-100:#f4f4f5;--color-zinc-400:#9f9fa9;--color-zinc-500:#71717b;--color-zinc-800:#27272a;--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--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:calc(2.25 / 1.875);--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-wider:.05em;--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)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-800:lab(33.7174% 55.8993 41.0293);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-green-900:lab(30.797% -29.6927 17.382);--color-emerald-400:lab(75.0771% -60.7313 19.4147);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-zinc-100:lab(96.1634% .0993311 -.364041);--color-zinc-400:lab(65.6464% 1.53497 -5.42429);--color-zinc-500:lab(47.8878% 1.65477 -5.77283);--color-zinc-800:lab(15.7305% .613764 -2.16959)}}}@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;-webkit-text-decoration:inherit;-webkit-text-decoration: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)}.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-span-2{grid-column:span 2/span 2}.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 (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.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)}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.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-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{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.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-3{height:calc(var(--spacing) * 3)}.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-96{max-height:calc(var(--spacing) * 96)}.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-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-48{width:calc(var(--spacing) * 48)}.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-6xl{max-width:var(--container-6xl)}.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:calc(calc(1 / 2 * 100%) * -1);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:calc(calc(1 / 2 * 100%) * -1);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:0deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.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-pointer{cursor:pointer}.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-inside{list-style-position:inside}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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-8{gap:calc(var(--spacing) * 8)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}: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-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.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-2{border-style:var(--tw-border-style);border-width:2px}.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-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-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-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-amber-500\/50{border-color:#f99c0080}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/50{border-color:color-mix(in oklab, var(--color-amber-500) 50%, transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\/30{border-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\/30{border-color:color-mix(in oklab, var(--color-emerald-500) 30%, transparent)}}.border-foreground\/10{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/10{border-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.border-foreground\/20{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/20{border-color:color-mix(in oklab, var(--foreground) 20%, transparent)}}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.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-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, 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\/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-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/10{background-color:color-mix(in oklab, var(--color-emerald-500) 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\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, 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-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.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-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0{padding-inline:calc(var(--spacing) * 0)}.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-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.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}.text-\[11px\]{font-size:11px}.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-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-emerald-700{color:var(--color-emerald-700)}.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)}}.text-tactical-amber{color:var(--tactical-amber)}.text-tactical-cyan{color:var(--tactical-cyan)}.text-tactical-green{color:var(--tactical-green)}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.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,)}.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-\[panel-open\]\:rotate-180:is(:where(.group)[data-panel-open] *){rotate:180deg}.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\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width: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-input\/40:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-input\/40:hover{background-color:color-mix(in oklab, var(--input) 40%, 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-accent-foreground:hover{color:var(--accent-foreground)}.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)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.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-selected\:border-primary[data-selected]{border-color:var(--primary)}.data-selected\:text-foreground[data-selected]{color:var(--foreground)}.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:calc(calc(1 / 2 * 100%) * -1);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:calc(calc(1 / 2 * 100%) * -1);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 (width>=40rem){.sm\:flex{display:flex}.sm\:max-w-lg{max-width:var(--container-lg)}.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 (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.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}}@media (width>=64rem){.lg\:block{display:block}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container field-group (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}}.dark\:scale-0:where(.dark,.dark *){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100:where(.dark,.dark *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90:where(.dark,.dark *){rotate:-90deg}.dark\:rotate-0:where(.dark,.dark *){rotate:0deg}.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-green-900:where(.dark,.dark *){background-color:var(--color-green-900)}.dark\:bg-input\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-muted\/30:where(.dark,.dark *){background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-muted\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.dark\:bg-popover:where(.dark,.dark *){background-color:var(--popover)}.dark\:bg-red-900:where(.dark,.dark *){background-color:var(--color-red-900)}.dark\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\:bg-yellow-900:where(.dark,.dark *){background-color:var(--color-yellow-900)}.dark\:bg-zinc-800:where(.dark,.dark *){background-color:var(--color-zinc-800)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-green-100:where(.dark,.dark *){color:var(--color-green-100)}.dark\:text-red-100:where(.dark,.dark *){color:var(--color-red-100)}.dark\:text-yellow-100:where(.dark,.dark *){color:var(--color-yellow-100)}.dark\:text-zinc-400:where(.dark,.dark *){color:var(--color-zinc-400)}.dark\:invert:where(.dark,.dark *){--tw-invert:invert(100%);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,)}.dark\:after\:mix-blend-lighten:where(.dark,.dark *):after{content:var(--tw-content);mix-blend-mode:lighten}@media (hover:hover){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:where(.dark,.dark *):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:where(.dark,.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[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 (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 (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 (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}} +@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:#ffe2e2;--color-red-800:#9f0712;--color-red-900:#82181a;--color-amber-500:#f99c00;--color-yellow-100:#fef9c2;--color-yellow-800:#874b00;--color-yellow-900:#733e0a;--color-green-100:#dcfce7;--color-green-800:#016630;--color-green-900:#0d542b;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-blue-500:#3080ff;--color-gray-100:#f3f4f6;--color-gray-800:#1e2939;--color-zinc-100:#f4f4f5;--color-zinc-400:#9f9fa9;--color-zinc-500:#71717b;--color-zinc-800:#27272a;--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--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:calc(2.25 / 1.875);--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-wider:.05em;--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)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-800:lab(33.7174% 55.8993 41.0293);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-yellow-100:lab(97.3564% -4.51407 27.344);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-green-100:lab(96.1861% -13.8464 6.52365);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-green-900:lab(30.797% -29.6927 17.382);--color-emerald-400:lab(75.0771% -60.7313 19.4147);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-zinc-100:lab(96.1634% .0993311 -.364041);--color-zinc-400:lab(65.6464% 1.53497 -5.42429);--color-zinc-500:lab(47.8878% 1.65477 -5.77283);--color-zinc-800:lab(15.7305% .613764 -2.16959)}}}@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;-webkit-text-decoration:inherit;-webkit-text-decoration: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}.\@container{container-type: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)}.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-span-2{grid-column:span 2/span 2}.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 (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.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)}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.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-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{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.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-3{height:calc(var(--spacing) * 3)}.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-96{max-height:calc(var(--spacing) * 96)}.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-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-48{width:calc(var(--spacing) * 48)}.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-6xl{max-width:var(--container-6xl)}.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:calc(calc(1 / 2 * 100%) * -1);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:calc(calc(1 / 2 * 100%) * -1);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:0deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.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-pointer{cursor:pointer}.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-inside{list-style-position:inside}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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-8{gap:calc(var(--spacing) * 8)}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}: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-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.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-2{border-style:var(--tw-border-style);border-width:2px}.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-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-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-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\/30{border-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\/30{border-color:color-mix(in oklab, var(--color-emerald-500) 30%, transparent)}}.border-foreground\/10{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/10{border-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.border-foreground\/20{border-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.border-foreground\/20{border-color:color-mix(in oklab, var(--foreground) 20%, transparent)}}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.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-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, 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\/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-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/10{background-color:color-mix(in oklab, var(--color-emerald-500) 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\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, 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-yellow-100{background-color:var(--color-yellow-100)}.bg-zinc-100{background-color:var(--color-zinc-100)}.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-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0{padding-inline:calc(var(--spacing) * 0)}.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-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.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}.text-\[11px\]{font-size:11px}.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-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-emerald-700{color:var(--color-emerald-700)}.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)}}.text-tactical-amber{color:var(--tactical-amber)}.text-tactical-cyan{color:var(--tactical-cyan)}.text-tactical-green{color:var(--tactical-green)}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-500{color:var(--color-zinc-500)}.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,)}.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-\[panel-open\]\:rotate-180:is(:where(.group)[data-panel-open] *){rotate:180deg}.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\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width: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-input\/40:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-input\/40:hover{background-color:color-mix(in oklab, var(--input) 40%, 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-accent-foreground:hover{color:var(--accent-foreground)}.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)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.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-selected\:border-primary[data-selected]{border-color:var(--primary)}.data-selected\:text-foreground[data-selected]{color:var(--foreground)}.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:calc(calc(1 / 2 * 100%) * -1);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:calc(calc(1 / 2 * 100%) * -1);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 (width>=40rem){.sm\:flex{display:flex}.sm\:max-w-lg{max-width:var(--container-lg)}.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 (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.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}}@media (width>=64rem){.lg\:block{display:block}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container field-group (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}}.dark\:scale-0:where(.dark,.dark *){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:scale-100:where(.dark,.dark *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dark\:-rotate-90:where(.dark,.dark *){rotate:-90deg}.dark\:rotate-0:where(.dark,.dark *){rotate:0deg}.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-green-900:where(.dark,.dark *){background-color:var(--color-green-900)}.dark\:bg-input\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:bg-muted\/30:where(.dark,.dark *){background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-muted\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.dark\:bg-popover:where(.dark,.dark *){background-color:var(--popover)}.dark\:bg-red-900:where(.dark,.dark *){background-color:var(--color-red-900)}.dark\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\:bg-yellow-900:where(.dark,.dark *){background-color:var(--color-yellow-900)}.dark\:bg-zinc-800:where(.dark,.dark *){background-color:var(--color-zinc-800)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-green-100:where(.dark,.dark *){color:var(--color-green-100)}.dark\:text-red-100:where(.dark,.dark *){color:var(--color-red-100)}.dark\:text-yellow-100:where(.dark,.dark *){color:var(--color-yellow-100)}.dark\:text-zinc-400:where(.dark,.dark *){color:var(--color-zinc-400)}.dark\:invert:where(.dark,.dark *){--tw-invert:invert(100%);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,)}.dark\:after\:mix-blend-lighten:where(.dark,.dark *):after{content:var(--tw-content);mix-blend-mode:lighten}@media (hover:hover){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:where(.dark,.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:where(.dark,.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark\:has-data-checked\:bg-primary\/10:where(.dark,.dark *):has([data-checked]){background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:where(.dark,.dark *):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:where(.dark,.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:where(.dark,.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:where(.dark,.dark *)[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 (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 (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 (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/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index 3d73cd942..7b2e6ed86 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -1,10 +1,92 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/awsClient.js","assets/SignatureV4.js","assets/fromUtf8.browser.js","assets/toUtf8.browser.js","assets/DescribeInstancesCommand.js","assets/collapsible.js","assets/button.js","assets/dist.js","assets/separator.js","assets/createBaseUIEventDetails.js","assets/addEventListener.js","assets/zod.js","assets/card.js","assets/field.js","assets/route.js","assets/_auth.js","assets/ec22.js","assets/queryOptions.js","assets/s32.js","assets/useQuery.js","assets/useBaseQuery.js","assets/QueryClientProvider.js","assets/link.js","assets/useStore.js","assets/createLucideIcon.js","assets/chevron-down.js","assets/chevron-right.js","assets/page-heading.js","assets/state-badge.js","assets/admin.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/ls.js","assets/useSuspenseQuery.js","assets/list-card.js","assets/create-bucket.js","assets/s3.js","assets/error-banner.js","assets/useNavigate.js","assets/back-link.js","assets/cli-command-panel.js","assets/check.js","assets/copy.js","assets/use-copy-to-clipboard.js","assets/form-actions.js","assets/create-user.js","assets/iam.js","assets/iam3.js","assets/create-policy.js","assets/textarea.js","assets/create-vpc.js","assets/ec2.js","assets/select.js","assets/useOpenInteractionType.js","assets/ec23.js","assets/create-volume.js","assets/create-target-group.js","assets/elbv2.js","assets/target-group-form.js","assets/plus.js","assets/trash-2.js","assets/elbv23.js","assets/create-subnet.js","assets/create-snapshot.js","assets/create-security-group.js","assets/create-placement-group.js","assets/create-load-balancer.js","assets/elbv22.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/alert-dialog.js","assets/download.js","assets/triangle-alert.js","assets/run-instances.js","assets/route2.js","assets/_bucket.js","assets/upload-button.js","assets/delete-confirmation-dialog.js","assets/list-users.js","assets/iam2.js","assets/list-policies.js","assets/describe-vpcs.js","assets/describe-volumes.js","assets/describe-target-groups.js","assets/describe-subnets.js","assets/describe-snapshots.js","assets/describe-security-groups.js","assets/describe-placement-groups.js","assets/describe-load-balancers.js","assets/describe-key-pairs.js","assets/describe-instances.js","assets/describe-images.js","assets/system-managed.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_policyArn.js","assets/_id12.js","assets/_id11.js","assets/_id10.js","assets/_id9.js","assets/tabs.js","assets/_id8.js","assets/_id7.js","assets/_id6.js","assets/_id5.js","assets/_id4.js","assets/_id3.js","assets/_id2.js","assets/ami-details.js","assets/_id.js"])))=>i.map(i=>d[i]); -import{a as e,i as t,n,r,t as i}from"./compiler-runtime.js";import{C as a,M as o,O as s,S as c,T as l,_ as u,a as d,b as f,c as p,d as m,f as h,g,h as _,i as v,j as y,k as b,m as x,n as S,o as C,p as w,r as T,s as E,t as D,w as O,x as k,y as ee}from"./QueryClientProvider.js";import{A,B as j,C as te,D as M,E as N,F as ne,G as re,K as ie,L as ae,M as oe,N as P,O as se,P as ce,R as le,S as ue,T as de,V as fe,_ as pe,a as me,b as he,c as ge,d as _e,f as ve,h as ye,i as be,j as xe,k as Se,l as Ce,m as we,o as Te,s as Ee,t as F,v as De,w as Oe,x as ke,y as Ae,z as je}from"./useStore.js";import{i as Me,n as Ne,r as Pe}from"./matchContext.js";import{n as Fe,t as I}from"./redirect.js";import{t as Ie}from"./link.js";import{n as L,r as Le,t as R}from"./lazyRouteComponent.js";import{t as Re}from"./useNavigate.js";import{cn as z,hn as ze,t as Be}from"./awsClient.js";import{c as Ve,d as He,i as Ue,l as We,n as Ge,t as Ke}from"./dist.js";import{F as qe,I as B,L as Je,S as Ye,c as Xe,l as Ze,t as Qe,x as $e}from"./SignatureV4.js";import{t as et}from"./createLucideIcon.js";import{C as tt,D as nt,E as rt,T as it,_ as at,b as ot,c as st,d as ct,f as lt,g as ut,h as dt,l as ft,m as pt,n as mt,o as ht,p as gt,r as _t,t as vt,u as yt,v as bt,x as xt,y as V}from"./button.js";import{a as St,i as Ct,n as wt,o as Tt,r as Et,s as Dt,t as Ot}from"./separator.js";import{_ as kt,b as At,f as jt,g as Mt,i as Nt,p as Pt,r as Ft,s as It,t as Lt,u as Rt,v as zt,x as Bt,y as Vt}from"./createBaseUIEventDetails.js";import{A as H,At as Ht,Bt as Ut,C as Wt,Ct as Gt,Dt as Kt,Et as qt,F as Jt,Ft as Yt,G as Xt,Gt as Zt,I as Qt,It as $t,J as en,K as tn,Kt as nn,L as rn,Lt as an,M as on,N as sn,O as cn,Ot as ln,P as un,Pt as dn,Q as fn,S as pn,St as mn,T as hn,Tt as gn,V as _n,W as vn,X as yn,Z as bn,_t as xn,a as Sn,bt as Cn,dt as wn,ft as Tn,gt as En,ht as Dn,i as On,j as kn,k as An,lt as jn,mt as Mn,o as Nn,p as Pn,pt as Fn,q as In,r as Ln,t as Rn,ut as zn,vt as Bn,w as Vn,wt as Hn,xt as Un,yt as Wn,z as Gn,zt as Kn}from"./useOpenInteractionType.js";import{n as qn,o as Jn,r as Yn,t as Xn,u as Zn}from"./addEventListener.js";import{_ as Qn,a as $n,b as er,c as tr,d as nr,f as rr,g as ir,h as ar,i as or,l as sr,m as cr,n as lr,o as ur,p as dr,r as fr,s as pr,t as mr,u as hr,v as gr,x as _r,y as vr}from"./ec22.js";import{a as yr,c as br,i as xr,n as Sr,o as Cr,r as wr,s as Tr,t as Er}from"./elbv22.js";import{a as Dr,i as Or,n as kr,o as Ar,r as jr,s as Mr,t as Nr}from"./iam2.js";import{n as Pr,t as Fr}from"./s32.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function Ir(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{m(e,()=>t.signal,()=>n=!0)},u=x(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?w:h;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Rr:Lr,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Lr(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Lr(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Rr(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var zr=class extends T{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Hr(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Hr(this.options);e.data!==void 0&&(this.setState(Vr(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=a(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(k).catch(k):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>O(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===s||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>l(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:!b(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=x(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ir(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=C({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof v&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof v){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Br(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Vr(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),p.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Br(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:d(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Vr(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Hr(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ur=class extends T{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Wr(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=C({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),p.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Wr(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Gr=class extends o{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ur({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Kr(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Kr(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Kr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Kr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){p.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ee(t,e))}findAll(e={}){return this.getAll().filter(t=>ee(e,t))}notify(e){p.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return p.batch(()=>Promise.all(e.map(e=>e.continue().catch(k))))}};function Kr(e){return e.options.scope?.id}var qr=class extends o{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??u(r,t),a=this.get(i);return a||(a=new zr({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){p.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>f(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>f(e,t)):t}notify(e){p.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){p.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){p.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Jr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new qr,this.#t=e.mutationCache||new Gr,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=E.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(l(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=_(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return p.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;p.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return p.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=p.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(k).catch(k)}invalidateQueries(e,t={}){return p.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=p.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(k)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(k)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(l(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(k).catch(k)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(k).catch(k)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return E.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{c(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{c(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=u(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===s&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Yr(){try{return typeof window<`u`&&typeof window.sessionStorage==`object`?window.sessionStorage:void 0}catch{return}}var Xr=`tsr-scroll-restoration-v1_3`;function Zr(){let e=Yr();if(!e)return null;let t={};try{let n=JSON.parse(e.getItem(`tsr-scroll-restoration-v1_3`)||`{}`);ae(n)&&(t=n)}catch{}return{get state(){return t},set:e=>{t=P(e,t)||t},persist:()=>{try{e.setItem(Xr,JSON.stringify(t))}catch{}}}}var Qr=Zr(),$r=e=>e.state.__TSR_key||e.href;function ei(e){let t=[],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()}var ti=!1,ni=`window`,ri=`data-scroll-restoration-id`;function ii(e,t){if(!Qr)return;let n=Qr;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,ti=!1;let r=e.options.getScrollRestorationKey||$r,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(ti||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(ni,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{let e=t.target;i.set(e,{scrollX:e.scrollLeft||0,scrollY:e.scrollTop||0})}},o=t=>{if(!e.isScrollRestoring||!t||i.size===0||!n)return;let r=n.state[t]||={};for(let[e,t]of i){let n;if(e===ni)n=ni;else if(e.isConnected){let t=e.getAttribute(ri);n=t?`[${ri}="${t}"]`:ei(e)}n&&(r[n]=t)}};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{o(e.fromLocation?r(e.fromLocation):void 0),i.clear()}),window.addEventListener(`pagehide`,()=>{o(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe(`onRendered`,t=>{let a=r(t.toLocation),o=e.options.scrollRestorationBehavior,s=e.options.scrollToTopSelectors;if(i.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))){ti=!0;try{let t=e.isScrollRestoring?n.state[a]:void 0,r=!1;if(t)for(let e in t){let n=t[e];if(!ae(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===ni)window.scrollTo({top:a,left:i,behavior:o}),r=!0;else if(e){let t;try{t=document.querySelector(e)}catch{continue}t&&(t.scrollLeft=i,t.scrollTop=a,r=!0)}}}if(!r){let t=e.history.location.hash.slice(1);if(t){let e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){let n=document.getElementById(t);n&&n.scrollIntoView(e)}}else{let e={top:0,left:0,behavior:o};if(window.scrollTo(e),s)for(let t of s){if(t===ni)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{ti=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function ai(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function oi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function si(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=oi(r):Array.isArray(t)?t.push(oi(r)):n[e]=[t,oi(r)]}return n}var ci=ui(JSON.parse),li=di(JSON.stringify,JSON.parse);function ui(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=si(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function di(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=ai(e,r);return t?`?${t}`:``}}function fi(e){return{input:({url:t})=>{for(let n of e)t=mi(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=hi(e[n],t);return t}}}function pi(e){let t=ye(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=ve([`/`,t,e.pathname]),e)}}function mi(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function hi(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function gi(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>_i(o,_.get())),x=r(()=>_i(s,v.get())),S=r(()=>_i(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=Oe(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:ee,setPending:A,setCached:j};ee(e.matches),a?.(k);function ee(e){vi(e,o,_,n,i)}function A(e){vi(e,s,v,n,i)}function j(e){vi(e,c,y,n,i)}return k}function _i(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function vi(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}M(n.get(),a)||n.set(a)})}var yi=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},bi=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),xi=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Si=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Ci=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},wi=(e,t,n)=>{if(!(!I(n)&&!Me(n)))throw I(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:I(n)?`redirected`:Me(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Si(e,t.index),isFetching:!1,error:n})),Me(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),I(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ti=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ei=(e,t,n)=>{let r=Si(e,n);e.updateMatch(t,e=>({...e,context:r}))},Di=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,wi(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,wi(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!I(n)&&!Me(n)&&(e.serialError??=n)},Oi=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!xi(e,t)&&(n.options.loader||n.options.beforeLoad||Ri(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{yi(e)},i);r._nonReactive.pendingTimeout=t}},ki=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Oi(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&wi(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},U=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=se(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Di(e,n,o,`PARSE_PARAMS`),s&&Di(e,n,s,`VALIDATE_SEARCH`),Oi(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=se();let f={...Si(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=xi(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(I(r)||Me(r))&&(u(),Di(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),le(y))return u(),y.catch(t=>{Di(e,n,t,`BEFORE_LOAD`)}).then(v)}catch(t){u(),Di(e,n,t,`BEFORE_LOAD`)}v(y)},Ai=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>U(e,n,t,i),s=()=>{if(Ti(e,n))return;let t=ki(e,n,i);return le(t)?t.then(o):o()};return a()},ji=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Mi=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Si(e,r),d=xi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ni=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Li(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Mi(e,t,n,r,i)),l=!!s&&le(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;wi(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Si(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Si(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Me(t)&&await i.options.notFoundComponent?.preload?.(),wi(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,wi(e,e.router.getMatch(n),t)}!I(o)&&!Me(o)&&await Li(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Si(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),wi(e,r,t)}},Pi=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Mi(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Ni(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){I(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Ni(e,t,i,n,d):Ei(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ti(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ei(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=xi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&wi(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=se(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Fi(e){let t=e,n=[];bi(t.router)&&yi(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Li(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Li(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ji(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=yi(t);if(le(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Ii(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Li(e,t=zi){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===zi?(()=>{if(e._componentsPromise===void 0){let t=Ii(e,zi);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Ii(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Ri(e){for(let t of zi)if(e.options[t]?.preload)return!0;return!1}var zi=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],Bi=`__TSR_index`,Vi=`popstate`,Hi=`beforeunload`;function Ui(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=qi(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Bi];i=Wi(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Bi];i=Wi(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Bi]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Wi(e,t){t||={};let n=Ji();return{...t,key:n,__TSR_key:n,[Bi]:e}}function Gi(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>qi(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Ji();t.history.replaceState({[Bi]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=qi(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Bi]-l.state[Bi],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ui({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Hi,S,{capture:!0}),t.removeEventListener(Vi,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Hi,S,{capture:!0}),t.addEventListener(Vi,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ki(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function qi(e,t){let n=Ki(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Ji();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||{[Bi]:0,key:a,__TSR_key:a}}}function Ji(){return(Math.random()+1).toString(36).substring(7)}function Yi(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Xi=class{constructor(e,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.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Ce(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Gi()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=Oe(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=gi($i(this.latestLocation),e),ii(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=ye(o);t&&t!==`/`&&e.push(pi({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:fi(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=te(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&ue(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Se(e).path,external:!1,searchStr:o,search:j(t?.search,i),hash:Se(r.slice(1)).path,state:fe(t?.state,a)}}let o=new URL(i,this.origin),s=mi(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Se(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:j(t?.search,c),hash:Se(s.hash.slice(1)).path,state:fe(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>we({base:e,to:t.includes(`//`)?ge(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>ta({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,P(t.params,s)),d=this.routesByPath[pe(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&ce(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:Se(_e({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,ea(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=na({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=j(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?P(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?P(t.state,n.state):{};v=fe(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=hi(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=xe(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=Ae(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,P(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=A(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=pe(this.latestLocation.href)===pe(n.href),a=this.commitLocationPromise;if(this.commitLocationPromise=se(()=>{a?.resolve(),a=void 0}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=qi(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=mi(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ne(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,i=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(a=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=Yi(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await Fi({router:this,sync:e?.sync,forceStaleReload:i.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){I(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):Me(e)&&(n=e);let r=t?t.status:n?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(r),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.matches.get().some(e=>e.status===`error`)&&(a=500),a!==void 0&&this.stores.statusCode.set(a)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Yi(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ne(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Li,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Fi({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(I(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Me(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=ke(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!A(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?A(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??li,parseSearch:e.parseSearch??ci,protocolAllowlist:e.protocolAllowlist??N}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=De(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:pe(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?ia(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=je(t),i={...e.search};for(let e of t)try{Object.assign(i,ea(e.options.validateSearch,i))}catch{}let a=je(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{aa(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Zi=class extends Error{},Qi=class extends Error{};function $i(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function ea(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Zi(`Async validation not supported`);if(n.issues)throw new Zi(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 ta({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=pe(e),a,o=he(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function na({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return ra(n)(e,t,r??!1)}function ra(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...ea(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:P(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function ia(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Pe}function aa(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function oa(e,t){if(e)return typeof e==`string`?e:e[t]}function sa(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ca(e){if(e.tag!==`link`)return;let t=e.attrs?.rel,n=e.attrs?.href;if(typeof n==`string`&&(typeof t==`string`?t.split(/\s+/):[]).includes(`stylesheet`))return n}function la(e,t){let n=ca(t);return!!n&&e?.inlineCss?.styles[n]!==void 0}function ua(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}var W=e(r(),1),G=n();function da(e){let t=e.errorComponent??pa;return(0,G.jsx)(fa,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?W.createElement(t,{error:n,reset:r}):e.children})}var fa=class extends W.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function pa({error:e}){let[t,n]=W.useState(!1);return(0,G.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,G.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,G.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,G.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,G.jsx)(`div`,{children:(0,G.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,G.jsx)(`code`,{children:e.message}):null})}):null]})}var ma=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(ma||{});function ha({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function ga(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var _a=[],va=0,{link:ya,unlink:ba,propagate:xa,checkDirty:Sa,shallowPropagate:Ca}=ha({update(e){return e._update()},notify(e){_a[Ta++]=e,e.flags&=~ma.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=ma.Mutable|ma.Dirty,ka(e))}}),wa=0,Ta=0,Ea,Da=0;function Oa(e){try{++Da,e()}finally{--Da||Aa()}}function ka(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ba(n,e)}function Aa(){if(!(Da>0)){for(;wa{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Ea,o=t?.compare??Object.is;if(n)Ea=i,++va,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=ma.Mutable|ma.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Ea=a,n&&(i.flags&=~ma.RecursedCheck),ka(i)}}};return n?(i.flags=ma.Mutable|ma.Dirty,i.get=function(){let e=i.flags;if(e&ma.Dirty||e&ma.Pending&&Sa(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ca(e)}}else e&ma.Pending&&(i.flags=e&~ma.Pending);return Ea!==void 0&&ya(i,Ea,va),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(xa(e),Ca(e),Aa())}},i}function Ma(e){let t=()=>{let t=Ea;Ea=n,++va,n.depsTail=void 0,n.flags=ma.Watching|ma.RecursedCheck;try{return e()}finally{Ea=t,n.flags&=~ma.RecursedCheck,ka(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:ma.Watching|ma.RecursedCheck,notify(){let e=this.flags;e&ma.Dirty||e&ma.Pending&&Sa(this.deps,this)?t():this.flags=ma.Watching},stop(){this.flags=ma.None,this.depsTail=void 0,ka(this)}};return t(),n}function Na(e){let t=be(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,G.jsx)(da,{getResetKey:()=>n,onCatch:(t,n)=>{if(Me(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Me(t))return e.fallback?.(t);throw t},children:e.children})}function Pa(){return(0,G.jsx)(`p`,{children:`Not Found`})}function Fa(e){return(0,G.jsx)(G.Fragment,{children:e.children})}function Ia(e,t,n){return t.options.notFoundComponent?(0,G.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,G.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,G.jsx)(Pa,{})}var La=W.memo(function({matchId:e}){let t=be(),n=t.stores.matchStores.get(e);n||de();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e);return(0,G.jsx)(Ra,{router:t,matchId:e,resetKey:r,matchState:W.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ra({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,G.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?W.Suspense:Fa,f=s?da:Fa,p=l?Na:Fa;return(0,G.jsxs)(i.isRoot?i.options.shellComponent??Fa:Fa,{children:[(0,G.jsx)(Ne.Provider,{value:t,children:(0,G.jsx)(d,{fallback:o,children:(0,G.jsx)(f,{getResetKey:()=>n,errorComponent:s||pa,onCatch:(e,t)=>{if(Me(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,G.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return W.createElement(l,e)},children:u||r._displayPending?(0,G.jsx)(Te,{fallback:o,children:(0,G.jsx)(Ba,{matchId:t})}):(0,G.jsx)(Ba,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(za,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function za({resetKey:e}){let t=be(),n=W.useRef(void 0);return re(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Yi(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Ba=W.memo(function({matchId:e}){let t=be(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||de();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=W.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=W.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,G.jsx)(e,{},s):(0,G.jsx)(Va,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=se();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Me(i.error)||de(),Ia(t,o,i.error);if(i.status===`redirected`)throw I(i.error)||de(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Va=W.memo(function(){let e=be(),t=W.useContext(Ne),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,G.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||de(),Ia(e,a,void 0);if(!i)return null;let s=(0,G.jsx)(La,{matchId:i});return n===`__root__`?(0,G.jsx)(W.Suspense,{fallback:o,children:s}):s});function Ha(){let e=be(),t=W.useRef({router:e,mounted:!1}),[n,r]=W.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=ie(i),s=i||n||a,c=ie(s),l=i||a,u=ie(l);return e.startTransition=e=>{r(!0),W.startTransition(()=>{e(),r(!1)})},W.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return pe(e.latestLocation.publicHref)!==pe(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),re(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),re(()=>{o&&!i&&e.emit({type:`onLoad`,...Yi(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),re(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Yi(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),re(()=>{if(c&&!s){let t=Yi(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Oa(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&ua(e)}},[s,c,e]),null}function Ua(){let e=be(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,G.jsx)(t,{}):null,r=(0,G.jsxs)(typeof document<`u`&&e.ssr?Fa:W.Suspense,{fallback:n,children:[(0,G.jsx)(Ha,{}),(0,G.jsx)(Wa,{})]});return e.options.InnerWrap?(0,G.jsx)(e.options.InnerWrap,{children:r}):r}function Wa(){let e=be(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,G.jsx)(La,{matchId:t}):null;return(0,G.jsx)(Ne.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,G.jsx)(da,{getResetKey:()=>n,errorComponent:pa,onCatch:void 0,children:r})})}var Ga=e=>({createMutableStore:ja,createReadonlyStore:ja,batch:Oa}),Ka=e=>new qa(e),qa=class extends Xi{constructor(e){super(e,Ga)}};function Ja({router:e,children:t,...n}){ce(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,G.jsx)(me.Provider,{value:e,children:t});return e.options.Wrap?(0,G.jsx)(e.options.Wrap,{children:r}):r}function Ya({router:e,...t}){return(0,G.jsx)(Ja,{router:e,...t,children:(0,G.jsx)(Ua,{})})}function Xa(e){let t=be(),n=(0,W.useRef)(void 0);return F(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=fe(n.current,i);return n.current=e,e}return i})}function Za(e){let{attrs:t,children:n,nonce:r}=e;switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,G.jsx)(Qa,{attrs:t,children:n});default:return null}}function Qa({attrs:e,children:t}){be();let n=Ee(),r=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(W.useEffect(()=>{if(!r){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();if(Array.from(document.querySelectorAll(`script[src]`)).find(e=>e.src===t))return;let n=document.createElement(`script`);for(let[t,r]of Object.entries(e))t!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&n.setAttribute(t,typeof r==`boolean`?``:String(r));return document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}}if(typeof t==`string`){let 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(e=>{if(!(e instanceof HTMLScriptElement))return!1;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;return e.textContent===t&&i===n&&a===r}))return;let i=document.createElement(`script`);if(i.textContent=t,e)for(let[t,n]of Object.entries(e))t!==`suppressHydrationWarning`&&n!==void 0&&n!==!1&&i.setAttribute(t,typeof n==`boolean`?``:String(n));return document.head.appendChild(i),()=>{i.parentNode&&i.parentNode.removeChild(i)}}}},[e,t,r]),r&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var $a=e=>{let t=be(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(Boolean),A),i=W.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:oe(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,r=>{let i=r.map(e=>e.links).filter(Boolean).flat(1).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),a=t.ssr?.manifest,o=r.map(e=>a?.routes[e.routeId]?.assets??[]).filter(Boolean).flat(1).flatMap(t=>t.tag===`link`?la(a,t)?[]:[{tag:`link`,attrs:{...t.attrs,crossOrigin:oa(e,`stylesheet`)??t.attrs?.crossOrigin,suppressHydrationWarning:!0,nonce:n}}]:t.tag===`style`?[{tag:`style`,attrs:{...t.attrs,nonce:n},children:t.children,...t.inlineCss?{inlineCss:!0}:{}}]:[]);return[...i,...o]},A),o=F(t.stores.matches,r=>{let i=[];return r.map(e=>t.looseRoutesById[e.routeId]).forEach(r=>t.ssr?.manifest?.routes[r.id]?.preloads?.filter(Boolean).forEach(t=>{let r=sa(t);i.push({tag:`link`,attrs:{rel:`modulepreload`,href:r.href,crossOrigin:oa(e,`modulepreload`)??r.crossOrigin,nonce:n}})})),i},A),s=F(t.stores.matches,e=>e.map(e=>e.styles).flat(1).filter(Boolean).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),A),c=F(t.stores.matches,e=>e.map(e=>e.headScripts).flat(1).filter(Boolean).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),A);return eo([...i,...o,...a,...s,...c],e=>JSON.stringify(e))};function eo(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function to(e){let t=$a(e.assetCrossOrigin),n=be().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,W.createElement)(Za,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var no=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ro=t(((e,t)=>{t.exports=no()})),io=t((e=>{var t=ro(),n=r(),i=ze();function a(e){var t=`https://react.dev/errors/`+e;if(1ie||(e.current=re[ie],re[ie]=null,ie--)}function P(e,t){ie++,re[ie]=e.current,e.current=t}var se=ae(null),ce=ae(null),le=ae(null),ue=ae(null);function de(e,t){switch(P(le,t),P(ce,e),P(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}oe(se),P(se,e)}function fe(){oe(se),oe(ce),oe(le)}function pe(e){e.memoizedState!==null&&P(ue,e);var t=se.current,n=Hd(t,e.type);t!==n&&(P(ce,e),P(se,n))}function me(e){ce.current===e&&(oe(se),oe(ce)),ue.current===e&&(oe(ue),Qf._currentValue=ne)}var he,ge;function _e(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``,ge=-1i.map(i=>d[i]); +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=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(){}},u=new class extends l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},f=new class{#e=d;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function p(e){setTimeout(e,0)}var m=typeof window>`u`||`Deno`in globalThis;function h(){}function g(e,t){return typeof e==`function`?e(t):e}function _(e){return typeof e==`number`&&e>=0&&e!==1/0}function v(e,t){return Math.max(e+(t||0)-Date.now(),0)}function y(e,t){return typeof e==`function`?e(t):e}function b(e,t){return typeof e==`function`?e(t):e}function x(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==C(o,t.options))return!1}else if(!T(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function S(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(w(t.options.mutationKey)!==w(a))return!1}else if(!T(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function C(e,t){return(t?.queryKeyHashFn||w)(e)}function w(e){return JSON.stringify(e,(e,t)=>te(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function T(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>T(e[n],t[n])):!1}var E=Object.prototype.hasOwnProperty;function ee(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=O(e)&&O(t);if(!r&&!(te(e)&&te(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{f.setTimeout(t,e)})}function k(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ee(e,t)}function A(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ie(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var j=Symbol();function ae(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===j?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oe(e,t){return typeof e==`function`?e(...t):!!e}function se(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ce=(()=>{let e=()=>m;return{isServer(){return e()},setIsServer(t){e=t}}})();function M(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var le=p;function ue(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=le,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var N=ue(),de=new class extends l{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function fe(e){return Math.min(1e3*2**e,3e4)}function pe(e){return(e??`online`)===`online`?de.isOnline():!0}var me=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function he(e){let t=!1,n=0,r,i=M(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new me(t);p(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>u.isFocused()&&(e.networkMode===`always`||de.isOnline())&&e.canRun(),d=()=>pe(e.networkMode)&&e.canRun(),f=e=>{a()||(r?.(),i.resolve(e))},p=e=>{a()||(r?.(),i.reject(e))},m=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(a())return;let i=e.retry??(ce.isServer()?0:3),o=e.retryDelay??fe,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:d,start:()=>(d()?h():m().then(h),i)}}var ge=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_(this.gcTime)&&(this.#e=f.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ce.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(f.clearTimeout(this.#e),this.#e=void 0)}};function _e(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{se(e,()=>t.signal,()=>n=!0)},u=ae(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ie:A;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ye:ve,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ve(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function ve(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ye(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var be=class extends ge{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ce(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ce(this.options);e.data!==void 0&&(this.setState(Se(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=k(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(h).catch(h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>b(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===j||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>y(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:!v(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ae(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?_e(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=he({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof me&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof me){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...xe(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Se(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function xe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Se(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ce(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var we=class extends ge{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Te(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=he({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),N.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Te(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ee=class extends l{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new we({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=De(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=De(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=De(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=De(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){N.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>S(t,e))}findAll(e={}){return this.getAll().filter(t=>S(e,t))}notify(e){N.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return N.batch(()=>Promise.all(e.map(e=>e.continue().catch(h))))}};function De(e){return e.options.scope?.id}var Oe=class extends l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??C(r,t),a=this.get(i);return a||(a=new be({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){N.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>x(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>x(e,t)):t}notify(e){N.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){N.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){N.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ke=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Oe,this.#t=e.mutationCache||new Ee,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=u.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=de.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(y(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=g(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return N.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;N.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return N.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=N.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(h).catch(h)}invalidateQueries(e,t={}){return N.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=N.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(h)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(h)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(y(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(h).catch(h)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(h).catch(h)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return de.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(w(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{T(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(w(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{T(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=C(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===j&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ae=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function k(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,k(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),k(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=Ae()})),Me=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ne=o(((e,t)=>{t.exports=Me()})),P=c(je(),1),F=Ne(),Pe=P.createContext(void 0),Fe=e=>{let t=P.useContext(Pe);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ie=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(Pe.Provider,{value:e,children:t}));function Le(e){return e}var Re=P.use,ze=typeof window<`u`?P.useLayoutEffect:P.useEffect;function Be(e){let t=P.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Ve(e,t,n={},r={}){P.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function He(e){let t=P.useRef(null);return P.useImperativeHandle(e,()=>t.current,[]),t}function Ue(e){return e[e.length-1]}function We(e){return typeof e==`function`}function Ge(e,t){return We(e)?e(t):e}var Ke=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;function Je(e){for(let t in e)if(Ke.call(e,t))return!0;return!1}var Ye=()=>Object.create(null),Xe=(e,t)=>Ze(e,t,Ye);function Ze(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=tt(e)&&tt(i);if(!a&&!($e(e)&&$e(i)))return i;let o=a?e:Qe(e);if(!o)return i;let s=a?i:Qe(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;ti||!nt(e[o],t[o],n)))return!1;return i===a}return!1}function rt(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function it(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function at(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function ot(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function st(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return ot(t)}var ct=[`http:`,`https:`,`mailto:`,`tel:`];function lt(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ut={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},dt=/[&><\u2028\u2029]/g;function ft(e){return e.replace(dt,e=>ut[e])}function pt(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=st(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=st(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function mt(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ht(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var vt=4,yt=5;function bt(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function xt(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=bt(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Et(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Et(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Et(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Tt(n.fullPath??n.from);e.kind=yt,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=Tt(n.fullPath??n.from);e.kind=vt,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)St(e,t,r,s,i,a,o)}function Ct(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;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 wt(e){if(e.pathless)for(let t of e.pathless)wt(t);if(e.static)for(let t of e.static.values())wt(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())wt(t);if(e.dynamic?.length){e.dynamic.sort(Ct);for(let t of e.dynamic)wt(t)}if(e.optional?.length){e.optional.sort(Ct);for(let t of e.optional)wt(t)}if(e.wildcard?.length){e.wildcard.sort(Ct);for(let t of e.wildcard)wt(t)}}function Tt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function Et(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,caseSensitive:n,prefix:r,suffix:i}}function Dt(e,t){let n=Tt(`/`),r=new Uint16Array(6);for(let t of e)St(!1,r,t,1,n,0);wt(n),t.masksTree=n,t.flatCache=_t(1e3)}function Ot(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Nt(e,t.masksTree);return t.flatCache.set(e,r),r}function kt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Tt(`/`),St(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Nt(r,o,n)}function At(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Nt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ft(a.route)),t.matchCache.set(r,a),a}function jt(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Mt(e,t=!1,n){let r=Tt(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return St(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&>(),a[e.id]=e,s!==0&&e.path){let t=jt(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),wt(r),{processedTree:{segmentTree:r,singleCache:_t(1e3),matchCache:_t(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Nt(e,t,n=!1){let r=e.split(`/`),i=Lt(e,r,t,n);if(!i)return null;let[a]=Pt(e,r,i);return{route:i.node.route,rawParams:a}}function Pt(e,t,n){let r=It(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Rt(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Rt(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Rt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Rt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===vt)>(e.node.kind===vt)||t.node.kind===vt==(e.node.kind===vt)&&t.depth>e.depth))):!0}function Ht(e){return Ut(e.filter(e=>e!==void 0).join(`/`))}function Ut(e){return e.replace(/\/{2,}/g,`/`)}function Wt(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Gt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Kt(e){return Gt(Wt(e))}function qt(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Jt(e,t,n){return qt(e,n)===qt(t,n)}function Yt({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&Ue(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(Ue(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Ut(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Xt(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Zt(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>$t(e,n)).join(`/`):$t(r,n):r}function Qt({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s{t=Ge(e,t)||t},persist:()=>{try{e.setItem(nn,JSON.stringify(t))}catch{}}}}var an=rn(),on=e=>e.state.__TSR_key||e.href;function sn(e){let t=[],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()}var cn=!1,ln=`window`,un=`data-scroll-restoration-id`;function dn(e,t){if(!an)return;let n=an;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,cn=!1;let r=e.options.getScrollRestorationKey||on,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(cn||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(ln,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{let e=t.target;i.set(e,{scrollX:e.scrollLeft||0,scrollY:e.scrollTop||0})}},o=t=>{if(!e.isScrollRestoring||!t||i.size===0||!n)return;let r=n.state[t]||={};for(let[e,t]of i){let n;if(e===ln)n=ln;else if(e.isConnected){let t=e.getAttribute(un);n=t?`[${un}="${t}"]`:sn(e)}n&&(r[n]=t)}};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{o(e.fromLocation?r(e.fromLocation):void 0),i.clear()}),window.addEventListener(`pagehide`,()=>{o(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe(`onRendered`,t=>{let a=r(t.toLocation),o=e.options.scrollRestorationBehavior,s=e.options.scrollToTopSelectors;if(i.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))){cn=!0;try{let t=e.isScrollRestoring?n.state[a]:void 0,r=!1;if(t)for(let e in t){let n=t[e];if(!$e(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===ln)window.scrollTo({top:a,left:i,behavior:o}),r=!0;else if(e){let t;try{t=document.querySelector(e)}catch{continue}t&&(t.scrollLeft=i,t.scrollTop=a,r=!0)}}}if(!r){let t=e.history.location.hash.slice(1);if(t){let e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){let n=document.getElementById(t);n&&n.scrollIntoView(e)}}else{let e={top:0,left:0,behavior:o};if(window.scrollTo(e),s)for(let t of s){if(t===ln)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{cn=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function fn(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function pn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function mn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=pn(r):Array.isArray(t)?t.push(pn(r)):n[e]=[t,pn(r)]}return n}var hn=_n(JSON.parse),gn=vn(JSON.stringify,JSON.parse);function _n(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=mn(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function vn(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=fn(e,r);return t?`?${t}`:``}}var yn=`__root__`;function bn(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function xn(e){return e instanceof Response&&!!e.options}function Sn(e){return{input:({url:t})=>{for(let n of e)t=wn(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Tn(e[n],t);return t}}}function Cn(e){let t=Kt(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Ht([`/`,t,e.pathname]),e)}}function wn(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Tn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function En(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Dn(o,_.get())),x=r(()=>Dn(s,v.get())),S=r(()=>Dn(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),ee=_t(64);function D(e){let t=ee.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),ee.set(e,t)),t}let O={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:D,setMatches:te,setPending:ne,setCached:re};te(e.matches),a?.(O);function te(e){On(e,o,_,n,i)}function ne(e){On(e,s,v,n,i)}function re(e){On(e,c,y,n,i)}return O}function Dn(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function On(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}ht(n.get(),a)||n.set(a)})}var kn=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},An=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),jn=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Mn=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Nn=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Pn=(e,t,n)=>{if(!(!xn(n)&&!en(n)))throw xn(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:xn(n)?`redirected`:en(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Mn(e,t.index),isFetching:!1,error:n})),en(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),xn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Fn=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},In=(e,t,n)=>{let r=Mn(e,n);e.updateMatch(t,e=>({...e,context:r}))},Ln=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,Pn(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,Pn(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!xn(n)&&!en(n)&&(e.serialError??=n)},Rn=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!jn(e,t)&&(n.options.loader||n.options.beforeLoad||Yn(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{kn(e)},i);r._nonReactive.pendingTimeout=t}},zn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Rn(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Pn(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Bn=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=rt(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Ln(e,n,o,`PARSE_PARAMS`),s&&Ln(e,n,s,`VALIDATE_SEARCH`),Rn(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=rt();let f={...Mn(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=jn(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(xn(r)||en(r))&&(u(),Ln(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),at(y))return u(),y.catch(t=>{Ln(e,n,t,`BEFORE_LOAD`)}).then(v)}catch(t){u(),Ln(e,n,t,`BEFORE_LOAD`)}v(y)},Vn=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Bn(e,n,t,i),s=()=>{if(Fn(e,n))return;let t=zn(e,n,i);return at(t)?t.then(o):o()};return a()},Hn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Un=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Mn(e,r),d=jn(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Wn=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Jn(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Un(e,t,n,r,i)),l=!!s&&at(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Pn(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Mn(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Mn(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,en(t)&&await i.options.notFoundComponent?.preload?.(),Pn(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Pn(e,e.router.getMatch(n),t)}!xn(o)&&!en(o)&&await Jn(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Mn(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Pn(e,r,t)}},Gn=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Un(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Wn(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){xn(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Wn(e,t,i,n,d):In(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Fn(e,i)){if(!e.router.getMatch(i))return e.matches[n];In(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=jn(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Pn(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=rt(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Kn(e){let t=e,n=[];An(t.router)&&kn(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Jn(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Jn(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Hn(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=kn(t);if(at(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function qn(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Jn(e,t=Xn){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Xn?(()=>{if(e._componentsPromise===void 0){let t=qn(e,Xn);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():qn(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Yn(e){for(let t of Xn)if(e.options[t]?.preload)return!0;return!1}var Xn=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],Zn=`__TSR_index`,Qn=`popstate`,$n=`beforeunload`;function er(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ir(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Zn];i=tr(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Zn];i=tr(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Zn]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function tr(e,t){t||={};let n=ar();return{...t,key:n,__TSR_key:n,[Zn]:e}}function nr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ir(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ar();t.history.replaceState({[Zn]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=ir(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Zn]-l.state[Zn],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=er({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener($n,S,{capture:!0}),t.removeEventListener(Qn,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener($n,S,{capture:!0}),t.addEventListener(Qn,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function rr(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ir(e,t){let n=rr(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=ar();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||{[Zn]:0,key:a,__TSR_key:a}}}function ar(){return(Math.random()+1).toString(36).substring(7)}function or(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var sr=class{constructor(e,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.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Xt(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=nr()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=_t(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=En(ur(this.latestLocation),e),dn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Kt(o);t&&t!==`/`&&e.push(Cn({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Sn(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Mt(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&Dt(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:pt(e).path,external:!1,searchStr:o,search:Xe(t?.search,i),hash:pt(r.slice(1)).path,state:Ze(t?.state,a)}}let o=new URL(i,this.origin),s=wn(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:pt(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:Xe(t?.search,c),hash:pt(s.hash.slice(1)).path,state:Ze(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Yt({base:e,to:t.includes(`//`)?Ut(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>fr({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,Ge(t.params,s)),d=this.routesByPath[Gt(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&Je(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:pt(Qt({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,dr(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=pr({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=Xe(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?Ge(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?Ge(t.state,n.state):{};v=Ze(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=Tn(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=mt(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=Ot(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,Ge(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=nt(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=Gt(this.latestLocation.href)===Gt(n.href),a=this.commitLocationPromise;if(this.commitLocationPromise=rt(()=>{a?.resolve(),a=void 0}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=ir(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=wn(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(lt(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,i=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(a=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=or(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await Kn({router:this,sync:e?.sync,forceStaleReload:i.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){xn(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):en(e)&&(n=e);let r=t?t.status:n?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(r),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.matches.get().some(e=>e.status===`error`)&&(a=500),a!==void 0&&this.stores.statusCode.set(a)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(or(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&<(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Jn,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Kn({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(xn(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});en(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=kt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!nt(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?nt(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??gn,parseSearch:e.parseSearch??hn,protocolAllowlist:e.protocolAllowlist??ct}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ft(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:Gt(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?hr(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=Ue(t),i={...e.search};for(let e of t)try{Object.assign(i,dr(e.options.validateSearch,i))}catch{}let a=Ue(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{gr(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},cr=class extends Error{},lr=class extends Error{};function ur(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function dr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new cr(`Async validation not supported`);if(n.issues)throw new cr(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 fr({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Gt(e),a,o=At(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function pr({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return mr(n)(e,t,r??!1)}function mr(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...dr(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:Ge(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function hr(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return yn}function gr(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var _r=`Error preloading route! ☝️`;function vr(e,t){if(e)return typeof e==`string`?e:e[t]}function yr(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function br(e){if(e.tag!==`link`)return;let t=e.attrs?.rel,n=e.attrs?.href;if(typeof n==`string`&&(typeof t==`string`?t.split(/\s+/):[]).includes(`stylesheet`))return n}function xr(e,t){let n=br(t);return!!n&&e?.inlineCss?.styles[n]!==void 0}var Sr=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=yn:this.parentRoute||gt();let r=n?yn:t?.path;r&&r!==`/`&&(r=Wt(r));let i=t?.id||r,a=n?yn:Ht([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Ht([`/`,a]));let o=a===`__root__`?`/`:Ht([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Gt(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>bn({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Cr=class extends Sr{constructor(e){super(e)}};function wr(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}function Tr(e){let t=e.errorComponent??Dr;return(0,F.jsx)(Er,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?P.createElement(t,{error:n,reset:r}):e.children})}var Er=class extends P.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Dr({error:e}){let[t,n]=P.useState(!1);return(0,F.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,F.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,F.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,F.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,F.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,F.jsx)(`div`,{children:(0,F.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,F.jsx)(`code`,{children:e.message}):null})}):null]})}function Or({children:e,fallback:t=null}){return kr()?(0,F.jsx)(P.Fragment,{children:e}):(0,F.jsx)(P.Fragment,{children:t})}function kr(){return P.useSyncExternalStore(Ar,()=>!0,()=>!1)}function Ar(){return()=>{}}var jr=P.createContext(null);function Mr(e){return P.useContext(jr)}var Nr=P.createContext(void 0),Pr=P.createContext(void 0),Fr=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Fr||{});function Ir({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Lr(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Rr=[],zr=0,{link:Br,unlink:Vr,propagate:Hr,checkDirty:Ur,shallowPropagate:Wr}=Ir({update(e){return e._update()},notify(e){Rr[Kr++]=e,e.flags&=~Fr.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Fr.Mutable|Fr.Dirty,Xr(e))}}),Gr=0,Kr=0,qr,Jr=0;function Yr(e){try{++Jr,e()}finally{--Jr||Zr()}}function Xr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Vr(n,e)}function Zr(){if(!(Jr>0)){for(;Gr{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=qr,o=t?.compare??Object.is;if(n)qr=i,++zr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Fr.Mutable|Fr.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{qr=a,n&&(i.flags&=~Fr.RecursedCheck),Xr(i)}}};return n?(i.flags=Fr.Mutable|Fr.Dirty,i.get=function(){let e=i.flags;if(e&Fr.Dirty||e&Fr.Pending&&Ur(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Wr(e)}}else e&Fr.Pending&&(i.flags=e&~Fr.Pending);return qr!==void 0&&Br(i,qr,zr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Hr(e),Wr(e),Zr())}},i}function $r(e){let t=()=>{let t=qr;qr=n,++zr,n.depsTail=void 0,n.flags=Fr.Watching|Fr.RecursedCheck;try{return e()}finally{qr=t,n.flags&=~Fr.RecursedCheck,Xr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Fr.Watching|Fr.RecursedCheck,notify(){let e=this.flags;e&Fr.Dirty||e&Fr.Pending&&Ur(this.deps,this)?t():this.flags=Fr.Watching},stop(){this.flags=Fr.None,this.depsTail=void 0,Xr(this)}};return t(),n}var ei=o((e=>{var t=je();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),ti=o(((e,t)=>{t.exports=ei()})),ni=o((e=>{var t=je(),n=ti();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),ri=o(((e,t)=>{t.exports=ni()}))();function ii(e,t){return e===t}function ai(e,t,n=ii){let r=(0,P.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,P.useCallback)(()=>e?.get(),[e]);return(0,ri.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var oi={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function si(e){let t=Mr(),n=P.useContext(e.from?Pr:Nr),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=P.useRef(void 0);return ai(i??oi,n=>{if((e.shouldThrow??!0)&&!n&>(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=Ze(a.current,r);return a.current=e,e}return r})}function ci(e){return si({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function li(e){let{select:t,...n}=e;return si({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ui(e){return si({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function di(e){return si({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function fi(e){let t=Mr();return P.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function pi(e){return si({...e,select:t=>e.select?e.select(t.context):t.context})}var mi=o((e=>{var t=je();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=mi()})),gi=c(hi(),1);function _i(e,t){let n=Mr(),r=He(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:E,ignoreBlocker:ee,params:D,search:O,hash:te,state:ne,mask:re,reloadDocument:k,unsafeRelative:A,from:ie,_fromLocation:j,...ae}=e,oe=kr(),se=P.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ce=ai(n.stores.location,e=>e,(e,t)=>e.href===t.href),M=P.useMemo(()=>{let e={_fromLocation:ce,...se};return n.buildLocation(e)},[n,ce,se]),le=M.maskedLocation?M.maskedLocation.publicHref:M.publicHref,ue=M.maskedLocation?M.maskedLocation.external:M.external,N=P.useMemo(()=>Ei(le,ue,n.history,v),[v,ue,le,n.history]),de=P.useMemo(()=>{if(N?.external)return lt(N.href,n.protocolAllowlist)?void 0:N.href;if(!Di(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),lt(s,n.protocolAllowlist)?void 0:s}catch{}},[s,N,n.protocolAllowlist]),fe=P.useMemo(()=>{if(de)return!1;if(o?.exact){if(!Jt(ce.pathname,M.pathname,n.basepath))return!1}else{let e=qt(ce.pathname,n.basepath),t=qt(M.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!nt(ce.search,M.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?oe&&ce.hash===M.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,ce,de,oe,M.hash,M.pathname,M.search,n.basepath]),pe=fe?Ge(i,{})??yi:vi,me=fe?vi:Ge(a,{})??vi,he=[b,pe.className,me.className].filter(Boolean).join(` `),ge=(y||pe.style||me.style)&&{...y,...pe.style,...me.style},[_e,ve]=P.useState(!1),ye=P.useRef(!1),be=e.reloadDocument||de?!1:c??n.options.defaultPreload,xe=l??n.options.defaultPreloadDelay??0,Se=P.useCallback(()=>{n.preloadRoute({...se,_builtLocation:M}).catch(e=>{console.warn(e),console.warn(_r)})},[n,se,M]);Ve(r,P.useCallback(e=>{e?.isIntersecting&&Se()},[Se]),wi,{disabled:!!v||be!==`viewport`}),P.useEffect(()=>{ye.current||!v&&be===`render`&&(Se(),ye.current=!0)},[v,Se,be]);let Ce=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!ki(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,gi.flushSync)(()=>{ve(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ve(!1)});n.navigate({...se,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:ee})}};if(de)return{...ae,ref:r,href:de,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...T&&{onMouseLeave:T},...E&&{onTouchStart:E}};let we=e=>{if(v||be!==`intent`)return;if(!xe){Se();return}let t=e.currentTarget;if(Ci.has(t))return;let n=setTimeout(()=>{Ci.delete(t),Se()},xe);Ci.set(t,n)},Te=e=>{v||be!==`intent`||Se()},Ee=e=>{if(v||!be||!xe)return;let t=e.currentTarget,n=Ci.get(t);n&&(clearTimeout(n),Ci.delete(t))};return{...ae,...pe,...me,href:N?.href,ref:r,onClick:Ti([x,Ce]),onBlur:Ti([S,Ee]),onFocus:Ti([C,we]),onMouseEnter:Ti([w,we]),onMouseLeave:Ti([T,Ee]),onTouchStart:Ti([E,Te]),disabled:!!v,target:_,...ge&&{style:ge},...he&&{className:he},...v&&bi,...fe&&xi,...oe&&_e&&Si}}var vi={},yi={className:`active`},bi={role:`link`,"aria-disabled":!0},xi={"data-status":`active`,"aria-current":`page`},Si={"data-transitioning":`transitioning`},Ci=new WeakMap,wi={rootMargin:`100px`},Ti=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Ei(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Di(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Oi=P.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=_i(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return P.createElement(`a`,t,o)}return P.createElement(n,a,o)});function ki(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Ai=class extends Sr{constructor(e){super(e),this.useMatch=e=>si({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>pi({...e,from:this.id}),this.useSearch=e=>di({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ui({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>li({...e,from:this.id}),this.useLoaderData=e=>ci({...e,from:this.id}),this.useNavigate=()=>fi({from:this.fullPath}),this.Link=P.forwardRef((e,t)=>(0,F.jsx)(Oi,{ref:t,from:this.fullPath,...e}))}};function ji(e){return new Ai(e)}function Mi(){return e=>Pi(e)}var Ni=class extends Cr{constructor(e){super(e),this.useMatch=e=>si({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>pi({...e,from:this.id}),this.useSearch=e=>di({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ui({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>li({...e,from:this.id}),this.useLoaderData=e=>ci({...e,from:this.id}),this.useNavigate=()=>fi({from:this.fullPath}),this.Link=P.forwardRef((e,t)=>(0,F.jsx)(Oi,{ref:t,from:this.fullPath,...e}))}};function Pi(e){return new Ni(e)}function I(e){return new Fi(e,{silent:!0}).createRoute}var Fi=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=ji(e);return t.isRoot=!1,t},this.silent=t?.silent}};function L(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,it(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(Re)Re(o());else throw o();return P.createElement(r,e)};return s.preload=o,s}function Ii(e){let t=Mr(),n=`not-found-${ai(t.stores.location,e=>e.pathname)}-${ai(t.stores.status,e=>e)}`;return(0,F.jsx)(Tr,{getResetKey:()=>n,onCatch:(t,n)=>{if(en(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(en(t))return e.fallback?.(t);throw t},children:e.children})}function Li(){return(0,F.jsx)(`p`,{children:`Not Found`})}function Ri(e){return(0,F.jsx)(F.Fragment,{children:e.children})}function zi(e,t,n){return t.options.notFoundComponent?(0,F.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,F.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,F.jsx)(Li,{})}var Bi=P.memo(function({matchId:e}){let t=Mr(),n=t.stores.matchStores.get(e);n||gt();let r=ai(t.stores.loadedAt,e=>e),i=ai(n,e=>e);return(0,F.jsx)(Vi,{router:t,matchId:e,resetKey:r,matchState:P.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Vi({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,F.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?P.Suspense:Ri,f=s?Tr:Ri,p=l?Ii:Ri;return(0,F.jsxs)(i.isRoot?i.options.shellComponent??Ri:Ri,{children:[(0,F.jsx)(Nr.Provider,{value:t,children:(0,F.jsx)(d,{fallback:o,children:(0,F.jsx)(f,{getResetKey:()=>n,errorComponent:s||Dr,onCatch:(e,t)=>{if(en(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,F.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return P.createElement(l,e)},children:u||r._displayPending?(0,F.jsx)(Or,{fallback:o,children:(0,F.jsx)(Ui,{matchId:t})}):(0,F.jsx)(Ui,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Hi,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function Hi({resetKey:e}){let t=Mr(),n=P.useRef(void 0);return ze(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...or(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Ui=P.memo(function({matchId:e}){let t=Mr(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||gt();let i=ai(r,e=>e),a=i.routeId,o=t.routesById[a],s=P.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=P.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,F.jsx)(e,{},s):(0,F.jsx)(Wi,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=rt();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return en(i.error)||gt(),zi(t,o,i.error);if(i.status===`redirected`)throw xn(i.error)||gt(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Wi=P.memo(function(){let e=Mr(),t=P.useContext(Nr),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=ai(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=ai(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,F.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||gt(),zi(e,a,void 0);if(!i)return null;let s=(0,F.jsx)(Bi,{matchId:i});return n===`__root__`?(0,F.jsx)(P.Suspense,{fallback:o,children:s}):s});function Gi(){let e=Mr(),t=P.useRef({router:e,mounted:!1}),[n,r]=P.useState(!1),i=ai(e.stores.isLoading,e=>e),a=ai(e.stores.hasPending,e=>e),o=Be(i),s=i||n||a,c=Be(s),l=i||a,u=Be(l);return e.startTransition=e=>{r(!0),P.startTransition(()=>{e(),r(!1)})},P.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Gt(e.latestLocation.publicHref)!==Gt(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),ze(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),ze(()=>{o&&!i&&e.emit({type:`onLoad`,...or(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),ze(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...or(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),ze(()=>{if(c&&!s){let t=or(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Yr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&wr(e)}},[s,c,e]),null}function Ki(){let e=Mr(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,F.jsx)(t,{}):null,r=(0,F.jsxs)(typeof document<`u`&&e.ssr?Ri:P.Suspense,{fallback:n,children:[(0,F.jsx)(Gi,{}),(0,F.jsx)(qi,{})]});return e.options.InnerWrap?(0,F.jsx)(e.options.InnerWrap,{children:r}):r}function qi(){let e=Mr(),t=ai(e.stores.firstId,e=>e),n=ai(e.stores.loadedAt,e=>e),r=t?(0,F.jsx)(Bi,{matchId:t}):null;return(0,F.jsx)(Nr.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,F.jsx)(Tr,{getResetKey:()=>n,errorComponent:Dr,onCatch:void 0,children:r})})}var Ji=e=>({createMutableStore:Qr,createReadonlyStore:Qr,batch:Yr}),Yi=e=>new Xi(e),Xi=class extends sr{constructor(e){super(e,Ji)}};function Zi({router:e,children:t,...n}){Je(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,F.jsx)(jr.Provider,{value:e,children:t});return e.options.Wrap?(0,F.jsx)(e.options.Wrap,{children:r}):r}function Qi({router:e,...t}){return(0,F.jsx)(Zi,{router:e,...t,children:(0,F.jsx)(Ki,{})})}function $i(e){let t=Mr(),n=(0,P.useRef)(void 0);return ai(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Ze(n.current,i);return n.current=e,e}return i})}function ea(e){let{attrs:t,children:n,nonce:r}=e;switch(e.tag){case`title`:return(0,F.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,F.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,F.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,F.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,F.jsx)(ta,{attrs:t,children:n});default:return null}}function ta({attrs:e,children:t}){Mr();let n=kr(),r=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(P.useEffect(()=>{if(!r){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();if(Array.from(document.querySelectorAll(`script[src]`)).find(e=>e.src===t))return;let n=document.createElement(`script`);for(let[t,r]of Object.entries(e))t!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&n.setAttribute(t,typeof r==`boolean`?``:String(r));return document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}}if(typeof t==`string`){let 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(e=>{if(!(e instanceof HTMLScriptElement))return!1;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;return e.textContent===t&&i===n&&a===r}))return;let i=document.createElement(`script`);if(i.textContent=t,e)for(let[t,n]of Object.entries(e))t!==`suppressHydrationWarning`&&n!==void 0&&n!==!1&&i.setAttribute(t,typeof n==`boolean`?``:String(n));return document.head.appendChild(i),()=>{i.parentNode&&i.parentNode.removeChild(i)}}}},[e,t,r]),r&&typeof t==`string`)return(0,F.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return(0,F.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,F.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var na=e=>{let t=Mr(),n=t.options.ssr?.nonce,r=ai(t.stores.matches,e=>e.map(e=>e.meta).filter(Boolean),nt),i=P.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:ft(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=ai(t.stores.matches,r=>{let i=r.map(e=>e.links).filter(Boolean).flat(1).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),a=t.ssr?.manifest,o=r.map(e=>a?.routes[e.routeId]?.assets??[]).filter(Boolean).flat(1).flatMap(t=>t.tag===`link`?xr(a,t)?[]:[{tag:`link`,attrs:{...t.attrs,crossOrigin:vr(e,`stylesheet`)??t.attrs?.crossOrigin,suppressHydrationWarning:!0,nonce:n}}]:t.tag===`style`?[{tag:`style`,attrs:{...t.attrs,nonce:n},children:t.children,...t.inlineCss?{inlineCss:!0}:{}}]:[]);return[...i,...o]},nt),o=ai(t.stores.matches,r=>{let i=[];return r.map(e=>t.looseRoutesById[e.routeId]).forEach(r=>t.ssr?.manifest?.routes[r.id]?.preloads?.filter(Boolean).forEach(t=>{let r=yr(t);i.push({tag:`link`,attrs:{rel:`modulepreload`,href:r.href,crossOrigin:vr(e,`modulepreload`)??r.crossOrigin,nonce:n}})})),i},nt),s=ai(t.stores.matches,e=>e.map(e=>e.styles).flat(1).filter(Boolean).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),nt),c=ai(t.stores.matches,e=>e.map(e=>e.headScripts).flat(1).filter(Boolean).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),nt);return ra([...i,...o,...a,...s,...c],e=>JSON.stringify(e))};function ra(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function ia(e){let t=na(e.assetCrossOrigin),n=Mr().options.ssr?.nonce;return(0,F.jsx)(F.Fragment,{children:t.map(e=>(0,P.createElement)(ea,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var aa=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,te=O.port2;O.port1.onmessage=ee,D=function(){te.postMessage(null)}}else D=function(){_(ee,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),oa=o(((e,t)=>{t.exports=aa()})),sa=o((e=>{var t=oa(),n=je(),r=hi();function i(e){var t=`https://react.dev/errors/`+e;if(1ae||(e.current=j[ae],j[ae]=null,ae--)}function ce(e,t){ae++,j[ae]=e.current,e.current=t}var M=oe(null),le=oe(null),ue=oe(null),N=oe(null);function de(e,t){switch(ce(ue,t),ce(le,e),ce(M,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ef(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ef(t),e=tf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}se(M),ce(M,e)}function fe(){se(M),se(le),se(ue)}function pe(e){e.memoizedState!==null&&ce(N,e);var t=M.current,n=tf(t,e.type);t!==n&&(ce(le,e),ce(M,n))}function me(e){le.current===e&&(se(M),se(le)),N.current===e&&(se(N),dp._currentValue=ie)}var he,ge;function _e(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``,ge=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?_e(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return _e(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,F=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,je=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,I=null;function Ie(e){if(typeof Ne==`function`&&Pe(e),I&&typeof I.setStrictMode==`function`)try{I.setStrictMode(Fe,e)}catch{}}var L=Math.clz32?Math.clz32:Re,Le=Math.log,R=Math.LN2;function Re(e){return e>>>=0,e===0?32:31-(Le(e)/R|0)|0}var z=256,Be=262144,Ve=4194304;function He(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ue(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=He(n))):i=He(o):i=He(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=He(n))):i=He(o)):i=He(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function We(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ge(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ke(){var e=Ve;return Ve<<=1,!(Ve&62914560)&&(Ve=4194304),e}function qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function B(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Je(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),an=!1;if(rn)try{var on={};Object.defineProperty(on,`passive`,{get:function(){an=!0}}),window.addEventListener(`test`,on,on),window.removeEventListener(`test`,on,on)}catch{an=!1}var sn=null,cn=null,ln=null;function un(){if(ln)return ln;var e,t=cn,n=t.length,r,i=`value`in sn?sn.value:sn.textContent,a=i.length;for(e=0;e=Hn),Gn=` `,Kn=!1;function qn(e,t){switch(e){case`keyup`:return Bn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Jn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Yn=!1;function Xn(e,t){switch(e){case`compositionend`:return Jn(t);case`keypress`:return t.which===32?(Kn=!0,Gn):null;case`textInput`:return e=t.data,e===Gn&&Kn?null:e;default:return null}}function Zn(e,t){if(Yn)return e===`compositionend`||!Vn&&qn(e,t)?(e=un(),ln=cn=sn=null,Yn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=yr(n)}}function xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mt(e.document)}return t}function Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var wr=rn&&`documentMode`in document&&11>=document.documentMode,Tr=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||Tr==null||Tr!==Mt(r)||(r=Tr,`selectionStart`in r&&Cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&vr(Dr,r)||(Dr=r,r=Td(Er,`onSelect`),0>=o,i-=o,xi=1<<32-L(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),U&&Ci(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),U&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return U&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),U&&Ci(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&xa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=xa(o),b(e,r,o,c)}if(te(o))return v(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===x)return b(e,r,Zi(e,o),c);ka(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===ha||t===_a)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ba=!1;function Va(){if(Ba){var e=ca;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(X&f)===f:(r&f)===f){f!==0&&f===sa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=M.T,s={};M.T=s,As(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,W(c,r),pu(e)):ks(e,t,r,pu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=xs(e).queue;vs(e,i,t,ne,n===null?ys:function(){return Ss(e),n(r)})}function xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},pu())}function Cs(){return Xi(Qf)}function ws(){return Eo().memoizedState}function Ts(){return Eo().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ia(n);var r=La(t,e,n);r!==null&&(hu(r,t,n),Ra(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=Zr(e,t,n,r),n!==null&&(hu(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,pu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,_r(s,o))return Xr(e,t,i,0),Ll===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return hu(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(a(479))}else t=Zr(e,n,r,2),t!==null&&hu(t,e,2)}function js(e){var t=e.alternate;return e===q||t!==null&&t===q}function Ms(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}var Ps={readContext:Xi,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ps.useEffectEvent=go;var Fs={readContext:Xi,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:as,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),rs(4194308,4,ds.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){rs(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Vo(e);var t=e.queue,n=Os.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ps,useDeferredValue:function(e,t){return gs(To(),e,t)},useTransition:function(){var e=Vo(!1);return e=vs.bind(null,q,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=q,i=To();if(U){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));X&127||Io(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,as(Ro.bind(null,r,o,e),[e]),r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Ll.identifierPrefix;if(U){var n=Si,r=xi;n=(r&~(1<<32-L(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[rt]=t,o[it]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=le.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ni(t,!0)}else e=Bd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[rt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(a(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[rt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),i=!1}else i=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(no(t),t):(no(t),null)}return no(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mc(t,t.updateQueue),Pc(t),null);case 4:return fe(),e===null&&Sd(t.stateNode.containerInfo),Pc(t),null;case 10:return Wi(t.type),Pc(t),null;case 19:if(oe(io),r=t.memoizedState,r===null)return Pc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Nc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return P(io,io.current&1|2),U&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&F()>tu&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!U)return Pc(t),null}else 2*F()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=F(),e.sibling=null,n=io.current,P(io,i?n&1|2:n&1),U&&Ci(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Pc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Ic(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(io),null;case 4:return fe(),null;case 10:return Wi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&oe(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function Lc(e,t){switch(Ei(t),t.tag){case 3:Wi(na),fe();break;case 26:case 27:case 5:me(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:oe(io);break;case 10:Wi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&oe(da);break;case 24:Wi(na)}}function Rc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wa(t,n)}catch(t){Z(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Uc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Wc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Gc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[it]=t}catch(t){Z(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[rt]=e,t[it]=n}catch(t){Z(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Rd=sp,e=Sr(e),Cr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(o,r,n),o[rt]=e,gt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=br(s,h),v=br(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,M.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,J&6)throw Error(a(331));var c=J;if(J|=4,Ml(o.current),wl(o,o.current,s,n),J=c,id(0,!1),I&&typeof I.onPostCommitFiberRoot==`function`)try{I.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{N.p=i,M.T=r,Vu(e,t)}}function Wu(e,t,n){t=pi(n,t),t=Js(e.stateNode,t,2),e=La(e,t,2),e!==null&&(B(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=pi(n,e),n=Ys(2),r=La(t,n,2),r!==null&&(Xs(n,r,t,e),B(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(X&n)===n&&(Wl===4||Wl===3&&(X&62914560)===X&&300>F()-$l?!(J&2)&&Su(e,0):ql|=n,Yl===X&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=Ke()),e=Qr(e,t),e!==null&&(B(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ce(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-L(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=X,a=Ue(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||We(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=F(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Pt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Pt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Pt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Pt(n.imageSizes)+`"]`)):i+=`[href="`+Pt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Pt(r)+`"][href="`+Pt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ht(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);gt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=le.current)?gf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=ht(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=ht(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=ht(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Af(e){return`href="`+Pt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),gt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Pt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Pt(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Mf(n),(i=mf.get(i))&&Rf(r,i),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,gt(i),i):(r=n,(i=mf.get(o))&&(r=p({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),gt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=io()}))(),1),K=i(),q=(0,W.createContext)(void 0);function oo(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function so(e){let t=(0,K.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>oo(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,W.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,W.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,G.jsx)(q.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function co(){let e=(0,W.useContext)(q);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function lo(e){return Ge(e.defaultTagName??`div`,e,e)}var uo=et(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),fo=et(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),po=et(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),mo=et(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ho=et(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),go=et(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),_o=et(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),vo=et(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),yo=et(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),bo=et(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),xo=et(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),So=et(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Co=et(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),wo=et(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),To=et(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Eo=et(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Do=et(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Oo=et(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),ko=et(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Ao=et(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),jo=et(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),Mo=et(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),No=W.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=Tt(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=St(),D=Ct({id:i});ht(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let O=W.useRef(null);ht(()=>{u&&O.current===Mt(Vt(O.current))&&y(!0)},[u,y]);let[k]=Et({controlled:o,default:l,name:`FieldControl`,state:`value`}),ee=o!==void 0,A=ee?k:void 0,j=st(()=>S.inputRef.current?.value);return wt(S.inputRef,{id:D,value:A,getValue:j}),Ge(`input`,e,{ref:[t,O],state:T,props:[{id:D,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...ee?{value:A}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Lt(Rt,e.nativeEvent)),_(t!==v.initialValue),b(t!==``)},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:Dt})}),Po=W.forwardRef(function(e,t){return(0,G.jsx)(No,{ref:t,...e})});function Fo(e){let t=(0,K.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=B(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,G.jsx)(Po,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Io=W.createContext(void 0);function Lo(e){let t=W.useContext(Io);if(e===!1&&t===void 0)throw Error(We(27));return t}var Ro={...en,...Jn},zo=W.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=Lo(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Ge(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Ro,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Bo=W.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{store:c}=Lo(),l=c.useState(`open`);function u(e){l&&c.setOpen(!1,Lt(Ft,e.nativeEvent))}let{getButtonProps:d,buttonRef:f}=_t({disabled:i,native:a});return Ge(`button`,e,{state:{disabled:i},ref:[t,f],props:[{onClick:u},s,d]})}),Vo=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Lo(),c=At(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ge(`p`,e,{ref:t,props:[{id:c},o]})});function Ho(e,t){return t!=null&&!Ht(t)?0:typeof e==`function`?e():e}function Uo(e,t,n){let r=Ho(e,n);return typeof r==`number`?r:r?.[t]}function Wo(e){return typeof e==`function`?e():e}function Go(e,t){return t||e===`click`||e===`mousedown`}var Ko=W.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new bn,currentIdRef:{current:null},currentContextRef:{current:null}});function qo(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=W.useRef(n),a=W.useRef(n),o=W.useRef(null),s=W.useRef(null),c=fn();return(0,G.jsx)(Ko.Provider,{value:W.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Jo(e,t={open:!1}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`floatingId`),{open:i}=t,{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=W.useContext(Ko),[f,p]=W.useState(!1);return ht(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!i&&a.current===r){if(p(!1),s){let t=r;return d.start(s,()=>{n.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[i,r,a,o,s,c,l,d,n]),ht(()=>{if(!i)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:n.setOpen,setIsInstantPhase:p},a.current=r,o.current={open:0,close:Uo(c.current,`close`)},t!==null&&t!==r?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Lt(Rt))):(p(!1),e?.setIsInstantPhase(!1))},[i,r,n,a,o,s,c,l,d]),ht(()=>()=>{l.current=null},[l]),W.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Yo(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Xo(e){return e!=null&&e.clientX!=null}function Zo(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{enabled:s=!0,axis:c=`both`}=t,l=W.useRef(!1),u=W.useRef(null),[d,f]=W.useState(),[p,m]=W.useState([]),h=st((e,t,r)=>{l.current||o.current.openEvent&&!Xo(o.current.openEvent)||n.set(`positionReference`,Yo(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:d}))}),g=st(e=>{r?u.current||m([]):h(e.clientX,e.clientY,e.currentTarget)}),_=Ht(d)?i:r,v=W.useCallback(()=>{if(!_||!s)return;let e=at(i);function t(e){kt(i,zt(e))?(u.current?.(),u.current=null):h(e.clientX,e.clientY)}if(!o.current.openEvent||Xo(o.current.openEvent))return u.current=Xn(e,`mousemove`,t),()=>{u.current?.(),u.current=null};n.set(`positionReference`,a)},[_,s,i,o,a,n,h]);W.useEffect(()=>v(),[v,p]),W.useEffect(()=>{s&&!i&&(l.current=!1)},[s,i]),W.useEffect(()=>{!s&&r&&(l.current=!0)},[s,r]);let y=W.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return W.useMemo(()=>s?{reference:y,trigger:y}:{},[s,y])}function Qo(e,t,n){let{reference:r,floating:i}=e,a=Gt(t),o=Mn(t),s=En(o),c=mn(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Fn(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function $o(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=wn(t,e),p=Un(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=qt(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=qt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var es=50,ts=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$o},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qo(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Gt(t))||T.every(e=>Gt(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Gt(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function rs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function is(e){return ln.some(t=>e[t]>=0)}var as=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=wn(e,t);switch(i){case`referenceHidden`:{let e=rs(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:is(e)}}}case`escaped`:{let e=rs(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:is(e)}}}default:return{}}}}},os=new Set([`left`,`top`]);async function ss(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mn(n),s=Fn(n),c=Gt(n)===`y`,l=os.has(o)?-1:1,u=a&&c?-1:1,d=wn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var cs=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ss(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ls=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=wn(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Gt(mn(i)),p=Bn(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=jn(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=jn(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},us=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=wn(e,t),u={x:n,y:r},d=Gt(i),f=Bn(d),p=u[f],m=u[d],h=wn(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=os.has(mn(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},ds=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=wn(e,t),u=await o.detectOverflow(t,l),d=mn(i),f=Fn(i),p=Gt(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=gn(h-u[g],v),x=gn(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Hn(u.left,0),t=Hn(u.right,0),n=Hn(u.top,0),r=Hn(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Hn(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Hn(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function fs(e){let t=ft(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ot(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Kt(n)!==a||Kt(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ps(e){return V(e)?e:e.contextElement}function ms(e){let t=ps(e);if(!ot(t))return zn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=fs(t),o=(a?Kt(n.width):n.width)/r,s=(a?Kt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var hs=zn(0);function gs(e){let t=at(e);return!nt()||!t.visualViewport?hs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _s(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function vs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ps(e),o=zn(1);t&&(r?V(r)&&(o=ms(r)):o=ms(e));let s=_s(a,n,r)?gs(a):zn(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=at(a),t=r&&V(r)?at(r):r,n=e,i=lt(n);for(;i&&r&&t!==n;){let e=ms(i),t=i.getBoundingClientRect(),r=ft(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=at(i),i=lt(n)}}return qt({width:u,height:d,x:c,y:l})}function ys(e,t){let n=pt(e).scrollLeft;return t?t.left+n:vs(ct(e)).left+n}function bs(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ys(e,n),y:n.top+t.scrollTop}}function xs(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ct(r),s=t?rt(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=zn(1),u=zn(0),d=ot(r);if((d||!d&&!a)&&((gt(r)!==`body`||tt(o))&&(c=pt(r)),d)){let e=vs(r);l=ms(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?bs(o,c):zn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ss(e){return Array.from(e.getClientRects())}function Cs(e){let t=ct(e),n=pt(e),r=e.ownerDocument.body,i=Hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ys(e),s=-n.scrollTop;return ft(r).direction===`rtl`&&(o+=Hn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ws=25;function Ts(e,t){let n=at(e),r=ct(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=nt();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ys(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ws&&(a-=o)}else l<=ws&&(a+=l);return{width:a,height:o,x:s,y:c}}function Es(e,t){let n=vs(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ot(e)?ms(e):zn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ds(e,t,n){let r;if(t===`viewport`)r=Ts(e,n);else if(t===`document`)r=Cs(ct(e));else if(V(t))r=Es(t,n);else{let n=gs(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return qt(r)}function Os(e,t){let n=ut(e);return n===t||!V(n)||xt(n)?!1:ft(n).position===`fixed`||Os(n,t)}function ks(e,t){let n=t.get(e);if(n)return n;let r=dt(e,[],!1).filter(e=>V(e)&>(e)!==`body`),i=null,a=ft(e).position===`fixed`,o=a?ut(e):e;for(;V(o)&&!xt(o);){let t=ft(o),n=bt(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||tt(o)&&!n&&Os(e,o))?r=r.filter(e=>e!==o):i=t,o=ut(o)}return t.set(e,r),r}function As(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?rt(t)?[]:ks(t,this._c):[].concat(n),r],o=Ds(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!zs(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Vs(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ps(e),u=i||a?[...l?dt(l):[],...t?dt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Bs(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?vs(e):null;c&&g();function g(){let t=vs(e);h&&!zs(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Hs=cs,Us=ls,Ws=ns,Gs=ds,Ks=as,qs=us,Js=(e,t,n)=>{let r=new Map,i={platform:Rs,...n},a={...i.platform,_c:r};return ts(e,t,{...i,platform:a})},Ys=e(ze(),1),Xs=typeof document<`u`?W.useLayoutEffect:function(){};function Zs(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(!Zs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Zs(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Qs(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $s(e,t){let n=Qs(e);return Math.round(t*n)/n}function ec(e){let t=W.useRef(e);return Xs(()=>{t.current=e}),t}function tc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=W.useState(r);Zs(f,r)||p(r);let[m,h]=W.useState(null),[g,_]=W.useState(null),v=W.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=W.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=W.useRef(null),C=W.useRef(null),w=W.useRef(u),T=c!=null,E=ec(c),D=ec(i),O=ec(l),k=W.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Js(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!Zs(w.current,t)&&(w.current=t,Ys.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Xs(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=W.useRef(!1);Xs(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Xs(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let A=W.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),j=W.useMemo(()=>({reference:b,floating:x}),[b,x]),te=W.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=$s(j.floating,u.x),r=$s(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Qs(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return W.useMemo(()=>({...u,update:k,refs:A,elements:j,floatingStyles:te}),[u,k,A,j,te])}var nc=(e,t)=>{let n=Hs(e);return{name:n.name,fn:n.fn,options:[e,t]}},rc=(e,t)=>{let n=Us(e);return{name:n.name,fn:n.fn,options:[e,t]}},ic=(e,t)=>({fn:qs(e).fn,options:[e,t]}),ac=(e,t)=>{let n=Ws(e);return{name:n.name,fn:n.fn,options:[e,t]}},oc=(e,t)=>{let n=Gs(e);return{name:n.name,fn:n.fn,options:[e,t]}},sc=(e,t)=>{let n=Ks(e);return{name:n.name,fn:n.fn,options:[e,t]}};function cc(e,t){let n=W.useRef(null),r=W.useRef(null);return W.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function lc(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=cc(e,n),o=st(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return ht(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function uc(e){let t=e.useState(`open`);ht(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function dc(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=qn(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=st(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Yn({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function fc(){return new Vn({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Wt,floatingId:``,syncOnly:!1,nested:!1,onOpenChange:void 0})}function pc(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:fc(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ue,inactiveTriggerProps:Ue,popupProps:Ue}}var mc=H(e=>e.triggerIdProp??e.activeTriggerId),hc={open:H(e=>e.openProp??e.open),mounted:H(e=>e.mounted),transitionStatus:H(e=>e.transitionStatus),floatingRootContext:H(e=>e.floatingRootContext),preventUnmountingOnClose:H(e=>e.preventUnmountingOnClose),payload:H(e=>e.payload),activeTriggerId:mc,activeTriggerElement:H(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:H((e,t)=>t!==void 0&&mc(e)===t),isOpenedByTrigger:H((e,t)=>t!==void 0&&mc(e)===t&&e.open),isMountedByTrigger:H((e,t)=>t!==void 0&&mc(e)===t&&e.mounted),triggerProps:H((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:H(e=>e.popupProps),popupElement:H(e=>e.popupElement),positionerElement:H(e=>e.positionerElement)};function gc(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Bt(),a=sn()!=null,o=Ve(()=>new Vn({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Wt,floatingId:i,syncOnly:!1,nested:a})).current;return ht(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=V(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function _c(e={}){let{nodeId:t,externalTree:n}=e,r=gc(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=W.useState(null),c=W.useRef(null),l=un(n);ht(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=tc({...e,elements:{...a,...o&&{reference:o}}}),d=W.useCallback(e=>{let t=V(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=W.useState(void 0),[m,h]=W.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=V(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=W.useCallback(e=>{(V(e)||e===null)&&(c.current=e,p(e)),(V(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!V(e))&&u.refs.setReference(e)},[u.refs,p]),v=W.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=W.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=W.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=W.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return ht(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),W.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function vc(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=Bt(),a=sn()!=null,o=t.useState(`open`),s=t.useState(`activeTriggerElement`),c=t.useState(n?`popupElement`:`positionerElement`),l=t.context.triggerElements,u=Ve(()=>new Vn({open:o,transitionStatus:void 0,referenceElement:s,floatingElement:c,triggerElements:l,onOpenChange:r,floatingId:i,syncOnly:!0,nested:a})).current;return ht(()=>{let e={open:o,floatingId:i,referenceElement:s,floatingElement:c};V(s)&&(e.domReferenceElement=s),u.state.positionReference===u.state.referenceElement&&(e.positionReference=s),u.update(e)},[o,i,s,c,u]),u.context.onOpenChange=r,u.context.nested=a,u}var yc=Zt&&nn;function bc(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=W.useRef(!1),c=W.useRef(null),l=fn(),u=W.useRef(!0);W.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=at(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&ot(e)&&e===Mt(Vt(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return Xt(Xn(t,`blur`,r),yc&&Xn(t,`keydown`,i,!0),yc&&Xn(t,`pointerdown`,o,!0))},[n,a]),W.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);V(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=W.useMemo(()=>({onMouseLeave(){s.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(s.current){if(c.current===t)return;s.current=!1,c.current=null}let r=zt(e.nativeEvent);if(V(r)){if(yc&&!e.relatedTarget){if(!u.current&&!Kn(r))return}else if(!Ut(r))return}let i=an(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:d}=e,f=typeof o==`function`?o():o;if(n.select(`open`)&&i||f===0||f===void 0){n.setOpen(!0,Lt(jt,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,Lt(jt,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=V(t)&&t.hasAttribute(_n(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=Mt(Vt(e));!t&&o===e||kt(i.current.floatingContext?.refs.floating.current,o)||kt(e,o)||a||an(t??o,n.context.triggerElements)||n.setOpen(!1,Lt(jt,r))})}}),[i,n,l,o]);return W.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var xc=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new bn,this.restTimeout=new bn,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Sc=new WeakMap;function Cc(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Sc.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Sc.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function wc(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Sc.get(n);a&&a!==e&&Cc(a),Cc(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Sc.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Tc(e){let t=Ve(xc.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,Zn(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function Ec(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),{dataRef:o}=n.context,{enabled:s=!0,closeDelay:c=0,nodeId:l}=t,u=Tc(n),d=un(),f=sn(),p=st(()=>Go(o.current.openEvent?.type,u.interactedInside)),m=st(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),h=st(e=>an(e,n.context.triggerElements)),g=W.useCallback(e=>{let t=Uo(c,`close`,u.pointerType),r=()=>{n.setOpen(!1,Lt(Pt,e)),d?.events.emit(`floating.closed`,e)};t?u.openChangeTimeout.start(t,r):(u.openChangeTimeout.clear(),r())},[c,n,u,d]),_=st(()=>{Cc(u)}),v=st(e=>{let t=zt(e);if(!$t(t)){u.interactedInside=!1;return}u.interactedInside=t?.closest(`[aria-haspopup]`)!=null});ht(()=>{r||(u.pointerType=void 0,u.restTimeoutPending=!1,u.interactedInside=!1,_())},[r,u,_]),W.useEffect(()=>_,[_]),ht(()=>{if(s&&r&&u.handleCloseOptions?.blockPointerEvents&&m()&&V(a)&&i){let e=a,t=i,n=Vt(i),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),wc(u,{scopeElement:u.handleCloseOptions?.getScope?.()??u.pointerEventsScopeElement??r??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{_()}}},[s,r,a,i,u,m,d,f,_]);let y=fn();W.useEffect(()=>{if(!s)return;function e(){u.openChangeTimeout.clear(),y.clear(),d?.events.off(`floating.closed`,r),_()}function t(e){if(d&&f&&dn(d.nodesRef.current,f).length>0){d.events.on(`floating.closed`,r);return}if(h(e.relatedTarget))return;let t=o.current.floatingContext?.nodeId??l,n=e.relatedTarget;if(!(d&&t&&V(n)&&dn(d.nodesRef.current,t,!1).some(e=>kt(e.context?.elements.floating,n)))){if(u.handler){u.handler(e);return}_(),p()||g(e)}}function r(e){!d||!f||dn(d.nodesRef.current,f).length>0||y.start(0,()=>{d.events.off(`floating.closed`,r),n.setOpen(!1,Lt(Pt,e)),d.events.emit(`floating.closed`,e)})}let a=i;return Xt(a&&Xn(a,`mouseenter`,e),a&&Xn(a,`mouseleave`,t),a&&Xn(a,`pointerdown`,v,!0),()=>{d?.events.off(`floating.closed`,r)})},[s,i,n,o,l,p,h,g,_,v,u,d,f,y])}var Dc={current:null};function Oc(e,t={}){let n=`rootStore`in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:a=!0,delay:o=0,handleClose:s=null,mouseOnly:c=!1,restMs:l=0,move:u=!0,triggerElementRef:d=Dc,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:m,isClosing:h}=t,g=un(f),_=Tc(n),v=W.useRef(!1),y=vn(s),b=vn(o),x=vn(l),S=vn(a),C=vn(h);p&&(_.handleCloseOptions=y.current?.__options);let w=st(()=>Go(r.current.openEvent?.type,_.interactedInside)),T=st(e=>an(e,n.context.triggerElements)),E=st((e,t,r)=>{let i=n.context.triggerElements;if(i.hasElement(t))return!e||!kt(e,t);if(!V(r))return!1;let a=r;return i.hasMatchingElement(e=>kt(e,a))&&(!e||!kt(e,a))}),D=st((e,t=!0)=>{let r=Uo(b.current,`close`,_.pointerType);r?_.openChangeTimeout.start(r,()=>{n.setOpen(!1,Lt(Pt,e)),g?.events.emit(`floating.closed`,e)}):t&&(_.openChangeTimeout.clear(),n.setOpen(!1,Lt(Pt,e)),g?.events.emit(`floating.closed`,e))}),O=st(()=>{_.handler&&=(Vt(n.select(`domReferenceElement`)).removeEventListener(`mousemove`,_.handler),void 0)}),k=st(()=>{Cc(_)});return W.useEffect(()=>O,[O]),W.useEffect(()=>{if(!a)return;function e(e){e.open?v.current=!1:(v.current=e.reason===Pt,O(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,_,O]),W.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!V(e))return;function t(e){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,c&&!Ht(_.pointerType))return;let t=Wo(x.current),r=Uo(b.current,`open`,_.pointerType),i=zt(e),a=e.currentTarget??null,o=n.select(`domReferenceElement`),s=a;if(V(i)&&!n.context.triggerElements.hasElement(i)){for(let e of n.context.triggerElements.elements())if(kt(e,i)){s=e;break}}V(a)&&V(o)&&!n.context.triggerElements.hasElement(a)&&kt(a,o)&&(s=o);let l=s==null?!1:E(o,s,i),u=n.select(`open`),d=C.current?.()??n.select(`transitionStatus`)===`ending`,f=!u&&d&&v.current,p=!l&&V(s)&&V(o)&&kt(o,s)&&f,m=t>0&&!r,h=l&&(u||f)||p,g=!u||l;if(h){n.setOpen(!0,Lt(Pt,e,s));return}m||(r?_.openChangeTimeout.start(r,()=>{g&&n.setOpen(!0,Lt(Pt,e,s))}):g&&n.setOpen(!0,Lt(Pt,e,s)))}function i(e){if(w()){k();return}O();let t=Vt(n.select(`domReferenceElement`));_.restTimeout.clear(),_.restTimeoutPending=!1;let i=r.current.floatingContext??m?.();if(!T(e.relatedTarget)){if(y.current&&i){n.select(`open`)||_.openChangeTimeout.clear();let r=d.current;_.handler=y.current({...i,tree:g,x:e.clientX,y:e.clientY,onClose(){k(),O(),S.current&&!w()&&r===n.select(`domReferenceElement`)&&D(e,!0)}}),t.addEventListener(`mousemove`,_.handler),_.handler(e);return}(_.pointerType!==`touch`||!kt(n.select(`floatingElement`),e.relatedTarget))&&D(e)}}return u?Xt(Xn(e,`mousemove`,t,{once:!0}),Xn(e,`mouseenter`,t),Xn(e,`mouseleave`,i)):Xt(Xn(e,`mouseenter`,t),Xn(e,`mouseleave`,i))},[O,k,r,b,D,n,a,y,_,p,E,w,T,c,u,x,d,g,S,m,C]),W.useMemo(()=>{if(!a)return;function e(e){_.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=n.select(`domReferenceElement`),a=n.select(`open`),o=E(i,r,e.target);if(c&&!Ht(_.pointerType))return;if(a&&o&&_.handleCloseOptions?.blockPointerEvents){let e=n.select(`floatingElement`);e&&wc(_,{scopeElement:_.handleCloseOptions?.getScope?.()??r.ownerDocument.body,referenceElement:r,floatingElement:e})}let s=Wo(x.current);if(a&&!o||s===0||!o&&_.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;_.restTimeout.clear();function l(){if(_.restTimeoutPending=!1,w())return;let e=n.select(`open`);!_.blockMouseMove&&(!e||o)&&n.setOpen(!0,Lt(Pt,t,r))}_.pointerType===`touch`?Ys.flushSync(()=>{l()}):o&&a?l():(_.restTimeoutPending=!0,_.restTimeout.start(s,l))}}},[a,_,w,E,c,n,x])}var kc=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Ac(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=Bt(),l=a?.id||c,u=W.useMemo(()=>Yt(o)?.id||i,[o,i]),d=kc.get(s)??s,f=sn()!=null,p=W.useMemo(()=>d===`tooltip`||s===`label`?Ue:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=W.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=W.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=W.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return W.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}var jc=.1,Mc=jc*jc,Nc=.5;function Pc(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Fc(e,t,n,r,i,a,o,s,c,l){let u=!1;return Pc(e,t,n,r,i,a)&&(u=!u),Pc(e,t,i,a,o,s)&&(u=!u),Pc(e,t,o,s,c,l)&&(u=!u),Pc(e,t,c,l,n,r)&&(u=!u),u}function Ic(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Lc(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Rc(e={}){let{blockPointerEvents:t=!1}=e,n=new bn,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Mc;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,ee=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let A=!1;switch(c){case`top`:A=Lc(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:A=Lc(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:A=Lc(d,f,S.right-1,ee,x.left+1,k);break;case`right`:A=Lc(d,f,x.right-1,ee,S.left+1,k);break;default:}if(A)return;if(l&&!Ic(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let j=!1;switch(c){case`top`:{let n=T?Nc/2:Nc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Nc+1,o=C||T?S.bottom-Nc:S.top,s=C?T?S.bottom-Nc:S.top:S.bottom-Nc;j=Fc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Nc/2:Nc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Nc,o=C||T?S.top+Nc:S.bottom,s=C?T?S.top+Nc:S.bottom:S.top+Nc;j=Fc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Nc/2:Nc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Nc+1,o=w||E?S.right-Nc:S.left,s=w?E?S.right-Nc:S.left:S.right-Nc;j=Fc(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Nc/2:Nc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Nc,o=w||E?S.left+Nc:S.right,s=w?E?S.left+Nc:S.right:S.left+Nc;j=Fc(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}j?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var zc=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Bc=function(e){return e[e.open=tn.open]=`open`,e[e.closed=tn.closed]=`closed`,e[e.startingStyle=tn.startingStyle]=`startingStyle`,e[e.endingStyle=tn.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Vc=W.createContext(void 0);function Hc(){let e=W.useContext(Vc);if(e===void 0)throw Error(We(26));return e}var Uc={...en,...Jn,nestedDialogOpen(e){return e?{[Bc.nestedDialogOpen]:``}:null}},Wc=W.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,style:o,...s}=e,{store:c}=Lo(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`);Hc(),Yn({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function S(e){return e===`touch`?c.context.popupRef.current:!0}let C=i===void 0?S:i,w=Ge(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:g>0},props:[f,{"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,tabIndex:-1,hidden:!m,onKeyDown(e){Pn.has(e.key)&&e.stopPropagation()},style:{[zc.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:Uc});return(0,G.jsx)(on,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:w})}),Gc=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Lo(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,G.jsx)(Vc.Provider,{value:n,children:(0,G.jsxs)(Jt,{ref:t,...r,children:[a&&o===!0&&(0,G.jsx)(Sn,{ref:i.context.internalBackdropRef,inert:Nn(!s)}),e.children]})}):null});function Kc(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`),o=t.useState(`disablePointerDismissal`),s=t.useState(`modal`),c=t.useState(`popupElement`),{openMethod:l,triggerProps:u}=Rn(a);uc(t);let{forceUnmount:d}=dc(a,t),f=W.useCallback(()=>{t.setOpen(!1,Lt(It))},[t]);W.useImperativeHandle(r,()=>({unmount:d,close:f}),[d,f]);let p=vc({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[m,h]=W.useState(0),[g,_]=W.useState(0),v=m===0,y=Ac(p),b=kn(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:s===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=zt(e);if(v&&!o){let e=n;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||kt(e,c)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:v});Ln(a&&s===!0,c);let{getReferenceProps:x,getFloatingProps:S,getTriggerProps:C}=pn([y,b]);t.useContextCallback(`onNestedDialogOpen`,(e,t)=>{h(e),_(t)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0),_(0)}),W.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(m+1,g+ +!!i),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[i,a,m,g,n]);let w=W.useMemo(()=>x(u),[x,u]),T=W.useMemo(()=>C(u),[C,u]),E=W.useMemo(()=>S(),[S]);t.useSyncedValues({openMethod:l,activeTriggerProps:w,inactiveTriggerProps:T,popupProps:E,floatingRootContext:p,nestedOpenDialogCount:m,nestedOpenDrawerCount:g})}var qc={...hc,modal:H(e=>e.modal),nested:H(e=>e.nested),nestedOpenDialogCount:H(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:H(e=>e.nestedOpenDrawerCount),disablePointerDismissal:H(e=>e.disablePointerDismissal),openMethod:H(e=>e.openMethod),descriptionElementId:H(e=>e.descriptionElementId),titleElementId:H(e=>e.titleElementId),viewportElement:H(e=>e.viewportElement),role:H(e=>e.role)},Jc=class e extends hn{constructor(e){super(Yc(e),{popupRef:W.createRef(),backdropRef:W.createRef(),internalBackdropRef:W.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Wt,onOpenChange:void 0,onOpenChangeComplete:void 0},qc)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(t,n){let r=Ve(()=>new e(n)).current;return t??r}};function Yc(e={}){return{...pc(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}var Xc=W.createContext(!1);function Zc(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=Lo(!0),p=W.useContext(Xc),m=!!f,h=Jc.useStore(l?.store,{open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:m});On(()=>{n===void 0&&h.state.open===!1&&r===!0&&h.update({open:!0,activeTriggerId:d})}),h.useControlledProp(`openProp`,n),h.useControlledProp(`triggerIdProp`,u),h.useSyncedValues({disablePointerDismissal:o,nested:m,modal:s}),h.useContextCallback(`onOpenChange`,i),h.useContextCallback(`onOpenChangeComplete`,a);let g=h.useState(`payload`);Kc({store:h,actionsRef:c,parentContext:f?.store.context,isDrawer:p,onOpenChange:i,triggerIdProp:u});let _=W.useMemo(()=>({store:h}),[h]);return(0,G.jsx)(Xc.Provider,{value:!1,children:(0,G.jsx)(Io.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})})}var Qc=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Lo(),c=At(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ge(`h2`,e,{ref:t,props:[{id:c},o]})});function $c(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Zc,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function el(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Gc,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function tl(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(zo,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function nl(e){let t=(0,K.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(tl,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=B(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,G.jsxs)(Bo,{"data-slot":`sheet-close`,render:(0,G.jsx)(vt,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,G.jsx)(Mo,{}),(0,G.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,G.jsxs)(el,{children:[l,(0,G.jsxs)(Wc,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function rl(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function il(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Qc,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function al(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Vo,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ol=W.createContext(void 0);function sl(e){let t=W.useContext(ol);if(t===void 0&&!e)throw Error(We(72));return t}var cl={...hc,disabled:H(e=>e.disabled),instantType:H(e=>e.instantType),isInstantPhase:H(e=>e.isInstantPhase),trackCursorAxis:H(e=>e.trackCursorAxis),disableHoverablePopup:H(e=>e.disableHoverablePopup),lastOpenChangeReason:H(e=>e.openChangeReason),closeOnClick:H(e=>e.closeOnClick),closeDelay:H(e=>e.closeDelay),hasViewport:H(e=>e.hasViewport)},ll=class e extends hn{constructor(e){super({...ul(),...e},{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Wt},cl)}setOpen=(e,t)=>{let n=t.reason,r=n===Pt,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0);let o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?Ys.flushSync(o):o()};static useStore(t,n){let r=Ve(()=>new e(n)).current,i=t??r,a=vc({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function ul(){return{...pc(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var dl=cn(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=ll.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});On(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),ht(()=>{m&&t&&p.setOpen(!1,Lt(Nt))},[m,t,p]),p.useSyncedValue(`disabled`,t),uc(p);let{forceUnmount:v,transitionStatus:y}=dc(h,p),b=p.select(`floatingRootContext`),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=W.useRef(null);ht(()=>{y===`ending`&&C===`none`||y!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[y,x,C,S,p]),ht(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=W.useCallback(()=>{p.setOpen(!1,Lt(It))},[p]);W.useImperativeHandle(o,()=>({unmount:v,close:T}),[v,T]);let{getReferenceProps:E,getFloatingProps:D,getTriggerProps:O}=pn([kn(b,{enabled:!t,referencePress:()=>p.select(`closeOnClick`)}),Zo(b,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),k=W.useMemo(()=>E(),[E]),ee=W.useMemo(()=>O(),[O]),A=W.useMemo(()=>D(),[D]);return p.useSyncedValues({activeTriggerProps:k,inactiveTriggerProps:ee,popupProps:A}),(0,G.jsx)(ol.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})}),fl=W.createContext(void 0);function pl(){return W.useContext(fl)}var ml=function(e){return e[e.popupOpen=In.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),hl=An(function(e,t){let{className:n,render:r,handle:i,payload:a,disabled:o,delay:s,closeOnClick:c=!0,closeDelay:l,id:u,style:d,...f}=e,p=sl(!0),m=i?.store??p;if(!m)throw Error(We(82));let h=At(u),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=W.useRef(null),b=s??600,x=l??0,{registerTrigger:S,isMountedByThisTrigger:C}=lc(h,y,m,{payload:a,closeOnClick:c,closeDelay:x}),w=pl(),{delayRef:T,isInstantPhase:E,hasProvider:D}=Jo(v,{open:_});m.useSyncedValue(`isInstantPhase`,E);let O=m.useState(`disabled`),k=o??O,ee=m.useState(`trackCursorAxis`),A=m.useState(`disableHoverablePopup`),j=Oc(v,{enabled:!k,mouseOnly:!0,move:!1,handleClose:!A&&ee!==`both`?Rc():null,restMs(){let e=w?.delay,t=typeof T.current==`object`?T.current.open:void 0,n=b;return D&&(n=t===0?0:s??e??b),n},delay(){let e=typeof T.current==`object`?T.current.close:void 0,t=x;return l==null&&D&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`}),te=bc(v,{enabled:!k}).reference,M={open:_},N=m.useState(`triggerProps`,C);return Ge(`button`,e,{state:M,ref:[t,S,y],props:[j,te,N,{onPointerDown(){m.set(`closeOnClick`,c)},id:h,[ml.triggerDisabled]:k?``:void 0},f],stateAttributesMapping:yn})}),gl=W.createContext(void 0);function _l(){let e=W.useContext(gl);if(e===void 0)throw Error(We(70));return e}var vl=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Qt({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(W.Fragment,{children:[l,c&&Ys.createPortal(n,c)]})}),yl=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return sl().useState(`mounted`)||n?(0,G.jsx)(gl.Provider,{value:n,children:(0,G.jsx)(vl,{ref:t,...r})}):null}),bl=W.createContext(void 0);function xl(){let e=W.useContext(bl);if(e===void 0)throw Error(We(71));return e}var Sl=W.createContext(void 0);function Cl(){return W.useContext(Sl)?.direction??`ltr`}var wl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=wn(e,t)||{};if(l==null)return{};let f=Un(u),p={x:n,y:r},m=Mn(i),h=En(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,ee=w-g[h]-O,A=w/2-g[h]/2+T,j=jn(k,A,ee),te=!c.arrow&&Fn(i)!=null&&A!==j&&a.reference[h]/2-(A({...wl(e),options:[e,t]}),El={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await sc().fn(e)).data?.referenceHidden||a}}}},Dl={sideX:`left`,sideY:`top`},Ol={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=at(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Dl};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Vt(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=mn(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Dl.sideX,g=f===`top`?`bottom`:Dl.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function kl(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Al(e,t,n){let{rects:r,placement:i}=e;return{side:kl(t,mn(i),n),align:Fn(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function jl(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:b}=e,[x,S]=W.useState(null);!m&&x!==null&&S(null);let C=h.side||`flip`,w=h.align||`flip`,T=h.fallbackAxisSide||`end`,E=typeof t==`function`?t:void 0,D=st(E),O=E?D:t,k=vn(t),ee=vn(m),A=Cl()===`rtl`,j=x||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":A?`left`:`right`,"inline-start":A?`right`:`left`}[r],te=a===`center`?j:`${j}-${a}`,M=c,N=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof M==`number`?M={top:M+N,right:M+ie,bottom:M+ne,left:M+re}:M&&={top:(M.top||0)+N,right:(M.right||0)+ie,bottom:(M.bottom||0)+ne,left:(M.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:M},oe=W.useRef(null),P=vn(i),se=vn(o),ce=[nc(e=>{let t=Al(e,r,A),n=typeof P.current==`function`?P.current(t):P.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,A,r])],le=w===`none`&&C!==`shift`,ue=!le&&(l||g||C===`shift`),de=C===`none`?null:ac({...ae,padding:{top:M.top+1,right:M.right+1,bottom:M.bottom+1,left:M.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:T}),fe=le?null:rc(e=>{let t=Vt(e.elements.floating).documentElement;return{...ae,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:ue,limiter:l||g?void 0:ic(e=>{if(!oe.current)return{};let{width:t,height:n}=oe.current.getBoundingClientRect(),r=Gt(mn(e.placement)),i=r===`y`?t:n,a=r===`y`?M.left+M.right:M.top+M.bottom;return{offset:i/2+a/2}})}},[ae,l,g,M,w]);C===`shift`||w===`shift`||a===`center`?ce.push(fe,de):ce.push(de,fe),ce.push(oc({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ee.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=at(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Tl(()=>({element:oe.current||Vt(oe.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=mn(a),l=Gt(c),u=oe.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Al(e,r,A)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,ue&&l===`y`&&b?S:x),{}}},El,v),ht(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let pe=W.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:me,elements:he,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=_c({rootContext:p,open:f?m:void 0,placement:te,middleware:ce,strategy:n,whileElementsMounted:f?void 0:(...e)=>Vs(...e,pe),nodeId:_,externalTree:b}),{sideX:we,sideY:Te}=ve.adaptiveOrigin||Dl,Ee=Se?n:`fixed`,F=W.useMemo(()=>{let e=v?{position:Ee,[we]:ge,[Te]:_e}:{position:Ee,...Ce};return Se||(e.opacity=0),e},[v,Ee,we,ge,Te,_e,Ce,Se]),De=W.useRef(null);ht(()=>{if(!m)return;let e=k.current,t=typeof e==`function`?e():e,n=(Ml(t)?t.current:t)||null;n!==De.current&&(me.setPositionReference(n),De.current=n)},[m,me,O,k]),W.useEffect(()=>{if(!m)return;let e=k.current;typeof e!=`function`&&Ml(e)&&e.current!==De.current&&(me.setPositionReference(e.current),De.current=e.current)},[m,me,O,k]),W.useEffect(()=>{if(f&&m&&he.domReference&&he.floating)return Vs(he.domReference,he.floating,ye,pe)},[f,m,he,ye,pe]);let Oe=mn(be),ke=kl(r,Oe,A),Ae=Fn(be)||`center`,je=!!ve.hide?.referenceHidden;ht(()=>{y&&m&&Se&&S(Oe)},[y,m,Se,Oe]);let Me=W.useMemo(()=>({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Ne=ve.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:F,arrowStyles:Me,arrowRef:oe,arrowUncentered:Ne,side:ke,align:Ae,physicalSide:Oe,anchorHidden:je,refs:me,context:xe,isPositioned:Se,update:ye}),[F,Me,oe,Ne,ke,Ae,Oe,je,me,xe,Se,ye])}function Ml(e){return e!=null&&`current`in e}function Nl(e){return e===`starting`?rn:Ue}function Pl(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Ge(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Nl(r),i],stateAttributesMapping:en})}var Fl=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Gn,style:g,..._}=e,v=sl(),y=_l(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=jl({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Ol:void 0}),O=Pl(e,W.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,G.jsx)(bl.Provider,{value:D,children:O})}),Il={...en,...Jn},J=W.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=sl(),{side:s,align:c}=xl(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);Yn({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}});let m=o.useState(`disabled`),h=o.useState(`closeDelay`);return Ec(p,{enabled:!m,closeDelay:h}),Ge(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,Nl(d),a],stateAttributesMapping:Il})}),Ll=W.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=sl(),s=o.useState(`open`),c=o.useState(`instantType`),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=xl();return Ge(`div`,e,{state:{open:s,side:u,align:d,uncentered:f,instant:c},ref:[t,l],props:[{style:p,"aria-hidden":!0},a],stateAttributesMapping:en})}),Y=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=W.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=W.useMemo(()=>({open:t,close:n}),[t,n]);return(0,G.jsx)(fl.Provider,{value:i,children:(0,G.jsx)(qo,{delay:a,timeoutMs:r,children:e.children})})};function X(e){let t=(0,K.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,G.jsx)(Y,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Rl(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(X,{children:(0,G.jsx)(dl,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function zl(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(hl,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Bl(e){let t=(0,K.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=B(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,G.jsx)(Ll,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,G.jsxs)(J,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,G.jsx)(yl,{children:(0,G.jsx)(Fl,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Vl=window.matchMedia(`(max-width: 767px)`);function Hl(e){return Vl.addEventListener(`change`,e),()=>Vl.removeEventListener(`change`,e)}function Ul(){return Vl.matches}function Wl(){return(0,W.useSyncExternalStore)(Hl,Ul)}var Gl=`sidebar_state`,Kl=3600*24*7,ql=`12rem`,Jl=`16rem`,Yl=`3rem`,Xl=`b`,Zl=W.createContext(null);function Ql(){let e=W.useContext(Zl);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function $l(e){let t=(0,K.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=Wl(),[d,f]=W.useState(!1),[p,m]=W.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${Gl}=${t}; path=/; max-age=${Kl}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(tu):_(eu),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===Xl&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),W.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=B(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":ql,"--sidebar-width-icon":Yl,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,G.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,G.jsx)(Zl.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function eu(e){return!e}function tu(e){return!e}function nu(e){let t=(0,K.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=Ql();if(u===`none`){let e;t[7]===r?e=t[8]:(e=B(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,G.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Jl},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsxs)(rl,{className:`sr-only`,children:[(0,G.jsx)(il,{children:`Sidebar`}),(0,G.jsx)(al,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,G.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,G.jsxs)(nl,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,G.jsx)($c,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=B(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,G.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=B(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,G.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,G.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,G.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function ru(e){let t=(0,K.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=Ql(),o;t[4]===n?o=t[5]:(o=B(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(To,{}),l=(0,G.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,G.jsxs)(vt,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function iu(e){let t=(0,K.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=Ql(),a;t[3]===n?a=t[4]:(a=B(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,G.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function au(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ou(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function su(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Ot,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cu(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function lu(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function uu(e){let t=(0,K.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=lo,r=`div`,i=He({className:B(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function du(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function fu(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=B(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var pu=Ke(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function mu(e){let t=(0,K.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=Ql(),m=He({className:B(pu({variant:u,size:d}),s)},c),h=o?zl:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=lo(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,G.jsx)(Bl,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,G.jsxs)(Rl,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var hu=`ap-southeast-2`,gu=9999;async function _u({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new Xe({method:`POST`,protocol:r,hostname:`localhost`,port:gu,path:`/`,headers:{host:`localhost:${gu}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new Qe({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey},region:hu,service:n,sha256:Ze}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``);throw Error(`${e} failed: ${l.status}${t?` - ${t}`:``}`)}return await l.json()}var vu=`000000000001`,yu=(0,W.createContext)(void 0);function bu({children:e}){let[t,n]=(0,W.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,W.useEffect)(()=>{async function e(){let e=Ye();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await _u({action:`GetCallerIdentity`,credentials:e}),r=t.account_id===vu,i=null;if(r)try{i=await _u({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:r,accountId:t.account_id,userName:t.user_name,version:i,license:i?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,G.jsx)(yu,{value:t,children:e})}function xu(){let e=(0,W.useContext)(yu);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}function Su(){let e=(0,K.c)(8),{theme:t,setTheme:n}=co(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsx)(ko,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,G.jsx)(Co,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,G.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,G.jsxs)(vt,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Cu(){let e=(0,K.c)(7),{isAdmin:t,license:n}=xu(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=B(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,G.jsx)(ru,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,G.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:B(mt({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(Su,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,G.jsxs)(`header`,{className:i,children:[a,(0,G.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function wu(){let e=(0,K.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,G.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,G.jsx)(Ie,{to:`/`,children:(0,G.jsx)(vt,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function Tu(){let e=(0,K.c)(144),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Eu},e[0]=t):t=e[0];let n=Xa(t),r=Re(),i=S(),{isAdmin:a}=xu(),o;e[1]!==r||e[2]!==i?(o=function(){$e(),Be(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsxs)(au,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,G.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,G.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(uu,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(_o,{className:`size-4`}),f=(0,G.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/`,children:(0,G.jsxs)(mu,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/nodes`,children:(0,G.jsxs)(mu,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,G.jsx)(Eo,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,G.jsxs)(lu,{children:[l,(0,G.jsxs)(du,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,G.jsx)(uu,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,G.jsx)(Eo,{className:`size-4`}),y=(0,G.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-instances`,children:(0,G.jsxs)(mu,{isActive:_,tooltip:`EC2 Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let C,w;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,G.jsx)(vo,{className:`size-4`}),w=(0,G.jsx)(`span`,{children:`Images`}),e[25]=C,e[26]=w):(C=e[25],w=e[26]);let T;e[27]===x?T=e[28]:(T=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-images`,children:(0,G.jsxs)(mu,{isActive:x,tooltip:`Images`,children:[C,w]})})}),e[27]=x,e[28]=T);let E;e[29]===n?E=e[30]:(E=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=E);let D,O;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,G.jsx)(yo,{className:`size-4`}),O=(0,G.jsx)(`span`,{children:`Key Pairs`}),e[31]=D,e[32]=O):(D=e[31],O=e[32]);let k;e[33]===E?k=e[34]:(k=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-key-pairs`,children:(0,G.jsxs)(mu,{isActive:E,tooltip:`Key Pairs`,children:[D,O]})})}),e[33]=E,e[34]=k);let ee;e[35]===n?ee=e[36]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[35]=n,e[36]=ee);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,G.jsx)(go,{className:`size-4`}),j=(0,G.jsx)(`span`,{children:`Volumes`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let te;e[39]===ee?te=e[40]:(te=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-volumes`,children:(0,G.jsxs)(mu,{isActive:ee,tooltip:`Volumes`,children:[A,j]})})}),e[39]=ee,e[40]=te);let M;e[41]===n?M=e[42]:(M=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[41]=n,e[42]=M);let N,ne;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,G.jsx)(po,{className:`size-4`}),ne=(0,G.jsx)(`span`,{children:`Snapshots`}),e[43]=N,e[44]=ne):(N=e[43],ne=e[44]);let re;e[45]===M?re=e[46]:(re=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-snapshots`,children:(0,G.jsxs)(mu,{isActive:M,tooltip:`Snapshots`,children:[N,ne]})})}),e[45]=M,e[46]=re);let ie;e[47]===n?ie=e[48]:(ie=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[47]=n,e[48]=ie);let ae,oe;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,G.jsx)(bo,{className:`size-4`}),oe=(0,G.jsx)(`span`,{children:`Placement Groups`}),e[49]=ae,e[50]=oe):(ae=e[49],oe=e[50]);let P;e[51]===ie?P=e[52]:(P=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-placement-groups`,children:(0,G.jsxs)(mu,{isActive:ie,tooltip:`Placement Groups`,children:[ae,oe]})})}),e[51]=ie,e[52]=P);let se;e[53]===n?se=e[54]:(se=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[53]=n,e[54]=se);let ce,le;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,G.jsx)(jo,{className:`size-4`}),le=(0,G.jsx)(`span`,{children:`Load Balancers`}),e[55]=ce,e[56]=le):(ce=e[55],le=e[56]);let ue;e[57]===se?ue=e[58]:(ue=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-load-balancers`,children:(0,G.jsxs)(mu,{isActive:se,tooltip:`Load Balancers`,children:[ce,le]})})}),e[57]=se,e[58]=ue);let de;e[59]===n?de=e[60]:(de=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[59]=n,e[60]=de);let fe,pe;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,G.jsx)(ho,{className:`size-4`}),pe=(0,G.jsx)(`span`,{children:`Target Groups`}),e[61]=fe,e[62]=pe):(fe=e[61],pe=e[62]);let me;e[63]===de?me=e[64]:(me=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-target-groups`,children:(0,G.jsxs)(mu,{isActive:de,tooltip:`Target Groups`,children:[fe,pe]})})}),e[63]=de,e[64]=me);let he;e[65]!==b||e[66]!==T||e[67]!==k||e[68]!==te||e[69]!==re||e[70]!==P||e[71]!==ue||e[72]!==me?(he=(0,G.jsxs)(lu,{children:[g,(0,G.jsxs)(du,{children:[b,T,k,te,re,P,ue,me]})]}),e[65]=b,e[66]=T,e[67]=k,e[68]=te,e[69]=re,e[70]=P,e[71]=ue,e[72]=me,e[73]=he):he=e[73];let ge;e[74]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,G.jsx)(uu,{children:`Networking`}),e[74]=ge):ge=e[74];let _e;e[75]===n?_e=e[76]:(_e=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[75]=n,e[76]=_e);let ve,ye;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,G.jsx)(wo,{className:`size-4`}),ye=(0,G.jsx)(`span`,{children:`VPCs`}),e[77]=ve,e[78]=ye):(ve=e[77],ye=e[78]);let be;e[79]===_e?be=e[80]:(be=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-vpcs`,children:(0,G.jsxs)(mu,{isActive:_e,tooltip:`VPCs`,children:[ve,ye]})})}),e[79]=_e,e[80]=be);let xe;e[81]===n?xe=e[82]:(xe=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[81]=n,e[82]=xe);let Se,Ce;e[83]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,G.jsx)(xo,{className:`size-4`}),Ce=(0,G.jsx)(`span`,{children:`Subnets`}),e[83]=Se,e[84]=Ce):(Se=e[83],Ce=e[84]);let we;e[85]===xe?we=e[86]:(we=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-subnets`,children:(0,G.jsxs)(mu,{isActive:xe,tooltip:`Subnets`,children:[Se,Ce]})})}),e[85]=xe,e[86]=we);let Te;e[87]===n?Te=e[88]:(Te=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[87]=n,e[88]=Te);let Ee,F;e[89]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,G.jsx)(Do,{className:`size-4`}),F=(0,G.jsx)(`span`,{children:`Security Groups`}),e[89]=Ee,e[90]=F):(Ee=e[89],F=e[90]);let De;e[91]===Te?De=e[92]:(De=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/ec2/describe-security-groups`,children:(0,G.jsxs)(mu,{isActive:Te,tooltip:`Security Groups`,children:[Ee,F]})})}),e[91]=Te,e[92]=De);let Oe;e[93]!==be||e[94]!==we||e[95]!==De?(Oe=(0,G.jsxs)(lu,{children:[ge,(0,G.jsxs)(du,{children:[be,we,De]})]}),e[93]=be,e[94]=we,e[95]=De,e[96]=Oe):Oe=e[96];let ke;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,G.jsx)(uu,{children:`IAM`}),e[97]=ke):ke=e[97];let Ae;e[98]===n?Ae=e[99]:(Ae=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[98]=n,e[99]=Ae);let je,Me;e[100]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,G.jsx)(Ao,{className:`size-4`}),Me=(0,G.jsx)(`span`,{children:`Users`}),e[100]=je,e[101]=Me):(je=e[100],Me=e[101]);let Ne;e[102]===Ae?Ne=e[103]:(Ne=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/iam/list-users`,children:(0,G.jsxs)(mu,{isActive:Ae,tooltip:`Users`,children:[je,Me]})})}),e[102]=Ae,e[103]=Ne);let Pe;e[104]===n?Pe=e[105]:(Pe=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[104]=n,e[105]=Pe);let Fe,I;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,G.jsx)(Oo,{className:`size-4`}),I=(0,G.jsx)(`span`,{children:`Policies`}),e[106]=Fe,e[107]=I):(Fe=e[106],I=e[107]);let L;e[108]===Pe?L=e[109]:(L=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/iam/list-policies`,children:(0,G.jsxs)(mu,{isActive:Pe,tooltip:`Policies`,children:[Fe,I]})})}),e[108]=Pe,e[109]=L);let Le;e[110]!==Ne||e[111]!==L?(Le=(0,G.jsxs)(lu,{children:[ke,(0,G.jsxs)(du,{children:[Ne,L]})]}),e[110]=Ne,e[111]=L,e[112]=Le):Le=e[112];let R;e[113]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,G.jsx)(uu,{children:`S3`}),e[113]=R):R=e[113];let z;e[114]===n?z=e[115]:(z=n.startsWith(`/s3/ls`),e[114]=n,e[115]=z);let ze,Ve;e[116]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,G.jsx)(Eo,{className:`size-4`}),Ve=(0,G.jsx)(`span`,{children:`Buckets`}),e[116]=ze,e[117]=Ve):(ze=e[116],Ve=e[117]);let He;e[118]===z?He=e[119]:(He=(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/s3/ls`,children:(0,G.jsxs)(mu,{isActive:z,tooltip:`Buckets`,children:[ze,Ve]})})}),e[118]=z,e[119]=He);let Ue;e[120]!==a||e[121]!==n?(Ue=a&&(0,G.jsx)(fu,{children:(0,G.jsx)(Ie,{to:`/s3/service-metrics`,children:(0,G.jsxs)(mu,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,G.jsx)(uo,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Service Metrics`})]})})}),e[120]=a,e[121]=n,e[122]=Ue):Ue=e[122];let We;e[123]!==He||e[124]!==Ue?(We=(0,G.jsxs)(lu,{children:[R,(0,G.jsxs)(du,{children:[He,Ue]})]}),e[123]=He,e[124]=Ue,e[125]=We):We=e[125];let Ge;e[126]===a?Ge=e[127]:(Ge=a&&(0,G.jsxs)(lu,{children:[(0,G.jsx)(uu,{children:`Documentation`}),(0,G.jsx)(du,{children:(0,G.jsx)(fu,{children:(0,G.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,G.jsxs)(mu,{tooltip:`Documentation`,children:[(0,G.jsx)(fo,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Docs`})]})})})})]}),e[126]=a,e[127]=Ge);let Ke;e[128]!==he||e[129]!==Oe||e[130]!==Le||e[131]!==We||e[132]!==Ge||e[133]!==h?(Ke=(0,G.jsxs)(cu,{children:[h,he,Oe,Le,We,Ge]}),e[128]=he,e[129]=Oe,e[130]=Le,e[131]=We,e[132]=Ge,e[133]=h,e[134]=Ke):Ke=e[134];let qe;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(qe=(0,G.jsx)(su,{className:`mx-0 w-full`}),e[135]=qe):qe=e[135];let B,Je;e[136]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,G.jsx)(So,{className:`size-4`}),Je=(0,G.jsx)(`span`,{children:`Sign out`}),e[136]=B,e[137]=Je):(B=e[136],Je=e[137]);let Ye;e[138]===s?Ye=e[139]:(Ye=(0,G.jsxs)(ou,{children:[qe,(0,G.jsx)(du,{children:(0,G.jsx)(fu,{children:(0,G.jsxs)(mu,{onClick:s,tooltip:`Sign out`,children:[B,Je]})})})]}),e[138]=s,e[139]=Ye);let Xe;e[140]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,G.jsx)(iu,{}),e[140]=Xe):Xe=e[140];let Ze;return e[141]!==Ke||e[142]!==Ye?(Ze=(0,G.jsxs)(nu,{collapsible:`icon`,children:[c,Ke,Ye,Xe]}),e[141]=Ke,e[142]=Ye,e[143]=Ze):Ze=e[143],Ze}function Eu(e){return e.pathname}function Du(e){let t=(0,K.c)(18),{error:n,reset:r}=e,i=be(),a=S(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(Tu,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(Cu,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,G.jsx)(`div`,{className:`flex justify-center`,children:(0,G.jsx)(mo,{className:`size-12 text-destructive`})}),d=(0,G.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,G.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,G.jsx)(vt,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,G.jsx)(Ie,{to:`/`,children:(0,G.jsx)(vt,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,G.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,G.jsxs)(G.Fragment,{children:[c,(0,G.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,G.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,G.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var Ou=Le()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(to,{}),(0,G.jsx)(Tu,{}),(0,G.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,G.jsx)(Cu,{}),(0,G.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,G.jsx)(Va,{})})]})]}),errorComponent:Du,notFoundComponent:wu}),ku=L(`/login`)({beforeLoad:()=>{if(Ye())throw Fe({to:`/`})},component:R(()=>z(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])),`component`)}),Au=L(`/_auth`)({beforeLoad:()=>{if(!Ye())throw Fe({to:`/login`})},component:R(()=>z(()=>import(`./route.js`),__vite__mapDeps([16,1])),`component`)}),ju=L(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(ur),e.queryClient.ensureQueryData(vr),e.queryClient.ensureQueryData(_r),e.queryClient.ensureQueryData(tr),e.queryClient.ensureQueryData(Pr),e.queryClient.ensureQueryData(dr)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:R(()=>z(()=>import(`./_auth.js`),__vite__mapDeps([17,1,3,4,18,2,5,6,19,20,21,22,23,24,25,26,27,28,29,30,31,9,14])),`component`)}),Mu=L(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:R(()=>z(()=>import(`./nodes.js`),__vite__mapDeps([32,1,21,22,23,33,29,31,3,4,9,19,14])),`component`)}),Nu=L(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | Mulga`}]}),component:R(()=>z(()=>import(`./service-metrics.js`),__vite__mapDeps([34,1,21,22,23,33,29,31,3,4,9,19,14])),`component`)}),Pu=L(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Pr)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:R(()=>z(()=>import(`./ls.js`),__vite__mapDeps([35,1,3,4,20,2,5,19,8,9,36,22,23,24,25,37,29])),`component`)}),Fu=L(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:R(()=>z(()=>import(`./create-bucket.js`),__vite__mapDeps([38,1,39,2,3,4,5,23,40,13,41,25,42,24,26,43,8,9,44,27,45,46,47,29,15,10,11])),`component`)}),Iu=L(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:R(()=>z(()=>import(`./create-user.js`),__vite__mapDeps([48,1,49,2,3,4,5,23,40,13,41,25,42,24,26,43,8,9,44,27,45,46,47,29,15,10,11,50])),`component`)}),Lu=L(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:R(()=>z(()=>import(`./create-policy.js`),__vite__mapDeps([51,1,49,2,3,4,5,23,40,13,41,25,42,24,26,43,8,9,44,27,45,46,47,29,15,10,11,52,50])),`component`)}),Ru=L(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-vpc.js`),__vite__mapDeps([53,1,54,2,3,4,5,18,6,19,23,40,8,9,55,10,11,56,12,25,26,44,27,13,41,42,24,28,43,45,46,47,29,15,57])),`component`)}),zu=L(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(mr)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-volume.js`),__vite__mapDeps([58,1,54,2,3,4,5,18,6,19,23,40,55,8,9,10,11,56,12,25,26,44,27,13,36,22,41,42,24,43,45,46,47,29,15,57])),`component`)}),Bu=L(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_r)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-target-group.js`),__vite__mapDeps([59,1,18,2,3,4,5,6,19,60,23,40,13,36,22,41,25,42,24,26,43,8,9,44,27,45,46,61,7,10,11,12,55,56,62,63,15,47,29,64])),`component`)}),Vu=L(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(_r),e.queryClient.ensureQueryData(mr)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-subnet.js`),__vite__mapDeps([65,1,3,4,54,2,5,18,6,19,23,40,55,8,9,10,11,56,12,25,26,44,27,13,36,22,41,42,24,43,45,46,47,29,15,57])),`component`)}),Hu=L(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(vr)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-snapshot.js`),__vite__mapDeps([66,1,54,2,3,4,5,18,6,19,23,40,55,8,9,10,11,56,12,25,26,44,27,13,36,22,41,42,24,43,45,46,47,29,15,52,57])),`component`)}),Uu=L(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_r)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-security-group.js`),__vite__mapDeps([67,1,3,4,54,2,5,18,6,19,23,40,55,8,9,10,11,56,12,25,26,44,27,13,36,22,41,42,24,43,45,46,47,29,15,57])),`component`)}),Wu=L(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-placement-group.js`),__vite__mapDeps([68,1,54,2,3,4,5,18,6,19,23,40,55,8,9,10,11,56,12,25,26,44,27,13,41,42,24,43,45,46,47,29,15,57])),`component`)}),Z=L(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(_r),e.queryClient.ensureQueryData(Qn),e.queryClient.ensureQueryData(dr),e.queryClient.ensureQueryData(br),e.queryClient.ensureQueryData(fr)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-load-balancer.js`),__vite__mapDeps([69,1,3,4,18,2,5,6,19,60,23,40,70,8,9,55,10,11,56,12,25,26,44,27,13,36,22,41,42,24,62,43,45,46,63,61,7,15,47,29,64])),`component`)}),Gu=L(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./import-key-pair.js`),__vite__mapDeps([71,1,54,2,3,4,5,18,6,19,23,40,13,41,25,42,24,26,43,8,9,44,27,45,46,47,29,15,10,11,52,57])),`component`)}),Ku=L(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./create-key-pair.js`),__vite__mapDeps([72,1,54,2,3,4,5,18,6,19,23,40,73,8,9,13,41,25,42,24,26,44,74,43,27,45,46,75,47,29,15,10,11,57])),`component`)}),qu=L(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(fr),e.queryClient.ensureQueryData(tr),e.queryClient.ensureQueryData($n),e.queryClient.ensureQueryData(Qn),e.queryClient.ensureQueryData(hr)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./run-instances.js`),__vite__mapDeps([76,1,54,2,3,4,5,18,6,19,23,40,7,8,9,10,11,12,55,56,25,26,44,27,13,36,22,41,42,24,43,45,46,29,15,57])),`component`)}),Ju=L(`/_auth/s3/ls/$bucket`)({component:R(()=>z(()=>import(`./route2.js`),__vite__mapDeps([77,1])),`component`)}),Yu=L(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Fr(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:R(()=>z(()=>import(`./_bucket.js`),__vite__mapDeps([78,1,39,2,3,4,5,23,40,79,8,9,24,25,26,74,63,80,73,20,19,36,22,42,29])),`component`)}),Xu=L(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mr)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:R(()=>z(()=>import(`./list-users.js`),__vite__mapDeps([81,1,82,2,3,4,5,19,8,9,36,22,23,24,25,37,29])),`component`)}),Zu=L(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jr)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:R(()=>z(()=>import(`./list-policies.js`),__vite__mapDeps([83,1,82,2,3,4,5,19,8,9,36,22,23,24,25,37,29])),`component`)}),Qu=L(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_r)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-vpcs.js`),__vite__mapDeps([84,1,3,4,18,2,5,6,19,8,9,36,22,23,24,25,37,29,30])),`component`)}),$u=L(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vr)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-volumes.js`),__vite__mapDeps([85,1,18,2,3,4,5,6,19,8,9,36,22,23,24,25,37,29,30])),`component`)}),ed=L(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(br)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-target-groups.js`),__vite__mapDeps([86,1,70,2,3,4,5,19,8,9,21,22,23,36,24,25,41,29])),`component`)}),td=L(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Qn)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-subnets.js`),__vite__mapDeps([87,1,3,4,18,2,5,6,19,8,9,36,22,23,24,25,37,29,30])),`component`)}),nd=L(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ar)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-snapshots.js`),__vite__mapDeps([88,1,18,2,3,4,5,6,19,8,9,36,22,23,24,25,37,29,30])),`component`)}),rd=L(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(dr)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-security-groups.js`),__vite__mapDeps([89,1,18,2,3,4,5,6,19,8,9,36,22,23,24,25,37,29])),`component`)}),id=L(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(hr)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([90,1,18,2,3,4,5,6,19,8,9,36,22,23,24,25,37,29,30])),`component`)}),ad=L(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(xr),e.queryClient.ensureQueryData(fr)])},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([91,1,70,2,3,4,5,19,8,9,36,22,23,24,25,41,29,30])),`component`)}),od=L(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(tr)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([92,1,18,2,3,4,5,6,19,8,9,36,22,23,24,25,37,29])),`component`)}),sd=L(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ur)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-instances.js`),__vite__mapDeps([93,1,18,2,3,4,5,6,19,8,9,36,22,23,24,25,37,29,30])),`component`)}),cd=L(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(fr)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./describe-images.js`),__vite__mapDeps([94,1,18,2,3,4,5,6,19,36,22,23,37,24,25,29,30,95])),`component`)}),ld=L(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Je(t._splat??``);await e.queryClient.ensureQueryData(Fr(t.bucket,n))},head:({params:e})=>({meta:[{title:`${qe(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:R(()=>z(()=>import(`./_.js`),__vite__mapDeps([96,1,39,2,3,4,5,23,40,79,8,9,24,25,26,74,63,80,73,20,19,36,22,42])),`component`)}),ud=L(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ar(t.userName)),e.queryClient.ensureQueryData(Nr(t.userName)),e.queryClient.ensureQueryData(kr(t.userName)),e.queryClient.ensureQueryData(jr)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:R(()=>z(()=>import(`./_userName.js`),__vite__mapDeps([97,1,3,4,49,2,5,23,40,82,19,73,8,9,36,22,41,25,42,24,26,44,63,75,80,98,29,30,46])),`component`)}),dd=L(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(Or(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(Dr(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:R(()=>z(()=>import(`./_policyArn.js`),__vite__mapDeps([99,1,3,4,49,2,5,23,40,82,19,8,9,36,22,41,25,42,24,26,63,80,73,98,29])),`component`)}),fd=L(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(er(t.id)),e.queryClient.ensureQueryData(Qn)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:R(()=>z(()=>import(`./_id12.js`),__vite__mapDeps([100,1,3,4,54,2,5,18,6,19,23,40,8,9,36,22,24,25,41,42,26,63,80,73,98,29,30])),`component`)}),pd=L(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(gr(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id11.js`),__vite__mapDeps([101,1,54,2,3,4,5,18,6,19,23,40,13,36,22,41,25,42,24,26,47,8,9,29,15,10,11,57])),`component`)}),md=L(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(gr(t.id)),e.queryClient.ensureQueryData(ur)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id10.js`),__vite__mapDeps([102,1,3,4,54,2,5,18,6,19,23,40,73,8,9,55,10,11,56,12,25,26,44,27,36,22,24,41,42,63,80,98,29,30,15])),`component`)}),hd=L(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Tr(n)),e.queryClient.ensureQueryData(Cr(n)),e.queryClient.ensureQueryData(yr([n])),e.queryClient.ensureQueryData(ur)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:R(()=>z(()=>import(`./_id9.js`),__vite__mapDeps([103,1,3,4,18,2,5,6,19,60,23,40,70,73,8,9,104,55,10,11,56,12,25,26,44,27,15,21,22,36,41,42,24,63,80,98,29])),`component`)}),gd=L(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(ir(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:R(()=>z(()=>import(`./_id8.js`),__vite__mapDeps([105,1,3,4,54,2,5,18,6,19,23,40,8,9,36,22,24,25,41,42,26,63,80,73,98,29,30])),`component`)}),_d=L(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(cr(t.id)),e.queryClient.ensureQueryData(nr)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id7.js`),__vite__mapDeps([106,1,3,4,54,2,5,18,6,19,23,40,73,8,9,36,22,24,25,41,42,26,45,63,80,98,29,30,15,10,11])),`component`)}),vd=L(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(rr(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:R(()=>z(()=>import(`./_id6.js`),__vite__mapDeps([107,1,54,2,3,4,5,18,6,19,23,40,73,8,9,55,10,11,56,12,25,26,44,27,13,36,22,24,41,42,62,63,80,98,29,15,57])),`component`)}),yd=L(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(sr(t.id)),e.queryClient.ensureQueryData(ur)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id5.js`),__vite__mapDeps([108,1,54,2,3,4,5,18,6,19,23,40,8,9,36,22,24,25,41,42,26,63,80,73,98,29,30])),`component`)}),Q=L(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(wr(n)),e.queryClient.ensureQueryData(Er(n)),e.queryClient.ensureQueryData(Sr(n)),e.queryClient.ensureQueryData(yr([n])),e.queryClient.ensureQueryData(br),e.queryClient.ensureQueryData(Qn)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:R(()=>z(()=>import(`./_id4.js`),__vite__mapDeps([109,1,3,4,18,2,5,6,19,60,23,40,70,73,8,9,55,10,11,56,12,25,26,44,27,104,15,13,36,22,41,42,24,63,80,98,29,30,64])),`component`)}),bd=L(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(pr(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id3.js`),__vite__mapDeps([110,1,3,4,54,2,5,18,6,19,23,40,8,9,36,22,41,25,42,24,26,63,80,73,98,29])),`component`)}),xd=L(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(or(t.id)),e.queryClient.ensureQueryData($n)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(lr(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id2.js`),__vite__mapDeps([111,1,3,4,54,2,5,18,6,19,23,40,73,8,9,55,10,11,56,12,25,26,44,27,36,22,24,42,63,80,98,29,30,15,52,112])),`component`)}),Sd=L(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(lr(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:R(()=>z(()=>import(`./_id.js`),__vite__mapDeps([113,1,18,2,3,4,5,6,19,36,22,23,42,24,25,26,29,30,95,112,98])),`component`)}),Cd=ku.update({id:`/login`,path:`/login`,getParentRoute:()=>Ou}),$=Au.update({id:`/_auth`,getParentRoute:()=>Ou}),wd=ju.update({id:`/`,path:`/`,getParentRoute:()=>$}),Td=Mu.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),Ed=Nu.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),Dd=Pu.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),Od=Fu.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),kd=Iu.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),Ad=Lu.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),jd=Ru.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),Md=zu.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),Nd=Bu.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),Pd=Vu.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),Fd=Hu.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),Id=Uu.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),Ld=Wu.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),Rd=Z.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),zd=Gu.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),Bd=Ku.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),Vd=qu.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),Hd=Ju.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),Ud=Yu.update({id:`/`,path:`/`,getParentRoute:()=>Hd}),Wd=Xu.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),Gd=Zu.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),Kd=Qu.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),qd=$u.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),Jd=ed.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),Yd=td.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),Xd=nd.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),Zd=rd.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),Qd=id.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),$d=ad.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),ef=od.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),tf=sd.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),nf=cd.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),rf=ld.update({id:`/$`,path:`/$`,getParentRoute:()=>Hd}),af=ud.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),of=dd.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),sf=fd.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),cf=pd.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),lf=md.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),uf=hd.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),df=gd.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),ff=_d.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),pf=vd.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),mf=yd.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),hf=Q.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),gf=bd.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),_f=xd.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),vf=Sd.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),yf={AuthS3LsBucketSplatRoute:rf,AuthS3LsBucketIndexRoute:Ud},bf={AuthNodesRoute:Td,AuthIndexRoute:wd,AuthS3ServiceMetricsRoute:Ed,AuthS3LsBucketRouteRoute:Hd._addFileChildren(yf),AuthEc2instancesRunInstancesRoute:Vd,AuthEc2keyCreateKeyPairRoute:Bd,AuthEc2keyImportKeyPairRoute:zd,AuthEc2loadBalancersCreateLoadBalancerRoute:Rd,AuthEc2placementGroupsCreatePlacementGroupRoute:Ld,AuthEc2securityGroupsCreateSecurityGroupRoute:Id,AuthEc2snapshotsCreateSnapshotRoute:Fd,AuthEc2subnetCreateSubnetRoute:Pd,AuthEc2targetGroupsCreateTargetGroupRoute:Nd,AuthEc2volumesCreateVolumeRoute:Md,AuthEc2vpcCreateVpcRoute:jd,AuthIampoliciesCreatePolicyRoute:Ad,AuthIamusersCreateUserRoute:kd,AuthS3bucketsCreateBucketRoute:Od,AuthS3LsIndexRoute:Dd,AuthEc2imagesDescribeImagesIdRoute:vf,AuthEc2instancesDescribeInstancesIdRoute:_f,AuthEc2keyDescribeKeyPairsIdRoute:gf,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:hf,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:mf,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:pf,AuthEc2snapshotsDescribeSnapshotsIdRoute:ff,AuthEc2subnetDescribeSubnetsIdRoute:df,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:uf,AuthEc2volumesDescribeVolumesIdRoute:lf,AuthEc2volumesModifyVolumeIdRoute:cf,AuthEc2vpcDescribeVpcsIdRoute:sf,AuthIampoliciesListPoliciesPolicyArnRoute:of,AuthIamusersListUsersUserNameRoute:af,AuthEc2imagesDescribeImagesIndexRoute:nf,AuthEc2instancesDescribeInstancesIndexRoute:tf,AuthEc2keyDescribeKeyPairsIndexRoute:ef,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:$d,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:Qd,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:Zd,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Xd,AuthEc2subnetDescribeSubnetsIndexRoute:Yd,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Jd,AuthEc2volumesDescribeVolumesIndexRoute:qd,AuthEc2vpcDescribeVpcsIndexRoute:Kd,AuthIampoliciesListPoliciesIndexRoute:Gd,AuthIamusersListUsersIndexRoute:Wd},xf={AuthRouteRoute:$._addFileChildren(bf),LoginRoute:Cd},Sf=Ou._addFileChildren(xf)._addFileTypes(),Cf=new Jr({defaultOptions:{queries:{staleTime:5e3}}}),wf=Ka({routeTree:Sf,context:{queryClient:Cf},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Tf=document.querySelector(`#app`);Tf&&!Tf.innerHTML&&ao.createRoot(Tf).render((0,G.jsx)(W.StrictMode,{children:(0,G.jsx)(so,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,G.jsx)(D,{client:Cf,children:(0,G.jsx)(bu,{children:(0,G.jsx)($l,{children:(0,G.jsx)(Ya,{router:wf})})})})})}));export{gc as A,Eo as B,Cl as C,Kc as D,Jc as E,Io as F,lo as G,yo as H,Lo as I,Br as J,Va as K,Fo as L,Vo as M,Bo as N,Gc as O,zo as P,Mo as R,jl as S,Xc as T,go as U,wo as V,po as W,Hu as _,yd as a,Pl as b,gd as c,pd as d,fd as f,Yu as g,ld as h,Q as i,Rs as j,Wc as k,hd as l,ud as m,xd as n,vd as o,dd as p,Wr as q,bd as r,_d as s,Sd as t,md as u,xu as v,Qc as w,Nl as x,_u as y,Oo as z}; \ No newline at end of file +`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,P=t.unstable_IdlePriority,F=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof F==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,`passive`,{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nr&&wr(Nr,r)||(Nr=r,r=Rd(Mr,`onSelect`),0>=o,i-=o,Oi=1<<32-Re(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),L&&Ai(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),L&&Ai(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return L&&Ai(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),L&&Ai(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Aa(l)===r.type){n(e,r.sibling),c=a(r,o.props),La(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=mi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=pi(o.type,o.key,o.props,null,e.mode,c),La(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=vi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Aa(o),x(e,r,o,c)}if(re(o))return v(e,r,o,c);if(O(o)){if(l=O(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ia(o),c);if(o.$$typeof===b)return x(e,r,ra(e,o),c);Ra(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=gi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=x(e,t,n,r);return Pa=null,i}catch(t){if(t===wa||t===Ea)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Gl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ya=!1;function Xa(){if(Ya){var e=ha;if(e!==null)throw e}}function Za(e,t,n,r){Ya=!1;var i=e.updateQueue;Ha=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Jl&p)===p:(r&p)===p){p!==0&&p===ma&&(Ya=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ha=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),tu|=o,e.lanes=o,e.memoizedState=d}}function Qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function $a(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=k.T,s={};k.T=s,Bs(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?zs(e,t,va(c,r),Cu(e)):zs(e,t,r,Cu(e))}catch(n){zs(e,t,{then:function(){},status:`rejected`,reason:n},Cu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function ks(){}function As(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=js(e).queue;Os(e,a,t,ie,n===null?ks:function(){return Ms(e),n(r)})}function js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ms(e){var t=js(e);t.next===null&&(t=e.alternate.memoizedState),zs(e,t.next.queue,{},Cu())}function Ns(){return na(dp)}function Ps(){return Io().memoizedState}function Fs(){return Io().memoizedState}function Is(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cu();e=Ga(n);var r=Ka(t,e,n);r!==null&&(Tu(r,t,n),qa(r,t,n)),t={cache:ua()},e.payload=t;return}t=t.return}}function Ls(e,t,n){var r=Cu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vs(e)?Hs(t,n):(n=ri(e,t,n,r),n!==null&&(Tu(n,e,r),Us(n,t,r)))}function Rs(e,t,n){zs(e,t,n,Cu())}function zs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vs(e))Hs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Cr(s,o))return ni(e,t,i,0),Kl===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return Tu(n,e,r),Us(n,t,r),!0}return!1}function Bs(e,t,n,r){if(r={lane:2,revertLane:Sd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Vs(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&Tu(t,e,2)}function Vs(e){var t=e.alternate;return e===go||t!==null&&t===go}function Hs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Us(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Ws={readContext:na,use:zo,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Ws.useEffectEvent=Eo;var Gs={readContext:na,use:zo,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:na,useEffect:hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ps(4194308,4,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){ps(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(xo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(xo){Le(!0);try{n(t)}finally{Le(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ls.bind(null,go,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Zo(e);var t=e.queue,n=Rs.bind(null,go,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cs,useDeferredValue:function(e,t){return Es(Fo(),e,t)},useTransition:function(){var e=Zo(!1);return e=Os.bind(null,go,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=go,a=Fo();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Kl===null)throw Error(i(349));Jl&127||Ko(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,hs(Jo.bind(null,r,o,e),[e]),r.flags|=2048,ds(9,{destroy:void 0},qo.bind(null,r,o,n,t),null),n},useId:function(){var e=Fo(),t=Kl.identifierPrefix;if(L){var n=ki,r=Oi;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[st]=t,o[ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(qd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Hc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ue.current,Hi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=I,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Wd(e.nodeValue,n)),e||zi(t,!0)}else e=$d(e).createTextNode(r),e[st]=t,t.stateNode=e}return Hc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Hi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[st]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),e=!1}else n=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fo(t),t):(fo(t),null);if(t.flags&128)throw Error(i(558))}return Hc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[st]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),a=!1}else a=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(fo(t),t):(fo(t),null)}return fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Hc(t),null);case 4:return fe(),e===null&&Pd(t.stateNode.containerInfo),Hc(t),null;case 10:return Xi(t.type),Hc(t),null;case 19:if(se(po),r=t.memoizedState,r===null)return Hc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Vc(r,!1);else{if(eu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=mo(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return ce(po,po.current&1|2),L&&Ai(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>du&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}else{if(!a)if(e=mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return Hc(t),null}else 2*De()-r.renderingStartTime>du&&n!==536870912&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Hc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=po.current,ce(po,a?n&1|2:n&1),L&&Ai(t,r.treeForkCount),e);case 22:case 23:return fo(t),io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Hc(t),t.subtreeFlags&6&&(t.flags|=8192)):Hc(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&se(ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(la),Hc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Wc(e,t){switch(Ni(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(la),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(fo(t),t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(po),null;case 4:return fe(),null;case 10:return Xi(t.type),null;case 22:case 23:return fo(t),io(),e!==null&&se(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(la),null;case 25:return null;default:return null}}function Gc(e,t){switch(Ni(t),t.tag){case 3:Xi(la),fe();break;case 26:case 27:case 5:me(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&fo(t);break;case 13:fo(t);break;case 19:se(po);break;case 10:Xi(t.type);break;case 22:case 23:fo(t),io(),e!==null&&se(ba);break;case 24:Xi(la)}}function Kc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){td(t,t.return,e)}}function qc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){td(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){td(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$a(t,n)}catch(t){td(e,e.return,t)}}}function Yc(e,t,n){n.props=Qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){td(e,t,n)}}function Xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){td(e,t,n)}}function Zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){td(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){td(e,t,n)}else n.current=null}function Qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){td(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Jd(r,e.type,n,t),r[ct]=t}catch(t){td(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&df(e.type)||e.tag===4}function tl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&df(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);qd(t,r,n),t[st]=e,t[ct]=n}catch(t){td(e,e.return,t)}}var al=!1,ol=!1,sl=!1,cl=typeof WeakSet==`function`?WeakSet:Set,ll=null;function ul(e,t){if(e=e.containerInfo,Zd=bp,e=Or(e),kr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Qd={focusedElem:e,selectionRange:n},bp=!1,ll=t;ll!==null;)if(t=ll,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ll=e;else for(;ll!==null;){switch(t=ll,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),qd(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=ep(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Er(s,h),v=Er(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,k.T=null,n=yu,yu=null;var o=hu,s=_u;if(mu=0,gu=hu=null,_u=0,Gl&6)throw Error(i(331));var c=Gl;if(Gl|=4,Bl(o.current),Ml(o,o.current,s,n),Gl=c,hd(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{A.p=a,k.T=r,Zu(e,t)}}function ed(e,t,n){t=bi(n,t),t=ic(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(Ze(e,2),md(e))}function td(e,t,n){if(e.tag===3)ed(e,e,n);else for(;t!==null;){if(t.tag===3){ed(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(pu===null||!pu.has(r))){e=bi(n,e),n=ac(2),r=Ka(t,n,2),r!==null&&(oc(n,r,t,e),Ze(r,2),md(r));break}}t=t.return}}function nd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ql=!0,i.add(n),e=rd.bind(null,e,t,n),t.then(e,e))}function rd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Kl===e&&(Jl&n)===n&&(eu===4||eu===3&&(Jl&62914560)===Jl&&300>De()-lu?!(Gl&2)&&Mu(e,0):ru|=n,au===Jl&&(au=0)),md(e)}function id(e,t){t===0&&(t=Ye()),e=ii(e,t),e!==null&&(Ze(e,t),md(e))}function ad(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function od(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),id(e,n)}function sd(e,t){return Ce(e,t)}var cd=null,ld=null,ud=!1,dd=!1,fd=!1,pd=0;function md(e){e!==ld&&e.next===null&&(ld===null?cd=ld=e:ld=ld.next=e),dd=!0,ud||(ud=!0,xd())}function hd(e,t){if(!fd&&dd){fd=!0;do for(var n=!1,r=cd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,bd(r,a))}else a=Jl,a=Ke(r,r===Kl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,bd(r,a));r=r.next}while(n);fd=!1}}function gd(){_d()}function _d(){dd=ud=!1;var e=0;pd!==0&&af()&&(e=pd);for(var t=De(),n=null,r=cd;r!==null;){var i=r.next,a=vd(r,t);a===0?(r.next=null,n===null?cd=i:n.next=i,i===null&&(ld=n)):(n=r,(e!==0||a&3)&&(dd=!0)),r=i}mu!==0&&mu!==5||hd(e,!1),pd!==0&&(pd=0)}function vd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Yd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Pf(e,t,n){var r=Nf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Of.has(i)||(Of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Ff(e){Af.D(e),Pf(`dns-prefetch`,e,null)}function If(e,t){Af.C(e,t),Pf(`preconnect`,e,t)}function Lf(e,t,n){Af.L(e,t,n);var r=Nf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Df.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Df.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),qd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Rf(e,t){Af.m(e,t);var n=Nf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Df.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Df.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function zf(e,t,n){Af.S(e,t,n);var r=Nf;if(r&&e){var i=yt(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Df.get(a))&&Zf(e,n);var c=o=r.createElement(`link`);bt(c),qd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Xf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){Af.X(e,t);var n=Nf;if(n&&e){var r=yt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),bt(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){Af.M(e,t);var n=Nf;if(n&&e){var r=yt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),bt(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=ue.current)?kf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Uf(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Df.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Df.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Uf(e){return`href="`+zt(e)+`"`}function Wf(e){return`link[rel="stylesheet"][`+e+`]`}function Gf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Kf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),qd(t,`link`,n),bt(t),e.head.appendChild(t))}function qf(e){return`[src="`+zt(e)+`"]`}function Jf(e){return`script[async]`+e}function Yf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),qd(r,`style`,a),Xf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Gf(n),(a=Df.get(a))&&Zf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Xf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,bt(a),a):(r=n,(a=Df.get(o))&&(r=f({},n),Qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xf(r,n.precedence,e));return t.instance}function Xf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function np(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function rp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ip(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Df.get(i))&&Zf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ap=0;function op(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cp=new Map,t.forEach(up,e),cp=null,sp.call(e))}function up(e,t){if(!(t.state.loading&4)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=sa()})),la=o((e=>{var t=je().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),ua=o(((e,t)=>{t.exports=la()})),da=c(ca(),1),fa=ua(),pa=(0,P.createContext)(void 0);function ma(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ha(e){let t=(0,fa.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>ma(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,P.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,P.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,F.jsx)(pa.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function ga(){let e=(0,P.useContext)(pa);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function _a(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var va={};function ya(e,t,n,r,i){if(!n&&!r&&!i&&!e)return xa(t);let a=xa(e);return t&&(a=Sa(a,t)),n&&(a=Sa(a,n)),r&&(a=Sa(a,r)),i&&(a=Sa(a,i)),a}function ba(e){if(e.length===0)return va;if(e.length===1)return xa(e[0]);let t=xa(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function Ea(e){return typeof e==`function`}function Da(e,t){return Ea(e)?e(t):e??va}function Oa(e,t){return t?e?(...n)=>{let r=n[0];if(Ma(r)){let i=r;Aa(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:ka(t):e}function ka(e){return e&&((...t)=>{let n=t[0];return Ma(n)&&Aa(n),e(...t)})}function Aa(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ja(e,t){return t?e?t+` `+e:t:e}function Ma(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Na(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Pa=Na(`https://base-ui.com/production-error`,`Base UI`),Fa={};function Ia(e,t){let n=P.useRef(Fa);return n.current===Fa&&(n.current=e(t)),n}function La(e,t,n,r){let i=Ia(za).current;return Ba(i,e,t,n,r)&&Ha(i,[e,t,n,r]),i.callback}function Ra(e){let t=Ia(za).current;return Va(t,e)&&Ha(t,e),t.callback}function za(){return{callback:null,cleanup:null,refs:[]}}function Ba(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Va(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Ha(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Ga(e){if(!P.isValidElement(e))return null;let t=e,n=t.props;return(Wa(19)?n?.ref:t.ref)??null}function Ka(){}var qa=Object.freeze([]),Ja=Object.freeze({});function Ya(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Xa(e,t){return typeof e==`function`?e(t):e}function Za(e,t){return typeof e==`function`?e(t):e}function Qa(e,t,n={}){let r=t.render,i=$a(t,n);return n.enabled===!1?null:no(e,r,i,n.state??Ja)}function $a(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Ja,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Xa(n,a):void 0,d=l?Za(r,a):void 0,f=l?Ya(a,c):Ja,p=l&&s?eo(s):void 0,m=l?_a(f,p)??{}:Ja;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=Ra([m.ref,Ga(i),...o]):m.ref=La(m.ref,Ga(i),o):La(null,null)),l?(u!==void 0&&(m.className=ja(m.className,u)),d!==void 0&&(m.style=_a(m.style,d)),m):Ja}function eo(e){return Array.isArray(e)?ba(e):ya(void 0,e)}var to=Symbol.for(`react.lazy`);function no(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=ya(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===to&&(i=P.Children.toArray(t)[0]),P.cloneElement(i,e)}if(e&&typeof e==`string`)return ro(e,n);throw Error(Pa(8))}function ro(e,t){return e===`button`?(0,P.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,P.createElement)(`img`,{alt:``,...t,key:t.key}):P.createElement(e,t)}function io(e){return Qa(e.defaultTagName??`div`,e,e)}function ao(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,co=oo,lo=(e,t)=>n=>{if(t?.variants==null)return co(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=so(t)||so(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return co(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},uo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fo=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),po=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),mo=e=>{let t=po(e);return t.charAt(0).toUpperCase()+t.slice(1)},ho={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`},go=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_o=(0,P.createContext)({}),vo=()=>(0,P.useContext)(_o),yo=(0,P.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=vo()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,P.createElement)(`svg`,{ref:c,...ho,width:t??l??ho.width,height:t??l??ho.height,stroke:e??f,strokeWidth:m,className:uo(`lucide`,p,i),...!a&&!go(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,P.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),bo=(e,t)=>{let n=(0,P.forwardRef)(({className:n,...r},i)=>(0,P.createElement)(yo,{ref:i,iconNode:t,className:uo(`lucide-${fo(mo(e))}`,`lucide-${e}`,n),...r}));return n.displayName=mo(e),n},xo=bo(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),So=bo(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Co=bo(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),wo=bo(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),To=bo(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Eo=bo(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Do=bo(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Oo=bo(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),ko=bo(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Ao=bo(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),jo=bo(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Mo=bo(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),No=bo(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Po=bo(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Fo=bo(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Io=bo(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Lo=bo(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ro=bo(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),zo=bo(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Bo=bo(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Vo=bo(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),Ho=bo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Uo(){return typeof window<`u`}function Wo(e){return qo(e)?(e.nodeName||``).toLowerCase():`#document`}function Go(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ko(e){return((qo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qo(e){return Uo()?e instanceof Node||e instanceof Go(e).Node:!1}function Jo(e){return Uo()?e instanceof Element||e instanceof Go(e).Element:!1}function Yo(e){return Uo()?e instanceof HTMLElement||e instanceof Go(e).HTMLElement:!1}function Xo(e){return!Uo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Go(e).ShadowRoot}function Zo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=cs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Qo(e){return/^(table|td|th)$/.test(Wo(e))}function $o(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var es=/transform|translate|scale|rotate|perspective|filter/,ts=/paint|layout|strict|content/,ns=e=>!!e&&e!==`none`,rs;function is(e){let t=Jo(e)?cs(e):e;return ns(t.transform)||ns(t.translate)||ns(t.scale)||ns(t.rotate)||ns(t.perspective)||!os()&&(ns(t.backdropFilter)||ns(t.filter))||es.test(t.willChange||``)||ts.test(t.contain||``)}function as(e){let t=us(e);for(;Yo(t)&&!ss(t);){if(is(t))return t;if($o(t))return null;t=us(t)}return null}function os(){return rs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),rs}function ss(e){return/^(html|body|#document)$/.test(Wo(e))}function cs(e){return Go(e).getComputedStyle(e)}function ls(e){return Jo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function us(e){if(Wo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xo(e)&&e.host||Ko(e);return Xo(t)?t.host:t}function ds(e){let t=us(e);return ss(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yo(t)&&Zo(t)?t:ds(t)}function fs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ds(e),i=r===e.ownerDocument?.body,a=Go(r);if(i){let e=ps(a);return t.concat(a,a.visualViewport||[],Zo(r)?r:[],e&&n?fs(e):[])}else return t.concat(r,fs(r,[],n))}function ps(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ms=P[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],hs=ms&&ms!==P.useLayoutEffect?ms:e=>e();function gs(e){let t=Ia(_s).current;return t.next=e,hs(t.effect),t.trampoline}function _s(){let e={next:void 0,callback:vs,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function vs(){}var ys={...P},bs=typeof document<`u`?P.useLayoutEffect:()=>{},xs=P.createContext(void 0);function Ss(e=!1){let t=P.useContext(xs);if(t===void 0&&!e)throw Error(Pa(16));return t}function Cs(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:P.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function ws(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=P.useRef(null),s=Ss(!0),c=a??s!==void 0,{props:l}=Cs({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=P.useCallback(()=>{let e=o.current;Ts(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return bs(u,[u]),{getButtonProps:P.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ya({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Aa(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=Ts(a),l=!i&&Es(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(Aa(e),a?.(e),e.target===e.currentTarget&&i&&c&&Ts(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:gs(e=>{o.current=e,u()})}}function Ts(e){return Yo(e)&&e.tagName===`BUTTON`}function Es(e){return!!(e?.tagName===`A`&&e?.href)}var Ds=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=ws({disabled:i,focusableWhenDisabled:a,native:o});return Qa(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),Os=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),As=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),js=`-`,Ms=[],Ns=`arbitrary..`,Ps=e=>{let t=Ls(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Is(e);let n=e.split(js);return Fs(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Os(i,t):t:i||Ms}return n[e]||Ms}}},Fs=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Fs(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(js):e.slice(t).join(js),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ns+r:void 0})(),Ls=e=>{let{theme:t,classGroups:n}=e;return Rs(n,t)},Rs=(e,t)=>{let n=As();for(let r in e){let i=e[r];zs(i,n,r,t)}return n},zs=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Vs(e,t,n);return}if(typeof e==`function`){Hs(e,t,n,r);return}Us(e,t,n,r)},Vs=(e,t,n)=>{let r=e===``?t:Ws(t,e);r.classGroupId=n},Hs=(e,t,n,r)=>{if(Gs(e)){zs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ks(n,e))},Us=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(js),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Ks=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},qs=`!`,Js=`:`,Ys=[],Xs=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Zs=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return Xs(t,l,c,u)};if(t){let e=t+Js,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Xs(Ys,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Qs=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},$s=e=>({cache:Ks(e.cacheSize),parseClassName:Zs(e),sortModifiers:Qs(e),postfixLookupClassGroupIds:ec(e),...Ps(e)}),ec=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(tc),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+qs:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},rc=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=$s(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=nc(e,n);return i(e,a),a};return a=o,(...e)=>a(rc(...e))},oc=[],sc=e=>{let t=t=>t[e]||oc;return t.isThemeGetter=!0,t},cc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fc=/\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$/,pc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gc=e=>uc.test(e),_c=e=>!!e&&!Number.isNaN(Number(e)),vc=e=>!!e&&Number.isInteger(Number(e)),yc=e=>e.endsWith(`%`)&&_c(e.slice(0,-1)),bc=e=>dc.test(e),xc=()=>!0,Sc=e=>fc.test(e)&&!pc.test(e),Cc=()=>!1,wc=e=>mc.test(e),Tc=e=>hc.test(e),Ec=e=>!R(e)&&!z(e),Dc=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Oc=e=>Uc(e,qc,Cc),R=e=>cc.test(e),kc=e=>Uc(e,Jc,Sc),Ac=e=>Uc(e,Yc,_c),jc=e=>Uc(e,Zc,xc),Mc=e=>Uc(e,Xc,Cc),Nc=e=>Uc(e,Gc,Cc),Pc=e=>Uc(e,Kc,Tc),Fc=e=>Uc(e,Qc,wc),z=e=>lc.test(e),Ic=e=>Wc(e,Jc),Lc=e=>Wc(e,Xc),Rc=e=>Wc(e,Gc),zc=e=>Wc(e,qc),Bc=e=>Wc(e,Kc),Vc=e=>Wc(e,Qc,!0),Hc=e=>Wc(e,Zc,!0),Uc=(e,t,n)=>{let r=cc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Wc=(e,t,n=!1)=>{let r=lc.exec(e);return r?r[1]?t(r[1]):n:!1},Gc=e=>e===`position`||e===`percentage`,Kc=e=>e===`image`||e===`url`,qc=e=>e===`length`||e===`size`||e===`bg-size`,Jc=e=>e===`length`,Yc=e=>e===`number`,Xc=e=>e===`family-name`,Zc=e=>e===`number`||e===`weight`,Qc=e=>e===`shadow`,$c=ac(()=>{let e=sc(`color`),t=sc(`font`),n=sc(`text`),r=sc(`font-weight`),i=sc(`tracking`),a=sc(`leading`),o=sc(`breakpoint`),s=sc(`container`),c=sc(`spacing`),l=sc(`radius`),u=sc(`shadow`),d=sc(`inset-shadow`),f=sc(`text-shadow`),p=sc(`drop-shadow`),m=sc(`blur`),h=sc(`perspective`),g=sc(`aspect`),_=sc(`ease`),v=sc(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),z,R],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[z,R,c],T=()=>[gc,`full`,`auto`,...w()],E=()=>[vc,`none`,`subgrid`,z,R],ee=()=>[`auto`,{span:[`full`,vc,z,R]},vc,z,R],D=()=>[vc,`auto`,z,R],O=()=>[`auto`,`min`,`max`,`fr`,z,R],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],re=()=>[`auto`,...w()],k=()=>[gc,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[gc,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[gc,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,z,R],ae=()=>[...b(),Rc,Nc,{position:[z,R]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,zc,Oc,{size:[z,R]}],ce=()=>[yc,Ic,kc],M=()=>[``,`none`,`full`,l,z,R],le=()=>[``,_c,Ic,kc],ue=()=>[`solid`,`dashed`,`dotted`,`double`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[_c,yc,Rc,Nc],fe=()=>[``,`none`,m,z,R],pe=()=>[`none`,_c,z,R],me=()=>[`none`,_c,z,R],he=()=>[_c,z,R],ge=()=>[gc,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[bc],breakpoint:[bc],color:[xc],container:[bc],"drop-shadow":[bc],ease:[`in`,`out`,`in-out`],font:[Ec],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[bc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[bc],shadow:[bc],spacing:[`px`,_c],text:[bc],"text-shadow":[bc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,gc,R,z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,z,R]}],"container-named":[Dc],columns:[{columns:[_c,R,z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[vc,`auto`,z,R]}],basis:[{basis:[gc,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[_c,gc,`auto`,`initial`,`none`,R]}],grow:[{grow:[``,_c,z,R]}],shrink:[{shrink:[``,_c,z,R]}],order:[{order:[vc,`first`,`last`,`none`,z,R]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...A()]}],"min-inline-size":[{"min-inline":[`auto`,...A()]}],"max-inline-size":[{"max-inline":[`none`,...A()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,Ic,kc]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Hc,jc]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,yc,R]}],"font-family":[{font:[Lc,Mc,t]}],"font-features":[{"font-features":[R]}],"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,z,R]}],"line-clamp":[{"line-clamp":[_c,`none`,z,Ac]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,z,R]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,z,R]}],"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:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[_c,`from-font`,`auto`,z,kc]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[_c,`auto`,z,R]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[vc,z,R]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,z,R]}],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`,z,R]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},vc,z,R],radial:[``,z,R],conic:[vc,z,R]},Bc,Pc]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":le()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`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-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":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:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[_c,z,R]}],"outline-w":[{outline:[``,_c,Ic,kc]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Vc,Fc]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Vc,Fc]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:le()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[_c,kc]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Vc,Fc]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[_c,z,R]}],"mix-blend":[{"mix-blend":[...N(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":N()}],"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":[_c]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"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":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"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":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"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":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"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":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"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":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"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":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[z,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[_c]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"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:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,z,R]}],filter:[{filter:[``,`none`,z,R]}],blur:[{blur:fe()}],brightness:[{brightness:[_c,z,R]}],contrast:[{contrast:[_c,z,R]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Vc,Fc]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,_c,z,R]}],"hue-rotate":[{"hue-rotate":[_c,z,R]}],invert:[{invert:[``,_c,z,R]}],saturate:[{saturate:[_c,z,R]}],sepia:[{sepia:[``,_c,z,R]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,z,R]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[_c,z,R]}],"backdrop-contrast":[{"backdrop-contrast":[_c,z,R]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,_c,z,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_c,z,R]}],"backdrop-invert":[{"backdrop-invert":[``,_c,z,R]}],"backdrop-opacity":[{"backdrop-opacity":[_c,z,R]}],"backdrop-saturate":[{"backdrop-saturate":[_c,z,R]}],"backdrop-sepia":[{"backdrop-sepia":[``,_c,z,R]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,z,R]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[_c,`initial`,z,R]}],ease:[{ease:[`linear`,`initial`,_,z,R]}],delay:[{delay:[_c,z,R]}],animate:[{animate:[`none`,v,z,R]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,z,R]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[z,R,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],zoom:[{zoom:[vc,z,R]}],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`,z,R]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,z,R]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[_c,Ic,kc,Ac]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function el(...e){return $c(oo(e))}var tl=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function nl(e){return e?tl.format(new Date(e)):`Unknown`}var rl=[`B`,`KB`,`MB`,`GB`,`TB`];function il(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${rl[t]}`}function al(e){return e?.find(e=>e.Key===`Name`)?.Value}var ol=/\/$/;function sl(e){return e.replace(ol,``)}function cl(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function ll(e,t){return e.startsWith(t)?e:`${t}${e}`}function ul(e,t){return e.startsWith(t)?e.slice(t.length):e}var dl=lo(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none 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]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{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:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,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 fl(e){let t=(0,fa.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=el(dl({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,F.jsx)(Ds,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var pl=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}({}),ml={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},hl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},gl={disabled:!1,...hl},_l={valid(e){return e===null?null:e?{[pl.valid]:``}:{[pl.invalid]:``}}},vl=P.createContext({invalid:void 0,name:void 0,validityData:{state:ml,errors:[],error:``,value:``,initialValue:null},setValidityData:Ka,disabled:void 0,touched:hl.touched,setTouched:Ka,dirty:hl.dirty,setDirty:Ka,filled:hl.filled,setFilled:Ka,focused:hl.focused,setFocused:Ka,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:gl,markedDirtyRef:{current:!1},registerFieldControl:Ka,validation:{getValidationProps:(e=Ja)=>e,getInputValidationProps:(e=Ja)=>e,inputRef:{current:null},commit:async()=>{}}});function yl(e=!0){let t=P.useContext(vl);if(t.setValidityData===Ka&&!e)throw Error(Pa(28));return t}var bl=0;function xl(e,t=`mui`){let[n,r]=P.useState(e),i=e||n;return P.useEffect(()=>{n??(bl+=1,r(`${t}-${bl}`))},[n,t]),i}var Sl=ys.useId;function Cl(e,t){if(Sl!==void 0){let n=Sl();return e??(t?`${t}-${n}`:n)}return xl(e,t)}function wl(e){return Cl(e,`base-ui`)}var Tl=P.createContext({controlId:void 0,registerControlId:Ka,labelId:void 0,setLabelId:Ka,messageIds:[],setMessageIds:Ka,getDescriptionProps:e=>e});function El(){return P.useContext(Tl)}function Dl(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=El(),o=wl(t),s=n?i:void 0,c=Ia(()=>Symbol(`labelable-control`)),l=P.useRef(!1),u=P.useRef(t!=null),d=gs(()=>{!l.current||a===Ka||(l.current=!1,a(c.current,void 0))});return bs(()=>{if(a===Ka)return;let e;if(n){let n=r?.current;e=Jo(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),P.useEffect(()=>d,[d]),i??o}function Ol(e){return e?.ownerDocument||document}var kl=typeof navigator<`u`,Al=zl(),jl=Vl(),Ml=Bl(),Nl=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),Pl=Al.platform===`MacIntel`&&Al.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Al.platform);kl&&/firefox/i.test(Ml);var Fl=kl&&/apple/i.test(navigator.vendor);kl&&/Edg/i.test(Ml);var Il=kl&&/android/i.test(jl)||/android/i.test(Ml),Ll=kl&&jl.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Rl=Ml.includes(`jsdom/`);function zl(){if(!kl)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Bl(){if(!kl)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Vl(){if(!kl)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Hl=`data-base-ui-focusable`,Ul=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Wl=`ArrowLeft`,Gl=`ArrowRight`,Kl=`ArrowUp`,ql=`ArrowDown`;function Jl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function B(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Xo(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Yl(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Xl(e,t){if(!Jo(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(B(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Zl(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ql(e){return e.matches(`html,body`)}function $l(e){return Yo(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function eu(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ul}`)!=null}function tu(e){return e?e.getAttribute(`role`)===`combobox`&&$l(e):!1}function nu(e){if(!e||Rl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ru(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function iu(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...iu(e,t.id,n)])}function au(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function ou(e){e.preventDefault(),e.stopPropagation()}function su(e){return`nativeEvent`in e}function cu(e){return e.pointerType===``&&e.isTrusted?!0:Il&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function lu(e){return Rl?!1:!Il&&e.width===0&&e.height===0||Il&&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 uu(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function du(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var fu=[`top`,`right`,`bottom`,`left`],pu=Math.min,mu=Math.max,hu=Math.round,gu=Math.floor,_u=e=>({x:e,y:e}),vu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function yu(e,t,n){return mu(e,pu(t,n))}function bu(e,t){return typeof e==`function`?e(t):e}function xu(e){return e.split(`-`)[0]}function Su(e){return e.split(`-`)[1]}function Cu(e){return e===`x`?`y`:`x`}function wu(e){return e===`y`?`height`:`width`}function Tu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Eu(e){return Cu(Tu(e))}function Du(e,t,n){n===void 0&&(n=!1);let r=Su(e),i=Eu(e),a=wu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Iu(o)),[o,Iu(o)]}function Ou(e){let t=Iu(e);return[ku(e),t,ku(t)]}function ku(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Au=[`left`,`right`],ju=[`right`,`left`],Mu=[`top`,`bottom`],Nu=[`bottom`,`top`];function Pu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ju:Au:t?Au:ju;case`left`:case`right`:return t?Mu:Nu;default:return[]}}function Fu(e,t,n,r){let i=Su(e),a=Pu(xu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ku)))),a}function Iu(e){let t=xu(e);return vu[t]+e.slice(t.length)}function Lu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ru(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Lu(e)}function zu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Bu(e,t,n){return Math.floor(e/t)!==n}function Vu(e,t){return t<0||t>=e.length}function Hu(e,t){return Wu(e.current,{disabledIndices:t})}function Uu(e,t){return Wu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Wu(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Yu(e,a,r));return a}function Gu(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Yu(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=gu(l/y)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Yu(e,r,s))return r}};d&&ou(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Wu(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-ye?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Wu(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Vu(e,f)&&(f=u)}if(n===`both`){let n=gu(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&ou(t),u%o===o-1?r&&(f=Wu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Wu(e,{startingIndex:u,disabledIndices:s}),r&&Bu(f,o,n)&&(f=Wu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Bu(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&ou(t),u%o===0?r&&(f=Wu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Wu(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Bu(f,o,n)&&(f=Wu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Bu(f,o,n)&&(f=u));let c=gu(l/o)===n;Vu(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Wu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Ku(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function qu(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Ju(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Yu(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Zu(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Xu(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Zu(e,t=e?cs(e):null){return!e||!e.isConnected||!t||Xu(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Qu=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function $u(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Xo(n)?n.host:null}function ed(e){for(let t of Array.from(e.children))if(Wo(t)===`summary`)return t;return null}function td(e,t){let n=ed(t);return!!n&&(e===n||B(n,e))}function nd(e){let t=e?Wo(e):``;return e!=null&&e.matches(Qu)&&(t!==`summary`||e.parentElement!=null&&Wo(e.parentElement)===`details`&&ed(e.parentElement)===e)&&(t!==`details`||ed(e)==null)&&(t!==`input`||e.type!==`hidden`)}function rd(e){if(!nd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=$u(t)){let n=t!==e,r=Wo(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Wo(t)===`details`&&!t.open&&!td(e,t)||t.hasAttribute(`hidden`)||!r&&!id(t,n))return!1}return!0}function id(e,t){let n=cs(e);return t?n.display!==`none`:Zu(e,n)}function ad(e){let t=e.tabIndex;if(t<0){let t=Wo(e);if(t===`details`||t===`audio`||t===`video`||Yo(e)&&e.isContentEditable)return 0}return t}function od(e){if(Wo(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function sd(e,t){let n=od(e);if(!n)return!0;let r=t.find(e=>{let t=od(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=od(e);return t?.name===n.name&&t.form===n.form})===n}function cd(e){if(Yo(e)&&Wo(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Yo(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ld(e,t){cd(e).forEach(e=>{nd(e)&&t.push(e),ld(e,t)})}function ud(e,t,n){cd(e).forEach(e=>{Yo(e)&&e.matches(t)&&n.push(e),ud(e,t,n)})}function dd(e){return rd(e)&&ad(e)>=0}function fd(e){let t=[];return ld(e,t),t.filter(rd)}function pd(e){let t=fd(e);return t.filter(e=>ad(e)>=0&&sd(e,t))}function md(e,t){let n=pd(e),r=n.length;if(r===0)return;let i=Jl(Ol(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function hd(e){return md(Ol(e).body,1)||e}function gd(e){return md(Ol(e).body,-1)||e}function _d(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!B(n,r)}function vd(e){pd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function yd(e){let t=[];ud(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var bd=[];function xd(e){P.useEffect(e,bd)}var Sd=0,Cd=class e{static create(){return new e}currentId=Sd;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Sd,t()},e)}isStarted(){return this.currentId!==Sd}clear=()=>{this.currentId!==Sd&&(clearTimeout(this.currentId),this.currentId=Sd)};disposeEffect=()=>this.clear};function wd(){let e=Ia(Cd.create).current;return xd(e.disposeEffect),e}var Td=null;globalThis.requestAnimationFrame;var Ed=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Dd=class e{static create(){return new e}static request(e){return Ed.request(e)}static cancel(e){return Ed.cancel(e)}currentId=Td;request(e){this.cancel(),this.currentId=Ed.request(()=>{this.currentId=Td,e()})}cancel=()=>{this.currentId!==Td&&(Ed.cancel(this.currentId),this.currentId=Td)};disposeEffect=()=>this.cancel};function Od(){let e=Ia(Dd.create).current;return xd(e.disposeEffect),e}function kd(e){return e==null?e:`current`in e?e.current:e}var Ad=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),jd={[Ad.startingStyle]:``},Md={[Ad.endingStyle]:``},Nd={transitionStatus(e){return e===`starting`?jd:e===`ending`?Md:null}};function Pd(e,t=!1,n=!0){let r=Od();return gs((i,a=null)=>{r.cancel();let o=kd(e);if(o==null)return;let s=o,c=()=>{gi.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Ad.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Fd(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=gs(i),o=Pd(r,n,!1);P.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Id(e,t=!1,n=!1){let[r,i]=P.useState(e&&t?`idle`:void 0),[a,o]=P.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),bs(()=>{if(!e&&a&&r!==`ending`&&n){let e=Dd.request(()=>{i(`ending`)});return()=>{Dd.cancel(e)}}},[e,a,r,n]),bs(()=>{if(!e||t)return;let n=Dd.request(()=>{i(void 0)});return()=>{Dd.cancel(n)}},[t,e]),bs(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Dd.request(()=>{i(`idle`)});return()=>{Dd.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Ld({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=P.useRef(e!==void 0),[a,o]=P.useState(t);return[i?e:a,P.useCallback(e=>{i||o(e)},[])]}function Rd(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=yl(),s=P.useRef(null);s.current||=Symbol(),bs(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var zd=`none`,Bd=`trigger-press`,Vd=`trigger-hover`,Hd=`trigger-focus`,Ud=`outside-press`,Wd=`item-press`,Gd=`close-press`,Kd=`focus-out`,qd=`escape-key`,Jd=`list-navigation`,Yd=`cancel-open`,Xd=`disabled`,Zd=`imperative-action`,Qd=`window-resize`;function $d(e,t,n,r){let i=!1,a=!1,o=r??Ja;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var ef=P.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=yl(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=El(),ee=Dl({id:i});bs(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let D=P.useRef(null);bs(()=>{u&&D.current===Jl(Ol(D.current))&&y(!0)},[u,y]);let[O]=Ld({controlled:o,default:l,name:`FieldControl`,state:`value`}),te=o!==void 0,ne=te?O:void 0,re=gs(()=>S.inputRef.current?.value);return Rd(S.inputRef,{id:ee,value:ne,getValue:re}),Qa(`input`,e,{ref:[t,D],state:T,props:[{id:ee,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...te?{value:ne}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,$d(zd,e.nativeEvent)),_(t!==v.initialValue),b(t!==``)},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:_l})}),tf=P.forwardRef(function(e,t){return(0,F.jsx)(ef,{ref:t,...e})});function nf(e){let t=(0,fa.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=el(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,F.jsx)(tf,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var rf=P.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Qa(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function af(e){let t=(0,fa.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=el(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,F.jsx)(rf,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var of=P.createContext(void 0);function sf(e){let t=P.useContext(of);if(e===!1&&t===void 0)throw Error(Pa(27));return t}var cf=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ad.startingStyle]=`startingStyle`,e[e.endingStyle=Ad.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),lf=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),uf={[lf.popupOpen]:``},df={[lf.popupOpen]:``,[lf.pressed]:``},ff={[cf.open]:``},pf={[cf.closed]:``},mf={[cf.anchorHidden]:``},hf={open(e){return e?uf:null}},gf={open(e){return e?df:null}},_f={open(e){return e?ff:pf},anchorHidden(e){return e?mf:null}},vf={..._f,...Nd},yf=P.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=sf(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Qa(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:vf,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),bf=P.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{store:c}=sf(),l=c.useState(`open`);function u(e){l&&c.setOpen(!1,$d(Gd,e.nativeEvent))}let{getButtonProps:d,buttonRef:f}=ws({disabled:i,native:a});return Qa(`button`,e,{state:{disabled:i},ref:[t,f],props:[{onClick:u},s,d]})}),xf=P.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=sf(),c=wl(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Qa(`p`,e,{ref:t,props:[{id:c},o]})});function Sf(e,t){return t!=null&&!uu(t)?0:typeof e==`function`?e():e}function Cf(e,t,n){let r=Sf(e,n);return typeof r==`number`?r:r?.[t]}function wf(e){return typeof e==`function`?e():e}function Tf(e,t){return t||e===`click`||e===`mousedown`}var Ef=P.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Cd,currentIdRef:{current:null},currentContextRef:{current:null}});function Df(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=P.useRef(n),a=P.useRef(n),o=P.useRef(null),s=P.useRef(null),c=wd();return(0,F.jsx)(Ef.Provider,{value:P.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Of(e,t={open:!1}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`floatingId`),{open:i}=t,{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=P.useContext(Ef),[f,p]=P.useState(!1);return bs(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!i&&a.current===r){if(p(!1),s){let t=r;return d.start(s,()=>{n.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[i,r,a,o,s,c,l,d,n]),bs(()=>{if(!i)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:n.setOpen,setIsInstantPhase:p},a.current=r,o.current={open:0,close:Cf(c.current,`close`)},t!==null&&t!==r?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,$d(zd))):(p(!1),e?.setIsInstantPhase(!1))},[i,r,n,a,o,s,c,l,d]),bs(()=>()=>{l.current=null},[l]),P.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function kf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Af(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Nf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Pf={...Nf,position:`fixed`,top:0,left:0},Ff={...Nf,position:`absolute`},If=P.forwardRef(function(e,t){let[n,r]=P.useState();bs(()=>{Fl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,F.jsx)(`span`,{...e,ref:t,style:Pf,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Lf(e){return`data-base-ui-${e}`}var Rf=0;function zf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Rf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),Ka;let o=requestAnimationFrame(a);return Rf=o,()=>{Rf===o&&(cancelAnimationFrame(o),Rf=0)}}var Bf={inert:new WeakMap,"aria-hidden":new WeakMap},Vf=`data-base-ui-inert`,Hf={inert:new WeakSet,"aria-hidden":new WeakSet},Uf=new WeakMap,Wf=0;function Gf(e){return Hf[e]}function Kf(e){return e?Xo(e)?e.host:Kf(e.parentNode):null}var qf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Kf(t);return e.contains(n)?n:null}).filter(e=>e!=null),Jf=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Yf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Wo(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Xf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=qf(t,e),u=i?qf(t,a):[],d=new Set(u),f=i?Yf(t,Jf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Bf[o],n=Gf(o);c=n,s=e;let r=qf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Yf(t,Jf(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Uf.get(e)||0)+1;Uf.set(e,t),m.push(e),t===1&&e.setAttribute(Vf,``)}),Wf+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Uf.get(e)||0)-1;Uf.set(e,t),t||e.removeAttribute(Vf)}),--Wf,Wf||(Bf.inert=new WeakMap,Bf[`aria-hidden`]=new WeakMap,Hf.inert=new WeakSet,Hf[`aria-hidden`]=new WeakSet,Uf=new WeakMap)}}function Zf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Ol(e[0]).body;return Xf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Qf={style:{transition:`none`}},$f={fallbackAxisSide:`none`},ep={fallbackAxisSide:`end`},tp={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},np=P.createContext(null),rp=()=>P.useContext(np),ip=Lf(`portal`);function ap(e={}){let{ref:t,container:n,componentProps:r=Ja,elementProps:i}=e,a=Cl(),o=rp()?.portalNode,[s,c]=P.useState(null),[l,u]=P.useState(null),d=gs(e=>{e!==null&&u(e)}),f=P.useRef(null);bs(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(qo(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=Qa(`div`,r,{ref:[t,d],props:[{id:a,[ip]:``},i]});return{portalNode:l,portalSubtree:s&&p?gi.createPortal(p,s):null}}var op=P.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=ap({container:r,ref:t,componentProps:e,elementProps:c}),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),m=P.useRef(null),[h,g]=P.useState(null),_=P.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;P.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&_d(e)&&(e.type===`focusin`?_.current&&=(yd(l),!1):(vd(l),_.current=!0))}return Af(kf(l,`focusin`,e,!0),kf(l,`focusout`,e,!0))},[l,v]),P.useEffect(()=>{!l||y!==!1||(yd(l),_.current=!1)},[y,l]);let x=P.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,F.jsxs)(P.Fragment,{children:[u,(0,F.jsxs)(np.Provider,{value:x,children:[b&&l&&(0,F.jsx)(If,{"data-type":`outside`,ref:d,onFocus:e=>{_d(e,l)?p.current?.focus():gd(h?h.domReference:null)?.focus()}}),b&&l&&(0,F.jsx)(`span`,{"aria-owns":l.id,style:tp}),l&&gi.createPortal(n,l),b&&l&&(0,F.jsx)(If,{"data-type":`outside`,ref:f,onFocus:e=>{_d(e,l)?m.current?.focus():(hd(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,$d(`focus-out`,e.nativeEvent)))}})]})]})});function sp(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var cp=P.createContext(null),lp=P.createContext(null),up=()=>P.useContext(cp)?.id||null,dp=e=>{let t=P.useContext(lp);return e??t};function fp(e,t){let n=Go(Yl(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var pp=20,mp=[];function hp(){mp=mp.filter(e=>e.deref()?.isConnected)}function gp(e){hp(),e&&Wo(e)!==`body`&&(mp.push(new WeakRef(e)),mp.length>pp&&(mp=mp.slice(-pp)))}function _p(){return hp(),mp[mp.length-1]?.deref()}function vp(e){return e?dd(e)?e:pd(e)[0]||e:null}function yp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=fd(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return dd(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function bp(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=gs(()=>b.current.floatingContext?.nodeId),S=i===!1,C=tu(_)&&S,w=P.useRef([`content`]),T=jf(i),E=jf(a),ee=jf(l),D=dp(p),O=rp(),te=P.useRef(!1),ne=P.useRef(!1),re=P.useRef(!1),k=P.useRef(null),A=P.useRef(``),ie=P.useRef(``),j=P.useRef(null),ae=P.useRef(null),oe=La(j,f,O?.beforeInsideRef),se=La(ae,O?.afterInsideRef),ce=wd(),M=wd(),le=Od(),ue=O!=null,N=ru(v),de=gs((e=N)=>e?pd(e):[]),fe=gs(()=>m?.().filter(e=>e!=null)??[]);P.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&B(N,Jl(Ol(N)))&&de().length===0&&!C&&ou(e)}return kf(Ol(N),`keydown`,e)},[r,_,N,s,w,C,de]),P.useEffect(()=>{if(r||!g)return;let e=Ol(N);function t(){re.current=!1}function n(e){let t=Yl(e),n=fe();re.current=!(B(v,t)||B(_,t)||B(O?.portalNode,t)||n.some(e=>e===t||B(e,t))),ie.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(ne.current=!0)}function i(){ie.current=`keyboard`}return Af(kf(e,`pointerdown`,n,!0),kf(e,`pointerup`,t,!0),kf(e,`pointercancel`,t,!0),kf(e,`keydown`,i,!0))},[r,v,_,N,g,O,fe]),P.useEffect(()=>{if(r||!c)return;let e=Ol(N);function t(){ne.current=!0,M.start(0,()=>{ne.current=!1})}function n(e){let t=Yl(e);dd(t)&&(k.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Yl(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=fe(),f=n?.hasAttribute(Lf(`focus-guard`))&&[j.current,ae.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,kd(d),kd(u)].includes(n),p=!(B(_,n)||B(v,n)||B(n,v)||B(O?.portalNode,n)||l.some(e=>e===n||B(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>B(e,n))||f||D&&(iu(D.nodesRef.current,a).find(e=>B(e.context?.elements.floating,n)||B(e.context?.elements.domReference,n))||au(D.nodesRef.current,a).find(e=>[e.context?.elements.floating,ru(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&N&&yp(N,w),o&&r!==_&&!Zu(i)&&Jl(e)===e.body){if(Yo(N)&&(N.focus(),o===`popup`)){le.request(()=>{N.focus()});return}let e=de(),t=k.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||N;Yo(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!ne.current&&(C||n!==_p())&&(te.current=!0,h.setOpen(!1,$d(Kd,t)))})}function a(){re.current||(b.current.insideReactTree=!0,ce.start(0,()=>{b.current.insideReactTree=!1}))}let l=Yo(_)?_:null;if(!(!v&&!l))return Af(l&&kf(l,`focusout`,i),l&&kf(l,`pointerdown`,t),v&&kf(v,`focusin`,n),v&&kf(v,`focusout`,i),v&&O&&kf(v,`focusout`,a,!0))},[r,_,v,N,s,D,O,h,c,o,de,C,x,w,b,ce,M,le,u,d,fe]),P.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(O?.portalNode?.querySelectorAll(`[${Lf(`portal`)}]`)||[]),t=(D?au(D.nodesRef.current,x()):[]).find(e=>tu(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Zf([v,...e,j.current,ae.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...fe(),t,kd(d),kd(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Zf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,O,C,D,x,u,d,fe]),bs(()=>{if(!g||r||!Yo(N))return;let e=Jl(Ol(N));queueMicrotask(()=>{let t=T.current,n=typeof t==`function`?t(ee.current||``):t;if(n===void 0||n===!1||B(N,e))return;let r=null,i=()=>(r??=de(N),r[0]||N),a;a=n===!0||n===null?i():kd(n),a||=i(),zf(a,{preventScroll:a===N})})},[r,g,N,S,de,T,ee]),bs(()=>{if(r||!N)return;let e=Ol(N);gp(Jl(e));function t(e){if(e.open||(A.current=fp(e.nativeEvent,ie.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(te.current=!0),e.reason===`outside-press`)if(e.nested)te.current=!1;else if(cu(e.nativeEvent)||lu(e.nativeEvent))te.current=!1;else{let e=!1;Ol(N).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?te.current=!1:te.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(A.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||_p();return e&&e.isConnected?e:null}let n=_||_p();return kd(t)||n||null}return()=>{y.off(`openchange`,t);let r=Jl(e),i=fe(),a=B(v,r)||i.some(e=>e===r||B(e,r))||D&&iu(D.nodesRef.current,x(),!1).some(e=>B(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=vp(s),n=typeof o!=`boolean`;o&&!te.current&&Yo(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),te.current=!1})}},[r,v,N,E,b,y,D,_,x,fe]),bs(()=>{if(!Nl||g||!v)return;let e=Jl(Ol(v));!Yo(e)||!$l(e)||B(v,e)&&e.blur()},[g,v]),bs(()=>{if(!(r||!O))return O.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{O.setFocusManagerState(null)}},[r,O,s,g,h,c,_]),bs(()=>{if(!(r||!N))return yp(N,w),()=>{queueMicrotask(hp)}},[r,N,w]);let pe=!r&&(s?!C:!0)&&(ue||s);return(0,F.jsxs)(P.Fragment,{children:[pe&&(0,F.jsx)(If,{"data-type":`inside`,ref:oe,onFocus:e=>{if(s){let e=de();zf(e[e.length-1])}else O?.portalNode&&(te.current=!1,_d(e,O.portalNode)?hd(_)?.focus():kd(d??O.beforeOutsideRef)?.focus())}}),n,pe&&(0,F.jsx)(If,{"data-type":`inside`,ref:se,onFocus:e=>{s?zf(de()[0]):O?.portalNode&&(c&&(te.current=!0),_d(e,O.portalNode)?gd(_)?.focus():kd(u??O.afterOutsideRef)?.focus())}})]})}function xp(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Sp(e){return e!=null&&e.clientX!=null}function Cp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{enabled:s=!0,axis:c=`both`}=t,l=P.useRef(!1),u=P.useRef(null),[d,f]=P.useState(),[p,m]=P.useState([]),h=gs((e,t,r)=>{l.current||o.current.openEvent&&!Sp(o.current.openEvent)||n.set(`positionReference`,xp(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:d}))}),g=gs(e=>{r?u.current||m([]):h(e.clientX,e.clientY,e.currentTarget)}),_=uu(d)?i:r,v=P.useCallback(()=>{if(!_||!s)return;let e=Go(i);function t(e){B(i,Yl(e))?(u.current?.(),u.current=null):h(e.clientX,e.clientY)}if(!o.current.openEvent||Sp(o.current.openEvent))return u.current=kf(e,`mousemove`,t),()=>{u.current?.(),u.current=null};n.set(`positionReference`,a)},[_,s,i,o,a,n,h]);P.useEffect(()=>v(),[v,p]),P.useEffect(()=>{s&&!i&&(l.current=!1)},[s,i]),P.useEffect(()=>{!s&&r&&(l.current=!0)},[s,r]);let y=P.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return P.useMemo(()=>s?{reference:y,trigger:y}:{},[s,y])}var wp={intentional:`onClick`,sloppy:`onPointerDown`};function Tp(){return!1}function Ep(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Dp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=Tp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=dp(p),h=gs(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,v=gs(()=>l),y=P.useRef(!1),b=P.useRef(!1),x=P.useRef(!1),{escapeKey:S,outsidePress:C}=Ep(f),w=P.useRef(null),T=wd(),E=wd(),ee=gs(()=>{E.clear(),a.current.insideReactTree=!1}),D=P.useRef(!1),O=P.useRef(``),te=gs(u),ne=gs(e=>{if(!r||!o||!s||e.key!==`Escape`||D.current)return;let t=a.current.floatingContext?.nodeId,i=m?iu(m.nodesRef.current,t):[];if(!S&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=$d(qd,su(e)?e.nativeEvent:e);n.setOpen(!1,c),!S&&!c.isPropagationAllowed&&e.stopPropagation()}),re=gs(()=>{a.current.insideReactTree=!0,E.start(0,ee)});P.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=C;let e=new Cd,t=new Cd;function c(){e.clear(),D.current=!0}function l(){e.start(os()?5:0,()=>{D.current=!1})}function u(){x.current=!0,t.start(0,()=>{x.current=!1})}function d(){y.current=!1,b.current=!1}function f(){let e=O.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=a.current.floatingContext?.nodeId,r=m&&iu(m.nodesRef.current,t).some(t=>Zl(e,t.context?.elements.floating));return Zl(e,n.select(`floatingElement`))||Zl(e,n.select(`domReferenceElement`))||r}function E(e){if(p(e)){ee();return}if(a.current.insideReactTree){ee();return}let r=Yl(e),i=`[${Lf(`inert`)}]`,o=Jo(r)?r.getRootNode():null,s=Array.from((Xo(o)?o:Ol(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>B(e,r))))return;let l=Jo(r)?r:null;for(;l&&!ss(l);){let e=us(l);if(ss(e)||!Jo(e))break;l=e}if(s.length&&Jo(r)&&!Ql(r)&&!B(r,n.select(`floatingElement`))&&s.every(e=>!B(l,e)))return;if(Yo(r)&&!(`touches`in e)){let t=ss(r),n=cs(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(h(e))return;if(f()===`intentional`&&x.current){t.clear(),x.current=!1;return}if(typeof g==`function`&&!g(e))return;let u=a.current.floatingContext?.nodeId,d=m?iu(m.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,$d(Ud,e)),ee()}function te(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||Zl(e,n.select(`floatingElement`))||Zl(e,n.select(`domReferenceElement`))||E(e)}function re(e){if(f()!==`sloppy`||!n.select(`open`)||!o||Zl(e,n.select(`floatingElement`))||Zl(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(w.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},T.start(1e3,()=>{w.current&&(w.current.dismissOnTouchEnd=!1,w.current.dismissOnMouseDown=!1)}))}function k(e,t){let n=Yl(e);if(!n)return;let r=kf(n,e.type,()=>{t(e),r()})}function A(e){O.current=`touch`,k(e,re)}function ie(e){T.clear(),e.type===`pointerdown`&&(O.current=e.pointerType),!(e.type===`mousedown`&&w.current&&!w.current.dismissOnMouseDown)&&k(e,e=>{e.type===`pointerdown`?te(e):E(e)})}function j(e){if(!y.current)return;let n=b.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!h(e)){if(n){u();return}typeof g==`function`&&!g(e)||(t.clear(),x.current=!0,ee())}}}function ae(e){if(f()!==`sloppy`||!w.current||Zl(e,n.select(`floatingElement`))||Zl(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-w.current.startX),i=Math.abs(t.clientY-w.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(w.current.dismissOnTouchEnd=!0),a>10&&(E(e),T.clear(),w.current=null)}function oe(e){k(e,ae)}function se(e){f()!==`sloppy`||!w.current||Zl(e,n.select(`floatingElement`))||Zl(e,n.select(`domReferenceElement`))||(w.current.dismissOnTouchEnd&&E(e),T.clear(),w.current=null)}function ce(e){k(e,se)}let M=Ol(i),le=Af(s&&Af(kf(M,`keydown`,ne),kf(M,`compositionstart`,c),kf(M,`compositionend`,l)),_&&Af(kf(M,`click`,ie,!0),kf(M,`pointerdown`,ie,!0),kf(M,`pointerup`,j,!0),kf(M,`pointercancel`,j,!0),kf(M,`mousedown`,ie,!0),kf(M,`mouseup`,j,!0),kf(M,`touchstart`,A,!0),kf(M,`touchmove`,oe,!0),kf(M,`touchend`,ce,!0)));return()=>{le(),e.clear(),t.clear(),d(),x.current=!1}},[a,i,s,_,g,r,o,S,C,ne,ee,v,m,n,T]),P.useEffect(ee,[g,ee]);let k=P.useMemo(()=>({onKeyDown:ne,[wp[d]]:e=>{te()&&n.setOpen(!1,$d(Bd,e.nativeEvent))},...d!==`intentional`&&{onClick(e){te()&&n.setOpen(!1,$d(`trigger-press`,e.nativeEvent))}}}),[ne,n,d,te]),A=gs(e=>{if(!r||!o||e.button!==0)return;let t=Yl(e.nativeEvent);B(n.select(`floatingElement`),t)&&(y.current||(y.current=!0,b.current=!1))}),ie=gs(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&y.current&&(b.current=!0)}),j=P.useMemo(()=>({onKeyDown:ne,onPointerDown:ie,onMouseDown:ie,onClickCapture:re,onMouseDownCapture(e){re(),A(e)},onPointerDownCapture(e){re(),A(e)},onMouseUpCapture:re,onTouchEndCapture:re,onTouchMoveCapture:re}),[ne,re,A,ie]);return P.useMemo(()=>o?{reference:k,floating:j,trigger:k}:{},[o,k,j])}function Op(e,t,n){let{reference:r,floating:i}=e,a=Tu(t),o=Eu(t),s=wu(o),c=xu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Su(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function kp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=bu(t,e),p=Ru(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=zu(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=zu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ap=50,jp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:kp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Op(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Tu(t))||T.every(e=>Tu(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Tu(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pp(e){return fu.some(t=>e[t]>=0)}var Fp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=bu(e,t);switch(i){case`referenceHidden`:{let e=Np(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pp(e)}}}case`escaped`:{let e=Np(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pp(e)}}}default:return{}}}}},Ip=new Set([`left`,`top`]);async function Lp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=xu(n),s=Su(n),c=Tu(n)===`y`,l=Ip.has(o)?-1:1,u=a&&c?-1:1,d=bu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Rp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Lp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},zp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=bu(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Tu(xu(i)),p=Cu(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=yu(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=yu(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Bp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=bu(e,t),u={x:n,y:r},d=Tu(i),f=Cu(d),p=u[f],m=u[d],h=bu(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ip.has(xu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Vp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=bu(e,t),u=await o.detectOverflow(t,l),d=xu(i),f=Su(i),p=Tu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=pu(h-u[g],v),x=pu(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=mu(u.left,0),t=mu(u.right,0),n=mu(u.top,0),r=mu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:mu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:mu(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Hp(e){let t=cs(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Yo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=hu(n)!==a||hu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Up(e){return Jo(e)?e:e.contextElement}function Wp(e){let t=Up(e);if(!Yo(t))return _u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Hp(t),o=(a?hu(n.width):n.width)/r,s=(a?hu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Gp=_u(0);function Kp(e){let t=Go(e);return!os()||!t.visualViewport?Gp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Go(e)?!1:t}function Jp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Up(e),o=_u(1);t&&(r?Jo(r)&&(o=Wp(r)):o=Wp(e));let s=qp(a,n,r)?Kp(a):_u(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Go(a),t=r&&Jo(r)?Go(r):r,n=e,i=ps(n);for(;i&&r&&t!==n;){let e=Wp(i),t=i.getBoundingClientRect(),r=cs(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Go(i),i=ps(n)}}return zu({width:u,height:d,x:c,y:l})}function Yp(e,t){let n=ls(e).scrollLeft;return t?t.left+n:Jp(Ko(e)).left+n}function Xp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Yp(e,n),y:n.top+t.scrollTop}}function Zp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ko(r),s=t?$o(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=_u(1),u=_u(0),d=Yo(r);if((d||!d&&!a)&&((Wo(r)!==`body`||Zo(o))&&(c=ls(r)),d)){let e=Jp(r);l=Wp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Xp(o,c):_u(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Qp(e){return Array.from(e.getClientRects())}function $p(e){let t=Ko(e),n=ls(e),r=e.ownerDocument.body,i=mu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Yp(e),s=-n.scrollTop;return cs(r).direction===`rtl`&&(o+=mu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var em=25;function tm(e,t){let n=Go(e),r=Ko(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=os();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Yp(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=em&&(a-=o)}else l<=em&&(a+=l);return{width:a,height:o,x:s,y:c}}function nm(e,t){let n=Jp(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yo(e)?Wp(e):_u(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function rm(e,t,n){let r;if(t===`viewport`)r=tm(e,n);else if(t===`document`)r=$p(Ko(e));else if(Jo(t))r=nm(t,n);else{let n=Kp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return zu(r)}function im(e,t){let n=us(e);return n===t||!Jo(n)||ss(n)?!1:cs(n).position===`fixed`||im(n,t)}function am(e,t){let n=t.get(e);if(n)return n;let r=fs(e,[],!1).filter(e=>Jo(e)&&Wo(e)!==`body`),i=null,a=cs(e).position===`fixed`,o=a?us(e):e;for(;Jo(o)&&!ss(o);){let t=cs(o),n=is(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Zo(o)&&!n&&im(e,o))?r=r.filter(e=>e!==o):i=t,o=us(o)}return t.set(e,r),r}function om(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?$o(t)?[]:am(t,this._c):[].concat(n),r],o=rm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!mm(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function gm(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Up(e),u=i||a?[...l?fs(l):[],...t?fs(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?hm(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Jp(e):null;c&&g();function g(){let t=Jp(e);h&&!mm(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var _m=Rp,vm=zp,ym=Mp,bm=Vp,xm=Fp,Sm=Bp,Cm=(e,t,n)=>{let r=new Map,i={platform:pm,...n},a={...i.platform,_c:r};return jp(e,t,{...i,platform:a})},wm=typeof document<`u`?P.useLayoutEffect:function(){};function Tm(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(!Tm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Tm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Em(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dm(e,t){let n=Em(e);return Math.round(t*n)/n}function Om(e){let t=P.useRef(e);return wm(()=>{t.current=e}),t}function tee(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);Tm(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=Om(c),ee=Om(i),D=Om(l),O=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),Cm(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};te.current&&!Tm(w.current,t)&&(w.current=t,gi.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);wm(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=P.useRef(!1);wm(()=>(te.current=!0,()=>{te.current=!1}),[]),wm(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let ne=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),re=P.useMemo(()=>({reference:b,floating:x}),[b,x]),k=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!re.floating)return e;let t=Dm(re.floating,u.x),r=Dm(re.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Em(re.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,re.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:O,refs:ne,elements:re,floatingStyles:k}),[u,O,ne,re,k])}var nee=(e,t)=>{let n=_m(e);return{name:n.name,fn:n.fn,options:[e,t]}},ree=(e,t)=>{let n=vm(e);return{name:n.name,fn:n.fn,options:[e,t]}},iee=(e,t)=>({fn:Sm(e).fn,options:[e,t]}),aee=(e,t)=>{let n=ym(e);return{name:n.name,fn:n.fn,options:[e,t]}},oee=(e,t)=>{let n=bm(e);return{name:n.name,fn:n.fn,options:[e,t]}},see=(e,t)=>{let n=xm(e);return{name:n.name,fn:n.fn,options:[e,t]}},km=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Pa(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Am=[],jm=void 0;function Mm(){return jm}function Nm(e){Am.push(e)}function Pm(e){let t=(t,n)=>{let r=Ia(Im).current,i;try{jm=r;for(let e of Am)e.before(r);i=e(t,n);for(let e of Am)e.after(r);r.didInitialize=!0}finally{jm=void 0}return i};return t.displayName=e.displayName||e.name,t}function Fm(e){return P.forwardRef(Pm(e))}function Im(){return{didInitialize:!1}}var Lm=ti(),Rm=Wa(19)?Vm:Hm;function zm(e,t,n,r,i){return Rm(e,t,n,r,i)}function Bm(e,t,n,r,i){let a=P.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Lm.useSyncExternalStore)(e.subscribe,a,a)}Nm({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Lm.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Vm(e,t,n,r,i){let a=Mm();if(!a)return Bm(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Hm(e,t,n,r,i){return(0,ri.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Um=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return zm(this,e,t,n,r)}},Wm=class extends Um{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){P.useDebugValue(e),bs(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;bs(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;bs(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){P.useDebugValue(e);let n=t!==void 0;bs(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return P.useDebugValue(e),zm(this,this.selectors[e],t,n,r)}useContextCallback(e,t){P.useDebugValue(e);let n=gs(t??Ka);this.context[e]=n}useStateSetter(e){let t=P.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Gm={open:km(e=>e.open),transitionStatus:km(e=>e.transitionStatus),domReferenceElement:km(e=>e.domReferenceElement),referenceElement:km(e=>e.positionReference??e.referenceElement),floatingElement:km(e=>e.floatingElement),floatingId:km(e=>e.floatingId)},Km=class extends Wm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:sp(),nested:n,triggerElements:i},Gm),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&du(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function qm(e,t){let n=P.useRef(null),r=P.useRef(null);return P.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function Jm(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=qm(e,n),o=gs(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return bs(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Ym(e){let t=e.useState(`open`);bs(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function Xm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Id(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=gs(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Fd({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var Zm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Qm(){return new Km({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Zm,floatingId:``,syncOnly:!1,nested:!1,onOpenChange:void 0})}function $m(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Qm(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ja,inactiveTriggerProps:Ja,popupProps:Ja}}var eh=km(e=>e.triggerIdProp??e.activeTriggerId),th={open:km(e=>e.openProp??e.open),mounted:km(e=>e.mounted),transitionStatus:km(e=>e.transitionStatus),floatingRootContext:km(e=>e.floatingRootContext),preventUnmountingOnClose:km(e=>e.preventUnmountingOnClose),payload:km(e=>e.payload),activeTriggerId:eh,activeTriggerElement:km(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:km((e,t)=>t!==void 0&&eh(e)===t),isOpenedByTrigger:km((e,t)=>t!==void 0&&eh(e)===t&&e.open),isMountedByTrigger:km((e,t)=>t!==void 0&&eh(e)===t&&e.mounted),triggerProps:km((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:km(e=>e.popupProps),popupElement:km(e=>e.popupElement),positionerElement:km(e=>e.positionerElement)};function nh(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Cl(),a=up()!=null,o=Ia(()=>new Km({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Zm,floatingId:i,syncOnly:!1,nested:a})).current;return bs(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Jo(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function rh(e={}){let{nodeId:t,externalTree:n}=e,r=nh(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=P.useState(null),c=P.useRef(null),l=dp(n);bs(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=tee({...e,elements:{...a,...o&&{reference:o}}}),d=P.useCallback(e=>{let t=Jo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=P.useState(void 0),[m,h]=P.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=Jo(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=P.useCallback(e=>{(Jo(e)||e===null)&&(c.current=e,p(e)),(Jo(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!Jo(e))&&u.refs.setReference(e)},[u.refs,p]),v=P.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=P.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=P.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=P.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return bs(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),P.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function ih(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=Cl(),a=up()!=null,o=t.useState(`open`),s=t.useState(`activeTriggerElement`),c=t.useState(n?`popupElement`:`positionerElement`),l=t.context.triggerElements,u=Ia(()=>new Km({open:o,transitionStatus:void 0,referenceElement:s,floatingElement:c,triggerElements:l,onOpenChange:r,floatingId:i,syncOnly:!0,nested:a})).current;return bs(()=>{let e={open:o,floatingId:i,referenceElement:s,floatingElement:c};Jo(s)&&(e.domReferenceElement=s),u.state.positionReference===u.state.referenceElement&&(e.positionReference=s),u.update(e)},[o,i,s,c,u]),u.context.onOpenChange=r,u.context.nested=a,u}var ah=Ll&&Fl;function oh(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=P.useRef(!1),c=P.useRef(null),l=wd(),u=P.useRef(!0);P.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=Go(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&Yo(e)&&e===Jl(Ol(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return Af(kf(t,`blur`,r),ah&&kf(t,`keydown`,i,!0),ah&&kf(t,`pointerdown`,o,!0))},[n,a]),P.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);Jo(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=P.useMemo(()=>({onMouseLeave(){s.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(s.current){if(c.current===t)return;s.current=!1,c.current=null}let r=Yl(e.nativeEvent);if(Jo(r)){if(ah&&!e.relatedTarget){if(!u.current&&!$l(r))return}else if(!nu(r))return}let i=Xl(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:d}=e,f=typeof o==`function`?o():o;if(n.select(`open`)&&i||f===0||f===void 0){n.setOpen(!0,$d(Hd,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,$d(Hd,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=Jo(t)&&t.hasAttribute(Lf(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=Jl(Ol(e));!t&&o===e||B(i.current.floatingContext?.refs.floating.current,o)||B(e,o)||a||Xl(t??o,n.context.triggerElements)||n.setOpen(!1,$d(Hd,r))})}}),[i,n,l,o]);return P.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var cee=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Cd,this.restTimeout=new Cd,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},sh=new WeakMap;function ch(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&sh.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),sh.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function lh(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=sh.get(n);a&&a!==e&&ch(a),ch(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,sh.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function uh(e){let t=Ia(cee.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,xd(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function lee(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),{dataRef:o}=n.context,{enabled:s=!0,closeDelay:c=0,nodeId:l}=t,u=uh(n),d=dp(),f=up(),p=gs(()=>Tf(o.current.openEvent?.type,u.interactedInside)),m=gs(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),h=gs(e=>Xl(e,n.context.triggerElements)),g=P.useCallback(e=>{let t=Cf(c,`close`,u.pointerType),r=()=>{n.setOpen(!1,$d(Vd,e)),d?.events.emit(`floating.closed`,e)};t?u.openChangeTimeout.start(t,r):(u.openChangeTimeout.clear(),r())},[c,n,u,d]),_=gs(()=>{ch(u)}),v=gs(e=>{let t=Yl(e);if(!eu(t)){u.interactedInside=!1;return}u.interactedInside=t?.closest(`[aria-haspopup]`)!=null});bs(()=>{r||(u.pointerType=void 0,u.restTimeoutPending=!1,u.interactedInside=!1,_())},[r,u,_]),P.useEffect(()=>_,[_]),bs(()=>{if(s&&r&&u.handleCloseOptions?.blockPointerEvents&&m()&&Jo(a)&&i){let e=a,t=i,n=Ol(i),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),lh(u,{scopeElement:u.handleCloseOptions?.getScope?.()??u.pointerEventsScopeElement??r??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{_()}}},[s,r,a,i,u,m,d,f,_]);let y=wd();P.useEffect(()=>{if(!s)return;function e(){u.openChangeTimeout.clear(),y.clear(),d?.events.off(`floating.closed`,r),_()}function t(e){if(d&&f&&iu(d.nodesRef.current,f).length>0){d.events.on(`floating.closed`,r);return}if(h(e.relatedTarget))return;let t=o.current.floatingContext?.nodeId??l,n=e.relatedTarget;if(!(d&&t&&Jo(n)&&iu(d.nodesRef.current,t,!1).some(e=>B(e.context?.elements.floating,n)))){if(u.handler){u.handler(e);return}_(),p()||g(e)}}function r(e){!d||!f||iu(d.nodesRef.current,f).length>0||y.start(0,()=>{d.events.off(`floating.closed`,r),n.setOpen(!1,$d(Vd,e)),d.events.emit(`floating.closed`,e)})}let a=i;return Af(a&&kf(a,`mouseenter`,e),a&&kf(a,`mouseleave`,t),a&&kf(a,`pointerdown`,v,!0),()=>{d?.events.off(`floating.closed`,r)})},[s,i,n,o,l,p,h,g,_,v,u,d,f,y])}var uee={current:null};function dee(e,t={}){let n=`rootStore`in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:a=!0,delay:o=0,handleClose:s=null,mouseOnly:c=!1,restMs:l=0,move:u=!0,triggerElementRef:d=uee,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:m,isClosing:h}=t,g=dp(f),_=uh(n),v=P.useRef(!1),y=jf(s),b=jf(o),x=jf(l),S=jf(a),C=jf(h);p&&(_.handleCloseOptions=y.current?.__options);let w=gs(()=>Tf(r.current.openEvent?.type,_.interactedInside)),T=gs(e=>Xl(e,n.context.triggerElements)),E=gs((e,t,r)=>{let i=n.context.triggerElements;if(i.hasElement(t))return!e||!B(e,t);if(!Jo(r))return!1;let a=r;return i.hasMatchingElement(e=>B(e,a))&&(!e||!B(e,a))}),ee=gs((e,t=!0)=>{let r=Cf(b.current,`close`,_.pointerType);r?_.openChangeTimeout.start(r,()=>{n.setOpen(!1,$d(Vd,e)),g?.events.emit(`floating.closed`,e)}):t&&(_.openChangeTimeout.clear(),n.setOpen(!1,$d(Vd,e)),g?.events.emit(`floating.closed`,e))}),D=gs(()=>{_.handler&&=(Ol(n.select(`domReferenceElement`)).removeEventListener(`mousemove`,_.handler),void 0)}),O=gs(()=>{ch(_)});return P.useEffect(()=>D,[D]),P.useEffect(()=>{if(!a)return;function e(e){e.open?v.current=!1:(v.current=e.reason===Vd,D(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,_,D]),P.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!Jo(e))return;function t(e){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,c&&!uu(_.pointerType))return;let t=wf(x.current),r=Cf(b.current,`open`,_.pointerType),i=Yl(e),a=e.currentTarget??null,o=n.select(`domReferenceElement`),s=a;if(Jo(i)&&!n.context.triggerElements.hasElement(i)){for(let e of n.context.triggerElements.elements())if(B(e,i)){s=e;break}}Jo(a)&&Jo(o)&&!n.context.triggerElements.hasElement(a)&&B(a,o)&&(s=o);let l=s==null?!1:E(o,s,i),u=n.select(`open`),d=C.current?.()??n.select(`transitionStatus`)===`ending`,f=!u&&d&&v.current,p=!l&&Jo(s)&&Jo(o)&&B(o,s)&&f,m=t>0&&!r,h=l&&(u||f)||p,g=!u||l;if(h){n.setOpen(!0,$d(Vd,e,s));return}m||(r?_.openChangeTimeout.start(r,()=>{g&&n.setOpen(!0,$d(Vd,e,s))}):g&&n.setOpen(!0,$d(Vd,e,s)))}function i(e){if(w()){O();return}D();let t=Ol(n.select(`domReferenceElement`));_.restTimeout.clear(),_.restTimeoutPending=!1;let i=r.current.floatingContext??m?.();if(!T(e.relatedTarget)){if(y.current&&i){n.select(`open`)||_.openChangeTimeout.clear();let r=d.current;_.handler=y.current({...i,tree:g,x:e.clientX,y:e.clientY,onClose(){O(),D(),S.current&&!w()&&r===n.select(`domReferenceElement`)&&ee(e,!0)}}),t.addEventListener(`mousemove`,_.handler),_.handler(e);return}(_.pointerType!==`touch`||!B(n.select(`floatingElement`),e.relatedTarget))&&ee(e)}}return u?Af(kf(e,`mousemove`,t,{once:!0}),kf(e,`mouseenter`,t),kf(e,`mouseleave`,i)):Af(kf(e,`mouseenter`,t),kf(e,`mouseleave`,i))},[D,O,r,b,ee,n,a,y,_,p,E,w,T,c,u,x,d,g,S,m,C]),P.useMemo(()=>{if(!a)return;function e(e){_.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=n.select(`domReferenceElement`),a=n.select(`open`),o=E(i,r,e.target);if(c&&!uu(_.pointerType))return;if(a&&o&&_.handleCloseOptions?.blockPointerEvents){let e=n.select(`floatingElement`);e&&lh(_,{scopeElement:_.handleCloseOptions?.getScope?.()??r.ownerDocument.body,referenceElement:r,floatingElement:e})}let s=wf(x.current);if(a&&!o||s===0||!o&&_.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;_.restTimeout.clear();function l(){if(_.restTimeoutPending=!1,w())return;let e=n.select(`open`);!_.blockMouseMove&&(!e||o)&&n.setOpen(!0,$d(Vd,t,r))}_.pointerType===`touch`?gi.flushSync(()=>{l()}):o&&a?l():(_.restTimeoutPending=!0,_.restTimeout.start(s,l))}}},[a,_,w,E,c,n,x])}function dh(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=P.useCallback(t=>fh(t,e,`reference`),t),o=P.useCallback(t=>fh(t,e,`floating`),n),s=P.useCallback(t=>fh(t,e,`item`),r),c=P.useCallback(t=>fh(t,e,`trigger`),i);return P.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function fh(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[Hl]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var fee=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function pee(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=Cl(),l=a?.id||c,u=P.useMemo(()=>ru(o)?.id||i,[o,i]),d=fee.get(s)??s,f=up()!=null,p=P.useMemo(()=>d===`tooltip`||s===`label`?Ja:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=P.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=P.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=P.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return P.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}var mh=.1,mee=mh*mh,hh=.5;function gh(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function _h(e,t,n,r,i,a,o,s,c,l){let u=!1;return gh(e,t,n,r,i,a)&&(u=!u),gh(e,t,i,a,o,s)&&(u=!u),gh(e,t,o,s,c,l)&&(u=!u),gh(e,t,c,l,n,r)&&(u=!u),u}function vh(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function yh(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function bh(e={}){let{blockPointerEvents:t=!1}=e,n=new Cd,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*mee;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,ee=(T?x:S).left,D=(T?x:S).right,O=(E?x:S).top,te=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let ne=!1;switch(c){case`top`:ne=yh(d,f,ee,x.top+1,D,S.bottom-1);break;case`bottom`:ne=yh(d,f,ee,S.top+1,D,x.bottom-1);break;case`left`:ne=yh(d,f,S.right-1,te,x.left+1,O);break;case`right`:ne=yh(d,f,x.right-1,te,S.left+1,O);break;default:}if(ne)return;if(l&&!vh(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let re=!1;switch(c){case`top`:{let n=T?hh/2:hh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+hh+1,o=C||T?S.bottom-hh:S.top,s=C?T?S.bottom-hh:S.top:S.bottom-hh;re=_h(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?hh/2:hh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-hh,o=C||T?S.top+hh:S.bottom,s=C?T?S.top+hh:S.bottom:S.top+hh;re=_h(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?hh/2:hh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+hh+1,o=w||E?S.right-hh:S.left,s=w?E?S.right-hh:S.left:S.right-hh;re=_h(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?hh/2:hh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-hh,o=w||E?S.left+hh:S.right,s=w?E?S.left+hh:S.right:S.left+hh;re=_h(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}re?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var xh=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Sh=function(e){return e[e.open=cf.open]=`open`,e[e.closed=cf.closed]=`closed`,e[e.startingStyle=cf.startingStyle]=`startingStyle`,e[e.endingStyle=cf.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Ch=P.createContext(void 0);function wh(){let e=P.useContext(Ch);if(e===void 0)throw Error(Pa(26));return e}var Th=`ArrowUp`,Eh=`ArrowDown`,Dh=`ArrowLeft`,Oh=`ArrowRight`,kh=`Home`,Ah=new Set([Dh,Oh]),jh=new Set([Dh,Oh,kh,`End`]),Mh=new Set([Th,Eh]),Nh=new Set([Th,Eh,kh,`End`]),Ph=new Set([...Ah,...Mh]),Fh=new Set([...Ph,kh,`End`]),Ih=new Set([Th,Eh,Dh,Oh,kh,`End`]),Lh=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Rh(e){return Yo(e)&&e.tagName===`INPUT`}function zh(e){return!!(Rh(e)&&e.selectionStart!=null||Yo(e)&&e.tagName===`TEXTAREA`)}function Bh(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Vh(e,t,`top`),r=Hh(e),i=Hh(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Vh(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Hh(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Uh={..._f,...Nd,nestedDialogOpen(e){return e?{[Sh.nestedDialogOpen]:``}:null}},Wh=P.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,style:o,...s}=e,{store:c}=sf(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`);wh(),Fd({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function S(e){return e===`touch`?c.context.popupRef.current:!0}let C=i===void 0?S:i,w=Qa(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:g>0},props:[f,{"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,tabIndex:-1,hidden:!m,onKeyDown(e){Ih.has(e.key)&&e.stopPropagation()},style:{[xh.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:Uh});return(0,F.jsx)(bp,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:w})});function Gh(e){return Wa(19)?e:e?`true`:void 0}var Kh=P.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,F.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),qh=P.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=sf(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,F.jsx)(Ch.Provider,{value:n,children:(0,F.jsxs)(op,{ref:t,...r,children:[a&&o===!0&&(0,F.jsx)(Kh,{ref:i.context.internalBackdropRef,inert:Gh(!s)}),e.children]})}):null});function Jh(e){let t=P.useRef(!0);t.current&&(t.current=!1,e())}var Yh={},Xh={},Zh=``;function Qh(e){if(typeof document>`u`)return!1;let t=Ol(e);return Go(t).innerWidth-t.documentElement.clientWidth>0}function $h(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Ol(e),n=t.documentElement,r=t.body,i=Zo(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function eg(e){let t=Ol(e),n=t.documentElement,r=t.body,i=Zo(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function tg(e){let t=Ol(e),n=t.documentElement,r=t.body,i=Go(n),a=0,o=0,s=!1,c=Dd.create();if(Nl&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Yh={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Zh=n.style.scrollBehavior,Xh={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Zo(n)?n:r;if(s=$h(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Yh),Object.assign(r.style,Xh),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Zh)}function d(){u(),c.request(l)}l();let f=kf(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var ng=new class{lockCount=0;restore=null;timeoutLock=Cd.create();timeoutUnlock=Cd.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Ol(e).documentElement,n=Go(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ka;return}let r=Pl||!Qh(e);this.restore=r?eg(e):tg(e)}};function rg(e=!0,t=null){bs(()=>{if(e)return ng.acquire(t)},[e,t])}function ig(e){let t=P.useRef(``),n=P.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:P.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ag(e,t){let n=P.useRef(e),r=gs(t);bs(()=>{n.current!==e&&r(n.current)},[e,r]),bs(()=>{n.current=e},[e])}function og(e){let[t,n]=P.useState(null),r=gs((t,r)=>{e||n(r||(Pl?`touch`:``))});ag(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=ig(r);return P.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function sg(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`),o=t.useState(`disablePointerDismissal`),s=t.useState(`modal`),c=t.useState(`popupElement`),{openMethod:l,triggerProps:u}=og(a);Ym(t);let{forceUnmount:d}=Xm(a,t),f=P.useCallback(()=>{t.setOpen(!1,$d(Zd))},[t]);P.useImperativeHandle(r,()=>({unmount:d,close:f}),[d,f]);let p=ih({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[m,h]=P.useState(0),[g,_]=P.useState(0),v=m===0,y=pee(p),b=Dp(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:s===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=Yl(e);if(v&&!o){let e=n;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||B(e,c)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:v});rg(a&&s===!0,c);let{getReferenceProps:x,getFloatingProps:S,getTriggerProps:C}=dh([y,b]);t.useContextCallback(`onNestedDialogOpen`,(e,t)=>{h(e),_(t)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0),_(0)}),P.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(m+1,g+ +!!i),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[i,a,m,g,n]);let w=P.useMemo(()=>x(u),[x,u]),T=P.useMemo(()=>C(u),[C,u]),E=P.useMemo(()=>S(),[S]);t.useSyncedValues({openMethod:l,activeTriggerProps:w,inactiveTriggerProps:T,popupProps:E,floatingRootContext:p,nestedOpenDialogCount:m,nestedOpenDrawerCount:g})}var cg={...th,modal:km(e=>e.modal),nested:km(e=>e.nested),nestedOpenDialogCount:km(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:km(e=>e.nestedOpenDrawerCount),disablePointerDismissal:km(e=>e.disablePointerDismissal),openMethod:km(e=>e.openMethod),descriptionElementId:km(e=>e.descriptionElementId),titleElementId:km(e=>e.titleElementId),viewportElement:km(e=>e.viewportElement),role:km(e=>e.role)},lg=class e extends Wm{constructor(e){super(ug(e),{popupRef:P.createRef(),backdropRef:P.createRef(),internalBackdropRef:P.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Zm,onOpenChange:void 0,onOpenChangeComplete:void 0},cg)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(t,n){let r=Ia(()=>new e(n)).current;return t??r}};function ug(e={}){return{...$m(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}var dg=P.createContext(!1);function fg(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=sf(!0),p=P.useContext(dg),m=!!f,h=lg.useStore(l?.store,{open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:m});Jh(()=>{n===void 0&&h.state.open===!1&&r===!0&&h.update({open:!0,activeTriggerId:d})}),h.useControlledProp(`openProp`,n),h.useControlledProp(`triggerIdProp`,u),h.useSyncedValues({disablePointerDismissal:o,nested:m,modal:s}),h.useContextCallback(`onOpenChange`,i),h.useContextCallback(`onOpenChangeComplete`,a);let g=h.useState(`payload`);sg({store:h,actionsRef:c,parentContext:f?.store.context,isDrawer:p,onOpenChange:i,triggerIdProp:u});let _=P.useMemo(()=>({store:h}),[h]);return(0,F.jsx)(dg.Provider,{value:!1,children:(0,F.jsx)(of.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})})}var pg=P.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=sf(),c=wl(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Qa(`h2`,e,{ref:t,props:[{id:c},o]})});function mg(e){let t=(0,fa.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(fg,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function hg(e){let t=(0,fa.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(qh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function gg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(yf,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _g(e){let t=(0,fa.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(gg,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=el(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,F.jsxs)(bf,{"data-slot":`sheet-close`,render:(0,F.jsx)(fl,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,F.jsx)(Ho,{}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,F.jsxs)(hg,{children:[l,(0,F.jsxs)(Wh,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function vg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function yg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(pg,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hee(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(xf,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var bg=P.createContext(void 0);function xg(e){let t=P.useContext(bg);if(t===void 0&&!e)throw Error(Pa(72));return t}var gee={...th,disabled:km(e=>e.disabled),instantType:km(e=>e.instantType),isInstantPhase:km(e=>e.isInstantPhase),trackCursorAxis:km(e=>e.trackCursorAxis),disableHoverablePopup:km(e=>e.disableHoverablePopup),lastOpenChangeReason:km(e=>e.openChangeReason),closeOnClick:km(e=>e.closeOnClick),closeDelay:km(e=>e.closeDelay),hasViewport:km(e=>e.hasViewport)},_ee=class e extends Wm{constructor(e){super({...vee(),...e},{popupRef:P.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Zm},gee)}setOpen=(e,t)=>{let n=t.reason,r=n===Vd,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0);let o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?gi.flushSync(o):o()};static useStore(t,n){let r=Ia(()=>new e(n)).current,i=t??r,a=ih({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function vee(){return{...$m(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var yee=Pm(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=_ee.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Jh(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),bs(()=>{m&&t&&p.setOpen(!1,$d(Xd))},[m,t,p]),p.useSyncedValue(`disabled`,t),Ym(p);let{forceUnmount:v,transitionStatus:y}=Xm(h,p),b=p.select(`floatingRootContext`),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=P.useRef(null);bs(()=>{y===`ending`&&C===`none`||y!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[y,x,C,S,p]),bs(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=P.useCallback(()=>{p.setOpen(!1,$d(Zd))},[p]);P.useImperativeHandle(o,()=>({unmount:v,close:T}),[v,T]);let{getReferenceProps:E,getFloatingProps:ee,getTriggerProps:D}=dh([Dp(b,{enabled:!t,referencePress:()=>p.select(`closeOnClick`)}),Cp(b,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),O=P.useMemo(()=>E(),[E]),te=P.useMemo(()=>D(),[D]),ne=P.useMemo(()=>ee(),[ee]);return p.useSyncedValues({activeTriggerProps:O,inactiveTriggerProps:te,popupProps:ne}),(0,F.jsx)(bg.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})}),Sg=P.createContext(void 0);function bee(){return P.useContext(Sg)}var xee=function(e){return e[e.popupOpen=lf.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),See=Fm(function(e,t){let{className:n,render:r,handle:i,payload:a,disabled:o,delay:s,closeOnClick:c=!0,closeDelay:l,id:u,style:d,...f}=e,p=xg(!0),m=i?.store??p;if(!m)throw Error(Pa(82));let h=wl(u),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=P.useRef(null),b=s??600,x=l??0,{registerTrigger:S,isMountedByThisTrigger:C}=Jm(h,y,m,{payload:a,closeOnClick:c,closeDelay:x}),w=bee(),{delayRef:T,isInstantPhase:E,hasProvider:ee}=Of(v,{open:_});m.useSyncedValue(`isInstantPhase`,E);let D=m.useState(`disabled`),O=o??D,te=m.useState(`trackCursorAxis`),ne=m.useState(`disableHoverablePopup`),re=dee(v,{enabled:!O,mouseOnly:!0,move:!1,handleClose:!ne&&te!==`both`?bh():null,restMs(){let e=w?.delay,t=typeof T.current==`object`?T.current.open:void 0,n=b;return ee&&(n=t===0?0:s??e??b),n},delay(){let e=typeof T.current==`object`?T.current.close:void 0,t=x;return l==null&&ee&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`}),k=oh(v,{enabled:!O}).reference,A={open:_},ie=m.useState(`triggerProps`,C);return Qa(`button`,e,{state:A,ref:[t,S,y],props:[re,k,ie,{onPointerDown(){m.set(`closeOnClick`,c)},id:h,[xee.triggerDisabled]:O?``:void 0},f],stateAttributesMapping:hf})}),Cg=P.createContext(void 0);function Cee(){let e=P.useContext(Cg);if(e===void 0)throw Error(Pa(70));return e}var wee=P.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=ap({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,F.jsxs)(P.Fragment,{children:[l,c&&gi.createPortal(n,c)]})}),Tee=P.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return xg().useState(`mounted`)||n?(0,F.jsx)(Cg.Provider,{value:n,children:(0,F.jsx)(wee,{ref:t,...r})}):null}),wg=P.createContext(void 0);function Tg(){let e=P.useContext(wg);if(e===void 0)throw Error(Pa(71));return e}var Eee=P.createContext(void 0);function Eg(){return P.useContext(Eee)?.direction??`ltr`}var Dee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=bu(e,t)||{};if(l==null)return{};let f=Ru(u),p={x:n,y:r},m=Eu(i),h=wu(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,ee=Math.min(f[v],E),D=Math.min(f[y],E),O=ee,te=w-g[h]-D,ne=w/2-g[h]/2+T,re=yu(O,ne,te),k=!c.arrow&&Su(i)!=null&&ne!==re&&a.reference[h]/2-(ne({...Dee(e),options:[e,t]}),kee={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await see().fn(e)).data?.referenceHidden||a}}}},Dg={sideX:`left`,sideY:`top`},Aee={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Go(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Dg};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Ol(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=xu(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Dg.sideX,g=f===`top`?`bottom`:Dg.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Og(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function kg(e,t,n){let{rects:r,placement:i}=e;return{side:Og(t,xu(i),n),align:Su(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ag(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:b}=e,[x,S]=P.useState(null);!m&&x!==null&&S(null);let C=h.side||`flip`,w=h.align||`flip`,T=h.fallbackAxisSide||`end`,E=typeof t==`function`?t:void 0,ee=gs(E),D=E?ee:t,O=jf(t),te=jf(m),ne=Eg()===`rtl`,re=x||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":ne?`left`:`right`,"inline-start":ne?`right`:`left`}[r],k=a===`center`?re:`${re}-${a}`,A=c,ie=+(r===`bottom`),j=+(r===`top`),ae=+(r===`right`),oe=+(r===`left`);typeof A==`number`?A={top:A+ie,right:A+oe,bottom:A+j,left:A+ae}:A&&={top:(A.top||0)+ie,right:(A.right||0)+oe,bottom:(A.bottom||0)+j,left:(A.left||0)+ae};let se={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:A},ce=P.useRef(null),M=jf(i),le=jf(o),ue=[nee(e=>{let t=kg(e,r,ne),n=typeof M.current==`function`?M.current(t):M.current,i=typeof le.current==`function`?le.current(t):le.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,ne,r])],N=w===`none`&&C!==`shift`,de=!N&&(l||g||C===`shift`),fe=C===`none`?null:aee({...se,padding:{top:A.top+1,right:A.right+1,bottom:A.bottom+1,left:A.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:T}),pe=N?null:ree(e=>{let t=Ol(e.elements.floating).documentElement;return{...se,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:de,limiter:l||g?void 0:iee(e=>{if(!ce.current)return{};let{width:t,height:n}=ce.current.getBoundingClientRect(),r=Tu(xu(e.placement)),i=r===`y`?t:n,a=r===`y`?A.left+A.right:A.top+A.bottom;return{offset:i/2+a/2}})}},[se,l,g,A,w]);C===`shift`||w===`shift`||a===`center`?ue.push(pe,fe):ue.push(fe,pe),ue.push(oee({...se,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!te.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=Go(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Oee(()=>({element:ce.current||Ol(ce.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=xu(a),l=Tu(c),u=ce.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(kg(e,r,ne)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},kee,v),bs(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let me=P.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=rh({rootContext:p,open:f?m:void 0,placement:k,middleware:ue,strategy:n,whileElementsMounted:f?void 0:(...e)=>gm(...e,me),nodeId:_,externalTree:b}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Dg,De=Ce?n:`fixed`,Oe=P.useMemo(()=>{let e=v?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[v,De,Te,_e,Ee,ve,we,Ce]),ke=P.useRef(null);bs(()=>{if(!m)return;let e=O.current,t=typeof e==`function`?e():e,n=(jg(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[m,he,D,O]),P.useEffect(()=>{if(!m)return;let e=O.current;typeof e!=`function`&&jg(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[m,he,D,O]),P.useEffect(()=>{if(f&&m&&ge.domReference&&ge.floating)return gm(ge.domReference,ge.floating,be,me)},[f,m,ge,be,me]);let Ae=xu(xe),je=Og(r,Ae,ne),Me=Su(xe)||`center`,Ne=!!ye.hide?.referenceHidden;bs(()=>{y&&m&&Ce&&S(Ae)},[y,m,Ce,Ae]);let F=P.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Pe=ye.arrow?.centerOffset!==0;return P.useMemo(()=>({positionerStyles:Oe,arrowStyles:F,arrowRef:ce,arrowUncentered:Pe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,F,ce,Pe,je,Me,Ae,Ne,he,Se,Ce,be])}function jg(e){return e!=null&&`current`in e}function Mg(e){return e===`starting`?Qf:Ja}function Ng(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Qa(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Mg(r),i],stateAttributesMapping:_f})}var jee=P.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ep,style:g,..._}=e,v=xg(),y=Cee(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),ee=Ag({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Aee:void 0}),D=Ng(e,P.useMemo(()=>({open:b,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,ee.side,ee.align,ee.anchorHidden,S,T]),{styles:ee.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,F.jsx)(wg.Provider,{value:ee,children:D})}),Mee={..._f,...Nd},Nee=P.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=xg(),{side:s,align:c}=Tg(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);Fd({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}});let m=o.useState(`disabled`),h=o.useState(`closeDelay`);return lee(p,{enabled:!m,closeDelay:h}),Qa(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,Mg(d),a],stateAttributesMapping:Mee})}),Pee=P.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=xg(),s=o.useState(`open`),c=o.useState(`instantType`),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=Tg();return Qa(`div`,e,{state:{open:s,side:u,align:d,uncentered:f,instant:c},ref:[t,l],props:[{style:p,"aria-hidden":!0},a],stateAttributesMapping:_f})}),Fee=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=P.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=P.useMemo(()=>({open:t,close:n}),[t,n]);return(0,F.jsx)(Sg.Provider,{value:i,children:(0,F.jsx)(Df,{delay:a,timeoutMs:r,children:e.children})})};function Iee(e){let t=(0,fa.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,F.jsx)(Fee,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Lee(e){let t=(0,fa.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(Iee,{children:(0,F.jsx)(yee,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Ree(e){let t=(0,fa.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(See,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function zee(e){let t=(0,fa.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=el(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,F.jsx)(Pee,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,F.jsxs)(Nee,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,F.jsx)(Tee,{children:(0,F.jsx)(jee,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Pg=window.matchMedia(`(max-width: 767px)`);function Bee(e){return Pg.addEventListener(`change`,e),()=>Pg.removeEventListener(`change`,e)}function Vee(){return Pg.matches}function Hee(){return(0,P.useSyncExternalStore)(Bee,Vee)}var Uee=`sidebar_state`,Wee=3600*24*7,Gee=`12rem`,Fg=`16rem`,Ig=`3rem`,Lg=`b`,Rg=P.createContext(null);function zg(){let e=P.useContext(Rg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Bg(e){let t=(0,fa.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=Hee(),[d,f]=P.useState(!1),[p,m]=P.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${Uee}=${t}; path=/; max-age=${Wee}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(Hg):_(Vg),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===Lg&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),P.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=el(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":Gee,"--sidebar-width-icon":Ig,...s},t[26]=s,t[27]=E);let ee=E,D;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==ee?(D=(0,F.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:ee,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=ee,t[32]=D):D=t[32];let O;return t[33]!==w||t[34]!==D?(O=(0,F.jsx)(Rg.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=O):O=t[35],O}function Vg(e){return!e}function Hg(e){return!e}function Ug(e){let t=(0,fa.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=zg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=el(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,F.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Fg},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsxs)(vg,{className:`sr-only`,children:[(0,F.jsx)(yg,{children:`Sidebar`}),(0,F.jsx)(hee,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,F.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,F.jsxs)(_g,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,F.jsx)(mg,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=el(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,F.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=el(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,F.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,F.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,F.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function Wg(e){let t=(0,fa.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=zg(),o;t[4]===n?o=t[5]:(o=el(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsx)(Fo,{}),l=(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,F.jsxs)(fl,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function Gg(e){let t=(0,fa.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=zg(),a;t[3]===n?a=t[4]:(a=el(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,F.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Kg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Jg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(af,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Yg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Xg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Zg(e){let t=(0,fa.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=io,r=`div`,i=ya({className:el(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function Qg(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function $g(e){let t=(0,fa.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=el(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var e_=lo(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function t_(e){let t=(0,fa.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=zg(),m=ya({className:el(e_({variant:u,size:d}),s)},c),h=o?Ree:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=io(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,F.jsx)(zee,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,F.jsxs)(Lee,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var n_;function V(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var r_=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},i_=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(n_=globalThis).__zod_globalConfig??(n_.__zod_globalConfig={});var a_=globalThis.__zod_globalConfig;function o_(e){return e&&Object.assign(a_,e),a_}function s_(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function c_(e,t){return typeof t==`bigint`?t.toString():t}function l_(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function u_(e){return e==null}function d_(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function f_(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function b_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var x_=l_(()=>{if(a_.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function S_(e){if(b_(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(b_(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function C_(e){return S_(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var w_=new Set([`string`,`number`,`symbol`]);function T_(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function E_(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function D_(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function O_(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var k_={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function A_(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return E_(e,g_(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return h_(this,`shape`,e),e},checks:[]}))}function j_(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return E_(e,g_(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return h_(this,`shape`,r),r},checks:[]}))}function M_(e,t){if(!S_(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return E_(e,g_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return h_(this,`shape`,n),n}}))}function N_(e,t){if(!S_(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return E_(e,g_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return h_(this,`shape`,n),n}}))}function P_(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return E_(e,g_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return h_(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function F_(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return E_(t,g_(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return h_(this,`shape`,i),i},checks:[]}))}function I_(e,t,n){return E_(t,g_(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return h_(this,`shape`,i),i}}))}function L_(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function B_(e){return typeof e==`string`?e:e?.message}function V_(e,t,n){let r=e.message?e.message:B_(e.inst?._zod.def?.error?.(e))??B_(t?.error?.(e))??B_(n.customError?.(e))??B_(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function H_(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function U_(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var W_=(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,c_,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},G_=V(`$ZodError`,W_),K_=V(`$ZodError`,W_,{Parent:Error});function q_(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function J_(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new r_;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>V_(e,a,o_())));throw y_(t,i?.callee),t}return o.value},X_=Y_(K_),Z_=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>V_(e,a,o_())));throw y_(t,i?.callee),t}return o.value},Q_=Z_(K_),$_=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new r_;return a.issues.length?{success:!1,error:new(e??G_)(a.issues.map(e=>V_(e,i,o_())))}:{success:!0,data:a.value}},ev=$_(K_),tv=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>V_(e,i,o_())))}:{success:!0,data:a.value}},nv=tv(K_),rv=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Y_(e)(t,n,i)},iv=e=>(t,n,r)=>Y_(e)(t,n,r),av=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Z_(e)(t,n,i)},ov=e=>async(t,n,r)=>Z_(e)(t,n,r),sv=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $_(e)(t,n,i)},cv=e=>(t,n,r)=>$_(e)(t,n,r),lv=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return tv(e)(t,n,i)},uv=e=>async(t,n,r)=>tv(e)(t,n,r),dv=/^[cC][0-9a-z]{6,}$/,fv=/^[0-9a-z]+$/,pv=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mv=/^[0-9a-vA-V]{20}$/,hv=/^[A-Za-z0-9]{27}$/,gv=/^[a-zA-Z0-9_-]{21}$/,_v=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vv=/^([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})$/,yv=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,bv=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xv=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Sv(){return new RegExp(xv,`u`)}var Cv=/^(?:(?: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])$/,wv=/^(([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}|:))$/,Tv=/^((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])$/,Ev=/^(([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])$/,Dv=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ov=/^[A-Za-z0-9_-]*$/,kv=/^https?$/,Av=/^\+[1-9]\d{6,14}$/,jv=`(?:(?:\\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])))`,Mv=RegExp(`^${jv}$`);function Nv(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Pv(e){return RegExp(`^${Nv(e)}$`)}function Fv(e){let t=Nv({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${jv}T(?:${r})$`)}var Iv=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Lv=/^-?\d+$/,Rv=/^-?\d+(?:\.\d+)?$/,zv=/^(?:true|false)$/i,Bv=/^[^A-Z]*$/,Vv=/^[^a-z]*$/,Hv=V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Uv={number:`number`,bigint:`bigint`,object:`date`},Wv=V(`$ZodCheckLessThan`,(e,t)=>{Hv.init(e,t);let n=Uv[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{Hv.init(e,t);let n=Uv[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Kv=V(`$ZodCheckMultipleOf`,(e,t)=>{Hv.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):f_(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})}}),qv=V(`$ZodCheckNumberFormat`,(e,t)=>{Hv.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=k_[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Lv)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Jv=V(`$ZodCheckMaxLength`,(e,t)=>{var n;Hv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u_(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=H_(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Yv=V(`$ZodCheckMinLength`,(e,t)=>{var n;Hv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u_(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=H_(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Xv=V(`$ZodCheckLengthEquals`,(e,t)=>{var n;Hv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u_(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=H_(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Zv=V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Hv.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Qv=V(`$ZodCheckRegex`,(e,t)=>{Zv.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})}}),$v=V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Bv,Zv.init(e,t)}),ey=V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Vv,Zv.init(e,t)}),ty=V(`$ZodCheckIncludes`,(e,t)=>{Hv.init(e,t);let n=T_(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ny=V(`$ZodCheckStartsWith`,(e,t)=>{Hv.init(e,t);let n=RegExp(`^${T_(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ry=V(`$ZodCheckEndsWith`,(e,t)=>{Hv.init(e,t);let n=RegExp(`.*${T_(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),iy=V(`$ZodCheckOverwrite`,(e,t)=>{Hv.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ay=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` +`))}},oy={major:4,minor:4,patch:3},sy=V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=oy;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=L_(e),i;for(let a of t){if(a._zod.def.when){if(R_(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new r_;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=L_(e,t))});else{if(e.issues.length===t)continue;r||=L_(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(L_(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new r_;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new r_;return o.then(e=>t(e,r,a))}return t(o,r,a)}}m_(e,`~standard`,()=>({validate:t=>{try{let n=ev(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return nv(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),cy=V(`$ZodString`,(e,t)=>{sy.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Iv(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}}),ly=V(`$ZodStringFormat`,(e,t)=>{Zv.init(e,t),cy.init(e,t)}),uy=V(`$ZodGUID`,(e,t)=>{t.pattern??=vv,ly.init(e,t)}),dy=V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=yv(e)}else t.pattern??=yv();ly.init(e,t)}),fy=V(`$ZodEmail`,(e,t)=>{t.pattern??=bv,ly.init(e,t)}),py=V(`$ZodURL`,(e,t)=>{ly.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===kv.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),my=V(`$ZodEmoji`,(e,t)=>{t.pattern??=Sv(),ly.init(e,t)}),hy=V(`$ZodNanoID`,(e,t)=>{t.pattern??=gv,ly.init(e,t)}),gy=V(`$ZodCUID`,(e,t)=>{t.pattern??=dv,ly.init(e,t)}),_y=V(`$ZodCUID2`,(e,t)=>{t.pattern??=fv,ly.init(e,t)}),vy=V(`$ZodULID`,(e,t)=>{t.pattern??=pv,ly.init(e,t)}),yy=V(`$ZodXID`,(e,t)=>{t.pattern??=mv,ly.init(e,t)}),by=V(`$ZodKSUID`,(e,t)=>{t.pattern??=hv,ly.init(e,t)}),xy=V(`$ZodISODateTime`,(e,t)=>{t.pattern??=Fv(t),ly.init(e,t)}),Sy=V(`$ZodISODate`,(e,t)=>{t.pattern??=Mv,ly.init(e,t)}),Cy=V(`$ZodISOTime`,(e,t)=>{t.pattern??=Pv(t),ly.init(e,t)}),wy=V(`$ZodISODuration`,(e,t)=>{t.pattern??=_v,ly.init(e,t)}),Ty=V(`$ZodIPv4`,(e,t)=>{t.pattern??=Cv,ly.init(e,t),e._zod.bag.format=`ipv4`}),Ey=V(`$ZodIPv6`,(e,t)=>{t.pattern??=wv,ly.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})}}}),Dy=V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Tv,ly.init(e,t)}),Oy=V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ev,ly.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function ky(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Ay=V(`$ZodBase64`,(e,t)=>{t.pattern??=Dv,ly.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{ky(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function jy(e){if(!Ov.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ky(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var My=V(`$ZodBase64URL`,(e,t)=>{t.pattern??=Ov,ly.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{jy(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ny=V(`$ZodE164`,(e,t)=>{t.pattern??=Av,ly.init(e,t)});function Py(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Fy=V(`$ZodJWT`,(e,t)=>{ly.init(e,t),e._zod.check=n=>{Py(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Iy=V(`$ZodNumber`,(e,t)=>{sy.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rv,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ly=V(`$ZodNumberFormat`,(e,t)=>{qv.init(e,t),Iy.init(e,t)}),Ry=V(`$ZodBoolean`,(e,t)=>{sy.init(e,t),e._zod.pattern=zv,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),zy=V(`$ZodUnknown`,(e,t)=>{sy.init(e,t),e._zod.parse=e=>e}),By=V(`$ZodNever`,(e,t)=>{sy.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Vy(e,t,n){e.issues.length&&t.issues.push(...z_(n,e.issues)),t.value[n]=e.value}var Kee=V(`$ZodArray`,(e,t)=>{sy.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eVy(t,n,e))):Vy(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Hy(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...z_(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Uy(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=O_(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Wy(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Hy(e,n,i,t,u,d))):Hy(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var qee=V(`$ZodObject`,(e,t)=>{if(sy.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=l_(()=>Uy(t));m_(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=b_,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Hy(n,t,e,s,r,i))):Hy(a,t,e,s,r,i)}return i?Wy(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Jee=V(`$ZodObjectJIT`,(e,t)=>{qee.init(e,t);let n=e._zod.parse,r=l_(()=>Uy(t)),i=e=>{let t=new ay([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=__(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=__(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` + if (${n}.issues.length) { + if (${o} in input) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):c?t.write(` + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):t.write(` + const ${n}_present = ${o} in input; + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + if (!${n}_present && !${n}.issues.length) { + payload.issues.push({ + code: "invalid_type", + expected: "nonoptional", + input: undefined, + path: [${o}] + }); + } + + if (${n}_present) { + if (${n}.value === undefined) { + newResult[${o}] = undefined; + } else { + newResult[${o}] = ${n}.value; + } + } + + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=b_,s=!a_.jitless,c=s&&x_.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Wy([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Gy(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!L_(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V_(e,r,o_())))}),t)}var Yee=V(`$ZodUnion`,(e,t)=>{sy.init(e,t),m_(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),m_(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),m_(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),m_(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>d_(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Gy(t,r,e,i)):Gy(o,r,e,i)}}),Xee=V(`$ZodIntersection`,(e,t)=>{sy.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>qy(e,t,n)):qy(e,i,a)}});function Ky(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(S_(e)&&S_(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ky(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),L_(e))return e;let o=Ky(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Zee=V(`$ZodRecord`,(e,t)=>{sy.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!S_(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>V_(e,r,o_())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...z_(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...z_(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Rv.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>V_(e,r,o_())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...z_(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...z_(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Qee=V(`$ZodEnum`,(e,t)=>{sy.init(e,t);let n=s_(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>w_.has(typeof e)).map(e=>typeof e==`string`?T_(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),$ee=V(`$ZodTransform`,(e,t)=>{sy.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new i_(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new r_;return n.value=i,n.fallback=!0,n}});function Jy(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Yy=V(`$ZodOptional`,(e,t)=>{sy.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,m_(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),m_(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${d_(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Jy(e,r)):Jy(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),ete=V(`$ZodExactOptional`,(e,t)=>{Yy.init(e,t),m_(e._zod,`values`,()=>t.innerType._zod.values),m_(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),tte=V(`$ZodNullable`,(e,t)=>{sy.init(e,t),m_(e._zod,`optin`,()=>t.innerType._zod.optin),m_(e._zod,`optout`,()=>t.innerType._zod.optout),m_(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${d_(e.source)}|null)$`):void 0}),m_(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),nte=V(`$ZodDefault`,(e,t)=>{sy.init(e,t),e._zod.optin=`optional`,m_(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Xy(e,t)):Xy(r,t)}});function Xy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var rte=V(`$ZodPrefault`,(e,t)=>{sy.init(e,t),e._zod.optin=`optional`,m_(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ite=V(`$ZodNonOptional`,(e,t)=>{sy.init(e,t),m_(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Zy(t,e)):Zy(i,e)}});function Zy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var ate=V(`$ZodCatch`,(e,t)=>{sy.init(e,t),e._zod.optin=`optional`,m_(e._zod,`optout`,()=>t.innerType._zod.optout),m_(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V_(e,n,o_()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V_(e,n,o_()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ote=V(`$ZodPipe`,(e,t)=>{sy.init(e,t),m_(e._zod,`values`,()=>t.in._zod.values),m_(e._zod,`optin`,()=>t.in._zod.optin),m_(e._zod,`optout`,()=>t.out._zod.optout),m_(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Qy(e,t.in,n)):Qy(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Qy(e,t.out,n)):Qy(r,t.out,n)}});function Qy(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var ste=V(`$ZodReadonly`,(e,t)=>{sy.init(e,t),m_(e._zod,`propValues`,()=>t.innerType._zod.propValues),m_(e._zod,`values`,()=>t.innerType._zod.values),m_(e._zod,`optin`,()=>t.innerType?._zod?.optin),m_(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then($y):$y(r)}});function $y(e){return e.value=Object.freeze(e.value),e}var cte=V(`$ZodCustom`,(e,t)=>{Hv.init(e,t),sy.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>eb(t,n,r,e));eb(i,n,r,e)}});function eb(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(U_(e))}}var tb,lte=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function ute(){return new lte}(tb=globalThis).__zod_globalRegistry??(tb.__zod_globalRegistry=ute());var nb=globalThis.__zod_globalRegistry;function dte(e,t){return new e({type:`string`,...D_(t)})}function fte(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...D_(t)})}function rb(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...D_(t)})}function pte(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...D_(t)})}function mte(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...D_(t)})}function hte(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...D_(t)})}function gte(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...D_(t)})}function _te(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...D_(t)})}function vte(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...D_(t)})}function yte(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...D_(t)})}function bte(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...D_(t)})}function xte(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...D_(t)})}function Ste(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...D_(t)})}function Cte(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...D_(t)})}function wte(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...D_(t)})}function Tte(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...D_(t)})}function Ete(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...D_(t)})}function Dte(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...D_(t)})}function Ote(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...D_(t)})}function kte(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...D_(t)})}function Ate(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...D_(t)})}function jte(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...D_(t)})}function Mte(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...D_(t)})}function Nte(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...D_(t)})}function Pte(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...D_(t)})}function Fte(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...D_(t)})}function Ite(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...D_(t)})}function Lte(e,t){return new e({type:`number`,checks:[],...D_(t)})}function Rte(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...D_(t)})}function zte(e,t){return new e({type:`boolean`,...D_(t)})}function Bte(e){return new e({type:`unknown`})}function Vte(e,t){return new e({type:`never`,...D_(t)})}function ib(e,t){return new Wv({check:`less_than`,...D_(t),value:e,inclusive:!1})}function ab(e,t){return new Wv({check:`less_than`,...D_(t),value:e,inclusive:!0})}function ob(e,t){return new Gv({check:`greater_than`,...D_(t),value:e,inclusive:!1})}function sb(e,t){return new Gv({check:`greater_than`,...D_(t),value:e,inclusive:!0})}function cb(e,t){return new Kv({check:`multiple_of`,...D_(t),value:e})}function lb(e,t){return new Jv({check:`max_length`,...D_(t),maximum:e})}function ub(e,t){return new Yv({check:`min_length`,...D_(t),minimum:e})}function db(e,t){return new Xv({check:`length_equals`,...D_(t),length:e})}function Hte(e,t){return new Qv({check:`string_format`,format:`regex`,...D_(t),pattern:e})}function Ute(e){return new $v({check:`string_format`,format:`lowercase`,...D_(e)})}function Wte(e){return new ey({check:`string_format`,format:`uppercase`,...D_(e)})}function Gte(e,t){return new ty({check:`string_format`,format:`includes`,...D_(t),includes:e})}function Kte(e,t){return new ny({check:`string_format`,format:`starts_with`,...D_(t),prefix:e})}function qte(e,t){return new ry({check:`string_format`,format:`ends_with`,...D_(t),suffix:e})}function fb(e){return new iy({check:`overwrite`,tx:e})}function Jte(e){return fb(t=>t.normalize(e))}function Yte(){return fb(e=>e.trim())}function Xte(){return fb(e=>e.toLowerCase())}function Zte(){return fb(e=>e.toUpperCase())}function Qte(){return fb(e=>v_(e))}function $te(e,t,n){return new e({type:`array`,element:t,...D_(n)})}function ene(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...D_(n)})}function tne(e,t){let n=nne(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(U_(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(U_(r))}},e(t.value,t)),t);return n}function nne(e,t){let n=new Hv({check:`custom`,...D_(t)});return n._zod.check=e,n}function pb(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??nb,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 mb(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,mb(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&_b(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function hb(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function gb(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vb(t,`input`,e.processors),output:vb(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function _b(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return _b(r.element,n);if(r.type===`set`)return _b(r.valueType,n);if(r.type===`lazy`)return _b(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 _b(r.innerType,n);if(r.type===`intersection`)return _b(r.left,n)||_b(r.right,n);if(r.type===`record`||r.type===`map`)return _b(r.keyType,n)||_b(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:_b(r.in,n)||_b(r.out,n);if(r.type===`object`){for(let e in r.shape)if(_b(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(_b(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(_b(e,n))return!0;return!!(r.rest&&_b(r.rest,n))}return!1}var rne=(e,t={})=>n=>{let r=pb({...n,processors:t});return mb(e,r),hb(r,e),gb(r,e)},vb=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=pb({...i??{},target:a,io:t,processors:n});return mb(e,o),hb(o,e),gb(o,e)},ine={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ane=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=ine[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},one=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},sne=(e,t,n,r)=>{n.type=`boolean`},cne=(e,t,n,r)=>{n.not={}},lne=(e,t,n,r)=>{let i=e._zod.def,a=s_(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},une=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},dne=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},fne=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=mb(a.element,t,{...r,path:[...r.path,`items`]})},pne=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=mb(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=mb(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},mne=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>mb(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},hne=(e,t,n,r)=>{let i=e._zod.def,a=mb(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=mb(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},gne=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=mb(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=mb(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=mb(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},_ne=(e,t,n,r)=>{let i=e._zod.def,a=mb(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},vne=(e,t,n,r)=>{let i=e._zod.def;mb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},yne=(e,t,n,r)=>{let i=e._zod.def;mb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},bne=(e,t,n,r)=>{let i=e._zod.def;mb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},xne=(e,t,n,r)=>{let i=e._zod.def;mb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Sne=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;mb(o,t,r);let s=t.seen.get(e);s.ref=o},Cne=(e,t,n,r)=>{let i=e._zod.def;mb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},yb=(e,t,n,r)=>{let i=e._zod.def;mb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},wne=V(`ZodISODateTime`,(e,t)=>{xy.init(e,t),Eb.init(e,t)});function Tne(e){return Nte(wne,e)}var Ene=V(`ZodISODate`,(e,t)=>{Sy.init(e,t),Eb.init(e,t)});function Dne(e){return Pte(Ene,e)}var One=V(`ZodISOTime`,(e,t)=>{Cy.init(e,t),Eb.init(e,t)});function kne(e){return Fte(One,e)}var Ane=V(`ZodISODuration`,(e,t)=>{wy.init(e,t),Eb.init(e,t)});function jne(e){return Ite(Ane,e)}var bb=V(`ZodError`,(e,t)=>{G_.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>J_(e,t)},flatten:{value:t=>q_(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,c_,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,c_,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Mne=Y_(bb),Nne=Z_(bb),Pne=$_(bb),Fne=tv(bb),Ine=rv(bb),Lne=iv(bb),Rne=av(bb),zne=ov(bb),Bne=sv(bb),Vne=cv(bb),Hne=lv(bb),Une=uv(bb),xb=new WeakMap;function Sb(e,t,n){let r=Object.getPrototypeOf(e),i=xb.get(r);if(i||(i=new Set,xb.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Cb=V(`ZodType`,(e,t)=>(sy.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vb(e,`input`),output:vb(e,`output`)}}),e.toJSONSchema=rne(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Mne(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Pne(e,t,n),e.parseAsync=async(t,n)=>Nne(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Fne(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Ine(e,t,n),e.decode=(t,n)=>Lne(e,t,n),e.encodeAsync=async(t,n)=>Rne(e,t,n),e.decodeAsync=async(t,n)=>zne(e,t,n),e.safeEncode=(t,n)=>Bne(e,t,n),e.safeDecode=(t,n)=>Vne(e,t,n),e.safeEncodeAsync=async(t,n)=>Hne(e,t,n),e.safeDecodeAsync=async(t,n)=>Une(e,t,n),Sb(e,`ZodType`,{check(...e){let t=this.def;return this.clone(g_(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return E_(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(sx(e,t))},superRefine(e,t){return this.check(cx(e,t))},overwrite(e){return this.check(fb(e))},optional(){return Ub(this)},exactOptional(){return Gb(this)},nullable(){return qb(this)},nullish(){return Ub(qb(this))},nonoptional(e){return $b(this,e)},array(){return Mb(this)},or(e){return vre([this,e])},and(e){return Fb(this,e)},transform(e){return rx(this,Vb(e))},default(e){return Yb(this,e)},prefault(e){return Zb(this,e)},catch(e){return tx(this,e)},pipe(e){return rx(this,e)},readonly(){return ax(this)},describe(e){let t=this.clone();return nb.add(t,{description:e}),t},meta(...e){if(e.length===0)return nb.get(this);let t=this.clone();return nb.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return nb.get(e)?.description},configurable:!0}),e)),wb=V(`_ZodString`,(e,t)=>{cy.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ane(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Sb(e,`_ZodString`,{regex(...e){return this.check(Hte(...e))},includes(...e){return this.check(Gte(...e))},startsWith(...e){return this.check(Kte(...e))},endsWith(...e){return this.check(qte(...e))},min(...e){return this.check(ub(...e))},max(...e){return this.check(lb(...e))},length(...e){return this.check(db(...e))},nonempty(...e){return this.check(ub(1,...e))},lowercase(e){return this.check(Ute(e))},uppercase(e){return this.check(Wte(e))},trim(){return this.check(Yte())},normalize(...e){return this.check(Jte(...e))},toLowerCase(){return this.check(Xte())},toUpperCase(){return this.check(Zte())},slugify(){return this.check(Qte())}})}),Wne=V(`ZodString`,(e,t)=>{cy.init(e,t),wb.init(e,t),e.email=t=>e.check(fte(Gne,t)),e.url=t=>e.check(_te(Kne,t)),e.jwt=t=>e.check(Mte(sre,t)),e.emoji=t=>e.check(vte(qne,t)),e.guid=t=>e.check(rb(Db,t)),e.uuid=t=>e.check(pte(Ob,t)),e.uuidv4=t=>e.check(mte(Ob,t)),e.uuidv6=t=>e.check(hte(Ob,t)),e.uuidv7=t=>e.check(gte(Ob,t)),e.nanoid=t=>e.check(yte(Jne,t)),e.guid=t=>e.check(rb(Db,t)),e.cuid=t=>e.check(bte(Yne,t)),e.cuid2=t=>e.check(xte(Xne,t)),e.ulid=t=>e.check(Ste(Zne,t)),e.base64=t=>e.check(kte(ire,t)),e.base64url=t=>e.check(Ate(are,t)),e.xid=t=>e.check(Cte(Qne,t)),e.ksuid=t=>e.check(wte($ne,t)),e.ipv4=t=>e.check(Tte(ere,t)),e.ipv6=t=>e.check(Ete(tre,t)),e.cidrv4=t=>e.check(Dte(nre,t)),e.cidrv6=t=>e.check(Ote(rre,t)),e.e164=t=>e.check(jte(ore,t)),e.datetime=t=>e.check(Tne(t)),e.date=t=>e.check(Dne(t)),e.time=t=>e.check(kne(t)),e.duration=t=>e.check(jne(t))});function Tb(e){return dte(Wne,e)}var Eb=V(`ZodStringFormat`,(e,t)=>{ly.init(e,t),wb.init(e,t)}),Gne=V(`ZodEmail`,(e,t)=>{fy.init(e,t),Eb.init(e,t)}),Db=V(`ZodGUID`,(e,t)=>{uy.init(e,t),Eb.init(e,t)}),Ob=V(`ZodUUID`,(e,t)=>{dy.init(e,t),Eb.init(e,t)}),Kne=V(`ZodURL`,(e,t)=>{py.init(e,t),Eb.init(e,t)}),qne=V(`ZodEmoji`,(e,t)=>{my.init(e,t),Eb.init(e,t)}),Jne=V(`ZodNanoID`,(e,t)=>{hy.init(e,t),Eb.init(e,t)}),Yne=V(`ZodCUID`,(e,t)=>{gy.init(e,t),Eb.init(e,t)}),Xne=V(`ZodCUID2`,(e,t)=>{_y.init(e,t),Eb.init(e,t)}),Zne=V(`ZodULID`,(e,t)=>{vy.init(e,t),Eb.init(e,t)}),Qne=V(`ZodXID`,(e,t)=>{yy.init(e,t),Eb.init(e,t)}),$ne=V(`ZodKSUID`,(e,t)=>{by.init(e,t),Eb.init(e,t)}),ere=V(`ZodIPv4`,(e,t)=>{Ty.init(e,t),Eb.init(e,t)}),tre=V(`ZodIPv6`,(e,t)=>{Ey.init(e,t),Eb.init(e,t)}),nre=V(`ZodCIDRv4`,(e,t)=>{Dy.init(e,t),Eb.init(e,t)}),rre=V(`ZodCIDRv6`,(e,t)=>{Oy.init(e,t),Eb.init(e,t)}),ire=V(`ZodBase64`,(e,t)=>{Ay.init(e,t),Eb.init(e,t)}),are=V(`ZodBase64URL`,(e,t)=>{My.init(e,t),Eb.init(e,t)}),ore=V(`ZodE164`,(e,t)=>{Ny.init(e,t),Eb.init(e,t)}),sre=V(`ZodJWT`,(e,t)=>{Fy.init(e,t),Eb.init(e,t)}),kb=V(`ZodNumber`,(e,t)=>{Iy.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>one(e,t,n,r),Sb(e,`ZodNumber`,{gt(e,t){return this.check(ob(e,t))},gte(e,t){return this.check(sb(e,t))},min(e,t){return this.check(sb(e,t))},lt(e,t){return this.check(ib(e,t))},lte(e,t){return this.check(ab(e,t))},max(e,t){return this.check(ab(e,t))},int(e){return this.check(Ab(e))},safe(e){return this.check(Ab(e))},positive(e){return this.check(ob(0,e))},nonnegative(e){return this.check(sb(0,e))},negative(e){return this.check(ib(0,e))},nonpositive(e){return this.check(ab(0,e))},multipleOf(e,t){return this.check(cb(e,t))},step(e,t){return this.check(cb(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function cre(e){return Lte(kb,e)}var lre=V(`ZodNumberFormat`,(e,t)=>{Ly.init(e,t),kb.init(e,t)});function Ab(e){return Rte(lre,e)}var ure=V(`ZodBoolean`,(e,t)=>{Ry.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sne(e,t,n,r)});function dre(e){return zte(ure,e)}var fre=V(`ZodUnknown`,(e,t)=>{zy.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function jb(){return Bte(fre)}var pre=V(`ZodNever`,(e,t)=>{By.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cne(e,t,n,r)});function mre(e){return Vte(pre,e)}var hre=V(`ZodArray`,(e,t)=>{Kee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fne(e,t,n,r),e.element=t.element,Sb(e,`ZodArray`,{min(e,t){return this.check(ub(e,t))},nonempty(e){return this.check(ub(1,e))},max(e,t){return this.check(lb(e,t))},length(e,t){return this.check(db(e,t))},unwrap(){return this.element}})});function Mb(e,t){return $te(hre,e,t)}var gre=V(`ZodObject`,(e,t)=>{Jee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pne(e,t,n,r),m_(e,`shape`,()=>t.shape),Sb(e,`ZodObject`,{keyof(){return zb(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:jb()})},loose(){return this.clone({...this._zod.def,catchall:jb()})},strict(){return this.clone({...this._zod.def,catchall:mre()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return M_(this,e)},safeExtend(e){return N_(this,e)},merge(e){return P_(this,e)},pick(e){return A_(this,e)},omit(e){return j_(this,e)},partial(...e){return F_(Hb,this,e[0])},required(...e){return I_(Qb,this,e[0])}})});function Nb(e,t){return new gre({type:`object`,shape:e??{},...D_(t)})}var _re=V(`ZodUnion`,(e,t)=>{Yee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mne(e,t,n,r),e.options=t.options});function vre(e,t){return new _re({type:`union`,options:e,...D_(t)})}var Pb=V(`ZodIntersection`,(e,t)=>{Xee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hne(e,t,n,r)});function Fb(e,t){return new Pb({type:`intersection`,left:e,right:t})}var Ib=V(`ZodRecord`,(e,t)=>{Zee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gne(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Lb(e,t,n){return!t||!t._zod?new Ib({type:`record`,keyType:Tb(),valueType:e,...D_(t)}):new Ib({type:`record`,keyType:e,valueType:t,...D_(n)})}var Rb=V(`ZodEnum`,(e,t)=>{Qee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lne(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Rb({...t,checks:[],...D_(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Rb({...t,checks:[],...D_(r),entries:i})}});function zb(e,t){return new Rb({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...D_(t)})}var Bb=V(`ZodTransform`,(e,t)=>{$ee.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dne(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new i_(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(U_(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(U_(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Vb(e){return new Bb({type:`transform`,transform:e})}var Hb=V(`ZodOptional`,(e,t)=>{Yy.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yb(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ub(e){return new Hb({type:`optional`,innerType:e})}var Wb=V(`ZodExactOptional`,(e,t)=>{ete.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yb(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gb(e){return new Wb({type:`optional`,innerType:e})}var Kb=V(`ZodNullable`,(e,t)=>{tte.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_ne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qb(e){return new Kb({type:`nullable`,innerType:e})}var Jb=V(`ZodDefault`,(e,t)=>{nte.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Yb(e,t){return new Jb({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():C_(t)}})}var Xb=V(`ZodPrefault`,(e,t)=>{rte.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zb(e,t){return new Xb({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():C_(t)}})}var Qb=V(`ZodNonOptional`,(e,t)=>{ite.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $b(e,t){return new Qb({type:`nonoptional`,innerType:e,...D_(t)})}var ex=V(`ZodCatch`,(e,t)=>{ate.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function tx(e,t){return new ex({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var nx=V(`ZodPipe`,(e,t)=>{ote.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sne(e,t,n,r),e.in=t.in,e.out=t.out});function rx(e,t){return new nx({type:`pipe`,in:e,out:t})}var ix=V(`ZodReadonly`,(e,t)=>{ste.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ax(e){return new ix({type:`readonly`,innerType:e})}var ox=V(`ZodCustom`,(e,t)=>{cte.init(e,t),Cb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>une(e,t,n,r)});function sx(e,t={}){return ene(ox,e,t)}function cx(e,t){return tne(e,t)}var lx=`spinifex:v1:aws-credentials`,ux=Nb({accessKeyId:Tb().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Tb().min(1,`Secret Access Key is required`)}),dx;function fx(){if(dx!==void 0)return dx;try{let e=localStorage.getItem(lx);if(!e)return dx=null,null;let t=JSON.parse(e),n=ux.safeParse(t);return dx=n.success?n.data:null,dx}catch{return dx=null,null}}function px(e){try{localStorage.setItem(lx,JSON.stringify(e)),dx=e}catch{dx=e}}function mx(){try{localStorage.removeItem(lx)}catch{}dx=null}var hx=e=>new TextEncoder().encode(e),gx=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:hx;function _x(e){return e instanceof Uint8Array?e:typeof e==`string`?gx(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function vx(e){return typeof e==`string`?e.length===0:e.byteLength===0}function yx(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function bx(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var Ax=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]),jx=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Mx=2**53-1,Nx=function(){function e(){this.state=Int32Array.from(jx),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Mx)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Ax[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Px=function(){function e(e){this.secret=e,this.hash=new Nx,this.reset()}return e.prototype.update=function(e){if(!(vx(e)||this.error))try{this.hash.update(_x(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Dx(this,void 0,void 0,function(){return Ox(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Nx,this.secret){this.outer=new Nx;var e=Fx(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Nx;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Ix=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Lx(e){if(Rx(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return zx(t)}return!1}function Rx(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function zx(e){return e&&Ix.every(function(t){return typeof e[t]==`function`})}var Bx=function(){function e(e){Lx(Tx())?this.hash=new Ex(e):this.hash=new Px(e)}return e.prototype.update=function(e,t){this.hash.update(_x(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),Vx=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Hx=e=>({httpHandler:e.httpHandler()}),Ux;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Ux||={});var Wx;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Wx||={});var Gx=`__smithy_context`,Kx=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=qx(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function qx(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Jx=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},Yx={},Xx={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Yx[e]=t,Xx[t]=e}function Zx(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;nnew TextEncoder().encode(e),eS=e=>typeof e==`string`?$x(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),tS=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)},nS=`X-Amz-Algorithm`,rS=`X-Amz-Credential`,iS=`X-Amz-Date`,aS=`X-Amz-SignedHeaders`,oS=`X-Amz-Expires`,sS=`X-Amz-Signature`,cS=`X-Amz-Security-Token`,lS=`authorization`,uS=iS.toLowerCase(),dS=[lS,uS,`date`];sS.toLowerCase();var fS=`x-amz-content-sha256`,pS=cS.toLowerCase(),mS={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},hS=/^proxy-/,gS=/^sec-/,_S=`AWS4-HMAC-SHA256`,vS=`AWS4-HMAC-SHA256-PAYLOAD`,yS=`UNSIGNED-PAYLOAD`,bS=`aws4_request`,xS={},SS=[],CS=(e,t,n)=>`${e}/${t}/${n}/${bS}`,wS=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${Qx(await TS(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in xS)return xS[a];for(SS.push(a);SS.length>50;)delete xS[SS.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,bS])o=await TS(e,o,t);return xS[a]=o},TS=(e,t,n)=>{let r=new e(t);return r.update(eS(n)),r.digest()},ES=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in mS||t?.has(a)||hS.test(a)||gS.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},DS=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,OS=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||DS(t)){let e=new n;return e.update(eS(t)),Qx(await e.digest())}return yS},kS=class{format(e){let t=[];for(let n of Object.keys(e)){let r=$x(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=$x(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(MS.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!jS.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Zx(e.value.replace(/\-/g,``)),1),u}}},AS;(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`})(AS||={});var jS=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,MS=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&NS(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&NS(e),parseInt(Qx(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function NS(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var PS=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},FS=(e,t={})=>{let{headers:n,query:r={}}=Kx.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},IS=e=>{e=Kx.clone(e);for(let t of Object.keys(e.headers))dS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},LS=e=>e.__smithy_context||={},RS=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},zS=e=>encodeURIComponent(e).replace(/[!'()*]/g,BS),BS=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,VS=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=zS(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${zS(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${zS(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},HS=e=>US(e).toISOString().replace(/\.\d{3}Z$/,`Z`),US=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,WS=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=RS(n),this.credentialProvider=RS(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +${this.getCanonicalPath(e)} +${VS(e)} +${r.map(e=>`${e}:${t[e]}`).join(` +`)} + +${r.join(`;`)} +${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(eS(n)),`${r} +${e} +${t} +${Qx(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return zS(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=HS(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},GS=class extends WS{headerFormatter=new kS;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=CS(p,d,l??this.service),h=FS(IS(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[cS]=u.sessionToken),h.query[nS]=_S,h.query[rS]=`${u.accessKeyId}/${m}`,h.query[iS]=f,h.query[oS]=r.toString(10);let g=ES(h,i,o);return h.query[aS]=this.getCanonicalHeaderList(g),h.query[sS]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await OS(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=CS(c,s,a??this.service),d=await OS({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[vS,l,u,r,Qx(await f.digest()),d].join(` +`);return this.signString(p,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(eS(e)),Qx(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=IS(e),{longDate:l,shortDate:u}=this.formatDate(t),d=CS(u,s,a??this.service);c.headers[uS]=l,o.sessionToken&&(c.headers[pS]=o.sessionToken);let f=await OS(c,this.sha256);!PS(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[fS]=f);let p=ES(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[lS]=`${_S} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,_S),a=new this.sha256(await n);return a.update(eS(i)),Qx(await a.digest())}getSigningKey(e,t,n,r){return wS(this.sha256,e,n,t,r||this.service)}},KS={SignatureV4a:null},qS=`ap-southeast-2`,JS=9999;async function YS({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new Kx({method:`POST`,protocol:r,hostname:`localhost`,port:JS,path:`/`,headers:{host:`localhost:${JS}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new GS({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey},region:qS,service:n,sha256:Bx}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``);throw Error(`${e} failed: ${l.status}${t?` - ${t}`:``}`)}return await l.json()}var XS=`000000000001`,ZS=(0,P.createContext)(void 0);function QS({children:e}){let[t,n]=(0,P.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,P.useEffect)(()=>{async function e(){let e=fx();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await YS({action:`GetCallerIdentity`,credentials:e}),r=t.account_id===XS,i=null;if(r)try{i=await YS({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:r,accountId:t.account_id,userName:t.user_name,version:i,license:i?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,F.jsx)(ZS,{value:t,children:e})}function $S(){let e=(0,P.useContext)(ZS);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}function eC(){let e=(0,fa.c)(8),{theme:t,setTheme:n}=ga(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(zo,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,F.jsx)(No,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,F.jsxs)(fl,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function tC(){let e=(0,fa.c)(7),{isAdmin:t,license:n}=$S(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=el(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,F.jsx)(Wg,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,F.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:el(dl({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,F.jsx)(eC,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,F.jsxs)(`header`,{className:i,children:[a,(0,F.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function nC(){let e=(0,fa.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,F.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,F.jsx)(Oi,{to:`/`,children:(0,F.jsx)(fl,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function rC(e){return e}var iC=e=>t=>async n=>{if(!Kx.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},aC={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},oC=e=>({applyToStack:t=>{t.add(iC(e),aC)}}),sC=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},cC={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},lC=e=>({applyToStack:e=>{e.add(sC(),cC)}}),uC={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`},dC=()=>e=>async t=>e(t),fC=e=>({applyToStack:e=>{e.add(dC(),uC)}}),pC=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function mC(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var hC=(e,t)=>(n,r)=>async i=>{let a=pC(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=mC(e.httpAuthSchemes),s=LS(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)},gC={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},_C=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(hC(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),gC)}}),vC=e=>e=>{throw e},yC=(e,t)=>{},bC=e=>(e,t)=>async n=>{if(!Kx.isInstance(n.request))return e(n);let r=LS(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||vC)(i));return(o.successHandler||yC)(s.response,i),s},xC={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},SC=e=>({applyToStack:t=>{t.addRelativeTo(bC(e),xC)}}),CC=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},wC=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,TC=Object.entries(wC).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),EC=wC.split(``),DC=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)};function OC(e){let t;t=typeof e==`string`?$x(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}var kC=class e extends Uint8Array{static fromString(t,n=`utf-8`){if(typeof t==`string`)return n===`base64`?e.mutate(DC(t)):e.mutate($x(t));throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(e=`utf-8`){return e===`base64`?OC(this):tS(this)}},AC=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),jC=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r +`),s){let t=n(await c);e.enqueue(`${a}:${t}\r\n`),e.enqueue(`\r +`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})};function MC(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=zS(n),Array.isArray(r))for(let e=0,i=r.length;e{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var FC={supported:void 0},IC=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),FC.supported===void 0&&(FC.supported=typeof Request<`u`&&`keepalive`in NC(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=LC(t);return Promise.reject(e)}let o=e.path,s=MC(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),FC.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=NC(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Jx({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Jx({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),PC(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(LC(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function LC(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var RC=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?zC(e):new Uint8Array(await e.arrayBuffer()):BC(e);async function zC(e){let t=DC(await VC(e));return new Uint8Array(t)}async function BC(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function VC(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var HC=`The stream has already been transformed.`,UC=e=>{if(!WC(e)&&!AC(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=!1,n=async()=>{if(t)throw Error(HC);return t=!0,await RC(e)},r=e=>{if(typeof e.stream!=`function`)throw 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 e.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{let t=await n();if(e===`base64`)return OC(t);if(e===`hex`)return Qx(t);if(e===void 0||e===`utf8`||e===`utf-8`)return tS(t);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(t);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(t)throw Error(HC);if(t=!0,WC(e))return r(e);if(AC(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},WC=e=>typeof Blob==`function`&&e instanceof Blob,GC=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return kC.mutate(e);if(!e)return kC.mutate(new Uint8Array);let n=t.streamCollector(e);return kC.mutate(await n)};function KC(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var qC=e=>typeof e==`function`?e():e,JC=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),YC=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=LS(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(JC(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,`$response`,{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + `+t}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Jx.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:XC(/^x-[\w-]+-request-?id$/,n),extendedRequestId:XC(/^x-[\w-]+-id-2$/,n),cfId:XC(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},XC=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];function ZC(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var QC=e=>{if(typeof e==`string`)return QC(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=ZC(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},$C=e=>{if(typeof e==`object`){if(`url`in e){let t=QC(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return QC(e)},ew=e=>(t,n)=>async r=>{let{operationSchema:i}=LS(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>$C(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(JC(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},tw={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},nw={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function rw(e){return{applyToStack:t=>{t.add(ew(e),nw),t.add(YC(e),tw),e.protocol.setSerdeContext(e)}}}var iw=[];function aw(e){if(typeof e==`object`)return e;if(e|=0,iw[e])return iw[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return iw[e]=t}var ow={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},sw=[],cw={},lw=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;dw(i);)r.push(i[1]),i=i[0],a=qC(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,aw(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=qC(a),fw(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(sw[t])return sw[t]}else if(typeof t==`string`){if(cw[t])return cw[t]}else if(n&&t[ow.ns])return t[ow.ns];let r=qC(t);if(r instanceof e)return r;if(dw(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),aw(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[ow.ns]=i:typeof r==`string`?cw[r]=i:typeof r==`number`?sw[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return aw(this.memberTraits)}getOwnTraits(){return aw(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return uw([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return uw([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return uw(dw(r)?r:[r,0],e)}if(this.isDocumentSchema())return uw([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[ow.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,fw=e=>Array.isArray(e)&&e.length>=5,pw=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},mw=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Ow.warn(Dw(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},hw=Math.ceil(2**127*(2-2**-23)),gw=e=>{let t=mw(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>hw)throw TypeError(`Expected 32-bit float, got ${e}`);return t},_w=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},vw=e=>bw(e,16),yw=e=>bw(e,8),bw=(e,t)=>{let n=_w(e);if(n!==void 0&&xw(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},xw=(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]}},Sw=e=>gw(typeof e==`string`?ww(e):e),Cw=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ww=e=>{let t=e.match(Cw);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},Tw=e=>vw(typeof e==`string`?ww(e):e),Ew=e=>yw(typeof e==`string`?ww(e):e),Dw=e=>String(TypeError(e).stack||e).split(` +`).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` +`),Ow={warn:console.warn},kw=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Aw=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function jw(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${kw[r]}, ${c} ${Aw[n]} ${t} ${l}:${u}:${d} GMT`}var Mw=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$/),Nw=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$/),Pw=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})$/),Fw=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=Mw.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return Iw(Tw(Kw(i)),Bw(r),Ww(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=Nw.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return zw(Iw(Lw(i),Bw(r),Ww(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=Pw.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return Iw(Tw(Kw(c)),Bw(n),Ww(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},Iw=(e,t,n,r)=>{let i=t-1;return Hw(e,i,n),new Date(Date.UTC(e,i,n,Ww(r.hours,`hour`,0,23),Ww(r.minutes,`minute`,0,59),Ww(r.seconds,`seconds`,0,60),Gw(r.fractionalMilliseconds)))},Lw=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+Tw(Kw(e));return ne.getTime()-new Date().getTime()>Rw?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Bw=e=>{let t=Aw.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},Vw=[31,28,31,30,31,30,31,31,30,31,30,31],Hw=(e,t,n)=>{let r=Vw[t];if(t===1&&Uw(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${Aw[t]} in ${e}: ${n}`)},Uw=e=>e%4==0&&(e%100!=0||e%400==0),Ww=(e,t,n,r)=>{let i=Ew(Kw(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Gw=e=>e==null?0:Sw(`0.`+e)*1e3,Kw=e=>{let t=0;for(;tt.toString(16).padStart(2,`0`)),Yw=()=>{if(qw)return qw();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Jw[e[0]]+Jw[e[1]]+Jw[e[2]]+Jw[e[3]]+`-`+Jw[e[4]]+Jw[e[5]]+`-`+Jw[e[6]]+Jw[e[7]]+`-`+Jw[e[8]]+Jw[e[9]]+`-`+Jw[e[10]]+Jw[e[11]]+Jw[e[12]]+Jw[e[13]]+Jw[e[14]]+Jw[e[15]]},Xw=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};Xw.from=e=>e&&typeof e==`object`&&(e instanceof Xw||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?Xw(String(e)):Xw(JSON.stringify(e)),Xw.fromObject=Xw.from;function Zw(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var Qw=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,$w=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,eT=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,tT=`(\\d?\\d)`,nT=`(\\d{4})`,rT=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),iT=RegExp(`^${Qw}, ${tT} ${$w} ${nT} ${eT} GMT$`),aT=RegExp(`^${Qw}, ${tT}-${$w}-(\\d\\d) ${eT} GMT$`),oT=RegExp(`^${Qw} ${$w} ( [1-9]|\\d\\d) ${eT} ${nT}$`),sT=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],cT=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 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 TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},lT=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=rT.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;dT(r,1,12),dT(i,1,31),dT(a,0,23),dT(o,0,59),dT(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},uT=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=iT.exec(e))?[,t,n,r,i,a,o,s]=c:(c=aT.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=oT.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),sT.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);dT(t,1,31),dT(i,0,23),dT(a,0,59),dT(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)};function dT(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}function fT(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})},mT=/^-?\d*(\.\d+)?$/,hT=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!mT.test(e))throw 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;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&mT.test(n.string)}},gT=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},_T=`modulepreload`,vT=function(e){return`/`+e},yT={},bT=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=vT(t,n),t in yT)return;yT[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:_T,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},xT=class extends gT{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=pw.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return Kx}getResponseType(){return Jx}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=lw.of(t.input),i=aw(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await bT(async()=>{let{EventStreamSerde:e}=await import(`./event-streams.js`);return{EventStreamSerde:e}},[]);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},ST=class extends xT{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=lw.of(e?.input),l=[],u=[],d=!1,f,p=new Kx({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(p,s),this.setHostPrefix(p,e,r);let t=aw(e.traits);if(t.http){p.method=t.http[0];let[e,n]=t.http[1].split(`?`);p.path==`/`?p.path=e:p.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(p.path.includes(`{${e}+}`)||p.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(f=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):f=s:(i.write(t,s),f=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();p.path.includes(`{${e}+}`)?p.path=p.path.replace(`{${e}+}`,n.split(`/`).map(KC).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,KC(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(d=!0,l.push(e),u.push(t))}if(d&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,u,void 0];n?a[6]=n:a.pop(),i.write(a,r),f=i.flush()}return p.headers=o,p.query=a,p.body=f,p}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=lw.of(e.output),a={};if(n.statusCode>=300){let i=await GC(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await GC(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await GC(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=lw.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=UC(n.body);else if(n.body){let i=await GC(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?fT(o,`,`,2):pT(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},CT=class extends xT{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=lw.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new Kx({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=lw.of(e.output),a={};if(n.statusCode>=300){let i=await GC(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await GC(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function wT(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var TT=class extends gT{settings;constructor(e){super(),this.settings=e}read(e,t){let n=lw.of(e);if(n.isListSchema())return pT(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??DC)(t);if(n.isTimestampSchema())switch(wT(n,this.settings)){case 5:return lT(t);case 6:return uT(t);case 7:return cT(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=Xw.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new hT(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??tS)((this.serdeContext?.base64Decoder??DC)(e))}},ET=class extends gT{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new TT(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=lw.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??tS;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??$x;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},DT=class extends gT{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=lw.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(wT(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=jw(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??OC)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:Zw(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=Xw.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??OC)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Yw():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},OT=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new DT(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=lw.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function kT(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var AT=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},jT=(e=>function(t){return MT(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,NT=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function PT(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function FT(e){let t=CC(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!PT(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var IT=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},LT=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},RT=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},zT=`endpoints`;function BT(e){return typeof e!=`object`||!e?e:`ref`in e?`$${BT(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(BT).join(`, `)})`:JSON.stringify(e,null,2)}var VT={},HT=(e,t)=>e===t;function UT(...e){for(let t of e)if(t!=null)return t}var WT=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new RT(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new RT(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},GT=(e,t)=>WT(t).reduce((n,r)=>{if(typeof n!=`object`)throw new RT(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),KT=e=>e!=null,qT=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),JT=(e,t=!1)=>{if(!t)return qT.test(e);let n=e.split(`.`);for(let e of n)if(!JT(e))return!1;return!0};function YT(e,t,n){return e?t:n}var XT=e=>!e,ZT=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}$`),QT=e=>ZT.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),$T={[Ux.HTTP]:80,[Ux.HTTPS]:443},eE=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Ux).includes(c))return null;let l=QT(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${$T[c]}`)||typeof e==`string`&&e.includes(`${r}:${$T[c]}`)?`:${$T[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function tE(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var nE={booleanEquals:HT,coalesce:UT,getAttr:GT,isSet:KT,isValidHostLabel:JT,ite:YT,not:XT,parseURL:eE,split:tE,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},rE=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],aE=(e,t,n)=>{if(typeof e==`string`)return rE(e,n);if(e.fn)return sE.callFunction(e,n);if(e.ref)return iE(e,n);throw new RT(`'${t}': ${String(e)} is not a string, function or reference.`)},oE=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new RT(`'${n}' is already defined in Reference Record.`);let r=oE(e,t);t.logger?.debug?.(`${zT} evaluateCondition: ${BT(e)} = ${BT(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},lE=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=aE(e,`Header value entry`,t);if(typeof r!=`string`)throw new RT(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),uE=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=fE.getEndpointProperty(r,t),e),{}),dE=(e,t)=>{if(Array.isArray(e))return e.map(e=>dE(e,t));switch(typeof e){case`string`:return rE(e,t);case`object`:if(e===null)throw new RT(`Unexpected endpoint property: ${e}`);return fE.getEndpointProperties(e,t);case`boolean`:return e;default:throw new RT(`Unexpected endpoint property type: ${typeof e}`)}},fE={getEndpointProperty:dE,getEndpointProperties:uE},pE=(e,t)=>{let n=aE(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new RT(`Endpoint URL must be a string, got ${typeof n}`)},mE=1e8,hE=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=mE){let e=i[o-mE];if(e[0]===-1){let[,t]=e;throw new RT(aE(t,`Error`,c))}let[t,n,r]=e;return{url:pE(t,c),properties:uE(n,c),headers:lE(r??{},c)}}throw new RT(`No matching endpoint.`)},gE=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!gE(t))return!1;return!0}return!(!JT(e)||e.length<3||e.length>63||e!==e.toLowerCase()||QT(e))},_E=`:`,vE=`/`,yE=e=>{let t=e.split(_E);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(_E)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(vE)).flat()}},bE={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},xE=``,SE=e=>{let{partitions:t}=bE;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},CE=()=>xE,wE={isVirtualHostableS3Bucket:gE,parseArn:yE,partition:SE};VT.aws=wE;function TE(e,t,n){return e.$source||={},e.$source[t]=n,e}var EE;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(EE||={});var DE=EE.STANDARD,OE=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],kE=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],AE=[500,502,503,504],jE=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],ME=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],NE=e=>e?.$retryable!==void 0,PE=e=>e.$metadata?.clockSkewCorrected,FE=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},IE=e=>e.$metadata?.httpStatusCode===429||OE.includes(e.name)||e.$retryable?.throttling==1,LE=(e,t=0)=>NE(e)||PE(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||kE.includes(e.name)||jE.includes(e?.code||``)||ME.includes(e?.code||``)||AE.includes(e.$metadata?.httpStatusCode||0)||FE(e)||zE(e)||e.cause!==void 0&&t<=10&&LE(e.cause,t+1),RE=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!LE(e)}return!1};function zE(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var BE=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||IE(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},VE=20*1e3,HE=`amz-sdk-invocation-id`,UE=`amz-sdk-request`,WE=class e{static v2026=typeof process<`u`&&{}?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},GE=class{x=WE.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,VE);return Math.floor(t)}setDelayBase(e){this.x=e}},KE=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(VE,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},qE={incompatible:1,attempts:2,capacity:3},JE=class{mode=EE.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=WE.delay(),this.retryBackoffStrategy??=new GE}async acquireInitialRetryToken(e){return new KE(WE.delay(),0,void 0,WE.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?WE.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new KE(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:WE.v2026&&r===qE.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:qE.incompatible,a=r=this.getCapacityCost(t.errorType)?0:qE.capacity;return i||a||o}getCapacityCost(e){return e===WE.modifiedCostType()?WE.throttlingCost():WE.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},YE=class{mode=EE.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new BE,this.standardRetryStrategy=t?new JE({maxAttempts:typeof e==`number`?e:3,...t}):new JE(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};WE.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function XE(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}var ZE=/\d{12}\.ddb/;async function QE(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&XE(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case EE.ADAPTIVE:XE(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case EE.STANDARD:XE(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(ZE)&&XE(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:XE(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:XE(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:XE(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&XE(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))XE(e,n,r)}}var $E=`user-agent`,eD=`x-amz-user-agent`,tD=/[^!$%&'*+\-.^_`|~\w]/g,nD=/[^!$%&'*+\-.^_`|~\w#]/g,rD=1024;function iD(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=rD){t.length?t+=`,`+r:t+=r;continue}break}return t}var aD=e=>(t,n)=>async r=>{let{request:i}=r;if(!Kx.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(oD)||[],s=(await e.defaultUserAgentProvider()).map(oD);await QE(n,e,r);let c=n;s.push(`m/${iD(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(oD)||[],u=await e.userAgentAppId();u&&s.push(oD([`app`,`${u}`]));let d=CE(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[eD]=f:(p&&(a[eD]=a[`x-amz-user-agent`]?`${a[$E]} ${p}`:p),a[$E]=f),t({...r,request:i})},oD=e=>{let t=e[0].split(`/`).map(e=>e.replace(tD,`-`)).join(`/`),n=e[1]?.replace(nD,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},yre={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},sD=e=>({applyToStack:t=>{t.add(aD(e),yre)}}),cD=new Set,bre=(e,t=JT)=>{if(!cD.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else cD.add(e)},lD=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),xre=e=>lD(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,uD=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=xre(typeof t==`function`?await t():t);return bre(e),e},useFipsEndpoint:async()=>lD(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},dD=`content-length`;function Sre(e){return t=>async n=>{let r=n.request;if(Kx.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(dD)===-1)try{let n=e(t);r.headers={...r.headers,[dD]:String(n)}}catch{}}return t({...n,request:r})}}var Cre={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},fD=e=>({applyToStack:t=>{t.add(Sre(e.bodyLengthChecker),Cre)}}),wre=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),kre(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Ore(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},Tre=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ere=/(\d+\.){3}\d+/,Dre=/\.\./,Ore=e=>Tre.test(e)&&!Ere.test(e)&&!Dre.test(e),kre=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},Are=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},pD=async e=>void 0,mD=e=>{if(typeof e==`object`){if(`url`in e){let t=QC(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(`, `)}return t}return e}return QC(e)},hD=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await pD(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(mD(e)),n.isCustomEndpoint=!0)}let i=await gD(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let a=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let e=await n.endpoint();if(e?.headers){a.headers??={};for(let[t,n]of Object.entries(e.headers))a.headers[t]=Array.isArray(n)?n:[n]}}return a},gD=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await Are(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await wre(r),r},jre=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&kT(r,`ENDPOINT_OVERRIDE`,`N`);let a=await hD(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a,r.authSchemes=a.properties?.authSchemes;let o=r.authSchemes?.[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let e=LS(r)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})},Mre={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name},_D=(e,t)=>({applyToStack:n=>{n.addRelativeTo(jre({config:e,instructions:t}),Mre)}}),vD=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=Object.assign(e,{endpoint:n==null?void 0:async()=>mD(await RS(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:RS(r??!1),useFipsEndpoint:RS(i??!1)}),o;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!o&&(o=pD(e.serviceId)),o),a},Nre=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`),yD=e=>{let{retryStrategy:t,retryMode:n}=e,r=RS(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await RS(n)()===EE.ADAPTIVE?new YE(r):new JE(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},bD=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},xD=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,SD=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>CD[t.step]-CD[e.step]||wD[t.priority||`normal`]-wD[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=bD(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of bD(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of bD(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of bD(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${xD(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=bD(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${xD(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${xD(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${xD(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=bD(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${xD(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${xD(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${xD(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(SD()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=bD(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(SD());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return xD(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},CD={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},wD={high:3,normal:2,low:1},TD=class{config;middlewareStack=SD();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},ED=`***SensitiveInformation***`;function DD(e,t){if(t==null)return t;let n=lw.of(e);if(n.getMergedTraits().sensitive)return ED;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return ED}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return ED}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=DD(i,e[t]));return r}return t}var OD=class{middlewareStack=SD();schema;static classBuilder(){return new Pre}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Gx]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},Pre=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends OD{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?DD.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?DD.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},kD=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},AD=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),jD=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{}}},MD=Object.values(Wx),Fre=e=>{let t=[];for(let n in Wx){let r=Wx[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();MD.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},Ire=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();MD.includes(n)&&(t[n]=e.checksumConstructor())}),t},Lre=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),Rre=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},ND=e=>Object.assign(Fre(e),Lre(e)),PD=e=>Object.assign(Ire(e),Rre(e)),FD=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=FD(e[n]));return e},ID=class{trace(){}debug(){}info(){}warn(){}error(){}},zre=e=>e?.body instanceof ReadableStream;function Bre(e,t){if(Jx.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(Fw(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var Vre=e=>(t,n)=>async r=>{let i=await e.retryStrategy(),a=await e.maxAttempts();if(Hre(i)){i=i;let o=await i.acquireInitialRetryToken((n.partition_id??``)+(n.__retryLongPoll?`:longpoll`:``)),s=Error(),c=0,l=0,{request:u}=r,d=Kx.isInstance(u);for(d&&(u.headers[HE]=Yw());;)try{d&&(u.headers[UE]=`attempt=${c+1}; max=${a}`);let{response:e,output:n}=await t(r);return i.recordSuccess(o),n.$metadata.attempts=c+1,n.$metadata.totalRetryDelay=l,{response:e,output:n}}catch(t){let r=Ure(t,e.logger);if(s=Nre(t),d&&zre(u))throw(n.logger instanceof ID?console:n.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),s;try{o=await i.refreshRetryTokenForRetry(o,r)}catch(e){throw typeof e.$backoff==`number`&&await LD(e.$backoff),s.$metadata||={},s.$metadata.attempts=c+1,s.$metadata.totalRetryDelay=l,s}c=o.getRetryCount();let a=o.getRetryDelay();l+=a,await LD(a)}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,i.mode]]),i.retry(t,r)},LD=e=>new Promise(t=>setTimeout(t,e)),Hre=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,Ure=(e,t)=>{let n={error:e,errorType:Wre(e)},r=Bre(e.$response,t);return r&&(n.retryAfterHint=r),n},Wre=e=>IE(e)?`THROTTLING`:LE(e)?`TRANSIENT`:RE(e)?`SERVER_ERROR`:`CLIENT_ERROR`,Gre={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},RD=e=>({applyToStack:t=>{t.add(Vre(e),Gre)}}),zD=e=>Jx.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,BD=e=>new Date(Date.now()+e),Kre=(e,t)=>Math.abs(BD(t).getTime()-e)>=3e5,VD=(e,t)=>{let n=Date.parse(e);return Kre(n,t)?n-Date.now():t},HD=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},UD=async e=>{let t=HD(`context`,e.context),n=HD(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await HD(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},WD=class{async sign(e,t,n){if(!Kx.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await UD(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:BD(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??zD(t.$response);if(n){let r=HD(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=VD(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=zD(e);if(n){let e=HD(`config`,t.config);e.systemClockOffset=VD(n,e.systemClockOffset)}}},qre=class extends WD{async sign(e,t,n){if(!Kx.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await UD(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:BD(r.systemClockOffset),signingRegion:c,signingService:s})}},Jre=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},Yre=e=>(e.sigv4aSigningRegionSet=CC(e.sigv4aSigningRegionSet),e),GD=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,`credentials`,{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Zre(e,Xre(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?TE(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?CC(e.signer):e.regionInfoProvider?()=>CC(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||GS)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await CC(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||GS)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Xre(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:NT(t,jT,MT):n?CC(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Zre(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Qre=async(e,t,n)=>({operation:LS(t).operation,region:await RS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function $re(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var eie=e=>{let t=[];switch(e.operation){default:t.push($re(e))}return t},tie=e=>{let t=GD(e);return Object.assign(t,{authSchemePreference:RS(e.authSchemePreference??[])})},nie=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),KD={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},rie={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-ec2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-ec2":`^3.972.22`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},qD=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??JD.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??JD.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},JD={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`}},YD=e=>()=>Promise.reject(e),XD=typeof TextEncoder==`function`?new TextEncoder:null,ZD=e=>{if(typeof e==`string`){if(XD)return XD.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let 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;else if(typeof e.size==`number`)return e.size;throw Error(`Body Length computation failed for ${e}`)},iie=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],QD=({defaultsMode:e}={})=>Jre(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(aie()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${iie.join(`, `)}, got ${t}`)}}),aie=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},$D=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=pw.for(r),a=pw.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=AD(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return AD(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tlw.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},eO=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},oie=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},sie=/[&<>"]/g,cie={"&":`&`,"<":`<`,">":`>`,'"':`"`};function lie(e){return e.replace(sie,e=>cie[e])}var uie=/[&"'<>\r\n\u0085\u2028]/g,die={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function fie(e){return e.replace(uie,e=>die[e])}var tO=class{value;constructor(e){this.value=e}toString(){return fie(``+this.value)}},nO=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new tO(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${lie(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},rO;function pie(e){rO||=new DOMParser;let t=rO.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var iO=class extends eO{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new TT(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=lw.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??tS)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=lw.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new oie(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=pie(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),FD(i)}return{}}},mie=class extends eO{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=lw.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??OC)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Yw())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof hT?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),wT(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(jw(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${KC(e)}=`}writeValue(e){this.buffer+=KC(e)}},aO=class extends CT{options;serializer;deserializer;mixin=new $D;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new mie(t),this.deserializer=new iO(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(qC(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=lw.of(e.output),a={};if(n.statusCode>=300){let i=await GC(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await GC(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=lw.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},hie=class extends aO{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},gie=(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`},_ie=class extends eO{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=lw.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??DC)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=nO.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=nO.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=nO.of(e);if(typeof n!=`string`)if(t instanceof nO||t instanceof tO)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=nO.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=nO.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[p,m]=this.getXmlnsAttribute(e,r),h=(e,t,n)=>{let r=nO.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=nO.of(u);c.isListSchema()?this.writeList(c,n,l,m):c.isMapSchema()?this.writeMap(c,n,l,m,!0):c.isStructSchema()?l=this.writeStruct(c,n,m):this.writeSimpleInto(c,n,l,m),e.addChildNode(l)};if(f)for(let r in t){let i=t[r];if(d||i!=null){let t=nO.of(a.xmlName??e.getMemberName());h(t,r,i),n.addChildNode(t)}}else{let r;i||(r=nO.of(a.xmlName??e.getMemberName()),m&&r.addAttribute(p,m),n.addChildNode(r));for(let e in t){let a=t[e];if(d||a!=null){let t=nO.of(`entry`);h(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=lw.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??OC)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(wT(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=jw(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=jw(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof hT?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Yw():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=lw.of(e),o=new tO(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},vie=class extends eO{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new _ie(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new iO(this.settings);return e.setSerdeContext(this.serdeContext),e}},yie=class extends ST{codec;serializer;deserializer;mixin=new $D;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new vie(t),this.serializer=new OT(this.codec.createSerializer(),t),this.deserializer=new ET(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=lw.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=gie(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=lw.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=f.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},oO=`ref`,sO=-1,cO=!0,lO=`isSet`,uO=`PartitionResult`,dO=`booleanEquals`,fO=`getAttr`,pO={[oO]:`Endpoint`},mO={[oO]:uO},hO={},gO=[{[oO]:`Region`}],_O={conditions:[[lO,[pO]],[lO,gO],[`aws.partition`,gO,uO],[dO,[{[oO]:`UseFIPS`},cO]],[dO,[{[oO]:`UseDualStack`},cO]],[dO,[{fn:fO,argv:[mO,`supportsDualStack`]},cO]],[dO,[{fn:fO,argv:[mO,`supportsFIPS`]},cO]],[`stringEquals`,[{fn:fO,argv:[mO,`name`]},`aws-us-gov`]]],results:[[sO],[sO,`Invalid Configuration: FIPS and custom endpoint are not supported`],[sO,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[pO,hO],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,hO],[sO,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,hO],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,hO],[sO,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,hO],[sO,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,hO],[sO,`Invalid Configuration: Missing Region`]]},bie=2,vO=1e8,xie=new Int32Array([-1,1,-1,0,13,3,1,4,vO+12,2,5,vO+12,3,8,6,4,7,vO+11,5,vO+9,vO+10,4,11,9,6,10,vO+8,7,vO+6,vO+7,5,12,vO+5,6,vO+4,vO+5,3,vO+1,14,4,vO+2,vO+3]),Sie=IT.from(xie,bie,_O.conditions,_O.results),Cie=new LT({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),wie=(e,t={})=>Cie.get(e,()=>hE(Sie,{endpointParams:e,logger:t.logger}));VT.aws=wE;var Tie=class e extends kD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Eie=`AllAvailabilityZones`,Die=`AttributeBooleanValue`,Oie=`AssociateCarrierIpAddress`,kie=`AdditionalFlexibleNetworkInterfaces`,Aie=`AvailableIpAddressCount`,jie=`AssignIpv6AddressOnCreation`,Mie=`AttachInternetGateway`,Nie=`AttachInternetGatewayRequest`,yO=`AdditionalInfo`,bO=`AssociationId`,xO=`AttachmentId`,Pie=`AmiLaunchIndex`,Fie=`AttachmentLimitType`,Iie=`AssociatePublicIpAddress`,Lie=`AmazonProvidedIpv6CidrBlock`,Rie=`AutoRecoverySupported`,zie=`AssociateRouteTableRequest`,Bie=`AssociateRouteTableResult`,Vie=`AssociateRouteTable`,Hie=`AllRegions`,SO=`AssociatedResource`,CO=`AutoRecovery`,wO=`AssociationState`,Uie=`AuthorizeSecurityGroupEgress`,Wie=`AuthorizeSecurityGroupEgressRequest`,Gie=`AuthorizeSecurityGroupEgressResult`,Kie=`AuthorizeSecurityGroupIngressRequest`,qie=`AuthorizeSecurityGroupIngressResult`,Jie=`AuthorizeSecurityGroupIngress`,TO=`AmdSevSnp`,Yie=`ArchitectureTypeList`,EO=`AttachTime`,Xie=`AttachVolumeRequest`,Zie=`AttributeValue`,Qie=`AttachVolume`,DO=`AvailabilityZone`,$ie=`AvailabilityZoneGeography`,eae=`AvailabilityZoneGeographyList`,OO=`AvailabilityZoneId`,tae=`AvailabilityZoneList`,nae=`AvailabilityZoneMessage`,rae=`AvailabilityZoneMessageList`,iae=`AvailabilityZoneSubGeography`,aae=`AvailabilityZoneSubGeographyList`,oae=`AvailabilityZones`,kO=`Accelerators`,sae=`Affinity`,AO=`Arn`,jO=`Architecture`,cae=`Associations`,MO=`Association`,lae=`Attribute`,NO=`Attachment`,PO=`Attachments`,uae=`BlobAttributeValue`,dae=`BaselineBandwidthInGbps`,FO=`BaselineBandwidthInMbps`,IO=`BlockDeviceMapping`,fae=`BlockDeviceMappingList`,pae=`BlockDeviceMappingRequestList`,LO=`BlockDeviceMappings`,mae=`BlockDurationMinutes`,RO=`BaselineIops`,zO=`BootMode`,hae=`BootModeTypeList`,gae=`BareMetal`,BO=`BlockPublicAccessStates`,_ae=`BurstablePerformanceSupported`,VO=`BaselineThroughputInMBps`,HO=`BandwidthWeighting`,vae=`BandwidthWeightingTypeList`,yae=`BandwidthWeightings`,UO=`CidrBlock`,bae=`CidrBlockAssociationSet`,xae=`CapacityBlockId`,Sae=`CidrBlockState`,Cae=`CoreCountList`,WO=`CoreCount`,wae=`CpuCredits`,GO=`CompletionDurationMinutes`,Tae=`CreationDate`,KO=`CarrierGatewayId`,Eae=`CurrentGeneration`,Dae=`CarrierIp`,Oae=`CurrentInstanceBootMode`,kae=`CreateInternetGateway`,Aae=`CreateInternetGatewayRequest`,jae=`CreateInternetGatewayResult`,Mae=`CreateImageRequest`,Nae=`CreateImageResult`,qO=`CidrIp`,JO=`CidrIpv6`,YO=`CidrIpv4`,Pae=`CoreInfo`,Fae=`CreateImage`,Iae=`CreateKeyPair`,Lae=`CreateKeyPairRequest`,XO=`CoreNetworkArn`,ZO=`CpuOptions`,Rae=`CustomerOwnedIp`,zae=`CustomerOwnedIpv4Pool`,Bae=`CpuOptionsRequest`,Vae=`CreatePlacementGroup`,Hae=`CreatePlacementGroupRequest`,Uae=`CreatePlacementGroupResult`,QO=`CapacityReservationId`,$O=`CapacityReservationPreference`,Wae=`CreateRouteRequest`,ek=`CapacityReservationResourceGroupArn`,Gae=`CreateRouteResult`,Kae=`CapacityReservationSpecificationResponse`,tk=`CapacityReservationSpecification`,nk=`CapacityReservationTarget`,qae=`CapacityReservationTargetResponse`,Jae=`CreateRouteTableRequest`,Yae=`CreateRouteTableResult`,Xae=`CreateRouteTable`,Zae=`CreateRoute`,Qae=`CreateSecurityGroup`,$ae=`CreateSecurityGroupRequest`,eoe=`CreateSecurityGroupResult`,toe=`CopySnapshotRequest`,noe=`CopySnapshotRequestPSU`,roe=`CopySnapshotResult`,ioe=`CreateSnapshotRequest`,aoe=`CreateSubnetRequest`,ooe=`CreateSubnetResult`,soe=`CreditSpecificationRequest`,coe=`CopySnapshot`,loe=`CreditSpecification`,uoe=`CreateSnapshot`,doe=`CreateSubnet`,foe=`CurrentState`,rk=`ClientToken`,ik=`ConnectionTrackingConfiguration`,poe=`ConnectionTrackingSpecification`,moe=`ConnectionTrackingSpecificationRequest`,hoe=`ConnectionTrackingSpecificationResponse`,goe=`CompletionTime`,ak=`CreateTime`,_oe=`CreateVolumeRequest`,voe=`CreateVpcRequest`,yoe=`CreateVpcResult`,boe=`CreateVolume`,xoe=`CreateVpc`,ok=`Code`,sk=`Configured`,ck=`Count`,lk=`DisableApiStop`,uk=`DisableApiTermination`,Soe=`DestinationAvailabilityZone`,Coe=`DescribeAvailabilityZonesRequest`,woe=`DescribeAvailabilityZonesResult`,Toe=`DescribeAvailabilityZones`,dk=`DestinationCidrBlock`,Eoe=`DefaultConnectionTrackingConfiguration`,Doe=`DefaultCores`,Ooe=`DataEncryptionKeyId`,koe=`DefaultEnaQueueCountPerInterface`,Aoe=`DefaultForAz`,joe=`DedicatedHostsSupported`,fk=`DeviceIndex`,pk=`DestinationIpv6CidrBlock`,Moe=`DescribeInternetGatewaysRequest`,Noe=`DescribeInternetGatewaysResult`,Poe=`DescribeInternetGateways`,Foe=`DiskInfoList`,Ioe=`DescribeImagesRequest`,Loe=`DescribeImagesResult`,Roe=`DescribeInstancesRequest`,zoe=`DescribeInstancesResult`,Boe=`DescribeInstanceTypesRequest`,Voe=`DescribeInstanceTypesResult`,Hoe=`DescribeInstanceTypes`,Uoe=`DescribeImages`,Woe=`DescribeInstances`,Goe=`DiskInfo`,Koe=`DeleteKeyPair`,qoe=`DeleteKeyPairRequest`,Joe=`DeleteKeyPairResult`,Yoe=`DescribeKeyPairsRequest`,Xoe=`DescribeKeyPairsResult`,Zoe=`DescribeKeyPairs`,mk=`DeviceName`,Qoe=`DefaultNetworkCardIndex`,$oe=`DestinationOutpostArn`,ese=`DhcpOptionsId`,hk=`DeleteOnTermination`,tse=`DeletePlacementGroup`,nse=`DeletePlacementGroupRequest`,rse=`DescribePlacementGroupsRequest`,ise=`DescribePlacementGroupsResult`,ase=`DescribePlacementGroups`,gk=`DestinationPrefixListId`,ose=`DeregistrationProtection`,_k=`DryRun`,sse=`DescribeRegionsRequest`,cse=`DescribeRegionsResult`,lse=`DescribeRouteTablesRequest`,use=`DescribeRouteTablesResult`,dse=`DescribeRouteTables`,fse=`DestinationRegion`,pse=`DescribeRegions`,mse=`DeleteSecurityGroup`,hse=`DeleteSecurityGroupRequest`,gse=`DeleteSecurityGroupResult`,_se=`DescribeSecurityGroupsRequest`,vse=`DescribeSecurityGroupsResult`,yse=`DescribeSecurityGroups`,bse=`DeleteSnapshotRequest`,xse=`DeleteSubnetRequest`,Sse=`DescribeSnapshotsRequest`,Cse=`DescribeSnapshotsResult`,wse=`DescribeSubnetsRequest`,Tse=`DescribeSubnetsResult`,Ese=`DeleteSnapshot`,Dse=`DeleteSubnet`,Ose=`DescribeSnapshots`,kse=`DescribeSubnets`,Ase=`DefaultTcpEstablishedTimeout`,jse=`DefaultThreadsPerCore`,Mse=`DeprecationTime`,Nse=`DefaultUdpStreamTimeout`,Pse=`DefaultUdpTimeout`,Fse=`DefaultVCpus`,Ise=`DeleteVolumeRequest`,Lse=`DeleteVpcRequest`,Rse=`DescribeVolumesRequest`,zse=`DescribeVolumesResult`,Bse=`DescribeVpcsRequest`,Vse=`DescribeVpcsResult`,Hse=`DetachVolumeRequest`,Use=`DeleteVolume`,Wse=`DeleteVpc`,Gse=`DescribeVolumes`,Kse=`DescribeVpcs`,qse=`DetachVolume`,vk=`Description`,yk=`Device`,Jse=`Disks`,Yse=`EbsBlockDevice`,Xse=`ExecutableByStringList`,bk=`ExecutableBy`,xk=`EbsCardIndex`,Zse=`EbsCardInfoList`,Qse=`EbsCardInfo`,$se=`EbsCards`,ece=`EncryptionControl`,tce=`EnableDns64`,nce=`ElasticFileSystem`,rce=`ElasticFileSystemExclusion`,ice=`ElasticGpuAssociation`,ace=`ElasticGpuAssociationId`,oce=`ElasticGpuAssociationList`,sce=`ElasticGpuAssociationState`,cce=`ElasticGpuAssociationTime`,lce=`ElasticGpuAssociations`,uce=`ElasticGpuId`,Sk=`ElasticGpuSpecification`,dce=`ElasticGpuSpecifications`,Ck=`ElasticInferenceAccelerator`,fce=`ElasticInferenceAcceleratorAssociation`,pce=`ElasticInferenceAcceleratorAssociationId`,mce=`ElasticInferenceAcceleratorAssociationList`,hce=`ElasticInferenceAcceleratorAssociationState`,gce=`ElasticInferenceAcceleratorAssociationTime`,_ce=`ElasticInferenceAcceleratorArn`,vce=`ElasticInferenceAcceleratorAssociations`,wk=`ElasticInferenceAccelerators`,yce=`EbsInstanceBlockDevice`,bce=`EbsInstanceBlockDeviceSpecification`,xce=`EncryptionInTransitSupported`,Tk=`EbsInfo`,Ek=`EfaInfo`,Sce=`EnableLniAtDeviceIndex`,Dk=`EbsOptimized`,Ok=`EbsOptimizedInfo`,Cce=`EgressOnlyInternetGateway`,wce=`EgressOnlyInternetGatewayExclusion`,kk=`EgressOnlyInternetGatewayId`,Tce=`EnclaveOptionsRequest`,Ece=`EbsOptimizedSupport`,Ak=`EnclaveOptions`,Dce=`EnablePrimaryIpv6`,jk=`EnaQueueCount`,Mk=`EnableResourceNameDnsAAAARecord`,Nk=`EnableResourceNameDnsARecord`,Pk=`EnaSrdEnabled`,Fk=`EnaSrdSpecification`,Oce=`EnaSrdSpecificationRequest`,kce=`EnaSrdSupported`,Ik=`EnaSrdUdpEnabled`,Lk=`EnaSrdUdpSpecification`,Ace=`EnaSrdUdpSpecificationRequest`,jce=`EfaSupported`,Rk=`EncryptionSupport`,zk=`EnaSupport`,Mce=`EndTime`,Nce=`ExecutableUsers`,Bk=`Ebs`,Vk=`Enabled`,Hk=`Encrypted`,Pce=`Endpoint`,Uk=`Force`,Fce=`FpgaDeviceInfo`,Ice=`FpgaDeviceInfoList`,Lce=`FpgaDeviceMemoryInfo`,Rce=`FlexibleEnaQueuesSupport`,Wk=`FpgaInfo`,zce=`FilterList`,Gk=`FromPort`,Bce=`FastRestored`,Vce=`FullSnapshotSizeInBytes`,Kk=`FreeTierEligible`,qk=`Filters`,Jk=`Filter`,Hce=`Fpgas`,Yk=`Groups`,Uce=`GroupArn`,Wce=`GetConsoleOutput`,Gce=`GetConsoleOutputRequest`,Kce=`GetConsoleOutputResult`,qce=`GroupDescription`,Jce=`GpuDeviceInfo`,Yce=`GpuDeviceInfoList`,Xce=`GpuDeviceMemoryInfo`,Xk=`GatewayId`,Zce=`GroupIdentifierList`,Qce=`GroupIdStringList`,Zk=`GpuInfo`,Qk=`GroupId`,$k=`GroupIds`,$ce=`GroupIdentifier`,ele=`GroupLongName`,eA=`GroupName`,tle=`GroupNameStringList`,tA=`GroupNames`,nle=`GroupOwnerId`,rle=`GpuPartitionSize`,nA=`Geography`,ile=`Gpus`,ale=`HiddenByDefault`,rA=`HttpEndpoint`,ole=`HostId`,iA=`HibernationOptions`,sle=`HibernationOptionsRequest`,aA=`HttpProtocolIpv6`,oA=`HttpPutResponseHopLimit`,cle=`HostResourceGroupArn`,lle=`HibernationSupported`,sA=`HttpTokens`,cA=`HostnameType`,ule=`Hibernate`,lA=`Hypervisor`,dle=`Id`,uA=`Ipv6Addresses`,dA=`Ipv6AddressAttribute`,fA=`Ipv6AddressCount`,fle=`InstanceAttachmentEnaSrdSpecification`,ple=`InstanceAttachmentEnaSrdUdpSpecification`,pA=`InferenceAcceleratorInfo`,mle=`Ipv4AddressesPerInterface`,hle=`Ipv6AddressesPerInterface`,gle=`Ipv4AddressesPerSecondaryInterface`,_le=`ImageAllowed`,vle=`IpAddress`,mA=`Ipv6Address`,yle=`InstanceBlockDeviceMapping`,ble=`InstanceBlockDeviceMappingList`,xle=`InstanceBlockDeviceMappingSpecification`,Sle=`InstanceBlockDeviceMappingSpecificationList`,hA=`Ipv6CidrBlock`,gA=`Ipv6CidrBlockAssociationSet`,Cle=`Ipv6CidrBlockNetworkBorderGroup`,_A=`Ipv6CidrBlockState`,wle=`IncludeDeprecated`,Tle=`InferenceDeviceInfo`,Ele=`InferenceDeviceInfoList`,Dle=`InferenceDeviceMemoryInfo`,Ole=`IncludeDisabled`,kle=`IsDefault`,vA=`IsEgress`,yA=`InternetGateway`,Ale=`InternetGatewayAttachment`,jle=`InternetGatewayAttachmentList`,Mle=`InternetGatewayBlockMode`,Nle=`InternetGatewayExclusion`,bA=`InternetGatewayId`,Ple=`InternetGatewayIdList`,Fle=`InternetGatewayIds`,Ile=`InternetGatewayList`,Lle=`InternetGateways`,xA=`InstanceId`,Rle=`InstanceIpv6Address`,zle=`InstanceIpv6AddressList`,Ble=`InstanceInterruptionBehavior`,SA=`IamInstanceProfile`,CA=`Ipv6IpamPoolId`,wA=`Ipv4IpamPoolId`,Vle=`InstanceIpv4PrefixList`,Hle=`InstanceIpv6PrefixList`,TA=`IamInstanceProfileSpecification`,EA=`InstanceIpv4Prefix`,DA=`InstanceIpv6Prefix`,OA=`InstanceInitiatedShutdownBehavior`,kA=`ImageIdStringList`,AA=`InstanceIdStringList`,jA=`ImageId`,MA=`ImageIds`,NA=`InstanceIds`,PA=`ImportKeyPair`,FA=`ImportKeyPairRequest`,IA=`ImportKeyPairResult`,LA=`ImageLocation`,RA=`ImageList`,zA=`InstanceLifecycle`,BA=`InstanceList`,VA=`InstanceMaintenanceOptions`,HA=`InstanceMaintenanceOptionsRequest`,UA=`InstanceMarketOptionsRequest`,WA=`InstanceMetadataOptionsRequest`,GA=`InstanceMetadataOptionsResponse`,KA=`InstanceMarketOptions`,qA=`IncludeManagedResources`,JA=`InstanceMetadataTags`,YA=`Ipv6Native`,XA=`InstanceNetworkInterface`,ZA=`InstanceNetworkInterfaceAssociation`,QA=`InstanceNetworkInterfaceAttachment`,$A=`InstanceNetworkInterfaceList`,ej=`InstanceNetworkInterfaceSpecification`,tj=`InstanceNetworkInterfaceSpecificationList`,nj=`Ipv6NetmaskLength`,rj=`Ipv4NetmaskLength`,ij=`InstanceNetworkPerformanceOptions`,aj=`InstanceNetworkPerformanceOptionsRequest`,oj=`ImageOwnerAlias`,sj=`IpOwnerId`,cj=`InstanceOwnerId`,lj=`InstanceOwningService`,uj=`Ipv6PrefixCount`,dj=`Ipv4PrefixCount`,fj=`IpPermissionsEgress`,pj=`InstancePrivateIpAddress`,mj=`InstancePrivateIpAddressList`,hj=`IsPrimaryIpv6`,gj=`IncludePublicKey`,_j=`IpPermissionList`,vj=`Ipv4PrefixList`,yj=`Ipv6PrefixList`,bj=`Ipv4PrefixSpecificationRequest`,xj=`Ipv6PrefixSpecificationRequest`,Sj=`Ipv6Prefixes`,Cj=`IpPermissions`,wj=`IpPermission`,Tj=`IpProtocol`,Ej=`Ipv6Prefix`,Dj=`Ipv6Pool`,Oj=`Ipv4Prefixes`,kj=`Ipv4Prefix`,Aj=`IpRangeList`,jj=`Ipv6RangeList`,Mj=`IpRanges`,Nj=`IpRange`,Pj=`Ipv6Ranges`,Fj=`Ipv6Range`,Ij=`InstanceStateChange`,Lj=`InstanceStateChangeList`,Rj=`InstanceSecondaryInterfaceAttachment`,zj=`InstanceSecondaryInterfaceList`,Bj=`InstanceSecondaryInterfacePrivateIpAddress`,Vj=`InstanceSecondaryInterfacePrivateIpAddressList`,Hj=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Uj=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Wj=`InstanceSecondaryInterfaceSpecificationListRequest`,Gj=`InstanceSecondaryInterfaceSpecificationRequest`,Kj=`InstanceSecondaryInterface`,qj=`InstanceStorageInfo`,Jj=`InstanceStorageSupported`,Yj=`ImdsSupport`,Xj=`InstanceState`,Zj=`IpSource`,Qj=`Ipv6Supported`,$j=`InstanceType`,eM=`InstanceTypeInfoList`,tM=`InstanceTypeInfo`,nM=`ImageType`,rM=`InstanceTenancy`,iM=`InstanceTypes`,aM=`InterfaceType`,oM=`IncludeUnsupportedInRegion`,sM=`Images`,cM=`Image`,lM=`Instance`,uM=`Instances`,dM=`Iops`,fM=`Key`,pM=`KeyFormat`,mM=`KeyFingerprint`,hM=`KernelId`,gM=`KmsKeyId`,_M=`KeyMaterial`,vM=`KeyName`,yM=`KeyNameStringList`,bM=`KeyNames`,xM=`KeyPairs`,SM=`KeyPairId`,CM=`KeyPairIdStringList`,wM=`KeyPairIds`,TM=`KeyPairInfo`,EM=`KeyPairList`,DM=`KeyPair`,OM=`KeyType`,kM=`Kernel`,AM=`LicenseConfigurationArn`,jM=`LicenseConfigurationRequest`,MM=`LicenseConfiguration`,NM=`LambdaExclusion`,PM=`LogicalGpuCount`,FM=`LocalGatewayId`,IM=`LinkedGroupId`,LM=`LicenseList`,RM=`LastLaunchedTime`,zM=`LicenseSpecifications`,BM=`LicenseSpecificationListRequest`,VM=`LicenseSpecification`,HM=`LaunchTemplate`,UM=`LaunchTemplateId`,WM=`LaunchTemplateName`,GM=`LaunchTemplateSpecification`,KM=`LaunchTime`,qM=`Latest`,JM=`Lambda`,YM=`Licenses`,XM=`Location`,ZM=`MultiAttachEnabled`,QM=`MediaAcceleratorInfo`,$M=`MacAddress`,eN=`MaximumBandwidthInMbps`,tN=`MapCustomerOwnedIpOnLaunch`,nN=`MaxCount`,rN=`MinCount`,iN=`MediaDeviceInfo`,aN=`MediaDeviceInfoList`,oN=`MediaDeviceMemoryInfo`,sN=`MaximumEbsAttachments`,cN=`MaximumEbsCards`,lN=`MaximumEfaInterfaces`,uN=`MaximumEnaQueueCount`,dN=`MaximumEnaQueueCountPerInterface`,fN=`MaximumIops`,pN=`ModifyInstanceAttributeRequest`,mN=`ModifyInstanceAttributeValue`,hN=`ModifyInstanceAttribute`,gN=`MemoryInfo`,_N=`MaximumNetworkCards`,vN=`MaximumNetworkInterfaces`,yN=`MetadataOptions`,bN=`MaintenanceOptions`,xN=`MapPublicIpOnLaunch`,SN=`MaxPrice`,CN=`MaxResults`,wN=`MaximumSecondaryNetworkInterfaces`,TN=`ModificationState`,EN=`MarketType`,DN=`MaximumThroughputInMBps`,ON=`ModifyVolumeRequest`,kN=`ModifyVolumeResult`,AN=`ModifyVolume`,jN=`Main`,MN=`Manufacturer`,NN=`Managed`,PN=`Message`,FN=`Messages`,IN=`Mode`,LN=`Monitoring`,RN=`Name`,zN=`NetworkBorderGroup`,BN=`NetworkCards`,VN=`NetworkCardIndex`,HN=`NetworkCardInfoList`,UN=`NetworkCardInfo`,WN=`NoDevice`,GN=`NeuronDeviceCoreInfo`,KN=`NeuronDeviceInfo`,qN=`NeuronDeviceInfoList`,JN=`NeuronDeviceMemoryInfo`,YN=`NeuronDevices`,XN=`NitroEnclavesSupport`,ZN=`NatGateway`,QN=`NatGatewayExclusion`,$N=`NatGatewayId`,eP=`NetworkInterfaceId`,tP=`NetworkInterfaces`,nP=`NetworkInfo`,rP=`NeuronInfo`,iP=`NetworkPerformanceOptions`,aP=`NetworkPerformance`,oP=`NoReboot`,sP=`NvmeSupport`,cP=`NitroTpmInfo`,lP=`NitroTpmSupport`,uP=`NitroTpmSupportedVersionsList`,dP=`NextToken`,fP=`NestedVirtualization`,pP=`Origin`,mP=`OutpostArn`,hP=`OwnerAlias`,gP=`OwnerId`,_P=`OptInStatus`,vP=`OriginalIops`,yP=`OwnerIds`,bP=`OriginalMultiAttachEnabled`,xP=`OdbNetworkArn`,SP=`OperatorRequest`,CP=`OperatorResponse`,wP=`OwnerStringList`,TP=`OriginalSize`,EP=`OriginalThroughput`,DP=`OriginalVolumeType`,OP=`Operator`,kP=`Output`,AP=`Owners`,jP=`Owner`,MP=`Principal`,NP=`PeakBandwidthInGbps`,PP=`ProductCodeId`,FP=`ProductCodeList`,IP=`ProductCodeType`,LP=`PartitionCount`,RP=`ProductCode`,zP=`ProductCodes`,BP=`PrivateDnsName`,VP=`PrivateDnsNameOptions`,HP=`PrivateDnsNameOptionsOnLaunch`,UP=`PrivateDnsNameOptionsRequest`,WP=`PrivateDnsNameOptionsResponse`,GP=`PublicDnsName`,KP=`PlatformDetails`,qP=`PlacementGroup`,JP=`PlacementGroupInfo`,YP=`PlacementGroupIdStringList`,XP=`PlacementGroupList`,ZP=`PlacementGroupStrategyList`,QP=`PlacementGroups`,$P=`PublicIp`,eF=`PrivateIpAddressCount`,tF=`PrivateIpAddressSpecification`,nF=`PrivateIpAddressSpecificationList`,rF=`PrivateIpAddress`,iF=`PrivateIpAddresses`,aF=`PublicIpAddress`,oF=`PublicIpv4Pool`,sF=`PrimaryIpv6`,cF=`ProcessorInfo`,lF=`PublicKey`,uF=`PublicKeyMaterial`,dF=`PrefixListId`,fF=`PrefixListIdList`,pF=`PrefixListIds`,mF=`PartitionNumber`,hF=`PeeringStatus`,gF=`PhcSupport`,_F=`PreviousState`,vF=`PresignedUrl`,yF=`PropagatingVgw`,bF=`PropagatingVgwList`,xF=`PropagatingVgws`,SF=`ParentZoneId`,CF=`ParentZoneName`,wF=`Platform`,TF=`Placement`,EF=`Primary`,DF=`Progress`,OF=`Public`,kF=`Return`,AF=`RestorableByUserIds`,jF=`RestorableBy`,MF=`RootDeviceName`,NF=`RootDeviceType`,PF=`RootDeviceTypeList`,FF=`RestoreExpiryTime`,IF=`ResourceExclusions`,LF=`RegionGeography`,RF=`ReferencedGroupId`,zF=`ReferencedGroupInfo`,BF=`RegionGeographyList`,VF=`RunInstancesMonitoringEnabled`,HF=`RebootInstancesRequest`,UF=`RunInstancesRequest`,WF=`RunInstancesUserData`,GF=`RamdiskId`,KF=`ReservationId`,qF=`RebootInstances`,JF=`RequesterId`,YF=`RunInstances`,XF=`RegionList`,ZF=`ReservationList`,QF=`RouteList`,$F=`RebootMigrationSupport`,eI=`RebootMigration`,tI=`RegionName`,nI=`RegionNameStringList`,rI=`RegionNames`,iI=`ReferencedSecurityGroup`,aI=`RevokeSecurityGroupEgress`,oI=`RevokeSecurityGroupEgressRequest`,sI=`RevokeSecurityGroupEgressResult`,cI=`RevokeSecurityGroupIngressRequest`,lI=`RevokeSecurityGroupIngressResult`,uI=`RevokeSecurityGroupIngress`,dI=`RevokedSecurityGroupRule`,fI=`RevokedSecurityGroupRuleList`,pI=`RevokedSecurityGroupRules`,mI=`RouteTableAssociation`,hI=`RouteTableAssociationId`,gI=`RouteTableAssociationList`,_I=`RouteTableAssociationState`,vI=`RouteTableId`,yI=`RouteTableIdStringList`,bI=`RouteTableIds`,xI=`RouteTableList`,SI=`ResourceType`,CI=`RouteTable`,wI=`RouteTables`,TI=`Ramdisk`,EI=`Regions`,DI=`Region`,OI=`Reservations`,kI=`Reservation`,AI=`Route`,jI=`Routes`,MI=`SupportedAdditionalProcessorFeatureList`,NI=`SubnetArn`,PI=`SupportedArchitectures`,FI=`SupportedBootModes`,II=`SubnetCidrBlockState`,LI=`SustainedClockSpeedInGhz`,RI=`SourceDestCheck`,zI=`SpreadDomain`,BI=`SupportedFeatures`,VI=`SubGeography`,HI=`SecurityGroupArn`,UI=`SecurityGroupId`,WI=`SecurityGroupIdStringList`,GI=`SecurityGroupIds`,KI=`SecurityGroupList`,qI=`SecurityGroupRules`,JI=`SecurityGroupRuleArn`,YI=`SecurityGroupRuleIds`,XI=`SecurityGroupRuleIdList`,ZI=`SecurityGroupRuleId`,QI=`SecurityGroupRuleList`,$I=`SecurityGroupRule`,eL=`SecurityGroupStringList`,tL=`SecurityGroups`,nL=`SecurityGroup`,rL=`SubnetIds`,iL=`SubnetIpv6CidrBlockAssociation`,aL=`SubnetIpv6CidrBlockAssociationSet`,oL=`SizeInGB`,sL=`SourceImageId`,cL=`SecondaryInterfaceId`,lL=`SourceInstanceId`,uL=`SizeInMiB`,dL=`SpotInstanceRequestId`,fL=`SourceImageRegion`,pL=`StartInstancesRequest`,mL=`StartInstancesResult`,hL=`StopInstancesRequest`,gL=`StopInstancesResult`,_L=`SupportedInRegion`,vL=`SnapshotIdStringList`,yL=`SubnetIdStringList`,bL=`SpotInstanceType`,xL=`SecondaryInterfaces`,SL=`SecondaryInterface`,CL=`SnapshotId`,wL=`SnapshotIds`,TL=`StartingInstances`,EL=`StartInstances`,DL=`StoppingInstances`,OL=`StopInstances`,kL=`SubnetId`,AL=`SnapshotLocation`,jL=`SnapshotList`,ML=`SpreadLevel`,NL=`SubnetList`,PL=`SpotMarketOptions`,FL=`StatusMessage`,IL=`StateMessage`,LL=`SecondaryNetworkId`,RL=`SriovNetSupport`,zL=`SecondaryNetworkSupported`,BL=`SpotOptions`,VL=`SkipOsShutdown`,HL=`SecondaryPrivateIpAddressCount`,UL=`SupportedRootDeviceTypes`,WL=`SourceRegion`,GL=`StateReason`,KL=`SourceSecurityGroupName`,qL=`SourceSecurityGroupOwnerId`,JL=`SourceSnapshotId`,YL=`SecondarySubnetId`,XL=`SupportedStrategies`,ZL=`StartTime`,QL=`StateTransitionReason`,$L=`SseType`,eR=`StorageTier`,tR=`SupportedUsageClasses`,nR=`SensitiveUserData`,rR=`SourceVolumeId`,iR=`SupportedVirtualizationTypes`,aR=`SupportedVersions`,oR=`Size`,sR=`Snapshots`,cR=`Snapshot`,lR=`State`,uR=`Status`,dR=`Strategy`,fR=`Subnet`,pR=`Subnets`,mR=`Tags`,hR=`TcpEstablishedTimeout`,gR=`TotalFpgaMemoryInMiB`,_R=`TransitGatewayId`,vR=`TotalGpuMemoryInMiB`,yR=`TerminateInstances`,bR=`TotalInferenceMemoryInMiB`,xR=`TerminateInstancesRequest`,SR=`TerminateInstancesResult`,CR=`TargetIops`,wR=`TerminatingInstances`,TR=`TagList`,ER=`TargetMultiAttachEnabled`,DR=`TotalMediaMemoryInMiB`,OR=`TotalNeuronDeviceMemoryInMiB`,kR=`ToPort`,AR=`ThreadsPerCore`,jR=`ThreadsPerCoreList`,MR=`TagSpecifications`,NR=`TotalSizeInGB`,PR=`TagSpecificationList`,FR=`TagSpecification`,IR=`TargetSize`,LR=`TpmSupport`,RR=`TargetThroughput`,zR=`TransferType`,BR=`TargetVolumeType`,VR=`Tag`,HR=`Tenancy`,UR=`Throughput`,WR=`Timestamp`,GR=`Type`,KR=`UsageClassTypeList`,qR=`UserData`,JR=`UserId`,YR=`UserIdGroupPairs`,XR=`UserIdGroupPairList`,ZR=`UserIdGroupPair`,QR=`UnknownIpPermissions`,$R=`UsageOperation`,ez=`UsageOperationUpdateTime`,tz=`UdpStreamTimeout`,nz=`UdpTimeout`,rz=`Value`,iz=`VolumeAttachmentList`,az=`VolumeAttachment`,oz=`VpcCidrBlockAssociation`,sz=`VpcCidrBlockAssociationSet`,cz=`VpcCidrBlockState`,lz=`VCpuInfo`,uz=`ValidCores`,dz=`VpcEncryptionControl`,fz=`VpcEncryptionControlConfiguration`,pz=`VpcEncryptionControlExclusion`,mz=`VpcEncryptionControlExclusions`,hz=`VpcEncryptionControlId`,gz=`VpcEndpointId`,_z=`VpcId`,vz=`VpcIpv6CidrBlockAssociation`,yz=`VpcIpv6CidrBlockAssociationSet`,bz=`VolumeInitializationRate`,xz=`VolumeIdStringList`,Sz=`VpcIdStringList`,Cz=`VolumeId`,wz=`VolumeIds`,Tz=`VpcIds`,Ez=`VpcLattice`,Dz=`VpcLatticeExclusion`,Oz=`VolumeList`,kz=`VpcList`,Az=`VolumeModification`,jz=`VirtualName`,Mz=`VolumeOwnerId`,Nz=`VpcPeeringConnectionId`,Pz=`VpcPeeringExclusion`,Fz=`VirtualPrivateGateway`,Iz=`VirtualPrivateGatewayExclusion`,Lz=`VpcPeering`,Rz=`ValueStringList`,zz=`VolumeSize`,Bz=`VolumeType`,Vz=`VirtualizationTypeList`,Hz=`ValidThreadsPerCore`,Uz=`VirtualizationType`,Wz=`ValidUntil`,Gz=`Values`,Kz=`Version`,qz=`Volumes`,Jz=`Volume`,Yz=`Vpc`,Xz=`Vpcs`,Zz=`WorkloadsList`,Qz=`Workloads`,$z=`ZoneId`,eB=`ZoneIdStringList`,tB=`ZoneIds`,nB=`ZoneName`,rB=`ZoneNameStringList`,iB=`ZoneNames`,aB=`ZoneType`,oB=`additionalFlexibleNetworkInterfaces`,sB=`availableIpAddressCount`,cB=`assignIpv6AddressOnCreation`,lB=`additionalInfo`,uB=`associationId`,dB=`attachmentId`,fB=`amiLaunchIndex`,pB=`attachmentLimitType`,mB=`associatePublicIpAddress`,hB=`amazonProvidedIpv6CidrBlock`,gB=`autoRecoverySupported`,_B=`associatedResource`,vB=`autoRecovery`,yB=`associationState`,bB=`amdSevSnp`,xB=`associationSet`,SB=`attachmentSet`,CB=`attachTime`,wB=`availabilityZone`,TB=`availabilityZoneId`,EB=`availabilityZoneInfo`,DB=`accelerators`,OB=`affinity`,kB=`arn`,AB=`architecture`,jB=`association`,MB=`attachment`,NB=`attribute`,PB=`baselineBandwidthInGbps`,FB=`baselineBandwidthInMbps`,IB=`blockDeviceMapping`,LB=`baselineIops`,RB=`bootMode`,zB=`bareMetal`,BB=`blockPublicAccessStates`,VB=`burstablePerformanceSupported`,HB=`baselineThroughputInMBps`,UB=`bandwidthWeighting`,WB=`bandwidthWeightings`,GB=`cidrBlock`,KB=`cidrBlockAssociationSet`,qB=`capacityBlockId`,JB=`cidrBlockState`,YB=`coreCount`,XB=`completionDurationMinutes`,ZB=`creationDate`,QB=`carrierGatewayId`,$B=`currentGeneration`,eV=`carrierIp`,tV=`currentInstanceBootMode`,nV=`cidrIp`,rV=`cidrIpv6`,iV=`cidrIpv4`,aV=`coreInfo`,oV=`coreNetworkArn`,sV=`cpuOptions`,cV=`customerOwnedIp`,lV=`customerOwnedIpv4Pool`,uV=`capacityReservationId`,dV=`capacityReservationPreference`,fV=`capacityReservationResourceGroupArn`,pV=`capacityReservationSpecification`,mV=`capacityReservationTarget`,hV=`currentState`,gV=`clientToken`,_V=`connectionTrackingConfiguration`,vV=`completionTime`,yV=`createTime`,bV=`code`,xV=`configured`,SV=`count`,CV=`disableApiTermination`,wV=`destinationCidrBlock`,TV=`defaultCores`,EV=`dataEncryptionKeyId`,DV=`defaultEnaQueueCountPerInterface`,OV=`defaultForAz`,kV=`dedicatedHostsSupported`,AV=`deviceIndex`,jV=`destinationIpv6CidrBlock`,MV=`deviceName`,NV=`defaultNetworkCardIndex`,PV=`dnsName`,FV=`dhcpOptionsId`,IV=`deleteOnTermination`,LV=`destinationPrefixListId`,RV=`deregistrationProtection`,zV=`dryRun`,BV=`destinationRegion`,VV=`defaultTcpEstablishedTimeout`,HV=`defaultThreadsPerCore`,UV=`deprecationTime`,WV=`defaultUdpStreamTimeout`,GV=`defaultUdpTimeout`,KV=`defaultVCpus`,qV=`description`,JV=`device`,YV=`disks`,XV=`ebsCardIndex`,ZV=`ebsCardSet`,QV=`encryptionControl`,$V=`enableDns64`,eH=`elasticFileSystem`,tH=`elasticGpuAssociationId`,nH=`elasticGpuAssociationState`,rH=`elasticGpuAssociationSet`,iH=`elasticGpuAssociationTime`,aH=`elasticGpuId`,oH=`elasticInferenceAcceleratorArn`,sH=`elasticInferenceAcceleratorAssociationId`,cH=`elasticInferenceAcceleratorAssociationState`,lH=`elasticInferenceAcceleratorAssociationSet`,uH=`elasticInferenceAcceleratorAssociationTime`,dH=`encryptionInTransitSupported`,fH=`ebsInfo`,pH=`efaInfo`,mH=`enableLniAtDeviceIndex`,hH=`ebsOptimized`,gH=`ebsOptimizedInfo`,_H=`egressOnlyInternetGateway`,vH=`egressOnlyInternetGatewayId`,yH=`ebsOptimizedSupport`,bH=`enclaveOptions`,xH=`enaQueueCount`,H=`ec2QueryName`,SH=`enableResourceNameDnsAAAARecord`,CH=`enableResourceNameDnsARecord`,wH=`enaSrdEnabled`,TH=`enaSrdSpecification`,EH=`enaSrdSupported`,DH=`enaSrdUdpEnabled`,OH=`enaSrdUdpSpecification`,kH=`efaSupported`,AH=`encryptionSupport`,jH=`enaSupport`,MH=`endTime`,NH=`ebs`,PH=`enabled`,FH=`encrypted`,IH=`flexibleEnaQueuesSupport`,LH=`fpgaInfo`,RH=`fromPort`,zH=`fastRestored`,BH=`fullSnapshotSizeInBytes`,VH=`freeTierEligible`,HH=`force`,UH=`fpgas`,WH=`groupArn`,GH=`groupDescription`,KH=`gatewayId`,qH=`gpuInfo`,JH=`groupId`,YH=`groupLongName`,XH=`groupName`,ZH=`groupOwnerId`,QH=`gpuPartitionSize`,$H=`geographySet`,eU=`groupSet`,tU=`gpus`,nU=`groups`,rU=`hypervisor`,iU=`hiddenByDefault`,aU=`httpEndpoint`,oU=`hostId`,sU=`hibernationOptions`,cU=`httpProtocolIpv6`,lU=`httpPutResponseHopLimit`,uU=`hostResourceGroupArn`,dU=`hibernationSupported`,fU=`httpTokens`,pU=`hostnameType`,mU=`id`,hU=`ipv6AddressAttribute`,gU=`ipv6AddressCount`,_U=`inferenceAcceleratorInfo`,vU=`ipv4AddressesPerInterface`,yU=`ipv6AddressesPerInterface`,bU=`ipv4AddressesPerSecondaryInterface`,xU=`ipv6AddressesSet`,SU=`imageAllowed`,CU=`ipAddress`,wU=`ipv6Address`,TU=`ipv6CidrBlock`,EU=`ipv6CidrBlockAssociationSet`,DU=`ipv6CidrBlockState`,OU=`isDefault`,kU=`isEgress`,AU=`internetGateway`,jU=`internetGatewayBlockMode`,MU=`internetGatewayId`,NU=`internetGatewaySet`,PU=`instanceId`,FU=`iamInstanceProfile`,IU=`instanceInitiatedShutdownBehavior`,LU=`imageId`,RU=`imageLocation`,zU=`instanceLifecycle`,BU=`instanceMetadataTags`,VU=`ipv6Native`,HU=`imageOwnerAlias`,UU=`imageOwnerId`,WU=`instanceOwnerId`,GU=`ipOwnerId`,KU=`instanceOwningService`,qU=`ipPermissionsEgress`,JU=`isPrimaryIpv6`,YU=`ipv4PrefixSet`,XU=`ipv6PrefixSet`,ZU=`ipProtocol`,QU=`ipPermissions`,$U=`ipv4Prefix`,eW=`ipv6Pool`,tW=`ipv6Prefix`,nW=`isPublic`,rW=`ipRanges`,iW=`ipv6Ranges`,aW=`instanceStorageInfo`,oW=`instanceStorageSupported`,sW=`imagesSet`,cW=`imageState`,lW=`imdsSupport`,uW=`instancesSet`,dW=`instanceState`,fW=`ipSource`,pW=`ipv6Supported`,mW=`instanceType`,hW=`instanceTypeSet`,gW=`idempotencyToken`,_W=`imageType`,vW=`instanceTenancy`,yW=`interfaceType`,bW=`iops`,U=`item`,xW=`key`,SW=`keyFingerprint`,CW=`kernelId`,wW=`kmsKeyId`,TW=`keyMaterial`,EW=`keyName`,DW=`keyPairId`,OW=`keySet`,kW=`keyType`,AW=`kernel`,jW=`licenseConfigurationArn`,MW=`logicalGpuCount`,NW=`localGatewayId`,PW=`linkedGroupId`,FW=`lastLaunchedTime`,IW=`licenseSet`,LW=`launchTime`,RW=`lambda`,zW=`multiAttachEnabled`,BW=`mediaAcceleratorInfo`,VW=`macAddress`,HW=`maximumBandwidthInMbps`,UW=`mapCustomerOwnedIpOnLaunch`,WW=`maximumEbsAttachments`,GW=`maximumEbsCards`,KW=`maximumEfaInterfaces`,qW=`maximumEnaQueueCount`,JW=`maximumEnaQueueCountPerInterface`,YW=`maximumIops`,XW=`memoryInfo`,ZW=`maximumNetworkCards`,QW=`maximumNetworkInterfaces`,$W=`metadataOptions`,eG=`maintenanceOptions`,tG=`mapPublicIpOnLaunch`,nG=`maxResults`,rG=`messageSet`,iG=`maximumSecondaryNetworkInterfaces`,aG=`modificationState`,oG=`maximumThroughputInMBps`,sG=`main`,cG=`manufacturer`,lG=`managed`,uG=`message`,dG=`monitoring`,fG=`mode`,pG=`name`,mG=`networkBorderGroup`,hG=`networkCards`,gG=`networkCardIndex`,_G=`noDevice`,vG=`neuronDevices`,yG=`nitroEnclavesSupport`,bG=`natGateway`,xG=`natGatewayId`,SG=`networkInterfaceId`,CG=`networkInterfaceSet`,wG=`networkInterface`,TG=`networkInfo`,EG=`neuronInfo`,DG=`networkPerformanceOptions`,OG=`networkPerformance`,kG=`noReboot`,AG=`nvmeSupport`,jG=`nitroTpmInfo`,MG=`nitroTpmSupport`,NG=`nextToken`,PG=`nestedVirtualization`,FG=`origin`,IG=`outpostArn`,LG=`ownerAlias`,RG=`ownerId`,zG=`optInStatus`,BG=`originalIops`,VG=`originalMultiAttachEnabled`,HG=`odbNetworkArn`,UG=`originalSize`,WG=`originalThroughput`,GG=`originalVolumeType`,KG=`operator`,qG=`output`,JG=`principal`,YG=`peakBandwidthInGbps`,XG=`productCodes`,ZG=`partitionCount`,QG=`productCode`,$G=`privateDnsNameOptions`,eK=`privateDnsNameOptionsOnLaunch`,tK=`privateDnsName`,nK=`publicDnsName`,rK=`platformDetails`,iK=`placementGroup`,aK=`placementGroupInfo`,oK=`placementGroupSet`,sK=`publicIp`,cK=`privateIpAddressesSet`,lK=`privateIpAddressSet`,uK=`privateIpAddress`,dK=`publicIpv4Pool`,fK=`processorInfo`,pK=`publicKey`,mK=`publicKeyMaterial`,hK=`prefixListId`,gK=`prefixListIds`,_K=`partitionNumber`,vK=`peeringStatus`,yK=`phcSupport`,bK=`previousState`,xK=`presignedUrl`,SK=`propagatingVgwSet`,CK=`parentZoneId`,wK=`parentZoneName`,TK=`platform`,EK=`placement`,DK=`primary`,OK=`progress`,kK=`return`,AK=`rootDeviceName`,jK=`rootDeviceType`,MK=`restoreExpiryTime`,NK=`regionEndpoint`,PK=`resourceExclusions`,FK=`referencedGroupId`,IK=`referencedGroupInfo`,LK=`reservationId`,RK=`ramdiskId`,zK=`regionInfo`,BK=`requesterId`,VK=`rebootMigrationSupport`,HK=`rebootMigration`,UK=`regionName`,WK=`revokedSecurityGroupRuleSet`,GK=`reservationSet`,KK=`routeSet`,qK=`routeTableAssociationId`,JK=`routeTableId`,YK=`routeTableSet`,XK=`resourceType`,ZK=`routeTable`,QK=`ramdisk`,$K=`reason`,eq=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,tq=`supportedArchitectures`,nq=`subnetArn`,rq=`supportedBootModes`,iq=`sustainedClockSpeedInGhz`,aq=`sourceDestCheck`,oq=`spreadDomain`,sq=`supportedFeatures`,cq=`securityGroupArn`,lq=`securityGroupInfo`,uq=`securityGroupRuleArn`,dq=`securityGroupRuleId`,fq=`securityGroupRuleSet`,pq=`subGeographySet`,mq=`sizeInGB`,hq=`sourceInstanceId`,gq=`secondaryInterfaceId`,_q=`sourceImageId`,vq=`sizeInMiB`,yq=`sourceImageRegion`,bq=`spotInstanceRequestId`,xq=`supportedInRegion`,Sq=`secondaryInterfaceSet`,Cq=`snapshotId`,wq=`subnetId`,Tq=`spreadLevel`,Eq=`statusMessage`,Dq=`stateMessage`,Oq=`secondaryNetworkId`,kq=`secondaryNetworkSupported`,Aq=`sriovNetSupport`,jq=`secondaryPrivateIpAddressCount`,Mq=`supportedRootDeviceTypes`,Nq=`stateReason`,Pq=`sourceSecurityGroupName`,Fq=`sourceSecurityGroupOwnerId`,Iq=`secondarySubnetId`,Lq=`snapshotSet`,Rq=`subnetSet`,zq=`supportedStrategies`,Bq=`startTime`,Vq=`sseType`,Hq=`storageTier`,Uq=`supportedUsageClasses`,Wq=`sourceVolumeId`,Gq=`supportedVirtualizationTypes`,Kq=`supportedVersions`,qq=`size`,Jq=`state`,Yq=`status`,Xq=`strategy`,Zq=`subnet`,Qq=`tenancy`,$q=`tcpEstablishedTimeout`,eJ=`totalFpgaMemoryInMiB`,tJ=`transitGatewayId`,nJ=`totalGpuMemoryInMiB`,rJ=`totalInferenceMemoryInMiB`,iJ=`targetIops`,aJ=`targetMultiAttachEnabled`,oJ=`totalMediaMemoryInMiB`,sJ=`totalNeuronDeviceMemoryInMiB`,cJ=`toPort`,lJ=`threadsPerCore`,uJ=`tagSet`,dJ=`totalSizeInGB`,fJ=`targetSize`,pJ=`tpmSupport`,mJ=`targetThroughput`,hJ=`transferType`,gJ=`targetVolumeType`,_J=`throughput`,vJ=`timestamp`,yJ=`type`,bJ=`userData`,xJ=`userId`,SJ=`unknownIpPermissionSet`,CJ=`usageOperation`,wJ=`usageOperationUpdateTime`,TJ=`udpStreamTimeout`,EJ=`udpTimeout`,DJ=`value`,OJ=`vCpuInfo`,kJ=`validCores`,AJ=`vpcEncryptionControlId`,jJ=`vpcId`,MJ=`volumeInitializationRate`,NJ=`volumeId`,PJ=`vpcLattice`,FJ=`volumeModification`,IJ=`virtualName`,LJ=`volumeOwnerId`,RJ=`vpcPeeringConnectionId`,zJ=`virtualPrivateGateway`,BJ=`vpcPeering`,VJ=`volumeSet`,HJ=`volumeSize`,UJ=`vpcSet`,WJ=`volumeType`,GJ=`validThreadsPerCore`,KJ=`virtualizationType`,qJ=`version`,JJ=`vpc`,YJ=`workloadSet`,W=`xmlName`,XJ=`zoneId`,ZJ=`zoneName`,QJ=`zoneState`,$J=`zoneType`,G=`com.amazonaws.ec2`,eY=pw.for(eq),tY=[-3,eq,`EC2ServiceException`,0,[],[]];eY.registerError(tY,Tie);var nY=[eY],rY=[0,G,noe,8,0],iY=[0,G,mN,8,0],aY=[0,G,WF,8,0],oY=[0,G,nR,8,0],sY=[3,G,zie,0,[vI,Xk,oF,_k,kL],[[0,{[H]:`RouteTableId`,[W]:JK}],0,0,[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`SubnetId`,[W]:wq}]],1],cY=[3,G,Bie,0,[bO,wO],[[0,{[H]:`AssociationId`,[W]:uB}],[()=>YQ,{[H]:`AssociationState`,[W]:yB}]]],lY=[3,G,Nie,0,[bA,_z,_k],[[0,{[H]:`InternetGatewayId`,[W]:MU}],[0,{[H]:`VpcId`,[W]:jJ}],[2,{[H]:`DryRun`,[W]:zV}]],2],uY=[3,G,Xie,0,[yk,xA,Cz,xk,_k],[0,0,0,1,[2,{[H]:`DryRun`,[W]:zV}]],3],dY=[3,G,Die,0,[rz],[[2,{[H]:`Value`,[W]:DJ}]]],fY=[3,G,Zie,0,[rz],[[0,{[H]:`Value`,[W]:DJ}]]],pY=[3,G,Wie,0,[Qk,MR,_k,KL,qL,Tj,Gk,kR,qO,Cj],[[0,{[H]:`GroupId`,[W]:JH}],[()=>D1,{[W]:FR}],[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`SourceSecurityGroupName`,[W]:Pq}],[0,{[H]:`SourceSecurityGroupOwnerId`,[W]:Fq}],[0,{[H]:`IpProtocol`,[W]:ZU}],[1,{[H]:`FromPort`,[W]:RH}],[1,{[H]:`ToPort`,[W]:cJ}],[0,{[H]:`CidrIp`,[W]:nV}],[()=>y1,{[H]:`IpPermissions`,[W]:QU}]],1],mY=[3,G,Gie,0,[kF,qI],[[2,{[H]:`Return`,[W]:kK}],[()=>T1,{[H]:`SecurityGroupRuleSet`,[W]:fq}]]],hY=[3,G,Kie,0,[qO,Gk,Qk,eA,Cj,Tj,KL,qL,kR,MR,_k],[0,1,0,0,[()=>y1,0],0,0,0,1,[()=>D1,{[W]:FR}],[2,{[H]:`DryRun`,[W]:zV}]]],gY=[3,G,qie,0,[kF,qI],[[2,{[H]:`Return`,[W]:kK}],[()=>T1,{[H]:`SecurityGroupRuleSet`,[W]:fq}]]],_Y=[3,G,DO,0,[_P,FN,tI,nB,$z,eA,zN,aB,CF,SF,ele,nA,VI,lR],[[0,{[H]:`OptInStatus`,[W]:zG}],[()=>j$,{[H]:`MessageSet`,[W]:rG}],[0,{[H]:`RegionName`,[W]:UK}],[0,{[H]:`ZoneName`,[W]:ZJ}],[0,{[H]:`ZoneId`,[W]:XJ}],[0,{[H]:`GroupName`,[W]:XH}],[0,{[H]:`NetworkBorderGroup`,[W]:mG}],[0,{[H]:`ZoneType`,[W]:$J}],[0,{[H]:`ParentZoneName`,[W]:wK}],[0,{[H]:`ParentZoneId`,[W]:CK}],[0,{[H]:`GroupLongName`,[W]:YH}],[()=>k$,{[H]:`GeographySet`,[W]:$H}],[()=>M$,{[H]:`SubGeographySet`,[W]:pq}],[0,{[H]:`ZoneState`,[W]:QJ}]]],vY=[3,G,$ie,0,[RN],[[0,{[H]:`Name`,[W]:pG}]]],yY=[3,G,nae,0,[PN],[[0,{[H]:`Message`,[W]:uG}]]],bY=[3,G,iae,0,[RN],[[0,{[H]:`Name`,[W]:pG}]]],xY=[3,G,uae,0,[rz],[[21,{[H]:`Value`,[W]:DJ}]]],SY=[3,G,IO,0,[Bk,WN,mk,jz],[[()=>BX,{[H]:`Ebs`,[W]:NH}],[0,{[H]:`NoDevice`,[W]:_G}],[0,{[H]:`DeviceName`,[W]:MV}],[0,{[H]:`VirtualName`,[W]:IJ}]]],CY=[3,G,BO,0,[Mle],[[0,{[H]:`InternetGatewayBlockMode`,[W]:jU}]]],wY=[3,G,tk,0,[$O,nk],[0,()=>EY]],TY=[3,G,Kae,0,[$O,nk],[[0,{[H]:`CapacityReservationPreference`,[W]:dV}],[()=>DY,{[H]:`CapacityReservationTarget`,[W]:mV}]]],EY=[3,G,nk,0,[QO,ek],[0,0]],DY=[3,G,qae,0,[QO,ek],[[0,{[H]:`CapacityReservationId`,[W]:uV}],[0,{[H]:`CapacityReservationResourceGroupArn`,[W]:fV}]]],OY=[3,G,moe,0,[hR,tz,nz],[1,1,1]],kY=[3,G,hoe,0,[hR,tz,nz],[[1,{[H]:`TcpEstablishedTimeout`,[W]:$q}],[1,{[H]:`UdpStreamTimeout`,[W]:TJ}],[1,{[H]:`UdpTimeout`,[W]:EJ}]]],AY=[3,G,toe,0,[WL,JL,vk,$oe,fse,Hk,gM,vF,MR,GO,Soe,_k],[0,0,0,0,[0,{[H]:`DestinationRegion`,[W]:BV}],[2,{[H]:`Encrypted`,[W]:FH}],[0,{[H]:`KmsKeyId`,[W]:wW}],[()=>rY,{[H]:`PresignedUrl`,[W]:xK}],[()=>D1,{[W]:FR}],1,0,[2,{[H]:`DryRun`,[W]:zV}]],2],jY=[3,G,roe,0,[mR,CL],[[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`SnapshotId`,[W]:Cq}]]],MY=[3,G,ZO,0,[WO,AR,TO,fP],[[1,{[H]:`CoreCount`,[W]:YB}],[1,{[H]:`ThreadsPerCore`,[W]:lJ}],[0,{[H]:`AmdSevSnp`,[W]:bB}],[0,{[H]:`NestedVirtualization`,[W]:PG}]]],NY=[3,G,Bae,0,[WO,AR,TO,fP],[1,1,0,0]],PY=[3,G,Mae,0,[xA,RN,MR,AL,_k,vk,oP,LO],[[0,{[H]:`InstanceId`,[W]:PU}],[0,{[H]:`Name`,[W]:pG}],[()=>D1,{[W]:FR}],0,[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`Description`,[W]:qV}],[2,{[H]:`NoReboot`,[W]:kG}],[()=>F$,{[H]:`BlockDeviceMapping`,[W]:IB}]],2],FY=[3,G,Nae,0,[jA],[[0,{[H]:`ImageId`,[W]:LU}]]],IY=[3,G,Aae,0,[MR,_k],[[()=>D1,{[W]:FR}],[2,{[H]:`DryRun`,[W]:zV}]]],LY=[3,G,jae,0,[yA],[[()=>XZ,{[H]:`InternetGateway`,[W]:AU}]]],RY=[3,G,Lae,0,[vM,OM,MR,pM,_k],[0,0,[()=>D1,{[W]:FR}],0,[2,{[H]:`DryRun`,[W]:zV}]],1],zY=[3,G,Hae,0,[LP,MR,ML,IM,OP,_k,eA,dR],[1,[()=>D1,{[W]:FR}],0,0,()=>CQ,[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`GroupName`,[W]:XH}],[0,{[H]:`Strategy`,[W]:Xq}]]],BY=[3,G,Uae,0,[qP],[[()=>EQ,{[H]:`PlacementGroup`,[W]:iK}]]],VY=[3,G,Wae,0,[vI,gk,gz,_R,FM,KO,XO,xP,_k,dk,Xk,pk,kk,xA,eP,Nz,$N],[[0,{[H]:`RouteTableId`,[W]:JK}],0,0,0,0,0,0,0,[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`DestinationCidrBlock`,[W]:wV}],[0,{[H]:`GatewayId`,[W]:KH}],[0,{[H]:`DestinationIpv6CidrBlock`,[W]:jV}],[0,{[H]:`EgressOnlyInternetGatewayId`,[W]:vH}],[0,{[H]:`InstanceId`,[W]:PU}],[0,{[H]:`NetworkInterfaceId`,[W]:SG}],[0,{[H]:`VpcPeeringConnectionId`,[W]:RJ}],[0,{[H]:`NatGatewayId`,[W]:xG}]],1],HY=[3,G,Gae,0,[kF],[[2,{[H]:`Return`,[W]:kK}]]],UY=[3,G,Jae,0,[_z,MR,rk,_k],[[0,{[H]:`VpcId`,[W]:jJ}],[()=>D1,{[W]:FR}],[0,4],[2,{[H]:`DryRun`,[W]:zV}]],1],WY=[3,G,Yae,0,[CI,rk],[[()=>qQ,{[H]:`RouteTable`,[W]:ZK}],[0,{[H]:`ClientToken`,[W]:gV}]]],GY=[3,G,$ae,0,[vk,eA,_z,MR,_k],[[0,{[W]:qce}],0,0,[()=>D1,{[W]:FR}],[2,{[H]:`DryRun`,[W]:zV}]],2],KY=[3,G,eoe,0,[Qk,mR,HI],[[0,{[H]:`GroupId`,[W]:JH}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`SecurityGroupArn`,[W]:cq}]]],qY=[3,G,ioe,0,[Cz,vk,mP,MR,XM,_k],[0,0,0,[()=>D1,{[W]:FR}],0,[2,{[H]:`DryRun`,[W]:zV}]],1],JY=[3,G,aoe,0,[_z,MR,DO,OO,UO,hA,mP,YA,wA,rj,CA,nj,_k],[0,[()=>D1,{[W]:FR}],0,0,0,0,0,2,0,1,0,1,[2,{[H]:`DryRun`,[W]:zV}]],1],YY=[3,G,ooe,0,[fR],[[()=>s$,{[H]:`Subnet`,[W]:Zq}]]],XY=[3,G,_oe,0,[DO,OO,Hk,dM,gM,mP,oR,CL,Bz,MR,ZM,UR,rk,bz,OP,_k],[0,0,[2,{[H]:`Encrypted`,[W]:FH}],1,0,0,1,0,0,[()=>D1,{[W]:FR}],2,1,[0,4],1,()=>CQ,[2,{[H]:`DryRun`,[W]:zV}]]],ZY=[3,G,voe,0,[UO,Dj,hA,wA,rj,CA,nj,Cle,dz,MR,_k,rM,Lie],[0,0,0,0,1,0,1,0,()=>C$,[()=>D1,{[W]:FR}],[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`InstanceTenancy`,[W]:vW}],[2,{[H]:`AmazonProvidedIpv6CidrBlock`,[W]:hB}]]],QY=[3,G,yoe,0,[Yz],[[()=>y$,{[H]:`Vpc`,[W]:JJ}]]],$Y=[3,G,soe,0,[wae],[0],1],eX=[3,G,Eoe,0,[Ase,Pse,Nse],[[1,{[H]:`DefaultTcpEstablishedTimeout`,[W]:VV}],[1,{[H]:`DefaultUdpTimeout`,[W]:GV}],[1,{[H]:`DefaultUdpStreamTimeout`,[W]:WV}]]],tX=[3,G,qoe,0,[vM,SM,_k],[0,0,[2,{[H]:`DryRun`,[W]:zV}]]],nX=[3,G,Joe,0,[kF,SM],[[2,{[H]:`Return`,[W]:kK}],[0,{[H]:`KeyPairId`,[W]:DW}]]],rX=[3,G,nse,0,[eA,_k],[[0,{[H]:`GroupName`,[W]:XH}],[2,{[H]:`DryRun`,[W]:zV}]],1],iX=[3,G,hse,0,[Qk,eA,_k],[0,0,[2,{[H]:`DryRun`,[W]:zV}]]],aX=[3,G,gse,0,[kF,Qk],[[2,{[H]:`Return`,[W]:kK}],[0,{[H]:`GroupId`,[W]:JH}]]],oX=[3,G,bse,0,[CL,_k],[0,[2,{[H]:`DryRun`,[W]:zV}]],1],sX=[3,G,xse,0,[kL,_k],[0,[2,{[H]:`DryRun`,[W]:zV}]],1],cX=[3,G,Ise,0,[Cz,_k],[0,[2,{[H]:`DryRun`,[W]:zV}]],1],lX=[3,G,Lse,0,[_z,_k],[0,[2,{[H]:`DryRun`,[W]:zV}]],1],uX=[3,G,Coe,0,[iB,tB,Eie,_k,qk],[[()=>zue,{[W]:nB}],[()=>Rue,{[W]:$z}],2,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}]]],dX=[3,G,woe,0,[oae],[[()=>A$,{[H]:`AvailabilityZoneInfo`,[W]:EB}]]],fX=[3,G,Ioe,0,[Nce,MA,AP,wle,Ole,CN,dP,_k,qk],[[()=>W$,{[W]:bk}],[()=>Z$,{[W]:jA}],[()=>b1,{[W]:jP}],2,2,1,0,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}]]],pX=[3,G,Loe,0,[dP,sM],[[0,{[H]:`NextToken`,[W]:NG}],[()=>Q$,{[H]:`ImagesSet`,[W]:sW}]]],mX=[3,G,Roe,0,[NA,qA,_k,qk,dP,CN],[[()=>n1,{[W]:xA}],2,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}],[0,{[H]:`NextToken`,[W]:NG}],[1,{[H]:`MaxResults`,[W]:nG}]]],hX=[3,G,zoe,0,[dP,OI],[[0,{[H]:`NextToken`,[W]:NG}],[()=>due,{[H]:`ReservationSet`,[W]:GK}]]],gX=[3,G,Boe,0,[_k,iM,qk,CN,dP,oM],[2,[64,{[W]:$j}],[()=>G$,{[W]:Jk}],1,0,2]],_X=[3,G,Voe,0,[iM,dP],[[()=>h1,{[H]:`InstanceTypeSet`,[W]:hW}],[0,{[H]:`NextToken`,[W]:NG}]]],vX=[3,G,Moe,0,[dP,CN,_k,Fle,qk],[0,1,[2,{[H]:`DryRun`,[W]:zV}],[()=>_1,{[H]:`InternetGatewayId`,[W]:MU}],[()=>G$,{[W]:Jk}]]],yX=[3,G,Noe,0,[Lle,dP],[[()=>v1,{[H]:`InternetGatewaySet`,[W]:NU}],[0,{[H]:`NextToken`,[W]:NG}]]],bX=[3,G,Yoe,0,[bM,wM,gj,_k,qk],[[()=>qle,{[W]:vM}],[()=>Jle,{[W]:SM}],2,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}]]],xX=[3,G,Xoe,0,[xM],[[()=>Yle,{[H]:`KeySet`,[W]:OW}]]],SX=[3,G,rse,0,[$k,_k,tA,qk],[[()=>nue,{[W]:Qk}],[2,{[H]:`DryRun`,[W]:zV}],[64,{[H]:`GroupName`,[W]:XH}],[()=>G$,{[W]:Jk}]]],CX=[3,G,ise,0,[QP],[[()=>rue,{[H]:`PlacementGroupSet`,[W]:oK}]]],wX=[3,G,sse,0,[rI,Hie,_k,qk],[[()=>uue,{[W]:tI}],2,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}]]],TX=[3,G,cse,0,[EI],[[()=>lue,{[H]:`RegionInfo`,[W]:zK}]]],EX=[3,G,lse,0,[dP,CN,_k,bI,qk],[0,1,[2,{[H]:`DryRun`,[W]:zV}],[()=>hue,{[W]:vI}],[()=>G$,{[W]:Jk}]]],DX=[3,G,use,0,[wI,dP],[[()=>gue,{[H]:`RouteTableSet`,[W]:YK}],[0,{[H]:`NextToken`,[W]:NG}]]],OX=[3,G,_se,0,[$k,tA,dP,CN,_k,qk],[[()=>Y$,{[W]:Qk}],[()=>X$,{[W]:eA}],0,1,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}]]],kX=[3,G,vse,0,[dP,tL],[[0,{[H]:`NextToken`,[W]:NG}],[()=>_ue,{[H]:`SecurityGroupInfo`,[W]:lq}]]],AX=[3,G,Sse,0,[CN,dP,yP,AF,wL,_k,qk],[1,0,[()=>b1,{[W]:jP}],[64,{[W]:jF}],[()=>yue,{[W]:CL}],[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}]]],jX=[3,G,Cse,0,[dP,sR],[[0,{[H]:`NextToken`,[W]:NG}],[()=>bue,{[H]:`SnapshotSet`,[W]:Lq}]]],MX=[3,G,wse,0,[qk,rL,dP,CN,_k],[[()=>G$,{[W]:Jk}],[()=>xue,{[W]:kL}],0,1,[2,{[H]:`DryRun`,[W]:zV}]]],NX=[3,G,Tse,0,[dP,pR],[[0,{[H]:`NextToken`,[W]:NG}],[()=>Cue,{[H]:`SubnetSet`,[W]:Rq}]]],PX=[3,G,Rse,0,[wz,qA,_k,qk,dP,CN],[[()=>jue,{[W]:Cz}],2,[2,{[H]:`DryRun`,[W]:zV}],[()=>G$,{[W]:Jk}],[0,{[H]:`NextToken`,[W]:NG}],[1,{[H]:`MaxResults`,[W]:nG}]]],FX=[3,G,zse,0,[dP,qz],[[0,{[H]:`NextToken`,[W]:NG}],[()=>Mue,{[H]:`VolumeSet`,[W]:VJ}]]],IX=[3,G,Bse,0,[qk,Tz,dP,CN,_k],[[()=>G$,{[W]:Jk}],[()=>Pue,{[W]:_z}],0,1,[2,{[H]:`DryRun`,[W]:zV}]]],LX=[3,G,Vse,0,[dP,Xz],[[0,{[H]:`NextToken`,[W]:NG}],[()=>Iue,{[H]:`VpcSet`,[W]:UJ}]]],RX=[3,G,Hse,0,[Cz,yk,Uk,xA,_k],[0,0,2,0,[2,{[H]:`DryRun`,[W]:zV}]],1],zX=[3,G,Goe,0,[oL,ck,GR],[[1,{[H]:`SizeInGB`,[W]:mq}],[1,{[H]:`Count`,[W]:SV}],[0,{[H]:`Type`,[W]:yJ}]]],BX=[3,G,Yse,0,[hk,dM,CL,zz,Bz,gM,UR,mP,DO,Hk,bz,OO,xk],[[2,{[H]:`DeleteOnTermination`,[W]:IV}],[1,{[H]:`Iops`,[W]:bW}],[0,{[H]:`SnapshotId`,[W]:Cq}],[1,{[H]:`VolumeSize`,[W]:HJ}],[0,{[H]:`VolumeType`,[W]:WJ}],[0,{[H]:`KmsKeyId`,[W]:wW}],[1,{[H]:`Throughput`,[W]:_J}],[0,{[H]:`OutpostArn`,[W]:IG}],[0,{[H]:`AvailabilityZone`,[W]:wB}],[2,{[H]:`Encrypted`,[W]:FH}],1,0,1]],VX=[3,G,Qse,0,[xk,FO,VO,RO,eN,DN,fN],[[1,{[H]:`EbsCardIndex`,[W]:XV}],[1,{[H]:`BaselineBandwidthInMbps`,[W]:FB}],[1,{[H]:`BaselineThroughputInMBps`,[W]:HB}],[1,{[H]:`BaselineIops`,[W]:LB}],[1,{[H]:`MaximumBandwidthInMbps`,[W]:HW}],[1,{[H]:`MaximumThroughputInMBps`,[W]:oG}],[1,{[H]:`MaximumIops`,[W]:YW}]]],HX=[3,G,Tk,0,[Ece,Rk,Ok,sP,sN,Fie,cN,$se],[[0,{[H]:`EbsOptimizedSupport`,[W]:yH}],[0,{[H]:`EncryptionSupport`,[W]:AH}],[()=>GX,{[H]:`EbsOptimizedInfo`,[W]:gH}],[0,{[H]:`NvmeSupport`,[W]:AG}],[1,{[H]:`MaximumEbsAttachments`,[W]:WW}],[0,{[H]:`AttachmentLimitType`,[W]:pB}],[1,{[H]:`MaximumEbsCards`,[W]:GW}],[()=>z$,{[H]:`EbsCardSet`,[W]:ZV}]]],UX=[3,G,yce,0,[EO,hk,uR,Cz,SO,Mz,OP,xk],[[4,{[H]:`AttachTime`,[W]:CB}],[2,{[H]:`DeleteOnTermination`,[W]:IV}],[0,{[H]:`Status`,[W]:Yq}],[0,{[H]:`VolumeId`,[W]:NJ}],[0,{[H]:`AssociatedResource`,[W]:_B}],[0,{[H]:`VolumeOwnerId`,[W]:LJ}],[()=>wQ,{[H]:`Operator`,[W]:KG}],[1,{[H]:`EbsCardIndex`,[W]:XV}]]],WX=[3,G,bce,0,[Cz,hk],[[0,{[H]:`VolumeId`,[W]:NJ}],[2,{[H]:`DeleteOnTermination`,[W]:IV}]]],GX=[3,G,Ok,0,[FO,VO,RO,eN,DN,fN],[[1,{[H]:`BaselineBandwidthInMbps`,[W]:FB}],[1,{[H]:`BaselineThroughputInMBps`,[W]:HB}],[1,{[H]:`BaselineIops`,[W]:LB}],[1,{[H]:`MaximumBandwidthInMbps`,[W]:HW}],[1,{[H]:`MaximumThroughputInMBps`,[W]:oG}],[1,{[H]:`MaximumIops`,[W]:YW}]]],KX=[3,G,Ek,0,[lN],[[1,{[H]:`MaximumEfaInterfaces`,[W]:KW}]]],qX=[3,G,ice,0,[uce,ace,sce,cce],[[0,{[H]:`ElasticGpuId`,[W]:aH}],[0,{[H]:`ElasticGpuAssociationId`,[W]:tH}],[0,{[H]:`ElasticGpuAssociationState`,[W]:nH}],[0,{[H]:`ElasticGpuAssociationTime`,[W]:iH}]]],JX=[3,G,Sk,0,[GR],[0],1],YX=[3,G,Ck,0,[GR,ck],[0,1],1],XX=[3,G,fce,0,[_ce,pce,hce,gce],[[0,{[H]:`ElasticInferenceAcceleratorArn`,[W]:oH}],[0,{[H]:`ElasticInferenceAcceleratorAssociationId`,[W]:sH}],[0,{[H]:`ElasticInferenceAcceleratorAssociationState`,[W]:cH}],[4,{[H]:`ElasticInferenceAcceleratorAssociationTime`,[W]:uH}]]],ZX=[3,G,Oce,0,[Pk,Lk],[2,()=>QX]],QX=[3,G,Ace,0,[Ik],[2]],$X=[3,G,Ak,0,[Vk],[[2,{[H]:`Enabled`,[W]:PH}]]],eZ=[3,G,Tce,0,[Vk],[2]],tZ=[3,G,Jk,0,[RN,Gz],[0,[()=>Oue,{[W]:rz}]]],nZ=[3,G,Fce,0,[RN,MN,ck,gN],[[0,{[H]:`Name`,[W]:pG}],[0,{[H]:`Manufacturer`,[W]:cG}],[1,{[H]:`Count`,[W]:SV}],[()=>rZ,{[H]:`MemoryInfo`,[W]:XW}]]],rZ=[3,G,Lce,0,[uL],[[1,{[H]:`SizeInMiB`,[W]:vq}]]],iZ=[3,G,Wk,0,[Hce,gR],[[()=>K$,{[H]:`Fpgas`,[W]:UH}],[1,{[H]:`TotalFpgaMemoryInMiB`,[W]:eJ}]]],aZ=[3,G,Gce,0,[xA,qM,_k],[0,2,[2,{[H]:`DryRun`,[W]:zV}]],1],oZ=[3,G,Kce,0,[xA,WR,kP],[[0,{[H]:`InstanceId`,[W]:PU}],[4,{[H]:`Timestamp`,[W]:vJ}],[0,{[H]:`Output`,[W]:qG}]]],sZ=[3,G,Jce,0,[RN,MN,ck,PM,rle,Qz,gN],[[0,{[H]:`Name`,[W]:pG}],[0,{[H]:`Manufacturer`,[W]:cG}],[1,{[H]:`Count`,[W]:SV}],[1,{[H]:`LogicalGpuCount`,[W]:MW}],[1,{[H]:`GpuPartitionSize`,[W]:QH}],[()=>Lue,{[H]:`WorkloadSet`,[W]:YJ}],[()=>cZ,{[H]:`MemoryInfo`,[W]:XW}]]],cZ=[3,G,Xce,0,[uL],[[1,{[H]:`SizeInMiB`,[W]:vq}]]],lZ=[3,G,Zk,0,[ile,vR],[[()=>q$,{[H]:`Gpus`,[W]:tU}],[1,{[H]:`TotalGpuMemoryInMiB`,[W]:nJ}]]],uZ=[3,G,$ce,0,[Qk,eA],[[0,{[H]:`GroupId`,[W]:JH}],[0,{[H]:`GroupName`,[W]:XH}]]],dZ=[3,G,iA,0,[sk],[[2,{[H]:`Configured`,[W]:xV}]]],fZ=[3,G,sle,0,[sk],[2]],pZ=[3,G,SA,0,[AO,dle],[[0,{[H]:`Arn`,[W]:kB}],[0,{[H]:`Id`,[W]:mU}]]],mZ=[3,G,TA,0,[AO,RN],[[0,{[H]:`Arn`,[W]:kB}],[0,{[H]:`Name`,[W]:pG}]]],hZ=[3,G,cM,0,[KP,$R,LO,vk,zk,lA,oj,RN,MF,NF,RL,GL,mR,Uz,zO,LR,Mse,Yj,lL,ose,RM,_le,sL,fL,Kk,jA,LA,lR,gP,Tae,OF,zP,jO,nM,hM,GF,wF],[[0,{[H]:`PlatformDetails`,[W]:rK}],[0,{[H]:`UsageOperation`,[W]:CJ}],[()=>P$,{[H]:`BlockDeviceMapping`,[W]:IB}],[0,{[H]:`Description`,[W]:qV}],[2,{[H]:`EnaSupport`,[W]:jH}],[0,{[H]:`Hypervisor`,[W]:rU}],[0,{[H]:`ImageOwnerAlias`,[W]:HU}],[0,{[H]:`Name`,[W]:pG}],[0,{[H]:`RootDeviceName`,[W]:AK}],[0,{[H]:`RootDeviceType`,[W]:jK}],[0,{[H]:`SriovNetSupport`,[W]:Aq}],[()=>i$,{[H]:`StateReason`,[W]:Nq}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`VirtualizationType`,[W]:KJ}],[0,{[H]:`BootMode`,[W]:RB}],[0,{[H]:`TpmSupport`,[W]:pJ}],[0,{[H]:`DeprecationTime`,[W]:UV}],[0,{[H]:`ImdsSupport`,[W]:lW}],[0,{[H]:`SourceInstanceId`,[W]:hq}],[0,{[H]:`DeregistrationProtection`,[W]:RV}],[0,{[H]:`LastLaunchedTime`,[W]:FW}],[2,{[H]:`ImageAllowed`,[W]:SU}],[0,{[H]:`SourceImageId`,[W]:_q}],[0,{[H]:`SourceImageRegion`,[W]:yq}],[2,{[H]:`FreeTierEligible`,[W]:VH}],[0,{[H]:`ImageId`,[W]:LU}],[0,{[H]:`ImageLocation`,[W]:RU}],[0,{[H]:`ImageState`,[W]:cW}],[0,{[H]:`ImageOwnerId`,[W]:UU}],[0,{[H]:`CreationDate`,[W]:ZB}],[2,{[H]:`IsPublic`,[W]:nW}],[()=>x1,{[H]:`ProductCodes`,[W]:XG}],[0,{[H]:`Architecture`,[W]:AB}],[0,{[H]:`ImageType`,[W]:_W}],[0,{[H]:`KernelId`,[W]:CW}],[0,{[H]:`RamdiskId`,[W]:RK}],[0,{[H]:`Platform`,[W]:TK}]]],gZ=[3,G,FA,0,[vM,uF,MR,_k],[[0,{[H]:`KeyName`,[W]:EW}],[21,{[H]:`PublicKeyMaterial`,[W]:mK}],[()=>D1,{[W]:FR}],[2,{[H]:`DryRun`,[W]:zV}]],2],_Z=[3,G,IA,0,[mM,vM,SM,mR],[[0,{[H]:`KeyFingerprint`,[W]:SW}],[0,{[H]:`KeyName`,[W]:EW}],[0,{[H]:`KeyPairId`,[W]:DW}],[()=>E1,{[H]:`TagSet`,[W]:uJ}]]],vZ=[3,G,pA,0,[kO,bR],[[()=>$$,{[H]:`Accelerators`,[W]:DB}],[1,{[H]:`TotalInferenceMemoryInMiB`,[W]:rJ}]]],yZ=[3,G,Tle,0,[ck,RN,MN,gN],[[1,{[H]:`Count`,[W]:SV}],[0,{[H]:`Name`,[W]:pG}],[0,{[H]:`Manufacturer`,[W]:cG}],[()=>bZ,{[H]:`MemoryInfo`,[W]:XW}]]],bZ=[3,G,Dle,0,[uL],[[1,{[H]:`SizeInMiB`,[W]:vq}]]],xZ=[3,G,lM,0,[jO,LO,rk,Dk,zk,lA,SA,zA,lce,vce,tP,mP,MF,NF,tL,RI,dL,RL,GL,mR,Uz,ZO,xae,QO,tk,iA,YM,yN,Ak,zO,KP,$R,ez,VP,mA,LR,bN,Oae,iP,OP,xL,xA,jA,lR,BP,GP,QL,vM,Pie,zP,$j,KM,TF,hM,GF,wF,LN,kL,_z,rF,aF],[[0,{[H]:`Architecture`,[W]:AB}],[()=>e1,{[H]:`BlockDeviceMapping`,[W]:IB}],[0,{[H]:`ClientToken`,[W]:gV}],[2,{[H]:`EbsOptimized`,[W]:hH}],[2,{[H]:`EnaSupport`,[W]:jH}],[0,{[H]:`Hypervisor`,[W]:rU}],[()=>pZ,{[H]:`IamInstanceProfile`,[W]:FU}],[0,{[H]:`InstanceLifecycle`,[W]:zU}],[()=>B$,{[H]:`ElasticGpuAssociationSet`,[W]:rH}],[()=>H$,{[H]:`ElasticInferenceAcceleratorAssociationSet`,[W]:lH}],[()=>s1,{[H]:`NetworkInterfaceSet`,[W]:CG}],[0,{[H]:`OutpostArn`,[W]:IG}],[0,{[H]:`RootDeviceName`,[W]:AK}],[0,{[H]:`RootDeviceType`,[W]:jK}],[()=>J$,{[H]:`GroupSet`,[W]:eU}],[2,{[H]:`SourceDestCheck`,[W]:aq}],[0,{[H]:`SpotInstanceRequestId`,[W]:bq}],[0,{[H]:`SriovNetSupport`,[W]:Aq}],[()=>i$,{[H]:`StateReason`,[W]:Nq}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`VirtualizationType`,[W]:KJ}],[()=>MY,{[H]:`CpuOptions`,[W]:sV}],[0,{[H]:`CapacityBlockId`,[W]:qB}],[0,{[H]:`CapacityReservationId`,[W]:uV}],[()=>TY,{[H]:`CapacityReservationSpecification`,[W]:pV}],[()=>dZ,{[H]:`HibernationOptions`,[W]:sU}],[()=>Xle,{[H]:`LicenseSet`,[W]:IW}],[()=>NZ,{[H]:`MetadataOptions`,[W]:$W}],[()=>$X,{[H]:`EnclaveOptions`,[W]:bH}],[0,{[H]:`BootMode`,[W]:RB}],[0,{[H]:`PlatformDetails`,[W]:rK}],[0,{[H]:`UsageOperation`,[W]:CJ}],[4,{[H]:`UsageOperationUpdateTime`,[W]:wJ}],[()=>jQ,{[H]:`PrivateDnsNameOptions`,[W]:$G}],[0,{[H]:`Ipv6Address`,[W]:wU}],[0,{[H]:`TpmSupport`,[W]:pJ}],[()=>kZ,{[H]:`MaintenanceOptions`,[W]:eG}],[0,{[H]:`CurrentInstanceBootMode`,[W]:tV}],[()=>RZ,{[H]:`NetworkPerformanceOptions`,[W]:DG}],[()=>wQ,{[H]:`Operator`,[W]:KG}],[()=>u1,{[H]:`SecondaryInterfaceSet`,[W]:Sq}],[0,{[H]:`InstanceId`,[W]:PU}],[0,{[H]:`ImageId`,[W]:LU}],[()=>KZ,{[H]:`InstanceState`,[W]:dW}],[0,{[H]:`PrivateDnsName`,[W]:tK}],[0,{[H]:`DnsName`,[W]:PV}],[0,{[H]:`Reason`,[W]:$K}],[0,{[H]:`KeyName`,[W]:EW}],[1,{[H]:`AmiLaunchIndex`,[W]:fB}],[()=>x1,{[H]:`ProductCodes`,[W]:XG}],[0,{[H]:`InstanceType`,[W]:mW}],[4,{[H]:`LaunchTime`,[W]:LW}],[()=>TQ,{[H]:`Placement`,[W]:EK}],[0,{[H]:`KernelId`,[W]:CW}],[0,{[H]:`RamdiskId`,[W]:RK}],[0,{[H]:`Platform`,[W]:TK}],[()=>hQ,{[H]:`Monitoring`,[W]:dG}],[0,{[H]:`SubnetId`,[W]:wq}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`PrivateIpAddress`,[W]:uK}],[0,{[H]:`IpAddress`,[W]:CU}]]],SZ=[3,G,fle,0,[Pk,Lk],[[2,{[H]:`EnaSrdEnabled`,[W]:wH}],[()=>CZ,{[H]:`EnaSrdUdpSpecification`,[W]:OH}]]],CZ=[3,G,ple,0,[Ik],[[2,{[H]:`EnaSrdUdpEnabled`,[W]:DH}]]],wZ=[3,G,yle,0,[mk,Bk],[[0,{[H]:`DeviceName`,[W]:MV}],[()=>UX,{[H]:`Ebs`,[W]:NH}]]],TZ=[3,G,xle,0,[mk,Bk,jz,WN],[[0,{[H]:`DeviceName`,[W]:MV}],[()=>WX,{[H]:`Ebs`,[W]:NH}],[0,{[H]:`VirtualName`,[W]:IJ}],[0,{[H]:`NoDevice`,[W]:_G}]]],EZ=[3,G,EA,0,[kj],[[0,{[H]:`Ipv4Prefix`,[W]:$U}]]],DZ=[3,G,Rle,0,[mA,hj],[[0,{[H]:`Ipv6Address`,[W]:wU}],[2,{[H]:`IsPrimaryIpv6`,[W]:JU}]]],OZ=[3,G,DA,0,[Ej],[[0,{[H]:`Ipv6Prefix`,[W]:tW}]]],kZ=[3,G,VA,0,[CO,eI],[[0,{[H]:`AutoRecovery`,[W]:vB}],[0,{[H]:`RebootMigration`,[W]:HK}]]],AZ=[3,G,HA,0,[CO],[0]],jZ=[3,G,UA,0,[EN,BL],[0,()=>t$]],MZ=[3,G,WA,0,[sA,oA,rA,aA,JA],[0,1,0,0,0]],NZ=[3,G,GA,0,[lR,sA,oA,rA,aA,JA],[[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`HttpTokens`,[W]:fU}],[1,{[H]:`HttpPutResponseHopLimit`,[W]:lU}],[0,{[H]:`HttpEndpoint`,[W]:aU}],[0,{[H]:`HttpProtocolIpv6`,[W]:cU}],[0,{[H]:`InstanceMetadataTags`,[W]:BU}]]],PZ=[3,G,XA,0,[MO,NO,vk,Yk,uA,$M,eP,gP,BP,rF,iF,RI,uR,kL,_z,aM,Oj,Sj,ik,OP],[[()=>FZ,{[H]:`Association`,[W]:jB}],[()=>IZ,{[H]:`Attachment`,[W]:MB}],[0,{[H]:`Description`,[W]:qV}],[()=>J$,{[H]:`GroupSet`,[W]:eU}],[()=>i1,{[H]:`Ipv6AddressesSet`,[W]:xU}],[0,{[H]:`MacAddress`,[W]:VW}],[0,{[H]:`NetworkInterfaceId`,[W]:SG}],[0,{[H]:`OwnerId`,[W]:RG}],[0,{[H]:`PrivateDnsName`,[W]:tK}],[0,{[H]:`PrivateIpAddress`,[W]:uK}],[()=>l1,{[H]:`PrivateIpAddressesSet`,[W]:cK}],[2,{[H]:`SourceDestCheck`,[W]:aq}],[0,{[H]:`Status`,[W]:Yq}],[0,{[H]:`SubnetId`,[W]:wq}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`InterfaceType`,[W]:yW}],[()=>r1,{[H]:`Ipv4PrefixSet`,[W]:YU}],[()=>a1,{[H]:`Ipv6PrefixSet`,[W]:XU}],[()=>kY,{[H]:`ConnectionTrackingConfiguration`,[W]:_V}],[()=>wQ,{[H]:`Operator`,[W]:KG}]]],FZ=[3,G,ZA,0,[Dae,Rae,sj,GP,$P],[[0,{[H]:`CarrierIp`,[W]:eV}],[0,{[H]:`CustomerOwnedIp`,[W]:cV}],[0,{[H]:`IpOwnerId`,[W]:GU}],[0,{[H]:`PublicDnsName`,[W]:nK}],[0,{[H]:`PublicIp`,[W]:sK}]]],IZ=[3,G,QA,0,[EO,xO,hk,fk,uR,VN,Fk,jk],[[4,{[H]:`AttachTime`,[W]:CB}],[0,{[H]:`AttachmentId`,[W]:dB}],[2,{[H]:`DeleteOnTermination`,[W]:IV}],[1,{[H]:`DeviceIndex`,[W]:AV}],[0,{[H]:`Status`,[W]:Yq}],[1,{[H]:`NetworkCardIndex`,[W]:gG}],[()=>SZ,{[H]:`EnaSrdSpecification`,[W]:TH}],[1,{[H]:`EnaQueueCount`,[W]:xH}]]],LZ=[3,G,ej,0,[Iie,hk,vk,fk,Yk,fA,uA,eP,rF,iF,HL,kL,Oie,aM,VN,Oj,dj,Sj,uj,sF,Fk,poe,jk],[[2,{[H]:`AssociatePublicIpAddress`,[W]:mB}],[2,{[H]:`DeleteOnTermination`,[W]:IV}],[0,{[H]:`Description`,[W]:qV}],[1,{[H]:`DeviceIndex`,[W]:AV}],[()=>C1,{[W]:UI}],[1,{[H]:`Ipv6AddressCount`,[W]:gU}],[()=>i1,{[H]:`Ipv6Addresses`,[W]:xU}],[0,{[H]:`NetworkInterfaceId`,[W]:SG}],[0,{[H]:`PrivateIpAddress`,[W]:uK}],[()=>oue,{[H]:`PrivateIpAddresses`,[W]:cK}],[1,{[H]:`SecondaryPrivateIpAddressCount`,[W]:jq}],[0,{[H]:`SubnetId`,[W]:wq}],2,0,1,[()=>Wle,{[W]:kj}],1,[()=>Gle,{[W]:Ej}],1,2,()=>ZX,()=>OY,1]],RZ=[3,G,ij,0,[HO],[[0,{[H]:`BandwidthWeighting`,[W]:UB}]]],zZ=[3,G,aj,0,[HO],[0]],BZ=[3,G,pj,0,[MO,EF,BP,rF],[[()=>FZ,{[H]:`Association`,[W]:jB}],[2,{[H]:`Primary`,[W]:DK}],[0,{[H]:`PrivateDnsName`,[W]:tK}],[0,{[H]:`PrivateIpAddress`,[W]:uK}]]],VZ=[3,G,Kj,0,[NO,$M,cL,gP,iF,RI,uR,YL,LL,aM],[[()=>HZ,{[H]:`Attachment`,[W]:MB}],[0,{[H]:`MacAddress`,[W]:VW}],[0,{[H]:`SecondaryInterfaceId`,[W]:gq}],[0,{[H]:`OwnerId`,[W]:RG}],[()=>d1,{[H]:`PrivateIpAddressSet`,[W]:lK}],[2,{[H]:`SourceDestCheck`,[W]:aq}],[0,{[H]:`Status`,[W]:Yq}],[0,{[H]:`SecondarySubnetId`,[W]:Iq}],[0,{[H]:`SecondaryNetworkId`,[W]:Oq}],[0,{[H]:`InterfaceType`,[W]:yW}]]],HZ=[3,G,Rj,0,[EO,xO,hk,fk,uR,VN],[[4,{[H]:`AttachTime`,[W]:CB}],[0,{[H]:`AttachmentId`,[W]:dB}],[2,{[H]:`DeleteOnTermination`,[W]:IV}],[1,{[H]:`DeviceIndex`,[W]:AV}],[0,{[H]:`Status`,[W]:Yq}],[1,{[H]:`NetworkCardIndex`,[W]:gG}]]],UZ=[3,G,Bj,0,[rF],[[0,{[H]:`PrivateIpAddress`,[W]:uK}]]],WZ=[3,G,Uj,0,[rF],[0],1],GZ=[3,G,Gj,0,[hk,fk,iF,eF,YL,aM,VN],[2,1,[()=>f1,{[W]:rF}],1,0,0,1]],KZ=[3,G,Xj,0,[ok,RN],[[1,{[H]:`Code`,[W]:bV}],[0,{[H]:`Name`,[W]:pG}]]],qZ=[3,G,Ij,0,[xA,foe,_F],[[0,{[H]:`InstanceId`,[W]:PU}],[()=>KZ,{[H]:`CurrentState`,[W]:hV}],[()=>KZ,{[H]:`PreviousState`,[W]:bK}]]],JZ=[3,G,qj,0,[NR,Jse,sP,Rk],[[1,{[H]:`TotalSizeInGB`,[W]:dJ}],[()=>R$,{[H]:`Disks`,[W]:YV}],[0,{[H]:`NvmeSupport`,[W]:AG}],[0,{[H]:`EncryptionSupport`,[W]:AH}]]],YZ=[3,G,tM,0,[$j,Eae,Kk,tR,UL,iR,gae,lA,cF,lz,gN,Jj,qj,Tk,nP,Zk,Wk,JP,pA,lle,_ae,joe,Rie,FI,XN,lP,cP,QM,rP,gF,$F,_L],[[0,{[H]:`InstanceType`,[W]:mW}],[2,{[H]:`CurrentGeneration`,[W]:$B}],[2,{[H]:`FreeTierEligible`,[W]:VH}],[()=>Eue,{[H]:`SupportedUsageClasses`,[W]:Uq}],[()=>fue,{[H]:`SupportedRootDeviceTypes`,[W]:Mq}],[()=>kue,{[H]:`SupportedVirtualizationTypes`,[W]:Gq}],[2,{[H]:`BareMetal`,[W]:zB}],[0,{[H]:`Hypervisor`,[W]:rU}],[()=>NQ,{[H]:`ProcessorInfo`,[W]:fK}],[()=>h$,{[H]:`VCpuInfo`,[W]:OJ}],[()=>dQ,{[H]:`MemoryInfo`,[W]:XW}],[2,{[H]:`InstanceStorageSupported`,[W]:oW}],[()=>JZ,{[H]:`InstanceStorageInfo`,[W]:aW}],[()=>HX,{[H]:`EbsInfo`,[W]:fH}],[()=>_Q,{[H]:`NetworkInfo`,[W]:TG}],[()=>lZ,{[H]:`GpuInfo`,[W]:qH}],[()=>iZ,{[H]:`FpgaInfo`,[W]:LH}],[()=>DQ,{[H]:`PlacementGroupInfo`,[W]:aK}],[()=>vZ,{[H]:`InferenceAcceleratorInfo`,[W]:_U}],[2,{[H]:`HibernationSupported`,[W]:dU}],[2,{[H]:`BurstablePerformanceSupported`,[W]:VB}],[2,{[H]:`DedicatedHostsSupported`,[W]:kV}],[2,{[H]:`AutoRecoverySupported`,[W]:gB}],[()=>I$,{[H]:`SupportedBootModes`,[W]:rq}],[0,{[H]:`NitroEnclavesSupport`,[W]:yG}],[0,{[H]:`NitroTpmSupport`,[W]:MG}],[()=>SQ,{[H]:`NitroTpmInfo`,[W]:jG}],[()=>cQ,{[H]:`MediaAcceleratorInfo`,[W]:BW}],[()=>xQ,{[H]:`NeuronInfo`,[W]:EG}],[0,{[H]:`PhcSupport`,[W]:yK}],[0,{[H]:`RebootMigrationSupport`,[W]:VK}],[2,{[H]:`SupportedInRegion`,[W]:xq}]]],XZ=[3,G,yA,0,[PO,bA,gP,mR],[[()=>g1,{[H]:`AttachmentSet`,[W]:SB}],[0,{[H]:`InternetGatewayId`,[W]:MU}],[0,{[H]:`OwnerId`,[W]:RG}],[()=>E1,{[H]:`TagSet`,[W]:uJ}]]],ZZ=[3,G,Ale,0,[lR,_z],[[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`VpcId`,[W]:jJ}]]],QZ=[3,G,wj,0,[Tj,Gk,kR,YR,Mj,Pj,pF],[[0,{[H]:`IpProtocol`,[W]:ZU}],[1,{[H]:`FromPort`,[W]:RH}],[1,{[H]:`ToPort`,[W]:cJ}],[()=>Due,{[H]:`Groups`,[W]:nU}],[()=>Ule,{[H]:`IpRanges`,[W]:rW}],[()=>Kle,{[H]:`Ipv6Ranges`,[W]:iW}],[()=>aue,{[H]:`PrefixListIds`,[W]:gK}]]],$Z=[3,G,Nj,0,[vk,qO],[[0,{[H]:`Description`,[W]:qV}],[0,{[H]:`CidrIp`,[W]:nV}]]],eQ=[3,G,bj,0,[kj],[0]],tQ=[3,G,xj,0,[Ej],[0]],nQ=[3,G,Fj,0,[vk,JO],[[0,{[H]:`Description`,[W]:qV}],[0,{[H]:`CidrIpv6`,[W]:rV}]]],rQ=[3,G,DM,0,[SM,mR,vM,mM,_M],[[0,{[H]:`KeyPairId`,[W]:DW}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`KeyName`,[W]:EW}],[0,{[H]:`KeyFingerprint`,[W]:SW}],[()=>oY,{[H]:`KeyMaterial`,[W]:TW}]]],iQ=[3,G,TM,0,[SM,OM,mR,lF,ak,vM,mM],[[0,{[H]:`KeyPairId`,[W]:DW}],[0,{[H]:`KeyType`,[W]:kW}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`PublicKey`,[W]:pK}],[4,{[H]:`CreateTime`,[W]:yV}],[0,{[H]:`KeyName`,[W]:EW}],[0,{[H]:`KeyFingerprint`,[W]:SW}]]],aQ=[3,G,GM,0,[UM,WM,Kz],[0,0,0]],oQ=[3,G,MM,0,[AM],[[0,{[H]:`LicenseConfigurationArn`,[W]:jW}]]],sQ=[3,G,jM,0,[AM],[0]],cQ=[3,G,QM,0,[kO,DR],[[()=>Qle,{[H]:`Accelerators`,[W]:DB}],[1,{[H]:`TotalMediaMemoryInMiB`,[W]:oJ}]]],lQ=[3,G,iN,0,[ck,RN,MN,gN],[[1,{[H]:`Count`,[W]:SV}],[0,{[H]:`Name`,[W]:pG}],[0,{[H]:`Manufacturer`,[W]:cG}],[()=>uQ,{[H]:`MemoryInfo`,[W]:XW}]]],uQ=[3,G,oN,0,[uL],[[1,{[H]:`SizeInMiB`,[W]:vq}]]],dQ=[3,G,gN,0,[uL],[[1,{[H]:`SizeInMiB`,[W]:vq}]]],fQ=[3,G,pN,0,[xA,RI,lk,_k,lae,rz,LO,uk,$j,kM,TI,qR,OA,Yk,Dk,RL,zk],[[0,{[H]:`InstanceId`,[W]:PU}],[()=>dY,0],[()=>dY,0],[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`Attribute`,[W]:NB}],[()=>iY,{[H]:`Value`,[W]:DJ}],[()=>t1,{[H]:`BlockDeviceMapping`,[W]:IB}],[()=>dY,{[H]:`DisableApiTermination`,[W]:CV}],[()=>fY,{[H]:`InstanceType`,[W]:mW}],[()=>fY,{[H]:`Kernel`,[W]:AW}],[()=>fY,{[H]:`Ramdisk`,[W]:QK}],[()=>xY,{[H]:`UserData`,[W]:bJ}],[()=>fY,{[H]:`InstanceInitiatedShutdownBehavior`,[W]:IU}],[()=>Y$,{[W]:Qk}],[()=>dY,{[H]:`EbsOptimized`,[W]:hH}],[()=>fY,{[H]:`SriovNetSupport`,[W]:Aq}],[()=>dY,{[H]:`EnaSupport`,[W]:jH}]],1],pQ=[3,G,ON,0,[Cz,_k,oR,Bz,dM,UR,ZM],[0,2,1,0,1,1,2],1],mQ=[3,G,kN,0,[Az],[[()=>v$,{[H]:`VolumeModification`,[W]:FJ}]]],hQ=[3,G,LN,0,[lR],[[0,{[H]:`State`,[W]:Jq}]]],gQ=[3,G,UN,0,[VN,aP,vN,kie,dae,NP,koe,uN,dN],[[1,{[H]:`NetworkCardIndex`,[W]:gG}],[0,{[H]:`NetworkPerformance`,[W]:OG}],[1,{[H]:`MaximumNetworkInterfaces`,[W]:QW}],[1,{[H]:`AdditionalFlexibleNetworkInterfaces`,[W]:oB}],[1,{[H]:`BaselineBandwidthInGbps`,[W]:PB}],[1,{[H]:`PeakBandwidthInGbps`,[W]:YG}],[1,{[H]:`DefaultEnaQueueCountPerInterface`,[W]:DV}],[1,{[H]:`MaximumEnaQueueCount`,[W]:qW}],[1,{[H]:`MaximumEnaQueueCountPerInterface`,[W]:JW}]]],_Q=[3,G,nP,0,[aP,vN,_N,Qoe,BN,mle,hle,Qj,zk,jce,Ek,xce,kce,yae,Rce,ik,zL,wN,gle],[[0,{[H]:`NetworkPerformance`,[W]:OG}],[1,{[H]:`MaximumNetworkInterfaces`,[W]:QW}],[1,{[H]:`MaximumNetworkCards`,[W]:ZW}],[1,{[H]:`DefaultNetworkCardIndex`,[W]:NV}],[()=>$le,{[H]:`NetworkCards`,[W]:hG}],[1,{[H]:`Ipv4AddressesPerInterface`,[W]:vU}],[1,{[H]:`Ipv6AddressesPerInterface`,[W]:yU}],[2,{[H]:`Ipv6Supported`,[W]:pW}],[0,{[H]:`EnaSupport`,[W]:jH}],[2,{[H]:`EfaSupported`,[W]:kH}],[()=>KX,{[H]:`EfaInfo`,[W]:pH}],[2,{[H]:`EncryptionInTransitSupported`,[W]:dH}],[2,{[H]:`EnaSrdSupported`,[W]:EH}],[()=>N$,{[H]:`BandwidthWeightings`,[W]:WB}],[0,{[H]:`FlexibleEnaQueuesSupport`,[W]:IH}],[()=>eX,{[H]:`ConnectionTrackingConfiguration`,[W]:_V}],[2,{[H]:`SecondaryNetworkSupported`,[W]:kq}],[1,{[H]:`MaximumSecondaryNetworkInterfaces`,[W]:iG}],[1,{[H]:`Ipv4AddressesPerSecondaryInterface`,[W]:bU}]]],vQ=[3,G,GN,0,[ck,Kz],[[1,{[H]:`Count`,[W]:SV}],[1,{[H]:`Version`,[W]:qJ}]]],yQ=[3,G,KN,0,[ck,RN,Pae,gN],[[1,{[H]:`Count`,[W]:SV}],[0,{[H]:`Name`,[W]:pG}],[()=>vQ,{[H]:`CoreInfo`,[W]:aV}],[()=>bQ,{[H]:`MemoryInfo`,[W]:XW}]]],bQ=[3,G,JN,0,[uL],[[1,{[H]:`SizeInMiB`,[W]:vq}]]],xQ=[3,G,rP,0,[YN,OR],[[()=>eue,{[H]:`NeuronDevices`,[W]:vG}],[1,{[H]:`TotalNeuronDeviceMemoryInMiB`,[W]:sJ}]]],SQ=[3,G,cP,0,[aR],[[()=>tue,{[H]:`SupportedVersions`,[W]:Kq}]]],CQ=[3,G,SP,0,[MP],[0]],wQ=[3,G,CP,0,[NN,MP,ale],[[2,{[H]:`Managed`,[W]:lG}],[0,{[H]:`Principal`,[W]:JG}],[2,{[H]:`HiddenByDefault`,[W]:iU}]]],TQ=[3,G,TF,0,[OO,sae,eA,mF,ole,HR,zI,cle,Qk,DO],[[0,{[H]:`AvailabilityZoneId`,[W]:TB}],[0,{[H]:`Affinity`,[W]:OB}],[0,{[H]:`GroupName`,[W]:XH}],[1,{[H]:`PartitionNumber`,[W]:_K}],[0,{[H]:`HostId`,[W]:oU}],[0,{[H]:`Tenancy`,[W]:Qq}],[0,{[H]:`SpreadDomain`,[W]:oq}],[0,{[H]:`HostResourceGroupArn`,[W]:uU}],[0,{[H]:`GroupId`,[W]:JH}],[0,{[H]:`AvailabilityZone`,[W]:wB}]]],EQ=[3,G,qP,0,[eA,lR,dR,LP,Qk,mR,Uce,ML,IM,OP],[[0,{[H]:`GroupName`,[W]:XH}],[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`Strategy`,[W]:Xq}],[1,{[H]:`PartitionCount`,[W]:ZG}],[0,{[H]:`GroupId`,[W]:JH}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`GroupArn`,[W]:WH}],[0,{[H]:`SpreadLevel`,[W]:Tq}],[0,{[H]:`LinkedGroupId`,[W]:PW}],[()=>wQ,{[H]:`Operator`,[W]:KG}]]],DQ=[3,G,JP,0,[XL],[[()=>iue,{[H]:`SupportedStrategies`,[W]:zq}]]],OQ=[3,G,dF,0,[vk,dF],[[0,{[H]:`Description`,[W]:qV}],[0,{[H]:`PrefixListId`,[W]:hK}]]],kQ=[3,G,HP,0,[cA,Nk,Mk],[[0,{[H]:`HostnameType`,[W]:pU}],[2,{[H]:`EnableResourceNameDnsARecord`,[W]:CH}],[2,{[H]:`EnableResourceNameDnsAAAARecord`,[W]:SH}]]],AQ=[3,G,UP,0,[cA,Nk,Mk],[0,2,2]],jQ=[3,G,WP,0,[cA,Nk,Mk],[[0,{[H]:`HostnameType`,[W]:pU}],[2,{[H]:`EnableResourceNameDnsARecord`,[W]:CH}],[2,{[H]:`EnableResourceNameDnsAAAARecord`,[W]:SH}]]],MQ=[3,G,tF,0,[EF,rF],[[2,{[H]:`Primary`,[W]:DK}],[0,{[H]:`PrivateIpAddress`,[W]:uK}]]],NQ=[3,G,cF,0,[PI,LI,BI,MN],[[()=>O$,{[H]:`SupportedArchitectures`,[W]:tq}],[1,{[H]:`SustainedClockSpeedInGhz`,[W]:iq}],[()=>wue,{[H]:`SupportedFeatures`,[W]:sq}],[0,{[H]:`Manufacturer`,[W]:cG}]]],PQ=[3,G,RP,0,[PP,IP],[[0,{[H]:`ProductCode`,[W]:QG}],[0,{[H]:`Type`,[W]:yJ}]]],FQ=[3,G,yF,0,[Xk],[[0,{[H]:`GatewayId`,[W]:KH}]]],IQ=[3,G,HF,0,[NA,_k],[[()=>n1,{[W]:xA}],[2,{[H]:`DryRun`,[W]:zV}]],1],LQ=[3,G,iI,0,[Qk,hF,JR,_z,Nz],[[0,{[H]:`GroupId`,[W]:JH}],[0,{[H]:`PeeringStatus`,[W]:vK}],[0,{[H]:`UserId`,[W]:xJ}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`VpcPeeringConnectionId`,[W]:RJ}]]],RQ=[3,G,DI,0,[_P,nA,tI,Pce],[[0,{[H]:`OptInStatus`,[W]:zG}],[()=>cue,{[H]:`GeographySet`,[W]:$H}],[0,{[H]:`RegionName`,[W]:UK}],[0,{[H]:`RegionEndpoint`,[W]:NK}]]],zQ=[3,G,LF,0,[RN],[[0,{[H]:`Name`,[W]:pG}]]],BQ=[3,G,kI,0,[KF,gP,JF,Yk,uM],[[0,{[H]:`ReservationId`,[W]:LK}],[0,{[H]:`OwnerId`,[W]:RG}],[0,{[H]:`RequesterId`,[W]:BK}],[()=>J$,{[H]:`GroupSet`,[W]:eU}],[()=>o1,{[H]:`InstancesSet`,[W]:uW}]]],VQ=[3,G,dI,0,[ZI,Qk,vA,Tj,Gk,kR,YO,JO,dF,RF,vk],[[0,{[H]:`SecurityGroupRuleId`,[W]:dq}],[0,{[H]:`GroupId`,[W]:JH}],[2,{[H]:`IsEgress`,[W]:kU}],[0,{[H]:`IpProtocol`,[W]:ZU}],[1,{[H]:`FromPort`,[W]:RH}],[1,{[H]:`ToPort`,[W]:cJ}],[0,{[H]:`CidrIpv4`,[W]:iV}],[0,{[H]:`CidrIpv6`,[W]:rV}],[0,{[H]:`PrefixListId`,[W]:hK}],[0,{[H]:`ReferencedGroupId`,[W]:FK}],[0,{[H]:`Description`,[W]:qV}]]],HQ=[3,G,oI,0,[Qk,YI,_k,KL,qL,Tj,Gk,kR,qO,Cj],[[0,{[H]:`GroupId`,[W]:JH}],[()=>w1,{[W]:ZI}],[2,{[H]:`DryRun`,[W]:zV}],[0,{[H]:`SourceSecurityGroupName`,[W]:Pq}],[0,{[H]:`SourceSecurityGroupOwnerId`,[W]:Fq}],[0,{[H]:`IpProtocol`,[W]:ZU}],[1,{[H]:`FromPort`,[W]:RH}],[1,{[H]:`ToPort`,[W]:cJ}],[0,{[H]:`CidrIp`,[W]:nV}],[()=>y1,{[H]:`IpPermissions`,[W]:QU}]],1],UQ=[3,G,sI,0,[kF,QR,pI],[[2,{[H]:`Return`,[W]:kK}],[()=>y1,{[H]:`UnknownIpPermissionSet`,[W]:SJ}],[()=>S1,{[H]:`RevokedSecurityGroupRuleSet`,[W]:WK}]]],WQ=[3,G,cI,0,[qO,Gk,Qk,eA,Cj,Tj,KL,qL,kR,YI,_k],[0,1,0,0,[()=>y1,0],0,0,0,1,[()=>w1,{[W]:ZI}],[2,{[H]:`DryRun`,[W]:zV}]]],GQ=[3,G,lI,0,[kF,QR,pI],[[2,{[H]:`Return`,[W]:kK}],[()=>y1,{[H]:`UnknownIpPermissionSet`,[W]:SJ}],[()=>S1,{[H]:`RevokedSecurityGroupRuleSet`,[W]:WK}]]],KQ=[3,G,AI,0,[dk,pk,gk,kk,Xk,xA,cj,$N,_R,FM,KO,eP,pP,lR,Nz,XO,xP,vle],[[0,{[H]:`DestinationCidrBlock`,[W]:wV}],[0,{[H]:`DestinationIpv6CidrBlock`,[W]:jV}],[0,{[H]:`DestinationPrefixListId`,[W]:LV}],[0,{[H]:`EgressOnlyInternetGatewayId`,[W]:vH}],[0,{[H]:`GatewayId`,[W]:KH}],[0,{[H]:`InstanceId`,[W]:PU}],[0,{[H]:`InstanceOwnerId`,[W]:WU}],[0,{[H]:`NatGatewayId`,[W]:xG}],[0,{[H]:`TransitGatewayId`,[W]:tJ}],[0,{[H]:`LocalGatewayId`,[W]:NW}],[0,{[H]:`CarrierGatewayId`,[W]:QB}],[0,{[H]:`NetworkInterfaceId`,[W]:SG}],[0,{[H]:`Origin`,[W]:FG}],[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`VpcPeeringConnectionId`,[W]:RJ}],[0,{[H]:`CoreNetworkArn`,[W]:oV}],[0,{[H]:`OdbNetworkArn`,[W]:HG}],[0,{[H]:`IpAddress`,[W]:CU}]]],qQ=[3,G,CI,0,[cae,xF,vI,jI,mR,_z,gP],[[()=>mue,{[H]:`AssociationSet`,[W]:xB}],[()=>sue,{[H]:`PropagatingVgwSet`,[W]:SK}],[0,{[H]:`RouteTableId`,[W]:JK}],[()=>pue,{[H]:`RouteSet`,[W]:KK}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`OwnerId`,[W]:RG}]]],JQ=[3,G,mI,0,[jN,hI,vI,kL,Xk,oF,wO],[[2,{[H]:`Main`,[W]:sG}],[0,{[H]:`RouteTableAssociationId`,[W]:qK}],[0,{[H]:`RouteTableId`,[W]:JK}],[0,{[H]:`SubnetId`,[W]:wq}],[0,{[H]:`GatewayId`,[W]:KH}],[0,{[H]:`PublicIpv4Pool`,[W]:dK}],[()=>YQ,{[H]:`AssociationState`,[W]:yB}]]],YQ=[3,G,_I,0,[lR,FL],[[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`StatusMessage`,[W]:Eq}]]],XQ=[3,G,VF,0,[Vk],[[2,{[H]:`Enabled`,[W]:PH}]],1],ZQ=[3,G,UF,0,[nN,rN,LO,jA,$j,fA,uA,hM,vM,LN,TF,GF,GI,tL,kL,qR,Sk,wk,MR,HM,KA,loe,ZO,tk,iA,zM,yN,Ak,VP,bN,lk,Dce,iP,OP,xL,_k,uk,OA,rF,rk,yO,tP,SA,Dk],[1,1,[()=>F$,{[W]:IO}],0,0,1,[()=>i1,{[W]:mA}],0,0,[()=>XQ,0],[()=>TQ,0],0,[()=>C1,{[W]:UI}],[()=>vue,{[W]:nL}],0,[()=>aY,0],[()=>V$,0],[()=>U$,{[W]:Ck}],[()=>D1,{[W]:FR}],()=>aQ,()=>jZ,()=>$Y,()=>NY,()=>wY,()=>fZ,[()=>Zle,{[W]:VM}],()=>MZ,()=>eZ,()=>AQ,()=>AZ,2,2,()=>zZ,()=>CQ,[()=>p1,{[W]:SL}],[2,{[H]:`DryRun`,[W]:zV}],[2,{[H]:`DisableApiTermination`,[W]:CV}],[0,{[H]:`InstanceInitiatedShutdownBehavior`,[W]:IU}],[0,{[H]:`PrivateIpAddress`,[W]:uK}],[0,{[H]:`ClientToken`,[gW]:1,[W]:gV}],[0,{[H]:`AdditionalInfo`,[W]:lB}],[()=>c1,{[H]:`NetworkInterface`,[W]:wG}],[()=>mZ,{[H]:`IamInstanceProfile`,[W]:FU}],[2,{[H]:`EbsOptimized`,[W]:hH}]],2],QQ=[3,G,nL,0,[Qk,fj,mR,_z,HI,gP,eA,vk,Cj],[[0,{[H]:`GroupId`,[W]:JH}],[()=>y1,{[H]:`IpPermissionsEgress`,[W]:qU}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`SecurityGroupArn`,[W]:cq}],[0,{[H]:`OwnerId`,[W]:RG}],[0,{[H]:`GroupName`,[W]:XH}],[0,{[H]:`GroupDescription`,[W]:GH}],[()=>y1,{[H]:`IpPermissions`,[W]:QU}]]],$Q=[3,G,$I,0,[ZI,Qk,nle,vA,Tj,Gk,kR,YO,JO,dF,zF,vk,mR,JI],[[0,{[H]:`SecurityGroupRuleId`,[W]:dq}],[0,{[H]:`GroupId`,[W]:JH}],[0,{[H]:`GroupOwnerId`,[W]:ZH}],[2,{[H]:`IsEgress`,[W]:kU}],[0,{[H]:`IpProtocol`,[W]:ZU}],[1,{[H]:`FromPort`,[W]:RH}],[1,{[H]:`ToPort`,[W]:cJ}],[0,{[H]:`CidrIpv4`,[W]:iV}],[0,{[H]:`CidrIpv6`,[W]:rV}],[0,{[H]:`PrefixListId`,[W]:hK}],[()=>LQ,{[H]:`ReferencedGroupInfo`,[W]:IK}],[0,{[H]:`Description`,[W]:qV}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`SecurityGroupRuleArn`,[W]:uq}]]],e$=[3,G,cR,0,[hP,mP,mR,eR,FF,$L,DO,zR,GO,goe,Vce,CL,Cz,lR,IL,ZL,DF,gP,vk,zz,Hk,gM,Ooe],[[0,{[H]:`OwnerAlias`,[W]:LG}],[0,{[H]:`OutpostArn`,[W]:IG}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`StorageTier`,[W]:Hq}],[4,{[H]:`RestoreExpiryTime`,[W]:MK}],[0,{[H]:`SseType`,[W]:Vq}],[0,{[H]:`AvailabilityZone`,[W]:wB}],[0,{[H]:`TransferType`,[W]:hJ}],[1,{[H]:`CompletionDurationMinutes`,[W]:XB}],[4,{[H]:`CompletionTime`,[W]:vV}],[1,{[H]:`FullSnapshotSizeInBytes`,[W]:BH}],[0,{[H]:`SnapshotId`,[W]:Cq}],[0,{[H]:`VolumeId`,[W]:NJ}],[0,{[H]:`Status`,[W]:Yq}],[0,{[H]:`StatusMessage`,[W]:Eq}],[4,{[H]:`StartTime`,[W]:Bq}],[0,{[H]:`Progress`,[W]:OK}],[0,{[H]:`OwnerId`,[W]:RG}],[0,{[H]:`Description`,[W]:qV}],[1,{[H]:`VolumeSize`,[W]:HJ}],[2,{[H]:`Encrypted`,[W]:FH}],[0,{[H]:`KmsKeyId`,[W]:wW}],[0,{[H]:`DataEncryptionKeyId`,[W]:EV}]]],t$=[3,G,PL,0,[SN,bL,mae,Wz,Ble],[0,0,1,4,0]],n$=[3,G,pL,0,[NA,yO,_k],[[()=>n1,{[W]:xA}],[0,{[H]:`AdditionalInfo`,[W]:lB}],[2,{[H]:`DryRun`,[W]:zV}]],1],r$=[3,G,mL,0,[TL],[[()=>m1,{[H]:`InstancesSet`,[W]:uW}]]],i$=[3,G,GL,0,[ok,PN],[[0,{[H]:`Code`,[W]:bV}],[0,{[H]:`Message`,[W]:uG}]]],a$=[3,G,hL,0,[NA,ule,VL,_k,Uk],[[()=>n1,{[W]:xA}],2,2,[2,{[H]:`DryRun`,[W]:zV}],[2,{[H]:`Force`,[W]:HH}]],1],o$=[3,G,gL,0,[DL],[[()=>m1,{[H]:`InstancesSet`,[W]:uW}]]],s$=[3,G,fR,0,[OO,Sce,tN,zae,gP,jie,gA,mR,NI,mP,tce,YA,HP,BO,GR,kL,lR,_z,UO,Aie,DO,Aoe,xN],[[0,{[H]:`AvailabilityZoneId`,[W]:TB}],[1,{[H]:`EnableLniAtDeviceIndex`,[W]:mH}],[2,{[H]:`MapCustomerOwnedIpOnLaunch`,[W]:UW}],[0,{[H]:`CustomerOwnedIpv4Pool`,[W]:lV}],[0,{[H]:`OwnerId`,[W]:RG}],[2,{[H]:`AssignIpv6AddressOnCreation`,[W]:cB}],[()=>Sue,{[H]:`Ipv6CidrBlockAssociationSet`,[W]:EU}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`SubnetArn`,[W]:nq}],[0,{[H]:`OutpostArn`,[W]:IG}],[2,{[H]:`EnableDns64`,[W]:$V}],[2,{[H]:`Ipv6Native`,[W]:VU}],[()=>kQ,{[H]:`PrivateDnsNameOptionsOnLaunch`,[W]:eK}],[()=>CY,{[H]:`BlockPublicAccessStates`,[W]:BB}],[0,{[H]:`Type`,[W]:yJ}],[0,{[H]:`SubnetId`,[W]:wq}],[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`CidrBlock`,[W]:GB}],[1,{[H]:`AvailableIpAddressCount`,[W]:sB}],[0,{[H]:`AvailabilityZone`,[W]:wB}],[2,{[H]:`DefaultForAz`,[W]:OV}],[2,{[H]:`MapPublicIpOnLaunch`,[W]:tG}]]],c$=[3,G,II,0,[lR,FL],[[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`StatusMessage`,[W]:Eq}]]],l$=[3,G,iL,0,[bO,hA,_A,dA,Zj],[[0,{[H]:`AssociationId`,[W]:uB}],[0,{[H]:`Ipv6CidrBlock`,[W]:TU}],[()=>c$,{[H]:`Ipv6CidrBlockState`,[W]:DU}],[0,{[H]:`Ipv6AddressAttribute`,[W]:hU}],[0,{[H]:`IpSource`,[W]:fW}]]],u$=[3,G,VR,0,[fM,rz],[[0,{[H]:`Key`,[W]:xW}],[0,{[H]:`Value`,[W]:DJ}]]],d$=[3,G,FR,0,[SI,mR],[[0,{[H]:`ResourceType`,[W]:XK}],[()=>E1,{[W]:VR}]]],f$=[3,G,xR,0,[NA,Uk,VL,_k],[[()=>n1,{[W]:xA}],2,2,[2,{[H]:`DryRun`,[W]:zV}]],1],p$=[3,G,SR,0,[wR],[[()=>m1,{[H]:`InstancesSet`,[W]:uW}]]],m$=[3,G,ZR,0,[vk,JR,eA,Qk,_z,Nz,hF],[[0,{[H]:`Description`,[W]:qV}],[0,{[H]:`UserId`,[W]:xJ}],[0,{[H]:`GroupName`,[W]:XH}],[0,{[H]:`GroupId`,[W]:JH}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`VpcPeeringConnectionId`,[W]:RJ}],[0,{[H]:`PeeringStatus`,[W]:vK}]]],h$=[3,G,lz,0,[Fse,Doe,jse,uz,Hz],[[1,{[H]:`DefaultVCpus`,[W]:KV}],[1,{[H]:`DefaultCores`,[W]:TV}],[1,{[H]:`DefaultThreadsPerCore`,[W]:HV}],[()=>L$,{[H]:`ValidCores`,[W]:kJ}],[()=>Tue,{[H]:`ValidThreadsPerCore`,[W]:GJ}]]],g$=[3,G,Jz,0,[OO,mP,rR,dM,mR,Bz,Bce,ZM,UR,$L,OP,bz,Cz,oR,CL,DO,lR,ak,PO,Hk,gM],[[0,{[H]:`AvailabilityZoneId`,[W]:TB}],[0,{[H]:`OutpostArn`,[W]:IG}],[0,{[H]:`SourceVolumeId`,[W]:Wq}],[1,{[H]:`Iops`,[W]:bW}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[0,{[H]:`VolumeType`,[W]:WJ}],[2,{[H]:`FastRestored`,[W]:zH}],[2,{[H]:`MultiAttachEnabled`,[W]:zW}],[1,{[H]:`Throughput`,[W]:_J}],[0,{[H]:`SseType`,[W]:Vq}],[()=>wQ,{[H]:`Operator`,[W]:KG}],[1,{[H]:`VolumeInitializationRate`,[W]:MJ}],[0,{[H]:`VolumeId`,[W]:NJ}],[1,{[H]:`Size`,[W]:qq}],[0,{[H]:`SnapshotId`,[W]:Cq}],[0,{[H]:`AvailabilityZone`,[W]:wB}],[0,{[H]:`Status`,[W]:Yq}],[4,{[H]:`CreateTime`,[W]:yV}],[()=>Aue,{[H]:`AttachmentSet`,[W]:SB}],[2,{[H]:`Encrypted`,[W]:FH}],[0,{[H]:`KmsKeyId`,[W]:wW}]]],_$=[3,G,az,0,[hk,SO,lj,xk,Cz,xA,yk,lR,EO],[[2,{[H]:`DeleteOnTermination`,[W]:IV}],[0,{[H]:`AssociatedResource`,[W]:_B}],[0,{[H]:`InstanceOwningService`,[W]:KU}],[1,{[H]:`EbsCardIndex`,[W]:XV}],[0,{[H]:`VolumeId`,[W]:NJ}],[0,{[H]:`InstanceId`,[W]:PU}],[0,{[H]:`Device`,[W]:JV}],[0,{[H]:`Status`,[W]:Yq}],[4,{[H]:`AttachTime`,[W]:CB}]]],v$=[3,G,Az,0,[Cz,TN,FL,IR,CR,BR,RR,ER,TP,vP,DP,EP,bP,DF,ZL,Mce,OP],[[0,{[H]:`VolumeId`,[W]:NJ}],[0,{[H]:`ModificationState`,[W]:aG}],[0,{[H]:`StatusMessage`,[W]:Eq}],[1,{[H]:`TargetSize`,[W]:fJ}],[1,{[H]:`TargetIops`,[W]:iJ}],[0,{[H]:`TargetVolumeType`,[W]:gJ}],[1,{[H]:`TargetThroughput`,[W]:mJ}],[2,{[H]:`TargetMultiAttachEnabled`,[W]:aJ}],[1,{[H]:`OriginalSize`,[W]:UG}],[1,{[H]:`OriginalIops`,[W]:BG}],[0,{[H]:`OriginalVolumeType`,[W]:GG}],[1,{[H]:`OriginalThroughput`,[W]:WG}],[2,{[H]:`OriginalMultiAttachEnabled`,[W]:VG}],[1,{[H]:`Progress`,[W]:OK}],[4,{[H]:`StartTime`,[W]:Bq}],[4,{[H]:`EndTime`,[W]:MH}],[()=>wQ,{[H]:`Operator`,[W]:KG}]]],y$=[3,G,Yz,0,[gP,rM,gA,bae,kle,ece,mR,BO,_z,lR,UO,ese],[[0,{[H]:`OwnerId`,[W]:RG}],[0,{[H]:`InstanceTenancy`,[W]:vW}],[()=>Fue,{[H]:`Ipv6CidrBlockAssociationSet`,[W]:EU}],[()=>Nue,{[H]:`CidrBlockAssociationSet`,[W]:KB}],[2,{[H]:`IsDefault`,[W]:OU}],[()=>S$,{[H]:`EncryptionControl`,[W]:QV}],[()=>E1,{[H]:`TagSet`,[W]:uJ}],[()=>CY,{[H]:`BlockPublicAccessStates`,[W]:BB}],[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`CidrBlock`,[W]:GB}],[0,{[H]:`DhcpOptionsId`,[W]:FV}]]],b$=[3,G,oz,0,[bO,UO,Sae],[[0,{[H]:`AssociationId`,[W]:uB}],[0,{[H]:`CidrBlock`,[W]:GB}],[()=>x$,{[H]:`CidrBlockState`,[W]:JB}]]],x$=[3,G,cz,0,[lR,FL],[[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`StatusMessage`,[W]:Eq}]]],S$=[3,G,dz,0,[_z,hz,IN,lR,IL,IF,mR],[[0,{[H]:`VpcId`,[W]:jJ}],[0,{[H]:`VpcEncryptionControlId`,[W]:AJ}],[0,{[H]:`Mode`,[W]:fG}],[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`StateMessage`,[W]:Dq}],[()=>T$,{[H]:`ResourceExclusions`,[W]:PK}],[()=>E1,{[H]:`TagSet`,[W]:uJ}]]],C$=[3,G,fz,0,[IN,Nle,wce,QN,Iz,Pz,NM,Dz,rce],[0,0,0,0,0,0,0,0,0],1],w$=[3,G,pz,0,[lR,IL],[[0,{[H]:`State`,[W]:Jq}],[0,{[H]:`StateMessage`,[W]:Dq}]]],T$=[3,G,mz,0,[yA,Cce,ZN,Fz,Lz,JM,Ez,nce],[[()=>w$,{[H]:`InternetGateway`,[W]:AU}],[()=>w$,{[H]:`EgressOnlyInternetGateway`,[W]:_H}],[()=>w$,{[H]:`NatGateway`,[W]:bG}],[()=>w$,{[H]:`VirtualPrivateGateway`,[W]:zJ}],[()=>w$,{[H]:`VpcPeering`,[W]:BJ}],[()=>w$,{[H]:`Lambda`,[W]:RW}],[()=>w$,{[H]:`VpcLattice`,[W]:PJ}],[()=>w$,{[H]:`ElasticFileSystem`,[W]:eH}]]],E$=[3,G,vz,0,[bO,hA,_A,zN,Dj,dA,Zj],[[0,{[H]:`AssociationId`,[W]:uB}],[0,{[H]:`Ipv6CidrBlock`,[W]:TU}],[()=>x$,{[H]:`Ipv6CidrBlockState`,[W]:DU}],[0,{[H]:`NetworkBorderGroup`,[W]:mG}],[0,{[H]:`Ipv6Pool`,[W]:eW}],[0,{[H]:`Ipv6AddressAttribute`,[W]:hU}],[0,{[H]:`IpSource`,[W]:fW}]]],D$=`unit`,O$=[1,G,Yie,0,[0,{[W]:U}]],k$=[1,G,eae,0,[()=>vY,{[W]:U}]],A$=[1,G,tae,0,[()=>_Y,{[W]:U}]],j$=[1,G,rae,0,[()=>yY,{[W]:U}]],M$=[1,G,aae,0,[()=>bY,{[W]:U}]],N$=[1,G,vae,0,[0,{[W]:U}]],P$=[1,G,fae,0,[()=>SY,{[W]:U}]],F$=[1,G,pae,0,[()=>SY,{[W]:IO}]],I$=[1,G,hae,0,[0,{[W]:U}]],L$=[1,G,Cae,0,[1,{[W]:U}]],R$=[1,G,Foe,0,[()=>zX,{[W]:U}]],z$=[1,G,Zse,0,[()=>VX,{[W]:U}]],B$=[1,G,oce,0,[()=>qX,{[W]:U}]],V$=[1,G,dce,0,[()=>JX,{[W]:U}]],H$=[1,G,mce,0,[()=>XX,{[W]:U}]],U$=[1,G,wk,0,[()=>YX,{[W]:U}]],W$=[1,G,Xse,0,[0,{[W]:bk}]],G$=[1,G,zce,0,[()=>tZ,{[W]:Jk}]],K$=[1,G,Ice,0,[()=>nZ,{[W]:U}]],q$=[1,G,Yce,0,[()=>sZ,{[W]:U}]],J$=[1,G,Zce,0,[()=>uZ,{[W]:U}]],Y$=[1,G,Qce,0,[0,{[W]:JH}]],X$=[1,G,tle,0,[0,{[W]:eA}]],Z$=[1,G,kA,0,[0,{[W]:jA}]],Q$=[1,G,RA,0,[()=>hZ,{[W]:U}]],$$=[1,G,Ele,0,[()=>yZ,0]],e1=[1,G,ble,0,[()=>wZ,{[W]:U}]],t1=[1,G,Sle,0,[()=>TZ,{[W]:U}]],n1=[1,G,AA,0,[0,{[W]:xA}]],r1=[1,G,Vle,0,[()=>EZ,{[W]:U}]],i1=[1,G,zle,0,[()=>DZ,{[W]:U}]],a1=[1,G,Hle,0,[()=>OZ,{[W]:U}]],o1=[1,G,BA,0,[()=>xZ,{[W]:U}]],s1=[1,G,$A,0,[()=>PZ,{[W]:U}]],c1=[1,G,tj,0,[()=>LZ,{[W]:U}]],l1=[1,G,mj,0,[()=>BZ,{[W]:U}]],u1=[1,G,zj,0,[()=>VZ,{[W]:U}]],d1=[1,G,Vj,0,[()=>UZ,{[W]:U}]],f1=[1,G,Hj,0,[()=>WZ,{[W]:U}]],p1=[1,G,Wj,0,[()=>GZ,{[W]:U}]],m1=[1,G,Lj,0,[()=>qZ,{[W]:U}]],h1=[1,G,eM,0,[()=>YZ,{[W]:U}]],g1=[1,G,jle,0,[()=>ZZ,{[W]:U}]],_1=[1,G,Ple,0,[0,{[W]:U}]],v1=[1,G,Ile,0,[()=>XZ,{[W]:U}]],y1=[1,G,_j,0,[()=>QZ,{[W]:U}]],Ule=[1,G,Aj,0,[()=>$Z,{[W]:U}]],Wle=[1,G,vj,0,[()=>eQ,{[W]:U}]],Gle=[1,G,yj,0,[()=>tQ,{[W]:U}]],Kle=[1,G,jj,0,[()=>nQ,{[W]:U}]],qle=[1,G,yM,0,[0,{[W]:vM}]],Jle=[1,G,CM,0,[0,{[W]:SM}]],Yle=[1,G,EM,0,[()=>iQ,{[W]:U}]],Xle=[1,G,LM,0,[()=>oQ,{[W]:U}]],Zle=[1,G,BM,0,[()=>sQ,{[W]:U}]],Qle=[1,G,aN,0,[()=>lQ,{[W]:U}]],$le=[1,G,HN,0,[()=>gQ,{[W]:U}]],eue=[1,G,qN,0,[()=>yQ,{[W]:U}]],tue=[1,G,uP,0,[0,{[W]:U}]],b1=[1,G,wP,0,[0,{[W]:jP}]],nue=[1,G,YP,0,[0,{[W]:Qk}]],rue=[1,G,XP,0,[()=>EQ,{[W]:U}]],iue=[1,G,ZP,0,[0,{[W]:U}]],aue=[1,G,fF,0,[()=>OQ,{[W]:U}]],oue=[1,G,nF,0,[()=>MQ,{[W]:U}]],x1=[1,G,FP,0,[()=>PQ,{[W]:U}]],sue=[1,G,bF,0,[()=>FQ,{[W]:U}]],cue=[1,G,BF,0,[()=>zQ,{[W]:U}]],lue=[1,G,XF,0,[()=>RQ,{[W]:U}]],uue=[1,G,nI,0,[0,{[W]:tI}]],due=[1,G,ZF,0,[()=>BQ,{[W]:U}]],S1=[1,G,fI,0,[()=>VQ,{[W]:U}]],fue=[1,G,PF,0,[0,{[W]:U}]],pue=[1,G,QF,0,[()=>KQ,{[W]:U}]],mue=[1,G,gI,0,[()=>JQ,{[W]:U}]],hue=[1,G,yI,0,[0,{[W]:U}]],gue=[1,G,xI,0,[()=>qQ,{[W]:U}]],C1=[1,G,WI,0,[0,{[W]:UI}]],_ue=[1,G,KI,0,[()=>QQ,{[W]:U}]],w1=[1,G,XI,0,[0,{[W]:U}]],T1=[1,G,QI,0,[()=>$Q,{[W]:U}]],vue=[1,G,eL,0,[0,{[W]:nL}]],yue=[1,G,vL,0,[0,{[W]:CL}]],bue=[1,G,jL,0,[()=>e$,{[W]:U}]],xue=[1,G,yL,0,[0,{[W]:kL}]],Sue=[1,G,aL,0,[()=>l$,{[W]:U}]],Cue=[1,G,NL,0,[()=>s$,{[W]:U}]],wue=[1,G,MI,0,[0,{[W]:U}]],E1=[1,G,TR,0,[()=>u$,{[W]:U}]],D1=[1,G,PR,0,[()=>d$,{[W]:U}]],Tue=[1,G,jR,0,[1,{[W]:U}]],Eue=[1,G,KR,0,[0,{[W]:U}]],Due=[1,G,XR,0,[()=>m$,{[W]:U}]],Oue=[1,G,Rz,0,[0,{[W]:U}]],kue=[1,G,Vz,0,[0,{[W]:U}]],Aue=[1,G,iz,0,[()=>_$,{[W]:U}]],jue=[1,G,xz,0,[0,{[W]:Cz}]],Mue=[1,G,Oz,0,[()=>g$,{[W]:U}]],Nue=[1,G,sz,0,[()=>b$,{[W]:U}]],Pue=[1,G,Sz,0,[0,{[W]:_z}]],Fue=[1,G,yz,0,[()=>E$,{[W]:U}]],Iue=[1,G,kz,0,[()=>y$,{[W]:U}]],Lue=[1,G,Zz,0,[0,{[W]:U}]],Rue=[1,G,eB,0,[0,{[W]:$z}]],zue=[1,G,rB,0,[0,{[W]:nB}]],Bue=[9,G,Vie,0,()=>sY,()=>cY],Vue=[9,G,Mie,0,()=>lY,()=>D$],Hue=[9,G,Qie,0,()=>uY,()=>_$],Uue=[9,G,Uie,0,()=>pY,()=>mY],Wue=[9,G,Jie,0,()=>hY,()=>gY],Gue=[9,G,coe,0,()=>AY,()=>jY],Kue=[9,G,Fae,0,()=>PY,()=>FY],que=[9,G,kae,0,()=>IY,()=>LY],Jue=[9,G,Iae,0,()=>RY,()=>rQ],Yue=[9,G,Vae,0,()=>zY,()=>BY],Xue=[9,G,Zae,0,()=>VY,()=>HY],Zue=[9,G,Xae,0,()=>UY,()=>WY],Que=[9,G,Qae,0,()=>GY,()=>KY],$ue=[9,G,uoe,0,()=>qY,()=>e$],ede=[9,G,doe,0,()=>JY,()=>YY],tde=[9,G,boe,0,()=>XY,()=>g$],nde=[9,G,xoe,0,()=>ZY,()=>QY],rde=[9,G,Koe,0,()=>tX,()=>nX],ide=[9,G,tse,0,()=>rX,()=>D$],ade=[9,G,mse,0,()=>iX,()=>aX],ode=[9,G,Ese,0,()=>oX,()=>D$],sde=[9,G,Dse,0,()=>sX,()=>D$],cde=[9,G,Use,0,()=>cX,()=>D$],lde=[9,G,Wse,0,()=>lX,()=>D$],ude=[9,G,Toe,0,()=>uX,()=>dX],dde=[9,G,Uoe,0,()=>fX,()=>pX],fde=[9,G,Woe,0,()=>mX,()=>hX],pde=[9,G,Hoe,0,()=>gX,()=>_X],mde=[9,G,Poe,0,()=>vX,()=>yX],hde=[9,G,Zoe,0,()=>bX,()=>xX],gde=[9,G,ase,0,()=>SX,()=>CX],_de=[9,G,pse,0,()=>wX,()=>TX],vde=[9,G,dse,0,()=>EX,()=>DX],yde=[9,G,yse,0,()=>OX,()=>kX],bde=[9,G,Ose,0,()=>AX,()=>jX],xde=[9,G,kse,0,()=>MX,()=>NX],Sde=[9,G,Gse,0,()=>PX,()=>FX],Cde=[9,G,Kse,0,()=>IX,()=>LX],wde=[9,G,qse,0,()=>RX,()=>_$],Tde=[9,G,Wce,0,()=>aZ,()=>oZ],Ede=[9,G,PA,0,()=>gZ,()=>_Z],Dde=[9,G,hN,0,()=>fQ,()=>D$],Ode=[9,G,AN,0,()=>pQ,()=>mQ],kde=[9,G,qF,0,()=>IQ,()=>D$],Ade=[9,G,aI,0,()=>HQ,()=>UQ],jde=[9,G,uI,0,()=>WQ,()=>GQ],Mde=[9,G,YF,0,()=>ZQ,()=>BQ],Nde=[9,G,EL,0,()=>n$,()=>r$],Pde=[9,G,OL,0,()=>a$,()=>o$],Fde=[9,G,yR,0,()=>f$,()=>p$],Ide=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??DC,base64Encoder:e?.base64Encoder??OC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??wie,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??eie,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new WD}],logger:e?.logger??new ID,protocol:e?.protocol??hie,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:nY,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??QC,utf8Decoder:e?.utf8Decoder??$x,utf8Encoder:e?.utf8Encoder??tS}),Lde=e=>{let t=QD(e),n=()=>t().then(jD),r=Ide(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ZD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qD({serviceId:r.serviceId,clientVersion:rie.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??YD(`Region is missing`),requestHandler:IC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||DE),sha256:e?.sha256??Bx,streamCollector:e?.streamCollector??RC,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},O1=e=>({setRegion(t){e.region=t},region(){return e.region}}),k1=e=>({region:e.region()}),Rde=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},zde=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Bde=(e,t)=>{let n=Object.assign(O1(e),ND(e),Vx(e),Rde(e));return t.forEach(e=>e.configure(n)),Object.assign(e,k1(n),PD(n),Hx(n),zde(n))},Vde=class extends TD{config;constructor(...[e]){let t=Lde(e||{});super(t),this.initConfig=t;let n=Bde(tie(vD(rC(uD(yD(FT(nie(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(rw(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(RD(this.config)),this.middlewareStack.use(fD(this.config)),this.middlewareStack.use(oC(this.config)),this.middlewareStack.use(lC(this.config)),this.middlewareStack.use(fC(this.config)),this.middlewareStack.use(_C(this.config,{httpAuthSchemeParametersProvider:Qre,identityProviderConfigProvider:async e=>new AT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(SC(this.config))}destroy(){super.destroy()}},Hde=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(ude).build(){},A1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(dde).build(){},j1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(fde).build(){},Ude=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(pde).build(){};OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(mde).build();var M1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(hde).build(){},N1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(gde).build(){},Wde=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(_de).build(){};OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(vde).build();var P1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(yde).build(){},F1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(bde).build(){},I1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(xde).build(){},L1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(Sde).build(){},R1=class extends OD.classBuilder().ep(KD).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(Cde).build(){},Gde=async(e,t,n)=>({operation:LS(t).operation,region:await RS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Kde(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var qde=e=>{let t=[];switch(e.operation){default:t.push(Kde(e))}return t},Jde=e=>{let t=GD(e);return Object.assign(t,{authSchemePreference:RS(e.authSchemePreference??[])})},Yde=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),z1={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Xde={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-elastic-load-balancing-v2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},B1=`ref`,V1=-1,H1=!0,U1=`isSet`,W1=`PartitionResult`,G1=`booleanEquals`,K1=`getAttr`,q1={[B1]:`Endpoint`},J1={[B1]:W1},Y1={},X1=[{[B1]:`Region`}],Z1={conditions:[[U1,[q1]],[U1,X1],[`aws.partition`,X1,W1],[G1,[{[B1]:`UseFIPS`},H1]],[G1,[{[B1]:`UseDualStack`},H1]],[G1,[{fn:K1,argv:[J1,`supportsDualStack`]},H1]],[G1,[{fn:K1,argv:[J1,`supportsFIPS`]},H1]],[`stringEquals`,[{fn:K1,argv:[J1,`name`]},`aws-us-gov`]]],results:[[V1],[V1,`Invalid Configuration: FIPS and custom endpoint are not supported`],[V1,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[q1,Y1],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Y1],[V1,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,Y1],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,Y1],[V1,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,Y1],[V1,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,Y1],[V1,`Invalid Configuration: Missing Region`]]},Zde=2,Q1=1e8,Qde=new Int32Array([-1,1,-1,0,13,3,1,4,Q1+12,2,5,Q1+12,3,8,6,4,7,Q1+11,5,Q1+9,Q1+10,4,11,9,6,10,Q1+8,7,Q1+6,Q1+7,5,12,Q1+5,6,Q1+4,Q1+5,3,Q1+1,14,4,Q1+2,Q1+3]),$de=IT.from(Qde,Zde,Z1.conditions,Z1.results),efe=new LT({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),tfe=(e,t={})=>efe.get(e,()=>hE($de,{endpointParams:e,logger:t.logger}));VT.aws=wE;var K=class e extends kD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},nfe=class e extends K{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rfe=class e extends K{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ife=class e extends K{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},afe=class e extends K{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ofe=class e extends K{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sfe=class e extends K{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cfe=class e extends K{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lfe=class e extends K{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ufe=class e extends K{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dfe=class e extends K{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ffe=class e extends K{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pfe=class e extends K{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mfe=class e extends K{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hfe=class e extends K{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gfe=class e extends K{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_fe=class e extends K{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vfe=class e extends K{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yfe=class e extends K{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bfe=class e extends K{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xfe=class e extends K{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Sfe=class e extends K{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Cfe=class e extends K{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wfe=class e extends K{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Tfe=class e extends K{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Efe=class e extends K{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Dfe=class e extends K{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ofe=class e extends K{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kfe=class e extends K{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Afe=class e extends K{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jfe=class e extends K{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Mfe=class e extends K{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Nfe=class e extends K{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Pfe=class e extends K{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ffe=class e extends K{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ife=class e extends K{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Lfe=class e extends K{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Rfe=class e extends K{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zfe=class e extends K{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Bfe=class e extends K{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vfe=class e extends K{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Hfe=class e extends K{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ufe=class e extends K{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Wfe=class e extends K{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Gfe=class e extends K{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Kfe=class e extends K{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qfe=class e extends K{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Jfe=class e extends K{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Yfe=class e extends K{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xfe=class e extends K{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Zfe=class e extends K{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qfe=class e extends K{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$fe=class e extends K{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},epe=class e extends K{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tpe=class e extends K{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},npe=class e extends K{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rpe=class e extends K{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ipe=`Action`,ape=`AdditionalClaims`,ope=`AuthenticateCognitoActionConfig`,spe=`AuthenticateCognitoConfig`,$1=`AnomalyDetection`,cpe=`AuthorizationEndpoint`,e0=`AllocationId`,lpe=`AllocationIdNotFoundException`,upe=`ALPNPolicyNotSupportedException`,t0=`AdministrativeOverride`,dpe=`AuthenticateOidcActionConfig`,fpe=`AuthenticateOidcConfig`,n0=`AlpnPolicy`,r0=`AuthenticationRequestExtraParams`,ppe=`AdvertiseTrustStoreCaNames`,i0=`AvailabilityZone`,mpe=`AvailabilityZoneNotSupportedException`,a0=`AvailabilityZones`,hpe=`Actions`,o0=`Attributes`,s0=`Certificates`,gpe=`CertificateArn`,_pe=`CaCertificatesBundleNotFoundException`,vpe=`CapacityDecreaseRequestsLimitExceededException`,ype=`CanonicalHostedZoneId`,bpe=`ClientId`,xpe=`CertificateList`,Spe=`CreateLoadBalancer`,Cpe=`CreateLoadBalancerInput`,wpe=`CreateLoadBalancerOutput`,Tpe=`CreateListenerInput`,Epe=`CreateListenerOutput`,Dpe=`CreateListener`,Ope=`CertificateNotFoundException`,c0=`CustomerOwnedIpv4Pool`,kpe=`CapacityReservationPendingException`,Ape=`ClientSecret`,jpe=`ContentType`,Mpe=`CreateTargetGroup`,Npe=`CreateTargetGroupInput`,Ppe=`CreateTargetGroupOutput`,Fpe=`CreatedTime`,Ipe=`CapacityUnitsLimitExceededException`,Lpe=`Certificate`,Rpe=`Code`,l0=`Description`,u0=`DefaultActions`,zpe=`DeleteAssociationSameAccountException`,Bpe=`DeleteListener`,Vpe=`DeleteLoadBalancer`,Hpe=`DescribeLoadBalancerAttributes`,Upe=`DescribeLoadBalancerAttributesInput`,Wpe=`DescribeLoadBalancerAttributesOutput`,Gpe=`DeleteLoadBalancerInput`,Kpe=`DescribeLoadBalancersInput`,qpe=`DuplicateLoadBalancerNameException`,Jpe=`DeleteLoadBalancerOutput`,Ype=`DescribeLoadBalancersOutput`,Xpe=`DescribeLoadBalancers`,Zpe=`DuplicateListenerException`,Qpe=`DeleteListenerInput`,$pe=`DescribeListenersInput`,eme=`DeleteListenerOutput`,tme=`DescribeListenersOutput`,nme=`DescribeListeners`,rme=`DNSName`,ime=`DurationSeconds`,ame=`DeregisterTargets`,ome=`DeleteTargetGroup`,sme=`DescribeTargetGroupAttributes`,cme=`DescribeTargetGroupAttributesInput`,lme=`DescribeTargetGroupAttributesOutput`,ume=`DeleteTargetGroupInput`,dme=`DescribeTargetGroupsInput`,fme=`DuplicateTargetGroupNameException`,pme=`DeleteTargetGroupOutput`,mme=`DescribeTargetGroupsOutput`,hme=`DescribeTargetGroups`,gme=`DescribeTargetHealth`,_me=`DescribeTargetHealthInput`,vme=`DescribeTargetHealthOutput`,yme=`DeregisterTargetsInput`,bme=`DescribeTagsInput`,xme=`DuplicateTagKeysException`,Sme=`DeregisterTargetsOutput`,Cme=`DescribeTagsOutput`,wme=`DuplicateTrustStoreNameException`,Tme=`DescribeTags`,Eme=`Enabled`,d0=`EnablePrefixForIpv6SourceNat`,Dme=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,Ome=`Format`,kme=`ForwardActionConfig`,Ame=`ForwardConfig`,jme=`FixedResponseActionConfig`,Mme=`FixedResponseConfig`,Nme=`GrpcCode`,Pme=`Host`,Fme=`HttpCode`,f0=`HealthCheckEnabled`,p0=`HealthCheckIntervalSeconds`,m0=`HealthCheckProtocol`,h0=`HealthCheckPort`,g0=`HealthCheckPath`,_0=`HealthCheckTimeoutSeconds`,v0=`HealthyThresholdCount`,Ime=`HealthUnavailableException`,y0=`Issuer`,Lme=`IpAddress`,b0=`IpAddressType`,Rme=`InvalidCaCertificatesBundleException`,zme=`IgnoreClientCertificateExpiry`,Bme=`InsufficientCapacityException`,Vme=`InvalidConfigurationRequestException`,Hme=`IsDefault`,Ume=`Ipv4IpamPoolId`,Wme=`InvalidLoadBalancerActionException`,x0=`IpamPools`,S0=`IPv6Address`,Gme=`IncompatibleProtocolsException`,Kme=`InvalidRevocationContentException`,qme=`InvalidSchemeException`,Jme=`InvalidSubnetException`,Yme=`InvalidSecurityGroupException`,Xme=`InvalidTargetException`,Zme=`Id`,Qme=`Include`,$me=`JwksEndpoint`,ehe=`JwtValidationActionAdditionalClaim`,the=`JwtValidationActionAdditionalClaims`,nhe=`JwtValidationActionConfig`,rhe=`JwtValidationConfig`,C0=`Key`,w0=`Listeners`,T0=`ListenerArn`,ihe=`ListenerArns`,E0=`LoadBalancers`,D0=`LoadBalancerAddresses`,O0=`LoadBalancerArn`,k0=`LoadBalancerArns`,ahe=`LoadBalancerAddress`,ohe=`LoadBalancerAttribute`,she=`LoadBalancerAttributes`,che=`LoadBalancerName`,lhe=`LoadBalancerNotFoundException`,uhe=`LoadBalancerState`,dhe=`LoadBalancer`,fhe=`ListenerNotFoundException`,phe=`Listener`,A0=`Message`,j0=`MutualAuthentication`,mhe=`MutualAuthenticationAttributes`,hhe=`MessageBody`,ghe=`MitigationInEffect`,_he=`ModifyLoadBalancerAttributes`,vhe=`ModifyLoadBalancerAttributesInput`,yhe=`ModifyLoadBalancerAttributesOutput`,bhe=`ModifyTargetGroupAttributes`,xhe=`ModifyTargetGroupAttributesInput`,She=`ModifyTargetGroupAttributesOutput`,M0=`Matcher`,N0=`Marker`,Che=`Mode`,P0=`Name`,F0=`NextMarker`,I0=`Names`,whe=`Order`,The=`OutpostId`,Ehe=`OperationNotPermittedException`,L0=`OnUnauthenticatedRequest`,R0=`PrivateIPv4Address`,Dhe=`PriorityInUseException`,Ohe=`PriorRequestNotCompleteException`,z0=`PageSize`,B0=`ProtocolVersion`,khe=`Path`,V0=`Port`,H0=`Protocol`,Ahe=`Query`,jhe=`QuicServerId`,U0=`Reason`,Mhe=`ResourceArns`,Nhe=`RedirectActionConfig`,Phe=`ResourceArn`,Fhe=`RedirectConfig`,Ihe=`RevocationContentNotFoundException`,Lhe=`RevocationIdNotFoundException`,Rhe=`ResourceInUseException`,zhe=`ResourceNotFoundException`,Bhe=`RuleNotFoundException`,Vhe=`RegisterTargetsInput`,Hhe=`RegisterTargetsOutput`,Uhe=`RegisterTargets`,Whe=`Result`,W0=`State`,G0=`StatusCode`,K0=`SessionCookieName`,q0=`SecurityGroups`,J0=`SubnetId`,Y0=`SubnetMappings`,Ghe=`SubnetMapping`,Khe=`SubnetNotFoundException`,qhe=`SourceNatIpv6Prefixes`,Jhe=`SourceNatIpv6Prefix`,X0=`SslPolicy`,Yhe=`SSLPolicyNotFoundException`,Z0=`SessionTimeout`,Q0=`Scope`,$0=`Scheme`,Xhe=`Subnets`,e2=`Type`,t2=`TargetControlPort`,n2=`TagDescriptions`,Zhe=`TagDescription`,Qhe=`TargetDescription`,$he=`TargetDescriptions`,ege=`TokenEndpoint`,r2=`TargetGroups`,i2=`TargetGroupArn`,tge=`TargetGroupAssociationLimitException`,nge=`TargetGroupArns`,rge=`TargetGroupAttribute`,ige=`TargetGroupAttributes`,age=`TargetGroupList`,oge=`TargetGroupName`,sge=`TargetGroupNotFoundException`,a2=`TargetGroupStickinessConfig`,cge=`TargetGroupTuple`,lge=`TargetGroup`,o2=`TargetHealth`,s2=`TargetHealthDescriptions`,uge=`TargetHealthDescription`,dge=`TagList`,fge=`TooManyActionsException`,pge=`TooManyCertificatesException`,mge=`TooManyLoadBalancersException`,hge=`TooManyListenersException`,gge=`TooManyRulesException`,_ge=`TooManyRegistrationsForTargetIdException`,vge=`TooManyTagsException`,yge=`TooManyTargetsException`,bge=`TooManyTargetGroupsException`,xge=`TooManyTrustStoresException`,Sge=`TooManyTrustStoreRevocationEntriesException`,Cge=`TooManyUniqueTargetGroupsPerLoadBalancerException`,wge=`TrustStoreArn`,Tge=`TrustStoreAssociationNotFoundException`,Ege=`TrustStoreAssociationStatus`,Dge=`TrustStoreInUseException`,Oge=`TrustStoreNotFoundException`,kge=`TrustStoreNotReadyException`,c2=`TargetType`,l2=`Tags`,Age=`Tag`,u2=`Targets`,jge=`Target`,Mge=`UseExistingClientSecret`,Nge=`UserInfoEndpoint`,Pge=`UserPoolArn`,Fge=`UserPoolClientId`,Ige=`UserPoolDomain`,Lge=`UnsupportedProtocolException`,d2=`UnhealthyThresholdCount`,Rge=`Values`,f2=`VpcId`,p2=`Value`,zge=`Weight`,Bge=`ZoneName`,m2=`awsQueryError`,h2=`client`,g2=`error`,q=`httpError`,_2=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,v2=`server`,J=`com.amazonaws.elasticloadbalancingv2`,y2=pw.for(_2),Vge=[-3,_2,`ElasticLoadBalancingV2ServiceException`,0,[],[]];y2.registerError(Vge,K);var Y=pw.for(J),Hge=[-3,J,lpe,{[m2]:[`AllocationIdNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Hge,mfe);var Uge=[-3,J,upe,{[m2]:[`ALPNPolicyNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Uge,hfe);var Wge=[-3,J,mpe,{[m2]:[`AvailabilityZoneNotSupported`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Wge,gfe);var Gge=[-3,J,_pe,{[m2]:[`CaCertificatesBundleNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Gge,_fe);var Kge=[-3,J,vpe,{[m2]:[`CapacityDecreaseRequestLimitExceeded`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Kge,vfe);var qge=[-3,J,kpe,{[m2]:[`CapacityReservationPending`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(qge,yfe);var Jge=[-3,J,Ipe,{[m2]:[`CapacityUnitsLimitExceeded`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Jge,bfe);var Yge=[-3,J,Ope,{[m2]:[`CertificateNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Yge,nfe);var Xge=[-3,J,zpe,{[m2]:[`DeleteAssociationSameAccount`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Xge,Yfe);var Zge=[-3,J,Zpe,{[m2]:[`DuplicateListener`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Zge,xfe);var Qge=[-3,J,qpe,{[m2]:[`DuplicateLoadBalancerName`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(Qge,Pfe);var $ge=[-3,J,xme,{[m2]:[`DuplicateTagKeys`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError($ge,afe);var e_e=[-3,J,fme,{[m2]:[`DuplicateTargetGroupName`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(e_e,Gfe);var t_e=[-3,J,wme,{[m2]:[`DuplicateTrustStoreName`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(t_e,Kfe);var n_e=[-3,J,Ime,{[m2]:[`HealthUnavailable`,500],[g2]:v2,[q]:500},[A0],[0]];Y.registerError(n_e,$fe);var r_e=[-3,J,Gme,{[m2]:[`IncompatibleProtocols`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(r_e,Sfe);var i_e=[-3,J,Bme,{[m2]:[`InsufficientCapacity`,500],[g2]:v2,[q]:500},[A0],[0]];Y.registerError(i_e,npe);var a_e=[-3,J,Rme,{[m2]:[`InvalidCaCertificatesBundle`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(a_e,qfe);var o_e=[-3,J,Vme,{[m2]:[`InvalidConfigurationRequest`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(o_e,Cfe);var s_e=[-3,J,Wme,{[m2]:[`InvalidLoadBalancerAction`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(s_e,wfe);var c_e=[-3,J,Kme,{[m2]:[`InvalidRevocationContent`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(c_e,dfe);var l_e=[-3,J,qme,{[m2]:[`InvalidScheme`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(l_e,Ffe);var u_e=[-3,J,Yme,{[m2]:[`InvalidSecurityGroup`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(u_e,Ife);var d_e=[-3,J,Jme,{[m2]:[`InvalidSubnet`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(d_e,Lfe);var f_e=[-3,J,Xme,{[m2]:[`InvalidTarget`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(f_e,Qfe);var p_e=[-3,J,fhe,{[m2]:[`ListenerNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(p_e,rfe);var m_e=[-3,J,lhe,{[m2]:[`LoadBalancerNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(m_e,ofe);var h_e=[-3,J,Ehe,{[m2]:[`OperationNotPermitted`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(h_e,Rfe);var g_e=[-3,J,Dhe,{[m2]:[`PriorityInUse`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(g_e,Hfe);var __e=[-3,J,Ohe,{[m2]:[`PriorRequestNotComplete`,429],[g2]:h2,[q]:429},[A0],[0]];Y.registerError(__e,rpe);var v_e=[-3,J,Rhe,{[m2]:[`ResourceInUse`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(v_e,zfe);var y_e=[-3,J,zhe,{[m2]:[`ResourceNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(y_e,tpe);var b_e=[-3,J,Ihe,{[m2]:[`RevocationContentNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(b_e,ffe);var x_e=[-3,J,Lhe,{[m2]:[`RevocationIdNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(x_e,epe);var S_e=[-3,J,Bhe,{[m2]:[`RuleNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(S_e,sfe);var C_e=[-3,J,Yhe,{[m2]:[`SSLPolicyNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(C_e,Tfe);var w_e=[-3,J,Khe,{[m2]:[`SubnetNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(w_e,Bfe);var T_e=[-3,J,tge,{[m2]:[`TargetGroupAssociationLimit`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(T_e,Efe);var E_e=[-3,J,sge,{[m2]:[`TargetGroupNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(E_e,cfe);var D_e=[-3,J,fge,{[m2]:[`TooManyActions`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(D_e,Dfe);var O_e=[-3,J,pge,{[m2]:[`TooManyCertificates`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(O_e,ife);var k_e=[-3,J,hge,{[m2]:[`TooManyListeners`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(k_e,Ofe);var A_e=[-3,J,mge,{[m2]:[`TooManyLoadBalancers`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(A_e,Vfe);var j_e=[-3,J,_ge,{[m2]:[`TooManyRegistrationsForTargetId`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(j_e,kfe);var M_e=[-3,J,gge,{[m2]:[`TooManyRules`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(M_e,Ufe);var N_e=[-3,J,vge,{[m2]:[`TooManyTags`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(N_e,lfe);var P_e=[-3,J,bge,{[m2]:[`TooManyTargetGroups`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(P_e,Wfe);var F_e=[-3,J,yge,{[m2]:[`TooManyTargets`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(F_e,Afe);var I_e=[-3,J,Sge,{[m2]:[`TooManyTrustStoreRevocationEntries`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(I_e,pfe);var L_e=[-3,J,xge,{[m2]:[`TooManyTrustStores`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(L_e,Jfe);var R_e=[-3,J,Cge,{[m2]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(R_e,jfe);var z_e=[-3,J,Tge,{[m2]:[`AssociationNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(z_e,Xfe);var B_e=[-3,J,Dge,{[m2]:[`TrustStoreInUse`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(B_e,Zfe);var V_e=[-3,J,Oge,{[m2]:[`TrustStoreNotFound`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(V_e,ufe);var H_e=[-3,J,kge,{[m2]:[`TrustStoreNotReady`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(H_e,Mfe);var U_e=[-3,J,Lge,{[m2]:[`UnsupportedProtocol`,400],[g2]:h2,[q]:400},[A0],[0]];Y.registerError(U_e,Nfe);var W_e=[y2,Y],G_e=[3,J,ipe,0,[e2,i2,fpe,spe,whe,Fhe,Mme,Ame,rhe],[0,0,()=>Y_e,()=>J_e,1,()=>zve,()=>Eve,()=>Dve,()=>kve],1],K_e=[3,J,t0,0,[W0,U0,l0],[0,0,0]],q_e=[3,J,$1,0,[Whe,ghe],[0,0]],J_e=[3,J,ope,0,[Pge,Fge,Ige,K0,Q0,Z0,r0,L0],[0,0,0,0,0,1,128,0],3],Y_e=[3,J,dpe,0,[y0,cpe,ege,Nge,bpe,Ape,K0,Q0,Z0,r0,L0,Mge],[0,0,0,0,0,0,0,0,1,128,0,2],5],X_e=[3,J,i0,0,[Bge,J0,The,D0,qhe],[0,0,0,()=>$ve,64]],Z_e=[3,J,Lpe,0,[gpe,Hme],[0,2]],Q_e=[3,J,Tpe,0,[O0,u0,H0,V0,X0,s0,n0,l2,j0],[0,()=>w2,0,1,0,()=>T2,64,()=>k2,()=>S2],2],$_e=[3,J,Epe,0,[w0],[()=>E2]],eve=[3,J,Cpe,0,[P0,Xhe,Y0,q0,$0,l2,e2,b0,c0,d0,x0],[0,64,()=>eye,64,0,()=>k2,0,0,0,0,()=>b2],1],tve=[3,J,wpe,0,[E0],[()=>O2]],nve=[3,J,Npe,0,[P0,H0,B0,V0,f2,m0,h0,f0,g0,p0,_0,v0,d2,M0,c2,l2,b0,t2],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>x2,0,()=>k2,0,1],1],rve=[3,J,Ppe,0,[r2],[()=>M2]],ive=[3,J,Qpe,0,[T0],[0],1],ave=[3,J,eme,0,[],[]],ove=[3,J,Gpe,0,[O0],[0],1],sve=[3,J,Jpe,0,[],[]],cve=[3,J,ume,0,[i2],[0],1],lve=[3,J,pme,0,[],[]],uve=[3,J,yme,0,[i2,u2],[0,()=>A2],2],dve=[3,J,Sme,0,[],[]],fve=[3,J,$pe,0,[O0,ihe,N0,z0],[0,64,0,1]],pve=[3,J,tme,0,[w0,F0],[()=>E2,0]],mve=[3,J,Upe,0,[O0],[0],1],hve=[3,J,Wpe,0,[o0],[()=>D2]],gve=[3,J,Kpe,0,[k0,I0,N0,z0],[64,64,0,1]],_ve=[3,J,Ype,0,[E0,F0],[()=>O2,0]],vve=[3,J,bme,0,[Mhe],[64],1],yve=[3,J,Cme,0,[n2],[()=>tye]],bve=[3,J,cme,0,[i2],[0],1],xve=[3,J,lme,0,[o0],[()=>j2]],Sve=[3,J,dme,0,[O0,nge,I0,N0,z0],[0,64,64,0,1]],Cve=[3,J,mme,0,[r2,F0],[()=>M2,0]],wve=[3,J,_me,0,[i2,u2,Qme],[0,()=>A2,64],1],Tve=[3,J,vme,0,[s2],[()=>rye]],Eve=[3,J,jme,0,[G0,hhe,jpe],[0,0,0],1],Dve=[3,J,kme,0,[r2,a2],[()=>nye,()=>qve]],b2=[3,J,x0,0,[Ume],[0]],Ove=[3,J,ehe,0,[Ome,P0,Rge],[0,0,64],3],kve=[3,J,nhe,0,[$me,y0,ape],[0,0,()=>Qve],2],Ave=[3,J,phe,0,[T0,O0,V0,H0,s0,X0,u0,n0,j0],[0,0,1,0,()=>T2,0,()=>w2,64,()=>S2]],jve=[3,J,dhe,0,[O0,rme,ype,Fpe,che,$0,f2,W0,e2,a0,q0,b0,c0,Dme,d0,x0],[0,0,0,4,0,0,0,()=>Pve,0,()=>Zve,64,0,0,0,0,()=>b2]],Mve=[3,J,ahe,0,[Lme,e0,R0,S0],[0,0,0,0]],Nve=[3,J,ohe,0,[C0,p2],[0,0]],Pve=[3,J,uhe,0,[Rpe,U0],[0,0]],x2=[3,J,M0,0,[Fme,Nme],[0,0]],Fve=[3,J,vhe,0,[O0,o0],[0,()=>D2],2],Ive=[3,J,yhe,0,[o0],[()=>D2]],Lve=[3,J,xhe,0,[i2,o0],[0,()=>j2],2],Rve=[3,J,She,0,[o0],[()=>j2]],S2=[3,J,mhe,0,[Che,wge,zme,Ege,ppe],[0,0,2,0,0]],zve=[3,J,Nhe,0,[G0,H0,V0,Pme,khe,Ahe],[0,0,0,0,0,0],1],Bve=[3,J,Vhe,0,[i2,u2],[0,()=>A2],2],Vve=[3,J,Hhe,0,[],[]],Hve=[3,J,Ghe,0,[J0,e0,R0,S0,Jhe],[0,0,0,0,0]],Uve=[3,J,Age,0,[C0,p2],[0,0],1],Wve=[3,J,Zhe,0,[Phe,l2],[0,()=>k2]],C2=[3,J,Qhe,0,[Zme,V0,i0,jhe],[0,1,0,0],1],Gve=[3,J,lge,0,[i2,oge,H0,V0,f2,m0,h0,f0,p0,_0,v0,d2,g0,M0,k0,c2,B0,b0,t2],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>x2,64,0,0,0,1]],Kve=[3,J,rge,0,[C0,p2],[0,0]],qve=[3,J,a2,0,[Eme,ime],[2,1]],Jve=[3,J,cge,0,[i2,zge],[0,1]],Yve=[3,J,o2,0,[W0,U0,l0],[0,0,0]],Xve=[3,J,uge,0,[jge,h0,o2,$1,t0],[()=>C2,0,()=>Yve,()=>q_e,()=>K_e]],w2=[1,J,hpe,0,()=>G_e],Zve=[1,J,a0,0,()=>X_e],T2=[1,J,xpe,0,()=>Z_e],Qve=[1,J,the,0,()=>Ove],E2=[1,J,w0,0,()=>Ave],$ve=[1,J,D0,0,()=>Mve],D2=[1,J,she,0,()=>Nve],O2=[1,J,E0,0,()=>jve],eye=[1,J,Y0,0,()=>Hve],tye=[1,J,n2,0,()=>Wve],k2=[1,J,dge,0,()=>Uve],A2=[1,J,$he,0,()=>C2],j2=[1,J,ige,0,()=>Kve],nye=[1,J,age,0,()=>Jve],M2=[1,J,r2,0,()=>Gve],rye=[1,J,s2,0,()=>Xve],iye=[9,J,Dpe,0,()=>Q_e,()=>$_e],aye=[9,J,Spe,0,()=>eve,()=>tve],oye=[9,J,Mpe,0,()=>nve,()=>rve],sye=[9,J,Bpe,0,()=>ive,()=>ave],cye=[9,J,Vpe,0,()=>ove,()=>sve],lye=[9,J,ome,0,()=>cve,()=>lve],uye=[9,J,ame,0,()=>uve,()=>dve],dye=[9,J,nme,0,()=>fve,()=>pve],fye=[9,J,Hpe,0,()=>mve,()=>hve],pye=[9,J,Xpe,0,()=>gve,()=>_ve],mye=[9,J,Tme,0,()=>vve,()=>yve],hye=[9,J,sme,0,()=>bve,()=>xve],gye=[9,J,hme,0,()=>Sve,()=>Cve],_ye=[9,J,gme,0,()=>wve,()=>Tve],vye=[9,J,_he,0,()=>Fve,()=>Ive],yye=[9,J,bhe,0,()=>Lve,()=>Rve],bye=[9,J,Uhe,0,()=>Bve,()=>Vve],xye=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??DC,base64Encoder:e?.base64Encoder??OC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??tfe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??qde,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new WD}],logger:e?.logger??new ID,protocol:e?.protocol??aO,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:W_e,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??QC,utf8Decoder:e?.utf8Decoder??$x,utf8Encoder:e?.utf8Encoder??tS}),Sye=e=>{let t=QD(e),n=()=>t().then(jD),r=xye(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ZD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qD({serviceId:r.serviceId,clientVersion:Xde.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??YD(`Region is missing`),requestHandler:IC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||DE),sha256:e?.sha256??Bx,streamCollector:e?.streamCollector??RC,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Cye=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wye=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Tye=(e,t)=>{let n=Object.assign(O1(e),ND(e),Vx(e),Cye(e));return t.forEach(e=>e.configure(n)),Object.assign(e,k1(n),PD(n),Hx(n),wye(n))},Eye=class extends TD{config;constructor(...[e]){let t=Sye(e||{});super(t),this.initConfig=t;let n=Tye(Jde(vD(rC(uD(yD(FT(Yde(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(rw(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(RD(this.config)),this.middlewareStack.use(fD(this.config)),this.middlewareStack.use(oC(this.config)),this.middlewareStack.use(lC(this.config)),this.middlewareStack.use(fC(this.config)),this.middlewareStack.use(_C(this.config,{httpAuthSchemeParametersProvider:Gde,identityProviderConfigProvider:async e=>new AT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(SC(this.config))}destroy(){super.destroy()}},Dye=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(dye).build(){},Oye=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(fye).build(){},N2=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(pye).build(){},kye=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(mye).build(){},Aye=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(hye).build(){},P2=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(gye).build(){},jye=class extends OD.classBuilder().ep(z1).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(_ye).build(){},Mye=async(e,t,n)=>({operation:LS(t).operation,region:await RS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Nye(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Pye=e=>{let t=[];switch(e.operation){default:t.push(Nye(e))}return t},Fye=e=>{let t=GD(e);return Object.assign(t,{authSchemePreference:RS(e.authSchemePreference??[])})},Iye=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),F2={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Lye={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-iam`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},I2=`ref`,L2=`authSchemes`,R2=`name`,z2=`signingRegion`,B2=-1,V2=!0,H2=`isSet`,U2=`PartitionResult`,W2=`booleanEquals`,G2=`stringEquals`,K2=`getAttr`,q2=`sigv4`,J2={[I2]:`Endpoint`},Y2={fn:K2,argv:[{[I2]:U2},`name`]},X2={[I2]:U2},Z2={[L2]:[{[R2]:q2,[z2]:`us-east-1`}]},Q2={[L2]:[{[R2]:q2,[z2]:`cn-north-1`}]},$2={[L2]:[{[R2]:q2,[z2]:`us-gov-west-1`}]},e4={[L2]:[{[R2]:q2,[z2]:`us-iso-east-1`}]},t4={[L2]:[{[R2]:q2,[z2]:`us-isob-east-1`}]},n4={[L2]:[{[R2]:q2,[z2]:`{PartitionResult#implicitGlobalRegion}`}]},r4=[{[I2]:`Region`}],i4={conditions:[[H2,[J2]],[H2,r4],[`aws.partition`,r4,U2],[W2,[{[I2]:`UseFIPS`},V2]],[W2,[{[I2]:`UseDualStack`},V2]],[G2,[Y2,`aws`]],[G2,[Y2,`aws-cn`]],[G2,[Y2,`aws-us-gov`]],[W2,[{fn:K2,argv:[X2,`supportsDualStack`]},V2]],[G2,[Y2,`aws-iso`]],[G2,[Y2,`aws-iso-b`]],[W2,[{fn:K2,argv:[X2,`supportsFIPS`]},V2]],[G2,[Y2,`aws-iso-e`]],[G2,[Y2,`aws-iso-f`]],[G2,[Y2,`aws-eusc`]]],results:[[B2],[B2,`Invalid Configuration: FIPS and custom endpoint are not supported`],[B2,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[J2,{}],[`https://iam.global.api.aws`,Z2],[`https://iam-fips.global.api.aws`,Z2],[`https://iam.global.api.amazonwebservices.com.cn`,Q2],[`https://iam.cn-north-1.amazonaws.com.cn`,Q2],[`https://iam.us-gov.api.aws`,$2],[`https://iam.us-gov.amazonaws.com`,$2],[`https://iam.us-iso-east-1.c2s.ic.gov`,e4],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,e4],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,t4],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,t4],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[L2]:[{[R2]:q2,[z2]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[L2]:[{[R2]:q2,[z2]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[L2]:[{[R2]:q2,[z2]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,n4],[B2,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,n4],[B2,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,n4],[B2,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,n4],[B2,`Invalid Configuration: Missing Region`]]},Rye=2,a4=1e8,zye=new Int32Array([-1,1,-1,0,27,3,1,4,a4+24,2,5,a4+24,3,18,6,4,14,7,6,a4+7,8,7,a4+9,9,9,a4+10,10,10,a4+12,11,12,a4+14,12,13,a4+15,13,14,a4+16,a4+23,5,a4+4,15,6,a4+6,16,7,a4+8,17,8,a4+21,a4+22,4,23,19,7,a4+9,20,9,a4+11,21,10,a4+13,22,11,a4+19,a4+20,5,a4+5,24,7,a4+8,25,8,26,a4+18,11,a4+17,a4+18,3,a4+1,28,4,a4+2,a4+3]),Bye=IT.from(zye,Rye,i4.conditions,i4.results),Vye=new LT({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Hye=(e,t={})=>Vye.get(e,()=>hE(Bye,{endpointParams:e,logger:t.logger}));VT.aws=wE;var o4=class e extends kD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Uye=class e extends o4{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wye=class e extends o4{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gye=class e extends o4{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kye=class e extends o4{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qye=class e extends o4{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jye=class e extends o4{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yye=class e extends o4{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xye=class e extends o4{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zye=class e extends o4{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qye=class e extends o4{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$ye=class e extends o4{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ebe=class e extends o4{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tbe=class e extends o4{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nbe=class e extends o4{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rbe=class e extends o4{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ibe=class e extends o4{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},abe=class e extends o4{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},obe=class e extends o4{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sbe=class e extends o4{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cbe=class e extends o4{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lbe=class e extends o4{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ube=class e extends o4{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dbe=class e extends o4{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fbe=class e extends o4{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pbe=class e extends o4{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mbe=class e extends o4{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hbe=class e extends o4{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gbe=class e extends o4{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_be=class e extends o4{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},vbe=class e extends o4{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ybe=class e extends o4{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bbe=class e extends o4{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xbe=class e extends o4{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Sbe=class e extends o4{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Cbe=class e extends o4{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},s4=`Arn`,wbe=`AttachmentCount`,c4=`AccessKey`,l4=`AccessKeyId`,u4=`AccessKeyMetadata`,Tbe=`AccountNotManagementOrDelegatedAdministratorException`,Ebe=`AttachedPolicy`,Dbe=`AttachedPermissionsBoundary`,Obe=`AttachedPolicies`,kbe=`AttachUserPolicy`,Abe=`AttachUserPolicyRequest`,jbe=`CreateAccessKey`,Mbe=`CreateAccessKeyRequest`,Nbe=`CreateAccessKeyResponse`,d4=`CreateDate`,Pbe=`CallerIsNotManagementAccountException`,Fbe=`ConcurrentModificationException`,Ibe=`CreatePolicyRequest`,Lbe=`CreatePolicyResponse`,Rbe=`CreatePolicy`,zbe=`CredentialReportExpiredException`,Bbe=`CredentialReportNotPresentException`,Vbe=`CredentialReportNotReadyException`,Hbe=`CreateUser`,Ube=`CreateUserRequest`,Wbe=`CreateUserResponse`,f4=`Description`,Gbe=`DeleteAccessKey`,Kbe=`DeleteAccessKeyRequest`,qbe=`DeleteConflictException`,Jbe=`DuplicateCertificateException`,Ybe=`DeletePolicyRequest`,Xbe=`DeletePolicy`,Zbe=`DuplicateSSHPublicKeyException`,Qbe=`DeleteUser`,$be=`DetachUserPolicyRequest`,exe=`DetachUserPolicy`,txe=`DeleteUserRequest`,nxe=`DefaultVersionId`,rxe=`Document`,ixe=`EntityAlreadyExistsException`,axe=`EntityTemporarilyUnmodifiableException`,oxe=`FeatureDisabledException`,sxe=`FeatureEnabledException`,cxe=`GetPolicy`,lxe=`GetPolicyRequest`,uxe=`GetPolicyResponse`,dxe=`GetPolicyVersion`,fxe=`GetPolicyVersionRequest`,pxe=`GetPolicyVersionResponse`,mxe=`GetUser`,hxe=`GetUserRequest`,gxe=`GetUserResponse`,_xe=`IsAttachable`,vxe=`InvalidAuthenticationCodeException`,yxe=`InvalidCertificateException`,bxe=`IsDefaultVersion`,xxe=`InvalidInputException`,Sxe=`InvalidPublicKeyException`,p4=`IsTruncated`,Cxe=`InvalidUserTypeException`,wxe=`Key`,Txe=`KeyPairMismatchException`,Exe=`ListAccessKeys`,Dxe=`ListAccessKeysRequest`,Oxe=`ListAccessKeysResponse`,kxe=`ListAttachedUserPolicies`,Axe=`ListAttachedUserPoliciesRequest`,jxe=`ListAttachedUserPoliciesResponse`,Mxe=`LimitExceededException`,Nxe=`ListPoliciesRequest`,Pxe=`ListPoliciesResponse`,Fxe=`ListPolicies`,Ixe=`ListUsers`,Lxe=`ListUsersRequest`,Rxe=`ListUsersResponse`,m4=`Message`,zxe=`MalformedCertificateException`,h4=`MaxItems`,Bxe=`MalformedPolicyDocumentException`,g4=`Marker`,Vxe=`NoSuchEntityException`,Hxe=`OnlyAttached`,Uxe=`OpenIdIdpCommunicationErrorException`,Wxe=`OrganizationNotFoundException`,Gxe=`OrganizationNotInAllFeaturesModeException`,_4=`PolicyArn`,v4=`PermissionsBoundary`,Kxe=`PermissionsBoundaryArn`,qxe=`PermissionsBoundaryType`,Jxe=`PermissionsBoundaryUsageCount`,Yxe=`PolicyDocument`,Xxe=`PolicyEvaluationException`,Zxe=`PolicyId`,Qxe=`PasswordLastUsed`,y4=`PolicyName`,$xe=`PolicyNotAttachableException`,eSe=`PasswordPolicyViolationException`,b4=`PathPrefix`,tSe=`PolicyUsageFilter`,x4=`PolicyVersion`,S4=`Path`,C4=`Policy`,nSe=`Policies`,rSe=`ReportGenerationLimitExceededException`,w4=`Status`,iSe=`SecretAccessKey`,aSe=`ServiceAccessNotEnabledException`,oSe=`ServiceFailureException`,sSe=`ServiceNotSupportedException`,cSe=`Scope`,T4=`Tags`,lSe=`Tag`,uSe=`UpdateAccessKey`,dSe=`UpdateAccessKeyRequest`,fSe=`UpdateDate`,pSe=`UnmodifiableEntityException`,mSe=`UserId`,E4=`UserName`,hSe=`UnrecognizedPublicKeyEncodingException`,D4=`User`,gSe=`Users`,O4=`VersionId`,_Se=`Value`,vSe=`accessKeyMetadataListType`,ySe=`accessKeySecretType`,bSe=`attachedPoliciesListType`,k4=`awsQueryError`,A4=`client`,j4=`error`,M4=`httpError`,N4=`message`,xSe=`policyListType`,P4=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,F4=`server`,SSe=`tagListType`,CSe=`userListType`,X=`com.amazonaws.iam`,I4=pw.for(P4),wSe=[-3,P4,`IAMServiceException`,0,[],[]];I4.registerError(wSe,o4);var L4=pw.for(X),TSe=[-3,X,Tbe,{[j4]:A4,[M4]:400},[m4],[0]];L4.registerError(TSe,Kye);var ESe=[-3,X,Pbe,{[j4]:A4,[M4]:400},[m4],[0]];L4.registerError(ESe,ube);var DSe=[-3,X,Fbe,{[k4]:[`ConcurrentModification`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(DSe,Uye);var OSe=[-3,X,zbe,{[k4]:[`ReportExpired`,410],[j4]:A4,[M4]:410},[N4],[0]];L4.registerError(OSe,pbe);var kSe=[-3,X,Bbe,{[k4]:[`ReportNotPresent`,410],[j4]:A4,[M4]:410},[N4],[0]];L4.registerError(kSe,mbe);var ASe=[-3,X,Vbe,{[k4]:[`ReportInProgress`,404],[j4]:A4,[M4]:404},[N4],[0]];L4.registerError(ASe,hbe);var jSe=[-3,X,qbe,{[k4]:[`DeleteConflict`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(jSe,ibe);var MSe=[-3,X,Jbe,{[k4]:[`DuplicateCertificate`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(MSe,bbe);var NSe=[-3,X,Zbe,{[k4]:[`DuplicateSSHPublicKey`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(NSe,Sbe);var PSe=[-3,X,ixe,{[k4]:[`EntityAlreadyExists`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(PSe,Yye);var FSe=[-3,X,axe,{[k4]:[`EntityTemporarilyUnmodifiable`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(FSe,Qye);var ISe=[-3,X,oxe,{[k4]:[`FeatureDisabled`,404],[j4]:A4,[M4]:404},[N4],[0]];L4.registerError(ISe,cbe);var LSe=[-3,X,sxe,{[k4]:[`FeatureEnabled`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(LSe,dbe);var RSe=[-3,X,vxe,{[k4]:[`InvalidAuthenticationCode`,403],[j4]:A4,[M4]:403},[N4],[0]];L4.registerError(RSe,lbe);var zSe=[-3,X,yxe,{[k4]:[`InvalidCertificate`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(zSe,xbe);var BSe=[-3,X,xxe,{[k4]:[`InvalidInput`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(BSe,qye);var VSe=[-3,X,Sxe,{[k4]:[`InvalidPublicKey`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(VSe,Cbe);var HSe=[-3,X,Cxe,{[k4]:[`InvalidUserType`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(HSe,$ye);var USe=[-3,X,Txe,{[k4]:[`KeyPairMismatch`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(USe,vbe);var WSe=[-3,X,Mxe,{[k4]:[`LimitExceeded`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(WSe,Jye);var GSe=[-3,X,zxe,{[k4]:[`MalformedCertificate`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(GSe,ybe);var KSe=[-3,X,Bxe,{[k4]:[`MalformedPolicyDocument`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(KSe,nbe);var qSe=[-3,X,Vxe,{[k4]:[`NoSuchEntity`,404],[j4]:A4,[M4]:404},[N4],[0]];L4.registerError(qSe,Wye);var JSe=[-3,X,Uxe,{[k4]:[`OpenIdIdpCommunicationError`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(JSe,tbe);var YSe=[-3,X,Wxe,{[j4]:A4,[M4]:400},[m4],[0]];L4.registerError(YSe,abe);var XSe=[-3,X,Gxe,{[j4]:A4,[M4]:400},[m4],[0]];L4.registerError(XSe,obe);var ZSe=[-3,X,eSe,{[k4]:[`PasswordPolicyViolation`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(ZSe,ebe);var QSe=[-3,X,Xxe,{[k4]:[`PolicyEvaluation`,500],[j4]:F4,[M4]:500},[N4],[0]];L4.registerError(QSe,_be);var $Se=[-3,X,$xe,{[k4]:[`PolicyNotAttachable`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError($Se,Zye);var eCe=[-3,X,rSe,{[k4]:[`ReportGenerationLimitExceeded`,409],[j4]:A4,[M4]:409},[N4],[0]];L4.registerError(eCe,fbe);var tCe=[-3,X,aSe,{[j4]:A4,[M4]:400},[m4],[0]];L4.registerError(tCe,sbe);var nCe=[-3,X,oSe,{[k4]:[`ServiceFailure`,500],[j4]:F4,[M4]:500},[N4],[0]];L4.registerError(nCe,Gye);var rCe=[-3,X,sSe,{[k4]:[`NotSupportedService`,404],[j4]:A4,[M4]:404},[N4],[0]];L4.registerError(rCe,rbe);var iCe=[-3,X,pSe,{[k4]:[`UnmodifiableEntity`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(iCe,Xye);var aCe=[-3,X,hSe,{[k4]:[`UnrecognizedPublicKeyEncoding`,400],[j4]:A4,[M4]:400},[N4],[0]];L4.registerError(aCe,gbe);var oCe=[I4,L4],sCe=[0,X,ySe,8,0],cCe=[3,X,c4,0,[E4,l4,w4,iSe,d4],[0,0,0,[()=>sCe,0],4],4],lCe=[3,X,u4,0,[E4,l4,w4,d4],[0,0,0,4]],uCe=[3,X,Dbe,0,[qxe,Kxe],[0,0]],dCe=[3,X,Ebe,0,[y4,_4],[0,0]],fCe=[3,X,Abe,0,[E4,_4],[0,0],2],pCe=[3,X,Mbe,0,[E4],[0]],mCe=[3,X,Nbe,0,[c4],[[()=>cCe,0]],1],hCe=[3,X,Ibe,0,[y4,Yxe,S4,f4,T4],[0,0,0,0,()=>V4],2],gCe=[3,X,Lbe,0,[C4],[()=>R4]],_Ce=[3,X,Ube,0,[E4,S4,v4,T4],[0,0,0,()=>V4],1],vCe=[3,X,Wbe,0,[D4],[()=>z4]],yCe=[3,X,Kbe,0,[l4,E4],[0,0],1],bCe=[3,X,Ybe,0,[_4],[0],1],xCe=[3,X,txe,0,[E4],[0],1],SCe=[3,X,$be,0,[E4,_4],[0,0],2],CCe=[3,X,lxe,0,[_4],[0],1],wCe=[3,X,uxe,0,[C4],[()=>R4]],TCe=[3,X,fxe,0,[_4,O4],[0,0],2],ECe=[3,X,pxe,0,[x4],[()=>LCe]],DCe=[3,X,hxe,0,[E4],[0]],OCe=[3,X,gxe,0,[D4],[()=>z4],1],kCe=[3,X,Dxe,0,[E4,g4,h4],[0,0,1]],ACe=[3,X,Oxe,0,[u4,p4,g4],[()=>BCe,2,0],1],jCe=[3,X,Axe,0,[E4,b4,g4,h4],[0,0,0,1],1],MCe=[3,X,jxe,0,[Obe,p4,g4],[()=>VCe,2,0]],NCe=[3,X,Nxe,0,[cSe,Hxe,b4,tSe,g4,h4],[0,2,0,0,0,1]],PCe=[3,X,Pxe,0,[nSe,p4,g4],[()=>HCe,2,0]],FCe=[3,X,Lxe,0,[b4,g4,h4],[0,0,1]],ICe=[3,X,Rxe,0,[gSe,p4,g4],[()=>UCe,2,0],1],R4=[3,X,C4,0,[y4,Zxe,s4,S4,nxe,wbe,Jxe,_xe,f4,d4,fSe,T4],[0,0,0,0,0,1,1,2,0,4,4,()=>V4]],LCe=[3,X,x4,0,[rxe,O4,bxe,d4],[0,0,2,4]],RCe=[3,X,lSe,0,[wxe,_Se],[0,0],2],zCe=[3,X,dSe,0,[l4,w4,E4],[0,0,0],2],z4=[3,X,D4,0,[S4,E4,mSe,s4,d4,Qxe,v4,T4],[0,0,0,0,4,4,()=>uCe,()=>V4],5],B4=`unit`,BCe=[1,X,vSe,0,()=>lCe],VCe=[1,X,bSe,0,()=>dCe],HCe=[1,X,xSe,0,()=>R4],V4=[1,X,SSe,0,()=>RCe],UCe=[1,X,CSe,0,()=>z4],WCe=[9,X,kbe,0,()=>fCe,()=>B4],GCe=[9,X,jbe,0,()=>pCe,()=>mCe],KCe=[9,X,Rbe,0,()=>hCe,()=>gCe],qCe=[9,X,Hbe,0,()=>_Ce,()=>vCe],JCe=[9,X,Gbe,0,()=>yCe,()=>B4],YCe=[9,X,Xbe,0,()=>bCe,()=>B4],XCe=[9,X,Qbe,0,()=>xCe,()=>B4],ZCe=[9,X,exe,0,()=>SCe,()=>B4],QCe=[9,X,cxe,0,()=>CCe,()=>wCe],$Ce=[9,X,dxe,0,()=>TCe,()=>ECe],ewe=[9,X,mxe,0,()=>DCe,()=>OCe],twe=[9,X,Exe,0,()=>kCe,()=>ACe],nwe=[9,X,kxe,0,()=>jCe,()=>MCe],rwe=[9,X,Fxe,0,()=>NCe,()=>PCe],iwe=[9,X,Ixe,0,()=>FCe,()=>ICe],awe=[9,X,uSe,0,()=>zCe,()=>B4],owe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??DC,base64Encoder:e?.base64Encoder??OC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Hye,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Pye,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new WD}],logger:e?.logger??new ID,protocol:e?.protocol??aO,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:oCe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??QC,utf8Decoder:e?.utf8Decoder??$x,utf8Encoder:e?.utf8Encoder??tS}),swe=e=>{let t=QD(e),n=()=>t().then(jD),r=owe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ZD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qD({serviceId:r.serviceId,clientVersion:Lye.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??YD(`Region is missing`),requestHandler:IC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||DE),sha256:e?.sha256??Bx,streamCollector:e?.streamCollector??RC,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},cwe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},lwe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),uwe=(e,t)=>{let n=Object.assign(O1(e),ND(e),Vx(e),cwe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,k1(n),PD(n),Hx(n),lwe(n))},dwe=class extends TD{config;constructor(...[e]){let t=swe(e||{});super(t),this.initConfig=t;let n=uwe(Fye(vD(rC(uD(yD(FT(Iye(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(rw(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(RD(this.config)),this.middlewareStack.use(fD(this.config)),this.middlewareStack.use(oC(this.config)),this.middlewareStack.use(lC(this.config)),this.middlewareStack.use(fC(this.config)),this.middlewareStack.use(_C(this.config,{httpAuthSchemeParametersProvider:Mye,identityProviderConfigProvider:async e=>new AT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(SC(this.config))}destroy(){super.destroy()}},fwe=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(QCe).build(){},pwe=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc($Ce).build(){},mwe=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(ewe).build(){},hwe=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(twe).build(){},gwe=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(nwe).build(){},_we=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(rwe).build(){},vwe=class extends OD.classBuilder().ep(F2).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(iwe).build(){};function ywe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&Kx.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var bwe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},xwe=e=>({applyToStack:t=>{t.add(ywe(e),bwe)}}),H4={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Swe=H4.WHEN_SUPPORTED,Cwe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},wwe=H4.WHEN_SUPPORTED,U4;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(U4||={});var Twe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(Twe||={});var Ewe=U4.CRC32,Dwe=function(){function e(){this.crc32=new W4}return e.prototype.update=function(e){vx(e)||this.crc32.update(_x(e))},e.prototype.digest=function(){return Dx(this,void 0,void 0,function(){return Ox(this,function(e){return[2,yx(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new W4},e}(),W4=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=kx(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^Owe[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),Owe=bx([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]),kwe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:RS(t??Swe),responseChecksumValidation:RS(n??wwe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},Awe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,`region`,{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,`region`,{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},jwe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function Mwe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var Nwe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},Pwe=e=>({applyToStack:t=>{t.add(Mwe(e),Nwe),t.addRelativeTo(Awe(e),jwe)}}),Fwe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new G4(Promise.resolve(e)))})),t)):i.set(r,new G4(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},Lwe=`sigv4-s3express`,K4=`X-Amz-S3session-Token`,q4=K4.toLowerCase(),Rwe=class extends GS{async signWithCredentials(e,t,n){let r=J4(t);e.headers[q4]=t.sessionToken;let i=this;return Y4(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=J4(t);return delete e.headers[q4],e.headers[K4]=t.sessionToken,e.query=e.query??{},e.query[K4]=t.sessionToken,Y4(this,r),this.presign(e,n)}};function J4(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function Y4(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}var zwe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===Lwe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(XE(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,Kx.isInstance(r.request)&&i.sessionToken&&(r.request.headers[q4]=i.sessionToken)}}}return t(r)},Bwe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},Vwe=e=>({applyToStack:t=>{t.add(zwe(e),Bwe)}}),Hwe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},Uwe=e=>e=>{throw e},Wwe=(e,t)=>{},Gwe=e=>(t,n)=>async r=>{if(!Kx.isInstance(r.request))return t(r);let i=LS(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await Hwe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||Uwe)(a));return(s.successHandler||Wwe)(l.response,a),l},Kwe=e=>({applyToStack:t=>{t.addRelativeTo(Gwe(e),xC)}}),qwe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new Iwe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})};function Jwe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var Ywe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Xwe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Jx.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await Zwe(s,e);if(a.body=Jwe(c),c.length===0&&Ywe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},Zwe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Qwe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},X4=e=>({applyToStack:t=>{t.addRelativeTo(Xwe(e),Qwe)}}),$we=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6;function eTe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var tTe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function nTe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!$we(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var rTe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},iTe=e=>({applyToStack:t=>{t.add(nTe(e),rTe),t.addRelativeTo(eTe(e),tTe)}}),aTe=class extends yie{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=lw.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}},oTe=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),Z4={CrtSignerV4:null},Q4=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof Z4.CrtSignerV4==`function`?`crt`:typeof KS.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new Rwe(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=Z4.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=Z4.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Z4.CrtSignerV4,t=KS.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},$4=`ref`,e3=`argv`,t3=`backend`,n3=`authSchemes`,r3=`disableDoubleEncoding`,i3=`signingName`,a3=`signingRegion`,o3=`signingRegionSet`,s3=-1,c3=!0,l3=!1,u3=`isSet`,d3=`booleanEquals`,f3=`stringEquals`,p3=`coalesce`,m3=`substring`,h3=``,g3=`aws.partition`,_3=`partitionResult`,v3=`accessPointSuffix`,y3=`regionPrefix`,b3=e=>`outpostId_ssa_`+e+h3,x3=`hardwareType`,S3=`ite`,C3=`isValidHostLabel`,w3=`sigv4`,T3=`aws.isVirtualHostableS3Bucket`,E3=`url`,D3=`getAttr`,O3=`bucketArn`,k3=`--`,A3=`arnType`,j3=`accesspoint`,M3=e=>`accessPointName_ssa_`+e+h3,N3=`s3-object-lambda`,P3=`s3-outposts`,F3=`bucketPartition`,I3=`us-east-1`,L3=`outpostType`,R3=`name`,z3=`s3`,B3=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,V3=`{url#scheme}://{url#authority}{url#path}`,H3=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,U3=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,W3=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,G3=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,K3=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",q3=`sigv4a`,J3=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,Y3=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X3=`https://s3.{partitionResult#dnsSuffix}`,Z3={[$4]:`UseFIPS`},Q3={[$4]:`UseDualStack`},$3={[$4]:`Bucket`},e6={fn:D3,[e3]:[{[$4]:_3},R3]},t6={[$4]:E3},n6={[$4]:`Region`},r6={[$4]:O3},i6={[$4]:A3},a6={[$4]:`accessPointName_ssa_1`},o6={fn:D3,[e3]:[r6,`region`]},s6={[$4]:x3},c6={fn:D3,[e3]:[r6,`service`]},l6={fn:D3,[e3]:[r6,`accountId`]},u6={[t3]:`S3Express`,[n3]:[{[r3]:!0,[R3]:`{_s3e_auth}`,[i3]:`s3express`,[a3]:`{Region}`}]},d6={[t3]:`S3Express`,[n3]:[{[r3]:!0,[R3]:w3,[i3]:`s3express`,[a3]:`{Region}`}]},f6={[n3]:[{[r3]:!0,[R3]:q3,[i3]:P3,[o3]:[`*`]},{[r3]:!0,[R3]:w3,[i3]:P3,[a3]:`{Region}`}]},p6={[n3]:[{[r3]:!0,[R3]:w3,[i3]:z3,[a3]:I3}]},m6={[n3]:[{[r3]:!0,[R3]:w3,[i3]:z3,[a3]:`{Region}`}]},h6={[n3]:[{[r3]:!0,[R3]:w3,[i3]:N3,[a3]:`{bucketArn#region}`}]},g6={[n3]:[{[r3]:!0,[R3]:w3,[i3]:z3,[a3]:`{bucketArn#region}`}]},_6={[n3]:[{[r3]:!0,[R3]:q3,[i3]:P3,[o3]:[`*`]},{[r3]:!0,[R3]:w3,[i3]:P3,[a3]:`{bucketArn#region}`}]},v6={[n3]:[{[r3]:!0,[R3]:w3,[i3]:N3,[a3]:`{Region}`}]},y6=[n6],b6=[{[$4]:`Endpoint`}],x6=[$3],S6=[$3,0,7,!0],C6=[r6,`resourceId[1]`],sTe=[`*`],w6={conditions:[[u3,y6],[d3,[{[$4]:`Accelerate`},c3]],[d3,[Z3,c3]],[d3,[Q3,c3]],[u3,b6],[u3,x6],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,0,6,c3]},h3]},`--x-s3`]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:S6},h3]},`--xa-s3`]],[g3,y6,_3],[m3,S6,v3],[f3,[{[$4]:v3},`--op-s3`]],[m3,[$3,8,12,c3],y3],[m3,[$3,32,49,c3],b3(2)],[m3,[$3,49,50,c3],x3],[d3,[{[$4]:`ForcePathStyle`},c3]],[f3,[e6,`aws-cn`]],[S3,[Q3,`.dualstack`,h3],`_s3e_ds`],[C3,[{[$4]:b3(2)},l3]],[S3,[Z3,`-fips`,h3],`_s3e_fips`],[S3,[{fn:p3,[e3]:[{[$4]:`DisableS3ExpressSessionAuth`},l3]},w3,`sigv4-s3express`],`_s3e_auth`],[T3,[$3,l3]],[`parseURL`,b6,E3],[d3,[{fn:p3,[e3]:[{[$4]:`UseS3ExpressControlEndpoint`},l3]},c3]],[T3,[$3,c3]],[f3,[{fn:D3,[e3]:[t6,`scheme`]},`http`]],[C3,[n6,l3]],[`aws.parseArn`,x6,O3],[D3,[{fn:`split`,[e3]:[$3,k3,0]},`[-2]`],`s3expressAvailabilityZoneId`],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,0,4,l3]},h3]},`arn:`]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,16,18,c3]},h3]},k3]],[d3,[{fn:D3,[e3]:[t6,`isIp`]},c3]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,21,23,c3]},h3]},k3]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,27,29,c3]},h3]},k3]],[f3,[{[$4]:y3},`beta`]],[`uriEncode`,x6,`uri_encoded_bucket`],[C3,[n6,c3]],[d3,[{fn:p3,[e3]:[{[$4]:`UseObjectLambdaEndpoint`},l3]},c3]],[D3,[r6,`resourceId[0]`],A3],[f3,[i6,h3]],[f3,[i6,j3]],[D3,C6,M3(1)],[f3,[a6,h3]],[f3,[o6,h3]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,14,16,c3]},h3]},k3]],[f3,[s6,`e`]],[f3,[s6,`o`]],[f3,[n6,`aws-global`]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,19,21,c3]},h3]},k3]],[f3,[c6,N3]],[d3,[{fn:p3,[e3]:[{[$4]:`DisableAccessPoints`},l3]},c3]],[f3,[c6,P3]],[g3,[o6],F3],[C3,[a6,c3]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,26,28,c3]},h3]},k3]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,15,17,c3]},h3]},k3]],[D3,[r6,`resourceId[4]`]],[f3,[{fn:p3,[e3]:[{fn:m3,[e3]:[$3,20,22,c3]},h3]},k3]],[d3,[{[$4]:`UseGlobalEndpoint`},c3]],[f3,[n6,I3]],[D3,C6,b3(1)],[d3,[{fn:p3,[e3]:[{[$4]:`UseArnRegion`},c3]},c3]],[C3,[{[$4]:b3(1)},l3]],[D3,[r6,`resourceId[2]`],L3],[f3,[n6,o6]],[f3,[{fn:D3,[e3]:[{[$4]:F3},R3]},e6]],[d3,[{[$4]:`DisableMultiRegionAccessPoints`},c3]],[C3,[o6,c3]],[f3,[{fn:D3,[e3]:[r6,`partition`]},e6]],[f3,[l6,h3]],[f3,[c6,z3]],[C3,[l6,l3]],[D3,[r6,`resourceId[3]`],M3(2)],[C3,[a6,l3]],[f3,[{[$4]:L3},j3]],[C3,[{[$4]:M3(2)},l3]]],results:[[s3],[s3,`Accelerate cannot be used with FIPS`],[s3,`Cannot set dual-stack in combination with a custom endpoint.`],[s3,`A custom endpoint cannot be combined with FIPS`],[s3,`A custom endpoint cannot be combined with S3 Accelerate`],[s3,`Partition does not support FIPS`],[s3,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,u6],[B3,u6],[s3,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,d6],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,u6],[s3,`Unrecognized S3Express bucket name format.`],[V3,u6],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,d6],[s3,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,f6],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,f6],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,f6],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,f6],[s3,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[s3,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[s3,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[s3,"Custom endpoint `{Endpoint}` was not a valid URI"],[s3,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,m6],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,m6],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,m6],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,m6],[H3,p6],[B3,p6],[H3,m6],[B3,m6],[U3,p6],[U3,m6],[W3,p6],[W3,m6],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,m6],[s3,`Invalid region: region was not a valid DNS name.`],[s3,`S3 Object Lambda does not support Dual-stack`],[s3,`S3 Object Lambda does not support S3 Accelerate`],[s3,`Access points are not supported for this operation`],[s3,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[s3,`Invalid ARN: Missing account id`],[G3(1),h6],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,h6],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,h6],[s3,K3(1)],[s3,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[s3,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[s3,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[s3,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[s3,`Invalid ARN: bucket ARN is missing a region`],[s3,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[s3,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[s3,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,g6],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,g6],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,g6],[G3(1),g6],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,g6],[s3,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[s3,`S3 MRAP does not support dual-stack`],[s3,`S3 MRAP does not support FIPS`],[s3,`S3 MRAP does not support S3 Accelerate`],[s3,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[n3]:[{[r3]:c3,name:q3,[i3]:z3,[o3]:sTe}]}],[s3,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[s3,`Invalid Access Point Name`],[s3,`S3 Outposts does not support Dual-stack`],[s3,`S3 Outposts does not support FIPS`],[s3,`S3 Outposts does not support S3 Accelerate`],[s3,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,_6],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,_6],[s3,K3(2)],[s3,"Expected an outpost type `accesspoint`, found {outpostType}"],[s3,`Invalid ARN: expected an access point name`],[s3,`Invalid ARN: Expected a 4-component resource`],[s3,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[s3,`Invalid ARN: The Outpost Id was not set`],[s3,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[s3,`Invalid ARN: No ARN type specified`],[s3,"Invalid ARN: `{Bucket}` was not a valid ARN"],[s3,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,p6],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,m6],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,p6],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,m6],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,p6],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,m6],[J3,p6],[J3,m6],[Y3,p6],[Y3,m6],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,m6],[s3,`Path-style addressing cannot be used with S3 Accelerate`],[V3,v6],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,v6],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,v6],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,m6],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,m6],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,p6],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,m6],[V3,p6],[V3,m6],[X3,p6],[X3,m6],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,m6],[s3,`A region must be set when sending requests to S3.`]]},cTe=2,Z=1e8,lTe=new Int32Array([-1,1,-1,0,3,Z+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,Z+115,16,10,13,18,11,13,19,12,13,22,Z+14,13,35,14,Z+42,36,Z+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,Z+86,38,Z+86,29,39,47,30,48,Z+58,31,50,32,Z+85,51,33,136,55,Z+76,34,59,35,Z+84,60,39,36,61,37,Z+83,62,38,146,63,41,Z+46,61,40,Z+83,62,41,150,64,42,Z+54,66,43,Z+53,70,44,Z+52,71,45,Z+81,73,46,Z+80,74,Z+78,Z+79,40,48,Z+57,41,Z+57,49,42,185,50,48,62,51,49,Z+45,52,51,53,526,60,56,54,62,Z+55,55,63,57,Z+46,62,Z+55,57,64,58,Z+54,66,59,Z+53,69,60,Z+65,70,61,Z+52,72,Z+64,Z+51,49,Z+45,63,51,64,526,60,67,65,62,Z+55,66,63,68,Z+46,62,Z+55,68,64,69,Z+54,66,70,Z+53,68,Z+47,71,70,72,Z+52,72,Z+50,Z+51,25,74,Z+42,46,Z+39,75,57,76,Z+41,58,Z+40,Z+41,26,Z+88,78,28,Z+87,79,34,82,80,35,81,545,36,Z+103,Z+115,46,Z+97,83,57,84,Z+99,58,Z+98,Z+99,5,101,86,8,87,Z+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,Z+14,95,35,96,Z+42,36,Z+103,Z+42,22,Z+13,98,35,99,Z+42,36,Z+101,100,46,Z+110,Z+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,Z+23,26,107,502,37,108,Z+86,38,Z+86,109,39,112,110,48,Z+58,111,50,136,Z+85,40,113,Z+57,41,Z+57,114,42,115,500,48,Z+56,116,52,117,Z+72,65,Z+69,Z+72,21,501,Z+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,Z+23,23,128,129,24,189,129,26,130,197,37,131,Z+86,38,Z+86,132,39,159,133,48,Z+58,134,50,135,Z+85,51,141,136,55,Z+76,137,59,138,Z+84,60,Z+83,139,61,140,Z+83,63,Z+83,Z+46,55,Z+76,142,59,143,Z+84,60,148,144,61,145,Z+83,62,147,146,63,150,Z+46,63,153,Z+46,61,149,Z+83,62,153,150,64,151,Z+54,66,152,Z+53,70,Z+82,Z+52,64,154,Z+54,66,155,Z+53,70,156,Z+52,71,157,Z+81,73,158,Z+80,74,Z+77,Z+79,40,160,Z+57,41,Z+57,161,42,185,162,48,174,163,49,Z+45,164,51,165,526,60,168,166,62,Z+55,167,63,169,Z+46,62,Z+55,169,64,170,Z+54,66,171,Z+53,69,172,Z+65,70,173,Z+52,72,Z+63,Z+51,49,Z+45,175,51,176,526,60,179,177,62,Z+55,178,63,180,Z+46,62,Z+55,180,64,181,Z+54,66,182,Z+53,68,Z+47,183,70,184,Z+52,72,Z+48,Z+51,48,Z+56,186,52,187,Z+72,65,Z+69,188,67,Z+70,Z+71,25,Z+36,Z+42,21,191,Z+23,25,192,Z+42,30,194,193,46,Z+34,Z+36,46,Z+33,Z+35,21,196,Z+23,26,Z+88,197,28,Z+87,198,34,201,199,35,200,545,36,Z+101,Z+115,46,Z+95,Z+96,17,203,Z+22,20,204,Z+21,21,205,550,33,206,550,44,Z+16,207,45,Z+18,Z+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,Z+9,20,217,227,21,231,Z+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,Z+12,19,226,224,20,225,Z+9,21,Z+9,Z+12,20,230,227,21,228,Z+9,30,229,Z+9,34,Z+7,Z+9,21,231,415,30,232,Z+8,34,Z+7,Z+8,4,Z+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,Z+86,38,Z+86,248,39,249,518,40,250,Z+57,41,Z+57,251,42,538,252,48,Z+43,253,49,Z+45,254,51,255,526,60,258,256,62,Z+55,257,63,259,Z+46,62,Z+55,259,64,260,Z+54,66,261,Z+53,69,262,Z+65,70,263,Z+52,72,Z+62,Z+51,25,265,Z+42,46,Z+31,Z+32,26,Z+88,267,28,Z+87,268,34,269,544,46,Z+93,Z+94,8,397,Z+9,8,407,Z+9,3,346,273,4,Z+3,274,5,284,275,8,276,Z+115,15,Z+5,277,16,278,281,18,279,281,19,280,281,22,Z+14,281,35,282,Z+42,36,Z+102,283,46,Z+106,Z+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,Z+86,38,Z+86,291,39,292,307,40,293,Z+57,41,Z+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,Z+5,302,20,337,303,26,304,341,37,305,Z+86,38,Z+86,306,39,309,307,48,Z+58,308,50,Z+74,Z+85,40,310,Z+57,41,Z+57,311,42,335,312,48,324,313,49,Z+45,314,51,315,526,60,318,316,62,Z+55,317,63,319,Z+46,62,Z+55,319,64,320,Z+54,66,321,Z+53,69,322,Z+65,70,323,Z+52,72,Z+61,Z+51,49,Z+45,325,51,326,526,60,329,327,62,Z+55,328,63,330,Z+46,62,Z+55,330,64,331,Z+54,66,332,Z+53,68,Z+47,333,70,334,Z+52,72,Z+49,Z+51,48,Z+56,336,52,Z+67,Z+72,25,338,Z+42,46,Z+27,Z+28,15,Z+5,340,26,Z+88,341,28,Z+87,342,34,345,343,35,344,545,36,Z+102,Z+115,46,Z+91,Z+92,4,Z+2,347,5,357,348,8,349,Z+115,15,Z+5,350,16,351,354,18,352,354,19,353,354,22,Z+14,354,35,355,Z+42,36,Z+43,356,46,Z+104,Z+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,Z+5,367,20,387,368,26,369,391,37,370,Z+86,38,Z+86,371,39,372,518,40,373,Z+57,41,Z+57,374,42,538,375,48,Z+43,376,49,Z+45,377,51,378,526,60,381,379,62,Z+55,380,63,382,Z+46,62,Z+55,382,64,383,Z+54,66,384,Z+53,69,385,Z+65,70,386,Z+52,72,Z+60,Z+51,25,388,Z+42,46,Z+25,Z+26,15,Z+5,390,26,Z+88,391,28,Z+87,392,34,393,544,46,Z+89,Z+90,15,Z+5,547,8,396,Z+9,15,Z+5,397,16,398,410,18,399,410,19,400,410,20,401,Z+9,27,402,Z+12,29,Z+11,403,31,Z+11,404,32,Z+11,422,8,406,Z+9,15,Z+5,407,16,408,410,18,409,410,19,411,410,20,Z+12,Z+9,20,414,412,22,413,Z+9,34,Z+10,Z+9,22,416,415,27,419,Z+12,27,418,417,34,Z+10,Z+12,34,Z+10,419,43,Z+11,420,47,Z+11,421,53,Z+11,422,54,Z+11,423,56,Z+11,Z+12,2,Z+1,425,3,478,426,4,Z+4,427,5,438,428,8,429,Z+115,16,430,433,18,431,433,19,432,433,22,Z+14,433,35,434,Z+42,36,Z+44,435,46,Z+112,436,57,437,Z+114,58,Z+113,Z+114,6,Z+6,439,7,Z+6,440,8,450,441,14,501,442,26,443,502,37,444,Z+86,38,Z+86,445,39,446,465,40,447,Z+57,41,Z+57,448,42,471,449,48,Z+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,Z+42,46,Z+37,Z+38,20,540,461,26,462,474,37,463,Z+86,38,Z+86,464,39,467,465,48,Z+58,466,50,Z+75,Z+85,40,468,Z+57,41,Z+57,469,42,471,470,48,Z+44,524,48,Z+44,472,52,Z+68,Z+72,26,Z+88,474,28,Z+87,475,34,Z+100,476,35,477,545,36,Z+44,Z+115,4,Z+2,479,5,488,480,8,481,Z+115,16,482,485,18,483,485,19,484,485,22,Z+14,485,35,486,Z+42,36,Z+43,487,46,Z+108,Z+109,6,Z+6,489,7,Z+6,490,8,503,491,14,501,492,26,493,502,37,494,Z+86,38,Z+86,495,39,496,518,40,497,Z+57,41,Z+57,498,42,538,499,48,Z+43,500,49,Z+45,526,26,Z+88,502,28,Z+87,Z+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,Z+42,46,Z+29,Z+30,20,540,514,26,515,542,37,516,Z+86,38,Z+86,517,39,520,518,48,Z+58,519,50,Z+73,Z+85,40,521,Z+57,41,Z+57,522,42,538,523,48,Z+43,524,49,Z+45,525,51,529,526,60,Z+55,527,62,Z+55,528,63,Z+55,Z+46,60,532,530,62,Z+55,531,63,533,Z+46,62,Z+55,533,64,534,Z+54,66,535,Z+53,69,536,Z+65,70,537,Z+52,72,Z+59,Z+51,48,Z+43,539,52,Z+66,Z+72,25,Z+24,Z+42,26,Z+88,542,28,Z+87,543,34,Z+100,544,35,546,545,36,Z+42,Z+115,36,Z+43,Z+115,17,548,Z+22,20,549,Z+21,33,552,550,44,Z+17,551,45,Z+19,Z+20,44,Z+15,553,45,Z+15,Z+20]),uTe=IT.from(lTe,cTe,w6.conditions,w6.results),dTe=new LT({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),T6=(e,t={})=>dTe.get(e,()=>hE(uTe,{endpointParams:e,logger:t.logger}));VT.aws=wE;var fTe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=LS(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await gD(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:LS(t).operation,region:await RS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function E6(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function D6(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var pTe=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Q4.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(T6,e=>{let t=[];switch(e.operation){default:t.push(E6(e)),t.push(D6(e))}return t},{"aws.auth#sigv4":E6,"aws.auth#sigv4a":D6}),mTe=e=>{let t=Yre(GD(e));return Object.assign(t,{authSchemePreference:RS(e.authSchemePreference??[])})},hTe=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??{}}),O6={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`}},k6=class e extends kD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},gTe=class e extends k6{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_Te=class e extends k6{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vTe=class e extends k6{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yTe=class e extends k6{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bTe=class e extends k6{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xTe=class e extends k6{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},STe=class e extends k6{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},CTe=class e extends k6{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wTe=class e extends k6{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TTe=class e extends k6{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ETe=class e extends k6{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DTe=class e extends k6{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OTe=class e extends k6{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kTe=class e extends k6{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ATe=class e extends k6{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},A6=`ACL`,jTe=`AccessDenied`,MTe=`AbortDate`,j6=`AccessKeyId`,NTe=`AbortMultipartUpload`,PTe=`AbortMultipartUploadOutput`,FTe=`AbortMultipartUploadRequest`,ITe=`AcceptRanges`,LTe=`AbortRuleId`,RTe=`AccessTier`,M6=`Bucket`,N6=`BucketArn`,zTe=`BucketAlreadyExists`,BTe=`BucketAlreadyOwnedByYou`,VTe=`BypassGovernanceRetention`,HTe=`BucketInfo`,P6=`BucketKeyEnabled`,UTe=`BucketNamespace`,F6=`BucketRegion`,I6=`Body`,L6=`Buckets`,R6=`ChecksumAlgorithm`,WTe=`CreateBucket`,z6=`CreateBucketConfiguration`,GTe=`CreateBucketOutput`,KTe=`CreateBucketRequest`,B6=`CacheControl`,V6=`ChecksumCRC32`,H6=`ChecksumCRC32C`,U6=`ChecksumCRC64NVME`,W6=`Cache-Control`,qTe=`CreationDate`,G6=`Content-Disposition`,K6=`ContentDisposition`,q6=`Content-Encoding`,J6=`ContentEncoding`,Y6=`ContentLanguage`,X6=`Content-Language`,Z6=`Content-Length`,Q6=`ContentLength`,$6=`Content-MD5`,e8=`ChecksumMD5`,t8=`ContentMD5`,JTe=`CompletedMultipartUpload`,YTe=`CompleteMultipartUploadOutput`,XTe=`CreateMultipartUploadOutput`,ZTe=`CompleteMultipartUploadResult`,QTe=`CompleteMultipartUploadRequest`,$Te=`CreateMultipartUploadRequest`,n8=`CompleteMultipartUpload`,eEe=`CreateMultipartUpload`,tEe=`ChecksumMode`,nEe=`CommonPrefix`,rEe=`CommonPrefixList`,iEe=`CompletedPartList`,aEe=`CompletedPart`,oEe=`CommonPrefixes`,sEe=`ContentRange`,cEe=`Content-Range`,r8=`ChecksumSHA1`,i8=`ChecksumSHA256`,a8=`ChecksumSHA512`,lEe=`CreateSessionOutput`,uEe=`CreateSessionResult`,dEe=`CreateSessionRequest`,fEe=`CreateSession`,o8=`ChecksumType`,s8=`Content-Type`,c8=`ContentType`,l8=`ContinuationToken`,u8=`ChecksumXXHASH64`,d8=`ChecksumXXHASH3`,f8=`ChecksumXXHASH128`,pEe=`Contents`,p8=`Credentials`,m8=`DeleteMarker`,mEe=`DisplayName`,hEe=`DeleteObjectOutput`,gEe=`DeleteObjectRequest`,_Ee=`DeleteObject`,vEe=`DataRedundancy`,h8=`Delimiter`,g8=`Expiration`,_8=`ExpectedBucketOwner`,v8=`ExpiresString`,yEe=`EncryptionTypeMismatch`,y8=`ETag`,b8=`EncodingType`,x8=`Expires`,bEe=`FetchOwner`,S8=`GrantFullControl`,xEe=`GetObject`,SEe=`GetObjectOutput`,CEe=`GetObjectRequest`,C8=`GrantRead`,w8=`GrantReadACP`,wEe=`GrantWrite`,T8=`GrantWriteACP`,TEe=`ID`,E8=`IfMatch`,EEe=`IfMatchInitiatedTime`,DEe=`IfMatchLastModifiedTime`,OEe=`IfMatchSize`,kEe=`If-Modified-Since`,AEe=`IfModifiedSince`,jEe=`InitiateMultipartUploadResult`,D8=`If-Match`,O8=`IfNoneMatch`,k8=`If-None-Match`,MEe=`InvalidObjectState`,NEe=`IdempotencyParameterMismatch`,PEe=`InvalidRequest`,FEe=`IsRestoreInProgress`,IEe=`IsTruncated`,LEe=`IfUnmodifiedSince`,REe=`If-Unmodified-Since`,zEe=`InvalidWriteOffset`,A8=`Key`,BEe=`KeyCount`,j8=`Location`,VEe=`ListAllMyBucketsResult`,HEe=`ListBuckets`,UEe=`ListBucketsOutput`,WEe=`ListBucketsRequest`,GEe=`ListBucketResult`,KEe=`LocationConstraint`,qEe=`LocationInfo`,M8=`LastModified`,JEe=`Last-Modified`,YEe=`ListObjectsV2`,XEe=`ListObjectsV2Output`,ZEe=`ListObjectsV2Request`,N8=`Metadata`,QEe=`MaxBuckets`,$Ee=`MFA`,P8=`MaxKeys`,eDe=`MissingMeta`,tDe=`MpuObjectSize`,nDe=`MultipartUpload`,F8=`Name`,rDe=`NextContinuationToken`,iDe=`NotFound`,aDe=`NoSuchBucket`,oDe=`NoSuchKey`,sDe=`NoSuchUpload`,I8=`Owner`,cDe=`ObjectAlreadyInActiveTierError`,lDe=`ObjectLockEnabledForBucket`,L8=`ObjectLockLegalHoldStatus`,R8=`ObjectLockMode`,z8=`ObjectLockRetainUntilDate`,uDe=`ObjectList`,dDe=`ObjectNotInActiveTierError`,fDe=`ObjectOwnership`,pDe=`OptionalObjectAttributes`,mDe=`Object`,B8=`Prefix`,hDe=`PartsCount`,V8=`PartNumber`,gDe=`PutObject`,_De=`PutObjectOutput`,vDe=`PutObjectRequest`,yDe=`PutObjectTagging`,bDe=`PutObjectTaggingOutput`,xDe=`PutObjectTaggingRequest`,SDe=`Parts`,CDe=`Part`,H8=`RequestCharged`,wDe=`ResponseCacheControl`,TDe=`ResponseContentDisposition`,EDe=`ResponseContentEncoding`,DDe=`ResponseContentLanguage`,ODe=`ResponseContentType`,kDe=`ResponseExpires`,ADe=`RestoreExpiryDate`,U8=`RequestPayer`,jDe=`ReplicationStatus`,W8=`RestoreStatus`,G8=`Range`,MDe=`Restore`,K8=`StartAfter`,q8=`SecretAccessKey`,NDe=`StreamingBlob`,J8=`StorageClass`,PDe=`SessionCredentialValue`,FDe=`SessionCredentials`,IDe=`SessionMode`,Y8=`ServerSideEncryption`,X8=`SSECustomerAlgorithm`,Z8=`SSECustomerKey`,Q8=`SSECustomerKeyMD5`,$8=`SSEKMSEncryptionContext`,e5=`SSEKMSKeyId`,t5=`SessionToken`,n5=`Size`,LDe=`Tags`,RDe=`TagCount`,zDe=`TooManyParts`,r5=`TagSet`,i5=`Tag`,a5=`Tagging`,o5=`Type`,s5=`UploadId`,BDe=`UploadPart`,VDe=`UploadPartOutput`,HDe=`UploadPartRequest`,UDe=`Value`,c5=`VersionId`,WDe=`WriteOffsetBytes`,l5=`WebsiteRedirectLocation`,GDe=`accept-ranges`,KDe=`bucket-region`,u5=`client`,d5=`continuation-token`,qDe=`delimiter`,f5=`error`,JDe=`encoding-type`,YDe=`fetch-owner`,p5=`http`,m5=`httpChecksum`,h5=`httpError`,Q=`httpHeader`,g5=`httpPayload`,_5=`httpPrefixHeaders`,v5=`httpQuery`,XDe=`max-buckets`,ZDe=`max-keys`,y5=`prefix`,b5=`partNumber`,QDe=`response-cache-control`,$De=`response-content-disposition`,eOe=`response-content-encoding`,tOe=`response-content-language`,nOe=`response-content-type`,rOe=`response-expires`,x5=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,iOe=`start-after`,aOe=`streaming`,S5=`uploadId`,C5=`versionId`,w5=`xmlFlattened`,T5=`xmlName`,E5=`x-amz-acl`,oOe=`x-amz-abort-date`,sOe=`x-amz-abort-rule-id`,cOe=`x-amz-bucket-arn`,lOe=`x-amz-bypass-governance-retention`,uOe=`x-amz-bucket-namespace`,dOe=`x-amz-bucket-object-lock-enabled`,D5=`x-amz-checksum-algorithm`,O5=`x-amz-checksum-crc32`,k5=`x-amz-checksum-crc32c`,A5=`x-amz-checksum-crc64nvme`,j5=`x-amz-checksum-md5`,fOe=`x-amz-checksum-mode`,M5=`x-amz-checksum-sha1`,N5=`x-amz-checksum-sha256`,P5=`x-amz-checksum-sha512`,pOe=`x-amz-create-session-mode`,F5=`x-amz-checksum-type`,I5=`x-amz-checksum-xxhash64`,L5=`x-amz-checksum-xxhash3`,R5=`x-amz-checksum-xxhash128`,z5=`x-amz-delete-marker`,B5=`x-amz-expiration`,V5=`x-amz-expected-bucket-owner`,H5=`x-amz-grant-full-control`,U5=`x-amz-grant-read`,W5=`x-amz-grant-read-acp`,mOe=`x-amz-grant-write`,G5=`x-amz-grant-write-acp`,hOe=`x-amz-if-match-initiated-time`,gOe=`x-amz-if-match-last-modified-time`,_Oe=`x-amz-if-match-size`,K5=`x-amz-meta-`,vOe=`x-amz-mfa`,yOe=`x-amz-missing-meta`,bOe=`x-amz-mp-object-size`,xOe=`x-amz-mp-parts-count`,q5=`x-amz-object-lock-legal-hold`,J5=`x-amz-object-lock-mode`,Y5=`x-amz-object-lock-retain-until-date`,SOe=`x-amz-object-ownership`,COe=`x-amz-optional-object-attributes`,wOe=`x-amz-object-size`,TOe=`x-amz-restore`,X5=`x-amz-request-charged`,Z5=`x-amz-request-payer`,EOe=`x-amz-replication-status`,Q5=`x-amz-storage-class`,$5=`x-amz-sdk-checksum-algorithm`,e7=`x-amz-server-side-encryption`,t7=`x-amz-server-side-encryption-aws-kms-key-id`,n7=`x-amz-server-side-encryption-bucket-key-enabled`,r7=`x-amz-server-side-encryption-context`,i7=`x-amz-server-side-encryption-customer-algorithm`,a7=`x-amz-server-side-encryption-customer-key`,o7=`x-amz-server-side-encryption-customer-key-MD5`,s7=`x-amz-tagging`,DOe=`x-amz-tagging-count`,c7=`x-amz-version-id`,OOe=`x-amz-write-offset-bytes`,l7=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,u7=pw.for(x5),kOe=[-3,x5,`S3ServiceException`,0,[],[]];u7.registerError(kOe,k6);var d7=pw.for($),AOe=[-3,$,jTe,{[f5]:u5,[h5]:403},[],[]];d7.registerError(AOe,_Te);var jOe=[-3,$,zTe,{[f5]:u5,[h5]:409},[],[]];d7.registerError(jOe,yTe);var MOe=[-3,$,BTe,{[f5]:u5,[h5]:409},[],[]];d7.registerError(MOe,bTe);var NOe=[-3,$,yEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(NOe,TTe);var POe=[-3,$,NEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(POe,kTe);var FOe=[-3,$,MEe,{[f5]:u5,[h5]:403},[J8,RTe],[0,0]];d7.registerError(FOe,STe);var IOe=[-3,$,PEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(IOe,ETe);var LOe=[-3,$,zEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(LOe,DTe);var ROe=[-3,$,aDe,{[f5]:u5,[h5]:404},[],[]];d7.registerError(ROe,xTe);var zOe=[-3,$,oDe,{[f5]:u5,[h5]:404},[],[]];d7.registerError(zOe,CTe);var BOe=[-3,$,sDe,{[f5]:u5,[h5]:404},[],[]];d7.registerError(BOe,gTe);var VOe=[-3,$,iDe,{[f5]:u5},[],[]];d7.registerError(VOe,wTe);var HOe=[-3,$,cDe,{[f5]:u5,[h5]:403},[],[]];d7.registerError(HOe,ATe);var UOe=[-3,$,dDe,{[f5]:u5,[h5]:403},[],[]];d7.registerError(UOe,vTe);var WOe=[-3,$,zDe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(WOe,OTe);var GOe=[u7,d7],f7=[0,$,PDe,8,0],p7=[0,$,Z8,8,0],m7=[0,$,$8,8,0],h7=[0,$,e5,8,0],g7=[0,$,NDe,{[aOe]:1},42],KOe=[3,$,PTe,0,[H8],[[0,{[Q]:X5}]]],qOe=[3,$,FTe,0,[M6,A8,s5,U8,_8,EEe],[[0,1],[0,1],[0,{[v5]:S5}],[0,{[Q]:Z5}],[0,{[Q]:V5}],[6,{[Q]:hOe}]],3],JOe=[3,$,M6,0,[F8,qTe,F6,N6],[0,4,0,0]],YOe=[3,$,HTe,0,[vEe,o5],[0,0]],XOe=[3,$,nEe,0,[B8],[0]],ZOe=[3,$,JTe,0,[SDe],[[()=>Ake,{[w5]:1,[T5]:CDe}]]],QOe=[3,$,aEe,0,[y8,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,V8],[0,0,0,0,0,0,0,0,0,0,0,1]],$Oe=[3,$,YTe,{[T5]:ZTe},[j8,M6,A8,g8,y8,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,o8,Y8,c5,e5,P6,H8],[0,0,0,[0,{[Q]:B5}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Q]:e7}],[0,{[Q]:c7}],[()=>h7,{[Q]:t7}],[2,{[Q]:n7}],[0,{[Q]:X5}]]],eke=[3,$,QTe,0,[M6,A8,s5,nDe,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,o8,tDe,U8,_8,E8,O8,X8,Z8,Q8],[[0,1],[0,1],[0,{[v5]:S5}],[()=>ZOe,{[g5]:1,[T5]:n8}],[0,{[Q]:O5}],[0,{[Q]:k5}],[0,{[Q]:A5}],[0,{[Q]:M5}],[0,{[Q]:N5}],[0,{[Q]:P5}],[0,{[Q]:j5}],[0,{[Q]:I5}],[0,{[Q]:L5}],[0,{[Q]:R5}],[0,{[Q]:F5}],[1,{[Q]:bOe}],[0,{[Q]:Z5}],[0,{[Q]:V5}],[0,{[Q]:D8}],[0,{[Q]:k8}],[0,{[Q]:i7}],[()=>p7,{[Q]:a7}],[0,{[Q]:o7}]],3],tke=[3,$,z6,0,[KEe,j8,M6,LDe],[0,()=>gke,()=>YOe,[()=>v7,0]]],nke=[3,$,GTe,0,[j8,N6],[[0,{[Q]:j8}],[0,{[Q]:cOe}]]],rke=[3,$,KTe,0,[M6,A6,z6,S8,C8,w8,wEe,T8,lDe,fDe,UTe],[[0,1],[0,{[Q]:E5}],[()=>tke,{[g5]:1,[T5]:z6}],[0,{[Q]:H5}],[0,{[Q]:U5}],[0,{[Q]:W5}],[0,{[Q]:mOe}],[0,{[Q]:G5}],[2,{[Q]:dOe}],[0,{[Q]:SOe}],[0,{[Q]:uOe}]],1],ike=[3,$,XTe,{[T5]:jEe},[MTe,LTe,M6,A8,s5,Y8,X8,Q8,e5,$8,P6,H8,R6,o8],[[4,{[Q]:oOe}],[0,{[Q]:sOe}],[0,{[T5]:M6}],0,0,[0,{[Q]:e7}],[0,{[Q]:i7}],[0,{[Q]:o7}],[()=>h7,{[Q]:t7}],[()=>m7,{[Q]:r7}],[2,{[Q]:n7}],[0,{[Q]:X5}],[0,{[Q]:D5}],[0,{[Q]:F5}]]],ake=[3,$,$Te,0,[M6,A8,A6,B6,K6,J6,Y6,c8,x8,S8,C8,w8,T8,N8,Y8,J8,l5,X8,Z8,Q8,e5,$8,P6,U8,a5,R8,z8,L8,_8,R6,o8],[[0,1],[0,1],[0,{[Q]:E5}],[0,{[Q]:W6}],[0,{[Q]:G6}],[0,{[Q]:q6}],[0,{[Q]:X6}],[0,{[Q]:s8}],[4,{[Q]:x8}],[0,{[Q]:H5}],[0,{[Q]:U5}],[0,{[Q]:W5}],[0,{[Q]:G5}],[128,{[_5]:K5}],[0,{[Q]:e7}],[0,{[Q]:Q5}],[0,{[Q]:l7}],[0,{[Q]:i7}],[()=>p7,{[Q]:a7}],[0,{[Q]:o7}],[()=>h7,{[Q]:t7}],[()=>m7,{[Q]:r7}],[2,{[Q]:n7}],[0,{[Q]:Z5}],[0,{[Q]:s7}],[0,{[Q]:J5}],[5,{[Q]:Y5}],[0,{[Q]:q5}],[0,{[Q]:V5}],[0,{[Q]:D5}],[0,{[Q]:F5}]],2],oke=[3,$,lEe,{[T5]:uEe},[p8,Y8,e5,$8,P6],[[()=>Cke,{[T5]:p8}],[0,{[Q]:e7}],[()=>h7,{[Q]:t7}],[()=>m7,{[Q]:r7}],[2,{[Q]:n7}]],1],ske=[3,$,dEe,0,[M6,IDe,Y8,e5,$8,P6],[[0,1],[0,{[Q]:pOe}],[0,{[Q]:e7}],[()=>h7,{[Q]:t7}],[()=>m7,{[Q]:r7}],[2,{[Q]:n7}]],1],cke=[3,$,hEe,0,[m8,c5,H8],[[2,{[Q]:z5}],[0,{[Q]:c7}],[0,{[Q]:X5}]]],lke=[3,$,gEe,0,[M6,A8,$Ee,c5,U8,VTe,_8,E8,DEe,OEe],[[0,1],[0,1],[0,{[Q]:vOe}],[0,{[v5]:C5}],[0,{[Q]:Z5}],[2,{[Q]:lOe}],[0,{[Q]:V5}],[0,{[Q]:D8}],[6,{[Q]:gOe}],[1,{[Q]:_Oe}]],2],uke=[3,$,SEe,0,[I6,m8,ITe,g8,MDe,M8,Q6,y8,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,o8,eDe,c5,B6,K6,J6,Y6,sEe,c8,x8,v8,l5,Y8,N8,X8,Q8,e5,P6,J8,H8,jDe,hDe,RDe,R8,z8,L8],[[()=>g7,16],[2,{[Q]:z5}],[0,{[Q]:GDe}],[0,{[Q]:B5}],[0,{[Q]:TOe}],[4,{[Q]:JEe}],[1,{[Q]:Z6}],[0,{[Q]:y8}],[0,{[Q]:O5}],[0,{[Q]:k5}],[0,{[Q]:A5}],[0,{[Q]:M5}],[0,{[Q]:N5}],[0,{[Q]:P5}],[0,{[Q]:j5}],[0,{[Q]:I5}],[0,{[Q]:L5}],[0,{[Q]:R5}],[0,{[Q]:F5}],[1,{[Q]:yOe}],[0,{[Q]:c7}],[0,{[Q]:W6}],[0,{[Q]:G6}],[0,{[Q]:q6}],[0,{[Q]:X6}],[0,{[Q]:cEe}],[0,{[Q]:s8}],[4,{[Q]:x8}],[0,{[Q]:v8}],[0,{[Q]:l7}],[0,{[Q]:e7}],[128,{[_5]:K5}],[0,{[Q]:i7}],[0,{[Q]:o7}],[()=>h7,{[Q]:t7}],[2,{[Q]:n7}],[0,{[Q]:Q5}],[0,{[Q]:X5}],[0,{[Q]:EOe}],[1,{[Q]:xOe}],[1,{[Q]:DOe}],[0,{[Q]:J5}],[5,{[Q]:Y5}],[0,{[Q]:q5}]]],dke=[3,$,CEe,0,[M6,A8,E8,AEe,O8,LEe,G8,wDe,TDe,EDe,DDe,ODe,kDe,c5,X8,Z8,Q8,U8,V8,_8,tEe],[[0,1],[0,1],[0,{[Q]:D8}],[4,{[Q]:kEe}],[0,{[Q]:k8}],[4,{[Q]:REe}],[0,{[Q]:G8}],[0,{[v5]:QDe}],[0,{[v5]:$De}],[0,{[v5]:eOe}],[0,{[v5]:tOe}],[0,{[v5]:nOe}],[6,{[v5]:rOe}],[0,{[v5]:C5}],[0,{[Q]:i7}],[()=>p7,{[Q]:a7}],[0,{[Q]:o7}],[0,{[Q]:Z5}],[1,{[v5]:b5}],[0,{[Q]:V5}],[0,{[Q]:fOe}]],2],fke=[3,$,UEe,{[T5]:VEe},[L6,I8,l8,B8],[[()=>Oke,0],()=>_7,0,0]],pke=[3,$,WEe,0,[QEe,l8,B8,F6],[[1,{[v5]:XDe}],[0,{[v5]:d5}],[0,{[v5]:y5}],[0,{[v5]:KDe}]]],mke=[3,$,XEe,{[T5]:GEe},[IEe,pEe,F8,B8,h8,P8,oEe,b8,BEe,l8,rDe,K8,H8],[2,[()=>jke,{[w5]:1}],0,0,0,1,[()=>kke,{[w5]:1}],0,1,0,0,0,[0,{[Q]:X5}]]],hke=[3,$,ZEe,0,[M6,h8,b8,P8,B8,l8,bEe,K8,U8,_8,pDe],[[0,1],[0,{[v5]:qDe}],[0,{[v5]:JDe}],[1,{[v5]:ZDe}],[0,{[v5]:y5}],[0,{[v5]:d5}],[2,{[v5]:YDe}],[0,{[v5]:iOe}],[0,{[Q]:Z5}],[0,{[Q]:V5}],[64,{[Q]:COe}]],1],gke=[3,$,qEe,0,[o5,F8],[0,0]],_ke=[3,$,mDe,0,[A8,M8,y8,R6,o8,n5,J8,I8,W8],[0,4,0,[64,{[w5]:1}],0,1,0,()=>_7,()=>Ske]],_7=[3,$,I8,0,[mEe,TEe],[0,0]],vke=[3,$,_De,0,[g8,y8,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,o8,Y8,c5,X8,Q8,e5,$8,P6,n5,H8],[[0,{[Q]:B5}],[0,{[Q]:y8}],[0,{[Q]:O5}],[0,{[Q]:k5}],[0,{[Q]:A5}],[0,{[Q]:M5}],[0,{[Q]:N5}],[0,{[Q]:P5}],[0,{[Q]:j5}],[0,{[Q]:I5}],[0,{[Q]:L5}],[0,{[Q]:R5}],[0,{[Q]:F5}],[0,{[Q]:e7}],[0,{[Q]:c7}],[0,{[Q]:i7}],[0,{[Q]:o7}],[()=>h7,{[Q]:t7}],[()=>m7,{[Q]:r7}],[2,{[Q]:n7}],[1,{[Q]:wOe}],[0,{[Q]:X5}]]],yke=[3,$,vDe,0,[M6,A8,A6,I6,B6,K6,J6,Y6,Q6,t8,c8,R6,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,x8,E8,O8,S8,C8,w8,T8,WDe,N8,Y8,J8,l5,X8,Z8,Q8,e5,$8,P6,U8,a5,R8,z8,L8,_8],[[0,1],[0,1],[0,{[Q]:E5}],[()=>g7,16],[0,{[Q]:W6}],[0,{[Q]:G6}],[0,{[Q]:q6}],[0,{[Q]:X6}],[1,{[Q]:Z6}],[0,{[Q]:$6}],[0,{[Q]:s8}],[0,{[Q]:$5}],[0,{[Q]:O5}],[0,{[Q]:k5}],[0,{[Q]:A5}],[0,{[Q]:M5}],[0,{[Q]:N5}],[0,{[Q]:P5}],[0,{[Q]:j5}],[0,{[Q]:I5}],[0,{[Q]:L5}],[0,{[Q]:R5}],[4,{[Q]:x8}],[0,{[Q]:D8}],[0,{[Q]:k8}],[0,{[Q]:H5}],[0,{[Q]:U5}],[0,{[Q]:W5}],[0,{[Q]:G5}],[1,{[Q]:OOe}],[128,{[_5]:K5}],[0,{[Q]:e7}],[0,{[Q]:Q5}],[0,{[Q]:l7}],[0,{[Q]:i7}],[()=>p7,{[Q]:a7}],[0,{[Q]:o7}],[()=>h7,{[Q]:t7}],[()=>m7,{[Q]:r7}],[2,{[Q]:n7}],[0,{[Q]:Z5}],[0,{[Q]:s7}],[0,{[Q]:J5}],[5,{[Q]:Y5}],[0,{[Q]:q5}],[0,{[Q]:V5}]],2],bke=[3,$,bDe,0,[c5],[[0,{[Q]:c7}]]],xke=[3,$,xDe,0,[M6,A8,a5,c5,t8,R6,_8,U8],[[0,1],[0,1],[()=>Tke,{[g5]:1,[T5]:a5}],[0,{[v5]:C5}],[0,{[Q]:$6}],[0,{[Q]:$5}],[0,{[Q]:V5}],[0,{[Q]:Z5}]],3],Ske=[3,$,W8,0,[FEe,ADe],[2,4]],Cke=[3,$,FDe,0,[j6,q8,t5,g8],[[0,{[T5]:j6}],[()=>f7,{[T5]:q8}],[()=>f7,{[T5]:t5}],[4,{[T5]:g8}]],4],wke=[3,$,i5,0,[A8,UDe],[0,0],2],Tke=[3,$,a5,0,[r5],[[()=>v7,0]],1],Eke=[3,$,VDe,0,[Y8,y8,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,X8,Q8,e5,P6,H8],[[0,{[Q]:e7}],[0,{[Q]:y8}],[0,{[Q]:O5}],[0,{[Q]:k5}],[0,{[Q]:A5}],[0,{[Q]:M5}],[0,{[Q]:N5}],[0,{[Q]:P5}],[0,{[Q]:j5}],[0,{[Q]:I5}],[0,{[Q]:L5}],[0,{[Q]:R5}],[0,{[Q]:i7}],[0,{[Q]:o7}],[()=>h7,{[Q]:t7}],[2,{[Q]:n7}],[0,{[Q]:X5}]]],Dke=[3,$,HDe,0,[M6,A8,V8,s5,I6,Q6,t8,R6,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,X8,Z8,Q8,U8,_8],[[0,1],[0,1],[1,{[v5]:b5}],[0,{[v5]:S5}],[()=>g7,16],[1,{[Q]:Z6}],[0,{[Q]:$6}],[0,{[Q]:$5}],[0,{[Q]:O5}],[0,{[Q]:k5}],[0,{[Q]:A5}],[0,{[Q]:M5}],[0,{[Q]:N5}],[0,{[Q]:P5}],[0,{[Q]:j5}],[0,{[Q]:I5}],[0,{[Q]:L5}],[0,{[Q]:R5}],[0,{[Q]:i7}],[()=>p7,{[Q]:a7}],[0,{[Q]:o7}],[0,{[Q]:Z5}],[0,{[Q]:V5}]],4],Oke=[1,$,L6,0,[()=>JOe,{[T5]:M6}]],kke=[1,$,rEe,0,()=>XOe],Ake=[1,$,iEe,0,()=>QOe],jke=[1,$,uDe,0,[()=>_ke,0]],v7=[1,$,r5,0,[()=>wke,{[T5]:i5}]],Mke=[9,$,NTe,{[p5]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>qOe,()=>KOe],Nke=[9,$,n8,{[p5]:[`POST`,`/{Key+}`,200]},()=>eke,()=>$Oe],Pke=[9,$,WTe,{[p5]:[`PUT`,`/`,200]},()=>rke,()=>nke],Fke=[9,$,eEe,{[p5]:[`POST`,`/{Key+}?uploads`,200]},()=>ake,()=>ike],Ike=[9,$,fEe,{[p5]:[`GET`,`/?session`,200]},()=>ske,()=>oke],Lke=[9,$,_Ee,{[p5]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>lke,()=>cke],Rke=[9,$,xEe,{[m5]:`-`,[p5]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>dke,()=>uke],zke=[9,$,HEe,{[p5]:[`GET`,`/?x-id=ListBuckets`,200]},()=>pke,()=>fke],Bke=[9,$,YEe,{[p5]:[`GET`,`/?list-type=2`,200]},()=>hke,()=>mke],Vke=[9,$,gDe,{[m5]:`-`,[p5]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>yke,()=>vke],Hke=[9,$,yDe,{[m5]:`-`,[p5]:[`PUT`,`/{Key+}?tagging`,200]},()=>xke,()=>bke],Uke=[9,$,BDe,{[m5]:`-`,[p5]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>Dke,()=>Eke],Wke=class extends OD.classBuilder().ep({...O6,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions()),X4(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(Ike).build(){},Gke={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.10`,"@aws-sdk/middleware-expect-continue":`^3.972.10`,"@aws-sdk/middleware-flexible-checksums":`^3.974.16`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-location-constraint":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-s3":`^3.972.37`,"@aws-sdk/middleware-ssec":`^3.972.10`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/signature-v4-multi-region":`^3.996.25`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/eventstream-serde-browser":`^4.2.14`,"@smithy/eventstream-serde-config-resolver":`^4.3.14`,"@smithy/eventstream-serde-node":`^4.2.14`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-blob-browser":`^4.2.15`,"@smithy/hash-node":`^4.2.14`,"@smithy/hash-stream-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/md5-js":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-stream":`^4.5.25`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1045.0`,"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function y7(e){return typeof e==`string`?e.length===0:e.byteLength===0}var b7={name:`SHA-1`},x7={name:`HMAC`,hash:b7},Kke=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),qke=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){Tx().crypto.subtle.importKey(`raw`,S7(e),x7,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!y7(e)){var t=S7(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Tx().crypto.subtle.sign(x7,t,e.toHash).then(function(e){return new Uint8Array(e)})}):y7(this.toHash)?Promise.resolve(Kke):Promise.resolve().then(function(){return Tx().crypto.subtle.digest(b7,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function S7(e){return typeof e==`string`?hx(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Jke=function(){function e(e){if(Lx(Tx()))this.hash=new qke(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(_x(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),C7=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&w7(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&w7(e),parseInt(Qx(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function w7(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Yke=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(C7.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!aAe.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Zx(e.value.replace(/\-/g,``)),1),u}}parse(e){let t={},n=0;for(;n{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),_Ae=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})},vAe=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new hAe({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=yAe(e)?gAe(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream==`function`?_Ae(n):n}},yAe=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,bAe=e=>new vAe(e);async function xAe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},CAe=[1732584193,4023233417,2562383102,271733878],wAe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(TAe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=EAe(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=A7(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=A7(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=A7(i,a,n,r,e.getUint32(8,!0),17,606105819),r=A7(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=A7(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=A7(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=A7(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=A7(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=A7(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=A7(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=A7(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=A7(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=A7(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=A7(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=A7(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=A7(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=j7(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=j7(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=j7(i,a,n,r,e.getUint32(44,!0),14,643717713),r=j7(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=j7(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=j7(a,n,r,i,e.getUint32(40,!0),9,38016083),i=j7(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=j7(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=j7(n,r,i,a,e.getUint32(36,!0),5,568446438),a=j7(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=j7(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=j7(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=j7(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=j7(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=j7(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=j7(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=M7(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=M7(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=M7(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=M7(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=M7(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=M7(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=M7(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=M7(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=M7(n,r,i,a,e.getUint32(52,!0),4,681279174),a=M7(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=M7(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=M7(r,i,a,n,e.getUint32(24,!0),23,76029189),n=M7(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=M7(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=M7(i,a,n,r,e.getUint32(60,!0),16,530742520),r=M7(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=N7(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=N7(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=N7(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=N7(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=N7(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=N7(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=N7(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=N7(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=N7(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=N7(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=N7(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=N7(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=N7(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=N7(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=N7(i,a,n,r,e.getUint32(8,!0),15,718787259),r=N7(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(CAe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function k7(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function A7(e,t,n,r,i,a,o){return k7(t&n|~t&r,e,t,i,a,o)}function j7(e,t,n,r,i,a,o){return k7(t&r|n&~r,e,t,i,a,o)}function M7(e,t,n,r,i,a,o){return k7(t^n^r,e,t,i,a,o)}function N7(e,t,n,r,i,a,o){return k7(n^(t|~r),e,t,i,a,o)}function TAe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function EAe(e){return typeof e==`string`?$x(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var DAe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??DC,base64Encoder:e?.base64Encoder??OC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??T6,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??jC,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??pTe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new WD},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new qre}],logger:e?.logger??new ID,protocol:e?.protocol??aTe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:GOe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??UC,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??Q4,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??QC,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??$x,utf8Encoder:e?.utf8Encoder??tS}),OAe=e=>{let t=QD(e),n=()=>t().then(jD),r=DAe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ZD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??qD({serviceId:r.serviceId,clientVersion:Gke.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??bAe,maxAttempts:e?.maxAttempts??3,md5:e?.md5??wAe,region:e?.region??YD(`Region is missing`),requestHandler:IC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||DE),sha1:e?.sha1??Jke,sha256:e?.sha256??Bx,streamCollector:e?.streamCollector??RC,streamHasher:e?.streamHasher??SAe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},kAe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},AAe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),jAe=(e,t)=>{let n=Object.assign(O1(e),ND(e),Vx(e),kAe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,k1(n),PD(n),Hx(n),AAe(n))},MAe=class extends TD{config;constructor(...[e]){let t=OAe(e||{});super(t),this.initConfig=t;let n=jAe(qwe(mTe(oTe(vD(rC(uD(yD(kwe(FT(hTe(t))))))))),{session:[()=>this,Wke]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(rw(this.config)),this.middlewareStack.use(sD(this.config)),this.middlewareStack.use(RD(this.config)),this.middlewareStack.use(fD(this.config)),this.middlewareStack.use(oC(this.config)),this.middlewareStack.use(lC(this.config)),this.middlewareStack.use(fC(this.config)),this.middlewareStack.use(_C(this.config,{httpAuthSchemeParametersProvider:fTe,identityProviderConfigProvider:async e=>new AT({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(SC(this.config)),this.middlewareStack.use(iTe(this.config)),this.middlewareStack.use(xwe(this.config)),this.middlewareStack.use(Pwe(this.config)),this.middlewareStack.use(Vwe(this.config)),this.middlewareStack.use(Kwe(this.config))}destroy(){super.destroy()}},NAe=class extends OD.classBuilder().ep(O6).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions()),X4(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(zke).build(){},PAe=class extends OD.classBuilder().ep({...O6,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[_D(n,e.getEndpointParameterInstructions()),X4(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(Bke).build(){},P7=`ap-southeast-2`,F7=`${window.location.protocol}//localhost:9999`,FAe=`${window.location.protocol}//localhost:8443`,I7=null,L7=null,R7=null,z7=null;function B7(){if(!I7){let e=fx();if(!e)throw Error(`AWS credentials not configured`);I7=new Vde({endpoint:F7,region:P7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),I7.middlewareStack.add(e=>async t=>(Kx.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return I7}function V7(){if(!L7){let e=fx();if(!e)throw Error(`AWS credentials not configured`);L7=new Eye({endpoint:F7,region:P7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),L7.middlewareStack.add(e=>async t=>(Kx.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return L7}function H7(){if(!R7){let e=fx();if(!e)throw Error(`AWS credentials not configured`);R7=new dwe({endpoint:F7,region:P7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),R7.middlewareStack.add(e=>async t=>(Kx.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return R7}function U7(){if(!z7){let e=fx();if(!e)throw Error(`AWS credentials not configured`);z7=new MAe({endpoint:FAe,region:P7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),z7.middlewareStack.add(e=>async t=>(Kx.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),z7.middlewareStack.add(e=>async t=>(Kx.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return z7}function W7(){I7=null,L7=null,R7=null,z7=null}function G7(){let e=(0,fa.c)(144),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:IAe},e[0]=t):t=e[0];let n=$i(t),r=fi(),i=Fe(),{isAdmin:a}=$S(),o;e[1]!==r||e[2]!==i?(o=function(){mx(),W7(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsxs)(Kg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,F.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,F.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(Zg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,F.jsx)(Do,{className:`size-4`}),f=(0,F.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/`,children:(0,F.jsxs)(t_,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/nodes`,children:(0,F.jsxs)(t_,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,F.jsx)(Io,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,F.jsxs)(Xg,{children:[l,(0,F.jsxs)(Qg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,F.jsx)(Zg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,F.jsx)(Io,{className:`size-4`}),y=(0,F.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-instances`,children:(0,F.jsxs)(t_,{isActive:_,tooltip:`EC2 Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,F.jsx)(Oo,{className:`size-4`}),C=(0,F.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-images`,children:(0,F.jsxs)(t_,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,ee;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,F.jsx)(ko,{className:`size-4`}),ee=(0,F.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=ee):(E=e[31],ee=e[32]);let D;e[33]===T?D=e[34]:(D=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-key-pairs`,children:(0,F.jsxs)(t_,{isActive:T,tooltip:`Key Pairs`,children:[E,ee]})})}),e[33]=T,e[34]=D);let O;e[35]===n?O=e[36]:(O=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[35]=n,e[36]=O);let te,ne;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,F.jsx)(Eo,{className:`size-4`}),ne=(0,F.jsx)(`span`,{children:`Volumes`}),e[37]=te,e[38]=ne):(te=e[37],ne=e[38]);let re;e[39]===O?re=e[40]:(re=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-volumes`,children:(0,F.jsxs)(t_,{isActive:O,tooltip:`Volumes`,children:[te,ne]})})}),e[39]=O,e[40]=re);let k;e[41]===n?k=e[42]:(k=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[41]=n,e[42]=k);let A,ie;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,F.jsx)(Co,{className:`size-4`}),ie=(0,F.jsx)(`span`,{children:`Snapshots`}),e[43]=A,e[44]=ie):(A=e[43],ie=e[44]);let j;e[45]===k?j=e[46]:(j=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-snapshots`,children:(0,F.jsxs)(t_,{isActive:k,tooltip:`Snapshots`,children:[A,ie]})})}),e[45]=k,e[46]=j);let ae;e[47]===n?ae=e[48]:(ae=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[47]=n,e[48]=ae);let oe,se;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,F.jsx)(Ao,{className:`size-4`}),se=(0,F.jsx)(`span`,{children:`Placement Groups`}),e[49]=oe,e[50]=se):(oe=e[49],se=e[50]);let ce;e[51]===ae?ce=e[52]:(ce=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-placement-groups`,children:(0,F.jsxs)(t_,{isActive:ae,tooltip:`Placement Groups`,children:[oe,se]})})}),e[51]=ae,e[52]=ce);let M;e[53]===n?M=e[54]:(M=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[53]=n,e[54]=M);let le,ue;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,F.jsx)(Vo,{className:`size-4`}),ue=(0,F.jsx)(`span`,{children:`Load Balancers`}),e[55]=le,e[56]=ue):(le=e[55],ue=e[56]);let N;e[57]===M?N=e[58]:(N=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-load-balancers`,children:(0,F.jsxs)(t_,{isActive:M,tooltip:`Load Balancers`,children:[le,ue]})})}),e[57]=M,e[58]=N);let de;e[59]===n?de=e[60]:(de=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[59]=n,e[60]=de);let fe,pe;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,F.jsx)(To,{className:`size-4`}),pe=(0,F.jsx)(`span`,{children:`Target Groups`}),e[61]=fe,e[62]=pe):(fe=e[61],pe=e[62]);let me;e[63]===de?me=e[64]:(me=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-target-groups`,children:(0,F.jsxs)(t_,{isActive:de,tooltip:`Target Groups`,children:[fe,pe]})})}),e[63]=de,e[64]=me);let he;e[65]!==b||e[66]!==w||e[67]!==D||e[68]!==re||e[69]!==j||e[70]!==ce||e[71]!==N||e[72]!==me?(he=(0,F.jsxs)(Xg,{children:[g,(0,F.jsxs)(Qg,{children:[b,w,D,re,j,ce,N,me]})]}),e[65]=b,e[66]=w,e[67]=D,e[68]=re,e[69]=j,e[70]=ce,e[71]=N,e[72]=me,e[73]=he):he=e[73];let ge;e[74]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,F.jsx)(Zg,{children:`Networking`}),e[74]=ge):ge=e[74];let _e;e[75]===n?_e=e[76]:(_e=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[75]=n,e[76]=_e);let ve,ye;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,F.jsx)(Po,{className:`size-4`}),ye=(0,F.jsx)(`span`,{children:`VPCs`}),e[77]=ve,e[78]=ye):(ve=e[77],ye=e[78]);let be;e[79]===_e?be=e[80]:(be=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-vpcs`,children:(0,F.jsxs)(t_,{isActive:_e,tooltip:`VPCs`,children:[ve,ye]})})}),e[79]=_e,e[80]=be);let xe;e[81]===n?xe=e[82]:(xe=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[81]=n,e[82]=xe);let Se,Ce;e[83]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,F.jsx)(jo,{className:`size-4`}),Ce=(0,F.jsx)(`span`,{children:`Subnets`}),e[83]=Se,e[84]=Ce):(Se=e[83],Ce=e[84]);let we;e[85]===xe?we=e[86]:(we=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-subnets`,children:(0,F.jsxs)(t_,{isActive:xe,tooltip:`Subnets`,children:[Se,Ce]})})}),e[85]=xe,e[86]=we);let Te;e[87]===n?Te=e[88]:(Te=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[87]=n,e[88]=Te);let Ee,De;e[89]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,F.jsx)(Lo,{className:`size-4`}),De=(0,F.jsx)(`span`,{children:`Security Groups`}),e[89]=Ee,e[90]=De):(Ee=e[89],De=e[90]);let Oe;e[91]===Te?Oe=e[92]:(Oe=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/ec2/describe-security-groups`,children:(0,F.jsxs)(t_,{isActive:Te,tooltip:`Security Groups`,children:[Ee,De]})})}),e[91]=Te,e[92]=Oe);let ke;e[93]!==be||e[94]!==we||e[95]!==Oe?(ke=(0,F.jsxs)(Xg,{children:[ge,(0,F.jsxs)(Qg,{children:[be,we,Oe]})]}),e[93]=be,e[94]=we,e[95]=Oe,e[96]=ke):ke=e[96];let Ae;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,F.jsx)(Zg,{children:`IAM`}),e[97]=Ae):Ae=e[97];let je;e[98]===n?je=e[99]:(je=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[98]=n,e[99]=je);let Me,Ne;e[100]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,F.jsx)(Bo,{className:`size-4`}),Ne=(0,F.jsx)(`span`,{children:`Users`}),e[100]=Me,e[101]=Ne):(Me=e[100],Ne=e[101]);let P;e[102]===je?P=e[103]:(P=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/iam/list-users`,children:(0,F.jsxs)(t_,{isActive:je,tooltip:`Users`,children:[Me,Ne]})})}),e[102]=je,e[103]=P);let Pe;e[104]===n?Pe=e[105]:(Pe=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[104]=n,e[105]=Pe);let Ie,Le;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,F.jsx)(Ro,{className:`size-4`}),Le=(0,F.jsx)(`span`,{children:`Policies`}),e[106]=Ie,e[107]=Le):(Ie=e[106],Le=e[107]);let Re;e[108]===Pe?Re=e[109]:(Re=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/iam/list-policies`,children:(0,F.jsxs)(t_,{isActive:Pe,tooltip:`Policies`,children:[Ie,Le]})})}),e[108]=Pe,e[109]=Re);let ze;e[110]!==P||e[111]!==Re?(ze=(0,F.jsxs)(Xg,{children:[Ae,(0,F.jsxs)(Qg,{children:[P,Re]})]}),e[110]=P,e[111]=Re,e[112]=ze):ze=e[112];let Be;e[113]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,F.jsx)(Zg,{children:`S3`}),e[113]=Be):Be=e[113];let Ve;e[114]===n?Ve=e[115]:(Ve=n.startsWith(`/s3/ls`),e[114]=n,e[115]=Ve);let He,Ue;e[116]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,F.jsx)(Io,{className:`size-4`}),Ue=(0,F.jsx)(`span`,{children:`Buckets`}),e[116]=He,e[117]=Ue):(He=e[116],Ue=e[117]);let We;e[118]===Ve?We=e[119]:(We=(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/s3/ls`,children:(0,F.jsxs)(t_,{isActive:Ve,tooltip:`Buckets`,children:[He,Ue]})})}),e[118]=Ve,e[119]=We);let Ge;e[120]!==a||e[121]!==n?(Ge=a&&(0,F.jsx)($g,{children:(0,F.jsx)(Oi,{to:`/s3/service-metrics`,children:(0,F.jsxs)(t_,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,F.jsx)(xo,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Service Metrics`})]})})}),e[120]=a,e[121]=n,e[122]=Ge):Ge=e[122];let Ke;e[123]!==We||e[124]!==Ge?(Ke=(0,F.jsxs)(Xg,{children:[Be,(0,F.jsxs)(Qg,{children:[We,Ge]})]}),e[123]=We,e[124]=Ge,e[125]=Ke):Ke=e[125];let qe;e[126]===a?qe=e[127]:(qe=a&&(0,F.jsxs)(Xg,{children:[(0,F.jsx)(Zg,{children:`Documentation`}),(0,F.jsx)(Qg,{children:(0,F.jsx)($g,{children:(0,F.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,F.jsxs)(t_,{tooltip:`Documentation`,children:[(0,F.jsx)(So,{className:`size-4`}),(0,F.jsx)(`span`,{children:`Docs`})]})})})})]}),e[126]=a,e[127]=qe);let Je;e[128]!==he||e[129]!==ke||e[130]!==ze||e[131]!==Ke||e[132]!==qe||e[133]!==h?(Je=(0,F.jsxs)(Yg,{children:[h,he,ke,ze,Ke,qe]}),e[128]=he,e[129]=ke,e[130]=ze,e[131]=Ke,e[132]=qe,e[133]=h,e[134]=Je):Je=e[134];let Ye;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,F.jsx)(Jg,{className:`mx-0 w-full`}),e[135]=Ye):Ye=e[135];let Xe,Ze;e[136]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,F.jsx)(Mo,{className:`size-4`}),Ze=(0,F.jsx)(`span`,{children:`Sign out`}),e[136]=Xe,e[137]=Ze):(Xe=e[136],Ze=e[137]);let Qe;e[138]===s?Qe=e[139]:(Qe=(0,F.jsxs)(qg,{children:[Ye,(0,F.jsx)(Qg,{children:(0,F.jsx)($g,{children:(0,F.jsxs)(t_,{onClick:s,tooltip:`Sign out`,children:[Xe,Ze]})})})]}),e[138]=s,e[139]=Qe);let $e;e[140]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,F.jsx)(Gg,{}),e[140]=$e):$e=e[140];let et;return e[141]!==Je||e[142]!==Qe?(et=(0,F.jsxs)(Ug,{collapsible:`icon`,children:[c,Je,Qe,$e]}),e[141]=Je,e[142]=Qe,e[143]=et):et=e[143],et}function IAe(e){return e.pathname}function LAe(e){let t=(0,fa.c)(18),{error:n,reset:r}=e,i=Mr(),a=Fe(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsx)(G7,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsx)(tC,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,F.jsx)(`div`,{className:`flex justify-center`,children:(0,F.jsx)(wo,{className:`size-12 text-destructive`})}),d=(0,F.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,F.jsx)(fl,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,F.jsx)(Oi,{to:`/`,children:(0,F.jsx)(fl,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,F.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,F.jsxs)(F.Fragment,{children:[c,(0,F.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,F.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,F.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var K7=Mi()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ia,{}),(0,F.jsx)(G7,{}),(0,F.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,F.jsx)(tC,{}),(0,F.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,F.jsx)(Wi,{})})]})]}),errorComponent:LAe,notFoundComponent:nC}),RAe=I(`/login`)({beforeLoad:()=>{if(fx())throw bn({to:`/`})},component:L(()=>bT(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4])),`component`)}),zAe=I(`/_auth`)({beforeLoad:()=>{if(!fx())throw bn({to:`/login`})},component:L(()=>bT(()=>import(`./route.js`),[]),`component`)}),q7=Le({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Hde({});return await B7().send(e)},staleTime:3e5}),J7=Le({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new j1({});return await B7().send(e)},refetchInterval:5e3}),Y7=e=>Le({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new j1({InstanceIds:[e]});return await B7().send(t)},refetchInterval:5e3}),X7=Le({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new Ude({Filters:[{Name:`capacity`,Values:[`true`]}]});return await B7().send(e)},refetchInterval:5e3}),Z7=Le({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new A1({});return await B7().send(e)}}),Q7=e=>Le({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new A1({ImageIds:[e]});return await B7().send(t)}}),$7=Le({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new M1({});return await B7().send(e)}}),e9=e=>Le({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new M1({KeyPairIds:[e]});return await B7().send(t)}}),t9=Le({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new Wde({});return await B7().send(e)},staleTime:3e5}),n9=Le({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new I1({});return await B7().send(e)}}),r9=e=>Le({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new I1({SubnetIds:[e]});return await B7().send(t)}}),i9=Le({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new F1({});return await B7().send(e)},refetchInterval:5e3}),a9=e=>Le({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new F1({SnapshotIds:[e]});return await B7().send(t)},refetchInterval:5e3}),o9=Le({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new R1({});return await B7().send(e)}}),s9=e=>Le({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new R1({VpcIds:[e]});return await B7().send(t)}}),c9=Le({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new N1({});return await B7().send(e)}}),l9=e=>Le({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new N1({GroupIds:[e]});return await B7().send(t)}}),u9=Le({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new P1({});return await B7().send(e)}}),d9=e=>Le({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new P1({GroupIds:[e]});return await B7().send(t)}}),f9=Le({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new L1({});return await B7().send(e)},refetchInterval:5e3}),p9=e=>Le({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new L1({VolumeIds:[e]});return await B7().send(t)},refetchInterval:5e3}),m9=Le({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new NAe({});return await U7().send(e)}}),h9=(e,t)=>Le({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new PAe({Bucket:e,Prefix:t,Delimiter:`/`});return await U7().send(n)}}),BAe=I(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(J7),e.queryClient.ensureQueryData(f9),e.queryClient.ensureQueryData(o9),e.queryClient.ensureQueryData($7),e.queryClient.ensureQueryData(m9),e.queryClient.ensureQueryData(u9)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:L(()=>bT(()=>import(`./_auth.js`),__vite__mapDeps([5,6,7,8,9,10,11,12,3])),`component`)}),VAe=I(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:L(()=>bT(()=>import(`./nodes.js`),__vite__mapDeps([13,6,7,10,12,3])),`component`)}),HAe=I(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | Mulga`}]}),component:L(()=>bT(()=>import(`./service-metrics.js`),__vite__mapDeps([14,6,7,10,12,3])),`component`)}),UAe=I(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(m9)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:L(()=>bT(()=>import(`./ls.js`),__vite__mapDeps([15,16,7,17,10])),`component`)}),WAe=I(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-bucket.js`),__vite__mapDeps([18,19,20,2,21,22,23,8,24,25,26,10,4])),`component`)}),GAe=I(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:L(()=>bT(()=>import(`./create-user.js`),__vite__mapDeps([27,28,20,2,21,22,23,8,24,25,26,10,4,29])),`component`)}),KAe=I(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:L(()=>bT(()=>import(`./create-policy.js`),__vite__mapDeps([30,28,20,2,21,22,23,8,24,25,26,10,4,31,29])),`component`)}),qAe=I(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-vpc.js`),__vite__mapDeps([32,33,20,34,23,8,2,21,9,22,24,25,26,10,4,35])),`component`)}),JAe=I(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(q7)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-volume.js`),__vite__mapDeps([36,33,20,34,23,8,2,16,7,21,22,24,25,26,10,4,35])),`component`)}),YAe=I(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(o9)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-target-group.js`),__vite__mapDeps([37,38,20,2,16,7,21,22,23,8,24,25,39,1,34,40,41,4,26,10,42])),`component`)}),XAe=I(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(o9),e.queryClient.ensureQueryData(q7)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-subnet.js`),__vite__mapDeps([43,33,20,34,23,8,2,16,7,21,22,24,25,26,10,4,35])),`component`)}),g9=I(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(f9)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-snapshot.js`),__vite__mapDeps([44,33,20,34,23,8,2,16,7,21,22,24,25,26,10,4,31,35])),`component`)}),ZAe=I(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(o9)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-security-group.js`),__vite__mapDeps([45,33,20,34,23,8,2,16,7,21,22,24,25,26,10,4,35])),`component`)}),QAe=I(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-placement-group.js`),__vite__mapDeps([46,33,20,34,23,8,2,21,22,24,25,26,10,4,35])),`component`)}),_9=5e3,v9=Le({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new N2({});return await V7().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?_9:!1}),y9=e=>Le({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new N2({LoadBalancerArns:[e]});return await V7().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?_9:!1}),b9=e=>Le({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new Oye({LoadBalancerArn:e});return await V7().send(t)}}),x9=Le({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new P2({});return await V7().send(e)}}),S9=e=>Le({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new P2({TargetGroupArns:[e]});return await V7().send(t)}}),C9=e=>Le({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new Aye({TargetGroupArn:e});return await V7().send(t)}}),w9=e=>Le({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new Dye({LoadBalancerArn:e});return await V7().send(t)}}),$Ae=e=>Le({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new jye({TargetGroupArn:e});return await V7().send(t)}}),T9=e=>Le({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new kye({ResourceArns:e});return await V7().send(t)},enabled:e.length>0}),eje=I(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(o9),e.queryClient.ensureQueryData(n9),e.queryClient.ensureQueryData(u9),e.queryClient.ensureQueryData(x9),e.queryClient.ensureQueryData(Z7)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-load-balancer.js`),__vite__mapDeps([47,38,20,34,23,8,2,16,7,21,40,22,24,25,41,39,1,4,26,10,42])),`component`)}),tje=I(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./import-key-pair.js`),__vite__mapDeps([48,33,20,2,21,22,23,8,24,25,26,10,4,31,35])),`component`)}),nje=I(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./create-key-pair.js`),__vite__mapDeps([49,33,20,50,2,21,23,51,22,8,24,25,52,26,10,4,35])),`component`)}),rje=I(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Z7),e.queryClient.ensureQueryData($7),e.queryClient.ensureQueryData(X7),e.queryClient.ensureQueryData(n9),e.queryClient.ensureQueryData(c9)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./run-instances.js`),__vite__mapDeps([53,33,20,1,34,23,8,2,16,7,21,22,24,25,10,4,35])),`component`)}),ije=I(`/_auth/s3/ls/$bucket`)({component:L(()=>bT(()=>import(`./route2.js`),[]),`component`)}),E9=I(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(h9(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:L(()=>bT(()=>import(`./_bucket.js`),__vite__mapDeps([54,19,20,55,51,41,56,50,16,7,21,10])),`component`)}),D9=Le({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new vwe({});return await H7().send(e)},staleTime:3e5}),O9=e=>Le({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new mwe({UserName:e});return await H7().send(t)},staleTime:3e5}),k9=e=>Le({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new hwe({UserName:e});return await H7().send(t)},staleTime:3e5}),A9=Le({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new _we({Scope:`Local`});return await H7().send(e)},staleTime:3e5}),j9=e=>Le({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new fwe({PolicyArn:e});return await H7().send(t)},staleTime:3e5}),M9=(e,t)=>Le({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new pwe({PolicyArn:e,VersionId:t});return await H7().send(n)},staleTime:3e5}),N9=e=>Le({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new gwe({UserName:e});return await H7().send(t)},staleTime:3e5}),aje=I(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(D9)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:L(()=>bT(()=>import(`./list-users.js`),__vite__mapDeps([57,16,7,17,10])),`component`)}),oje=I(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(A9)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:L(()=>bT(()=>import(`./list-policies.js`),__vite__mapDeps([58,16,7,17,10])),`component`)}),sje=I(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(o9)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-vpcs.js`),__vite__mapDeps([59,16,7,17,10,11])),`component`)}),cje=I(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(f9)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-volumes.js`),__vite__mapDeps([60,16,7,17,10,11])),`component`)}),lje=I(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(x9)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-target-groups.js`),__vite__mapDeps([61,6,7,16,10])),`component`)}),uje=I(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(n9)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-subnets.js`),__vite__mapDeps([62,16,7,17,10,11])),`component`)}),dje=I(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(i9)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-snapshots.js`),__vite__mapDeps([63,16,7,17,10,11])),`component`)}),fje=I(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(u9)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-security-groups.js`),__vite__mapDeps([64,16,7,17,10])),`component`)}),pje=I(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(c9)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([65,16,7,17,10,11])),`component`)}),mje=I(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(v9),e.queryClient.ensureQueryData(Z7)])},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([66,16,7,10,11])),`component`)}),hje=I(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData($7)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([67,16,7,17,10])),`component`)}),gje=I(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(J7)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-instances.js`),__vite__mapDeps([68,16,7,17,10,11])),`component`)}),_je=I(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Z7)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./describe-images.js`),__vite__mapDeps([69,16,7,17,10,11,70])),`component`)}),P9=I(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=cl(t._splat??``);await e.queryClient.ensureQueryData(h9(t.bucket,n))},head:({params:e})=>({meta:[{title:`${ll(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:L(()=>bT(()=>import(`./_.js`),__vite__mapDeps([71,19,20,55,51,41,56,50,16,7,21])),`component`)}),F9=I(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(O9(t.userName)),e.queryClient.ensureQueryData(k9(t.userName)),e.queryClient.ensureQueryData(N9(t.userName)),e.queryClient.ensureQueryData(A9)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:L(()=>bT(()=>import(`./_userName.js`),__vite__mapDeps([72,28,20,50,16,7,21,23,41,52,56,73,10,11,25])),`component`)}),I9=I(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(j9(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(M9(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:L(()=>bT(()=>import(`./_policyArn.js`),__vite__mapDeps([74,28,20,16,7,21,41,56,50,73,10])),`component`)}),L9=I(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(s9(t.id)),e.queryClient.ensureQueryData(n9)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:L(()=>bT(()=>import(`./_id12.js`),__vite__mapDeps([75,33,20,16,7,21,41,56,50,73,10,11])),`component`)}),R9=I(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(p9(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id11.js`),__vite__mapDeps([76,33,20,2,16,7,21,26,10,4,35])),`component`)}),z9=I(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(p9(t.id)),e.queryClient.ensureQueryData(J7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id10.js`),__vite__mapDeps([77,33,20,50,34,23,8,16,7,21,41,56,73,10,11,4])),`component`)}),B9=I(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(S9(n)),e.queryClient.ensureQueryData(C9(n)),e.queryClient.ensureQueryData(T9([n])),e.queryClient.ensureQueryData(J7)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:L(()=>bT(()=>import(`./_id9.js`),__vite__mapDeps([78,38,20,50,79,34,23,8,4,6,7,16,21,41,56,73,10])),`component`)}),V9=I(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(r9(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:L(()=>bT(()=>import(`./_id8.js`),__vite__mapDeps([80,33,20,16,7,21,41,56,50,73,10,11])),`component`)}),H9=I(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(a9(t.id)),e.queryClient.ensureQueryData(t9)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id7.js`),__vite__mapDeps([81,33,20,50,16,7,21,24,41,56,73,10,11,4])),`component`)}),U9=I(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(d9(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:L(()=>bT(()=>import(`./_id6.js`),__vite__mapDeps([82,33,20,50,34,23,8,2,16,7,21,40,41,56,73,10,4,35])),`component`)}),W9=I(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(l9(t.id)),e.queryClient.ensureQueryData(J7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id5.js`),__vite__mapDeps([83,33,20,16,7,21,41,56,50,73,10,11])),`component`)}),G9=I(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(y9(n)),e.queryClient.ensureQueryData(w9(n)),e.queryClient.ensureQueryData(b9(n)),e.queryClient.ensureQueryData(T9([n])),e.queryClient.ensureQueryData(x9),e.queryClient.ensureQueryData(n9)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:L(()=>bT(()=>import(`./_id4.js`),__vite__mapDeps([84,38,20,50,34,23,8,79,4,2,16,7,21,41,56,73,10,11,42])),`component`)}),K9=I(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(e9(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id3.js`),__vite__mapDeps([85,33,20,16,7,21,41,56,50,73,10])),`component`)}),q9=I(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(Y7(t.id)),e.queryClient.ensureQueryData(X7)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(Q7(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id2.js`),__vite__mapDeps([86,33,20,50,34,23,8,16,7,21,41,56,73,10,11,4,31,87])),`component`)}),J9=I(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Q7(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:L(()=>bT(()=>import(`./_id.js`),__vite__mapDeps([88,16,7,21,10,11,70,87,73])),`component`)}),vje=RAe.update({id:`/login`,path:`/login`,getParentRoute:()=>K7}),Y9=zAe.update({id:`/_auth`,getParentRoute:()=>K7}),yje=BAe.update({id:`/`,path:`/`,getParentRoute:()=>Y9}),bje=VAe.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>Y9}),xje=HAe.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>Y9}),Sje=UAe.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>Y9}),Cje=WAe.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>Y9}),wje=GAe.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>Y9}),Tje=KAe.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>Y9}),Eje=qAe.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>Y9}),Dje=JAe.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>Y9}),Oje=YAe.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>Y9}),kje=XAe.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>Y9}),Aje=g9.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>Y9}),jje=ZAe.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>Y9}),Mje=QAe.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>Y9}),X9=eje.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>Y9}),Nje=tje.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>Y9}),Pje=nje.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>Y9}),Fje=rje.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>Y9}),Z9=ije.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>Y9}),Ije=E9.update({id:`/`,path:`/`,getParentRoute:()=>Z9}),Lje=aje.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>Y9}),Rje=oje.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>Y9}),zje=sje.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>Y9}),Bje=cje.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>Y9}),Vje=lje.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>Y9}),Hje=uje.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>Y9}),Uje=dje.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>Y9}),Wje=fje.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>Y9}),Gje=pje.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>Y9}),Kje=mje.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>Y9}),qje=hje.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>Y9}),Jje=gje.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>Y9}),Yje=_je.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>Y9}),Xje=P9.update({id:`/$`,path:`/$`,getParentRoute:()=>Z9}),Zje=F9.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>Y9}),Qje=I9.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>Y9}),$je=L9.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>Y9}),eMe=R9.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>Y9}),tMe=z9.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>Y9}),nMe=B9.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>Y9}),rMe=V9.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>Y9}),iMe=H9.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>Y9}),aMe=U9.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>Y9}),oMe=W9.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>Y9}),sMe=G9.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>Y9}),cMe=K9.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>Y9}),lMe=q9.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>Y9}),uMe=J9.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>Y9}),dMe={AuthS3LsBucketSplatRoute:Xje,AuthS3LsBucketIndexRoute:Ije},fMe={AuthNodesRoute:bje,AuthIndexRoute:yje,AuthS3ServiceMetricsRoute:xje,AuthS3LsBucketRouteRoute:Z9._addFileChildren(dMe),AuthEc2instancesRunInstancesRoute:Fje,AuthEc2keyCreateKeyPairRoute:Pje,AuthEc2keyImportKeyPairRoute:Nje,AuthEc2loadBalancersCreateLoadBalancerRoute:X9,AuthEc2placementGroupsCreatePlacementGroupRoute:Mje,AuthEc2securityGroupsCreateSecurityGroupRoute:jje,AuthEc2snapshotsCreateSnapshotRoute:Aje,AuthEc2subnetCreateSubnetRoute:kje,AuthEc2targetGroupsCreateTargetGroupRoute:Oje,AuthEc2volumesCreateVolumeRoute:Dje,AuthEc2vpcCreateVpcRoute:Eje,AuthIampoliciesCreatePolicyRoute:Tje,AuthIamusersCreateUserRoute:wje,AuthS3bucketsCreateBucketRoute:Cje,AuthS3LsIndexRoute:Sje,AuthEc2imagesDescribeImagesIdRoute:uMe,AuthEc2instancesDescribeInstancesIdRoute:lMe,AuthEc2keyDescribeKeyPairsIdRoute:cMe,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:sMe,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:oMe,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:aMe,AuthEc2snapshotsDescribeSnapshotsIdRoute:iMe,AuthEc2subnetDescribeSubnetsIdRoute:rMe,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:nMe,AuthEc2volumesDescribeVolumesIdRoute:tMe,AuthEc2volumesModifyVolumeIdRoute:eMe,AuthEc2vpcDescribeVpcsIdRoute:$je,AuthIampoliciesListPoliciesPolicyArnRoute:Qje,AuthIamusersListUsersUserNameRoute:Zje,AuthEc2imagesDescribeImagesIndexRoute:Yje,AuthEc2instancesDescribeInstancesIndexRoute:Jje,AuthEc2keyDescribeKeyPairsIndexRoute:qje,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:Kje,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:Gje,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:Wje,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Uje,AuthEc2subnetDescribeSubnetsIndexRoute:Hje,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Vje,AuthEc2volumesDescribeVolumesIndexRoute:Bje,AuthEc2vpcDescribeVpcsIndexRoute:zje,AuthIampoliciesListPoliciesIndexRoute:Rje,AuthIamusersListUsersIndexRoute:Lje},pMe={AuthRouteRoute:Y9._addFileChildren(fMe),LoginRoute:vje},mMe=K7._addFileChildren(pMe)._addFileTypes(),Q9=new ke({defaultOptions:{queries:{staleTime:5e3}}}),hMe=Yi({routeTree:mMe,context:{queryClient:Q9},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),$9=document.querySelector(`#app`);$9&&!$9.innerHTML&&da.createRoot($9).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(ha,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,F.jsx)(Ie,{client:Q9,children:(0,F.jsx)(QS,{children:(0,F.jsx)(Bg,{children:(0,F.jsx)(Qi,{router:hMe})})})})})}));export{p9 as $,ya as $a,cu as $i,yx as $n,pm as $r,que as $t,S9 as A,xs as Aa,Ld as Ai,OD as An,Kh as Ar,XCe as At,X7 as B,ko as Ba,Ku as Bi,$S as Bn,kh as Br,uye as Bt,E9 as C,cl as Ca,Wd as Ci,jde as Cn,f as Co,lg as Cr,Cwe as Ct,v9 as D,al as Da,Bd as Di,Fde as Dn,c as Do,rg as Dr,qCe as Dt,y9 as E,il as Ea,Ud as Ei,Pde as En,o as Eo,ag as Er,KCe as Et,m9 as F,Yo as Fa,Nd as Fi,Fw as Fn,Ph as Fr,aye as Ft,c9 as G,io as Ga,Uu as Gi,eS as Gn,Nh as Gr,j1 as Gt,e9 as H,Co as Ha,qu as Hi,GS as Hn,jh as Hr,yye as Ht,q7 as I,Ho as Ia,Dd as Ii,KC as In,Dh as Ir,oye as It,u9 as J,Ja,Vu as Ji,Kx as Jn,dh as Jr,Hue as Jt,t9 as K,Qa as Ka,Hu as Ki,$x as Kn,zh as Kr,Bue as Kt,Q7 as L,Ro as La,Od as Li,MC as Ln,Oh as Lr,sye as Lt,$Ae as M,bs as Ma,Fd as Mi,hD as Mn,Wh as Mr,awe as Mt,g9 as N,gs as Na,Pd as Ni,mD as Nn,Fh as Nr,F2 as Nt,T9 as O,sl as Oa,Qd as Oi,KD as On,Jh as Or,JCe as Ot,h9 as P,Go as Pa,Ad as Pi,XE as Pn,Eh as Pr,iye as Pt,n9 as Q,Pa as Qa,uu as Qi,bx as Qn,km as Qr,Kue as Qt,Z7 as R,Io as Ra,wd as Ri,AC as Rn,Th as Rr,cye as Rt,D9 as S,el as Sa,Kd as Si,Ade as Sn,v as So,dg as Sr,H4 as St,b9 as T,nl as Ta,zd as Ti,Nde as Tn,l as To,og as Tr,GCe as Tt,$7 as U,bo as Ua,Ju as Ui,DS as Un,Lh as Ur,bye as Ut,J7 as V,Eo as Va,Wu as Vi,YS as Vn,Ah as Vr,vye as Vt,l9 as W,lo as Wa,Gu as Wi,tS as Wn,Mh as Wr,z1 as Wt,i9 as X,La as Xa,zu as Xi,Ox as Xn,Um as Xr,Wue as Xt,a9 as Y,Ka as Ya,Yu as Yi,Dx as Yn,nh as Yr,Uue as Yt,r9 as Z,Ia as Za,du as Zi,kx as Zn,zm as Zr,Gue as Zt,N9 as _,yl as _a,of as _i,Tde as _n,k as _o,Ng as _r,O6 as _t,W9 as a,Jl as aa,$f as ai,$ue as an,Le as ao,px as ar,V7 as at,M9 as b,dl as ba,$d as bi,Ode as bn,D as bo,Eg as br,U4 as bt,V9 as c,ql as ca,Ff as ci,nde as cn,je as co,dre as cr,Mke as ct,R9 as d,Kl as da,xf as di,ade as dn,N as do,Nb as dr,Fke as dt,lu as ea,Dp as ei,Jue as en,ua as eo,vx as er,f9 as et,L9 as f,Nl as fa,bf as fi,ode as fn,M as fo,Lb as fr,Lke as ft,k9 as g,wl as ga,hf as gi,wde as gn,h as go,G_ as gr,Uke as gt,P9 as h,El as ha,gf as hi,lde as hn,_ as ho,Q_ as hr,Hke as ht,G9 as i,$l as ia,op as ii,Que as in,bn as io,fx as ir,B7 as it,x9 as j,Ss as ja,Id as ji,_D as jn,Gh as jr,ZCe as jt,C9 as k,ws as ka,Rd as ki,ID as kn,qh as kr,YCe as kt,B9 as l,Wl as la,jf as li,rde as ln,Te as lo,Ab as lr,Nke as lt,F9 as m,Dl as ma,_f as mi,cde as mn,w as mo,X_ as mr,Vke as mt,q9 as n,ru as na,up as ni,Xue as nn,Oi as no,ux as nr,o9 as nt,U9 as o,B as oa,zf as oi,ede as on,Fe as oo,zb as or,H7 as ot,I9 as p,Ol as pa,yf as pi,sde as pn,ce as po,Tb as pr,Rke as pt,d9 as q,qa,Zu as qi,Jx as qn,Bh as qr,Vue as qt,K9 as r,tu as ra,dp as ri,Zue as rn,fi as ro,mx as rr,W7 as rt,H9 as s,Yl as sa,Pf as si,tde as sn,Ne as so,Mb as sr,U7 as st,J9 as t,ou as ta,bp as ti,Yue as tn,Wi as to,_x as tr,s9 as tt,z9 as u,Gl as ua,kf as ui,ide as un,xe as uo,cre as ur,Pke as ut,A9 as v,_l as va,sf as vi,Ede as vn,b as vo,Mg as vr,X4 as vt,w9 as w,ul as wa,Jd as wi,Mde as wn,u as wo,sg as wr,WCe as wt,O9 as x,ll as xa,Yd as xi,kde as xn,oe as xo,pg as xr,Ewe as xt,j9 as y,fl as ya,nf as yi,Dde as yn,y as yo,Ag as yr,Dwe as yt,Y7 as z,Po as za,xd as zi,OC as zn,Ih as zr,lye as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js b/spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js deleted file mode 100644 index 907dff1bb..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{H as r,I as i,T as a,V as o,_ as s,f as c,g as l,i as u,t as d}from"./useStore.js";import{n as f,r as p,t as m}from"./matchContext.js";import{n as h}from"./redirect.js";import{t as g}from"./link.js";import{t as _}from"./useNavigate.js";var v=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=p:this.parentRoute||a();let r=n?p:t?.path;r&&r!==`/`&&(r=l(r));let i=t?.id||r,o=n?p:c([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),o!==`__root__`&&(o=c([`/`,o]));let u=o===`__root__`?`/`:c([this.parentRoute.fullPath,r]);this._path=r,this._id=o,this._fullPath=u,this._to=s(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>h({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},y=class extends v{constructor(e){super(e)}},b=e(n(),1),x={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function S(e){let t=u(),n=b.useContext(e.from?m:f),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,s=b.useRef(void 0);return d(i??x,n=>{if((e.shouldThrow??!0)&&!n&&a(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=o(s.current,r);return s.current=e,e}return r})}function C(e){return S({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function w(e){let{select:t,...n}=e;return S({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function T(e){return S({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function E(e){return S({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function D(e){return S({...e,select:t=>e.select?e.select(t.context):t.context})}var O=t(),k=class extends v{constructor(e){super(e),this.useMatch=e=>S({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id}),this.useSearch=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>w({...e,from:this.id}),this.useLoaderData=e=>C({...e,from:this.id}),this.useNavigate=()=>_({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,O.jsx)(g,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}function j(){return e=>N(e)}var M=class extends y{constructor(e){super(e),this.useMatch=e=>S({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id}),this.useSearch=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>w({...e,from:this.id}),this.useLoaderData=e=>C({...e,from:this.id}),this.useNavigate=()=>_({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,O.jsx)(g,{ref:t,from:this.fullPath,...e}))}};function N(e){return new M(e)}function P(e){return new F(e,{silent:!0}).createRoute}var F=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=A(e);return t.isRoot=!1,t},this.silent=t?.silent}};function I(e,t){let n,a,o,s,c=()=>(n||=e().then(e=>{n=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,i(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),s=!0)}}),n),l=function(e){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(r)r(c());else throw c();return b.createElement(a,e)};return l.preload=c,l}export{P as n,j as r,I as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/link.js b/spinifex/services/spinifexui/frontend/dist/assets/link.js deleted file mode 100644 index 244f6c965..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/link.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{A as r,F as i,N as a,U as o,W as ee,i as te,p as s,s as ne,t as re,u as ie}from"./useStore.js";import{hn as c}from"./awsClient.js";var l=`Error preloading route! ☝️`,u=e(n(),1);t();var ae=e(c(),1);function d(e,t){let n=te(),c=o(t),{activeProps:d,inactiveProps:g,activeOptions:_,to:v,preload:pe,preloadDelay:me,preloadIntentProximity:he,hashScrollIntoView:ge,replace:y,startTransition:_e,resetScroll:ve,viewTransition:b,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:M,params:ye,search:be,hash:xe,state:Se,mask:Ce,reloadDocument:we,unsafeRelative:Te,from:Ee,_fromLocation:De,...N}=e,P=ne(),F=u.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=re(n.stores.location,e=>e,(e,t)=>e.href===t.href),L=u.useMemo(()=>{let e={_fromLocation:I,...F};return n.buildLocation(e)},[n,I,F]),R=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,z=L.maskedLocation?L.maskedLocation.external:L.external,B=u.useMemo(()=>ue(R,z,n.history,C),[C,z,R,n.history]),V=u.useMemo(()=>{if(B?.external)return i(B.href,n.protocolAllowlist)?void 0:B.href;if(!de(v)&&!(typeof v!=`string`||v.indexOf(`:`)===-1))try{return new URL(v),i(v,n.protocolAllowlist)?void 0:v}catch{}},[v,B,n.protocolAllowlist]),H=u.useMemo(()=>{if(V)return!1;if(_?.exact){if(!ie(I.pathname,L.pathname,n.basepath))return!1}else{let e=s(I.pathname,n.basepath),t=s(L.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(_?.includeSearch??!0)&&!r(I.search,L.search,{partial:!_?.exact,ignoreUndefined:!_?.explicitUndefined})?!1:_?.includeHash?P&&I.hash===L.hash:!0},[_?.exact,_?.explicitUndefined,_?.includeHash,_?.includeSearch,I,V,P,L.hash,L.pathname,L.search,n.basepath]),U=H?a(d,{})??oe:f,W=H?f:a(g,{})??f,G=[T,U.className,W.className].filter(Boolean).join(` `),K=(w||U.style||W.style)&&{...w,...U.style,...W.style},[Oe,q]=u.useState(!1),J=u.useRef(!1),Y=e.reloadDocument||V?!1:pe??n.options.defaultPreload,X=me??n.options.defaultPreloadDelay??0,Z=u.useCallback(()=>{n.preloadRoute({...F,_builtLocation:L}).catch(e=>{console.warn(e),console.warn(l)})},[n,F,L]);ee(c,u.useCallback(e=>{e?.isIntersecting&&Z()},[Z]),m,{disabled:!!C||Y!==`viewport`}),u.useEffect(()=>{J.current||!C&&Y===`render`&&(Z(),J.current=!0)},[C,Z,Y]);let ke=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;if(!C&&!fe(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,ae.flushSync)(()=>{q(!0)});let t=n.subscribe(`onResolved`,()=>{t(),q(!1)});n.navigate({...F,replace:y,resetScroll:ve,hashScrollIntoView:ge,startTransition:_e,viewTransition:b,ignoreBlocker:M})}};if(V)return{...N,ref:c,href:V,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Q=e=>{if(C||Y!==`intent`)return;if(!X){Z();return}let t=e.currentTarget;if(p.has(t))return;let n=setTimeout(()=>{p.delete(t),Z()},X);p.set(t,n)},Ae=e=>{C||Y!==`intent`||Z()},$=e=>{if(C||!Y||!X)return;let t=e.currentTarget,n=p.get(t);n&&(clearTimeout(n),p.delete(t))};return{...N,...U,...W,href:B?.href,ref:c,onClick:h([E,ke]),onBlur:h([D,$]),onFocus:h([O,Q]),onMouseEnter:h([k,Q]),onMouseLeave:h([A,$]),onTouchStart:h([j,Ae]),disabled:!!C,target:S,...K&&{style:K},...G&&{className:G},...C&&se,...H&&ce,...P&&Oe&&le}}var f={},oe={className:`active`},se={role:`link`,"aria-disabled":!0},ce={"data-status":`active`,"aria-current":`page`},le={"data-transitioning":`transitioning`},p=new WeakMap,m={rootMargin:`100px`},h=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function ue(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function de(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var g=u.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=d(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return u.createElement(`a`,t,o)}return u.createElement(n,a,o)});function fe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}export{g as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js index 1ead9e6ab..00e0a6dcf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./link.js";var r=t(),i=e();function a(e){let t=(0,r.c)(22),a,o,s,c,l;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),t[6]=l,t[7]=u);let d;t[8]===c?d=t[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),t[8]=c,t[9]=d);let f;t[10]!==o||t[11]!==u||t[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),t[10]=o,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===a?p=t[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),t[14]=a,t[15]=p);let m;t[16]!==f||t[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==m?(h=(0,i.jsx)(n,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),t[19]=s,t[20]=m,t[21]=h):h=t[21],h}export{a as t}; \ No newline at end of file +import{eo as e,no as t,so as n}from"./index.js";var r=e(),i=n();function a(e){let n=(0,r.c)(22),a,o,s,c,l;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l);let u;n[6]===l?u=n[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),n[6]=l,n[7]=u);let d;n[8]===c?d=n[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),n[8]=c,n[9]=d);let f;n[10]!==o||n[11]!==u||n[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),n[10]=o,n[11]=u,n[12]=d,n[13]=f):f=n[13];let p;n[14]===a?p=n[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),n[14]=a,n[15]=p);let m;n[16]!==f||n[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),n[16]=f,n[17]=p,n[18]=m):m=n[18];let h;return n[19]!==s||n[20]!==m?(h=(0,i.jsx)(t,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),n[19]=s,n[20]=m,n[21]=h):h=n[21],h}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js index 166cc3b70..1b555fdab 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{r as a}from"./iam2.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Policies){let n=(t.Policies??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-policy`,children:(0,l.jsx)(i,{children:`Create Policy`})}),title:`IAM Policies`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),e[0]=t.Policies,e[1]=s}else s=e[1];return s}function d(e){return e.Arn?(0,l.jsx)(s,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:e.Arn??``,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function f(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{eo as t,no as n,so as r,v as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=r();function u(){let t=(0,c.c)(3),{data:r}=e(i),s;if(t[0]!==r.Policies){let e=(r.Policies??[]).toSorted(f),i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(o,{actions:(0,l.jsx)(n,{to:`/iam/create-policy`,children:(0,l.jsx)(a,{children:`Create Policy`})}),title:`IAM Policies`}),t[2]=i):i=t[2],s=(0,l.jsxs)(l.Fragment,{children:[i,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),t[0]=r.Policies,t[1]=s}else s=t[1];return s}function d(e){return e.Arn?(0,l.jsx)(s,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:e.Arn??``,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function f(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js index c3f7a7fd9..f79a5341d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./button.js";import{s as a}from"./iam2.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Users){let n=(t.Users??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-user`,children:(0,l.jsx)(i,{children:`Create User`})}),title:`IAM Users`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),e[0]=t.Users,e[1]=s}else s=e[1];return s}function d(e){return e.UserName?(0,l.jsx)(s,{params:{userName:e.UserName},subtitle:e.UserId??``,title:e.UserName,to:`/iam/list-users/$userName`},e.UserName):null}function f(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{S as t,eo as n,no as r,so as i,ya as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=n(),l=i();function u(){let n=(0,c.c)(3),{data:i}=e(t),s;if(n[0]!==i.Users){let e=(i.Users??[]).toSorted(f),t;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-user`,children:(0,l.jsx)(a,{children:`Create User`})}),title:`IAM Users`}),n[2]=t):t=n[2],s=(0,l.jsxs)(l.Fragment,{children:[t,e.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:e.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),n[0]=i.Users,n[1]=s}else s=n[1];return s}function d(e){return e.UserName?(0,l.jsx)(s,{params:{userName:e.UserName},subtitle:e.UserId??``,title:e.UserName,to:`/iam/list-users/$userName`},e.UserName):null}function f(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/login.js b/spinifex/services/spinifexui/frontend/dist/assets/login.js index 4e1d6eb5b..d7741e1d8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/login.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/login.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{n as i,t as a}from"./awsClient.js";import{C as o,b as s,x as c}from"./SignatureV4.js";import{t as l}from"./button.js";import{t as u}from"./DescribeInstancesCommand.js";import{L as d}from"./index.js";import{a as f,i as p,r as m,t as h}from"./field.js";import{r as g,t as _}from"./zod.js";import{n as v,r as y,t as b}from"./collapsible.js";import{a as x,o as S,r as C,t as w}from"./card.js";var T=r(),E=e(n()),D=t();function O(){let[e,t]=(0,E.useState)(null),{register:n,handleSubmit:r,formState:{errors:v,isSubmitting:y}}=g({resolver:_(s)});async function b(e){t(null),a(),o(e);try{await i().send(new u({})),window.location.href=`/`}catch{c(),a(),t(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,D.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,D.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,D.jsxs)(w,{children:[(0,D.jsx)(x,{children:(0,D.jsx)(S,{children:`AWS Credentials`})}),(0,D.jsxs)(C,{children:[e&&(0,D.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:e}),(0,D.jsx)(`form`,{onSubmit:r(b),children:(0,D.jsxs)(p,{children:[(0,D.jsxs)(h,{children:[(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,D.jsx)(d,{"aria-invalid":!!v.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...n(`accessKeyId`)}),(0,D.jsx)(m,{errors:[v.accessKeyId]})]}),(0,D.jsxs)(h,{children:[(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,D.jsx)(d,{"aria-invalid":!!v.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...n(`secretAccessKey`)}),(0,D.jsx)(m,{errors:[v.secretAccessKey]})]}),(0,D.jsx)(l,{className:`w-full`,disabled:y,type:`submit`,children:y?`Signing in...`:`Sign In`})]})})]})]}),(0,D.jsx)(k,{})]})})}function k(){let e=(0,T.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,D.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,D.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,D.jsx)(y,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,D.jsx)(w,{className:`border-muted bg-muted/30`,children:(0,D.jsx)(C,{className:`pt-4 pb-4`,children:(0,D.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,D.jsxs)(b,{children:[r,(0,D.jsx)(v,{children:(0,D.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,D.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,D.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,D.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{O as component}; \ No newline at end of file +import{Do as e,Gt as t,ar as n,co as r,eo as i,it as a,nr as o,rr as s,rt as c,so as l,ya as u,yi as d}from"./index.js";import{a as f,i as p,r as m,t as h}from"./field.js";import{r as g,t as _}from"./zod.js";import{n as v,r as y,t as b}from"./collapsible.js";import{a as x,o as S,r as C,t as w}from"./card.js";var T=i(),E=e(r()),D=l();function O(){let[e,r]=(0,E.useState)(null),{register:i,handleSubmit:l,formState:{errors:v,isSubmitting:y}}=g({resolver:_(o)});async function b(e){r(null),c(),n(e);try{await a().send(new t({})),window.location.href=`/`}catch{s(),c(),r(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,D.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,D.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,D.jsxs)(w,{children:[(0,D.jsx)(x,{children:(0,D.jsx)(S,{children:`AWS Credentials`})}),(0,D.jsxs)(C,{children:[e&&(0,D.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:e}),(0,D.jsx)(`form`,{onSubmit:l(b),children:(0,D.jsxs)(p,{children:[(0,D.jsxs)(h,{children:[(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,D.jsx)(d,{"aria-invalid":!!v.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...i(`accessKeyId`)}),(0,D.jsx)(m,{errors:[v.accessKeyId]})]}),(0,D.jsxs)(h,{children:[(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,D.jsx)(d,{"aria-invalid":!!v.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...i(`secretAccessKey`)}),(0,D.jsx)(m,{errors:[v.secretAccessKey]})]}),(0,D.jsx)(u,{className:`w-full`,disabled:y,type:`submit`,children:y?`Signing in...`:`Sign In`})]})})]})]}),(0,D.jsx)(k,{})]})})}function k(){let e=(0,T.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,D.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,D.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,D.jsx)(y,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,D.jsx)(w,{className:`border-muted bg-muted/30`,children:(0,D.jsx)(C,{className:`pt-4 pb-4`,children:(0,D.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,D.jsxs)(b,{children:[r,(0,D.jsx)(v,{children:(0,D.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,D.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,D.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,D.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ls.js b/spinifex/services/spinifexui/frontend/dist/assets/ls.js index afe2e2dc3..dc0701e76 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ls.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ls.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{z as i}from"./SignatureV4.js";import{t as a}from"./button.js";import{n as o}from"./s32.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`S3 Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file +import{t as e}from"./useSuspenseQuery.js";import{F as t,Ta as n,eo as r,no as i,so as a,ya as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=r(),u=a();function d(){let n=(0,l.c)(5),{data:r}=e(t),a;n[0]===r.Buckets?a=n[1]:(a=r.Buckets??[],n[0]=r.Buckets,n[1]=a);let c=a,d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(i,{to:`/s3/create-bucket`,children:(0,u.jsx)(o,{children:`Create Bucket`})}),title:`S3 Buckets`}),n[2]=d):d=n[2];let p;return n[3]===c?p=n[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),n[3]=c,n[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${n(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/matchContext.js b/spinifex/services/spinifexui/frontend/dist/assets/matchContext.js deleted file mode 100644 index 00a8c40aa..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/matchContext.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,r as t}from"./compiler-runtime.js";function n(e){return e?.isNotFound===!0}var r=`__root__`,i=e(t(),1),a=i.createContext(void 0),o=i.createContext(void 0);export{n as i,a as n,r,o as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js index efb19dc76..437de24fd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{v as i}from"./index.js";import{t as a}from"./page-heading.js";import{i as o,r as s,t as c}from"./admin.js";import{a as l,o as u,r as d,t as f}from"./card.js";var p=t(),m=e();function h(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function g(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function _(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function v(){let e=(0,p.c)(28),{isAdmin:t}=i(),o;e[0]===t?o=e[1]:(o={...c,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=o);let{data:h}=n(o),g;e[2]===t?g=e[3]:(g={...s,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=g);let{data:_}=n(g);if(!t)throw r({to:`/`});let v,C,T;if(e[4]!==h?.nodes||e[5]!==_?.vms){v=h?.nodes??[];let t;e[9]===_?.vms?t=e[10]:(t=_?.vms??[],e[9]=_?.vms,e[10]=t);let n;e[11]===t?n=e[12]:(n=t.filter(x),e[11]=t,e[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}C=[...r.entries()].map(b).toSorted(y),e[4]=h?.nodes,e[5]=_?.vms,e[6]=v,e[7]=C,e[8]=T}else v=e[6],C=e[7],T=e[8];let D=C,k;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,m.jsx)(a,{title:`Nodes`}),e[13]=k):k=e[13];let A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,m.jsx)(l,{children:(0,m.jsx)(u,{className:`text-sm`,children:`Cluster Nodes`})}),e[14]=A):A=e[14];let j;e[15]===v?j=e[16]:(j=(0,m.jsxs)(f,{children:[A,(0,m.jsx)(d,{children:v.length===0?(0,m.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,m.jsx)(S,{nodes:v})})]}),e[15]=v,e[16]=j);let M;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,m.jsx)(l,{children:(0,m.jsx)(u,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[17]=M):M=e[17];let N;e[18]===T?N=e[19]:(N=(0,m.jsxs)(f,{children:[M,(0,m.jsx)(d,{children:T.length===0?(0,m.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,m.jsx)(w,{vms:T})})]}),e[18]=T,e[19]=N);let P;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,m.jsx)(l,{children:(0,m.jsx)(u,{className:`text-sm`,children:`Resource Usage`})}),e[20]=P):P=e[20];let F;e[21]!==D||e[22]!==v?(F=(0,m.jsxs)(f,{children:[P,(0,m.jsx)(d,{className:`space-y-4`,children:v.length===0?(0,m.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(E,{nodes:v}),D.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,m.jsx)(O,{instanceTypes:D})]})]})})]}),e[21]=D,e[22]=v,e[23]=F):F=e[23];let I;return e[24]!==j||e[25]!==N||e[26]!==F?(I=(0,m.jsxs)(m.Fragment,{children:[k,(0,m.jsxs)(`div`,{className:`space-y-6`,children:[j,N,F]})]}),e[24]=j,e[25]=N,e[26]=F,e[27]=I):I=e[27],I}function y(e,t){return e.name.localeCompare(t.name)}function b(e){let[t,n]=e;return{name:t,...n}}function x(e){return!e.managed_by}function S(e){let t=(0,p.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(C),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function C(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,m.jsx)(o,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:h(e.uptime)}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,m.jsx)(`td`,{className:`py-1.5`,children:(0,m.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function w(e){let t=(0,p.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,m.jsx)(o,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.memory_gb)}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,m.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?_(e.launch_time):`-`})]},e.instance_id)}function E(e){let t=(0,p.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(D),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function D(e){return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,m.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,m.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[g(e.alloc_mem_gb),`/`,g(e.total_mem_gb)]}),(0,m.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function O(e){let t=(0,p.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(k),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function k(e){return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,m.jsx)(`td`,{className:`py-1.5`,children:g(e.memory_gb)})]},e.name)}export{v as component}; \ No newline at end of file +import{t as e}from"./useQuery.js";import{Bn as t,eo as n,io as r,so as i}from"./index.js";import{t as a}from"./page-heading.js";import{i as o,r as s,t as c}from"./admin.js";import{a as l,o as u,r as d,t as f}from"./card.js";var p=n(),m=i();function h(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function g(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function _(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function v(){let n=(0,p.c)(28),{isAdmin:i}=t(),o;n[0]===i?o=n[1]:(o={...c,enabled:i,refetchInterval:5e3},n[0]=i,n[1]=o);let{data:h}=e(o),g;n[2]===i?g=n[3]:(g={...s,enabled:i,refetchInterval:5e3},n[2]=i,n[3]=g);let{data:_}=e(g);if(!i)throw r({to:`/`});let v,C,T;if(n[4]!==h?.nodes||n[5]!==_?.vms){v=h?.nodes??[];let e;n[9]===_?.vms?e=n[10]:(e=_?.vms??[],n[9]=_?.vms,n[10]=e);let t;n[11]===e?t=n[12]:(t=e.filter(x),n[11]=e,n[12]=t),T=t;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}C=[...r.entries()].map(b).toSorted(y),n[4]=h?.nodes,n[5]=_?.vms,n[6]=v,n[7]=C,n[8]=T}else v=n[6],C=n[7],T=n[8];let D=C,k;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,m.jsx)(a,{title:`Nodes`}),n[13]=k):k=n[13];let A;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,m.jsx)(l,{children:(0,m.jsx)(u,{className:`text-sm`,children:`Cluster Nodes`})}),n[14]=A):A=n[14];let j;n[15]===v?j=n[16]:(j=(0,m.jsxs)(f,{children:[A,(0,m.jsx)(d,{children:v.length===0?(0,m.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,m.jsx)(S,{nodes:v})})]}),n[15]=v,n[16]=j);let M;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,m.jsx)(l,{children:(0,m.jsx)(u,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),n[17]=M):M=n[17];let N;n[18]===T?N=n[19]:(N=(0,m.jsxs)(f,{children:[M,(0,m.jsx)(d,{children:T.length===0?(0,m.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,m.jsx)(w,{vms:T})})]}),n[18]=T,n[19]=N);let P;n[20]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,m.jsx)(l,{children:(0,m.jsx)(u,{className:`text-sm`,children:`Resource Usage`})}),n[20]=P):P=n[20];let F;n[21]!==D||n[22]!==v?(F=(0,m.jsxs)(f,{children:[P,(0,m.jsx)(d,{className:`space-y-4`,children:v.length===0?(0,m.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(E,{nodes:v}),D.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,m.jsx)(O,{instanceTypes:D})]})]})})]}),n[21]=D,n[22]=v,n[23]=F):F=n[23];let I;return n[24]!==j||n[25]!==N||n[26]!==F?(I=(0,m.jsxs)(m.Fragment,{children:[k,(0,m.jsxs)(`div`,{className:`space-y-6`,children:[j,N,F]})]}),n[24]=j,n[25]=N,n[26]=F,n[27]=I):I=n[27],I}function y(e,t){return e.name.localeCompare(t.name)}function b(e){let[t,n]=e;return{name:t,...n}}function x(e){return!e.managed_by}function S(e){let t=(0,p.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(C),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function C(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,m.jsx)(o,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:h(e.uptime)}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,m.jsx)(`td`,{className:`py-1.5`,children:(0,m.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function w(e){let t=(0,p.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,m.jsx)(o,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.memory_gb)}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,m.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?_(e.launch_time):`-`})]},e.instance_id)}function E(e){let t=(0,p.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(D),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function D(e){return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,m.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,m.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[g(e.alloc_mem_gb),`/`,g(e.total_mem_gb)]}),(0,m.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function O(e){let t=(0,p.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,m.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,m.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(k),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,m.jsx)(`div`,{className:`overflow-x-auto`,children:(0,m.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,m.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function k(e){return(0,m.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,m.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,m.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,m.jsx)(`td`,{className:`py-1.5`,children:g(e.memory_gb)})]},e.name)}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js b/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js index 228291c31..8b896c380 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/page-heading.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";var n=t(),r=e();function i(e){let t=(0,n.c)(12),{title:i,subtitle:a,actions:o}=e,s;t[0]===i?s=t[1]:(s=(0,r.jsx)(`h1`,{className:`text-3xl`,children:i}),t[0]=i,t[1]=s);let c;t[2]===a?c=t[3]:(c=a&&(0,r.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:a}),t[2]=a,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,r.jsxs)(`div`,{children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===o?u=t[8]:(u=o&&(0,r.jsx)(`div`,{children:o}),t[7]=o,t[8]=u);let d;return t[9]!==l||t[10]!==u?(d=(0,r.jsxs)(`div`,{className:`mb-6 flex items-start justify-between`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}export{i as t}; \ No newline at end of file +import{eo as e,so as t}from"./index.js";var n=e(),r=t();function i(e){let t=(0,n.c)(12),{title:i,subtitle:a,actions:o}=e,s;t[0]===i?s=t[1]:(s=(0,r.jsx)(`h1`,{className:`text-3xl`,children:i}),t[0]=i,t[1]=s);let c;t[2]===a?c=t[3]:(c=a&&(0,r.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:a}),t[2]=a,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,r.jsxs)(`div`,{children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===o?u=t[8]:(u=o&&(0,r.jsx)(`div`,{children:o}),t[7]=o,t[8]=u);let d;return t[9]!==l||t[10]!==u?(d=(0,r.jsxs)(`div`,{className:`mb-6 flex items-start justify-between`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d}export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/plus.js b/spinifex/services/spinifexui/frontend/dist/assets/plus.js index 1a8237c60..c88c7ca74 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/plus.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/plus.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/queryOptions.js b/spinifex/services/spinifexui/frontend/dist/assets/queryOptions.js deleted file mode 100644 index a81db320d..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/queryOptions.js +++ /dev/null @@ -1 +0,0 @@ -function e(e){return e}export{e as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/redirect.js b/spinifex/services/spinifexui/frontend/dist/assets/redirect.js deleted file mode 100644 index dbe39e3b1..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/redirect.js +++ /dev/null @@ -1 +0,0 @@ -function e(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function t(e){return e instanceof Response&&!!e.options}export{e as n,t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route.js b/spinifex/services/spinifexui/frontend/dist/assets/route.js index 6a82036c9..0ad95b7ed 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{K as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{eo as e,so as t,to as n}from"./index.js";var r=e(),i=t(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route2.js b/spinifex/services/spinifexui/frontend/dist/assets/route2.js index 6a82036c9..0ad95b7ed 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route2.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{K as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{eo as e,so as t,to as n}from"./index.js";var r=e(),i=t(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js index 6f8b35c84..178beb4bd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js @@ -1,4 +1,4 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{t as o}from"./back-link.js";import{t as s}from"./chevron-down.js";import{a as c,i as l,n as u,r as d,t as f}from"./select.js";import{t as p}from"./cli-command-panel.js";import{t as m}from"./button.js";import{o as h}from"./ec2.js";import{_ as g,a as _,c as v,r as y,u as b}from"./ec22.js";import{L as x}from"./index.js";import{t as ee}from"./page-heading.js";import{a as S,n as te,r as C,t as w}from"./field.js";import{n as T,r as E,t as D}from"./zod.js";import{n as ne,r as re,t as ie}from"./collapsible.js";import{n as O,t as k}from"./ec23.js";var A=e(n()),j=t(),M=`/dev/sda1`,ae=`gp3`,oe=1,se=16384;function N(){let e=a(),{data:t}=i(y),{data:n}=i(v),{data:M}=i(_),{data:N}=i(g),{data:F}=i(b),I=h(),L=t.Images??[],R=n.KeyPairs??[],z=N.Subnets??[],B=F.PlacementGroups??[],V={};for(let e of M.InstanceTypes??[]){let t=e.InstanceType;t&&(V[t]=(V[t]??0)+1)}let H=Object.keys(V).toSorted(),U=L[0]?.ImageId,W=R[0]?.KeyName,le=H.find(e=>e.endsWith(`.nano`))??H[0],ue=P(L.find(e=>e.ImageId===U)),{control:G,handleSubmit:de,register:K,setValue:q,watch:J,formState:{errors:Y,isSubmitting:X}}=E({resolver:D(O.refine(e=>e.count<=(V[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=P(L.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Q));return(0,A.useEffect)(()=>{q(`rootDeviceName`,$.deviceName)},[Q,$.deviceName,q]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,j.jsx)(ee,{title:`Run EC2 Instances`}),H.length===0&&(0,j.jsx)(r,{msg:`No compute available. No new instances can be created until compute is available.`}),I.error&&(0,j.jsx)(r,{error:I.error,msg:`Failed to create instance`}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:de(async t=>{await I.mutateAsync(t),e({to:`/ec2/describe-instances`})}),children:[(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,j.jsx)(T,{control:G,name:`imageId`,render:({field:e})=>{let t=L.find(t=>t.ImageId===e.value);return(0,j.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!Y.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(c,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(u,{children:L.map(e=>(0,j.jsxs)(d,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,j.jsx)(C,{errors:[Y.imageId]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,j.jsx)(T,{control:G,name:`instanceType`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(l,{"aria-invalid":!!Y.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:H.map(e=>(0,j.jsxs)(d,{value:e,children:[e,` (`,V[e],` available)`]},e))})]})}),(0,j.jsx)(C,{errors:[Y.instanceType]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,j.jsx)(T,{control:G,name:`keyName`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(l,{"aria-invalid":!!Y.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:R.map(e=>(0,j.jsx)(d,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,j.jsx)(C,{errors:[Y.keyName]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,j.jsx)(T,{control:G,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(l,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(d,{value:`none`,children:`none`}),z.map(e=>(0,j.jsx)(d,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,j.jsx)(T,{control:G,name:`placementGroupName`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(l,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(d,{value:`none`,children:`none`}),B.map(e=>(0,j.jsxs)(d,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,j.jsx)(x,{"aria-describedby":`count-description`,"aria-invalid":!!Y.count,id:`count`,type:`number`,...K(`count`,{valueAsNumber:!0})}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Z&&`Available capacity for ${Z}: ${fe}`}),(0,j.jsx)(C,{errors:[Y.count]})]}),(0,j.jsxs)(ie,{children:[(0,j.jsxs)(re,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,j.jsx)(`button`,{type:`button`}),children:[(0,j.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,j.jsx)(s,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,j.jsxs)(ne,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,j.jsx)(x,{"aria-invalid":!!Y.rootDeviceName,id:`rootDeviceName`,type:`text`,...K(`rootDeviceName`)}),(0,j.jsx)(C,{errors:[Y.rootDeviceName]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,j.jsx)(x,{"aria-invalid":!!Y.rootVolumeSize,id:`rootVolumeSize`,max:se,min:$.snapshotSize??oe,placeholder:$.snapshotSize?`${$.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...K(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),$.snapshotSize!==void 0&&(0,j.jsxs)(te,{children:[`AMI snapshot size: `,$.snapshotSize,` GiB`]}),(0,j.jsx)(C,{errors:[Y.rootVolumeSize]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,j.jsx)(T,{control:G,name:`rootVolumeType`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??ae,children:[(0,j.jsx)(l,{"aria-invalid":!!Y.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:k.map(e=>(0,j.jsx)(d,{value:e,children:e},e))})]})}),(0,j.jsx)(C,{errors:[Y.rootVolumeType]})]}),(0,j.jsx)(w,{children:(0,j.jsx)(T,{control:G,name:`rootDeleteOnTermination`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,j.jsx)(p,{commands:ce(J)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(m,{disabled:X||I.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,j.jsx)(m,{disabled:X||I.isPending||H.length===0,type:`submit`,children:X||I.isPending?`Creating…`:`Create Instance`})]})]})]})}function P(e){let t=e?.RootDeviceName??M,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function ce(e){let t=e(`imageId`),n=typeof t==`string`?t:``,r=e(`instanceType`),i=typeof r==`string`?r:``,a=e(`keyName`),o=typeof a==`string`?a:``,s=e(`subnetId`),c=typeof s==`string`?s:``,l=e(`placementGroupName`),u=typeof l==`string`?l:``,d=e(`count`),f=typeof d==`number`?d:0,p=e(`rootDeviceName`),m=typeof p==`string`?p:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),b=typeof y==`boolean`?y:!0,x=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ +import{t as e}from"./error-banner.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./chevron-down.js";import{a as i,i as a,n as o,r as s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{o as u}from"./ec2.js";import{B as d,Do as f,G as p,Q as m,R as h,U as g,co as _,ro as v,so as y,ya as b,yi as x}from"./index.js";import{t as ee}from"./page-heading.js";import{a as S,n as te,r as C,t as w}from"./field.js";import{n as T,r as E,t as D}from"./zod.js";import{n as ne,r as re,t as ie}from"./collapsible.js";import{n as O,t as k}from"./ec22.js";var A=f(_()),j=y(),M=`/dev/sda1`,ae=`gp3`,oe=1,se=16384;function N(){let f=v(),{data:_}=t(h),{data:y}=t(g),{data:M}=t(d),{data:N}=t(m),{data:F}=t(p),I=u(),L=_.Images??[],R=y.KeyPairs??[],z=N.Subnets??[],B=F.PlacementGroups??[],V={};for(let e of M.InstanceTypes??[]){let t=e.InstanceType;t&&(V[t]=(V[t]??0)+1)}let H=Object.keys(V).toSorted(),U=L[0]?.ImageId,W=R[0]?.KeyName,le=H.find(e=>e.endsWith(`.nano`))??H[0],ue=P(L.find(e=>e.ImageId===U)),{control:G,handleSubmit:de,register:K,setValue:q,watch:J,formState:{errors:Y,isSubmitting:X}}=E({resolver:D(O.refine(e=>e.count<=(V[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=P(L.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Q));return(0,A.useEffect)(()=>{q(`rootDeviceName`,$.deviceName)},[Q,$.deviceName,q]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,j.jsx)(ee,{title:`Run EC2 Instances`}),H.length===0&&(0,j.jsx)(e,{msg:`No compute available. No new instances can be created until compute is available.`}),I.error&&(0,j.jsx)(e,{error:I.error,msg:`Failed to create instance`}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:de(async e=>{await I.mutateAsync(e),f({to:`/ec2/describe-instances`})}),children:[(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,j.jsx)(T,{control:G,name:`imageId`,render:({field:e})=>{let t=L.find(t=>t.ImageId===e.value);return(0,j.jsxs)(c,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(a,{"aria-invalid":!!Y.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(i,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(o,{children:L.map(e=>(0,j.jsxs)(s,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,j.jsx)(C,{errors:[Y.imageId]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,j.jsx)(T,{control:G,name:`instanceType`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(a,{"aria-invalid":!!Y.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(i,{})}),(0,j.jsx)(o,{children:H.map(e=>(0,j.jsxs)(s,{value:e,children:[e,` (`,V[e],` available)`]},e))})]})}),(0,j.jsx)(C,{errors:[Y.instanceType]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,j.jsx)(T,{control:G,name:`keyName`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(a,{"aria-invalid":!!Y.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(i,{})}),(0,j.jsx)(o,{children:R.map(e=>(0,j.jsx)(s,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,j.jsx)(C,{errors:[Y.keyName]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,j.jsx)(T,{control:G,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(a,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(s,{value:`none`,children:`none`}),z.map(e=>(0,j.jsx)(s,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,j.jsx)(T,{control:G,name:`placementGroupName`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(a,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(i,{})}),(0,j.jsxs)(o,{children:[(0,j.jsx)(s,{value:`none`,children:`none`}),B.map(e=>(0,j.jsxs)(s,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,j.jsx)(x,{"aria-describedby":`count-description`,"aria-invalid":!!Y.count,id:`count`,type:`number`,...K(`count`,{valueAsNumber:!0})}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Z&&`Available capacity for ${Z}: ${fe}`}),(0,j.jsx)(C,{errors:[Y.count]})]}),(0,j.jsxs)(ie,{children:[(0,j.jsxs)(re,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,j.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,j.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,j.jsx)(r,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,j.jsxs)(ne,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,j.jsx)(x,{"aria-invalid":!!Y.rootDeviceName,id:`rootDeviceName`,type:`text`,...K(`rootDeviceName`)}),(0,j.jsx)(C,{errors:[Y.rootDeviceName]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,j.jsx)(x,{"aria-invalid":!!Y.rootVolumeSize,id:`rootVolumeSize`,max:se,min:$.snapshotSize??oe,placeholder:$.snapshotSize?`${$.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...K(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),$.snapshotSize!==void 0&&(0,j.jsxs)(te,{children:[`AMI snapshot size: `,$.snapshotSize,` GiB`]}),(0,j.jsx)(C,{errors:[Y.rootVolumeSize]})]}),(0,j.jsxs)(w,{children:[(0,j.jsx)(S,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,j.jsx)(T,{control:G,name:`rootVolumeType`,render:({field:e})=>(0,j.jsxs)(c,{onValueChange:t=>e.onChange(t),value:e.value??ae,children:[(0,j.jsx)(a,{"aria-invalid":!!Y.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(i,{})}),(0,j.jsx)(o,{children:k.map(e=>(0,j.jsx)(s,{value:e,children:e},e))})]})}),(0,j.jsx)(C,{errors:[Y.rootVolumeType]})]}),(0,j.jsx)(w,{children:(0,j.jsx)(T,{control:G,name:`rootDeleteOnTermination`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,j.jsx)(l,{commands:ce(J)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(b,{disabled:X||I.isPending,onClick:async()=>await f({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,j.jsx)(b,{disabled:X||I.isPending||H.length===0,type:`submit`,children:X||I.isPending?`Creating…`:`Create Instance`})]})]})]})}function P(e){let t=e?.RootDeviceName??M,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function ce(e){let t=e(`imageId`),n=typeof t==`string`?t:``,r=e(`instanceType`),i=typeof r==`string`?r:``,a=e(`keyName`),o=typeof a==`string`?a:``,s=e(`subnetId`),c=typeof s==`string`?s:``,l=e(`placementGroupName`),u=typeof l==`string`?l:``,d=e(`count`),f=typeof d==`number`?d:0,p=e(`rootDeviceName`),m=typeof p==`string`?p:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),b=typeof y==`boolean`?y:!0,x=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --image-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --instance-type`},{type:`value`,value:` ${i||``}`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${o||``}`}];if(c&&x.push({type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s3.js b/spinifex/services/spinifexui/frontend/dist/assets/s3.js index 407c9cc17..3a879d20c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/s3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/s3.js @@ -1,6 +1,6 @@ -import{i as e,t}from"./compiler-runtime.js";import{n}from"./QueryClientProvider.js";import{n as r}from"./error-banner.js";import{C as i,S as a,_ as o,a as s,an as c,b as l,c as u,fn as d,g as f,h as p,in as m,l as h,m as g,nn as _,o as v,on as y,pn as b,rn as x,s as S,sn as C,u as w,un as T,v as E,x as D,y as O}from"./awsClient.js";import{_ as ee,a as k,c as A,d as j,f as te,g as M,h as N,i as P,p as F,v as I}from"./SignatureV4.js";var L=typeof ReadableStream==`function`?ReadableStream:function(){},R=class extends L{},ne=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i})=>{if(!d(n))throw Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);let a=i??b;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let o=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){let i=a(await t.digest());if(e!==i){let t=Error(`Checksum mismatch: expected "${e}" but received "${i}" in response header "${r}".`);n.error(t)}else n.terminate()}});n.pipeThrough(o);let s=o.readable;return Object.setPrototypeOf(s,R.prototype),s},re=class{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){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;nnew Uint8Array(e))],s=-1,c=async e=>{let{value:l,done:u}=await r.read(),d=l;if(u){if(s!==-1){let t=H(o,s);U(t)>0&&e.enqueue(t)}e.close()}else{let r=W(d,!1);if(s!==r&&(s>=0&&e.enqueue(H(o,s)),s=r),s===-1){e.enqueue(d);return}let l=U(d);a+=l;let u=U(o[s]);if(l>=t&&u===0)e.enqueue(d);else{let r=V(o,s,d);!i&&a>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(H(o,s)):await c(e)}}};return new ReadableStream({pull:c})}var B=z;function V(e,t,n){switch(t){case 0:return e[0]+=n,U(e[0]);case 1:case 2:return e[t].push(n),U(e[t])}}function H(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function U(e){return e?.byteLength??e?.length??0}function W(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}var G=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===a.WHEN_SUPPORTED||t?D:void 0;if(e[n])return e[n]},K=e=>e===l.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,ie=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},ae=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},oe=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!P(e),se=function(){function e(){this.crc32c=new ce}return e.prototype.update=function(e){ee(e)||this.crc32c.update(I(e))},e.prototype.digest=function(){return j(this,void 0,void 0,function(){return te(this,function(e){return[2,M(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new ce},e}(),ce=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=F(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^le[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),le=N([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]),ue=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},de,q,fe,pe,me,he,ge,_e,ve,ye=()=>{de||(de=ue(),[q,fe,pe,me,he,ge,_e,ve]=de)},be=class{c1=0;c2=0;constructor(){ye(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=ve[t]^_e[a]^ge[o]^he[s]^me[c]^pe[l]^fe[u]^q[d],i=ve[t+1]^_e[a+1]^ge[o+1]^he[s+1]^me[c+1]^pe[l+1]^fe[u+1]^q[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^q[t],i^=q[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},xe={CrtCrc64Nvme:null},Se=()=>O,Ce=[l.CRC32,l.CRC32C,l.CRC64NVME,l.SHA1,l.SHA256],we=[l.SHA256,l.SHA1,l.CRC32,l.CRC32C,l.CRC64NVME],Te=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case l.MD5:return n?.MD5??t.md5;case l.CRC32:return n?.CRC32??Se();case l.CRC32C:return n?.CRC32C??se;case l.CRC64NVME:return typeof xe.CrtCrc64Nvme==`function`?n?.CRC64NVME??xe.CrtCrc64Nvme:n?.CRC64NVME??be;case l.SHA1:return n?.SHA1??t.sha1;case l.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${Ce}, or provide an implementation to the client constructor checksums field.`)}},Ee=(e,t)=>{let n=new e;return n.update(k(t||``)),n.digest()},De={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},Oe=(e,t)=>(n,r)=>async i=>{if(!A.isInstance(i.request)||ae(`x-amz-checksum-`,i.request.headers))return n(i);let{request:o,input:s}=i,{body:c,headers:u}=o,{base64Encoder:d,streamHasher:f}=e,{requestChecksumRequired:p,requestAlgorithmMember:m}=t,h=await e.requestChecksumCalculation(),g=m?.name,_=m?.httpHeader;g&&!s[g]&&(h===a.WHEN_SUPPORTED||p)&&(s[g]=D,_&&(u[_]=D));let v=G(s,{requestChecksumRequired:p,requestAlgorithmMember:m?.name,requestChecksumCalculation:h}),y=c,b=u;if(v){switch(v){case l.CRC32:C(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case l.CRC32C:C(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case l.CRC64NVME:C(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case l.SHA1:C(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case l.SHA256:C(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=K(v),n=Te(v,e);if(oe(c)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;y=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?B(c,e.requestStreamBufferSize,r.logger):c,{base64Encoder:d,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:f}),b={...u,"content-encoding":u[`content-encoding`]?`${u[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":u[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete b[`content-length`]}else if(!ie(t,u)){let e=await Ee(n,c);b={...u,[t]:d(e)}}}try{return await n({...i,request:{...o,headers:b,body:y}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},ke={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},Ae=(e,t)=>(n,r)=>async o=>{let s=o.input,{requestValidationModeMember:c}=t,l=await e.requestChecksumCalculation(),u=await e.responseChecksumValidation();switch(l){case a.WHEN_REQUIRED:C(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case a.WHEN_SUPPORTED:C(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(u){case i.WHEN_REQUIRED:C(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case i.WHEN_SUPPORTED:C(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return c&&!s[c]&&u===i.WHEN_SUPPORTED&&(s[c]=`ENABLED`),n(o)},je=(e=[])=>{let t=[],n=we.length;for(let r of e){let e=we.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Me=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},Ne=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await Ee(t,e)),Pe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=je(n),{body:a,headers:o}=e;for(let n of i){let i=K(n),s=o[i];if(s){let o;try{o=Te(n,t)}catch(e){if(n===l.CRC64NVME){r?.warn(`Skipping ${l.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(oe(a)){e.body=ne({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let u=await Ne(a,{checksumAlgorithmFn:o,base64Encoder:c});if(u===s)break;throw Error(`Checksum mismatch: expected "${u}" but received "${s}" in response header "${i}".`)}}},Fe={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},Ie=(e,t)=>(n,r)=>async i=>{if(!A.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=K(e);return s.headers[t]!==void 0}),a=je([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=K(e),n=s.headers[t];return!n||Me(n)}))return o;await Pe(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Le=(e,t)=>({applyToStack:n=>{n.add(Oe(e,t),De),n.addRelativeTo(Ae(e,t),ke),n.addRelativeTo(Ie(e,t),Fe)}}),Re=`content-length`,ze=`x-amz-decoded-content-length`;function Be(){return(e,t)=>async n=>{let{request:r}=n;if(A.isInstance(r)&&!(Re in r.headers)&&!(ze in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof _)?t.logger.warn(e):console.warn(e)}return e({...n})}}var Ve={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},He=e=>({applyToStack:e=>{e.add(Be(),Ve)}}),Ue=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),E(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(v).build(){};function We(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?Ke(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Ge={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},J=e=>({applyToStack:t=>{t.add(We(e),Ge)}});function Ke(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var qe=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),E(n),J(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(S).build(){};function Je(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Ye={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Xe=e=>({applyToStack:t=>{t.add(Je(e),Ye)}}),Ze=class extends x.classBuilder().ep({...o,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),E(n),Xe(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(u).build(){},Qe=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),E(n),J(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(h).build(){},$e=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),E(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(w).build(){},et=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),Le(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),He(n),E(n),J(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(g).build(){},tt=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),Le(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),E(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(p).build(){},nt=class extends x.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions()),Le(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),E(n),J(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(f).build(){},rt={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},it=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),ot=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),st=e((e=>{var t=at(),n=ot(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return B(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return U(e).length;default:if(i)return r?-1:B(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return N(this,t,n);case`utf8`:case`utf-8`:return k(this,t,n);case`ascii`:return te(this,t,n);case`latin1`:case`binary`:return M(this,t,n);case`base64`:return ee(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return P(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,K(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ee(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return j(r)}var A=4096;function j(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!1,52,8)};function I(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;I(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;I(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);I(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);I(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function L(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function R(e,t,r,i,a){return t=+t,r>>>=0,a||L(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)};function ne(e,t,r,i,a){return t=+t,r>>>=0,a||L(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ne(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function V(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function U(e){return t.toByteArray(z(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function K(e){return e!==e}var ie=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),ct=t(),lt=it(),Y=st(),ut={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},dt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var ft=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),pt=e(((e,t)=>{t.exports=it().EventEmitter})),mt=e(((e,t)=>{t.exports={}})),ht=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),gt=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),_t=e(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),vt=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),yt=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){re(t,e)}}var r;T.WritableState=C;var i={deprecate:vt()},a=pt(),o=st().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=gt(),d=_t().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){te(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&P(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Tt(),i=yt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=st(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),xt=e((e=>{var t=bt().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),St=e(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Ct=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=St(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),wt=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Tt=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,it().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=pt(),a=st().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=mt(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ht(),f=gt(),p=_t().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=xt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,te(e,o);else{var c;if(i||(c=ee(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):P(e,o)):O(e,o,t,!1);else r||(o.reading=!1,P(e,o))}return!o.ended&&(o.length=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function j(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=A(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?V(this):M(this),null;if(e=j(e,t),e===0&&t.ended)return t.length===0&&V(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?B(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&V(this)),i!==null&&this.emit(`data`,i),i};function te(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}function M(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(N,e))}function N(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length1&&U(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function I(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,z(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?M(this):r.reading||process.nextTick(R,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(L,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(L,this),t};function L(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function R(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,ne(this,e)),e.paused=!1,this};function ne(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(re,e,t))}function re(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),z(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function z(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function V(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(H,t,e))}function H(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=wt()),x(E,e,t)});function U(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=Et();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Ot=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=St()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),kt=e(((e,t)=>{t.exports=r;var n=it().EventEmitter;Z()(r,n),r.Readable=Tt(),r.Writable=yt(),r.Duplex=$(),r.Transform=Et(),r.PassThrough=Dt(),r.finished=St(),r.pipeline=Ot(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*At(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*jt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return jt(e,t);if(e instanceof kt.Readable)return At(e,t,Mt);if(e instanceof String||typeof e==`string`)return jt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return At(e.stream(),t,Nt);if(e instanceof ReadableStream)return At(e,t,Nt);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Ft=class e extends lt.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??dt(this.params.Body),this.totalBytesSource=ft(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof lt.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new et(t)),n?.endpoint?.()]),s=o[0],l=o[1];if(l||=y(await c(t,et,{...n})),!l)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let u=this.params.Key.split(`/`).map(e=>T(e)).join(`/`),d=T(this.params.Bucket),f=(()=>{let e=l.hostname.startsWith(`${d}.`),t=this.client.config.forcePathStyle,n=l.port?`:${l.port}`:``;return t?`${l.protocol}//${l.hostname}${n}/${d}/${u}`:e?`${l.protocol}//${l.hostname}${n}/${u}`:`${l.protocol}//${d}.${l.hostname}${n}/${u}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:f};let p=dt(e.data);this.__notifyProgress({loaded:p,total:p,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||rt.CRC32),this.createMultiPartPromise=this.client.send(new Qe(t)).then(e=>(this.abortMultipartUploadCommand=new Ue({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=dt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof lt.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new nt({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=Pt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). +import{n as e}from"./error-banner.js";import{$n as t,An as n,Ct as r,Eo as i,Gn as a,In as o,Jn as s,Mn as c,Nn as l,Pn as u,Qn as d,Rn as f,St as p,Un as m,Xn as h,Yn as g,Zn as _,_t as v,bt as y,ct as b,dt as x,eo as S,er as C,ft as w,gt as T,ht as E,jn as D,kn as O,lt as ee,mt as k,oo as A,st as j,tr as te,ut as M,vt as N,xt as P,yt as F,zn as I}from"./index.js";var L=typeof ReadableStream==`function`?ReadableStream:function(){},R=class extends L{},ne=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i})=>{if(!f(n))throw Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);let a=i??I;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let o=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){let i=a(await t.digest());if(e!==i){let t=Error(`Checksum mismatch: expected "${e}" but received "${i}" in response header "${r}".`);n.error(t)}else n.terminate()}});n.pipeThrough(o);let s=o.readable;return Object.setPrototypeOf(s,R.prototype),s},re=class{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){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;nnew Uint8Array(e))],s=-1,c=async e=>{let{value:l,done:u}=await r.read(),d=l;if(u){if(s!==-1){let t=V(o,s);H(t)>0&&e.enqueue(t)}e.close()}else{let r=U(d,!1);if(s!==r&&(s>=0&&e.enqueue(V(o,s)),s=r),s===-1){e.enqueue(d);return}let l=H(d);a+=l;let u=H(o[s]);if(l>=t&&u===0)e.enqueue(d);else{let r=B(o,s,d);!i&&a>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(V(o,s)):await c(e)}}};return new ReadableStream({pull:c})}var z=ie;function B(e,t,n){switch(t){case 0:return e[0]+=n,H(e[0]);case 1:case 2:return e[t].push(n),H(e[t])}}function V(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function H(e){return e?.byteLength??e?.length??0}function U(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}var W=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===p.WHEN_SUPPORTED||t?P:void 0;if(e[n])return e[n]},G=e=>e===y.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,ae=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},oe=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},se=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!m(e),ce=function(){function e(){this.crc32c=new le}return e.prototype.update=function(e){C(e)||this.crc32c.update(te(e))},e.prototype.digest=function(){return g(this,void 0,void 0,function(){return h(this,function(e){return[2,t(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new le},e}(),le=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=_(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^ue[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),ue=d([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]),de=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},fe,K,pe,me,he,ge,_e,ve,ye,be=()=>{fe||(fe=de(),[K,pe,me,he,ge,_e,ve,ye]=fe)},xe=class{c1=0;c2=0;constructor(){be(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=ye[t]^ve[a]^_e[o]^ge[s]^he[c]^me[l]^pe[u]^K[d],i=ye[t+1]^ve[a+1]^_e[o+1]^ge[s+1]^he[c+1]^me[l+1]^pe[u+1]^K[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^K[t],i^=K[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},Se={CrtCrc64Nvme:null},Ce=()=>F,we=[y.CRC32,y.CRC32C,y.CRC64NVME,y.SHA1,y.SHA256],Te=[y.SHA256,y.SHA1,y.CRC32,y.CRC32C,y.CRC64NVME],Ee=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case y.MD5:return n?.MD5??t.md5;case y.CRC32:return n?.CRC32??Ce();case y.CRC32C:return n?.CRC32C??ce;case y.CRC64NVME:return typeof Se.CrtCrc64Nvme==`function`?n?.CRC64NVME??Se.CrtCrc64Nvme:n?.CRC64NVME??xe;case y.SHA1:return n?.SHA1??t.sha1;case y.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${we}, or provide an implementation to the client constructor checksums field.`)}},De=(e,t)=>{let n=new e;return n.update(a(t||``)),n.digest()},Oe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ke=(e,t)=>(n,r)=>async i=>{if(!s.isInstance(i.request)||oe(`x-amz-checksum-`,i.request.headers))return n(i);let{request:a,input:o}=i,{body:c,headers:l}=a,{base64Encoder:d,streamHasher:f}=e,{requestChecksumRequired:m,requestAlgorithmMember:h}=t,g=await e.requestChecksumCalculation(),_=h?.name,v=h?.httpHeader;_&&!o[_]&&(g===p.WHEN_SUPPORTED||m)&&(o[_]=P,v&&(l[v]=P));let b=W(o,{requestChecksumRequired:m,requestAlgorithmMember:h?.name,requestChecksumCalculation:g}),x=c,S=l;if(b){switch(b){case y.CRC32:u(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case y.CRC32C:u(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case y.CRC64NVME:u(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case y.SHA1:u(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case y.SHA256:u(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=G(b),n=Ee(b,e);if(se(c)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;x=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?z(c,e.requestStreamBufferSize,r.logger):c,{base64Encoder:d,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:f}),S={...l,"content-encoding":l[`content-encoding`]?`${l[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":l[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete S[`content-length`]}else if(!ae(t,l)){let e=await De(n,c);S={...l,[t]:d(e)}}}try{return await n({...i,request:{...a,headers:S,body:x}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},Ae={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},je=(e,t)=>(n,i)=>async a=>{let o=a.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(c){case p.WHEN_REQUIRED:u(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case p.WHEN_SUPPORTED:u(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(l){case r.WHEN_REQUIRED:u(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case r.WHEN_SUPPORTED:u(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&l===r.WHEN_SUPPORTED&&(o[s]=`ENABLED`),n(a)},Me=(e=[])=>{let t=[],n=Te.length;for(let r of e){let e=Te.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ne=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},Pe=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await De(t,e)),Fe=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=Me(n),{body:a,headers:o}=e;for(let n of i){let i=G(n),s=o[i];if(s){let o;try{o=Ee(n,t)}catch(e){if(n===y.CRC64NVME){r?.warn(`Skipping ${y.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(se(a)){e.body=ne({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await Pe(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},Ie={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},Le=(e,t)=>(n,r)=>async i=>{if(!s.isInstance(i.request))return n(i);let a=i.input,o=await n(i),c=o.response,{requestValidationModeMember:l,responseAlgorithms:u}=t;if(l&&a[l]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=G(e);return c.headers[t]!==void 0}),a=Me([...u??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=G(e),n=c.headers[t];return!n||Ne(n)}))return o;await Fe(c,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Re=(e,t)=>({applyToStack:n=>{n.add(ke(e,t),Oe),n.addRelativeTo(je(e,t),Ae),n.addRelativeTo(Le(e,t),Ie)}}),ze=`content-length`,Be=`x-amz-decoded-content-length`;function Ve(){return(e,t)=>async n=>{let{request:r}=n;if(s.isInstance(r)&&!(ze in r.headers)&&!(Be in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof O)?t.logger.warn(e):console.warn(e)}return e({...n})}}var He={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ue=e=>({applyToStack:e=>{e.add(Ve(),He)}}),We=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),N(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(b).build(){};function Ge(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?qe(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Ke={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Ge(e),Ke)}});function qe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Je=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),N(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(ee).build(){};function Ye(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Xe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ze=e=>({applyToStack:t=>{t.add(Ye(e),Xe)}}),Qe=class extends n.classBuilder().ep({...v,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),N(n),Ze(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(M).build(){},$e=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),N(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(x).build(){},et=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),N(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(w).build(){},tt=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ue(n),N(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(k).build(){},nt=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),N(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(E).build(){},rt=class extends n.classBuilder().ep({...v,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[D(n,e.getEndpointParameterInstructions()),Re(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),N(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(T).build(){},it={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},at=i(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),st=i((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=i((e=>{var t=ot(),n=st(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return z(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return H(e).length;default:if(i)return r?-1:z(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return N(this,t,n);case`utf8`:case`utf-8`:return k(this,t,n);case`ascii`:return te(this,t,n);case`latin1`:case`binary`:return M(this,t,n);case`base64`:return ee(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return P(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,G(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ee(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return j(r)}var A=4096;function j(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!1,52,8)};function I(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;I(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;I(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);I(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);I(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function L(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function R(e,t,r,i,a){return t=+t,r>>>=0,a||L(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)};function ne(e,t,r,i,a){return t=+t,r>>>=0,a||L(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ne(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function B(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function H(e){return t.toByteArray(ie(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function G(e){return e!==e}var ae=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),ct=S(),lt=at(),Y=J(),ut={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},dt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var ft=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(ut.isFileReadStream(e))try{return ut.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=i(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),pt=i(((e,t)=>{t.exports=at().EventEmitter})),mt=i(((e,t)=>{t.exports={}})),ht=i(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),gt=i(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=i(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),_t=i(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),vt=i(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),yt=i(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){re(t,e)}}var r;T.WritableState=C;var i={deprecate:vt()},a=pt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=gt(),d=_t().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){te(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&P(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Tt(),i=yt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),xt=i((e=>{var t=bt().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),St=i(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Ct=i(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=St(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),wt=i(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Tt=i(((e,t)=>{t.exports=E;var n;E.ReadableState=T,at().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=pt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=mt(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=ht(),f=gt(),p=_t().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=xt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,te(e,o);else{var c;if(i||(c=ee(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):P(e,o)):O(e,o,t,!1);else r||(o.reading=!1,P(e,o))}return!o.ended&&(o.length=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function j(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=A(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?B(this):M(this),null;if(e=j(e,t),e===0&&t.ended)return t.length===0&&B(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?z(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),i!==null&&this.emit(`data`,i),i};function te(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}function M(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(N,e))}function N(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length1&&H(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function I(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,ie(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?M(this):r.reading||process.nextTick(R,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(L,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(L,this),t};function L(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function R(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,ne(this,e)),e.paused=!1,this};function ne(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(re,e,t))}function re(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),ie(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function ie(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function B(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(V,t,e))}function V(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=wt()),x(E,e,t)});function H(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=Et();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Ot=i(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=St()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),kt=i(((e,t)=>{t.exports=r;var n=at().EventEmitter;Z()(r,n),r.Readable=Tt(),r.Writable=yt(),r.Duplex=$(),r.Transform=Et(),r.PassThrough=Dt(),r.finished=St(),r.pipeline=Ot(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*At(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*jt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return jt(e,t);if(e instanceof kt.Readable)return At(e,t,Mt);if(e instanceof String||typeof e==`string`)return jt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return At(e.stream(),t,Nt);if(e instanceof ReadableStream)return At(e,t,Nt);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Ft=class e extends lt.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??dt(this.params.Body),this.totalBytesSource=ft(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof lt.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let s=await Promise.all([this.client.send(new tt(t)),n?.endpoint?.()]),u=s[0],d=s[1];if(d||=l(await c(t,tt,{...n})),!d)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let f=this.params.Key.split(`/`).map(e=>o(e)).join(`/`),p=o(this.params.Bucket),m=(()=>{let e=d.hostname.startsWith(`${p}.`),t=this.client.config.forcePathStyle,n=d.port?`:${d.port}`:``;return t?`${d.protocol}//${d.hostname}${n}/${p}/${f}`:e?`${d.protocol}//${d.hostname}${n}/${f}`:`${d.protocol}//${p}.${d.hostname}${n}/${f}`})();this.singleUploadResult={...u,Bucket:this.params.Bucket,Key:this.params.Key,Location:m};let h=dt(e.data);this.__notifyProgress({loaded:h,total:h,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||it.CRC32),this.createMultiPartPromise=this.client.send(new $e(t)).then(e=>(this.abortMultipartUploadCommand=new We({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=dt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof lt.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new rt({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=Pt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). The expected part count is based on the byte-count of the input.params.Body, which was read from ${i} and is ${r}. If this is not correct, provide an override value by setting a number to input.params.ContentLength in bytes. -`);this.uploadedParts.sort((e,t)=>e.PartNumber-t.PartNumber);let a={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new qe(a)),typeof n?.Location==`string`&&n.Location.includes(`%2F`)&&(n.Location=n.Location.replace(/%2F/g,`/`))}else n=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&await this.client.send(new tt({...this.params,Tagging:{TagSet:this.tags}})),n}async markUploadAsAborted(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(await this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)}__notifyProgress(e){this.uploadEvent&&this.emit(this.uploadEvent,e)}async __abortTimeout(e){return new Promise((t,n)=>{e.onabort=()=>{let e=Error(`Upload aborted.`);e.name=`AbortError`,n(e)}})}__validateUploadPart(e){let t=dt(e.data);if(t===void 0)throw Error(`A dataPart was generated without a measurable data chunk size for part number ${e.partNumber}`);if(!(e.partNumber===1&&e.lastPart)&&!e.lastPart&&t!==this.partSize)throw Error(`The byte size for part number ${e.partNumber}, size ${t} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw Error(`InputError: Upload requires a AWS client to do uploads with.`);if(this.partSize{t.invalidateQueries({queryKey:[`s3`,`buckets`,n.bucket,`objects`]})}},e[0]=t,e[1]=i),r(i)}async function Lt(e){let{bucket:t,key:n,file:r}=e;return await new Ft({client:s(),params:{Bucket:t,Key:n,Body:r,ContentType:r.type}}).done()}function Rt(){let e=(0,ct.c)(2),t=n(),i;return e[0]===t?i=e[1]:(i={mutationFn:zt,onSuccess:()=>{t.invalidateQueries({queryKey:[`s3`,`buckets`]})}},e[0]=t,e[1]=i),r(i)}async function zt(e){let{bucketName:t}=e,n=new Ze({Bucket:t});return await s().send(n)}function Bt(){let e=(0,ct.c)(2),t=n(),i;return e[0]===t?i=e[1]:(i={mutationFn:Vt,onSuccess:(e,n)=>{t.invalidateQueries({queryKey:[`s3`,`buckets`,n.bucket,`objects`]})}},e[0]=t,e[1]=i),r(i)}async function Vt(e){let{bucket:t,key:n}=e,r=new $e({Bucket:t,Key:n});return await s().send(r)}export{Le as a,J as i,Bt as n,It as r,Rt as t}; \ No newline at end of file +`);this.uploadedParts.sort((e,t)=>e.PartNumber-t.PartNumber);let a={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new Je(a)),typeof n?.Location==`string`&&n.Location.includes(`%2F`)&&(n.Location=n.Location.replace(/%2F/g,`/`))}else n=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&await this.client.send(new nt({...this.params,Tagging:{TagSet:this.tags}})),n}async markUploadAsAborted(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(await this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)}__notifyProgress(e){this.uploadEvent&&this.emit(this.uploadEvent,e)}async __abortTimeout(e){return new Promise((t,n)=>{e.onabort=()=>{let e=Error(`Upload aborted.`);e.name=`AbortError`,n(e)}})}__validateUploadPart(e){let t=dt(e.data);if(t===void 0)throw Error(`A dataPart was generated without a measurable data chunk size for part number ${e.partNumber}`);if(!(e.partNumber===1&&e.lastPart)&&!e.lastPart&&t!==this.partSize)throw Error(`The byte size for part number ${e.partNumber}, size ${t} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw Error(`InputError: Upload requires a AWS client to do uploads with.`);if(this.partSize{n.invalidateQueries({queryKey:[`s3`,`buckets`,t.bucket,`objects`]})}},t[0]=n,t[1]=r),e(r)}async function Lt(e){let{bucket:t,key:n,file:r}=e;return await new Ft({client:j(),params:{Bucket:t,Key:n,Body:r,ContentType:r.type}}).done()}function Rt(){let t=(0,ct.c)(2),n=A(),r;return t[0]===n?r=t[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`s3`,`buckets`]})}},t[0]=n,t[1]=r),e(r)}async function zt(e){let{bucketName:t}=e,n=new Qe({Bucket:t});return await j().send(n)}function Bt(){let t=(0,ct.c)(2),n=A(),r;return t[0]===n?r=t[1]:(r={mutationFn:Vt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`s3`,`buckets`,t.bucket,`objects`]})}},t[0]=n,t[1]=r),e(r)}async function Vt(e){let{bucket:t,key:n}=e,r=new et({Bucket:t,Key:n});return await j().send(r)}export{Re as a,q as i,Bt as n,It as r,Rt as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s32.js b/spinifex/services/spinifexui/frontend/dist/assets/s32.js deleted file mode 100644 index da62e959a..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/s32.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./queryOptions.js";import{_ as t,a as n,f as r,in as i,p as a,rn as o,v as s}from"./awsClient.js";var c=class extends o.classBuilder().ep(t).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions()),s(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(r).build(){},l=class extends o.classBuilder().ep({...t,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[i(n,e.getEndpointParameterInstructions()),s(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(a).build(){},u=e({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new c({});return await n().send(e)}}),d=(t,r)=>e({queryKey:[`s3`,`buckets`,t,`objects`,r??``],queryFn:async()=>{let e=new l({Bucket:t,Prefix:r,Delimiter:`/`});return await n().send(e)}});export{u as n,d as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/select.js b/spinifex/services/spinifexui/frontend/dist/assets/select.js index 30fd92730..35f1a84d0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/select.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/select.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,d as o,i as s,l as c,n as l,r as u,s as d}from"./dist.js";import{I as f}from"./SignatureV4.js";import{t as p}from"./createLucideIcon.js";import{t as m}from"./check.js";import{t as h}from"./chevron-down.js";import{_ as g,b as _,c as v,o as y,r as b}from"./button.js";import{a as x,i as S,n as C,o as w,r as T,s as E}from"./separator.js";import{_ as ee,c as te,g as D,h as O,l as k,m as A,n as j,o as M,t as N,u as ne,v as P,y as re}from"./createBaseUIEventDetails.js";import{$ as F,A as I,At as ie,B as ae,D as L,E as R,Et as z,F as B,Ft as V,H,Ht as oe,J as U,M as se,Mt as W,N as G,Nt as K,P as q,Q as J,R as Y,Rt as ce,S as le,U as ue,Ut as de,Vt as fe,W as pe,Wt as me,X as he,Y as ge,a as _e,at as ve,ct as ye,et as be,i as xe,it as Se,j as Ce,jt as we,kt as Te,n as Ee,nt as De,o as Oe,ot as ke,p as Ae,qt as je,r as X,rt as Me,st as Ne,t as Pe,tt as Fe,zt as Ie}from"./useOpenInteractionType.js";import{l as Le,n as Re,o as ze,r as Be,t as Ve}from"./addEventListener.js";import{A as He,C as Ue,S as We,b as Ge,j as Ke,x as qe}from"./index.js";var Je=p(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=t(),Q=e(n()),Ye=Q.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:i,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Xe(){return Q.useContext(Ye)}function Ze(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:c=!1,stickIfOpen:l=!0,touchOpenDelay:u=0,reason:d=A}=t,f=Q.useRef(void 0),p=Le(),m=J(),h=Q.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current,i=e.nativeEvent,s=n.select(`open`);if(e.button!==0||a===`click`||ie(t,!0)&&c)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=s&&_||!(s&&o&&(!(h&&l)||g===`click`||g===`mousedown`)),y=P(i);if(Ie(y)){let e=N(d,i,y);v&&t===`touch`&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;p.request(()=>{let e=N(d,i,b);v&&t===`touch`&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=f.current;if(a===`mousedown`&&t){f.current=void 0;return}if(ie(t,!0)&&c)return;let i=n.select(`open`),s=r.current.openEvent,p=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&p||!(i&&o&&(!(s&&l)||Te(s))),g=N(d,e.nativeEvent,e.currentTarget);h&&t===`touch`&&u>0?m.start(u,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){f.current=void 0}}),[r,a,c,n,l,o,p,m,u,d]);return Q.useMemo(()=>i?{reference:h}:s,[i,h])}var Qe=`Escape`;function $e(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function et(e,t){return $e(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function tt(e,t,n){return $e(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function nt(e,t,n){return $e(t,n?e===oe:e===de,e===fe)}function rt(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Qe:$e(t,n?e===de:e===oe,e===me)}function it(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:b=`auto`,focusItemOnHover:x=!0,openOnArrowKeyDown:S=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:T,cols:E=1,id:te,resetOnPointerLeave:O=!0,externalTree:A}=t,j=pe(V(i)),ne=G(),I=q(A);y(()=>{o.current.orientation=w},[o,w]);let ie=ce(a),L=Q.useRef(b),R=Q.useRef(d??-1),z=Q.useRef(null),B=Q.useRef(!0),H=v(e=>{l(R.current===-1?null:R.current,e)}),oe=Q.useRef(H),U=Q.useRef(!!i),se=Q.useRef(r),J=Q.useRef(!1),Y=Q.useRef(!1),le=Q.useRef(null),ue=pe(C),de=pe(r),fe=pe(d),me=pe(O),he=v(()=>{function e(e){g?I?.events.emit(`virtualfocus`,e):le.current=ae(e,{sync:J.current,preventScroll:!0})}let t=s.current[R.current],n=Y.current;t&&e(t),(J.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[R.current]||t;r&&(t||e(r),xe&&(n||!B.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});y(()=>{u&&(r&&i?(R.current=d??-1,L.current&&d!=null&&(Y.current=!0,H())):U.current&&(R.current=-1,oe.current()))},[u,r,i,d,H]),y(()=>{if(u){if(!r){J.current=!1;return}if(i)if(c==null){if(J.current=!1,fe.current!=null)return;if(U.current&&(R.current=-1,he()),(!se.current||!U.current)&&L.current&&(z.current!=null||L.current===!0&&z.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(R.current=z.current==null||tt(z.current,w,h)||m?ve(s):Se(s),z.current=null,H())};t()}}else Ne(s.current,c)||(R.current=c,he(),Y.current=!1)}},[u,r,i,c,fe,m,s,w,h,H,he,ue]),y(()=>{if(!u||i||!I||g||!U.current)return;let e=I.nodesRef.current,t=e.find(e=>e.id===ne)?.context?.elements.floating,n=D(re(i)),r=e.some(e=>e.context&&ee(e.context.elements.floating,n));t&&!r&&B.current&&t.focus({preventScroll:!0})},[u,i,I,ne,g]),y(()=>{oe.current=H,se.current=r,U.current=!!i}),y(()=>{r||(z.current=null,L.current=b)},[r,b]);let ge=c!=null,_e=v(e=>{if(!de.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&(R.current!==t||c!==t)&&(R.current=t,H(e))}),xe=Q.useMemo(()=>({onFocus(e){J.current=!0,_e(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){J.current=!0,Y.current=!1,x&&_e(e)},onPointerLeave(e){if(!de.current||!B.current||e.pointerType===`touch`)return;J.current=!0;let t=e.relatedTarget;if(!(!x||s.current.includes(t))&&me.current&&(le.current?.(),le.current=null,R.current=-1,H(e),!g)){let e=j.current,t=D(re(e));e&&ee(e,t)&&e.focus({preventScroll:!0})}}}),[_e,de,j,x,s,H,me,g]),Ce=Q.useCallback(()=>T??I?.nodesRef.current.find(e=>e.id===ne)?.context?.dataRef?.current.orientation,[ne,I,T]),Te=v(e=>{if(B.current=!1,J.current=!0,e.which===229||!de.current&&e.currentTarget===j.current)return;if(m&&rt(e.key,w,h,E)){et(e.key,Ce())||K(e),n.setOpen(!1,N(k,e.nativeEvent)),_(a)&&(g?I?.events.emit(`virtualfocus`,a):a.focus());return}let t=R.current,i=ve(s,C),o=Se(s,C);if(ie||(e.key===`Home`&&(K(e),R.current=i,H(e)),e.key===`End`&&(K(e),R.current=o,H(e))),E>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=F(t,E,!1),r=n.findIndex(e=>e!=null&&!ye(s.current,e,C)),a=n.reduce((e,t,n)=>t!=null&&!ye(s.current,t,C)?n:e,-1),c=n[Me(n.map(e=>e==null?null:s.current[e]),{event:e,orientation:w,loopFocus:p,rtl:h,cols:E,disabledIndices:De([...(typeof C==`function`?null:C)||s.current.map((e,t)=>ye(s.current,t,C)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:Fe(R.current>o?i:R.current,t,n,E,e.key===`ArrowDown`?`bl`:e.key===(h?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(R.current=c,H(e)),w===`both`)return}if(et(e.key,w)){if(K(e),r&&!g&&D(e.currentTarget.ownerDocument)===e.currentTarget){R.current=tt(e.key,w,h)?i:o,H(e);return}tt(e.key,w,h)?p?t>=o?f&&t!==s.current.length?R.current=-1:(J.current=!1,R.current=i):R.current=be(s.current,{startingIndex:t,disabledIndices:C}):R.current=Math.min(o,be(s.current,{startingIndex:t,disabledIndices:C})):p?t<=i?f&&t!==-1?R.current=s.current.length:(J.current=!1,R.current=o):R.current=be(s.current,{startingIndex:t,decrement:!0,disabledIndices:C}):R.current=Math.max(i,be(s.current,{startingIndex:t,decrement:!0,disabledIndices:C})),Ne(s.current,R.current)&&(R.current=-1),H(e)}}),Ee=Q.useMemo(()=>g&&r&&ge&&{"aria-activedescendant":`${te}-${c}`},[g,r,ge,te,c]),Oe=Q.useMemo(()=>({"aria-orientation":w===`both`?void 0:w,...ie?{}:Ee,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!g){let t=P(e.nativeEvent);if(t&&!ee(j.current,t))return;K(e),n.setOpen(!1,N(M,e.nativeEvent)),_(a)&&a.focus();return}Te(e)},onPointerMove(){B.current=!0}}),[Ee,Te,j,w,ie,n,r,g,a]),ke=Q.useMemo(()=>{function e(e){b===`auto`&&we(e.nativeEvent)&&(L.current=!g)}function t(e){L.current=b,b===`auto`&&W(e.nativeEvent)&&(L.current=!0)}return{onKeyDown(e){let t=n.select(`open`);B.current=!1;let r=e.key.startsWith(`Arrow`),i=nt(e.key,Ce(),h),a=et(e.key,w),o=(m?i:a)||e.key===`Enter`||e.key.trim()===``;if(g&&t)return Te(e);if(!(!t&&!S&&r)){if(o){let t=et(e.key,Ce());z.current=m&&t?null:e.key}if(m){i&&(K(e),t?(R.current=ve(s,ue.current),H(e)):n.setOpen(!0,N(k,e.nativeEvent,e.currentTarget)));return}a&&(fe.current!=null&&(R.current=fe.current),K(e),!t&&S?n.setOpen(!0,N(k,e.nativeEvent,e.currentTarget)):Te(e),t&&H(e))}},onFocus(e){n.select(`open`)&&!g&&(R.current=-1,H(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[Te,ue,b,s,m,H,n,S,w,Ce,h,fe,g]),Ae=Q.useMemo(()=>({...Ee,...ke}),[Ee,ke]);return Q.useMemo(()=>u?{reference:Ae,floating:Oe,item:xe,trigger:ke}:{},[u,Ae,Oe,ke,xe])}function at(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=J(),m=Q.useRef(``),h=Q.useRef(f??s??-1),g=Q.useRef(null);y(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),y(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=v(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),b=v(e=>{function t(e){let t=o?.current[e];return!t||ke(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(K(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(K(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),x=v(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=ee(r,t),o=ee(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),S=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]),C=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Q.useMemo(()=>u?{reference:S,floating:C}:{},[u,S,C])}function ot(e){let[t,n]=Q.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var st=Q.createContext(null),ct=Q.createContext(null);function lt(){let e=Q.useContext(st);if(e===null)throw Error(c(60));return e}function ut(){let e=Q.useContext(ct);if(e===null)throw Error(c(61));return e}var dt=(e,t)=>Object.is(e,t);function ft(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function pt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:ft(t,e,n))}function mt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:ft(e,t,n))}function ht(e,t,n){return e.filter(e=>!ft(t,e,n))}function gt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function _t(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function vt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(_t(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function yt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return gt(e)}function bt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?gt(e.value):gt(e)}function xt(e,t,n){function r(){return yt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=_t(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function St(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(Q.Fragment,{children:xt(r,t,n)},i)),e),[])}var $={id:I(e=>e.id),labelId:I(e=>e.labelId),modal:I(e=>e.modal),multiple:I(e=>e.multiple),items:I(e=>e.items),itemToStringLabel:I(e=>e.itemToStringLabel),itemToStringValue:I(e=>e.itemToStringValue),isItemEqualToValue:I(e=>e.isItemEqualToValue),value:I(e=>e.value),hasSelectedValue:I(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:bt(t,r)!==``}),hasNullItemLabel:I((e,t)=>t?vt(e.items):!1),open:I(e=>e.open),mounted:I(e=>e.mounted),forceMount:I(e=>e.forceMount),transitionStatus:I(e=>e.transitionStatus),openMethod:I(e=>e.openMethod),activeIndex:I(e=>e.activeIndex),selectedIndex:I(e=>e.selectedIndex),isActive:I((e,t)=>e.activeIndex===t),isSelected:I((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>ft(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:ft(n,i,r)}),isSelectedByFocus:I((e,t)=>e.selectedIndex===t),popupProps:I(e=>e.popupProps),triggerProps:I(e=>e.triggerProps),triggerElement:I(e=>e.triggerElement),positionerElement:I(e=>e.positionerElement),listElement:I(e=>e.listElement),scrollUpArrowVisible:I(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:I(e=>e.scrollDownArrowVisible),hasScrollArrows:I(e=>e.hasScrollArrows)};function Ct(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function wt(e,t){return Math.max(0,e-t)}function Tt(e,t){if(t<=0)return 0;let n=Ct(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Et(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:c,defaultOpen:l=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:g=!1,readOnly:_=!1,required:b=!1,modal:x=!0,actionsRef:E,inputRef:ee,onOpenChangeComplete:te,items:D,multiple:O=!1,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:j=dt,highlightItemOnHover:M=!0,children:P}=e,{clearErrors:re}=Xe(),{setDirty:F,setTouched:I,setFocused:ie,shouldValidateOnChange:ae,validityData:z,setFilled:B,name:V,disabled:oe,validation:U,validationMode:se}=w(),W=S({id:t}),G=oe||g,K=V??p,[q,J]=T({controlled:n,default:O?r??u:r,name:`Select`,state:`value`}),[Y,ce]=T({controlled:c,default:l,name:`Select`,state:`open`}),de=Q.useRef([]),fe=Q.useRef([]),me=Q.useRef(null),he=Q.useRef(null),ge=Q.useRef(0),_e=Q.useRef(null),ve=Q.useRef([]),ye=Q.useRef(!1),be=Q.useRef(!1),Se=Q.useRef(null),we=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Te=Q.useRef(!1),{mounted:De,setMounted:Oe,transitionStatus:ke}=Re(Y),{openMethod:Ae,triggerProps:je}=Pe(Y),X=a(()=>new R({id:W,labelId:void 0,modal:x,multiple:O,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:j,value:q,open:Y,mounted:De,transitionStatus:ke,items:D,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Me=L(X,$.activeIndex),Ne=L(X,$.selectedIndex),Fe=L(X,$.triggerElement),Ie=L(X,$.positionerElement),Le=ot(Ae),ze=Ae??Le,Ve=Q.useMemo(()=>O&&Array.isArray(q)&&q.length===0?``:bt(q,A),[O,q,A]),Ue=Q.useMemo(()=>O&&Array.isArray(q)?q.map(e=>bt(e,A)):bt(q,A),[O,q,A]);C(pe(X.state.triggerElement),{id:W,value:q,getValue:v(()=>Ue)});let We=Q.useRef(q);y(()=>{q!==We.current&&X.set(`forceMount`,!0)},[X,q]),y(()=>{B(O?Array.isArray(q)&&q.length>0:q!=null)},[O,q,B]),y(function(){if(Y)return;let e=ve.current;if(O){let t=Array.isArray(q)?q:[];if(t.length===0){X.set(`selectedIndex`,null);return}let n=t[t.length-1],r=mt(e,n,j);X.set(`selectedIndex`,r===-1?null:r);return}let t=mt(e,q,j);X.set(`selectedIndex`,t===-1?null:t)},[O,Y,q,ve,j,X]),Ee(q,()=>{re(K),F(q!==z.initialValue),ae()?U.commit(q):U.commit(q,!0)});let Ge=v((e,t)=>{if(f?.(e,t),!t.isCanceled&&(ce(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(I(!0),ie(!1),se===`onBlur`&&U.commit(q)),!e&&X.state.activeIndex!==null)){let e=de.current[X.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ke=v(()=>{Oe(!1),X.update({activeIndex:null,openMethod:null}),te?.(!1)});Be({enabled:!E,open:Y,ref:me,onComplete(){Y||Ke()}}),Q.useImperativeHandle(E,()=>({unmount:Ke}),[Ke]);let qe=v((e,t)=>{i?.(e,t),!t.isCanceled&&J(e)}),Je=v(()=>{let e=X.state.listElement||me.current;if(!e)return;let t=wt(e.scrollHeight,e.clientHeight),n=Tt(e.scrollTop,t),r=n>0,i=no(Qe(),je,W?{id:W}:s),[Qe,je,W]);xe(()=>{X.update({popupProps:$e(),triggerProps:tt})}),y(()=>{X.update({id:W,modal:x,multiple:O,value:q,open:Y,mounted:De,transitionStatus:ke,popupProps:$e(),triggerProps:tt,items:D,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:j,openMethod:ze})},[X,W,x,O,q,Y,De,ke,$e,tt,D,k,A,j,ze]);let nt=Q.useMemo(()=>({store:X,name:K,required:b,disabled:G,readOnly:_,multiple:O,highlightItemOnHover:M,setValue:qe,setOpen:Ge,listRef:de,popupRef:me,scrollHandlerRef:he,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:ge,getItemProps:et,events:Ye.context.events,valueRef:_e,valuesRef:ve,labelsRef:fe,typingRef:ye,selectionRef:we,selectedItemTextRef:Se,validation:U,onOpenChangeComplete:te,keyboardActiveRef:be,alignItemWithTriggerActiveRef:Te,initialValueRef:We}),[X,K,b,G,_,O,M,qe,Ge,et,Ye.context.events,U,te,Je]),rt=d(ee,U.inputRef),lt=O&&Array.isArray(q)&&q.length>0,ut=O?void 0:K,ft=Q.useMemo(()=>!O||!Array.isArray(q)||!K?null:q.map(e=>{let t=bt(e,A);return(0,Z.jsx)(`input`,{type:`hidden`,form:m,name:K,value:t},t)}),[O,q,m,K,A]);return(0,Z.jsx)(st.Provider,{value:nt,children:(0,Z.jsxs)(ct.Provider,{value:Ye,children:[P,(0,Z.jsx)(`input`,{...U.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=N(ne,e.nativeEvent);function r(){if(O)return;let e=ve.current.find(e=>bt(e,A).toLowerCase()===t.toLowerCase()||yt(e,k).toLowerCase()===t.toLowerCase());e!=null&&(F(e!==z.initialValue),qe(e,n),ae()&&U.commit(e))}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:W&&ut==null?`${W}-hidden-input`:void 0,form:m,name:ut,autoComplete:h,value:Ve,disabled:G,required:b&&!lt,readOnly:_,ref:rt,style:K?ue:H,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ft]})})}function Dt(e,t){return e??t}function Ot(e){let t=e.getBoundingClientRect(),n=g(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var kt=2,At=400,jt=200,Mt={...ge,...E,value:()=>null},Nt=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...u}=e,{setTouched:f,setFocused:p,validationMode:m,state:h,disabled:g}=w(),{labelId:_}=x(),{store:y,setOpen:C,selectionRef:T,validation:E,readOnly:te,required:D,alignItemWithTriggerActiveRef:O,disabled:k,keyboardActiveRef:A}=lt(),M=g||k||a,P=L(y,$.open),F=L(y,$.value),I=L(y,$.triggerProps),ie=L(y,$.positionerElement),ae=L(y,$.listElement),R=L(y,$.id),z=L(y,$.labelId),B=L(y,$.hasSelectedValue),H=!B&&P,oe=L(y,$.hasNullItemLabel,H),U=i??R,se=Dt(_,z);S({id:U});let W=pe(ie),G=Q.useRef(null),{getButtonProps:K,buttonRef:q}=b({disabled:M,native:s}),Y=d(t,G,q,v(e=>{y.set(`triggerElement`,e)})),ce=J(),le=J(),ue=J(),de=J();Q.useEffect(()=>{if(P)return B||oe?de.start(jt,()=>{T.current.allowUnselectedMouseUp=!0,ue.start(jt,()=>{T.current.allowSelectedMouseUp=!0})}):ue.start(At,()=>{T.current.allowUnselectedMouseUp=!0,T.current.allowSelectedMouseUp=!0}),()=>{ue.clear(),de.clear()};T.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},le.clear()},[P,B,oe,T,le,ue,de]);let fe=Q.useMemo(()=>ae?.id??V(ie)?.id,[ae,ie]),me=o(I,{id:U,role:`combobox`,"aria-expanded":P?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":P?fe:void 0,"aria-labelledby":se,"aria-readonly":te||void 0,"aria-required":D||void 0,tabIndex:M?-1:0,ref:Y,onFocus(e){p(!0),P&&O.current&&C(!1,N(ne,e.nativeEvent)),ce.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){ee(ie,e.relatedTarget)||(f(!0),p(!1),m===`onBlur`&&E.commit(F))},onPointerMove(){A.current=!1},onKeyDown(){A.current=!0},onMouseDown(e){if(P)return;let t=re(e.currentTarget);function n(e){if(!G.current)return;let t=e.target;if(ee(G.current,t)||ee(W.current,t)||t===G.current)return;let n=Ot(G.current);e.clientX>=n.left-kt&&e.clientX<=n.right+kt&&e.clientY>=n.top-kt&&e.clientY<=n.bottom+kt||C(!1,N(j,e))}le.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},E.getValidationProps,u,K);me.role=`combobox`;let he={...h,open:P,disabled:M,value:F,readOnly:te,placeholder:!B};return l(`button`,e,{ref:[t,G],state:he,stateAttributesMapping:Mt,props:me})}),Pt={value:()=>null},Ft=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=lt(),d=L(c,$.value),f=L(c,$.items),p=L(c,$.itemToStringLabel),m=L(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=L(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?St(d,f,p):xt(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Pt})}),It=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o}=lt();return l(`span`,e,{state:{open:L(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:he})}),Lt=Q.createContext(void 0),Rt=Q.forwardRef(function(e,t){let{store:n}=lt(),r=L(n,$.mounted),i=L(n,$.forceMount);return r||i?(0,Z.jsx)(Lt.Provider,{value:!0,children:(0,Z.jsx)(B,{ref:t,...e})}):null}),zt=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Bt(){return Q.useContext(zt)}function Vt(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,o=v(i),s=Q.useRef(0),c=a(Ut).current,l=a(Ht).current,[u,d]=Q.useState(0),f=Q.useRef(u),p=v((e,t)=>{l.set(e,t??null),f.current+=1,d(f.current)}),m=v(e=>{l.delete(e),f.current+=1,d(f.current)}),h=Q.useMemo(()=>{let e=new Map;return Array.from(l.keys()).filter(e=>e.isConnected).sort(Wt).forEach((t,n)=>{let r=l.get(t)??{};e.set(t,{...r,index:n})}),e},[l,u]);y(()=>{if(typeof MutationObserver!=`function`||h.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(f.current+=1,d(f.current))});return h.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[h]),y(()=>{f.current===u&&(n.current.length!==h.size&&(n.current.length=h.size),r&&r.current.length!==h.size&&(r.current.length=h.size),s.current=h.size),o(h)},[o,h,n,r,u]),y(()=>()=>{n.current=[]},[n]),y(()=>()=>{r&&(r.current=[])},[r]);let g=v(e=>(c.add(e),()=>{c.delete(e)}));y(()=>{c.forEach(e=>e(h))},[c,h]);let _=Q.useMemo(()=>({register:p,unregister:m,subscribeMapChange:g,elementsRef:n,labelsRef:r,nextIndexRef:s}),[p,m,g,n,r,s]);return(0,Z.jsx)(zt.Provider,{value:_,children:t})}function Ht(){return new Map}function Ut(){return new Set}function Wt(e,t){let n=e.compareDocumentPosition(t);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}var Gt=Q.createContext(void 0);function Kt(){let e=Q.useContext(Gt);if(!e)throw Error(c(59));return e}function qt(e,t){e&&Object.assign(e.style,t)}var Jt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Yt=20;function Xt(e,t,n,r){let[i,a]=Q.useState(!1);y(()=>{if(!e||!t||n==null){a(!1);return}let r=re(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Yt)},[e,t,n]),X(e&&(!t||i),r)}var Zt={position:`fixed`},Qt=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=Y,style:_,...b}=e,{store:x,listRef:S,labelsRef:C,alignItemWithTriggerActiveRef:w,selectedItemTextRef:T,valuesRef:E,initialValueRef:ee,popupRef:te,setValue:D}=lt(),O=ut(),k=L(x,$.open),A=L(x,$.mounted),j=L(x,$.modal),M=L(x,$.value),P=L(x,$.openMethod),re=L(x,$.positionerElement),F=L(x,$.triggerElement),I=L(x,$.isItemEqualToValue),ie=L(x,$.transitionStatus),ae=Q.useRef(null),R=Q.useRef(null),[z,B]=Q.useState(h),V=A&&z&&P!==`touch`;!A&&z!==h&&B(h),y(()=>{A||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,A]),Q.useImperativeHandle(w,()=>V),Xt((V||j)&&k,P===`touch`,re,F);let H=We({anchor:n,floatingRootContext:O,positionMethod:r,mounted:A,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??V,collisionAvoidance:g,keepMounted:!0}),oe=V?`none`:H.side,U=V?Zt:H.positionerStyles,se=Ge(e,{open:k,side:oe,align:H.align,anchorHidden:H.anchorHidden},{styles:U,transitionStatus:ie,props:b,refs:[t,v(e=>{x.set(`positionerElement`,e)})],hidden:!A,inert:!k}),W=Q.useRef(0),G=v(e=>{if(e.size===0&&W.current===0||E.current.length===0)return;let t=W.current;if(W.current=e.size,e.size===t)return;let n=N(ne);if(t!==0&&!x.state.multiple&&M!==null&&mt(E.current,M,I)===-1){let e=ee.current,t=e!=null&&mt(E.current,e,I)!==-1?e:null;D(t,n),t===null&&(x.set(`selectedIndex`,null),T.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(M)){let e=e=>mt(E.current,e,I)!==-1,t=M.filter(t=>e(t));(t.length!==M.length||t.some(e=>!pt(M,e,I)))&&(D(t,n),t.length===0&&(x.set(`selectedIndex`,null),T.current=null))}if(k&&V){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};qt(re,e),qt(te.current,e)}}),K=Q.useMemo(()=>({...H,side:oe,alignItemWithTriggerActive:V,setControlledAlignItemWithTrigger:B,scrollUpArrowRef:ae,scrollDownArrowRef:R}),[H,oe,V,B]);return(0,Z.jsx)(Vt,{elementsRef:S,labelsRef:C,onMapChange:G,children:(0,Z.jsxs)(Gt.Provider,{value:K,children:[A&&j&&(0,Z.jsx)(_e,{inert:Oe(!k),cutout:F}),se]})})}),$t=`base-ui-disable-scrollbar`,en={className:$t,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:$t,precedence:`base-ui:low`,children:`.${$t}{scrollbar-width:none}.${$t}::-webkit-scrollbar{display:none}`})}},tn=Q.createContext(void 0);function nn(e){let t=Q.useContext(tn);if(t===void 0&&!e)throw Error(c(69));return t}var rn=Q.createContext(void 0),an={disableStyleElements:!1};function on(){return Q.useContext(rn)??an}var sn={...U,...ze},cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,selectedItemTextRef:p,keyboardActiveRef:m,multiple:h,handleScrollArrowVisibility:_,scrollHandlerRef:b,listRef:x,highlightItemOnHover:S}=lt(),{side:C,align:w,alignItemWithTriggerActive:T,isPositioned:E,setControlledAlignItemWithTrigger:ee,scrollDownArrowRef:te,scrollUpArrowRef:D}=Kt(),k=nn(!0)!=null,A=ut(),j=Ue(),{nonce:M,disableStyleElements:ne}=on(),P=L(s,$.id),F=L(s,$.open),I=L(s,$.mounted),ie=L(s,$.popupProps),ae=L(s,$.transitionStatus),R=L(s,$.triggerElement),z=L(s,$.positionerElement),B=L(s,$.listElement),V=Q.useRef(!1),H=Q.useRef(!1),oe=Q.useRef({}),U=Le(),W=v(e=>{if(!z||!c.current||!H.current)return;if(V.current||!T){_();return}let t=z.style.top===`0px`,n=z.style.bottom===`0px`;if(!t&&!n){_();return}let r=dn(z),i=fn(z.getBoundingClientRect().height,`y`,r),a=re(z),o=getComputedStyle(z),s=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=ln(getComputedStyle(c.current)),d=Math.min(a.documentElement.clientHeight-s-l,u),f=e.scrollTop,p=un(e),m=0,h=null,g=!1,v=!1,y=e=>{z.style.height=`${e}px`},b=(t,n)=>{let r=Ct(t,0,d-i);r>0&&y(i+r),e.scrollTop=n,d-(i+r)<=1&&(V.current=!0),_()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1){b(x,t?p:0);return}if(d-S>1?t?v=!0:h=0:(g=!0,n&&f1&&(e.scrollTop=n)}(g||m>=d-1)&&(V.current=!0),_()});Q.useImperativeHandle(b,()=>W,[W]),Be({open:F,ref:c,onComplete(){F&&u?.(!0)}});let G={open:F,transitionStatus:ae,side:C,align:w};y(()=>{!z||!c.current||Object.keys(oe.current).length||(oe.current={top:z.style.top||`0`,left:z.style.left||`0`,right:z.style.right,height:z.style.height,bottom:z.style.bottom,minHeight:z.style.minHeight,maxHeight:z.style.maxHeight,marginTop:z.style.marginTop,marginBottom:z.style.marginBottom})},[c,z]),y(()=>{F||T||(H.current=!1,V.current=!1,qt(z,oe.current))},[F,T,z,c]),y(()=>{let e=c.current;if(!F||!R||!z||!e||T&&!E||s.state.transitionStatus===`ending`)return;if(!T){H.current=!0,U.request(_),e.style.removeProperty(`--transform-origin`);return}let t=hn(e);e.style.removeProperty(`--transform-origin`);try{let t=p.current,n=f.current,r=getComputedStyle(z),i=getComputedStyle(e),a=re(R),o=g(z),c=dn(R),l=pn(R.getBoundingClientRect(),c),u=pn(z.getBoundingClientRect(),c),d=l.height,m=B||e,h=m.scrollHeight,v=parseFloat(i.borderBottomWidth),y=parseFloat(r.marginTop)||10,b=parseFloat(r.marginBottom)||10,C=parseFloat(r.minHeight)||100,w=ln(i),T=a.documentElement.clientHeight-y-b,E=a.documentElement.clientWidth,te=T-l.bottom+d,D,O=j===`rtl`?l.right-u.width:l.left,k=0;if(t&&n){let e=pn(n.getBoundingClientRect(),c);D=pn(t.getBoundingClientRect(),c),O=u.left+(j===`rtl`?e.right-D.right:e.left-D.left);let r=e.top-l.top+e.height/2;k=D.top-u.top+D.height/2-r}let A=te+k+b+v,M=Math.min(T,A),N=T-y-b,ne=A-M,P=E-5;z.style.left=`${Ct(O,5,P-u.width)}px`,z.style.height=`${M}px`,z.style.maxHeight=`auto`,z.style.marginTop=`${y}px`,z.style.marginBottom=`${b}px`,e.style.height=`100%`;let F=un(m),I=ne>=F-1;I&&(M=Math.min(T,u.height)-(ne-F));let ie=l.top<20||l.bottom>T-20||Math.ceil(M)+1=N?`0`:`${e}px`,z.style.height=`${M}px`,m.scrollTop=un(m)}else z.style.bottom=`0`,m.scrollTop=ne;if(D){let t=u.top,n=u.height,r=D.top+D.height/2,i=Ct(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(L===T||M>=w)&&(V.current=!0),_(),S&&s.state.selectedIndex===null&&s.state.activeIndex===null&&x.current[0]!=null&&s.set(`activeIndex`,0),H.current=!0}finally{t()}},[s,F,z,R,f,p,c,_,T,ee,U,te,D,B,x,S,j,E]),Q.useEffect(()=>{if(!T||!z||!F)return;let e=g(z);function t(e){d(!1,N(O,e))}return Ve(e,`resize`,t)},[d,T,z,F]);let K={...B?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":h||void 0,id:`${P}-list`},onKeyDown(e){m.current=!0,k&&Ae.has(e.key)&&e.stopPropagation()},onMouseMove(){m.current=!1},onScroll(e){B||W(e.currentTarget)},...T&&{style:B?{height:`100%`}:Jt}},q=l(`div`,e,{ref:[t,c],state:G,stateAttributesMapping:sn,props:[ie,K,qe(ae),{className:!B&&T?en.className:void 0},o]});return(0,Z.jsxs)(Q.Fragment,{children:[!ne&&en.getElement(M),(0,Z.jsx)(se,{context:A,modal:!1,disabled:!I,returnFocus:a,restoreFocus:!0,children:q})]})});function ln(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function un(e){return wt(e.scrollHeight,e.clientHeight)}function dn(e){return Ke.getScale(e)}function fn(e,t,n){return e/n[t]}function pn(e,t){return z({x:fn(e.x,`x`,t),y:fn(e.y,`y`,t),width:fn(e.width,`x`,t),height:fn(e.height,`y`,t)})}var mn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function hn(e){let{style:t}=e,n={};for(let[e,r]of mn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of mn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var gn=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=lt(),{alignItemWithTriggerActive:c}=Kt(),u=L(o,$.hasScrollArrows),d=L(o,$.openMethod),f=L(o,$.multiple),p={id:`${L(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Jt},className:u&&d!==`touch`?en.className:void 0};return l(`div`,e,{ref:[t,v(e=>{o.set(`listElement`,e)})],props:[p,a]})}),_n=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function vn(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Bt(),f=Q.useRef(-1),[p,m]=Q.useState(a??(i===_n.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=Q.useRef(null),g=Q.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return y(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),y(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),Q.useMemo(()=>({ref:g,index:p}),[p,g])}var yn=Q.createContext(void 0);function bn(){let e=Q.useContext(yn);if(!e)throw Error(c(57));return e}var xn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,style:c,...u}=e,d=Q.useRef(null),f=vn({label:a,textRef:d,indexGuessBehavior:_n.GuessFromOrder}),{store:p,getItemProps:m,setOpen:h,setValue:g,selectionRef:_,typingRef:v,valuesRef:x,multiple:S,selectedItemTextRef:C}=lt(),w=L(p,$.isActive,f.index),T=L(p,$.isSelected,f.index,i),E=L(p,$.isSelectedByFocus,f.index),ee=L(p,$.isItemEqualToValue),D=f.index,O=D!==-1,k=Q.useRef(null),A=pe(D);y(()=>{if(!O)return;let e=x.current;return e[D]=i,()=>{delete e[D]}},[O,D,i,x]),y(()=>{if(!O)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&ft(i,t,ee)&&(p.set(`selectedIndex`,D),d.current&&(C.current=d.current))},[O,D,S,ee,p,i,C]);let j={disabled:o,selected:T,highlighted:w},M=m({active:w,selected:T});M.id=void 0;let ne=Q.useRef(null),P=Q.useRef(`mouse`),re=Q.useRef(!1),{getButtonProps:F,buttonRef:I}=b({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function ie(e){let t=p.state.value;if(S){let n=Array.isArray(t)?t:[];g(T?ht(n,i,ee):[...n,i],N(te,e))}else g(i,N(te,e)),h(!1,N(te,e))}let ae={role:`option`,"aria-selected":T,tabIndex:w?0:-1,onTouchStart(){_.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){ne.current=e.key,p.set(`activeIndex`,D),e.key===` `&&v.current&&e.preventDefault()},onClick(e){re.current=!1,!(e.type===`keydown`&&ne.current===null)&&(o||e.type===`keydown`&&ne.current===` `&&v.current||P.current!==`touch`&&!w||(ne.current=null,ie(e.nativeEvent)))},onPointerEnter(e){P.current=e.pointerType},onPointerDown(e){P.current=e.pointerType,re.current=!0},onMouseUp(){if(o)return;if(re.current){re.current=!1;return}let e=!_.current.allowSelectedMouseUp&&T,t=!_.current.allowUnselectedMouseUp&&!T;e||t||P.current!==`touch`&&!w||k.current?.click()}},R=l(`div`,e,{ref:[I,t,f.ref,k],state:j,props:[M,ae,u,F]}),z=Q.useMemo(()=>({selected:T,indexRef:A,textRef:d,selectedByFocus:E,hasRegistered:O}),[T,A,d,E,O]);return(0,Z.jsx)(yn.Provider,{value:z,children:R})})),Sn=Q.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=bn();return n||r?(0,Z.jsx)(Cn,{...e,ref:t}):null}),Cn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=bn(),c=Q.useRef(null),{transitionStatus:u,setMounted:d}=Re(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:ze});return Be({open:s,ref:c,onComplete(){s||d(!1)}}),f})),wn=Q.memo(Q.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=bn(),{selectedItemTextRef:o}=lt(),{className:s,render:c,style:u,...d}=e;return l(`div`,e,{ref:[Q.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:d})})),Tn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=lt(),{side:h,scrollDownArrowRef:g,scrollUpArrowRef:_}=Kt(),v=L(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=L(u,$.openMethod),x=v&&b!==`touch`,S=J(),C=c?_:g,{transitionStatus:w,setMounted:T}=Re(x);y(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),Be({open:x,ref:C,onComplete(){x||T(!1)}});let E=l(`div`,e,{ref:[t,C],state:{direction:a,visible:x,side:h,transitionStatus:w},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=wt(e.scrollHeight,e.clientHeight),r=Tt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=En(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s]});return x||o?E:null});function En(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Tt(l.offsetTop+l.offsetHeight-r+i,a):a}var Dn=Q.forwardRef(function(e,t){return(0,Z.jsx)(Tn,{...e,ref:t,direction:`down`})}),On=Q.forwardRef(function(e,t){return(0,Z.jsx)(Tn,{...e,ref:t,direction:`up`})}),kn=r(),An=Et;function jn(e){let t=(0,kn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Ft,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Mn(e){let t=(0,kn.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=f(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(It,{render:(0,Z.jsx)(h,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Z.jsxs)(Nt,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Nn(e){let t=(0,kn.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=a===void 0?`bottom`:a,d=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=f(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(Fn,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Z.jsx)(gn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(In,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Z.jsxs)(cn,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==d||t[24]!==b?(x=(0,Z.jsx)(Rt,{children:(0,Z.jsx)(Qt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:d,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=d,t[24]=b,t[25]=x):x=t[25],x}function Pn(e){let t=(0,kn.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=f(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Z.jsx)(wn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(Sn,{render:(0,Z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Z.jsx)(m,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Z.jsxs)(xn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function Fn(e){let t=(0,kn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Je,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(On,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function In(e){let t=(0,kn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(h,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(Dn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{jn as a,Mn as i,Nn as n,vn as o,Pn as r,Vt as s,An as t}; \ No newline at end of file +import{t as e}from"./check.js";import{t}from"./chevron-down.js";import{$a as n,$i as r,$r as i,Ai as a,Ar as o,Bi as s,Ci as c,Di as l,Do as u,Dr as d,Er as f,Fa as p,Fi as m,Gi as h,Hi as g,Ja as _,Ji as v,Jr as y,Ka as b,Ki as x,Li as S,Ma as C,Mi as w,Na as T,Oi as E,Or as D,Pa as O,Qa as k,Qi as A,Qr as j,Ri as M,Sa as N,Si as ee,Ti as te,Tr as P,Ua as F,Ui as ne,Vi as I,Wi as re,Xa as ie,Xi as L,Xr as ae,Ya as R,Yi as z,Yr as B,Za as V,Zi as H,Zr as U,_a as oe,_r as W,aa as se,ai as G,bi as K,br as q,ca as J,ci as ce,co as Y,da as le,ea as ue,ei as de,eo as fe,fa as pe,gi as me,ha as he,hi as ge,ia as _e,ii as ve,ji as ye,jr as be,ka as xe,ki as Se,la as Ce,li as we,ma as Te,mi as Ee,na as De,ni as Oe,oa as ke,oi as Ae,pa as je,qa as Me,qi as Ne,ra as Pe,ri as X,sa as Fe,si as Ie,so as Le,ta as Re,ti as ze,ua as Be,ui as Ve,va as He,vr as Ue,wi as We,xi as Ge,yr as Ke,zr as qe}from"./index.js";var Je=F(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=Le(),Q=u(Y()),Ye=Q.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:R,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Xe(){return Q.useContext(Ye)}function Ze(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:u=0,reason:d=l}=t,f=Q.useRef(void 0),p=S(),m=M(),h=Q.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current,i=e.nativeEvent,l=n.select(`open`);if(e.button!==0||a===`click`||A(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=l&&_||!(l&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=Fe(i);if(_e(y)){let e=K(d,i,y);v&&t===`touch`&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;p.request(()=>{let e=K(d,i,b);v&&t===`touch`&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=f.current;if(a===`mousedown`&&t){f.current=void 0;return}if(A(t,!0)&&s)return;let i=n.select(`open`),l=r.current.openEvent,p=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&p||!(i&&o&&(!(l&&c)||H(l))),g=K(d,e.nativeEvent,e.currentTarget);h&&t===`touch`&&u>0?m.start(u,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){f.current=void 0}}),[r,a,s,n,c,o,p,m,u,d]);return Q.useMemo(()=>i?{reference:h}:_,[i,h])}var Qe=`Escape`;function $e(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function et(e,t){return $e(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function tt(e,t,n){return $e(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function nt(e,t,n){return $e(t,n?e===Ce:e===Be,e===J)}function rt(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Qe:$e(t,n?e===Be:e===Ce,e===le)}function it(e,t){let n=`rootStore`in e?e.rootStore:e,i=n.useState(`open`),a=n.useState(`floatingElement`),o=n.useState(`domReferenceElement`),c=n.context.dataRef,{listRef:l,activeIndex:u,onNavigate:d=()=>{},enabled:f=!0,selectedIndex:m=null,allowEscape:_=!1,loopFocus:y=!1,nested:b=!1,rtl:S=!1,virtual:w=!1,focusItemOnOpen:E=`auto`,focusItemOnHover:D=!0,openOnArrowKeyDown:O=!0,disabledIndices:k=void 0,orientation:A=`vertical`,parentOrientation:j,cols:M=1,id:N,resetOnPointerLeave:te=!0,externalTree:P}=t,F=we(De(a)),ie=Oe(),L=X(P);C(()=>{c.current.orientation=A},[c,A]);let ae=Pe(o),R=Q.useRef(E),B=Q.useRef(m??-1),V=Q.useRef(null),H=Q.useRef(!0),U=T(e=>{d(B.current===-1?null:B.current,e)}),oe=Q.useRef(U),W=Q.useRef(!!a),G=Q.useRef(i),q=Q.useRef(!1),J=Q.useRef(!1),ce=Q.useRef(null),Y=we(k),le=we(i),de=we(m),fe=we(te),pe=T(()=>{function e(e){w?L?.events.emit(`virtualfocus`,e):ce.current=Ae(e,{sync:q.current,preventScroll:!0})}let t=l.current[B.current],n=J.current;t&&e(t),(q.current?e=>e():requestAnimationFrame)(()=>{let r=l.current[B.current]||t;r&&(t||e(r),ge&&(n||!H.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});C(()=>{f&&(i&&a?(B.current=m??-1,R.current&&m!=null&&(J.current=!0,U())):W.current&&(B.current=-1,oe.current()))},[f,i,a,m,U]),C(()=>{if(f){if(!i){q.current=!1;return}if(a)if(u==null){if(q.current=!1,de.current!=null)return;if(W.current&&(B.current=-1,pe()),(!G.current||!W.current)&&R.current&&(V.current!=null||R.current===!0&&V.current==null)){let e=0,t=()=>{l.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(B.current=V.current==null||tt(V.current,A,S)||b?x(l):h(l),V.current=null,U())};t()}}else v(l.current,u)||(B.current=u,pe(),J.current=!1)}},[f,i,a,u,de,b,l,A,S,U,pe,Y]),C(()=>{if(!f||a||!L||w||!W.current)return;let e=L.nodesRef.current,t=e.find(e=>e.id===ie)?.context?.elements.floating,n=se(je(a)),r=e.some(e=>e.context&&ke(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[f,a,L,ie,w]),C(()=>{oe.current=U,G.current=i,W.current=!!a}),C(()=>{i||(V.current=null,R.current=E)},[i,E]);let me=u!=null,he=T(e=>{if(!le.current)return;let t=l.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||u!==t)&&(B.current=t,U(e))}),ge=Q.useMemo(()=>({onFocus(e){q.current=!0,he(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){q.current=!0,J.current=!1,D&&he(e)},onPointerLeave(e){if(!le.current||!H.current||e.pointerType===`touch`)return;q.current=!0;let t=e.relatedTarget;if(!(!D||l.current.includes(t))&&fe.current&&(ce.current?.(),ce.current=null,B.current=-1,U(e),!w)){let e=F.current,t=se(je(e));e&&ke(e,t)&&e.focus({preventScroll:!0})}}}),[he,le,F,D,l,U,fe,w]),_e=Q.useCallback(()=>j??L?.nodesRef.current.find(e=>e.id===ie)?.context?.dataRef?.current.orientation,[ie,L,j]),ve=T(e=>{if(H.current=!1,q.current=!0,e.which===229||!le.current&&e.currentTarget===F.current)return;if(b&&rt(e.key,A,S,M)){et(e.key,_e())||Re(e),n.setOpen(!1,K(We,e.nativeEvent)),p(o)&&(w?L?.events.emit(`virtualfocus`,o):o.focus());return}let t=B.current,r=x(l,k),a=h(l,k);if(ae||(e.key===`Home`&&(Re(e),B.current=r,U(e)),e.key===`End`&&(Re(e),B.current=a,U(e))),M>1){let t=Array.from({length:l.current.length},()=>({width:1,height:1})),n=s(t,M,!1),i=n.findIndex(e=>e!=null&&!z(l.current,e,k)),o=n.reduce((e,t,n)=>t!=null&&!z(l.current,t,k)?n:e,-1),c=n[re(n.map(e=>e==null?null:l.current[e]),{event:e,orientation:A,loopFocus:y,rtl:S,cols:M,disabledIndices:ne([...(typeof k==`function`?null:k)||l.current.map((e,t)=>z(l.current,t,k)?t:void 0),void 0],n),minIndex:i,maxIndex:o,prevIndex:g(B.current>a?r:B.current,t,n,M,e.key===`ArrowDown`?`bl`:e.key===(S?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(B.current=c,U(e)),A===`both`)return}if(et(e.key,A)){if(Re(e),i&&!w&&se(e.currentTarget.ownerDocument)===e.currentTarget){B.current=tt(e.key,A,S)?r:a,U(e);return}tt(e.key,A,S)?y?t>=a?_&&t!==l.current.length?B.current=-1:(q.current=!1,B.current=r):B.current=I(l.current,{startingIndex:t,disabledIndices:k}):B.current=Math.min(a,I(l.current,{startingIndex:t,disabledIndices:k})):y?t<=r?_&&t!==-1?B.current=l.current.length:(q.current=!1,B.current=a):B.current=I(l.current,{startingIndex:t,decrement:!0,disabledIndices:k}):B.current=Math.max(r,I(l.current,{startingIndex:t,decrement:!0,disabledIndices:k})),v(l.current,B.current)&&(B.current=-1),U(e)}}),ye=Q.useMemo(()=>w&&i&&me&&{"aria-activedescendant":`${N}-${u}`},[w,i,me,N,u]),be=Q.useMemo(()=>({"aria-orientation":A===`both`?void 0:A,...ae?{}:ye,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&i&&!w){let t=Fe(e.nativeEvent);if(t&&!ke(F.current,t))return;Re(e),n.setOpen(!1,K(ee,e.nativeEvent)),p(o)&&o.focus();return}ve(e)},onPointerMove(){H.current=!0}}),[ye,ve,F,A,ae,n,i,w,o]),xe=Q.useMemo(()=>{function e(e){E===`auto`&&r(e.nativeEvent)&&(R.current=!w)}function t(e){R.current=E,E===`auto`&&ue(e.nativeEvent)&&(R.current=!0)}return{onKeyDown(e){let t=n.select(`open`);H.current=!1;let r=e.key.startsWith(`Arrow`),i=nt(e.key,_e(),S),a=et(e.key,A),o=(b?i:a)||e.key===`Enter`||e.key.trim()===``;if(w&&t)return ve(e);if(!(!t&&!O&&r)){if(o){let t=et(e.key,_e());V.current=b&&t?null:e.key}if(b){i&&(Re(e),t?(B.current=x(l,Y.current),U(e)):n.setOpen(!0,K(We,e.nativeEvent,e.currentTarget)));return}a&&(de.current!=null&&(B.current=de.current),Re(e),!t&&O?n.setOpen(!0,K(We,e.nativeEvent,e.currentTarget)):ve(e),t&&U(e))}},onFocus(e){n.select(`open`)&&!w&&(B.current=-1,U(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ve,Y,E,l,b,U,n,O,A,_e,S,de,w]),Se=Q.useMemo(()=>({...ye,...xe}),[ye,xe]);return Q.useMemo(()=>f?{reference:Se,floating:be,item:ge,trigger:xe}:{},[f,Se,be,xe,ge])}function at(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=M(),m=Q.useRef(``),h=Q.useRef(f??s??-1),g=Q.useRef(null);C(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),C(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=T(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=T(e=>{function t(e){let t=o?.current[e];return!t||Ne(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(Re(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(Re(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),y=T(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=ke(r,t),o=ke(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),b=Q.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]),x=Q.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return Q.useMemo(()=>u?{reference:b,floating:x}:{},[u,b,x])}function ot(e){let[t,n]=Q.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var st=Q.createContext(null),ct=Q.createContext(null);function lt(){let e=Q.useContext(st);if(e===null)throw Error(k(60));return e}function ut(){let e=Q.useContext(ct);if(e===null)throw Error(k(61));return e}var dt=(e,t)=>Object.is(e,t);function ft(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function pt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:ft(t,e,n))}function mt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:ft(e,t,n))}function ht(e,t,n){return e.filter(e=>!ft(t,e,n))}function gt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function _t(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function vt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(_t(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function yt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return gt(e)}function bt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?gt(e.value):gt(e)}function xt(e,t,n){function r(){return yt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=_t(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function St(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(Q.Fragment,{children:xt(r,t,n)},i)),e),[])}var $={id:j(e=>e.id),labelId:j(e=>e.labelId),modal:j(e=>e.modal),multiple:j(e=>e.multiple),items:j(e=>e.items),itemToStringLabel:j(e=>e.itemToStringLabel),itemToStringValue:j(e=>e.itemToStringValue),isItemEqualToValue:j(e=>e.isItemEqualToValue),value:j(e=>e.value),hasSelectedValue:j(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:bt(t,r)!==``}),hasNullItemLabel:j((e,t)=>t?vt(e.items):!1),open:j(e=>e.open),mounted:j(e=>e.mounted),forceMount:j(e=>e.forceMount),transitionStatus:j(e=>e.transitionStatus),openMethod:j(e=>e.openMethod),activeIndex:j(e=>e.activeIndex),selectedIndex:j(e=>e.selectedIndex),isActive:j((e,t)=>e.activeIndex===t),isSelected:j((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>ft(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:ft(n,i,r)}),isSelectedByFocus:j((e,t)=>e.selectedIndex===t),popupProps:j(e=>e.popupProps),triggerProps:j(e=>e.triggerProps),triggerElement:j(e=>e.triggerElement),positionerElement:j(e=>e.positionerElement),listElement:j(e=>e.listElement),scrollUpArrowVisible:j(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:j(e=>e.scrollDownArrowVisible),hasScrollArrows:j(e=>e.hasScrollArrows)};function Ct(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function wt(e,t){return Math.max(0,e-t)}function Tt(e,t){if(t<=0)return 0;let n=Ct(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Et(e){let{id:t,value:r,defaultValue:i=null,onValueChange:o,open:s,defaultOpen:c=!1,onOpenChange:l,name:u,form:d,autoComplete:p,disabled:m=!1,readOnly:h=!1,required:g=!1,modal:v=!0,actionsRef:b,inputRef:x,onOpenChangeComplete:S,items:E,multiple:O=!1,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:j=dt,highlightItemOnHover:M=!0,children:N}=e,{clearErrors:ee}=Xe(),{setDirty:F,setTouched:ne,setFocused:I,shouldValidateOnChange:re,validityData:L,setFilled:R,name:z,disabled:H,validation:W,validationMode:se}=oe(),G=Te({id:t}),q=H||m,J=z??u,[Y,le]=a({controlled:r,default:O?i??Me:i,name:`Select`,state:`value`}),[ue,fe]=a({controlled:s,default:c,name:`Select`,state:`open`}),pe=Q.useRef([]),me=Q.useRef([]),he=Q.useRef(null),ge=Q.useRef(null),_e=Q.useRef(0),ve=Q.useRef(null),be=Q.useRef([]),xe=Q.useRef(!1),Ce=Q.useRef(!1),Ee=Q.useRef(null),De=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Oe=Q.useRef(!1),{mounted:ke,setMounted:Ae,transitionStatus:je}=ye(ue),{openMethod:Ne,triggerProps:Pe}=P(ue),X=V(()=>new ae({id:G,labelId:void 0,modal:v,multiple:O,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:j,value:Y,open:ue,mounted:ke,transitionStatus:je,items:E,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Fe=U(X,$.activeIndex),Le=U(X,$.selectedIndex),Re=U(X,$.triggerElement),ze=U(X,$.positionerElement),Be=ot(Ne),Ve=Ne??Be,He=Q.useMemo(()=>O&&Array.isArray(Y)&&Y.length===0?``:bt(Y,A),[O,Y,A]),Ue=Q.useMemo(()=>O&&Array.isArray(Y)?Y.map(e=>bt(e,A)):bt(Y,A),[O,Y,A]);Se(we(X.state.triggerElement),{id:G,value:Y,getValue:T(()=>Ue)});let We=Q.useRef(Y);C(()=>{Y!==We.current&&X.set(`forceMount`,!0)},[X,Y]),C(()=>{R(O?Array.isArray(Y)&&Y.length>0:Y!=null)},[O,Y,R]),C(function(){if(ue)return;let e=be.current;if(O){let t=Array.isArray(Y)?Y:[];if(t.length===0){X.set(`selectedIndex`,null);return}let n=t[t.length-1],r=mt(e,n,j);X.set(`selectedIndex`,r===-1?null:r);return}let t=mt(e,Y,j);X.set(`selectedIndex`,t===-1?null:t)},[O,ue,Y,be,j,X]),f(Y,()=>{ee(J),F(Y!==L.initialValue),re()?W.commit(Y):W.commit(Y,!0)});let Ge=T((e,t)=>{if(l?.(e,t),!t.isCanceled&&(fe(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ne(!0),I(!1),se===`onBlur`&&W.commit(Y)),!e&&X.state.activeIndex!==null)){let e=pe.current[X.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ke=T(()=>{Ae(!1),X.update({activeIndex:null,openMethod:null}),S?.(!1)});w({enabled:!b,open:ue,ref:he,onComplete(){ue||Ke()}}),Q.useImperativeHandle(b,()=>({unmount:Ke}),[Ke]);let qe=T((e,t)=>{o?.(e,t),!t.isCanceled&&le(e)}),Je=T(()=>{let e=X.state.listElement||he.current;if(!e)return;let t=wt(e.scrollHeight,e.clientHeight),n=Tt(e.scrollTop,t),r=n>0,i=nn(Qe(),Pe,G?{id:G}:_),[Qe,Pe,G]);D(()=>{X.update({popupProps:$e(),triggerProps:tt})}),C(()=>{X.update({id:G,modal:v,multiple:O,value:Y,open:ue,mounted:ke,transitionStatus:je,popupProps:$e(),triggerProps:tt,items:E,itemToStringLabel:k,itemToStringValue:A,isItemEqualToValue:j,openMethod:Ve})},[X,G,v,O,Y,ue,ke,je,$e,tt,E,k,A,j,Ve]);let nt=Q.useMemo(()=>({store:X,name:J,required:g,disabled:q,readOnly:h,multiple:O,highlightItemOnHover:M,setValue:qe,setOpen:Ge,listRef:pe,popupRef:he,scrollHandlerRef:ge,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:_e,getItemProps:et,events:Ye.context.events,valueRef:ve,valuesRef:be,labelsRef:me,typingRef:xe,selectionRef:De,selectedItemTextRef:Ee,validation:W,onOpenChangeComplete:S,keyboardActiveRef:Ce,alignItemWithTriggerActiveRef:Oe,initialValueRef:We}),[X,J,g,q,h,O,M,qe,Ge,et,Ye.context.events,W,S,Je]),rt=ie(x,W.inputRef),lt=O&&Array.isArray(Y)&&Y.length>0,ut=O?void 0:J,ft=Q.useMemo(()=>!O||!Array.isArray(Y)||!J?null:Y.map(e=>{let t=bt(e,A);return(0,Z.jsx)(`input`,{type:`hidden`,form:d,name:J,value:t},t)}),[O,Y,d,J,A]);return(0,Z.jsx)(st.Provider,{value:nt,children:(0,Z.jsxs)(ct.Provider,{value:Ye,children:[N,(0,Z.jsx)(`input`,{...W.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=K(te,e.nativeEvent);function r(){if(O)return;let e=be.current.find(e=>bt(e,A).toLowerCase()===t.toLowerCase()||yt(e,k).toLowerCase()===t.toLowerCase());e!=null&&(F(e!==L.initialValue),qe(e,n),re()&&W.commit(e))}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:G&&ut==null?`${G}-hidden-input`:void 0,form:d,name:ut,autoComplete:p,value:He,disabled:q,required:g&&!lt,readOnly:h,ref:rt,style:J?ce:Ie,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ft]})})}function Dt(e,t){return e??t}function Ot(e){let t=e.getBoundingClientRect(),n=O(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var kt=2,At=400,jt=200,Mt={...ge,...He,value:()=>null},Nt=Q.forwardRef(function(e,t){let{render:r,className:i,id:a,disabled:o=!1,nativeButton:s=!0,style:c,...l}=e,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=oe(),{labelId:h}=he(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:x,required:S,alignItemWithTriggerActiveRef:C,disabled:w,keyboardActiveRef:E}=lt(),D=m||w||o,O=U(g,$.open),k=U(g,$.value),A=U(g,$.triggerProps),j=U(g,$.positionerElement),N=U(g,$.listElement),ee=U(g,$.id),P=U(g,$.labelId),F=U(g,$.hasSelectedValue),ne=!F&&O,I=U(g,$.hasNullItemLabel,ne),re=a??ee,L=Dt(h,P);Te({id:re});let ae=we(j),R=Q.useRef(null),{getButtonProps:z,buttonRef:B}=xe({disabled:D,native:s}),V=ie(t,R,B,T(e=>{g.set(`triggerElement`,e)})),H=M(),W=M(),se=M(),G=M();Q.useEffect(()=>{if(O)return F||I?G.start(jt,()=>{v.current.allowUnselectedMouseUp=!0,se.start(jt,()=>{v.current.allowSelectedMouseUp=!0})}):se.start(At,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{se.clear(),G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},W.clear()},[O,F,I,v,W,se,G]);let q=Q.useMemo(()=>N?.id??De(j)?.id,[N,j]),J=n(A,{id:re,role:`combobox`,"aria-expanded":O?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":O?q:void 0,"aria-labelledby":L,"aria-readonly":x||void 0,"aria-required":S||void 0,tabIndex:D?-1:0,ref:V,onFocus(e){d(!0),O&&C.current&&_(!1,K(te,e.nativeEvent)),H.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){ke(j,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&y.commit(k))},onPointerMove(){E.current=!1},onKeyDown(){E.current=!0},onMouseDown(e){if(O)return;let t=je(e.currentTarget);function n(e){if(!R.current)return;let t=e.target;if(ke(R.current,t)||ke(ae.current,t)||t===R.current)return;let n=Ot(R.current);e.clientX>=n.left-kt&&e.clientX<=n.right+kt&&e.clientY>=n.top-kt&&e.clientY<=n.bottom+kt||_(!1,K(Ge,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,l,z);J.role=`combobox`;let ce={...p,open:O,disabled:D,value:k,readOnly:x,placeholder:!F};return b(`button`,e,{ref:[t,R],state:ce,stateAttributesMapping:Mt,props:J})}),Pt={value:()=>null},Ft=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=lt(),u=U(c,$.value),d=U(c,$.items),f=U(c,$.itemToStringLabel),p=U(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=U(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?St(u,d,f):xt(u,d,f)),b(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:Pt})}),It=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o}=lt();return b(`span`,e,{state:{open:U(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:me})}),Lt=Q.createContext(void 0),Rt=Q.forwardRef(function(e,t){let{store:n}=lt(),r=U(n,$.mounted),i=U(n,$.forceMount);return r||i?(0,Z.jsx)(Lt.Provider,{value:!0,children:(0,Z.jsx)(ve,{ref:t,...e})}):null}),zt=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Bt(){return Q.useContext(zt)}function Vt(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=T(i),o=Q.useRef(0),s=V(Ut).current,c=V(Ht).current,[l,u]=Q.useState(0),d=Q.useRef(l),f=T((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=T(e=>{c.delete(e),d.current+=1,u(d.current)}),m=Q.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Wt).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);C(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),C(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),C(()=>()=>{n.current=[]},[n]),C(()=>()=>{r&&(r.current=[])},[r]);let h=T(e=>(s.add(e),()=>{s.delete(e)}));C(()=>{s.forEach(e=>e(m))},[s,m]);let g=Q.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,Z.jsx)(zt.Provider,{value:g,children:t})}function Ht(){return new Map}function Ut(){return new Set}function Wt(e,t){let n=e.compareDocumentPosition(t);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}var Gt=Q.createContext(void 0);function Kt(){let e=Q.useContext(Gt);if(!e)throw Error(k(59));return e}function qt(e,t){e&&Object.assign(e.style,t)}var Jt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Yt=20;function Xt(e,t,n,r){let[i,a]=Q.useState(!1);C(()=>{if(!e||!t||n==null){a(!1);return}let r=je(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Yt)},[e,t,n]),d(e&&(!t||i),r)}var Zt={position:`fixed`},Qt=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h,alignItemWithTrigger:g=!0,collisionAvoidance:_=G,style:v,...y}=e,{store:b,listRef:x,labelsRef:S,alignItemWithTriggerActiveRef:w,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:k,setValue:A}=lt(),j=ut(),M=U(b,$.open),N=U(b,$.mounted),ee=U(b,$.modal),P=U(b,$.value),F=U(b,$.openMethod),ne=U(b,$.positionerElement),I=U(b,$.triggerElement),re=U(b,$.isItemEqualToValue),ie=U(b,$.transitionStatus),L=Q.useRef(null),ae=Q.useRef(null),[R,z]=Q.useState(g),B=N&&R&&F!==`touch`;!N&&R!==g&&z(g),C(()=>{N||($.scrollUpArrowVisible(b.state)&&b.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(b.state)&&b.set(`scrollDownArrowVisible`,!1))},[b,N]),Q.useImperativeHandle(w,()=>B),Xt((B||ee)&&M,F===`touch`,ne,I);let V=Ke({anchor:n,floatingRootContext:j,positionMethod:r,mounted:N,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h??B,collisionAvoidance:_,keepMounted:!0}),H=B?`none`:V.side,oe=B?Zt:V.positionerStyles,se=W(e,{open:M,side:H,align:V.align,anchorHidden:V.anchorHidden},{styles:oe,transitionStatus:ie,props:y,refs:[t,T(e=>{b.set(`positionerElement`,e)})],hidden:!N,inert:!M}),q=Q.useRef(0),J=T(e=>{if(e.size===0&&q.current===0||D.current.length===0)return;let t=q.current;if(q.current=e.size,e.size===t)return;let n=K(te);if(t!==0&&!b.state.multiple&&P!==null&&mt(D.current,P,re)===-1){let e=O.current,t=e!=null&&mt(D.current,e,re)!==-1?e:null;A(t,n),t===null&&(b.set(`selectedIndex`,null),E.current=null)}if(t!==0&&b.state.multiple&&Array.isArray(P)){let e=e=>mt(D.current,e,re)!==-1,t=P.filter(t=>e(t));(t.length!==P.length||t.some(e=>!pt(P,e,re)))&&(A(t,n),t.length===0&&(b.set(`selectedIndex`,null),E.current=null))}if(M&&B){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};qt(ne,e),qt(k.current,e)}}),ce=Q.useMemo(()=>({...V,side:H,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:L,scrollDownArrowRef:ae}),[V,H,B,z]);return(0,Z.jsx)(Vt,{elementsRef:x,labelsRef:S,onMapChange:J,children:(0,Z.jsxs)(Gt.Provider,{value:ce,children:[N&&ee&&(0,Z.jsx)(o,{inert:be(!M),cutout:I}),se]})})}),$t=`base-ui-disable-scrollbar`,en={className:$t,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:$t,precedence:`base-ui:low`,children:`.${$t}{scrollbar-width:none}.${$t}::-webkit-scrollbar{display:none}`})}},tn=Q.createContext(void 0);function nn(e){let t=Q.useContext(tn);if(t===void 0&&!e)throw Error(k(69));return t}var rn=Q.createContext(void 0),an={disableStyleElements:!1};function on(){return Q.useContext(rn)??an}var sn={...Ee,...m},cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:l,setOpen:u,valueRef:d,selectedItemTextRef:f,keyboardActiveRef:p,multiple:m,handleScrollArrowVisibility:h,scrollHandlerRef:g,listRef:_,highlightItemOnHover:v}=lt(),{side:y,align:x,alignItemWithTriggerActive:D,isPositioned:k,setControlledAlignItemWithTrigger:A,scrollDownArrowRef:j,scrollUpArrowRef:M}=Kt(),N=nn(!0)!=null,ee=ut(),te=q(),{nonce:P,disableStyleElements:F}=on(),ne=U(s,$.id),I=U(s,$.open),re=U(s,$.mounted),ie=U(s,$.popupProps),L=U(s,$.transitionStatus),ae=U(s,$.triggerElement),R=U(s,$.positionerElement),z=U(s,$.listElement),B=Q.useRef(!1),V=Q.useRef(!1),H=Q.useRef({}),oe=S(),W=T(e=>{if(!R||!c.current||!V.current)return;if(B.current||!D){h();return}let t=R.style.top===`0px`,n=R.style.bottom===`0px`;if(!t&&!n){h();return}let r=dn(R),i=fn(R.getBoundingClientRect().height,`y`,r),a=je(R),o=getComputedStyle(R),s=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=ln(getComputedStyle(c.current)),d=Math.min(a.documentElement.clientHeight-s-l,u),f=e.scrollTop,p=un(e),m=0,g=null,_=!1,v=!1,y=e=>{R.style.height=`${e}px`},b=(t,n)=>{let r=Ct(t,0,d-i);r>0&&y(i+r),e.scrollTop=n,d-(i+r)<=1&&(B.current=!0),h()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1){b(x,t?p:0);return}if(d-S>1?t?v=!0:g=0:(_=!0,n&&f1&&(e.scrollTop=n)}(_||m>=d-1)&&(B.current=!0),h()});Q.useImperativeHandle(g,()=>W,[W]),w({open:I,ref:c,onComplete(){I&&l?.(!0)}});let se={open:I,transitionStatus:L,side:y,align:x};C(()=>{!R||!c.current||Object.keys(H.current).length||(H.current={top:R.style.top||`0`,left:R.style.left||`0`,right:R.style.right,height:R.style.height,bottom:R.style.bottom,minHeight:R.style.minHeight,maxHeight:R.style.maxHeight,marginTop:R.style.marginTop,marginBottom:R.style.marginBottom})},[c,R]),C(()=>{I||D||(V.current=!1,B.current=!1,qt(R,H.current))},[I,D,R,c]),C(()=>{let e=c.current;if(!I||!ae||!R||!e||D&&!k||s.state.transitionStatus===`ending`)return;if(!D){V.current=!0,oe.request(h),e.style.removeProperty(`--transform-origin`);return}let t=hn(e);e.style.removeProperty(`--transform-origin`);try{let t=f.current,n=d.current,r=getComputedStyle(R),i=getComputedStyle(e),a=je(ae),o=O(R),c=dn(ae),l=pn(ae.getBoundingClientRect(),c),u=pn(R.getBoundingClientRect(),c),p=l.height,m=z||e,g=m.scrollHeight,y=parseFloat(i.borderBottomWidth),b=parseFloat(r.marginTop)||10,x=parseFloat(r.marginBottom)||10,S=parseFloat(r.minHeight)||100,C=ln(i),w=a.documentElement.clientHeight-b-x,T=a.documentElement.clientWidth,E=w-l.bottom+p,D,k=te===`rtl`?l.right-u.width:l.left,j=0;if(t&&n){let e=pn(n.getBoundingClientRect(),c);D=pn(t.getBoundingClientRect(),c),k=u.left+(te===`rtl`?e.right-D.right:e.left-D.left);let r=e.top-l.top+e.height/2;j=D.top-u.top+D.height/2-r}let M=E+j+x+y,N=Math.min(w,M),ee=w-b-x,P=M-N,F=T-5;R.style.left=`${Ct(k,5,F-u.width)}px`,R.style.height=`${N}px`,R.style.maxHeight=`auto`,R.style.marginTop=`${b}px`,R.style.marginBottom=`${x}px`,e.style.height=`100%`;let ne=un(m),I=P>=ne-1;I&&(N=Math.min(w,u.height)-(P-ne));let re=l.top<20||l.bottom>w-20||Math.ceil(N)+1=ee?`0`:`${e}px`,R.style.height=`${N}px`,m.scrollTop=un(m)}else R.style.bottom=`0`,m.scrollTop=P;if(D){let t=u.top,n=u.height,r=D.top+D.height/2,i=Ct(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(L===w||N>=C)&&(B.current=!0),h(),v&&s.state.selectedIndex===null&&s.state.activeIndex===null&&_.current[0]!=null&&s.set(`activeIndex`,0),V.current=!0}finally{t()}},[s,I,R,ae,d,f,c,h,D,A,oe,j,M,z,_,v,te,k]),Q.useEffect(()=>{if(!D||!R||!I)return;let e=O(R);function t(e){u(!1,K(E,e))}return Ve(e,`resize`,t)},[u,D,R,I]);let G={...z?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":m||void 0,id:`${ne}-list`},onKeyDown(e){p.current=!0,N&&qe.has(e.key)&&e.stopPropagation()},onMouseMove(){p.current=!1},onScroll(e){z||W(e.currentTarget)},...D&&{style:z?{height:`100%`}:Jt}},J=b(`div`,e,{ref:[t,c],state:se,stateAttributesMapping:sn,props:[ie,G,Ue(L),{className:!z&&D?en.className:void 0},o]});return(0,Z.jsxs)(Q.Fragment,{children:[!F&&en.getElement(P),(0,Z.jsx)(ze,{context:ee,modal:!1,disabled:!re,returnFocus:a,restoreFocus:!0,children:J})]})});function ln(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function un(e){return wt(e.scrollHeight,e.clientHeight)}function dn(e){return i.getScale(e)}function fn(e,t,n){return e/n[t]}function pn(e,t){return L({x:fn(e.x,`x`,t),y:fn(e.y,`y`,t),width:fn(e.width,`x`,t),height:fn(e.height,`y`,t)})}var mn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function hn(e){let{style:t}=e,n={};for(let[e,r]of mn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of mn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var gn=Q.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=lt(),{alignItemWithTriggerActive:c}=Kt(),l=U(o,$.hasScrollArrows),u=U(o,$.openMethod),d=U(o,$.multiple),f={id:`${U(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Jt},className:l&&u!==`touch`?en.className:void 0};return b(`div`,e,{ref:[t,T(e=>{o.set(`listElement`,e)})],props:[f,a]})}),_n=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function vn(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Bt(),f=Q.useRef(-1),[p,m]=Q.useState(a??(i===_n.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=Q.useRef(null),g=Q.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return C(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),C(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),Q.useMemo(()=>({ref:g,index:p}),[p,g])}var yn=Q.createContext(void 0);function bn(){let e=Q.useContext(yn);if(!e)throw Error(k(57));return e}var xn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,style:l,...u}=e,d=Q.useRef(null),f=vn({label:a,textRef:d,indexGuessBehavior:_n.GuessFromOrder}),{store:p,getItemProps:m,setOpen:h,setValue:g,selectionRef:_,typingRef:v,valuesRef:y,multiple:x,selectedItemTextRef:S}=lt(),w=U(p,$.isActive,f.index),T=U(p,$.isSelected,f.index,i),E=U(p,$.isSelectedByFocus,f.index),D=U(p,$.isItemEqualToValue),O=f.index,k=O!==-1,A=Q.useRef(null),j=we(O);C(()=>{if(!k)return;let e=y.current;return e[O]=i,()=>{delete e[O]}},[k,O,i,y]),C(()=>{if(!k)return;let e=p.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&ft(i,t,D)&&(p.set(`selectedIndex`,O),d.current&&(S.current=d.current))},[k,O,x,D,p,i,S]);let M={disabled:o,selected:T,highlighted:w},N=m({active:w,selected:T});N.id=void 0;let ee=Q.useRef(null),te=Q.useRef(`mouse`),P=Q.useRef(!1),{getButtonProps:F,buttonRef:ne}=xe({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function I(e){let t=p.state.value;if(x){let n=Array.isArray(t)?t:[];g(T?ht(n,i,D):[...n,i],K(c,e))}else g(i,K(c,e)),h(!1,K(c,e))}let re={role:`option`,"aria-selected":T,tabIndex:w?0:-1,onTouchStart(){_.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){ee.current=e.key,p.set(`activeIndex`,O),e.key===` `&&v.current&&e.preventDefault()},onClick(e){P.current=!1,!(e.type===`keydown`&&ee.current===null)&&(o||e.type===`keydown`&&ee.current===` `&&v.current||te.current!==`touch`&&!w||(ee.current=null,I(e.nativeEvent)))},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,P.current=!0},onMouseUp(){if(o)return;if(P.current){P.current=!1;return}let e=!_.current.allowSelectedMouseUp&&T,t=!_.current.allowUnselectedMouseUp&&!T;e||t||te.current!==`touch`&&!w||A.current?.click()}},ie=b(`div`,e,{ref:[ne,t,f.ref,A],state:M,props:[N,re,u,F]}),L=Q.useMemo(()=>({selected:T,indexRef:j,textRef:d,selectedByFocus:E,hasRegistered:k}),[T,j,d,E,k]);return(0,Z.jsx)(yn.Provider,{value:L,children:ie})})),Sn=Q.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=bn();return n||r?(0,Z.jsx)(Cn,{...e,ref:t}):null}),Cn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=bn(),c=Q.useRef(null),{transitionStatus:l,setMounted:u}=ye(s),d=b(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:m});return w({open:s,ref:c,onComplete(){s||u(!1)}}),d})),wn=Q.memo(Q.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=bn(),{selectedItemTextRef:o}=lt(),{className:s,render:c,style:l,...u}=e;return b(`div`,e,{ref:[Q.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:u})})),Tn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=lt(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=Kt(),_=U(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=U(l,$.openMethod),y=_&&v!==`touch`,x=M(),S=c?g:h,{transitionStatus:T,setMounted:E}=ye(y);C(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),w({open:y,ref:S,onComplete(){y||E(!1)}});let D=b(`div`,e,{ref:[t,S],state:{direction:a,visible:y,side:m,transitionStatus:T},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||x.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=wt(e.scrollHeight,e.clientHeight),r=Tt(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){x.clear();return}if(a.length>0){let t=S.current?.offsetHeight||0;e.scrollTop=En(a,c,r,e.clientHeight,t,n)}x.start(40,t)}x.start(40,t)},onMouseLeave(){x.clear()}},s]});return y||o?D:null});function En(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Tt(l.offsetTop+l.offsetHeight-r+i,a):a}var Dn=Q.forwardRef(function(e,t){return(0,Z.jsx)(Tn,{...e,ref:t,direction:`down`})}),On=Q.forwardRef(function(e,t){return(0,Z.jsx)(Tn,{...e,ref:t,direction:`up`})}),kn=fe(),An=Et;function jn(e){let t=(0,kn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=N(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Ft,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Mn(e){let n=(0,kn.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({className:i,size:s,id:a,children:r,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=s===void 0?`default`:s,l;n[6]===i?l=n[7]:(l=N(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,i),n[6]=i,n[7]=l);let u;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(It,{render:(0,Z.jsx)(t,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),n[8]=u):u=n[8];let d;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==c||n[13]!==l?(d=(0,Z.jsxs)(Nt,{className:l,"data-size":c,"data-slot":`select-trigger`,id:a,...o,children:[r,u]}),n[9]=r,n[10]=a,n[11]=o,n[12]=c,n[13]=l,n[14]=d):d=n[14],d}function Nn(e){let t=(0,kn.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=a===void 0?`bottom`:a,d=o===void 0?4:o,f=s===void 0?`center`:s,p=c===void 0?0:c,m=l===void 0?!0:l,h;t[9]===r?h=t[10]:(h=N(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=h);let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(Fn,{}),t[11]=g):g=t[11];let _;t[12]===n?_=t[13]:(_=(0,Z.jsx)(gn,{children:n}),t[12]=n,t[13]=_);let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,Z.jsx)(In,{}),t[14]=v):v=t[14];let y;t[15]!==i||t[16]!==h||t[17]!==_?(y=(0,Z.jsxs)(cn,{className:h,"data-slot":`select-content`,...i,children:[g,_,v]}),t[15]=i,t[16]=h,t[17]=_,t[18]=y):y=t[18];let b;return t[19]!==f||t[20]!==m||t[21]!==p||t[22]!==u||t[23]!==d||t[24]!==y?(b=(0,Z.jsx)(Rt,{children:(0,Z.jsx)(Qt,{align:f,alignItemWithTrigger:m,alignOffset:p,className:`isolate z-50`,side:u,sideOffset:d,children:y})}),t[19]=f,t[20]=m,t[21]=p,t[22]=u,t[23]=d,t[24]=y,t[25]=b):b=t[25],b}function Pn(t){let n=(0,kn.c)(13),r,i,a;n[0]===t?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=N(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,i),n[4]=i,n[5]=o);let s;n[6]===r?s=n[7]:(s=(0,Z.jsx)(wn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:r}),n[6]=r,n[7]=s);let c;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(Sn,{render:(0,Z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Z.jsx)(e,{className:`pointer-events-none`})}),n[8]=c):c=n[8];let l;return n[9]!==a||n[10]!==o||n[11]!==s?(l=(0,Z.jsxs)(xn,{className:o,"data-slot":`select-item`,...a,children:[s,c]}),n[9]=a,n[10]=o,n[11]=s,n[12]=l):l=n[12],l}function Fn(e){let t=(0,kn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=N(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Je,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(On,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function In(e){let n=(0,kn.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=N(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,r),n[3]=r,n[4]=a);let o;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(t,{}),n[5]=o):o=n[5];let s;return n[6]!==i||n[7]!==a?(s=(0,Z.jsx)(Dn,{className:a,"data-slot":`select-scroll-down-button`,...i,children:o}),n[6]=i,n[7]=a,n[8]=s):s=n[8],s}export{jn as a,Mn as i,Nn as n,vn as o,Pn as r,Vt as s,An as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/separator.js b/spinifex/services/spinifexui/frontend/dist/assets/separator.js deleted file mode 100644 index 60c9bc4fc..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/separator.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,l as s,n as c}from"./dist.js";import{I as l}from"./SignatureV4.js";import{c as u,o as d,y as f}from"./button.js";import{b as p}from"./createBaseUIEventDetails.js";var m=e(n()),h=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}({}),g={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},_={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},v={disabled:!1,..._},y={valid(e){return e===null?null:e?{[h.valid]:``}:{[h.invalid]:``}}},b=m.createContext({invalid:void 0,name:void 0,validityData:{state:g,errors:[],error:``,value:``,initialValue:null},setValidityData:i,disabled:void 0,touched:_.touched,setTouched:i,dirty:_.dirty,setDirty:i,filled:_.filled,setFilled:i,focused:_.focused,setFocused:i,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:v,markedDirtyRef:{current:!1},registerFieldControl:i,validation:{getValidationProps:(e=o)=>e,getInputValidationProps:(e=o)=>e,inputRef:{current:null},commit:async()=>{}}});function x(e=!0){let t=m.useContext(b);if(t.setValidityData===i&&!e)throw Error(s(28));return t}var S=m.createContext({controlId:void 0,registerControlId:i,labelId:void 0,setLabelId:i,messageIds:[],setMessageIds:i,getDescriptionProps:e=>e});function C(){return m.useContext(S)}function w(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:o,registerControlId:s}=C(),c=p(t),l=n?o:void 0,h=a(()=>Symbol(`labelable-control`)),g=m.useRef(!1),_=m.useRef(t!=null),v=u(()=>{!g.current||s===i||(g.current=!1,s(h.current,void 0))});return d(()=>{if(s===i)return;let e;if(n){let n=r?.current;e=f(n)&&n.closest(`label`)!=null?t??null:l??c}else if(t!=null)_.current=!0,e=t;else if(_.current)e=c;else{v();return}if(e===void 0){v();return}g.current=!0,s(h.current,e)},[t,r,l,s,n,c,h,v]),m.useEffect(()=>v,[v]),o??c}function T({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=m.useRef(e!==void 0),[a,o]=m.useState(t);return[i?e:a,m.useCallback(e=>{i||o(e)},[])]}function E(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=x(),s=m.useRef(null);s.current||=Symbol(),d(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var D=m.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return c(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})}),O=r(),k=t();function A(e){let t=(0,O.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=l(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,k.jsx)(D,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}export{C as a,w as i,E as n,x as o,T as r,y as s,A as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js index f9054359a..8863a436a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{v as i}from"./index.js";import{t as a}from"./page-heading.js";import{i as o,n as s}from"./admin.js";import{a as c,o as l,r as u,t as d}from"./card.js";var f=t(),p=e();function m(){let e=(0,f.c)(46),{isAdmin:t}=i(),m;e[0]===t?m=e[1]:(m={...s,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=m);let{data:y}=n(m);if(!t)throw r({to:`/`});let x=y?.encoding,S;e[2]===y?.db_nodes?S=e[3]:(S=y?.db_nodes??[],e[2]=y?.db_nodes,e[3]=S);let C=S,w;e[4]===y?.shard_nodes?w=e[5]:(w=y?.shard_nodes??[],e[4]=y?.shard_nodes,e[5]=w);let T=w,E;e[6]===C?E=e[7]:(E=C.length>0&&C.every(g),e[6]=C,e[7]=E);let D=E,O;e[8]===C?O=e[9]:(O=C.some(h),e[8]=C,e[9]=O);let k=O,A;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`S3 Service Metrics`}),e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),e[11]=j):j=e[11];let M;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),e[12]=M):M=e[12];let N;e[13]===x?N=e[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(o,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),e[13]=x,e[14]=N);let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`DB Nodes`}),e[15]=P):P=e[15];let F;e[16]===C.length?F=e[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),e[16]=C.length,e[17]=F);let I;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Shard Nodes`}),e[18]=I):I=e[18];let L;e[19]===T.length?L=e[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),e[19]=T.length,e[20]=L);let R;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),e[21]=R):R=e[21];let z;e[22]!==D||e[23]!==k||e[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),e[22]=D,e[23]=k,e[24]=C.length,e[25]=z):z=e[25];let B;e[26]!==F||e[27]!==L||e[28]!==z||e[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),e[26]=F,e[27]=L,e[28]=z,e[29]=N,e[30]=B):B=e[30];let V;e[31]===x?V=e[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),e[31]=x,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[j,(0,p.jsxs)(u,{children:[B,V]})]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`DB Consensus Nodes (Raft)`})}),e[36]=U):U=e[36];let W;e[37]===C?W=e[38]:(W=(0,p.jsxs)(d,{children:[U,(0,p.jsx)(u,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),e[37]=C,e[38]=W);let G;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Shard Nodes`})}),e[39]=G):G=e[39];let K;e[40]===T?K=e[41]:(K=(0,p.jsxs)(d,{children:[G,(0,p.jsx)(u,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),e[40]=T,e[41]=K);let q;return e[42]!==H||e[43]!==W||e[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),e[42]=H,e[43]=W,e[44]=K,e[45]=q):q=e[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(o,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(o,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file +import{t as e}from"./useQuery.js";import{Bn as t,eo as n,io as r,so as i}from"./index.js";import{t as a}from"./page-heading.js";import{i as o,n as s}from"./admin.js";import{a as c,o as l,r as u,t as d}from"./card.js";var f=n(),p=i();function m(){let n=(0,f.c)(46),{isAdmin:i}=t(),m;n[0]===i?m=n[1]:(m={...s,enabled:i,refetchInterval:5e3},n[0]=i,n[1]=m);let{data:y}=e(m);if(!i)throw r({to:`/`});let x=y?.encoding,S;n[2]===y?.db_nodes?S=n[3]:(S=y?.db_nodes??[],n[2]=y?.db_nodes,n[3]=S);let C=S,w;n[4]===y?.shard_nodes?w=n[5]:(w=y?.shard_nodes??[],n[4]=y?.shard_nodes,n[5]=w);let T=w,E;n[6]===C?E=n[7]:(E=C.length>0&&C.every(g),n[6]=C,n[7]=E);let D=E,O;n[8]===C?O=n[9]:(O=C.some(h),n[8]=C,n[9]=O);let k=O,A;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`S3 Service Metrics`}),n[10]=A):A=n[10];let j;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),n[11]=j):j=n[11];let M;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),n[12]=M):M=n[12];let N;n[13]===x?N=n[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(o,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),n[13]=x,n[14]=N);let P;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`DB Nodes`}),n[15]=P):P=n[15];let F;n[16]===C.length?F=n[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),n[16]=C.length,n[17]=F);let I;n[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Shard Nodes`}),n[18]=I):I=n[18];let L;n[19]===T.length?L=n[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),n[19]=T.length,n[20]=L);let R;n[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),n[21]=R):R=n[21];let z;n[22]!==D||n[23]!==k||n[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),n[22]=D,n[23]=k,n[24]=C.length,n[25]=z):z=n[25];let B;n[26]!==F||n[27]!==L||n[28]!==z||n[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),n[26]=F,n[27]=L,n[28]=z,n[29]=N,n[30]=B):B=n[30];let V;n[31]===x?V=n[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),n[31]=x,n[32]=V);let H;n[33]!==B||n[34]!==V?(H=(0,p.jsxs)(d,{children:[j,(0,p.jsxs)(u,{children:[B,V]})]}),n[33]=B,n[34]=V,n[35]=H):H=n[35];let U;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`DB Consensus Nodes (Raft)`})}),n[36]=U):U=n[36];let W;n[37]===C?W=n[38]:(W=(0,p.jsxs)(d,{children:[U,(0,p.jsx)(u,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),n[37]=C,n[38]=W);let G;n[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(c,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Shard Nodes`})}),n[39]=G):G=n[39];let K;n[40]===T?K=n[41]:(K=(0,p.jsxs)(d,{children:[G,(0,p.jsx)(u,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),n[40]=T,n[41]=K);let q;return n[42]!==H||n[43]!==W||n[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),n[42]=H,n[43]=W,n[44]=K,n[45]=q):q=n[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(o,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(o,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js index 46968c063..0fb107147 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{I as n}from"./SignatureV4.js";var r=t(),i=e(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(e){let t=(0,r.c)(5),{state:a}=e,o;t[0]===a?o=t[1]:(o=n(`rounded-full px-2 py-1 text-xs`,c(a)),t[0]=a,t[1]=o);let s;return t[2]!==a||t[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),t[2]=a,t[3]=o,t[4]=s):s=t[4],s}export{l as t}; \ No newline at end of file +import{Sa as e,eo as t,so as n}from"./index.js";var r=t(),i=n(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(t){let n=(0,r.c)(5),{state:a}=t,o;n[0]===a?o=n[1]:(o=e(`rounded-full px-2 py-1 text-xs`,c(a)),n[0]=a,n[1]=o);let s;return n[2]!==a||n[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),n[2]=a,n[3]=o,n[4]=s):s=n[4],s}export{l as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js index 4c0cd27de..bd1e8ef55 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{i,l as a,n as o,r as s,s as c}from"./dist.js";import{I as l}from"./SignatureV4.js";import{a as u,i as d,n as f,o as p,r as m,s as h,t as g}from"./select.js";import{a as _,c as v,i as y,o as b,r as x,t as S}from"./button.js";import{r as C}from"./separator.js";import{_ as w,b as T,g as E,t as D,u as O,v as k,y as A}from"./createBaseUIEventDetails.js";import{$ as j,_ as M,at as N,b as P,c as F,ct as I,d as L,et as R,f as z,g as B,h as V,it as H,l as ee,nt as te,o as ne,rt as re,s as ie,st as ae,tt as oe,u as U,v as se,x as W,y as ce}from"./useOpenInteractionType.js";import{a as G,n as le,o as ue,r as de}from"./addEventListener.js";import{C as fe,L as K}from"./index.js";import{a as pe,r as me,t as he}from"./field.js";var q=r(),J=e(n(),1),Y=t();function ge(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function _e(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function ve(e){let t=(0,q.c)(56),{specs:n,attributes:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]!==r||t[1]!==n?(c=ge(n,r),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l=c,[p,m]=(0,J.useState)(l),h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(e,t)=>{m(n=>({...n,[e]:t}))},t[3]=h):h=t[3];let _=h,v;if(t[4]!==n||t[5]!==p){v={};for(let e of n)v[e.key]=_e(e,p[e.key]??``);t[4]=n,t[5]=p,t[6]=v}else v=t[6];let y=Object.values(v).some(Boolean),b;if(t[7]!==l||t[8]!==n||t[9]!==p){let e;t[11]!==l||t[12]!==p?(e=e=>(p[e.key]??``)!==(l[e.key]??``),t[11]=l,t[12]=p,t[13]=e):e=t[13];let r;t[14]===p?r=t[15]:(r=e=>({key:e.key,value:p[e.key]??``}),t[14]=p,t[15]=r),b=n.filter(e).map(r),t[7]=l,t[8]=n,t[9]=p,t[10]=b}else b=t[10];let x=b,C;t[16]===l?C=t[17]:(C=()=>{m(l)},t[16]=l,t[17]=C);let w=C,T;t[18]!==x||t[19]!==y||t[20]!==i?(T=e=>{e.preventDefault(),!(y||x.length===0)&&i(x)},t[18]=x,t[19]=y,t[20]=i,t[21]=T):T=t[21];let E;t[22]===o?E=t[23]:(E=o&&(0,Y.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to save attributes`}),t[22]=o,t[23]=E);let D;t[24]!==x.length||t[25]!==s?(D=s&&x.length===0&&(0,Y.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),t[24]=x.length,t[25]=s,t[26]=D):D=t[26];let O;if(t[27]!==v||t[28]!==n||t[29]!==p){let e;t[31]!==v||t[32]!==p?(e=e=>{let t=`attr-${e.key}`,n=p[e.key]??``,r=v[e.key];return(0,Y.jsxs)(he,{children:[(0,Y.jsx)(pe,{children:(0,Y.jsx)(`label`,{htmlFor:t,children:e.label})}),e.type===`bool`&&(0,Y.jsx)(`input`,{checked:n===`true`,id:t,onChange:t=>_(e.key,t.target.checked?`true`:`false`),type:`checkbox`}),e.type===`int`&&(0,Y.jsx)(K,{"aria-invalid":!!r,id:t,inputMode:`numeric`,onChange:t=>_(e.key,t.target.value),value:n}),e.type===`text`&&(0,Y.jsx)(K,{id:t,onChange:t=>_(e.key,t.target.value),placeholder:e.placeholder,value:n}),e.type===`select`&&(0,Y.jsxs)(g,{onValueChange:t=>_(e.key,t??``),value:n,children:[(0,Y.jsx)(d,{className:`w-full`,id:t,children:(0,Y.jsx)(u,{})}),(0,Y.jsx)(f,{children:e.options.map(ye)})]}),e.description&&(0,Y.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description}),(0,Y.jsx)(me,{errors:[r?{message:r}:void 0]})]},e.key)},t[31]=v,t[32]=p,t[33]=e):e=t[33],O=n.map(e),t[27]=v,t[28]=n,t[29]=p,t[30]=O}else O=t[30];let k;t[34]===O?k=t[35]:(k=(0,Y.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:O}),t[34]=O,t[35]=k);let A=x.length===0?`No changes`:`${x.length} change${x.length===1?``:`s`} pending`,j;t[36]===A?j=t[37]:(j=(0,Y.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:A}),t[36]=A,t[37]=j);let M=a||x.length===0,N;t[38]!==w||t[39]!==M?(N=(0,Y.jsx)(S,{disabled:M,onClick:w,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[38]=w,t[39]=M,t[40]=N):N=t[40];let P=a||y||x.length===0,F=a?`Saving…`:`Save changes`,I;t[41]!==P||t[42]!==F?(I=(0,Y.jsx)(S,{disabled:P,size:`sm`,type:`submit`,children:F}),t[41]=P,t[42]=F,t[43]=I):I=t[43];let L;t[44]!==j||t[45]!==N||t[46]!==I?(L=(0,Y.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[j,N,I]}),t[44]=j,t[45]=N,t[46]=I,t[47]=L):L=t[47];let R;t[48]!==L||t[49]!==k?(R=(0,Y.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[k,L]}),t[48]=L,t[49]=k,t[50]=R):R=t[50];let z;return t[51]!==R||t[52]!==T||t[53]!==E||t[54]!==D?(z=(0,Y.jsxs)(`form`,{onSubmit:T,children:[E,D,R]}),t[51]=R,t[52]=T,t[53]=E,t[54]=D,t[55]=z):z=t[55],z}function ye(e){return(0,Y.jsx)(m,{value:e,children:e},e)}var be=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],xe=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}],X=J.createContext(void 0);function Z(){let e=J.useContext(X);if(e===void 0)throw Error(a(64));return e}var Se=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Q={tabActivationDirection:e=>({[Se.activationDirection]:e})},Ce=J.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:s,value:c,style:l,...u}=e,d=Object.hasOwn(e,`defaultValue`),f=J.useRef([]),[p,m]=J.useState(()=>new Map),[g,_]=C({controlled:c,default:r,name:`Tabs`,state:`value`}),y=c!==void 0,[x,S]=J.useState(()=>new Map),w=J.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of x.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[x]),[T,E]=J.useState(()=>({previousValue:g,tabActivationDirection:`none`})),{previousValue:D,tabActivationDirection:O}=T,k=O,A=!1;D!==g&&(k=$(D,g,a,x),A=D!=null&&g!=null&&w(g)==null);let j=A?D:g,M=D!==j||O!==k;b(()=>{M&&E({previousValue:j,tabActivationDirection:k})},[j,M,k]);let N=v((e,t)=>{t.activationDirection=$(g,e,a,x),i?.(e,t),!t.isCanceled&&_(e)}),P=v((e,t)=>{m(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),F=v((e,t)=>{m(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),I=J.useCallback(e=>p.get(e),[p]),L=J.useCallback(e=>{for(let t of x.values())if(e===t?.value)return t?.id},[x]),R=J.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:L,getTabPanelIdByValue:I,onValueChange:N,orientation:a,registerMountedTabPanel:P,setTabMap:S,unregisterMountedTabPanel:F,tabActivationDirection:k,value:g}),[w,L,I,N,a,P,S,F,k,g]),z=J.useMemo(()=>{for(let e of x.values())if(e!=null&&e.value===g)return e},[x,g]),B=J.useMemo(()=>{for(let e of x.values())if(e!=null&&!e.disabled)return e.value},[x]);b(()=>{if(y||x.size===0)return;let e=z?.disabled;if(d&&e&&g===r||!e&&!(z==null&&g!==null))return;let t=B??null;g!==t&&(_(t),E(e=>e.tabActivationDirection===`none`?e:{...e,tabActivationDirection:`none`}))},[r,B,d,y,z,_,x,g]);let V=o(`div`,e,{state:{orientation:a,tabActivationDirection:k},ref:t,props:u,stateAttributesMapping:Q});return(0,Y.jsx)(X.Provider,{value:R,children:(0,Y.jsx)(h,{elementsRef:f,children:V})})});function $(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var we=`data-composite-item-active`;function Te(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=_(),{ref:i,index:a}=p(e),o=n===a,s=J.useRef(null),l=c(i,s);return{compositeProps:J.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}}),[o,r,a,t]),compositeRef:l,index:a}}var Ee=J.createContext(void 0);function De(){let e=J.useContext(Ee);if(e===void 0)throw Error(a(65));return e}var Oe=J.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:s,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:f,orientation:p}=Z(),{activateOnFocus:m,highlightedTabIndex:h,onTabActivation:g,registerTabResizeObserverElement:_,setHighlightedTabIndex:v,tabsListElement:y}=De(),S=T(s),{compositeProps:C,compositeRef:k,index:j}=Te({metadata:J.useMemo(()=>({disabled:r,id:S,value:a}),[r,S,a])}),M=a===d,N=J.useRef(!1),P=J.useRef(null);J.useEffect(()=>{let e=P.current;if(e)return _(e)},[_]),b(()=>{if(N.current){N.current=!1;return}if(!(M&&j>-1&&h!==j))return;let e=y;if(e!=null){let t=E(A(e));if(t&&w(e,t))return}r||v(j)},[M,j,h,v,r,y]);let{getButtonProps:F,buttonRef:I}=x({disabled:r,native:c,focusableWhenDisabled:!0}),L=f(a),R=J.useRef(!1),z=J.useRef(!1);function B(e){M||r||g(a,D(O,e.nativeEvent,void 0,{activationDirection:`none`}))}function V(e){M||(j>-1&&!r&&v(j),!r&&m&&(!R.current||R.current&&z.current)&&g(a,D(O,e.nativeEvent,void 0,{activationDirection:`none`})))}function H(e){if(M||r)return;R.current=!0;function t(){R.current=!1,z.current=!1}(!e.button||e.button===0)&&(z.current=!0,A(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return o(`button`,e,{state:{disabled:r,active:M,orientation:p},ref:[t,I,k,P],props:[C,{role:`tab`,"aria-controls":L,"aria-selected":M,id:S,onClick:B,onFocus:V,onPointerDown:H,[we]:M?``:void 0,onKeyDownCapture(){N.current=!0}},u,F]})}),ke=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=G.startingStyle]=`startingStyle`,e[e.endingStyle=G.endingStyle]=`endingStyle`,e}({}),Ae={...Q,...ue},je=J.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:s,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m,unregisterMountedTabPanel:h}=Z(),g=T(),{ref:_,index:v}=p({metadata:J.useMemo(()=>({id:g,value:r}),[g,r])}),y=r===l,{mounted:x,transitionStatus:S,setMounted:C}=le(y),w=!x,E=u(r),D={hidden:w,orientation:d,tabActivationDirection:f,transitionStatus:S},O=J.useRef(null),k=o(`div`,e,{state:D,ref:[t,_,O],props:[{"aria-labelledby":E,hidden:w,id:g,role:`tabpanel`,tabIndex:y?0:-1,inert:ne(!y),[ke.index]:v},c],stateAttributesMapping:Ae});return de({open:y,ref:O,onComplete(){y||C(!1)}}),b(()=>{if(!(w&&!a)&&g!=null)return m(r,g),()=>{h(r,g)}},[w,a,r,g,m,h]),a||x?k:null});function Me(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Ne=[];function Pe(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:a=!1,orientation:o=`both`,direction:s,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p=!1,disabledIndices:m,modifierKeys:h=Ne}=e,[g,_]=J.useState(0),y=n>1,b=J.useRef(null),x=c(b,d),S=J.useRef([]),C=J.useRef(!1),w=l??g,T=v((e,t=!1)=>{if((u??_)(e),t){let t=S.current[e];W(b.current,t,s,o)}}),E=v(e=>{if(e.size===0||C.current)return;C.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&T(r),W(b.current,n,s,o)}),D=v((e,t,n)=>i?i?.(e,t,n,S):n),O=J.useMemo(()=>({"aria-orientation":o===`both`?void 0:o,ref:x,onFocus(e){let t=b.current,n=k(e.nativeEvent);!t||n==null||!P(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let c=f?ie:ee;if(!c.has(e.key)||Fe(e,h)||!b.current)return;let l=s===`rtl`,u=l?U:L,d={horizontal:u,vertical:F,both:u}[o],g=l?L:U,_={horizontal:g,vertical:z,both:g}[o],v=k(e.nativeEvent);if(v!=null&&P(v)&&!Me(v)){let t=v.selectionStart,n=v.selectionEnd,r=v.value??``;if(t==null||e.shiftKey||t!==n||e.key!==_&&t0)return}let x=w,C=N(S,m),E=H(S,m);if(y){let i=t||Array.from({length:S.current.length},()=>({width:1,height:1})),s=j(i,n,a),c=s.findIndex(e=>e!=null&&!I(S.current,e,m)),u=s.reduce((e,t,n)=>t!=null&&!I(S.current,t,m)?n:e,-1);x=s[re(s.map(e=>e==null?null:S.current[e]),{event:e,orientation:o,loopFocus:r,onLoop:D,cols:n,disabledIndices:te([...m||S.current.map((e,t)=>I(S.current,t)?t:void 0),void 0],s),minIndex:c,maxIndex:u,prevIndex:oe(w>E?C:w,i,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let O={horizontal:[u],vertical:[F],both:[u,F]}[o],A={horizontal:[g],vertical:[z],both:[g,z]}[o],M=y?c:{horizontal:f?B:V,vertical:f?ce:se,both:c}[o];f&&(e.key===`Home`?x=C:e.key===`End`&&(x=E)),x===w&&(O.includes(e.key)||A.includes(e.key))&&(r&&x===E&&O.includes(e.key)?(x=C,i&&(x=i(e,w,x,S))):r&&x===C&&A.includes(e.key)?(x=E,i&&(x=i(e,w,x,S))):x=R(S.current,{startingIndex:x,decrement:A.includes(e.key),disabledIndices:m})),x!==w&&!ae(S.current,x)&&(p&&e.stopPropagation(),M.has(e.key)&&e.preventDefault(),T(x,!0),queueMicrotask(()=>{S.current[x]?.focus()}))}}),[n,a,s,m,S,f,w,y,t,r,i,D,x,h,T,o,p]);return J.useMemo(()=>({props:O,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:S,disabledIndices:m,onMapChange:E,relayKeyboardEvent:O.onKeyDown}),[O,w,T,S,m,E])}function Fe(e,t){for(let n of M.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ie(e){let{render:t,className:n,style:r,refs:a=s,props:c=s,state:l=i,stateAttributesMapping:u,highlightedIndex:d,onHighlightedIndexChange:f,orientation:p,dense:m,itemSizes:g,loopFocus:_,onLoop:v,cols:b,enableHomeAndEndKeys:x,onMapChange:S,stopEventPropagation:C=!0,rootRef:w,disabledIndices:T,modifierKeys:E,highlightItemOnHover:D=!1,tag:O=`div`,...k}=e,{props:A,highlightedIndex:j,onHighlightedIndexChange:M,elementsRef:N,onMapChange:P,relayKeyboardEvent:F}=Pe({itemSizes:g,cols:b,loopFocus:_,onLoop:v,dense:m,orientation:p,highlightedIndex:d,onHighlightedIndexChange:f,rootRef:w,stopEventPropagation:C,enableHomeAndEndKeys:x,direction:fe(),disabledIndices:T,modifierKeys:E}),I=o(O,e,{state:l,ref:a,props:[A,...c,k],stateAttributesMapping:u}),L=J.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:M,highlightItemOnHover:D,relayKeyboardEvent:F}),[j,M,D,F]);return(0,Y.jsx)(y.Provider,{value:L,children:(0,Y.jsx)(h,{elementsRef:N,onMapChange:e=>{S?.(e),P(e)},children:I})})}var Le=J.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:f,tabActivationDirection:p}=Z(),[m,h]=J.useState(0),[g,_]=J.useState(null),y=J.useRef(new Set),b=J.useRef(new Set),x=J.useRef(null),S=v(()=>{y.current.forEach(e=>{e()})});J.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{y.current.size&&S()});return x.current=e,g&&e.observe(g),b.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),x.current=null}},[g,S]);let C=v(e=>(y.current.add(e),()=>{y.current.delete(e)})),w=v(e=>(b.current.add(e),x.current?.observe(e),()=>{b.current.delete(e),x.current?.unobserve(e)})),T=v((e,t)=>{e!==d&&l(e,t)}),E={orientation:u,tabActivationDirection:p},D={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},O=J.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:m,registerIndicatorUpdateListener:C,registerTabResizeObserverElement:w,onTabActivation:T,setHighlightedTabIndex:h,tabsListElement:g}),[n,m,C,w,T,h,g]);return(0,Y.jsx)(Ee.Provider,{value:O,children:(0,Y.jsx)(Ie,{render:a,className:r,style:o,state:E,refs:[t,_],props:[D,c],stateAttributesMapping:Q,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:h,onMapChange:f,disabledIndices:s})})});function Re(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(Ce,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ze(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(Le,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Be(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(Oe,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ve(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(je,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ve as a,Be as i,ze as n,be as o,Ve as r,xe as s,Re as t}; \ No newline at end of file +import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./select.js";import{Aa as s,Ai as c,Bi as l,Do as u,Fi as d,Fr as f,Gi as p,Gr as m,Hi as h,Hr as g,Ir as _,Ja as v,Ji as y,Ka as b,Ki as x,Kr as S,Lr as C,Ma as w,Mi as T,Na as E,Nr as D,Pi as O,Pr as k,Qa as A,Rr as j,Sa as M,Ti as N,Ui as P,Ur as F,Vi as I,Vr as L,Wi as R,Wr as z,Xa as B,Yi as V,aa as H,bi as U,br as W,co as G,eo as K,ga as q,ja as J,ji as Y,jr as ee,ka as te,oa as ne,pa as re,qa as X,qr as ie,sa as ae,so as oe,ya as se,yi as ce}from"./index.js";import{a as le,r as ue,t as de}from"./field.js";var Z=K(),Q=u(G(),1),$=oe();function fe(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function pe(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function me(r){let i=(0,Z.c)(56),{specs:a,attributes:s,onSubmit:c,isPending:l,error:u,isSuccess:d}=r,f;i[0]!==s||i[1]!==a?(f=fe(a,s),i[0]=s,i[1]=a,i[2]=f):f=i[2];let p=f,[m,h]=(0,Q.useState)(p),g;i[3]===Symbol.for(`react.memo_cache_sentinel`)?(g=(e,t)=>{h(n=>({...n,[e]:t}))},i[3]=g):g=i[3];let _=g,v;if(i[4]!==a||i[5]!==m){v={};for(let e of a)v[e.key]=pe(e,m[e.key]??``);i[4]=a,i[5]=m,i[6]=v}else v=i[6];let y=Object.values(v).some(Boolean),b;if(i[7]!==p||i[8]!==a||i[9]!==m){let e;i[11]!==p||i[12]!==m?(e=e=>(m[e.key]??``)!==(p[e.key]??``),i[11]=p,i[12]=m,i[13]=e):e=i[13];let t;i[14]===m?t=i[15]:(t=e=>({key:e.key,value:m[e.key]??``}),i[14]=m,i[15]=t),b=a.filter(e).map(t),i[7]=p,i[8]=a,i[9]=m,i[10]=b}else b=i[10];let x=b,S;i[16]===p?S=i[17]:(S=()=>{h(p)},i[16]=p,i[17]=S);let C=S,w;i[18]!==x||i[19]!==y||i[20]!==c?(w=e=>{e.preventDefault(),!(y||x.length===0)&&c(x)},i[18]=x,i[19]=y,i[20]=c,i[21]=w):w=i[21];let T;i[22]===u?T=i[23]:(T=u&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),i[22]=u,i[23]=T);let E;i[24]!==x.length||i[25]!==d?(E=d&&x.length===0&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),i[24]=x.length,i[25]=d,i[26]=E):E=i[26];let D;if(i[27]!==v||i[28]!==a||i[29]!==m){let r;i[31]!==v||i[32]!==m?(r=r=>{let i=`attr-${r.key}`,a=m[r.key]??``,s=v[r.key];return(0,$.jsxs)(de,{children:[(0,$.jsx)(le,{children:(0,$.jsx)(`label`,{htmlFor:i,children:r.label})}),r.type===`bool`&&(0,$.jsx)(`input`,{"aria-label":r.label,checked:a===`true`,id:i,onChange:e=>_(r.key,e.target.checked?`true`:`false`),type:`checkbox`}),r.type===`int`&&(0,$.jsx)(ce,{"aria-invalid":!!s,id:i,inputMode:`numeric`,onChange:e=>_(r.key,e.target.value),value:a}),r.type===`text`&&(0,$.jsx)(ce,{id:i,onChange:e=>_(r.key,e.target.value),placeholder:r.placeholder,value:a}),r.type===`select`&&(0,$.jsxs)(o,{onValueChange:e=>_(r.key,e??``),value:a,children:[(0,$.jsx)(t,{className:`w-full`,id:i,children:(0,$.jsx)(e,{})}),(0,$.jsx)(n,{children:r.options.map(he)})]}),r.description&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:r.description}),(0,$.jsx)(ue,{errors:[s?{message:s}:void 0]})]},r.key)},i[31]=v,i[32]=m,i[33]=r):r=i[33],D=a.map(r),i[27]=v,i[28]=a,i[29]=m,i[30]=D}else D=i[30];let O;i[34]===D?O=i[35]:(O=(0,$.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:D}),i[34]=D,i[35]=O);let k=x.length===0?`No changes`:`${x.length} change${x.length===1?``:`s`} pending`,A;i[36]===k?A=i[37]:(A=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:k}),i[36]=k,i[37]=A);let j=l||x.length===0,M;i[38]!==C||i[39]!==j?(M=(0,$.jsx)(se,{disabled:j,onClick:C,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),i[38]=C,i[39]=j,i[40]=M):M=i[40];let N=l||y||x.length===0,P=l?`Saving…`:`Save changes`,F;i[41]!==N||i[42]!==P?(F=(0,$.jsx)(se,{disabled:N,size:`sm`,type:`submit`,children:P}),i[41]=N,i[42]=P,i[43]=F):F=i[43];let I;i[44]!==A||i[45]!==M||i[46]!==F?(I=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[A,M,F]}),i[44]=A,i[45]=M,i[46]=F,i[47]=I):I=i[47];let L;i[48]!==I||i[49]!==O?(L=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[O,I]}),i[48]=I,i[49]=O,i[50]=L):L=i[50];let R;return i[51]!==L||i[52]!==w||i[53]!==T||i[54]!==E?(R=(0,$.jsxs)(`form`,{onSubmit:w,children:[T,E,L]}),i[51]=L,i[52]=w,i[53]=T,i[54]=E,i[55]=R):R=i[55],R}function he(e){return(0,$.jsx)(i,{value:e,children:e},e)}var ge=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],_e=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}],ve=Q.createContext(void 0);function ye(){let e=Q.useContext(ve);if(e===void 0)throw Error(A(64));return e}var be=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),xe={tabActivationDirection:e=>({[be.activationDirection]:e})},Se=Q.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:o=`horizontal`,render:s,value:l,style:u,...d}=e,f=Object.hasOwn(e,`defaultValue`),p=Q.useRef([]),[m,h]=Q.useState(()=>new Map),[g,_]=c({controlled:l,default:r,name:`Tabs`,state:`value`}),v=l!==void 0,[y,x]=Q.useState(()=>new Map),S=Q.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of y.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[y]),[C,T]=Q.useState(()=>({previousValue:g,tabActivationDirection:`none`})),{previousValue:D,tabActivationDirection:O}=C,k=O,A=!1;D!==g&&(k=Ce(D,g,o,y),A=D!=null&&g!=null&&S(g)==null);let j=A?D:g,M=D!==j||O!==k;w(()=>{M&&T({previousValue:j,tabActivationDirection:k})},[j,M,k]);let N=E((e,t)=>{t.activationDirection=Ce(g,e,o,y),i?.(e,t),!t.isCanceled&&_(e)}),P=E((e,t)=>{h(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),F=E((e,t)=>{h(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),I=Q.useCallback(e=>m.get(e),[m]),L=Q.useCallback(e=>{for(let t of y.values())if(e===t?.value)return t?.id},[y]),R=Q.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:L,getTabPanelIdByValue:I,onValueChange:N,orientation:o,registerMountedTabPanel:P,setTabMap:x,unregisterMountedTabPanel:F,tabActivationDirection:k,value:g}),[S,L,I,N,o,P,x,F,k,g]),z=Q.useMemo(()=>{for(let e of y.values())if(e!=null&&e.value===g)return e},[y,g]),B=Q.useMemo(()=>{for(let e of y.values())if(e!=null&&!e.disabled)return e.value},[y]);w(()=>{if(v||y.size===0)return;let e=z?.disabled;if(f&&e&&g===r||!e&&!(z==null&&g!==null))return;let t=B??null;g!==t&&(_(t),T(e=>e.tabActivationDirection===`none`?e:{...e,tabActivationDirection:`none`}))},[r,B,f,v,z,_,y,g]);let V=b(`div`,e,{state:{orientation:o,tabActivationDirection:k},ref:t,props:d,stateAttributesMapping:xe});return(0,$.jsx)(ve.Provider,{value:R,children:(0,$.jsx)(a,{elementsRef:p,children:V})})});function Ce(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var we=`data-composite-item-active`;function Te(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:i}=J(),{ref:a,index:o}=r(e),s=n===o,c=Q.useRef(null),l=B(a,c);return{compositeProps:Q.useMemo(()=>({tabIndex:s?0:-1,onFocus(){i(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}}),[s,i,o,t]),compositeRef:l,index:o}}var Ee=Q.createContext(void 0);function De(){let e=Q.useContext(Ee);if(e===void 0)throw Error(A(65));return e}var Oe=Q.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,orientation:f}=ye(),{activateOnFocus:p,highlightedTabIndex:m,onTabActivation:h,registerTabResizeObserverElement:g,setHighlightedTabIndex:_,tabsListElement:v}=De(),y=q(o),{compositeProps:x,compositeRef:S,index:C}=Te({metadata:Q.useMemo(()=>({disabled:r,id:y,value:a}),[r,y,a])}),T=a===u,E=Q.useRef(!1),D=Q.useRef(null);Q.useEffect(()=>{let e=D.current;if(e)return g(e)},[g]),w(()=>{if(E.current){E.current=!1;return}if(!(T&&C>-1&&m!==C))return;let e=v;if(e!=null){let t=H(re(e));if(t&&ne(e,t))return}r||_(C)},[T,C,m,_,r,v]);let{getButtonProps:O,buttonRef:k}=te({disabled:r,native:s,focusableWhenDisabled:!0}),A=d(a),j=Q.useRef(!1),M=Q.useRef(!1);function P(e){T||r||h(a,U(N,e.nativeEvent,void 0,{activationDirection:`none`}))}function F(e){T||(C>-1&&!r&&_(C),!r&&p&&(!j.current||j.current&&M.current)&&h(a,U(N,e.nativeEvent,void 0,{activationDirection:`none`})))}function I(e){if(T||r)return;j.current=!0;function t(){j.current=!1,M.current=!1}(!e.button||e.button===0)&&(M.current=!0,re(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return b(`button`,e,{state:{disabled:r,active:T,orientation:f},ref:[t,k,S,D],props:[x,{role:`tab`,"aria-controls":A,"aria-selected":T,id:y,onClick:P,onFocus:F,onPointerDown:I,[we]:T?``:void 0,onKeyDownCapture(){E.current=!0}},l,O]})}),ke=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=O.startingStyle]=`startingStyle`,e[e.endingStyle=O.endingStyle]=`endingStyle`,e}({}),Ae={...xe,...d},je=Q.forwardRef(function(e,t){let{className:n,value:i,render:a,keepMounted:o=!1,style:s,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:f,registerMountedTabPanel:p,unregisterMountedTabPanel:m}=ye(),h=q(),{ref:g,index:_}=r({metadata:Q.useMemo(()=>({id:h,value:i}),[h,i])}),v=i===l,{mounted:y,transitionStatus:x,setMounted:S}=Y(v),C=!y,E=u(i),D={hidden:C,orientation:d,tabActivationDirection:f,transitionStatus:x},O=Q.useRef(null),k=b(`div`,e,{state:D,ref:[t,g,O],props:[{"aria-labelledby":E,hidden:C,id:h,role:`tabpanel`,tabIndex:v?0:-1,inert:ee(!v),[ke.index]:_},c],stateAttributesMapping:Ae});return T({open:v,ref:O,onComplete(){v||S(!1)}}),w(()=>{if(!(C&&!o)&&h!=null)return p(i,h),()=>{m(i,h)}},[C,o,i,h,p,m]),o||y?k:null});function Me(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Ne=[];function Pe(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:a=!1,orientation:o=`both`,direction:s,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:v=!1,stopEventPropagation:b=!1,disabledIndices:w,modifierKeys:T=Ne}=e,[O,A]=Q.useState(0),M=n>1,N=Q.useRef(null),F=B(N,d),H=Q.useRef([]),U=Q.useRef(!1),W=c??O,G=E((e,t=!1)=>{if((u??A)(e),t){let t=H.current[e];ie(N.current,t,s,o)}}),K=E(e=>{if(e.size===0||U.current)return;U.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&G(r),ie(N.current,n,s,o)}),q=E((e,t,n)=>i?i?.(e,t,n,H):n),J=Q.useMemo(()=>({"aria-orientation":o===`both`?void 0:o,ref:F,onFocus(e){let t=N.current,n=ae(e.nativeEvent);!t||n==null||!S(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let c=v?D:f;if(!c.has(e.key)||Fe(e,T)||!N.current)return;let u=s===`rtl`,d=u?_:C,E={horizontal:d,vertical:k,both:d}[o],O=u?C:_,A={horizontal:O,vertical:j,both:O}[o],F=ae(e.nativeEvent);if(F!=null&&S(F)&&!Me(F)){let t=F.selectionStart,n=F.selectionEnd,r=F.value??``;if(t==null||e.shiftKey||t!==n||e.key!==A&&t0)return}let B=W,U=x(H,w),K=p(H,w);if(M){let i=t||Array.from({length:H.current.length},()=>({width:1,height:1})),s=l(i,n,a),c=s.findIndex(e=>e!=null&&!V(H.current,e,w)),d=s.reduce((e,t,n)=>t!=null&&!V(H.current,t,w)?n:e,-1);B=s[R(s.map(e=>e==null?null:H.current[e]),{event:e,orientation:o,loopFocus:r,onLoop:q,cols:n,disabledIndices:P([...w||H.current.map((e,t)=>V(H.current,t)?t:void 0),void 0],s),minIndex:c,maxIndex:d,prevIndex:h(W>K?U:W,i,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:u})]}let J={horizontal:[d],vertical:[k],both:[d,k]}[o],Y={horizontal:[O],vertical:[j],both:[O,j]}[o],ee=M?c:{horizontal:v?g:L,vertical:v?m:z,both:c}[o];v&&(e.key===`Home`?B=U:e.key===`End`&&(B=K)),B===W&&(J.includes(e.key)||Y.includes(e.key))&&(r&&B===K&&J.includes(e.key)?(B=U,i&&(B=i(e,W,B,H))):r&&B===U&&Y.includes(e.key)?(B=K,i&&(B=i(e,W,B,H))):B=I(H.current,{startingIndex:B,decrement:Y.includes(e.key),disabledIndices:w})),B!==W&&!y(H.current,B)&&(b&&e.stopPropagation(),ee.has(e.key)&&e.preventDefault(),G(B,!0),queueMicrotask(()=>{H.current[B]?.focus()}))}}),[n,a,s,w,H,v,W,M,t,r,i,q,F,T,G,o,b]);return Q.useMemo(()=>({props:J,highlightedIndex:W,onHighlightedIndexChange:G,elementsRef:H,disabledIndices:w,onMapChange:K,relayKeyboardEvent:J.onKeyDown}),[J,W,G,H,w,K])}function Fe(e,t){for(let n of F.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ie(e){let{render:t,className:n,style:r,refs:i=X,props:o=X,state:c=v,stateAttributesMapping:l,highlightedIndex:u,onHighlightedIndexChange:d,orientation:f,dense:p,itemSizes:m,loopFocus:h,onLoop:g,cols:_,enableHomeAndEndKeys:y,onMapChange:x,stopEventPropagation:S=!0,rootRef:C,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:D=`div`,...O}=e,{props:k,highlightedIndex:A,onHighlightedIndexChange:j,elementsRef:M,onMapChange:N,relayKeyboardEvent:P}=Pe({itemSizes:m,cols:_,loopFocus:h,onLoop:g,dense:p,orientation:f,highlightedIndex:u,onHighlightedIndexChange:d,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:y,direction:W(),disabledIndices:w,modifierKeys:T}),F=b(D,e,{state:c,ref:i,props:[k,...o,O],stateAttributesMapping:l}),I=Q.useMemo(()=>({highlightedIndex:A,onHighlightedIndexChange:j,highlightItemOnHover:E,relayKeyboardEvent:P}),[A,j,E,P]);return(0,$.jsx)(s.Provider,{value:I,children:(0,$.jsx)(a,{elementsRef:M,onMapChange:e=>{x?.(e),N(e)},children:F})})}var Le=Q.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{onValueChange:c,orientation:l,value:u,setTabMap:d,tabActivationDirection:f}=ye(),[p,m]=Q.useState(0),[h,g]=Q.useState(null),_=Q.useRef(new Set),v=Q.useRef(new Set),y=Q.useRef(null),b=E(()=>{_.current.forEach(e=>{e()})});Q.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{_.current.size&&b()});return y.current=e,h&&e.observe(h),v.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),y.current=null}},[h,b]);let x=E(e=>(_.current.add(e),()=>{_.current.delete(e)})),S=E(e=>(v.current.add(e),y.current?.observe(e),()=>{v.current.delete(e),y.current?.unobserve(e)})),C=E((e,t)=>{e!==u&&c(e,t)}),w={orientation:l,tabActivationDirection:f},T={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},D=Q.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:p,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,onTabActivation:C,setHighlightedTabIndex:m,tabsListElement:h}),[n,p,x,S,C,m,h]);return(0,$.jsx)(Ee.Provider,{value:D,children:(0,$.jsx)(Ie,{render:a,className:r,style:o,state:w,refs:[t,g],props:[T,s],stateAttributesMapping:xe,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:l,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:X})})});function Re(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Se,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ze(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Le,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Be(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Oe,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ve(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(je,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{me as a,Be as i,ze as n,ge as o,Ve as r,_e as s,Re as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js index 2eca14e21..37f725fa3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{V as n}from"./SignatureV4.js";import{a as ee,i as te,n as ne,r,t as re}from"./select.js";import{t as ie}from"./plus.js";import{t as ae}from"./trash-2.js";import{t as oe}from"./button.js";import{L as i}from"./index.js";import{a,r as o,t as s}from"./field.js";import{n as se}from"./zod.js";import{n as ce,r as le,t as ue}from"./collapsible.js";var c=t(),l=e();function u(e){let t=(0,c.c)(174),{form:n,vpcs:r}=e,{control:u,register:d,watch:pe,setValue:f,getValues:p,formState:m}=n,{errors:h}=m,me,g,_,v,y,b,x,S,C;if(t[0]!==u||t[1]!==h.healthCheck?.healthyThresholdCount||t[2]!==h.healthCheck?.intervalSeconds||t[3]!==h.healthCheck?.matcher||t[4]!==h.healthCheck?.path||t[5]!==h.healthCheck?.port||t[6]!==h.healthCheck?.timeoutSeconds||t[7]!==h.healthCheck?.unhealthyThresholdCount||t[8]!==h.name||t[9]!==h.port||t[10]!==h.vpcId||t[11]!==p||t[12]!==d||t[13]!==f||t[14]!==r||t[15]!==pe){let e=pe(`tags`),n;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[25]=n):n=t[25];let ie=!!h.name,c;t[26]===d?c=t[27]:(c=d(`name`),t[26]=d,t[27]=c);let m;t[28]!==ie||t[29]!==c?(m=(0,l.jsx)(i,{"aria-invalid":ie,id:`tg-name`,placeholder:`my-target-group`,...c}),t[28]=ie,t[29]=c,t[30]=m):m=t[30];let w;t[31]===h.name?w=t[32]:(w=(0,l.jsx)(o,{errors:[h.name]}),t[31]=h.name,t[32]=w),t[33]!==m||t[34]!==w?(y=(0,l.jsxs)(s,{children:[n,m,w]}),t[33]=m,t[34]=w,t[35]=y):y=t[35];let T;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[36]=T):T=t[36],t[37]===u?b=t[38]:(b=(0,l.jsxs)(s,{children:[T,(0,l.jsx)(se,{control:u,name:`protocol`,render:fe})]}),t[37]=u,t[38]=b);let E;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[39]=E):E=t[39];let D=!!h.port,O;t[40]===d?O=t[41]:(O=d(`port`,{valueAsNumber:!0}),t[40]=d,t[41]=O);let k;t[42]!==D||t[43]!==O?(k=(0,l.jsx)(i,{"aria-invalid":D,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...O}),t[42]=D,t[43]=O,t[44]=k):k=t[44];let A;t[45]===h.port?A=t[46]:(A=(0,l.jsx)(o,{errors:[h.port]}),t[45]=h.port,t[46]=A),t[47]!==k||t[48]!==A?(x=(0,l.jsxs)(s,{children:[E,k,A]}),t[47]=k,t[48]=A,t[49]=x):x=t[49];let he;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[50]=he):he=t[50];let j;t[51]!==h.vpcId||t[52]!==r?(j=e=>{let{field:t}=e;return(0,l.jsxs)(re,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,l.jsx)(te,{"aria-invalid":!!h.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,l.jsx)(ee,{placeholder:`Select VPC`})}),(0,l.jsx)(ne,{children:r.map(de)})]})},t[51]=h.vpcId,t[52]=r,t[53]=j):j=t[53];let M;t[54]!==u||t[55]!==j?(M=(0,l.jsx)(se,{control:u,name:`vpcId`,render:j}),t[54]=u,t[55]=j,t[56]=M):M=t[56];let N;t[57]===h.vpcId?N=t[58]:(N=(0,l.jsx)(o,{errors:[h.vpcId]}),t[57]=h.vpcId,t[58]=N),t[59]!==M||t[60]!==N?(S=(0,l.jsxs)(s,{children:[he,M,N]}),t[59]=M,t[60]=N,t[61]=S):S=t[61];let ge;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,l.jsx)(le,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,l.jsx)(`button`,{type:`button`}),children:`Health check settings`}),t[62]=ge):ge=t[62];let _e;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),t[63]=_e):_e=t[63];let ve=!!h.healthCheck?.path,P;t[64]===d?P=t[65]:(P=d(`healthCheck.path`),t[64]=d,t[65]=P);let F;t[66]!==ve||t[67]!==P?(F=(0,l.jsx)(i,{"aria-invalid":ve,id:`hc-path`,placeholder:`/`,...P}),t[66]=ve,t[67]=P,t[68]=F):F=t[68];let ye=h.healthCheck?.path,I;t[69]===ye?I=t[70]:(I=(0,l.jsx)(o,{errors:[ye]}),t[69]=ye,t[70]=I);let L;t[71]!==F||t[72]!==I?(L=(0,l.jsxs)(s,{children:[_e,F,I]}),t[71]=F,t[72]=I,t[73]=L):L=t[73];let be;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[74]=be):be=t[74];let xe=!!h.healthCheck?.port,R;t[75]===d?R=t[76]:(R=d(`healthCheck.port`),t[75]=d,t[76]=R);let z;t[77]!==xe||t[78]!==R?(z=(0,l.jsx)(i,{"aria-invalid":xe,id:`hc-port`,placeholder:`traffic-port or numeric`,...R}),t[77]=xe,t[78]=R,t[79]=z):z=t[79];let Se=h.healthCheck?.port,B;t[80]===Se?B=t[81]:(B=(0,l.jsx)(o,{errors:[Se]}),t[80]=Se,t[81]=B);let V;t[82]!==z||t[83]!==B?(V=(0,l.jsxs)(s,{children:[be,z,B]}),t[82]=z,t[83]=B,t[84]=V):V=t[84];let Ce;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[85]=Ce):Ce=t[85];let we=!!h.healthCheck?.intervalSeconds,Te;t[86]===d?Te=t[87]:(Te=d(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[86]=d,t[87]=Te);let H;t[88]!==we||t[89]!==Te?(H=(0,l.jsx)(i,{"aria-invalid":we,id:`hc-interval`,inputMode:`numeric`,type:`number`,...Te}),t[88]=we,t[89]=Te,t[90]=H):H=t[90];let Ee=h.healthCheck?.intervalSeconds,U;t[91]===Ee?U=t[92]:(U=(0,l.jsx)(o,{errors:[Ee]}),t[91]=Ee,t[92]=U);let W;t[93]!==H||t[94]!==U?(W=(0,l.jsxs)(s,{children:[Ce,H,U]}),t[93]=H,t[94]=U,t[95]=W):W=t[95];let De;t[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[96]=De):De=t[96];let Oe=!!h.healthCheck?.timeoutSeconds,G;t[97]===d?G=t[98]:(G=d(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[97]=d,t[98]=G);let K;t[99]!==Oe||t[100]!==G?(K=(0,l.jsx)(i,{"aria-invalid":Oe,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...G}),t[99]=Oe,t[100]=G,t[101]=K):K=t[101];let ke=h.healthCheck?.timeoutSeconds,q;t[102]===ke?q=t[103]:(q=(0,l.jsx)(o,{errors:[ke]}),t[102]=ke,t[103]=q);let J;t[104]!==K||t[105]!==q?(J=(0,l.jsxs)(s,{children:[De,K,q]}),t[104]=K,t[105]=q,t[106]=J):J=t[106];let Ae;t[107]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[107]=Ae):Ae=t[107];let je=!!h.healthCheck?.healthyThresholdCount,Y;t[108]===d?Y=t[109]:(Y=d(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[108]=d,t[109]=Y);let X;t[110]!==je||t[111]!==Y?(X=(0,l.jsx)(i,{"aria-invalid":je,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...Y}),t[110]=je,t[111]=Y,t[112]=X):X=t[112];let Me=h.healthCheck?.healthyThresholdCount,Z;t[113]===Me?Z=t[114]:(Z=(0,l.jsx)(o,{errors:[Me]}),t[113]=Me,t[114]=Z);let Q;t[115]!==X||t[116]!==Z?(Q=(0,l.jsxs)(s,{children:[Ae,X,Z]}),t[115]=X,t[116]=Z,t[117]=Q):Q=t[117];let Ne;t[118]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[118]=Ne):Ne=t[118];let Pe=!!h.healthCheck?.unhealthyThresholdCount,Fe;t[119]===d?Fe=t[120]:(Fe=d(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[119]=d,t[120]=Fe);let Ie;t[121]!==Pe||t[122]!==Fe?(Ie=(0,l.jsx)(i,{"aria-invalid":Pe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...Fe}),t[121]=Pe,t[122]=Fe,t[123]=Ie):Ie=t[123];let Le=h.healthCheck?.unhealthyThresholdCount,Re;t[124]===Le?Re=t[125]:(Re=(0,l.jsx)(o,{errors:[Le]}),t[124]=Le,t[125]=Re);let $;t[126]!==Ie||t[127]!==Re?($=(0,l.jsxs)(s,{children:[Ne,Ie,Re]}),t[126]=Ie,t[127]=Re,t[128]=$):$=t[128];let ze;t[129]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,l.jsx)(a,{children:(0,l.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),t[129]=ze):ze=t[129];let Be=!!h.healthCheck?.matcher,Ve;t[130]===d?Ve=t[131]:(Ve=d(`healthCheck.matcher`),t[130]=d,t[131]=Ve);let He;t[132]!==Be||t[133]!==Ve?(He=(0,l.jsx)(i,{"aria-invalid":Be,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...Ve}),t[132]=Be,t[133]=Ve,t[134]=He):He=t[134];let Ue=h.healthCheck?.matcher,We;t[135]===Ue?We=t[136]:(We=(0,l.jsx)(o,{errors:[Ue]}),t[135]=Ue,t[136]=We);let Ge;t[137]!==He||t[138]!==We?(Ge=(0,l.jsxs)(s,{children:[ze,He,We]}),t[137]=He,t[138]=We,t[139]=Ge):Ge=t[139],t[140]!==L||t[141]!==V||t[142]!==W||t[143]!==J||t[144]!==Q||t[145]!==$||t[146]!==Ge?(C=(0,l.jsxs)(ue,{children:[ge,(0,l.jsxs)(ce,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[L,V,W,J,Q,$,Ge]})]}),t[140]=L,t[141]=V,t[142]=W,t[143]=J,t[144]=Q,t[145]=$,t[146]=Ge,t[147]=C):C=t[147],me=s,t[148]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(a,{children:`Tags`}),t[148]=v):v=t[148],g=`space-y-2`;let Ke;t[149]!==p||t[150]!==d||t[151]!==f?(Ke=(e,t)=>(0,l.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,l.jsx)(i,{placeholder:`Key`,...d(`tags.${t}.key`)}),(0,l.jsx)(i,{placeholder:`Value`,...d(`tags.${t}.value`)}),(0,l.jsx)(oe,{onClick:()=>f(`tags`,p(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,l.jsx)(ae,{className:`size-3.5`})})]},t),t[149]=p,t[150]=d,t[151]=f,t[152]=Ke):Ke=t[152],_=e.map(Ke),t[0]=u,t[1]=h.healthCheck?.healthyThresholdCount,t[2]=h.healthCheck?.intervalSeconds,t[3]=h.healthCheck?.matcher,t[4]=h.healthCheck?.path,t[5]=h.healthCheck?.port,t[6]=h.healthCheck?.timeoutSeconds,t[7]=h.healthCheck?.unhealthyThresholdCount,t[8]=h.name,t[9]=h.port,t[10]=h.vpcId,t[11]=p,t[12]=d,t[13]=f,t[14]=r,t[15]=pe,t[16]=me,t[17]=g,t[18]=_,t[19]=v,t[20]=y,t[21]=b,t[22]=x,t[23]=S,t[24]=C}else me=t[16],g=t[17],_=t[18],v=t[19],y=t[20],b=t[21],x=t[22],S=t[23],C=t[24];let w;t[153]!==p||t[154]!==f?(w=()=>f(`tags`,[...p(`tags`),{key:``,value:``}]),t[153]=p,t[154]=f,t[155]=w):w=t[155];let T;t[156]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,l.jsx)(ie,{className:`size-3.5`}),t[156]=T):T=t[156];let E;t[157]===w?E=t[158]:(E=(0,l.jsxs)(oe,{onClick:w,size:`sm`,type:`button`,variant:`outline`,children:[T,`Add tag`]}),t[157]=w,t[158]=E);let D;t[159]!==E||t[160]!==g||t[161]!==_?(D=(0,l.jsxs)(`div`,{className:g,children:[_,E]}),t[159]=E,t[160]=g,t[161]=_,t[162]=D):D=t[162];let O;t[163]!==me||t[164]!==D||t[165]!==v?(O=(0,l.jsxs)(me,{children:[v,D]}),t[163]=me,t[164]=D,t[165]=v,t[166]=O):O=t[166];let k;return t[167]!==O||t[168]!==y||t[169]!==b||t[170]!==x||t[171]!==S||t[172]!==C?(k=(0,l.jsxs)(l.Fragment,{children:[y,b,x,S,C,O]}),t[167]=O,t[168]=y,t[169]=b,t[170]=x,t[171]=S,t[172]=C,t[173]=k):k=t[173],k}function de(e){let t=n(e.Tags);return(0,l.jsx)(r,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function fe(e){let{field:t}=e;return(0,l.jsxs)(re,{onValueChange:t.onChange,value:t.value,children:[(0,l.jsx)(te,{className:`w-full`,id:`tg-protocol`,children:(0,l.jsx)(ee,{})}),(0,l.jsx)(ne,{children:(0,l.jsx)(r,{value:`HTTP`,children:`HTTP`})})]})}export{u as t}; \ No newline at end of file +import{a as e,i as t,n as ee,r as te,t as ne}from"./select.js";import{t as n}from"./plus.js";import{t as re}from"./trash-2.js";import{Da as r,eo as ie,so as i,ya as ae,yi as a}from"./index.js";import{a as o,r as s,t as c}from"./field.js";import{n as oe}from"./zod.js";import{n as se,r as ce,t as le}from"./collapsible.js";var l=ie(),u=i();function d(te){let r=(0,l.c)(174),{form:ie,vpcs:i}=te,{control:d,register:f,watch:fe,setValue:p,getValues:m,formState:h}=ie,{errors:g}=h,_,v,y,b,x,S,C,w,T;if(r[0]!==d||r[1]!==g.healthCheck?.healthyThresholdCount||r[2]!==g.healthCheck?.intervalSeconds||r[3]!==g.healthCheck?.matcher||r[4]!==g.healthCheck?.path||r[5]!==g.healthCheck?.port||r[6]!==g.healthCheck?.timeoutSeconds||r[7]!==g.healthCheck?.unhealthyThresholdCount||r[8]!==g.name||r[9]!==g.port||r[10]!==g.vpcId||r[11]!==m||r[12]!==f||r[13]!==p||r[14]!==i||r[15]!==fe){let te=fe(`tags`),n;r[25]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),r[25]=n):n=r[25];let ie=!!g.name,l;r[26]===f?l=r[27]:(l=f(`name`),r[26]=f,r[27]=l);let h;r[28]!==ie||r[29]!==l?(h=(0,u.jsx)(a,{"aria-invalid":ie,id:`tg-name`,placeholder:`my-target-group`,...l}),r[28]=ie,r[29]=l,r[30]=h):h=r[30];let E;r[31]===g.name?E=r[32]:(E=(0,u.jsx)(s,{errors:[g.name]}),r[31]=g.name,r[32]=E),r[33]!==h||r[34]!==E?(x=(0,u.jsxs)(c,{children:[n,h,E]}),r[33]=h,r[34]=E,r[35]=x):x=r[35];let D;r[36]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),r[36]=D):D=r[36],r[37]===d?S=r[38]:(S=(0,u.jsxs)(c,{children:[D,(0,u.jsx)(oe,{control:d,name:`protocol`,render:de})]}),r[37]=d,r[38]=S);let O;r[39]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),r[39]=O):O=r[39];let k=!!g.port,A;r[40]===f?A=r[41]:(A=f(`port`,{valueAsNumber:!0}),r[40]=f,r[41]=A);let j;r[42]!==k||r[43]!==A?(j=(0,u.jsx)(a,{"aria-invalid":k,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...A}),r[42]=k,r[43]=A,r[44]=j):j=r[44];let M;r[45]===g.port?M=r[46]:(M=(0,u.jsx)(s,{errors:[g.port]}),r[45]=g.port,r[46]=M),r[47]!==j||r[48]!==M?(C=(0,u.jsxs)(c,{children:[O,j,M]}),r[47]=j,r[48]=M,r[49]=C):C=r[49];let pe;r[50]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),r[50]=pe):pe=r[50];let N;r[51]!==g.vpcId||r[52]!==i?(N=te=>{let{field:n}=te;return(0,u.jsxs)(ne,{onValueChange:e=>n.onChange(e),value:n.value??``,children:[(0,u.jsx)(t,{"aria-invalid":!!g.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,u.jsx)(e,{placeholder:`Select VPC`})}),(0,u.jsx)(ee,{children:i.map(ue)})]})},r[51]=g.vpcId,r[52]=i,r[53]=N):N=r[53];let P;r[54]!==d||r[55]!==N?(P=(0,u.jsx)(oe,{control:d,name:`vpcId`,render:N}),r[54]=d,r[55]=N,r[56]=P):P=r[56];let F;r[57]===g.vpcId?F=r[58]:(F=(0,u.jsx)(s,{errors:[g.vpcId]}),r[57]=g.vpcId,r[58]=F),r[59]!==P||r[60]!==F?(w=(0,u.jsxs)(c,{children:[pe,P,F]}),r[59]=P,r[60]=F,r[61]=w):w=r[61];let me;r[62]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,u.jsx)(ce,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,u.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),r[62]=me):me=r[62];let he;r[63]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),r[63]=he):he=r[63];let ge=!!g.healthCheck?.path,I;r[64]===f?I=r[65]:(I=f(`healthCheck.path`),r[64]=f,r[65]=I);let L;r[66]!==ge||r[67]!==I?(L=(0,u.jsx)(a,{"aria-invalid":ge,id:`hc-path`,placeholder:`/`,...I}),r[66]=ge,r[67]=I,r[68]=L):L=r[68];let _e=g.healthCheck?.path,R;r[69]===_e?R=r[70]:(R=(0,u.jsx)(s,{errors:[_e]}),r[69]=_e,r[70]=R);let z;r[71]!==L||r[72]!==R?(z=(0,u.jsxs)(c,{children:[he,L,R]}),r[71]=L,r[72]=R,r[73]=z):z=r[73];let ve;r[74]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),r[74]=ve):ve=r[74];let ye=!!g.healthCheck?.port,B;r[75]===f?B=r[76]:(B=f(`healthCheck.port`),r[75]=f,r[76]=B);let V;r[77]!==ye||r[78]!==B?(V=(0,u.jsx)(a,{"aria-invalid":ye,id:`hc-port`,placeholder:`traffic-port or numeric`,...B}),r[77]=ye,r[78]=B,r[79]=V):V=r[79];let be=g.healthCheck?.port,H;r[80]===be?H=r[81]:(H=(0,u.jsx)(s,{errors:[be]}),r[80]=be,r[81]=H);let xe;r[82]!==V||r[83]!==H?(xe=(0,u.jsxs)(c,{children:[ve,V,H]}),r[82]=V,r[83]=H,r[84]=xe):xe=r[84];let Se;r[85]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),r[85]=Se):Se=r[85];let Ce=!!g.healthCheck?.intervalSeconds,U;r[86]===f?U=r[87]:(U=f(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),r[86]=f,r[87]=U);let W;r[88]!==Ce||r[89]!==U?(W=(0,u.jsx)(a,{"aria-invalid":Ce,id:`hc-interval`,inputMode:`numeric`,type:`number`,...U}),r[88]=Ce,r[89]=U,r[90]=W):W=r[90];let we=g.healthCheck?.intervalSeconds,G;r[91]===we?G=r[92]:(G=(0,u.jsx)(s,{errors:[we]}),r[91]=we,r[92]=G);let K;r[93]!==W||r[94]!==G?(K=(0,u.jsxs)(c,{children:[Se,W,G]}),r[93]=W,r[94]=G,r[95]=K):K=r[95];let Te;r[96]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),r[96]=Te):Te=r[96];let Ee=!!g.healthCheck?.timeoutSeconds,q;r[97]===f?q=r[98]:(q=f(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),r[97]=f,r[98]=q);let J;r[99]!==Ee||r[100]!==q?(J=(0,u.jsx)(a,{"aria-invalid":Ee,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...q}),r[99]=Ee,r[100]=q,r[101]=J):J=r[101];let De=g.healthCheck?.timeoutSeconds,Y;r[102]===De?Y=r[103]:(Y=(0,u.jsx)(s,{errors:[De]}),r[102]=De,r[103]=Y);let X;r[104]!==J||r[105]!==Y?(X=(0,u.jsxs)(c,{children:[Te,J,Y]}),r[104]=J,r[105]=Y,r[106]=X):X=r[106];let Oe;r[107]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),r[107]=Oe):Oe=r[107];let ke=!!g.healthCheck?.healthyThresholdCount,Z;r[108]===f?Z=r[109]:(Z=f(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),r[108]=f,r[109]=Z);let Q;r[110]!==ke||r[111]!==Z?(Q=(0,u.jsx)(a,{"aria-invalid":ke,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...Z}),r[110]=ke,r[111]=Z,r[112]=Q):Q=r[112];let Ae=g.healthCheck?.healthyThresholdCount,je;r[113]===Ae?je=r[114]:(je=(0,u.jsx)(s,{errors:[Ae]}),r[113]=Ae,r[114]=je);let Me;r[115]!==Q||r[116]!==je?(Me=(0,u.jsxs)(c,{children:[Oe,Q,je]}),r[115]=Q,r[116]=je,r[117]=Me):Me=r[117];let Ne;r[118]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),r[118]=Ne):Ne=r[118];let Pe=!!g.healthCheck?.unhealthyThresholdCount,$;r[119]===f?$=r[120]:($=f(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),r[119]=f,r[120]=$);let Fe;r[121]!==Pe||r[122]!==$?(Fe=(0,u.jsx)(a,{"aria-invalid":Pe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...$}),r[121]=Pe,r[122]=$,r[123]=Fe):Fe=r[123];let Ie=g.healthCheck?.unhealthyThresholdCount,Le;r[124]===Ie?Le=r[125]:(Le=(0,u.jsx)(s,{errors:[Ie]}),r[124]=Ie,r[125]=Le);let Re;r[126]!==Fe||r[127]!==Le?(Re=(0,u.jsxs)(c,{children:[Ne,Fe,Le]}),r[126]=Fe,r[127]=Le,r[128]=Re):Re=r[128];let ze;r[129]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,u.jsx)(o,{children:(0,u.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),r[129]=ze):ze=r[129];let Be=!!g.healthCheck?.matcher,Ve;r[130]===f?Ve=r[131]:(Ve=f(`healthCheck.matcher`),r[130]=f,r[131]=Ve);let He;r[132]!==Be||r[133]!==Ve?(He=(0,u.jsx)(a,{"aria-invalid":Be,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...Ve}),r[132]=Be,r[133]=Ve,r[134]=He):He=r[134];let Ue=g.healthCheck?.matcher,We;r[135]===Ue?We=r[136]:(We=(0,u.jsx)(s,{errors:[Ue]}),r[135]=Ue,r[136]=We);let Ge;r[137]!==He||r[138]!==We?(Ge=(0,u.jsxs)(c,{children:[ze,He,We]}),r[137]=He,r[138]=We,r[139]=Ge):Ge=r[139],r[140]!==z||r[141]!==xe||r[142]!==K||r[143]!==X||r[144]!==Me||r[145]!==Re||r[146]!==Ge?(T=(0,u.jsxs)(le,{children:[me,(0,u.jsxs)(se,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[z,xe,K,X,Me,Re,Ge]})]}),r[140]=z,r[141]=xe,r[142]=K,r[143]=X,r[144]=Me,r[145]=Re,r[146]=Ge,r[147]=T):T=r[147],_=c,r[148]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,u.jsx)(o,{children:`Tags`}),r[148]=b):b=r[148],v=`space-y-2`;let Ke;r[149]!==m||r[150]!==f||r[151]!==p?(Ke=(e,t)=>(0,u.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(a,{placeholder:`Key`,...f(`tags.${t}.key`)}),(0,u.jsx)(a,{placeholder:`Value`,...f(`tags.${t}.value`)}),(0,u.jsx)(ae,{onClick:()=>p(`tags`,m(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,u.jsx)(re,{className:`size-3.5`})})]},t),r[149]=m,r[150]=f,r[151]=p,r[152]=Ke):Ke=r[152],y=te.map(Ke),r[0]=d,r[1]=g.healthCheck?.healthyThresholdCount,r[2]=g.healthCheck?.intervalSeconds,r[3]=g.healthCheck?.matcher,r[4]=g.healthCheck?.path,r[5]=g.healthCheck?.port,r[6]=g.healthCheck?.timeoutSeconds,r[7]=g.healthCheck?.unhealthyThresholdCount,r[8]=g.name,r[9]=g.port,r[10]=g.vpcId,r[11]=m,r[12]=f,r[13]=p,r[14]=i,r[15]=fe,r[16]=_,r[17]=v,r[18]=y,r[19]=b,r[20]=x,r[21]=S,r[22]=C,r[23]=w,r[24]=T}else _=r[16],v=r[17],y=r[18],b=r[19],x=r[20],S=r[21],C=r[22],w=r[23],T=r[24];let E;r[153]!==m||r[154]!==p?(E=()=>p(`tags`,[...m(`tags`),{key:``,value:``}]),r[153]=m,r[154]=p,r[155]=E):E=r[155];let D;r[156]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,u.jsx)(n,{className:`size-3.5`}),r[156]=D):D=r[156];let O;r[157]===E?O=r[158]:(O=(0,u.jsxs)(ae,{onClick:E,size:`sm`,type:`button`,variant:`outline`,children:[D,`Add tag`]}),r[157]=E,r[158]=O);let k;r[159]!==O||r[160]!==v||r[161]!==y?(k=(0,u.jsxs)(`div`,{className:v,children:[y,O]}),r[159]=O,r[160]=v,r[161]=y,r[162]=k):k=r[162];let A;r[163]!==_||r[164]!==k||r[165]!==b?(A=(0,u.jsxs)(_,{children:[b,k]}),r[163]=_,r[164]=k,r[165]=b,r[166]=A):A=r[166];let j;return r[167]!==A||r[168]!==x||r[169]!==S||r[170]!==C||r[171]!==w||r[172]!==T?(j=(0,u.jsxs)(u.Fragment,{children:[x,S,C,w,T,A]}),r[167]=A,r[168]=x,r[169]=S,r[170]=C,r[171]=w,r[172]=T,r[173]=j):j=r[173],j}function ue(e){let t=r(e.Tags);return(0,u.jsx)(te,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function de(n){let{field:re}=n;return(0,u.jsxs)(ne,{onValueChange:re.onChange,value:re.value,children:[(0,u.jsx)(t,{className:`w-full`,id:`tg-protocol`,children:(0,u.jsx)(e,{})}),(0,u.jsx)(ee,{children:(0,u.jsx)(te,{value:`HTTP`,children:`HTTP`})})]})}export{d as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js index f8f8cf6f7..8d1dd6021 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{I as n}from"./SignatureV4.js";var r=t(),i=e();function a(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none 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`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{a as t}; \ No newline at end of file +import{Sa as e,eo as t,so as n}from"./index.js";var r=t(),i=n();function a(t){let n=(0,r.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none 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`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js b/spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js deleted file mode 100644 index 6c4927e27..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js +++ /dev/null @@ -1 +0,0 @@ -var e=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)};export{e as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js index 390471417..8d8185d97 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js index 3b8116900..d94232ab5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file +import{Ua as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js index bd02905b1..e32f5487d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./link.js";import{_ as o,a as s,d as c,in as l,ln as u,mn as d,rn as f}from"./awsClient.js";import{B as p,z as m}from"./SignatureV4.js";import{t as h}from"./createLucideIcon.js";import{t as g}from"./download.js";import{t as _}from"./trash-2.js";import{t as v}from"./button.js";import{a as y,i as b,n as x}from"./s3.js";import{t as S}from"./delete-confirmation-dialog.js";var C=h(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=h(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=h(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(d.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{u(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends f.classBuilder().ep({...o,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions()),y(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),b(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(c).build(){},A=r(),j=t();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,o;t[0]!==i||t[1]!==r?(o={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=o):o=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,j.jsxs)(a,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:o,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}var N=e(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[a,o]=(0,N.useState)(!1),[c,l]=(0,N.useState)(null),u=x();async function d(){l(null);try{let e=new k({Bucket:t,Key:r}),i=await s().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){l(Error(`Failed to download object`,{cause:e}))}}async function f(){try{await u.mutateAsync({bucket:t,key:r})}finally{o(!1)}}return(0,j.jsxs)(`div`,{children:[u.error&&(0,j.jsx)(i,{error:u.error,msg:`Failed to delete object`}),c&&(0,j.jsx)(i,{error:c,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,m(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:p(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:d,type:`button`,children:(0,j.jsx)(g,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>o(!0),type:`button`,children:(0,j.jsx)(_,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:u.isPending,onConfirm:f,onOpenChange:o,open:a,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(v,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file +import{t as e}from"./error-banner.js";import{t}from"./download.js";import{t as n}from"./trash-2.js";import{a as r,i,n as a}from"./s3.js";import{An as o,Do as s,Ea as c,Fn as l,Ta as u,Ua as d,_t as f,co as p,eo as m,jn as h,no as g,pt as _,qn as v,so as y,st as b,ya as x}from"./index.js";import{t as S}from"./delete-confirmation-dialog.js";var C=d(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=d(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=d(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(v.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{l(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends o.classBuilder().ep({...f,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,a){return[h(n,e.getEndpointParameterInstructions()),r(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),i(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(_).build(){},A=m(),j=y();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=o):o=t[3];let s;t[4]===n?s=t[5]:(s=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=s);let c;return t[6]!==a||t[7]!==s?(c=(0,j.jsxs)(g,{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:[o,s]}),t[6]=a,t[7]=s,t[8]=c):c=t[8],c}var N=s(p(),1);function P({object:r,bucketName:i,displayName:o,fullKey:s}){let[l,d]=(0,N.useState)(!1),[f,p]=(0,N.useState)(null),m=a();async function h(){p(null);try{let e=new k({Bucket:i,Key:s}),t=await b().send(e);if(t.Body){let e=await t.Body.transformToByteArray(),n=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=n,r.download=o,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(n)}}catch(e){p(Error(`Failed to download object`,{cause:e}))}}async function g(){try{await m.mutateAsync({bucket:i,key:s})}finally{d(!1)}}return(0,j.jsxs)(`div`,{children:[m.error&&(0,j.jsx)(e,{error:m.error,msg:`Failed to delete object`}),f&&(0,j.jsx)(e,{error:f,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:o}),r.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,u(r.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:c(r.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${o}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:h,type:`button`,children:(0,j.jsx)(t,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${o}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>d(!0),type:`button`,children:(0,j.jsx)(n,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:o}),`? This action cannot be undone.`]}),isPending:m.isPending,onConfirm:g,onOpenChange:d,open:l,title:`Delete Object`})]})]},r.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(x,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js b/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js index 89fa59214..d31e8c7e5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/use-copy-to-clipboard.js @@ -1 +1 @@ -import{a as e,r as t,t as n}from"./compiler-runtime.js";var r=n(),i=e(t(),1),a=2e3;function o(){let e=(0,r.c)(5),[t,n]=(0,i.useState)(!1),o=(0,i.useRef)(null),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>()=>{o.current&&clearTimeout(o.current)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=async e=>{await navigator.clipboard.writeText(e),n(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>n(!1),a)},e[2]=l):l=e[2];let u=l,d;return e[3]===t?d=e[4]:(d={copied:t,copy:u},e[3]=t,e[4]=d),d}export{o as t}; \ No newline at end of file +import{Do as e,co as t,eo as n}from"./index.js";var r=n(),i=e(t(),1),a=2e3;function o(){let e=(0,r.c)(5),[t,n]=(0,i.useState)(!1),o=(0,i.useRef)(null),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>()=>{o.current&&clearTimeout(o.current)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=async e=>{await navigator.clipboard.writeText(e),n(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>n(!1),a)},e[2]=l):l=e[2];let u=l,d;return e[3]===t?d=e[4]:(d={copied:t,copy:u},e[3]=t,e[4]=d),d}export{o as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js index 615f77dc5..79c9fe5e7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js @@ -1 +1 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{A as r,C as i,D as a,E as o,M as s,T as c,c as l,j as u,k as d,l as f,n as p,u as m,v as h,w as g,x as _}from"./QueryClientProvider.js";import{J as v}from"./index.js";var y=class extends s{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=f(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof g(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!o(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||g(this.options.enabled,this.#t)!==g(t.enabled,this.#t)||c(this.options.staleTime,this.#t)!==c(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||g(this.options.enabled,this.#t)!==g(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(_)),t}#g(){this.#b();let e=c(this.options.staleTime,this.#t);if(m.isServer()||this.#r.isStale||!h(e))return;let t=d(this.#r.dataUpdatedAt,e)+1;this.#d=r.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(m.isServer()||g(this.options.enabled,this.#t)===!1||!h(this.#p)||this.#p===0)&&(this.#f=r.setInterval(()=>{(this.options.refetchIntervalInBackground||u.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(r.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(r.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,a=this.#r,o=this.#i,s=this.#a,c=e===n?this.#n:e.state,{state:l}=e,u={...l},d=!1,p;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&x(e,t),o=i&&C(e,n,t,r);(a||o)&&(u={...u,...v(l.data,e.options)}),t._optimisticResults===`isRestoring`&&(u.fetchStatus=`idle`)}let{error:m,errorUpdatedAt:h,status:_}=u;p=u.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&_===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(_=`success`,p=i(a?.data,e,t),d=!0)}if(t.select&&p!==void 0&&!y)if(a&&p===o?.data&&t.select===this.#c)p=this.#l;else try{this.#c=t.select,p=t.select(p),p=i(a?.data,p,t),this.#l=p,this.#s=null}catch(e){this.#s=e}this.#s&&(m=this.#s,p=this.#l,h=Date.now(),_=`error`);let b=u.fetchStatus===`fetching`,S=_===`pending`,T=_===`error`,E=S&&b,D=p!==void 0,O={status:_,fetchStatus:u.fetchStatus,isPending:S,isSuccess:_===`success`,isError:T,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:u.fetchStatus===`paused`,isPlaceholderData:d,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:g(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},a=()=>{i(this.#o=O.promise=f())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||O.data!==o.value)&&a();break;case`rejected`:(!r||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!o(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){l.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return g(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&g(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(g(t.enabled,e)!==!1&&c(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||g(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return g(t.enabled,e)!==!1&&e.isStaleByTime(c(t.staleTime,e))}function T(e,t){return!o(e.getCurrentResult(),t)}t();var E=e(n(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?a(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||a(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let r=O(),i=j(),a=p(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,I(o),M(o,i,s),N(i);let c=!a.getQueryCache().get(o.queryHash),[u]=E.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let t=f?u.subscribe(l.batchCalls(e)):_;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),E.useEffect(()=>{u.setOptions(o)},[o,u]),R(o,d))throw z(o,u,i);if(P({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!m.isServer()&&L(d,r)&&(c?z(o,u,i):s?.promise)?.catch(_).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}export{F as n,y as r,B as t}; \ No newline at end of file +import{Co as e,Do as t,So as n,To as r,_o as i,bo as a,co as o,do as s,fo as c,go as l,ho as u,oo as d,po as f,so as p,uo as m,vo as h,wo as g,xo as _,yo as v}from"./index.js";var y=class extends r{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=c(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof h(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!a(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||h(this.options.enabled,this.#t)!==h(t.enabled,this.#t)||v(this.options.staleTime,this.#t)!==v(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||h(this.options.enabled,this.#t)!==h(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l)),t}#g(){this.#b();let t=v(this.options.staleTime,this.#t);if(f.isServer()||this.#r.isStale||!u(t))return;let r=n(this.#r.dataUpdatedAt,t)+1;this.#d=e.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#x(),this.#p=t,!(f.isServer()||h(this.options.enabled,this.#t)===!1||!u(this.#p)||this.#p===0)&&(this.#f=e.setInterval(()=>{(this.options.refetchIntervalInBackground||g.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(e.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(e.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,a=this.#r,o=this.#i,s=this.#a,l=e===n?this.#n:e.state,{state:u}=e,d={...u},f=!1,p;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&x(e,t),o=i&&C(e,n,t,r);(a||o)&&(d={...d,...m(u.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:g,errorUpdatedAt:_,status:v}=d;p=d.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&v===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(v=`success`,p=i(a?.data,e,t),f=!0)}if(t.select&&p!==void 0&&!y)if(a&&p===o?.data&&t.select===this.#c)p=this.#l;else try{this.#c=t.select,p=t.select(p),p=i(a?.data,p,t),this.#l=p,this.#s=null}catch(e){this.#s=e}this.#s&&(g=this.#s,p=this.#l,_=Date.now(),v=`error`);let b=d.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=p!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:_,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:d.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:h(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},a=()=>{i(this.#o=O.promise=c())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||O.data!==o.value)&&a();break;case`rejected`:(!r||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!a(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){s.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return h(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&h(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(h(t.enabled,e)!==!1&&v(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||h(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return h(t.enabled,e)!==!1&&e.isStaleByTime(v(t.staleTime,e))}function T(e,t){return!a(e.getCurrentResult(),t)}p();var E=t(o(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?_(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||_(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let r=O(),i=j(),a=d(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let c=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,I(o),M(o,i,c),N(i);let u=!a.getQueryCache().get(o.queryHash),[p]=E.useState(()=>new t(a,o)),m=p.getOptimisticResult(o),h=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let t=h?p.subscribe(s.batchCalls(e)):l;return p.updateResult(),t},[p,h]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(o)},[o,p]),R(o,m))throw z(o,p,i);if(P({result:m,errorResetBoundary:i,throwOnError:o.throwOnError,query:c,suspense:o.suspense}))throw m.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,m),o.experimental_prefetchInRender&&!f.isServer()&&L(m,r)&&(u?z(o,p,i):c?.promise)?.catch(l).finally(()=>{p.updateResult()}),o.notifyOnChangeProps?m:p.trackResult(m)}export{F as n,y as r,B as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js b/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js deleted file mode 100644 index 09209bd0a..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,r as t}from"./compiler-runtime.js";import{i as n}from"./useStore.js";var r=e(t(),1);function i(e){let t=n();return r.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useOpenInteractionType.js b/spinifex/services/spinifexui/frontend/dist/assets/useOpenInteractionType.js deleted file mode 100644 index 74154bf7d..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/useOpenInteractionType.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,n as t,r as n}from"./compiler-runtime.js";import{n as r,r as i}from"./useStore.js";import{hn as a}from"./awsClient.js";import{a as o,c as s,i as c,l,n as u,o as d,s as f}from"./dist.js";import{C as p,D as m,S as h,_ as g,b as _,c as v,g as y,l as b,o as x,p as S,w as ee,x as C,y as w}from"./button.js";import{_ as T,a as te,d as E,g as D,m as O,o as ne,t as re,v as k,x as ie,y as A}from"./createBaseUIEventDetails.js";import{a as j,c as ae,l as oe,s as M,t as N,u as P}from"./addEventListener.js";var F=e(n()),I=typeof navigator<`u`,L=se(),R=ce(),z=K(),B=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),V=L.platform===`MacIntel`&&L.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(L.platform);I&&/firefox/i.test(z);var H=I&&/apple/i.test(navigator.vendor);I&&/Edg/i.test(z);var U=I&&/android/i.test(R)||/android/i.test(z),W=I&&R.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,G=z.includes(`jsdom/`);function se(){if(!I)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function K(){if(!I)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function ce(){if(!I)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var q=t(),le=`data-base-ui-focusable`,ue=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,de=`ArrowLeft`,J=`ArrowRight`,Y=`ArrowUp`,X=`ArrowDown`;function fe(e,t){if(!w(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(T(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Z(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function pe(e){return e.matches(`html,body`)}function me(e){return _(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function he(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ue}`)!=null}function ge(e){return e?e.getAttribute(`role`)===`combobox`&&me(e):!1}function _e(e){if(!e||G)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ve(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function ye(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...ye(e,t.id,n)])}function be(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function xe(e){e.preventDefault(),e.stopPropagation()}function Se(e){return`nativeEvent`in e}function Ce(e){return e.pointerType===``&&e.isTrusted?!0:U&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function we(e){return G?!1:!U&&e.width===0&&e.height===0||U&&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 Te(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Ee(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var De=[`top`,`right`,`bottom`,`left`],Oe=Math.min,ke=Math.max,Ae=Math.round,je=Math.floor,Me=e=>({x:e,y:e}),Ne={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Pe(e,t,n){return ke(e,Oe(t,n))}function Fe(e,t){return typeof e==`function`?e(t):e}function Ie(e){return e.split(`-`)[0]}function Le(e){return e.split(`-`)[1]}function Re(e){return e===`x`?`y`:`x`}function ze(e){return e===`y`?`height`:`width`}function Be(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ve(e){return Re(Be(e))}function He(e,t,n){n===void 0&&(n=!1);let r=Le(e),i=Ve(e),a=ze(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ze(o)),[o,Ze(o)]}function Ue(e){let t=Ze(e);return[We(e),t,We(t)]}function We(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ge=[`left`,`right`],Ke=[`right`,`left`],qe=[`top`,`bottom`],Je=[`bottom`,`top`];function Ye(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ke:Ge:t?Ge:Ke;case`left`:case`right`:return t?qe:Je;default:return[]}}function Xe(e,t,n,r){let i=Le(e),a=Ye(Ie(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(We)))),a}function Ze(e){let t=Ie(e);return Ne[t]+e.slice(t.length)}function Qe(e){return{top:0,right:0,bottom:0,left:0,...e}}function $e(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Qe(e)}function et(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function tt(e,t,n){return Math.floor(e/t)!==n}function nt(e,t){return t<0||t>=e.length}function rt(e,t){return Q(e.current,{disabledIndices:t})}function it(e,t){return Q(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Q(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&<(e,a,r));return a}function at(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!lt(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=je(l/y)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!lt(e,r,s))return r}};d&&xe(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Q(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-ye?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Q(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}nt(e,f)&&(f=u)}if(n===`both`){let n=je(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&xe(t),u%o===o-1?r&&(f=Q(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Q(e,{startingIndex:u,disabledIndices:s}),r&&tt(f,o,n)&&(f=Q(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),tt(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&xe(t),u%o===0?r&&(f=Q(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Q(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&tt(f,o,n)&&(f=Q(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),tt(f,o,n)&&(f=u));let c=je(l/o)===n;nt(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Q(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function ot(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function st(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function ct(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function lt(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?dt(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function ut(e){return e.visibility===`hidden`||e.visibility===`collapse`}function dt(e,t=e?b(e):null){return!e||!e.isConnected||!t||ut(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ft=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function pt(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return ee(n)?n.host:null}function mt(e){for(let t of Array.from(e.children))if(S(t)===`summary`)return t;return null}function ht(e,t){let n=mt(t);return!!n&&(e===n||T(n,e))}function gt(e){let t=e?S(e):``;return e!=null&&e.matches(ft)&&(t!==`summary`||e.parentElement!=null&&S(e.parentElement)===`details`&&mt(e.parentElement)===e)&&(t!==`details`||mt(e)==null)&&(t!==`input`||e.type!==`hidden`)}function _t(e){if(!gt(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=pt(t)){let n=t!==e,r=S(t)===`slot`;if(t.hasAttribute(`inert`)||n&&S(t)===`details`&&!t.open&&!ht(e,t)||t.hasAttribute(`hidden`)||!r&&!vt(t,n))return!1}return!0}function vt(e,t){let n=b(e);return t?n.display!==`none`:dt(e,n)}function yt(e){let t=e.tabIndex;if(t<0){let t=S(e);if(t===`details`||t===`audio`||t===`video`||_(e)&&e.isContentEditable)return 0}return t}function bt(e){if(S(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function xt(e,t){let n=bt(e);if(!n)return!0;let r=t.find(e=>{let t=bt(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=bt(e);return t?.name===n.name&&t.form===n.form})===n}function St(e){if(_(e)&&S(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return _(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ct(e,t){St(e).forEach(e=>{gt(e)&&t.push(e),Ct(e,t)})}function wt(e,t,n){St(e).forEach(e=>{_(e)&&e.matches(t)&&n.push(e),wt(e,t,n)})}function Tt(e){return _t(e)&&yt(e)>=0}function Et(e){let t=[];return Ct(e,t),t.filter(_t)}function Dt(e){let t=Et(e);return t.filter(e=>yt(e)>=0&&xt(e,t))}function Ot(e,t){let n=Dt(e),r=n.length;if(r===0)return;let i=D(A(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function kt(e){return Ot(A(e).body,1)||e}function At(e){return Ot(A(e).body,-1)||e}function jt(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!T(n,r)}function Mt(e){Dt(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Nt(e){let t=[];wt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Pt=0,Ft=class e{static create(){return new e}currentId=Pt;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Pt,t()},e)}isStarted(){return this.currentId!==Pt}clear=()=>{this.currentId!==Pt&&(clearTimeout(this.currentId),this.currentId=Pt)};disposeEffect=()=>this.clear};function It(){let e=s(Ft.create).current;return P(e.disposeEffect),e}var Lt=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=j.startingStyle]=`startingStyle`,e[e.endingStyle=j.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Rt=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),zt={[Rt.popupOpen]:``},Bt={[Rt.popupOpen]:``,[Rt.pressed]:``},Vt={[Lt.open]:``},Ht={[Lt.closed]:``},Ut={[Lt.anchorHidden]:``},Wt={open(e){return e?zt:null}},Gt={open(e){return e?Bt:null}},Kt={open(e){return e?Vt:Ht},anchorHidden(e){return e?Ut:null}};function qt(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Xt={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Zt={...Xt,position:`fixed`,top:0,left:0},Qt={...Xt,position:`absolute`},$t=F.forwardRef(function(e,t){let[n,r]=F.useState();x(()=>{H&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,q.jsx)(`span`,{...e,ref:t,style:Zt,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function en(e){return`data-base-ui-${e}`}var tn=0;function nn(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(tn);let a=()=>e?.focus({preventScroll:n});if(i)return a(),o;let s=requestAnimationFrame(a);return tn=s,()=>{tn===s&&(cancelAnimationFrame(s),tn=0)}}var rn={inert:new WeakMap,"aria-hidden":new WeakMap},an=`data-base-ui-inert`,on={inert:new WeakSet,"aria-hidden":new WeakSet},sn=new WeakMap,cn=0;function ln(e){return on[e]}function un(e){return e?ee(e)?e.host:un(e.parentNode):null}var dn=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=un(t);return e.contains(n)?n:null}).filter(e=>e!=null),fn=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},pn=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{S(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function mn(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=dn(t,e),u=i?dn(t,a):[],d=new Set(u),f=i?pn(t,fn(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=rn[o],n=ln(o);c=n,s=e;let r=dn(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);pn(t,fn(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(sn.get(e)||0)+1;sn.set(e,t),m.push(e),t===1&&e.setAttribute(an,``)}),cn+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(sn.get(e)||0)-1;sn.set(e,t),t||e.removeAttribute(an)}),--cn,cn||(rn.inert=new WeakMap,rn[`aria-hidden`]=new WeakMap,on.inert=new WeakSet,on[`aria-hidden`]=new WeakSet,sn=new WeakMap)}}function hn(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=A(e[0]).body;return mn(e,o,n,r,{mark:i,markerIgnoreElements:a})}var gn=e(a()),_n={style:{transition:`none`}},vn={fallbackAxisSide:`none`},yn={fallbackAxisSide:`end`},bn={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},xn=F.createContext(null),Sn=()=>F.useContext(xn),Cn=en(`portal`);function wn(e={}){let{ref:t,container:n,componentProps:r=c,elementProps:i}=e,a=ie(),o=Sn()?.portalNode,[s,l]=F.useState(null),[d,f]=F.useState(null),p=v(e=>{e!==null&&f(e)}),m=F.useRef(null);x(()=>{if(n===null){m.current&&(m.current=null,f(null),l(null));return}if(a==null)return;let e=(n&&(h(n)?n:n.current))??o??document.body;if(e==null){m.current&&(m.current=null,f(null),l(null));return}m.current!==e&&(m.current=e,f(null),l(e))},[n,o,a]);let g=u(`div`,r,{ref:[t,p],props:[{id:a,[Cn]:``},i]});return{portalNode:d,portalSubtree:s&&g?gn.createPortal(g,s):null}}var Tn=F.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=wn({container:r,ref:t,componentProps:e,elementProps:c}),d=F.useRef(null),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),[h,g]=F.useState(null),_=F.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;F.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&jt(e)&&(e.type===`focusin`?_.current&&=(Nt(l),!1):(Mt(l),_.current=!0))}return qt(N(l,`focusin`,e,!0),N(l,`focusout`,e,!0))},[l,v]),F.useEffect(()=>{!l||y!==!1||(Nt(l),_.current=!1)},[y,l]);let x=F.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,q.jsxs)(F.Fragment,{children:[u,(0,q.jsxs)(xn.Provider,{value:x,children:[b&&l&&(0,q.jsx)($t,{"data-type":`outside`,ref:d,onFocus:e=>{jt(e,l)?p.current?.focus():At(h?h.domReference:null)?.focus()}}),b&&l&&(0,q.jsx)(`span`,{"aria-owns":l.id,style:bn}),l&&gn.createPortal(n,l),b&&l&&(0,q.jsx)($t,{"data-type":`outside`,ref:f,onFocus:e=>{jt(e,l)?m.current?.focus():(kt(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,re(`focus-out`,e.nativeEvent)))}})]})]})}),En=i(),Dn=r();function On(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var kn=F.createContext(null),An=F.createContext(null),jn=()=>F.useContext(kn)?.id||null,Mn=e=>{let t=F.useContext(An);return e??t};function Nn(e,t){let n=g(k(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Pn=20,$=[];function Fn(){$=$.filter(e=>e.deref()?.isConnected)}function In(e){Fn(),e&&S(e)!==`body`&&($.push(new WeakRef(e)),$.length>Pn&&($=$.slice(-Pn)))}function Ln(){return Fn(),$[$.length-1]?.deref()}function Rn(e){return e?Tt(e)?e:Dt(e)[0]||e:null}function zn(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Et(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Tt(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Bn(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=`rootStore`in t?t.rootStore:t,y=g.useState(`open`),b=g.useState(`domReferenceElement`),S=g.useState(`floatingElement`),{events:ee,dataRef:C}=g.context,w=v(()=>C.current.floatingContext?.nodeId),te=i===!1,E=ge(b)&&te,O=F.useRef([`content`]),ie=Jt(i),j=Jt(a),ae=Jt(l),P=Mn(m),I=Sn(),L=F.useRef(!1),R=F.useRef(!1),z=F.useRef(!1),V=F.useRef(null),H=F.useRef(``),U=F.useRef(``),W=F.useRef(null),G=F.useRef(null),se=f(W,p,I?.beforeInsideRef),K=f(G,I?.afterInsideRef),ce=It(),le=It(),ue=oe(),de=I!=null,J=ve(S),Y=v((e=J)=>e?Dt(e):[]),X=v(()=>h?.().filter(e=>e!=null)??[]);F.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&T(J,D(A(J)))&&Y().length===0&&!E&&xe(e)}return N(A(J),`keydown`,e)},[r,b,J,s,O,E,Y]),F.useEffect(()=>{if(r||!y)return;let e=A(J);function t(){z.current=!1}function n(e){let t=k(e),n=X();z.current=!(T(S,t)||T(b,t)||T(I?.portalNode,t)||n.some(e=>e===t||T(e,t))),U.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(R.current=!0)}function i(){U.current=`keyboard`}return qt(N(e,`pointerdown`,n,!0),N(e,`pointerup`,t,!0),N(e,`pointercancel`,t,!0),N(e,`keydown`,i,!0))},[r,S,b,J,y,I,X]),F.useEffect(()=>{if(r||!c)return;let e=A(J);function t(){R.current=!0,le.start(0,()=>{R.current=!1})}function n(e){let t=k(e);Tt(t)&&(V.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=k(t);queueMicrotask(()=>{let a=w(),c=g.context.triggerElements,l=X(),f=n?.hasAttribute(en(`focus-guard`))&&[W.current,G.current,I?.beforeInsideRef.current,I?.afterInsideRef.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,M(d),M(u)].includes(n),p=!(T(b,n)||T(S,n)||T(n,S)||T(I?.portalNode,n)||l.some(e=>e===n||T(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>T(e,n))||f||P&&(ye(P.nodesRef.current,a).find(e=>T(e.context?.elements.floating,n)||T(e.context?.elements.domReference,n))||be(P.nodesRef.current,a).find(e=>[e.context?.elements.floating,ve(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===b&&J&&zn(J,O),o&&r!==b&&!dt(i)&&D(e)===e.body){if(_(J)&&(J.focus(),o===`popup`)){ue.request(()=>{J.focus()});return}let e=Y(),t=V.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||J;_(n)&&n.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}(E||!s)&&n&&p&&!R.current&&(E||n!==Ln())&&(L.current=!0,g.setOpen(!1,re(ne,t)))})}function a(){z.current||(C.current.insideReactTree=!0,ce.start(0,()=>{C.current.insideReactTree=!1}))}let l=_(b)?b:null;if(!(!S&&!l))return qt(l&&N(l,`focusout`,i),l&&N(l,`pointerdown`,t),S&&N(S,`focusin`,n),S&&N(S,`focusout`,i),S&&I&&N(S,`focusout`,a,!0))},[r,b,S,J,s,P,I,g,c,o,Y,E,w,O,C,ce,le,ue,u,d,X]),F.useEffect(()=>{if(r||!S||!y)return;let e=Array.from(I?.portalNode?.querySelectorAll(`[${en(`portal`)}]`)||[]),t=(P?be(P.nodesRef.current,w()):[]).find(e=>ge(e.context?.elements.domReference||null))?.context?.elements.domReference,n=hn([S,...e,W.current,G.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,...X(),t,M(d),M(u),E?b:null].filter(e=>e!=null),{ariaHidden:s||E,mark:!1}),i=hn([S,...e].filter(e=>e!=null));return()=>{i(),n()}},[y,r,b,S,s,O,I,E,P,w,u,d,X]),x(()=>{if(!y||r||!_(J))return;let e=D(A(J));queueMicrotask(()=>{let t=ie.current,n=typeof t==`function`?t(ae.current||``):t;if(n===void 0||n===!1||T(J,e))return;let r=null,i=()=>(r??=Y(J),r[0]||J),a;a=n===!0||n===null?i():M(n),a||=i(),nn(a,{preventScroll:a===J})})},[r,y,J,te,Y,ie,ae]),x(()=>{if(r||!J)return;let e=A(J);In(D(e));function t(e){if(e.open||(H.current=Nn(e.nativeEvent,U.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(L.current=!0),e.reason===`outside-press`)if(e.nested)L.current=!1;else if(Ce(e.nativeEvent)||we(e.nativeEvent))L.current=!1;else{let e=!1;A(J).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?L.current=!1:L.current=!0}}ee.on(`openchange`,t);function n(){let e=j.current,t=typeof e==`function`?e(H.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=b||Ln();return e&&e.isConnected?e:null}let n=b||Ln();return M(t)||n||null}return()=>{ee.off(`openchange`,t);let r=D(e),i=X(),a=T(S,r)||i.some(e=>e===r||T(e,r))||P&&ye(P.nodesRef.current,w(),!1).some(e=>T(e.context?.elements.floating,r)),o=j.current,s=n();queueMicrotask(()=>{let t=Rn(s),n=typeof o!=`boolean`;o&&!L.current&&_(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),L.current=!1})}},[r,S,J,j,C,ee,P,b,w,X]),x(()=>{if(!B||y||!S)return;let e=D(A(S));!_(e)||!me(e)||T(S,e)&&e.blur()},[y,S]),x(()=>{if(!(r||!I))return I.setFocusManagerState({modal:s,closeOnFocusOut:c,open:y,onOpenChange:g.setOpen,domReference:b}),()=>{I.setFocusManagerState(null)}},[r,I,s,y,g,c,b]),x(()=>{if(!(r||!J))return zn(J,O),()=>{queueMicrotask(Fn)}},[r,J,O]);let fe=!r&&(s?!E:!0)&&(de||s);return(0,q.jsxs)(F.Fragment,{children:[fe&&(0,q.jsx)($t,{"data-type":`inside`,ref:se,onFocus:e=>{if(s){let e=Y();nn(e[e.length-1])}else I?.portalNode&&(L.current=!1,jt(e,I.portalNode)?kt(b)?.focus():M(d??I.beforeOutsideRef)?.focus())}}),n,fe&&(0,q.jsx)($t,{"data-type":`inside`,ref:K,onFocus:e=>{s?nn(Y()[0]):I?.portalNode&&(c&&(L.current=!0),jt(e,I.portalNode)?At(b)?.focus():M(u??I.afterOutsideRef)?.focus())}})]})}var Vn={intentional:`onClick`,sloppy:`onPointerDown`};function Hn(){return!1}function Un(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Wn(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=Hn,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,h=Mn(p),g=v(typeof c==`function`?c:()=>!1),x=typeof c==`function`?g:c,S=x!==!1,D=v(()=>l),ne=F.useRef(!1),ie=F.useRef(!1),j=F.useRef(!1),{escapeKey:ae,outsidePress:oe}=Un(f),M=F.useRef(null),P=It(),I=It(),L=v(()=>{I.clear(),a.current.insideReactTree=!1}),R=F.useRef(!1),z=F.useRef(``),B=v(u),V=v(e=>{if(!r||!o||!s||e.key!==`Escape`||R.current)return;let t=a.current.floatingContext?.nodeId,i=h?ye(h.nodesRef.current,t):[];if(!ae&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=re(te,Se(e)?e.nativeEvent:e);n.setOpen(!1,c),!ae&&!c.isPropagationAllowed&&e.stopPropagation()}),H=v(()=>{a.current.insideReactTree=!0,I.start(0,L)});F.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=ae,a.current.__outsidePressBubbles=oe;let e=new Ft,t=new Ft;function c(){e.clear(),R.current=!0}function l(){e.start(m()?5:0,()=>{R.current=!1})}function u(){j.current=!0,t.start(0,()=>{j.current=!1})}function d(){ne.current=!1,ie.current=!1}function f(){let e=z.current,t=e===`pen`||!e?`mouse`:e,n=D(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function g(e){let t=a.current.floatingContext?.nodeId,r=h&&ye(h.nodesRef.current,t).some(t=>Z(e,t.context?.elements.floating));return Z(e,n.select(`floatingElement`))||Z(e,n.select(`domReferenceElement`))||r}function v(e){if(p(e)){L();return}if(a.current.insideReactTree){L();return}let r=k(e),i=`[${en(`inert`)}]`,o=w(r)?r.getRootNode():null,s=Array.from((ee(o)?o:A(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>T(e,r))))return;let l=w(r)?r:null;for(;l&&!C(l);){let e=y(l);if(C(e)||!w(e))break;l=e}if(s.length&&w(r)&&!pe(r)&&!T(r,n.select(`floatingElement`))&&s.every(e=>!T(l,e)))return;if(_(r)&&!(`touches`in e)){let t=C(r),n=b(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(g(e))return;if(f()===`intentional`&&j.current){t.clear(),j.current=!1;return}if(typeof x==`function`&&!x(e))return;let u=a.current.floatingContext?.nodeId,d=h?ye(h.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,re(E,e)),L()}function te(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||Z(e,n.select(`floatingElement`))||Z(e,n.select(`domReferenceElement`))||v(e)}function O(e){if(f()!==`sloppy`||!n.select(`open`)||!o||Z(e,n.select(`floatingElement`))||Z(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(M.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},P.start(1e3,()=>{M.current&&(M.current.dismissOnTouchEnd=!1,M.current.dismissOnMouseDown=!1)}))}function F(e,t){let n=k(e);if(!n)return;let r=N(n,e.type,()=>{t(e),r()})}function I(e){z.current=`touch`,F(e,O)}function B(e){P.clear(),e.type===`pointerdown`&&(z.current=e.pointerType),!(e.type===`mousedown`&&M.current&&!M.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?te(e):v(e)})}function H(e){if(!ne.current)return;let n=ie.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!g(e)){if(n){u();return}typeof x==`function`&&!x(e)||(t.clear(),j.current=!0,L())}}}function U(e){if(f()!==`sloppy`||!M.current||Z(e,n.select(`floatingElement`))||Z(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-M.current.startX),i=Math.abs(t.clientY-M.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(M.current.dismissOnTouchEnd=!0),a>10&&(v(e),P.clear(),M.current=null)}function W(e){F(e,U)}function G(e){f()!==`sloppy`||!M.current||Z(e,n.select(`floatingElement`))||Z(e,n.select(`domReferenceElement`))||(M.current.dismissOnTouchEnd&&v(e),P.clear(),M.current=null)}function se(e){F(e,G)}let K=A(i),ce=qt(s&&qt(N(K,`keydown`,V),N(K,`compositionstart`,c),N(K,`compositionend`,l)),S&&qt(N(K,`click`,B,!0),N(K,`pointerdown`,B,!0),N(K,`pointerup`,H,!0),N(K,`pointercancel`,H,!0),N(K,`mousedown`,B,!0),N(K,`mouseup`,H,!0),N(K,`touchstart`,I,!0),N(K,`touchmove`,W,!0),N(K,`touchend`,se,!0)));return()=>{ce(),e.clear(),t.clear(),d(),j.current=!1}},[a,i,s,S,x,r,o,ae,oe,V,L,D,h,n,P]),F.useEffect(L,[x,L]);let U=F.useMemo(()=>({onKeyDown:V,[Vn[d]]:e=>{B()&&n.setOpen(!1,re(O,e.nativeEvent))},...d!==`intentional`&&{onClick(e){B()&&n.setOpen(!1,re(`trigger-press`,e.nativeEvent))}}}),[V,n,d,B]),W=v(e=>{if(!r||!o||e.button!==0)return;let t=k(e.nativeEvent);T(n.select(`floatingElement`),t)&&(ne.current||(ne.current=!0,ie.current=!1))}),G=v(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&ne.current&&(ie.current=!0)}),se=F.useMemo(()=>({onKeyDown:V,onPointerDown:G,onMouseDown:G,onClickCapture:H,onMouseDownCapture(e){H(),W(e)},onPointerDownCapture(e){H(),W(e)},onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[V,H,W,G]);return F.useMemo(()=>o?{reference:U,floating:se,trigger:U}:{},[o,U,se])}var Gn=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(l(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Kn=[],qn=void 0;function Jn(){return qn}function Yn(e){Kn.push(e)}function Xn(e){let t=(t,n)=>{let r=s(Qn).current,i;try{qn=r;for(let e of Kn)e.before(r);i=e(t,n);for(let e of Kn)e.after(r);r.didInitialize=!0}finally{qn=void 0}return i};return t.displayName=e.displayName||e.name,t}function Zn(e){return F.forwardRef(Xn(e))}function Qn(){return{didInitialize:!1}}var $n=d(19)?nr:rr;function er(e,t,n,r,i){return $n(e,t,n,r,i)}function tr(e,t,n,r,i){let a=F.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,En.useSyncExternalStore)(e.subscribe,a,a)}Yn({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,En.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function nr(e,t,n,r,i){let a=Jn();if(!a)return tr(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function rr(e,t,n,r,i){return(0,Dn.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ir=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return er(this,e,t,n,r)}},ar=class extends ir{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){F.useDebugValue(e),x(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;x(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;x(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){F.useDebugValue(e);let n=t!==void 0;x(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return F.useDebugValue(e),er(this,this.selectors[e],t,n,r)}useContextCallback(e,t){F.useDebugValue(e);let n=v(t??o);this.context[e]=n}useStateSetter(e){let t=F.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},or={open:Gn(e=>e.open),transitionStatus:Gn(e=>e.transitionStatus),domReferenceElement:Gn(e=>e.domReferenceElement),referenceElement:Gn(e=>e.positionReference??e.referenceElement),floatingElement:Gn(e=>e.floatingElement),floatingId:Gn(e=>e.floatingId)},sr=class extends ar{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:On(),nested:n,triggerElements:i},or),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Ee(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},cr=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function lr(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=F.useCallback(t=>ur(t,e,`reference`),t),o=F.useCallback(t=>ur(t,e,`floating`),n),s=F.useCallback(t=>ur(t,e,`item`),r),c=F.useCallback(t=>ur(t,e,`trigger`),i);return F.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function ur(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[le]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var fr=`ArrowUp`,pr=`ArrowDown`,mr=`ArrowLeft`,hr=`ArrowRight`,gr=`Home`,_r=new Set([mr,hr]),vr=new Set([mr,hr,gr,`End`]),yr=new Set([fr,pr]),br=new Set([fr,pr,gr,`End`]),xr=new Set([..._r,...yr]),Sr=new Set([...xr,gr,`End`]),Cr=new Set([fr,pr,mr,hr,gr,`End`]),wr=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Tr(e){return _(e)&&e.tagName===`INPUT`}function Er(e){return!!(Tr(e)&&e.selectionStart!=null||_(e)&&e.tagName===`TEXTAREA`)}function Dr(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Or(e,t,`top`),r=kr(e),i=kr(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Or(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function kr(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Ar(e){return d(19)?e:e?`true`:void 0}var jr=F.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,q.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function Mr(e){let t=F.useRef(!0);t.current&&(t.current=!1,e())}var Nr={},Pr={},Fr=``;function Ir(e){if(typeof document>`u`)return!1;let t=A(e);return g(t).innerWidth-t.documentElement.clientWidth>0}function Lr(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=A(e),n=t.documentElement,r=t.body,i=p(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Rr(e){let t=A(e),n=t.documentElement,r=t.body,i=p(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function zr(e){let t=A(e),n=t.documentElement,r=t.body,i=g(n),a=0,o=0,s=!1,c=ae.create();if(B&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Nr={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Fr=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};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,m=t.overflowX===`scroll`||c.overflowX===`scroll`,h=Math.max(0,i.innerWidth-r.clientWidth),g=Math.max(0,i.innerHeight-r.clientHeight),_=parseFloat(c.marginTop)+parseFloat(c.marginBottom),v=parseFloat(c.marginLeft)+parseFloat(c.marginRight),y=p(n)?n:r;if(s=Lr(e),s){n.style.scrollbarGutter=l,y.style.overflowY=`hidden`,y.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||m)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:_||g?`calc(100dvh - ${_+g}px)`:`100dvh`,width:v||h?`calc(100vw - ${v+h}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Nr),Object.assign(r.style,Pr),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Fr)}function d(){u(),c.request(l)}l();let f=N(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Br=new class{lockCount=0;restore=null;timeoutLock=Ft.create();timeoutUnlock=Ft.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=A(e).documentElement,n=g(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=o;return}let r=V||!Ir(e);this.restore=r?Rr(e):zr(e)}};function Vr(e=!0,t=null){x(()=>{if(e)return Br.acquire(t)},[e,t])}function Hr(e){let t=F.useRef(``),n=F.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:F.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Ur(e,t){let n=F.useRef(e),r=v(t);x(()=>{n.current!==e&&r(n.current)},[e,r]),x(()=>{n.current=e},[e])}function Wr(e){let[t,n]=F.useState(null),r=v((t,r)=>{e||n(r||(V?`touch`:``))});Ur(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=Hr(r);return F.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}export{ot as $,Gn as A,Te as At,nn as B,_e as Bt,cr as C,Be as Ct,er as D,Ae as Dt,ir as E,et as Et,Tn as F,ve as Ft,qt as G,W as Gt,Zt as H,de as Ht,wn as I,he as It,Kt as J,Lt as K,H as Kt,_n as L,fe as Lt,Bn as M,we as Mt,jn as N,xe as Nt,Xn as O,De as Ot,Mn as P,ye as Pt,It as Q,vn as R,ge as Rt,lr as S,Ie as St,ar as T,Oe as Tt,Qt as U,J as Ut,en as V,X as Vt,Jt as W,Y as Wt,Wt as X,Gt as Y,Ft as Z,wr as _,Ue as _t,jr as a,rt as at,Er as b,Ze as bt,pr as c,lt as ct,hr as d,Fe as dt,Q as et,fr as f,je as ft,vr as g,ze as gt,_r as h,He as ht,Mr as i,it,Wn as j,Ce as jt,Zn as k,Ee as kt,xr as l,Pe as lt,gr as m,Ve as mt,Ur as n,ct as nt,Ar as o,dt as ot,Cr as p,Le as pt,Rt as q,B as qt,Vr as r,at as rt,Sr as s,nt as st,Wr as t,st as tt,mr as u,Me as ut,yr as v,Re as vt,sr as w,ke as wt,Dr as x,$e as xt,br as y,Xe as yt,yn as z,me as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useStore.js b/spinifex/services/spinifexui/frontend/dist/assets/useStore.js deleted file mode 100644 index 837bb4604..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/useStore.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,n,r}from"./compiler-runtime.js";var i=e(r(),1),a=i.use,o=typeof window<`u`?i.useLayoutEffect:i.useEffect;function s(e){let t=i.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function c(e,t,n={},r={}){i.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function l(e){let t=i.useRef(null);return i.useImperativeHandle(e,()=>t.current,[]),t}function u(e){return e[e.length-1]}function d(e){return typeof e==`function`}function f(e,t){return d(e)?e(t):e}var p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;function h(e){for(let t in e)if(p.call(e,t))return!0;return!1}var g=()=>Object.create(null),_=(e,t)=>v(e,t,g);function v(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=S(e)&&S(i);if(!a&&!(b(e)&&b(i)))return i;let o=a?e:y(e);if(!o)return i;let s=a?i:y(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;ti||!C(e[o],t[o],n)))return!1;return i===a}return!1}function ee(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function te(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function ne(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function re(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function w(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return re(t)}var T=[`http:`,`https:`,`mailto:`,`tel:`];function ie(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ae={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},oe=/[&><\u2028\u2029]/g;function se(e){return e.replace(oe,e=>ae[e])}function ce(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=w(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=w(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function le(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ue(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var O=4,k=5;function de(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function A(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=de(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=F(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=F(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=F(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=P(n.fullPath??n.from);e.kind=k,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=P(n.fullPath??n.from);e.kind=O,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)j(e,t,r,s,i,a,o)}function M(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function N(e){if(e.pathless)for(let t of e.pathless)N(t);if(e.static)for(let t of e.static.values())N(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())N(t);if(e.dynamic?.length){e.dynamic.sort(M);for(let t of e.dynamic)N(t)}if(e.optional?.length){e.optional.sort(M);for(let t of e.optional)N(t)}if(e.wildcard?.length){e.wildcard.sort(M);for(let t of e.wildcard)N(t)}}function P(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function F(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:n,prefix:r,suffix:i}}function fe(e,t){let n=P(`/`),r=new Uint16Array(6);for(let t of e)j(!1,r,t,1,n,0);N(n),t.masksTree=n,t.flatCache=D(1e3)}function pe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=I(e,t.masksTree);return t.flatCache.set(e,r),r}function me(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=P(`/`),j(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),I(r,o,n)}function he(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=I(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=R(a.route)),t.matchCache.set(r,a),a}function ge(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function _e(e,t=!1,n){let r=P(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return j(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&E(),a[e.id]=e,s!==0&&e.path){let t=ge(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),N(r),{processedTree:{segmentTree:r,singleCache:D(1e3),matchCache:D(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function I(e,t,n=!1){let r=e.split(`/`),i=ye(e,r,t,n);if(!i)return null;let[a]=L(e,r,i);return{route:i.node.route,rawParams:a}}function L(e,t,n){let r=ve(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+z(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+z(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+z(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+z(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===O)>(e.node.kind===O)||t.node.kind===O==(e.node.kind===O)&&t.depth>e.depth))):!0}function be(e){return U(e.filter(e=>e!==void 0).join(`/`))}function U(e){return e.replace(/\/{2,}/g,`/`)}function W(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function G(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function xe(e){return G(W(e))}function K(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Se(e,t,n){return K(e,n)===K(t,n)}function Ce({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&u(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(u(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=U(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function we(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function q(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>J(e,n)).join(`/`):J(r,n):r}function Te({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s!0,()=>!1)}function De(){return()=>{}}var Z=i.createContext(null);function Oe(e){return i.useContext(Z)}var ke=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Q=t(((e,t)=>{t.exports=ke()})),Ae=t((e=>{var t=r(),n=Q();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),$=t(((e,t)=>{t.exports=Ae()})),je=$();function Me(e,t){return e===t}function Ne(e,t,n=Me){let r=(0,i.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,i.useCallback)(()=>e?.get(),[e]);return(0,je.useSyncExternalStoreWithSelector)(r,a,a,t,n)}export{C as A,_ as B,_e as C,ue as D,T as E,ie as F,o as G,a as H,te as I,s as K,b as L,se as M,f as N,ee as O,h as P,ne as R,fe as S,E as T,l as U,v as V,c as W,G as _,Z as a,he as b,U as c,Te as d,be as f,W as g,xe as h,Oe as i,le as j,ce as k,we as l,Ce as m,$ as n,Ee as o,K as p,Q as r,X as s,Ne as t,Se as u,R as v,D as w,me as x,pe as y,u as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/zod.js b/spinifex/services/spinifexui/frontend/dist/assets/zod.js index 4bef8f43a..b1098a08f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/zod.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/zod.js @@ -1 +1 @@ -import{a as e,r as t}from"./compiler-runtime.js";import{M as n,N as r,P as i}from"./SignatureV4.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),p=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g=e=>/^\w*$/.test(e),_=e=>e===void 0,v=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>v(e.replace(/["|']|\]/g,``).split(/\.|\[/)),b=(e,t,n)=>{if(!t||!u(e))return n;let r=(g(t)?[t]:y(t)).reduce((e,t)=>c(e)?void 0:e[t],e);return _(r)||r===e?_(e[t])?n:e[t]:r},x=e=>typeof e==`boolean`,S=e=>typeof e==`function`,C=(e,t,n)=>{let r=-1,i=g(t)?[t]:y(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==T.all&&(t._proxyFormState[i]=!r||T.all),n&&(n[i]=!0),e[i]}});return i},M=typeof window<`u`?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),b(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),b(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e);function L(e,t,n=new WeakSet){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function R(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function z(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=f(i._names.array,n),u=R({control:i,name:n,defaultValue:a.useMemo(()=>b(i._formValues,n,b(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),g=a.useRef(i.register(n,{...e.rules,value:u,...x(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let v=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(p.validatingFields,n)},error:{enumerable:!0,get:()=>b(p.errors,n)}}),[p,n]),y=a.useCallback(e=>g.current.onChange({target:{value:d(e),name:n},type:w.CHANGE}),[n]),T=a.useCallback(()=>g.current.onBlur({target:{value:b(i._formValues,n),name:n},type:w.BLUR}),[n,i._formValues]),E=a.useCallback(e=>{let t=b(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>S(e.focus)&&e.focus(),select:()=>S(e.select)&&e.select(),setCustomValidity:t=>S(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>S(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),D=a.useMemo(()=>({name:n,value:u,...x(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:y,onBlur:T,ref:E}),[n,r,p.disabled,y,T,E,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...x(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=b(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(b(i._options.defaultValues,n,m.current.defaultValue));C(i._defaultValues,n,e),_(b(i._formValues,n))&&C(i._formValues,n,e)}return!l&&i.register(n),()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:D,formState:p,fieldState:v}),[D,p,v])}var ee=e=>e.render(z(e)),te=a.createContext(null);te.displayName=`HookFormContext`;var ne=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},B=e=>Array.isArray(e)?e:[e],re=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ie(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=ie(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var V=e=>u(e)&&!Object.keys(e).length,ae=e=>e.type===`file`,oe=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},se=e=>e.type===`select-multiple`,ce=e=>e.type===`radio`,le=e=>ce(e)||o(e),ue=e=>oe(e)&&e.isConnected;function de(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(S(e[t]))return!0;return!1};function U(e){return Array.isArray(e)||u(e)&&!pe(e)}function me(e,t={}){for(let n in e){let r=e[n];U(r)?(t[n]=Array.isArray(r)?[]:{},me(r,t[n])):_(r)||(t[n]=!0)}return t}function W(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>W(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=W(e[n]);_(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function G(e,t,n){n||=me(t);for(let r in e){let i=e[r];if(U(i))_(t)||I(n[r])?n[r]=me(i,Array.isArray(i)?[]:{}):G(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return W(n)||{}}var K={value:!1,isValid:!1},he={value:!0,isValid:!0},q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_(e[0].attributes.value)?_(e[0].value)||e[0].value===``?he:{value:e[0].value,isValid:!0}:he:K}return K},ge=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,J={isValid:!1,value:null},_e=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,J):J;function ve(e){let t=e.ref;return ae(t)?t.files:ce(t)?_e(e.refs).value:se(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?q(e.refs).value:ge(_(t.value)?e.ref.value:t.value,e)}var ye=(e,t,n,r)=>{let i={};for(let n of e){let e=b(t,n);e&&C(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Y=e=>e instanceof RegExp,X=e=>_(e)?e:Y(e)?e.source:u(e)?Y(e.value)?e.value.source:e.value:e,be=e=>({isOnSubmit:!e||e===T.onSubmit,isOnBlur:e===T.onBlur,isOnChange:e===T.onChange,isOnAll:e===T.all,isOnTouch:e===T.onTouched}),xe=`AsyncFunction`,Se=e=>!!e&&!!e.validate&&!!(S(e.validate)&&e.validate.constructor.name===xe||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===xe)),Ce=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),we=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Te=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=b(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(Te(a,t))break}else if(u(a)&&Te(a,t))break}}};function Ee(e,t,n){let r=b(e,n);if(r||g(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=b(t,r),o=b(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var De=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return V(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||T.all))},Oe=(e,t,n)=>!e||!t||e===t||B(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),ke=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ae=(e,t)=>!v(b(e,t)).length&&H(e,t),je=(e,t,n)=>{let r=B(b(e,n));return C(r,O,t[n]),C(e,n,r),e};function Z(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||x(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Q=e=>u(e)&&!Y(e)?e:{value:e,message:``},Me=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:v,name:y,valueAsNumber:C,mount:w}=e._f,T=b(n,y);if(!w||t.has(y))return{};let D=l?l[0]:s,O=e=>{i&&D.reportValidity&&(D.setCustomValidity(x(e)?``:e||``),D.reportValidity())},k={},A=ce(s),j=o(s),M=A||j,N=(C||ae(s))&&_(s.value)&&_(T)||oe(s)&&s.value===``||T===``||Array.isArray(T)&&!T.length||C&&typeof T==`number`&&isNaN(T),F=ne.bind(null,y,r,k),I=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(T)||!T.length:d&&(!M&&(N||c(T))||x(T)&&!T||j&&!q(l).isValid||A&&!_e(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Q(d);if(e&&(k[y]={type:E.required,message:t,ref:D,...F(E.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=Q(h),i=Q(m);if(!c(T)&&!isNaN(T)){let r=s.valueAsNumber||T&&+T;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&T&&(e=o?a(T)>a(n.value):c?T>n.value:r>new Date(n.value)),P(i.value)&&T&&(t=o?a(T)+e.value,i=!c(t.value)&&T.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(T)){let{value:e,message:t}=Q(g);if(Y(e)&&!T.match(e)&&(k[y]={type:E.pattern,message:t,ref:s,...F(E.pattern,t)},!r))return O(t),k}if(v){if(S(v)){let e=Z(await v(T,n),D);if(e&&(k[y]={...e,...F(E.validate,e.message)},!r))return O(e.message),k}else if(u(v)){let e={};for(let t in v){if(!V(e)&&!r)break;let i=Z(await v[t](T,n),D,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!V(e)&&(k[y]={ref:D,...e},!r))return k}}return O(!0),k},Ne={mode:T.onSubmit,reValidateMode:T.onChange,shouldFocusError:!0},Pe={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Fe(e={}){let t={...Ne,...e},n={...h(Pe),isLoading:S(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},g,y=0,k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={...k},j={...A},M={array:re(),state:re()},N=t.criteriaMode===T.all,I=e=>t=>{clearTimeout(y),y=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(A.isValid||j.isValid||e)){let e;t.resolver?(e=V((await U()).errors),z()):e=await K({fields:r,onlyCheckValid:!0,eventType:w.VALID}),e!==n.isValid&&M.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(A.isValidating||A.validatingFields||j.isValidating||j.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?C(n.validatingFields,e,r):H(n.validatingFields,e))}),M.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},ee=()=>{n.dirtyFields=G(i,a)},te=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(b(r,e))){let t=o(b(r,e),s.argA,s.argB);c&&C(r,e,t)}if(u&&Array.isArray(b(n.errors,e))){let t=o(b(n.errors,e),s.argA,s.argB);c&&C(n.errors,e,t),Ae(n.errors,e)}if((A.touchedFields||j.touchedFields)&&u&&Array.isArray(b(n.touchedFields,e))){let t=o(b(n.touchedFields,e),s.argA,s.argB);c&&C(n.touchedFields,e,t)}(A.dirtyFields||j.dirtyFields)&&ee(),M.state.next({name:e,isDirty:q(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(a,e,i)},ne=(e,t)=>{C(n.errors,e,t),M.state.next({errors:n.errors})},ce=e=>{n.errors=e,M.state.next({errors:n.errors,isValid:!1})},de=(e,t,o,s)=>{let c=b(r,e);if(c){let r=_(b(a,e)),u=b(a,e,_(o)?b(i,e):o);_(u)||s&&s.defaultChecked||t?C(a,e,t?u:ve(c._f)):Y(e,u),l.mount&&!l.action&&(R(),r&&n.isDirty&&(A.isDirty||j.isDirty)&&(q()||(n.isDirty=!1,M.state.next({...n}))))}},fe=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(A.isDirty||j.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=q(),c=l!==u.isDirty);let t=L(b(i,e),r);l=!!b(n.dirtyFields,e),t?H(n.dirtyFields,e):C(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(A.dirtyFields||j.dirtyFields)&&l!==!t}if(a){let t=b(n.touchedFields,e);t||(C(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(A.touchedFields||j.touchedFields)&&t!==a)}c&&s&&M.state.next(u)}return c?u:{}},pe=(e,r,i,a)=>{let o=b(n.errors,e),s=(A.isValid||j.isValid)&&x(r)&&n.isValid!==r;if(t.delayError&&i?(g=I(()=>ne(e,i)),g(t.delayError)):(clearTimeout(y),g=null,i?C(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!V(a)||s){let t={...a,...s&&x(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},M.state.next(t)}},U=async e=>(z(e,!0),await t.resolver(a,t.context,ye(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),me=async e=>{let{errors:t}=await U(e);if(z(e),e)for(let r of e){let e=b(t,r);e?C(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},W=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i)i[e]&&$(`${D}.${e}`,{message:P(i.message)?i.message:``,type:E.validate});else P(i)||!i?$(D,{message:i||``,type:E.validate}):Be(D);return i}return!0},K=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await W({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&Se(l._f);s&&A.validatingFields&&z([r.name],!0);let u=await Me(l,p.disabled,a,N,t.shouldUseNativeValidation&&!i,o);if(s&&A.validatingFields&&z([r.name]),u[r.name]&&(c.valid=!1,i)||(!i&&(b(u,r.name)?o?je(n.errors,u,r.name):C(n.errors,r.name,u[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&u[r.name]))break}!V(u)&&await K({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},he=()=>{for(let e of p.unMount){let t=b(r,e);t&&(t._f.refs?t._f.refs.every(e=>!ue(e)):!ue(t._f.ref))&&We(e)}p.unMount=new Set},q=(e,n)=>!t.disabled&&(e&&n&&C(a,e,n),!L(Re(),i)),J=(e,t,n)=>F(e,p,{...l.mount?a:_(t)?i:P(e)?{[e]:t}:t},n,t),_e=e=>v(b(l.mount?a:i,e,t.shouldUnregister?b(i,e,[]):[])),Y=(e,t,n={})=>{let i=b(r,e),s=t;if(i){let n=i._f;n&&(!n.disabled&&C(a,e,ge(t,n)),s=oe(n.ref)&&c(t)?``:t,se(n.ref)?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):n.refs.forEach(e=>e.checked=e.value===s):ae(n.ref)?n.ref.value=``:(n.ref.value=s,n.ref.type||M.state.next({name:e,values:h(a)})))}(n.shouldDirty||n.shouldTouch)&&fe(e,s,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Le(e)},xe=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=b(r,o);(p.array.has(e)||u(a)||c&&!c._f)&&!s(a)?xe(o,a,n):Y(o,a,n)}},Z=(e,t,i={})=>{let o=b(r,e),s=p.array.has(e),u=h(t),d=L(b(a,e),u);if(C(a,e,u),s)M.array.next({name:e,values:h(a)}),(A.isDirty||A.dirtyFields||j.isDirty||j.dirtyFields)&&i.shouldDirty&&(ee(),M.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:q(e,u)}));else{let t=Array.isArray(u)&&!u.length||V(u);!o||o._f||c(u)||t?Y(e,u,i):xe(e,u,i)}if(!d){let t=we(e,p);M.state.next({...t&&n,name:l.mount||t?e:void 0,values:h(a)})}},Q=e=>{let t=S(e)?e(a):e;L(a,t)||(a={...a,...t},M.state.next({...n,values:a}))},Fe=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=b(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,b(a,c,e))},_=be(t.mode),v=be(t.reValidateMode);if(f){let s,l,y=o.type?ve(f._f):d(i),x=i.type===w.BLUR||i.type===w.FOCUS_OUT,S=!Ce(f._f)&&!e.validate&&!t.resolver&&!b(n.errors,c)&&!f._f.deps||ke(x,b(n.touchedFields,c),n.isSubmitted,v,_),T=we(c,p,x);C(a,c,y),x?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),g&&g(0)):f._f.onChange&&f._f.onChange(i);let E=fe(c,y,x),D=!V(E)||T;if(!x&&M.state.next({name:c,type:i.type,values:h(a)}),S)return(A.isValid||j.isValid)&&(t.mode===`onBlur`?x&&R():x||R()),D&&M.state.next({name:c,...T?{}:E});if(!t.resolver&&e.validate&&await W({name:c,eventType:i.type}),!x&&T&&M.state.next({...n}),t.resolver){let{errors:e}=await U([c]);if(z([c]),m(y),u){let t=Ee(n.errors,r,c),i=Ee(e,r,t.name||c);s=i.error,c=i.name,l=V(e)}}else z([c],!0),s=(await Me(f,p.disabled,a,N,t.shouldUseNativeValidation))[c],z([c]),m(y),u&&(s?l=!1:(A.isValid||j.isValid)&&(l=await K({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&Le(f._f.deps),pe(c,l,s,E))}},Ie=(e,t)=>{if(b(n.errors,t)&&e.focus)return e.focus(),1},Le=async(e,i={})=>{let a,o,s=B(e);if(t.resolver){let t=await me(_(e)?e:s);a=V(t),o=e?!s.some(e=>b(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=b(r,e);return await K({fields:t&&t._f?{[e]:t}:t,eventType:w.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await K({fields:r,name:e,eventType:w.TRIGGER});return M.state.next({...!P(e)||(A.isValid||j.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&Te(r,Ie,e?s:p.mount),o},Re=(e,t)=>{let r={...l.mount?a:i};return t&&(r=ie(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),_(e)?r:P(e)?b(r,e):e.map(e=>b(r,e))},ze=(e,t)=>({invalid:!!b((t||n).errors,e),isDirty:!!b((t||n).dirtyFields,e),error:b((t||n).errors,e),isValidating:!!b(n.validatingFields,e),isTouched:!!b((t||n).touchedFields,e)}),Be=e=>{let t=e?B(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{M.state.next({name:e,errors:n.errors})}):M.state.next({errors:{}})},$=(e,t,i)=>{let a=(b(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=b(n.errors,e)||{};C(n.errors,e,{...l,...t,ref:a}),M.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ve=(e,t)=>S(e)?M.state.subscribe({next:n=>`values`in n&&e(n.values||J(void 0,t),n)}):J(e,t,!0),He=e=>M.state.subscribe({next:t=>{if(Oe(e.name,t.name,e.exact)&&De(t,e.formState||A,et,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,Ue=e=>(l.mount=!0,j={...j,...e.formState},He({...e,formState:{...k,...e.formState}})),We=(e,o={})=>{for(let s of e?B(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);M.state.next({values:h(a)}),M.state.next({...n,...o.keepDirty?{isDirty:q()}:{}}),!o.keepIsValid&&R()},Ge=({disabled:e,name:t})=>{if(x(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},Ke=(e,n={})=>{let a=b(r,e),o=x(n.disabled)||x(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return C(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Ge({disabled:x(n.disabled)?n.disabled:t.disabled,name:e}):de(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:X(n.min),max:X(n.max),minLength:X(n.minLength),maxLength:X(n.maxLength),pattern:X(n.pattern)}:{},name:e,onChange:Fe,onBlur:Fe,ref:o=>{if(o){p.registerName.add(e),Ke(e,n),p.registerName.delete(e),a=b(r,e);let t=_(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=le(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;C(r,e,{_f:{...a._f,...s?{refs:[...c.filter(ue),t,...Array.isArray(b(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),de(e,!1,void 0,t)}else a=b(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e)&&l.action)&&p.unMount.add(e)}}},qe=()=>t.shouldFocusError&&Te(r,Ie,p.mount),Je=e=>{x(e)&&(M.state.next({disabled:e}),Te(r,(t,n)=>{let i=b(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Ye=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(M.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await U();z(),n.errors=e,c=h(t)}else await K({fields:r,eventType:w.SUBMIT});if(p.disabled.size)for(let e of p.disabled)H(c,e);if(H(n.errors,O),V(n.errors)){M.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),qe(),setTimeout(qe);if(M.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},Xe=(e,t={})=>{b(r,e)&&(_(t.defaultValue)?Z(e,h(b(i,e))):(Z(e,t.defaultValue),C(i,e,h(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?q(e,h(b(i,e))):q()),t.keepError||(H(n.errors,e),A.isValid&&R()),M.state.next({...n}))},Ze=(e,o={})=>{let s=e?h(e):i,c=h(s),u=V(e),d=u?i:c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(G(i,a))]);for(let t of Array.from(e)){let e=b(n.dirtyFields,t),r=b(a,t),i=b(d,t);e&&!_(r)?C(d,t,r):!e&&!_(i)&&Z(t,i)}}else{if(m&&_(e))for(let e of p.mount){let t=b(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(oe(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)Z(e,b(d,e));else r={}}a=t.shouldUnregister?o.keepDefaultValues?h(i):{}:h(d),M.array.next({values:{...d}}),M.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!A.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!V(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),M.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?G(i,a):n.dirtyFields:o.keepDefaultValues&&e?G(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Qe=(e,n)=>Ze(S(e)?e(a):e,{...t.resetOptions,...n}),$e=(e,t={})=>{let n=b(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&S(e.select)&&e.select()})}},et=e=>{n={...n,...e}},tt={control:{register:Ke,unregister:We,getFieldState:ze,handleSubmit:Ye,setError:$,_subscribe:He,_runSchema:U,_updateIsValidating:z,_focusError:qe,_getWatch:J,_getDirty:q,_setValid:R,_setFieldArray:te,_setDisabledField:Ge,_setErrors:ce,_getFieldArray:_e,_reset:Ze,_resetDefaultValues:()=>S(t.defaultValues)&&t.defaultValues().then(e=>{Qe(e,t.resetOptions),M.state.next({isLoading:!1})}),_removeUnmounted:he,_disableForm:Je,_subjects:M,_proxyFormState:A,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:Ue,trigger:Le,register:Ke,handleSubmit:Ye,watch:Ve,setValue:Z,setValues:Q,getValues:Re,reset:Qe,resetField:Xe,clearErrors:Be,unregister:We,setError:$,setFocus:$e,getFieldState:ze};return{...tt,formControl:tt}}function Ie(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState(()=>({...h(Pe),isLoading:S(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:S(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!S(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Fe(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,M(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(r,o),[o,r]),t.current}var Le=(e,t,n)=>{if(e&&`reportValidity`in e){let r=b(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},Re=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Le(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Le(t,n,e))}},ze=(e,t)=>{t.shouldUseNativeValidation&&Re(e,t);let n={};for(let r in e){let i=b(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Be(t.names||Object.keys(e),r)){let e=Object.assign({},b(n,r));C(e,`root`,a),C(n,r,e)}else C(n,r,a)}return n},Be=(e,t)=>{let n=$(t);return e.some(e=>$(e).match(`^${n}\\.\\d+`))};function $(e){return e.replace(/\]|\[/g,``)}function Ve(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function He(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ue(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function We(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(Ve(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&Re({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:ze(He(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(Ve(function(){return Promise.resolve((a.mode===`sync`?n:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&Re({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof i}(e))return{values:{},errors:ze(Ue(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{ee as n,Ie as r,We as t}; \ No newline at end of file +import{Do as e,co as t,gr as n,hr as r,mr as i}from"./index.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>{let n=t.split(`.`),r=[],i=n[0];for(let t=1;t{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g=e=>/^\w*$/.test(e),_=e=>e===void 0,v=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>v(e.replace(/["|']|\]/g,``).split(/\.|\[/)),b=(e,t,n)=>{if(!t||!u(e))return n;let r=(g(t)?[t]:y(t)).reduce((e,t)=>c(e)?void 0:e[t],e);return _(r)||r===e?_(e[t])?n:e[t]:r},x=e=>typeof e==`boolean`,S=e=>typeof e==`function`,C=(e,t,n)=>{let r=-1,i=g(t)?[t]:y(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==T.all&&(t._proxyFormState[i]=!r||T.all),n&&(n[i]=!0),e[i]}});return i},M=typeof window<`u`?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),b(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),b(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e);function L(e,t,n=new WeakSet){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ee(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function te(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=!!f(i._names.array,n).length,u=ee({control:i,name:n,defaultValue:a.useMemo(()=>b(i._formValues,n,b(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),g=a.useRef(i.register(n,{...e.rules,value:u,...x(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let v=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(p.validatingFields,n)},error:{enumerable:!0,get:()=>b(p.errors,n)}}),[p,n]),y=a.useCallback(e=>g.current.onChange({target:{value:d(e),name:n},type:w.CHANGE}),[n]),T=a.useCallback(()=>g.current.onBlur({target:{value:b(i._formValues,n),name:n},type:w.BLUR}),[n,i._formValues]),E=a.useCallback(e=>{let t=b(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>S(e.focus)&&e.focus(),select:()=>S(e.select)&&e.select(),setCustomValidity:t=>S(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>S(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),D=a.useMemo(()=>({name:n,value:u,...x(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:y,onBlur:T,ref:E}),[n,r,p.disabled,y,T,E,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...x(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=b(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(b(i._defaultValues,n,b(i._options.defaultValues,n,m.current.defaultValue)));C(i._defaultValues,n,e),_(b(i._formValues,n))&&C(i._formValues,n,e)}return!l&&i.register(n),()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:D,formState:p,fieldState:v}),[D,p,v])}var R=e=>e.render(te(e)),z=a.createContext(null);z.displayName=`HookFormContext`;var B=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},V=e=>Array.isArray(e)?e:[e],ne=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function re(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=re(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var H=e=>u(e)&&!Object.keys(e).length,ie=e=>e.type===`file`,ae=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},oe=e=>e.type===`select-multiple`,se=e=>e.type===`radio`,ce=e=>se(e)||o(e),le=e=>ae(e)&&e.isConnected;function ue(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(S(e[t]))return!0;return!1};function pe(e){return Array.isArray(e)||u(e)&&!fe(e)}function W(e,t={}){for(let n in e){let r=e[n];pe(r)?(t[n]=Array.isArray(r)?[]:{},W(r,t[n])):_(r)||(t[n]=!0)}return t}function me(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>me(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=me(e[n]);_(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function G(e,t,n){n||=W(t);for(let r in e){let i=e[r];if(pe(i))_(t)||I(n[r])?n[r]=W(i,Array.isArray(i)?[]:{}):G(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return me(n)||{}}var K={value:!1,isValid:!1},he={value:!0,isValid:!0},ge=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_(e[0].attributes.value)?_(e[0].value)||e[0].value===``?he:{value:e[0].value,isValid:!0}:he:K}return K},_e=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,q={isValid:!1,value:null},ve=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,q):q;function ye(e){let t=e.ref;return ie(t)?t.files:se(t)?ve(e.refs).value:oe(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?ge(e.refs).value:_e(_(t.value)?e.ref.value:t.value,e)}var be=(e,t,n,r)=>{let i={};for(let n of e){let e=b(t,n);e&&C(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},J=e=>e instanceof RegExp,Y=e=>_(e)?e:J(e)?e.source:u(e)?J(e.value)?e.value.source:e.value:e,xe=e=>({isOnSubmit:!e||e===T.onSubmit,isOnBlur:e===T.onBlur,isOnChange:e===T.onChange,isOnAll:e===T.all,isOnTouch:e===T.onTouched}),X=`AsyncFunction`,Se=e=>!!e&&!!e.validate&&!!(S(e.validate)&&e.validate.constructor.name===X||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===X)),Ce=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),we=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Z=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=b(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(Z(a,t))break}else if(u(a)&&Z(a,t))break}}};function Te(e,t,n){let r=b(e,n);if(r||g(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=b(t,r),o=b(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Ee=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return H(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||T.all))},De=(e,t,n)=>!e||!t||e===t||V(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Oe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,ke=(e,t)=>!v(b(e,t)).length&&U(e,t),Ae=(e,t,n)=>{let r=V(b(e,n));return C(r,O,t[n]),C(e,n,r),e};function je(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||x(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Q=e=>u(e)&&!J(e)?e:{value:e,message:``},Me=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:v,name:y,valueAsNumber:C,mount:w}=e._f,T=b(n,y);if(!w||t.has(y))return{};let D=l?l[0]:s,O=e=>{i&&D.reportValidity&&(D.setCustomValidity(x(e)?``:e||``),D.reportValidity())},k={},A=se(s),j=o(s),M=A||j,N=(C||ie(s))&&_(s.value)&&_(T)||ae(s)&&s.value===``||T===``||Array.isArray(T)&&!T.length||C&&typeof T==`number`&&isNaN(T),F=B.bind(null,y,r,k),I=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(T)||!T.length:d&&(!M&&(N||c(T))||x(T)&&!T||j&&!ge(l).isValid||A&&!ve(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Q(d);if(e&&(k[y]={type:E.required,message:t,ref:D,...F(E.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=Q(h),i=Q(m);if(!c(T)&&!isNaN(T)){let r=s.valueAsNumber||T&&+T;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&T&&(e=o?a(T)>a(n.value):c?T>n.value:r>new Date(n.value)),P(i.value)&&T&&(t=o?a(T)+e.value,i=!c(t.value)&&T.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(T)){let{value:e,message:t}=Q(g);if(J(e)&&!T.match(e)&&(k[y]={type:E.pattern,message:t,ref:s,...F(E.pattern,t)},!r))return O(t),k}if(v){if(S(v)){let e=je(await v(T,n),D);if(e&&(k[y]={...e,...F(E.validate,e.message)},!r))return O(e.message),k}else if(u(v)){let e={};for(let t in v){if(!H(e)&&!r)break;let i=je(await v[t](T,n),D,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!H(e)&&(k[y]={ref:D,...e},!r))return k}}return O(!0),k},Ne={mode:T.onSubmit,reValidateMode:T.onChange,shouldFocusError:!0},Pe={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Fe(e={}){let t={...Ne,...e},n={...h(Pe),isLoading:S(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},k,A=0,j={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},M={...j},N={...M},I={array:ne(),state:ne()},ee=t.criteriaMode===T.all,te=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(M.isValid||N.isValid||e)){let e;t.resolver?(e=H((await K()).errors),z()):e=await q({fields:r,onlyCheckValid:!0,eventType:w.VALID}),e!==n.isValid&&I.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(M.isValidating||M.validatingFields||N.isValidating||N.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?C(n.validatingFields,e,r):U(n.validatingFields,e))}),I.state.next({validatingFields:n.validatingFields,isValidating:!H(n.validatingFields)}))},B=()=>{n.dirtyFields=G(i,a)},se=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(b(r,e))){let t=o(b(r,e),s.argA,s.argB);c&&C(r,e,t)}if(u&&Array.isArray(b(n.errors,e))){let t=o(b(n.errors,e),s.argA,s.argB);c&&C(n.errors,e,t),ke(n.errors,e)}if((M.touchedFields||N.touchedFields)&&u&&Array.isArray(b(n.touchedFields,e))){let t=o(b(n.touchedFields,e),s.argA,s.argB);c&&C(n.touchedFields,e,t)}(M.dirtyFields||N.dirtyFields)&&B(),I.state.next({name:e,isDirty:J(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(a,e,i)},ue=(e,t)=>{C(n.errors,e,t),I.state.next({errors:n.errors})},de=e=>{n.errors=e,I.state.next({errors:n.errors,isValid:!1})},fe=e=>{let t=g(e)?[e]:y(e),n=a,r=i;for(let e=0;e{let c=b(r,e);if(c){if(fe(e))return;let r=_(b(a,e)),u=b(a,e,_(o)?b(i,e):o);_(u)||s&&s.defaultChecked||t?C(a,e,t?u:ye(c._f)):Q(e,u),l.mount&&!l.action&&(R(),r&&n.isDirty&&(M.isDirty||N.isDirty)&&(J()||(n.isDirty=!1,I.state.next({...n}))))}},W=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){(M.isDirty||N.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=J(),l=u!==d.isDirty);let t=L(b(i,e),r);u=!!b(n.dirtyFields,e),t===n.isDirty?t?U(n.dirtyFields,e):C(n.dirtyFields,e,!0):n.dirtyFields=G(i,a),d.dirtyFields=n.dirtyFields,l||=(M.dirtyFields||N.dirtyFields)&&u!==!t}if(o){let t=b(n.touchedFields,e);t||(C(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(M.touchedFields||N.touchedFields)&&t!==o)}l&&c&&I.state.next(d)}return l?d:{}},me=(e,r,i,a)=>{let o=b(n.errors,e),s=(M.isValid||N.isValid)&&x(r)&&n.isValid!==r;if(t.delayError&&i?(k=te(()=>ue(e,i)),k(t.delayError)):(clearTimeout(A),k=null,i?C(n.errors,e,i):U(n.errors,e)),(i?!L(o,i):o)||!H(a)||s){let t={...a,...s&&x(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},I.state.next(t)}},K=async e=>(z(e,!0),await t.resolver(a,t.context,be(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),he=async e=>{let{errors:t}=await K(e);if(z(e),e)for(let r of e){let e=b(t,r);e?p.array.has(r)&&u(e)?Ae(n.errors,{[r]:e},r):C(n.errors,r,e):U(n.errors,r)}else n.errors=t;return t},ge=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Ue(`${D}.${e}`,{message:P(t.message)?t.message:``,type:t.type||E.validate})}else P(i)||!i?Ue(D,{message:i||``,type:E.validate}):He(D);return i}return!0},q=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await ge({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&Se(l._f),u=M.validatingFields||M.isValidating||N.validatingFields||N.isValidating;s&&u&&z([r.name],!0);let d=await Me(l,p.disabled,a,ee,t.shouldUseNativeValidation&&!i,o);if(s&&u&&z([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(b(d,r.name)?o?Ae(n.errors,d,r.name):C(n.errors,r.name,d[r.name]):U(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!H(u)&&await q({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},ve=()=>{for(let e of p.unMount){let t=b(r,e);t&&(t._f.refs?t._f.refs.every(e=>!le(e)):!le(t._f.ref))&&qe(e)}p.unMount=new Set},J=(e,n)=>!t.disabled&&(e&&n&&C(a,e,n),!L(Be(),i)),X=(e,t,n)=>F(e,p,{...l.mount?a:_(t)?i:P(e)?{[e]:t}:t},n,t),je=e=>v(b(l.mount?a:i,e,t.shouldUnregister?b(i,e,[]):[])),Q=(e,t,n={})=>{let i=b(r,e),s=t;if(i){let n=i._f;n&&(!n.disabled&&C(a,e,_e(t,n)),s=ae(n.ref)&&c(t)?``:t,oe(n.ref)?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):n.refs.forEach(e=>e.checked=e.value===s):ie(n.ref)?n.ref.value=``:(n.ref.value=s,n.ref.type||I.state.next({name:e,values:h(a)})))}(n.shouldDirty||n.shouldTouch)&&W(e,s,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ze(e)},Fe=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=b(r,o);(p.array.has(e)||u(a)||c&&!c._f)&&!s(a)?Fe(o,a,n):Q(o,a,n)}},$=(e,t,i={})=>{let o=b(r,e),s=p.array.has(e),u=h(t),d=L(b(a,e),u);if(d||C(a,e,u),s)I.array.next({name:e,values:h(a)}),(M.isDirty||M.dirtyFields||N.isDirty||N.dirtyFields)&&i.shouldDirty&&(B(),I.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:J(e,u)}));else{let t=Array.isArray(u)&&!u.length||H(u);!o||o._f||c(u)||t?Q(e,u,i):Fe(e,u,i)}if(!d){let t=we(e,p),r=h(a);if(!s)for(let t of f(p.array,e))I.array.next({name:t,values:r});I.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},Ie=e=>{let t=S(e)?e(a):e;if(!L(a,t)){a={...a,...t};for(let e of p.mount)$(e,b(t,e));I.state.next({...n,values:a})}},Le=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=b(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,b(a,c,e))},g=xe(t.mode),_=xe(t.reValidateMode);if(f){let s,l,v=o.type?ye(f._f):d(i),y=i.type===w.BLUR||i.type===w.FOCUS_OUT,x=!Ce(f._f)&&!e.validate&&!t.resolver&&!b(n.errors,c)&&!f._f.deps||Oe(y,b(n.touchedFields,c),n.isSubmitted,_,g),S=we(c,p,y);C(a,c,v),y?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),k&&k(0)):f._f.onChange&&f._f.onChange(i);let T=W(c,v,y),E=!H(T)||S;if(!y&&I.state.next({name:c,type:i.type,values:h(a)}),x)return(M.isValid||N.isValid)&&(t.mode===`onBlur`?y&&R():y||R()),E&&I.state.next({name:c,...S?{}:T});if(!t.resolver&&e.validate&&await ge({name:c,eventType:i.type}),!y&&S&&I.state.next({...n}),t.resolver){let{errors:e}=await K([c]);if(z([c]),m(v),u){let t=Te(n.errors,r,c),i=Te(e,r,t.name||c);s=i.error,c=i.name,l=H(e)}}else z([c],!0),s=(await Me(f,p.disabled,a,ee,t.shouldUseNativeValidation))[c],z([c]),m(v),u&&(s?l=!1:(M.isValid||N.isValid)&&(l=await q({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&ze(f._f.deps),me(c,l,s,T))}},Re=(e,t)=>{if(b(n.errors,t)&&e.focus)return e.focus(),1},ze=async(e,i={})=>{let a,o,s=V(e);if(t.resolver){let t=await he(_(e)?e:s);a=H(t),o=e?!s.some(e=>b(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=b(r,e);return await q({fields:t&&t._f?{[e]:t}:t,eventType:w.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await q({fields:r,name:e,eventType:w.TRIGGER});return I.state.next({...!P(e)||(M.isValid||N.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&Z(r,Re,e?s:p.mount),o},Be=(e,t)=>{let r={...l.mount?a:i};return t&&(r=re(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),_(e)?r:P(e)?b(r,e):e.map(e=>b(r,e))},Ve=(e,t)=>({invalid:!!b((t||n).errors,e),isDirty:!!b((t||n).dirtyFields,e),error:b((t||n).errors,e),isValidating:!!b(n.validatingFields,e),isTouched:!!b((t||n).touchedFields,e)}),He=e=>{let t=e?V(e):void 0;t?.forEach(e=>U(n.errors,e)),t?t.forEach(e=>{I.state.next({name:e,errors:n.errors})}):I.state.next({errors:{}})},Ue=(e,t,i)=>{let a=(b(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=b(n.errors,e)||{};C(n.errors,e,{...l,...t,ref:a}),I.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},We=(e,t)=>S(e)?I.state.subscribe({next:n=>`values`in n&&e(n.values||X(void 0,t),n)}):X(e,t,!0),Ge=e=>I.state.subscribe({next:t=>{if(De(e.name,t.name,e.exact)&&Ee(t,e.formState||M,rt,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,Ke=e=>(l.mount=!0,N={...N,...e.formState},Ge({...e,formState:{...j,...e.formState}})),qe=(e,o={})=>{for(let s of e?V(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(U(r,s),U(a,s)),!o.keepError&&U(n.errors,s),!o.keepDirty&&U(n.dirtyFields,s),!o.keepTouched&&U(n.touchedFields,s),!o.keepIsValidating&&U(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&U(i,s);I.state.next({values:h(a)}),I.state.next({...n,...o.keepDirty?{isDirty:J()}:{}}),!o.keepIsValid&&R()},Je=({disabled:e,name:t})=>{if(x(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},Ye=(e,n={})=>{let a=b(r,e),o=x(n.disabled)||x(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return C(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Je({disabled:x(n.disabled)?n.disabled:t.disabled,name:e}):pe(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Y(n.min),max:Y(n.max),minLength:Y(n.minLength),maxLength:Y(n.maxLength),pattern:Y(n.pattern)}:{},name:e,onChange:Le,onBlur:Le,ref:o=>{if(o){p.registerName.add(e),Ye(e,n),p.registerName.delete(e),a=b(r,e);let t=_(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=ce(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;C(r,e,{_f:{...a._f,...s?{refs:[...c.filter(le),t,...Array.isArray(b(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),pe(e,!1,void 0,t)}else a=b(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e).length&&l.action)&&p.unMount.add(e)}}},Xe=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Z(r,Re,p.mount),Ze=e=>{x(e)&&(I.state.next({disabled:e}),Z(r,(t,n)=>{let i=b(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Qe=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(I.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await K();z(),n.errors=e,c=h(t)}else await q({fields:r,eventType:w.SUBMIT});if(p.disabled.size)for(let e of p.disabled)U(c,e);if(U(n.errors,O),H(n.errors)){I.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),Xe(),setTimeout(Xe);if(I.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},$e=(e,t={})=>{b(r,e)&&(_(t.defaultValue)?$(e,h(b(i,e))):($(e,t.defaultValue),C(i,e,h(t.defaultValue))),t.keepTouched||U(n.touchedFields,e),t.keepDirty||(U(n.dirtyFields,e),n.isDirty=t.defaultValue?J(e,h(b(i,e))):J()),t.keepError||(U(n.errors,e),M.isValid&&R()),I.state.next({...n}))},et=(e,o={})=>{let s=e?h(e):i,c=h(s),u=H(e),d=u?i:c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(G(i,a))]);for(let t of Array.from(e)){let e=b(n.dirtyFields,t),r=b(a,t),i=b(d,t);e&&!_(r)?C(d,t,r):!e&&!_(i)&&$(t,i)}}else{if(m&&_(e))for(let e of p.mount){let t=b(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ae(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)$(e,b(d,e));else r={}}a=t.shouldUnregister?o.keepDefaultValues?h(i):{}:h(d),I.array.next({values:{...d}}),I.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!M.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!H(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),I.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?G(i,a):n.dirtyFields:o.keepDefaultValues&&e?G(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},tt=(e,n)=>et(S(e)?e(a):e,{...t.resetOptions,...n}),nt=(e,t={})=>{let n=b(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&S(e.select)&&e.select()})}},rt=e=>{n={...n,...e}},it={control:{register:Ye,unregister:qe,getFieldState:Ve,handleSubmit:Qe,setError:Ue,_subscribe:Ge,_runSchema:K,_updateIsValidating:z,_focusError:Xe,_getWatch:X,_getDirty:J,_setValid:R,_setFieldArray:se,_setDisabledField:Je,_setErrors:de,_getFieldArray:je,_reset:et,_resetDefaultValues:()=>S(t.defaultValues)&&t.defaultValues().then(e=>{tt(e,t.resetOptions),I.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Ze,_subjects:I,_proxyFormState:M,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:Ke,trigger:ze,register:Ye,handleSubmit:Qe,watch:We,setValue:$,setValues:Ie,getValues:Be,reset:tt,resetField:$e,clearErrors:He,unregister:qe,setError:Ue,setFocus:nt,getFieldState:Ve};return{...it,formControl:it}}function $(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState(()=>({...h(Pe),isLoading:S(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:S(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!S(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Fe(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,M(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(r,o),[o,r]),t.current}var Ie=(e,t,n)=>{if(e&&`reportValidity`in e){let r=b(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},Le=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ie(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ie(t,n,e))}},Re=(e,t)=>{t.shouldUseNativeValidation&&Le(e,t);let n={};for(let r in e){let i=b(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(ze(t.names||Object.keys(e),r)){let e=Object.assign({},b(n,r));C(e,`root`,a),C(n,r,e)}else C(n,r,a)}return n},ze=(e,t)=>{let n=Be(t);return e.some(e=>Be(e).match(`^${n}\\.\\d+`))};function Be(e){return e.replace(/\]|\[/g,``)}function Ve(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function He(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=B(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ue(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=B(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function We(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(Ve(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&Le({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Re(He(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(Ve(function(){return Promise.resolve((a.mode===`sync`?i:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&Le({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof n}(e))return{values:{},errors:Re(Ue(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{R as n,$ as r,We as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/index.html b/spinifex/services/spinifexui/frontend/dist/index.html index ee68cef3d..201fbf542 100644 --- a/spinifex/services/spinifexui/frontend/dist/index.html +++ b/spinifex/services/spinifexui/frontend/dist/index.html @@ -8,31 +8,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/spinifex/services/spinifexui/frontend/oxlint.config.ts b/spinifex/services/spinifexui/frontend/oxlint.config.ts index 9ad7826f5..7d27664b4 100644 --- a/spinifex/services/spinifexui/frontend/oxlint.config.ts +++ b/spinifex/services/spinifexui/frontend/oxlint.config.ts @@ -49,6 +49,7 @@ export default defineConfig({ "eslint/require-unicode-regexp": "off", "eslint/sort-keys": "off", "import/consistent-type-specifier-style": "off", + "jsx-a11y/prefer-tag-over-role": "off", "typescript/no-confusing-void-expression": "off", "typescript/no-floating-promises": [ "error", diff --git a/spinifex/services/spinifexui/frontend/package.json b/spinifex/services/spinifexui/frontend/package.json index 637268e36..551e9c3c6 100644 --- a/spinifex/services/spinifexui/frontend/package.json +++ b/spinifex/services/spinifexui/frontend/package.json @@ -25,43 +25,43 @@ "@hookform/resolvers": "^5.2.2", "@smithy/protocol-http": "^5.3.14", "@smithy/signature-v4": "^5.3.14", - "@tanstack/react-query": "^5.100.9", - "@tanstack/react-router": "^1.169.2", + "@tanstack/react-query": "^5.100.10", + "@tanstack/react-router": "^1.170.1", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "lucide-react": "^1.14.0", + "lucide-react": "^1.16.0", "react": "^19.2.6", "react-dom": "^19.2.6", - "react-hook-form": "^7.75.0", - "tailwind-merge": "^3.5.0", + "react-hook-form": "^7.76.0", + "tailwind-merge": "^3.6.0", "tailwindcss": "^4.3.0", "zod": "^4.4.3" }, "devDependencies": { "@rolldown/plugin-babel": "^0.2.3", "@tailwindcss/vite": "^4.3.0", - "@tanstack/eslint-plugin-query": "^5.100.9", - "@tanstack/eslint-plugin-router": "^1.161.6", - "@tanstack/router-plugin": "^1.167.35", + "@tanstack/eslint-plugin-query": "^5.100.10", + "@tanstack/eslint-plugin-router": "^1.162.0", + "@tanstack/router-plugin": "^1.168.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", "@testing-library/user-event": "^14.6.1", "@types/node": "24.12.3", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", - "@typescript/native-preview": "7.0.0-dev.20260509.2", + "@typescript/native-preview": "7.0.0-dev.20260515.1", "@vitejs/plugin-basic-ssl": "^2.3.0", - "@vitejs/plugin-react": "^6.0.1", - "@vitest/coverage-v8": "^4.1.5", + "@vitejs/plugin-react": "^6.0.2", + "@vitest/coverage-v8": "^4.1.6", "babel-plugin-react-compiler": "^1.0.0", "happy-dom": "^20.9.0", - "oxfmt": "^0.48.0", - "oxlint": "^1.63.0", + "oxfmt": "^0.50.0", + "oxlint": "^1.65.0", "oxlint-tsgolint": "^0.22.1", "typescript": "^6.0.3", - "ultracite": "7.6.5", - "vite": "^8.0.11", - "vitest": "^4.1.5" + "ultracite": "7.7.0", + "vite": "^8.0.13", + "vitest": "^4.1.6" }, "packageManager": "pnpm@11.1.0+sha512.0c44e842e5686b2c061a81adda8b2258bd8818e9704b2cf2c63d56b931a7b2e910092e085027003b96ca3911ab56a07f6df5abaed2be9925034cdd686a535b14" } diff --git a/spinifex/services/spinifexui/frontend/pnpm-lock.yaml b/spinifex/services/spinifexui/frontend/pnpm-lock.yaml index 48f80d333..36755985c 100644 --- a/spinifex/services/spinifexui/frontend/pnpm-lock.yaml +++ b/spinifex/services/spinifexui/frontend/pnpm-lock.yaml @@ -28,7 +28,7 @@ importers: version: 3.1045.0(@aws-sdk/client-s3@3.1045.0) '@base-ui/react': specifier: ^1.4.1 - version: 1.4.1(@date-fns/tz@1.4.1)(@types/react@19.2.14)(date-fns@4.1.0)(react-dom@19.2.6(react@19.2.6))(react@19.2.6) + version: 1.4.1(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6) '@fontsource-variable/geist': specifier: ^5.2.8 version: 5.2.8 @@ -37,7 +37,7 @@ importers: version: 5.2.8 '@hookform/resolvers': specifier: ^5.2.2 - version: 5.2.2(react-hook-form@7.75.0(react@19.2.6)) + version: 5.2.2(react-hook-form@7.76.0(react@19.2.6)) '@smithy/protocol-http': specifier: ^5.3.14 version: 5.3.14 @@ -45,11 +45,11 @@ importers: specifier: ^5.3.14 version: 5.3.14 '@tanstack/react-query': - specifier: ^5.100.9 - version: 5.100.9(react@19.2.6) + specifier: ^5.100.10 + version: 5.100.10(react@19.2.6) '@tanstack/react-router': - specifier: ^1.169.2 - version: 1.169.2(react-dom@19.2.6(react@19.2.6))(react@19.2.6) + specifier: ^1.170.1 + version: 1.170.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -57,8 +57,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 lucide-react: - specifier: ^1.14.0 - version: 1.14.0(react@19.2.6) + specifier: ^1.16.0 + version: 1.16.0(react@19.2.6) react: specifier: ^19.2.6 version: 19.2.6 @@ -66,11 +66,11 @@ importers: specifier: ^19.2.6 version: 19.2.6(react@19.2.6) react-hook-form: - specifier: ^7.75.0 - version: 7.75.0(react@19.2.6) + specifier: ^7.76.0 + version: 7.76.0(react@19.2.6) tailwind-merge: - specifier: ^3.5.0 - version: 3.5.0 + specifier: ^3.6.0 + version: 3.6.0 tailwindcss: specifier: ^4.3.0 version: 4.3.0 @@ -80,19 +80,19 @@ importers: devDependencies: '@rolldown/plugin-babel': specifier: ^0.2.3 - version: 0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.0-rc.18)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + version: 0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) '@tailwindcss/vite': specifier: ^4.3.0 - version: 4.3.0(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + version: 4.3.0(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) '@tanstack/eslint-plugin-query': - specifier: ^5.100.9 - version: 5.100.9(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) + specifier: ^5.100.10 + version: 5.100.10(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) '@tanstack/eslint-plugin-router': - specifier: ^1.161.6 - version: 1.161.6(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) + specifier: ^1.162.0 + version: 1.162.0(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) '@tanstack/router-plugin': - specifier: ^1.167.35 - version: 1.167.35(@tanstack/react-router@1.169.2(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + specifier: ^1.168.1 + version: 1.168.1(@tanstack/react-router@1.170.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) '@testing-library/jest-dom': specifier: ^6.9.1 version: 6.9.1 @@ -112,17 +112,17 @@ importers: specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.14) '@typescript/native-preview': - specifier: 7.0.0-dev.20260509.2 - version: 7.0.0-dev.20260509.2 + specifier: 7.0.0-dev.20260515.1 + version: 7.0.0-dev.20260515.1 '@vitejs/plugin-basic-ssl': specifier: ^2.3.0 - version: 2.3.0(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + version: 2.3.0(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) '@vitejs/plugin-react': - specifier: ^6.0.1 - version: 6.0.1(@rolldown/plugin-babel@0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.0-rc.18)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)))(babel-plugin-react-compiler@1.0.0)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + specifier: ^6.0.2 + version: 6.0.2(@rolldown/plugin-babel@0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)))(babel-plugin-react-compiler@1.0.0)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) '@vitest/coverage-v8': - specifier: ^4.1.5 - version: 4.1.5(vitest@4.1.5) + specifier: ^4.1.6 + version: 4.1.6(vitest@4.1.6) babel-plugin-react-compiler: specifier: ^1.0.0 version: 1.0.0 @@ -130,11 +130,11 @@ importers: specifier: ^20.9.0 version: 20.9.0 oxfmt: - specifier: ^0.48.0 - version: 0.48.0 + specifier: ^0.50.0 + version: 0.50.0 oxlint: - specifier: ^1.63.0 - version: 1.63.0(oxlint-tsgolint@0.22.1) + specifier: ^1.65.0 + version: 1.65.0(oxlint-tsgolint@0.22.1) oxlint-tsgolint: specifier: ^0.22.1 version: 0.22.1 @@ -142,37 +142,20 @@ importers: specifier: ^6.0.3 version: 6.0.3 ultracite: - specifier: 7.6.5 - version: 7.6.5(oxfmt@0.48.0)(oxlint@1.63.0(oxlint-tsgolint@0.22.1)) + specifier: 7.7.0 + version: 7.7.0(oxfmt@0.50.0)(oxlint@1.65.0(oxlint-tsgolint@0.22.1)) vite: - specifier: ^8.0.11 - version: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + specifier: ^8.0.13 + version: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) vitest: - specifier: ^4.1.5 - version: 4.1.5(@types/node@24.12.3)(@vitest/coverage-v8@4.1.5)(happy-dom@20.9.0)(jsdom@28.1.0)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + specifier: ^4.1.6 + version: 4.1.6(@types/node@24.12.3)(@vitest/coverage-v8@4.1.6)(happy-dom@20.9.0)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) packages: - '@acemir/cssom@0.9.31': - resolution: {integrity: sha512-ZnR3GSaH+/vJ0YlHau21FjfLYjMpYVIzTD8M8vIEQvIGxeOXyXdzCI140rrCY862p/C/BbzWsjc1dgnM9mkoTA==} - '@adobe/css-tools@4.4.4': resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==} - '@asamuzakjp/css-color@5.1.11': - resolution: {integrity: sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - - '@asamuzakjp/dom-selector@6.8.1': - resolution: {integrity: sha512-MvRz1nCqW0fsy8Qz4dnLIvhOlMzqDVBabZx6lH+YywFDdjXhMY37SmpV1XFX3JzG5GWHn63j6HX6QPr3lZXHvQ==} - - '@asamuzakjp/generational-cache@1.0.1': - resolution: {integrity: sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - - '@asamuzakjp/nwsapi@2.3.9': - resolution: {integrity: sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==} - '@aws-crypto/crc32@5.2.0': resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==} engines: {node: '>=16.0.0'} @@ -416,11 +399,6 @@ packages: resolution: {integrity: sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==} engines: {node: '>=6.9.0'} - '@babel/parser@7.29.2': - resolution: {integrity: sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/parser@7.29.3': resolution: {integrity: sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==} engines: {node: '>=6.0.0'} @@ -485,57 +463,14 @@ packages: resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} - '@bramus/specificity@2.4.2': - resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==} - hasBin: true - - '@clack/core@1.3.0': - resolution: {integrity: sha512-xJPHpAmEQUBrXSLx0gF+q5K/IyihXpsHZcha+jB+tyahsKRK3Dxo4D0coZDewHo12NhiuzC3dTtMPbm53GEAAA==} + '@clack/core@1.3.1': + resolution: {integrity: sha512-fT1qHVGAag4IEkrupZ6lRRbNCs1vS9P01KB/sG8zKgvUztbYtFBtQpjSITNwooDZ83tpsPzP0mRNs1/KVszCRA==} engines: {node: '>= 20.12.0'} - '@clack/prompts@1.3.0': - resolution: {integrity: sha512-GgcWwRCs/xPtaqlMy8qRhPnZf9vlWcWZNHAitnVQ3yk7JmSralSiq5q07yaffYE8SogtDm7zFeKccx1QNVARpw==} + '@clack/prompts@1.4.0': + resolution: {integrity: sha512-S0My7XPGIgpRWMDG8uRqalbgT+a6FmCUdOW+HaIOVVpUPHOb7RrpvjTjiODadKp06fsrVDJZlIzc6yCTp4AnxA==} engines: {node: '>= 20.12.0'} - '@csstools/color-helpers@6.0.2': - resolution: {integrity: sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q==} - engines: {node: '>=20.19.0'} - - '@csstools/css-calc@3.2.0': - resolution: {integrity: sha512-bR9e6o2BDB12jzN/gIbjHa5wLJ4UjD1CB9pM7ehlc0ddk6EBz+yYS1EV2MF55/HUxrHcB/hehAyt5vhsA3hx7w==} - engines: {node: '>=20.19.0'} - peerDependencies: - '@csstools/css-parser-algorithms': ^4.0.0 - '@csstools/css-tokenizer': ^4.0.0 - - '@csstools/css-color-parser@4.1.0': - resolution: {integrity: sha512-U0KhLYmy2GVj6q4T3WaAe6NPuFYCPQoE3b0dRGxejWDgcPp8TP7S5rVdM5ZrFaqu4N67X8YaPBw14dQSYx3IyQ==} - engines: {node: '>=20.19.0'} - peerDependencies: - '@csstools/css-parser-algorithms': ^4.0.0 - '@csstools/css-tokenizer': ^4.0.0 - - '@csstools/css-parser-algorithms@4.0.0': - resolution: {integrity: sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==} - engines: {node: '>=20.19.0'} - peerDependencies: - '@csstools/css-tokenizer': ^4.0.0 - - '@csstools/css-syntax-patches-for-csstree@1.1.3': - resolution: {integrity: sha512-SH60bMfrRCJF3morcdk57WklujF4Jr/EsQUzqkarfHXEFcAR1gg7fS/chAE922Sehgzc1/+Tz5H3Ypa1HiEKrg==} - peerDependencies: - css-tree: ^3.2.1 - peerDependenciesMeta: - css-tree: - optional: true - - '@csstools/css-tokenizer@4.0.0': - resolution: {integrity: sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==} - engines: {node: '>=20.19.0'} - - '@date-fns/tz@1.4.1': - resolution: {integrity: sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA==} - '@emnapi/core@1.10.0': resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} @@ -545,162 +480,6 @@ packages: '@emnapi/wasi-threads@1.2.1': resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} - '@esbuild/aix-ppc64@0.27.7': - resolution: {integrity: sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.27.7': - resolution: {integrity: sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.27.7': - resolution: {integrity: sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.27.7': - resolution: {integrity: sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.27.7': - resolution: {integrity: sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.27.7': - resolution: {integrity: sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.27.7': - resolution: {integrity: sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.27.7': - resolution: {integrity: sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.27.7': - resolution: {integrity: sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.27.7': - resolution: {integrity: sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.27.7': - resolution: {integrity: sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.27.7': - resolution: {integrity: sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.27.7': - resolution: {integrity: sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.27.7': - resolution: {integrity: sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.27.7': - resolution: {integrity: sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.27.7': - resolution: {integrity: sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.27.7': - resolution: {integrity: sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-arm64@0.27.7': - resolution: {integrity: sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - - '@esbuild/netbsd-x64@0.27.7': - resolution: {integrity: sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-arm64@0.27.7': - resolution: {integrity: sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - - '@esbuild/openbsd-x64@0.27.7': - resolution: {integrity: sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - - '@esbuild/openharmony-arm64@0.27.7': - resolution: {integrity: sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openharmony] - - '@esbuild/sunos-x64@0.27.7': - resolution: {integrity: sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.27.7': - resolution: {integrity: sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.27.7': - resolution: {integrity: sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.27.7': - resolution: {integrity: sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@eslint-community/eslint-utils@4.9.1': resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -739,15 +518,6 @@ packages: resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@exodus/bytes@1.15.0': - resolution: {integrity: sha512-UY0nlA+feH81UGSHv92sLEPLCeZFjXOuHhrIo0HQydScuQc8s0A7kL/UdgwgDq8g8ilksmuoF35YVTNphV2aBQ==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - peerDependencies: - '@noble/hashes': ^1.8.0 || ^2.0.0 - peerDependenciesMeta: - '@noble/hashes': - optional: true - '@floating-ui/core@1.7.5': resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==} @@ -819,127 +589,127 @@ packages: '@nodable/entities@2.1.0': resolution: {integrity: sha512-nyT7T3nbMyBI/lvr6L5TyWbFJAI9FTgVRakNoBqCD+PmID8DzFrrNdLLtHMwMszOtqZa8PAOV24ZqDnQrhQINA==} - '@oxc-project/types@0.128.0': - resolution: {integrity: sha512-huv1Y/LzBJkBVHt3OlC7u0zHBW9qXf1FdD7sGmc1rXc2P1mTwHssYv7jyGx5KAACSCH+9B3Bhn6Z9luHRvf7pQ==} + '@oxc-project/types@0.130.0': + resolution: {integrity: sha512-ibD2usx9JRu7f5pu2tMKMI4cpA4NgXJQoYRP4pQ7Pxmn1l6k/53qWtQWZayhYy3X4QZkt90Ot+mJEaeXouio6Q==} - '@oxfmt/binding-android-arm-eabi@0.48.0': - resolution: {integrity: sha512-uwqk+/KhQvBIpULD8SMM/zAafMRC/+DV/xsEQjkkIsJ/kLmEI/2bxonVowcYTiXqqZ/a0FEW8DPkZY3VvwELDA==} + '@oxfmt/binding-android-arm-eabi@0.50.0': + resolution: {integrity: sha512-ICXQVKrDvsWUtfx6EiVJxfWrajKTwTfRV8vz2XiMkxZeuCKJLgD4YAj6dE3BWvpqDlkVkie4VSTAtMUWO9LDXg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxfmt/binding-android-arm64@0.48.0': - resolution: {integrity: sha512-VUCiKuXK5+McVssgHEJdrcGK7hRJzrRb36zm9/jwzMholyYt4BgXhw5Nm1V1DX6Ce717Zi/1jk432b/tgmQgtQ==} + '@oxfmt/binding-android-arm64@0.50.0': + resolution: {integrity: sha512-quwjLQFkuW6OwLHeDeIXsTzOmipQFQbqsYN9HLk2B5I01IlAQZHP1UiLIg0O7pP+dUgPD2AD7SCYA3gs6NH5/g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxfmt/binding-darwin-arm64@0.48.0': - resolution: {integrity: sha512-IkKp8rnIyQLW6Jt+6jragCbUVYSayk55lapiprLjIVvt4NczLyO/nwX2GgefLQ5iaBdfS8UEAFgCs/pLO6Cl0w==} + '@oxfmt/binding-darwin-arm64@0.50.0': + resolution: {integrity: sha512-ikU5umElcMi78/TNI334wtjr5WZ5F4nWa1aIDseAKKGL0W3ygxeYKkrIJ0fggWa8MOon66BmG3xCqmX1m9YAOw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxfmt/binding-darwin-x64@0.48.0': - resolution: {integrity: sha512-+aFuhsGIuvnoOjXyKVHMhPKJZR1kQkAl8QyrKoMlA7yJsSTC3N0Asl53La8TChSHhW8epToQ/Q0nvLmEmfNmLg==} + '@oxfmt/binding-darwin-x64@0.50.0': + resolution: {integrity: sha512-WT4MOYG4mv9IXrH0m60vHsJh+rRMPSOKTQmwDpwmgQ+DuW/i5dU4pqc0HDO5uclO5vjz5IFX5z/taW86LSVe/g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxfmt/binding-freebsd-x64@0.48.0': - resolution: {integrity: sha512-fbqzQL8FjI9gGnktI7RIo0dksDziTAYBy7xlI7jU7eID5fxLF/25fS4Xj6GydD8Y5oWHL83U4NK160QaOAxtyg==} + '@oxfmt/binding-freebsd-x64@0.50.0': + resolution: {integrity: sha512-gH0rycVXqV4juWkvLs2uPMtTyppDc7qEUVzXAxnQ7FpcSZNXqKowUgtjH8q67ngj416r8+4NnAlyR/D35zwwhQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxfmt/binding-linux-arm-gnueabihf@0.48.0': - resolution: {integrity: sha512-hn4i0zhAyTiB3ZHjQfYUZkDvrbVkohw1S7pySWxWUoZ87HnkDoTFThj7QTxk40hNPOTUP0vHbPRNamFIv1HBJQ==} + '@oxfmt/binding-linux-arm-gnueabihf@0.50.0': + resolution: {integrity: sha512-wL/k+o0hiTeRvi/gPzeC1L/yTHTXIeHDKWU09s2zTBmv7ma59wTm+fADNSGYxhJQDxyavQbwTf1QpW3Zj924tQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxfmt/binding-linux-arm-musleabihf@0.48.0': - resolution: {integrity: sha512-R4WBD9qF3QM9hqgdAa+fBGXmquTvDUujrPQ36t2Sjk8RPOSKGHDeN7l/khr10hqbQaOq9KCgPHG9ubNET/X/RQ==} + '@oxfmt/binding-linux-arm-musleabihf@0.50.0': + resolution: {integrity: sha512-Y59FKqoUM3Gf00E395b4ixfWyJGwO2GzaZawF5MZoVWcb3f6CkWUXyao0jyOvoIxDMzMybcVRuXyG7ih/Nxweg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxfmt/binding-linux-arm64-gnu@0.48.0': - resolution: {integrity: sha512-5bVdwSwlm1M8wbYCorLOxWxUBw/8tBvHYyQNIfwWVPwOJaj5vg1APSGJQVpwJfV5VNE9PSrR91UKEpoNwHhqUA==} + '@oxfmt/binding-linux-arm64-gnu@0.50.0': + resolution: {integrity: sha512-OvXbfTjMignXWyJXg/NOFsiy996vFe8wb9tkxJaUq8ylq0XrzJg3ttavC5Tcmm6F8/GUs2r3XFJWWu9q/27uYw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-arm64-musl@0.48.0': - resolution: {integrity: sha512-vCS3Fk7gFslTqE1lUE2IlroyVV7u/9SmMA/uBqDoshuck2psGWcjW0ePyPZI3rM3+qtf2pDaMVIKMHozraifuw==} + '@oxfmt/binding-linux-arm64-musl@0.50.0': + resolution: {integrity: sha512-rqmvHZm7vMa3NLYa0khwkhReCmp9tqKnF23TFZ7S5cYJLvIE4b0k8famWE7kO897/DXznJe675n5SohFBggbxA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxfmt/binding-linux-ppc64-gnu@0.48.0': - resolution: {integrity: sha512-gKtfFfueUClXDumyoHUbymqRf7prHejOOyzJK0eIJn93GF9JBdFHdo60TM1ZBHxkEwZvjuOgHmKtneKbEOc/Eg==} + '@oxfmt/binding-linux-ppc64-gnu@0.50.0': + resolution: {integrity: sha512-49bAdYbMSde42tzPDtuHnBWzOgmoS0PT9THCjvMnDVYMQYiHzPc2Mv5rkpBHVQOXM+PHfafJlxgK0anXSWBVvw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-riscv64-gnu@0.48.0': - resolution: {integrity: sha512-SYt0UhOvZD/UwZz9sXq6J2uAw8o24f5VZpLB2DH01f6MevshmlgakQlZe2lwek2sZJkd07eLu7mZa0g7yeiw7Q==} + '@oxfmt/binding-linux-riscv64-gnu@0.50.0': + resolution: {integrity: sha512-VFT25/6kckkIM62KeWB2bi+xCEmC/zC+DcMaIpEfaio8ulkGDLSiTz11TyK0eqgTl3x5OklYEGDWohvAgOr8Bw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-riscv64-musl@0.48.0': - resolution: {integrity: sha512-JLbrwck2AopG4ud/XklZO5N+qxGC7cS7ROvXZVNfx0MCLDDL2kGOLvzuWORkVjnjAM0CMAfIMU2zNBtQbM+4dw==} + '@oxfmt/binding-linux-riscv64-musl@0.50.0': + resolution: {integrity: sha512-BBJMuNy6jjkXjUUINF5UTQqb/nvjmtJad43Gp7bab0AAURAdthhJvduR7rHpWInpWYiaMzYsdrmURNcrmpxdZA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxfmt/binding-linux-s390x-gnu@0.48.0': - resolution: {integrity: sha512-mdxt5L8OQLxkQH+JVpdC/lknZNe0lX4hlO3d8+xvw2wToo+iDrid9tiGOd5bmHfUVd5wVhrUry0qlu5vq66NkQ==} + '@oxfmt/binding-linux-s390x-gnu@0.50.0': + resolution: {integrity: sha512-Xd4y+yjAYHKmryXhyUUwbyRD01iKfcvI74iE01L6p4F8SwjhZQXDshK+T8PcrPZLiFqH263P5xqJk94amjkjzQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-x64-gnu@0.48.0': - resolution: {integrity: sha512-oEz1BQwMrV7OMEFx/3VPDU3n9TM0AnxpktDYXjEg5i6nTX87wo18wSfBvkl4tzAICdKtoAQAdBIl7Y7hsPlx5w==} + '@oxfmt/binding-linux-x64-gnu@0.50.0': + resolution: {integrity: sha512-Qp96rYJru7l++7mk4R+eh8qq9GFfFAMdmoN6VGoRHI8AA1XMnUIzH4u+zOcKZZwY+irHdsaBldDearwB4nOH7A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxfmt/binding-linux-x64-musl@0.48.0': - resolution: {integrity: sha512-g2SKTTurP5mWjd8Ecait0erYqmltL4IqW1EwttM25BxM6NiTt4ubobJYMR1uox1V2QgG4UfHH10CGRvWlUixjw==} + '@oxfmt/binding-linux-x64-musl@0.50.0': + resolution: {integrity: sha512-5XLGp+yd5w2Key5LMqJO+X3XVsJKgeeUKljy32+MBF/J/JZ5m8WHl6dI5eOQOr3ixopxPiXIyDAxn3slI3UXiQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxfmt/binding-openharmony-arm64@0.48.0': - resolution: {integrity: sha512-CIg24VgheEpvolHL2gQuax5qcQ602bRMHrJ9g8XsQr3iVj9aSPgopigBKuMqrXsupwkrU+RQCn5cG8PgFntR6w==} + '@oxfmt/binding-openharmony-arm64@0.50.0': + resolution: {integrity: sha512-QAxwzh7+GHugCD7WuERolVs8TKQwXNIAZXAHHTecbKVc9oWBkWzOiLauQuezXS57tVcof5zhi1IjZ8tOV0htTg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxfmt/binding-win32-arm64-msvc@0.48.0': - resolution: {integrity: sha512-zeaWkcxcEULwkGF3I/HgEvcDPN8buYDrxibBUa/IFh5Vmwyge+KpLO+hEwSovW349H0O/C0Z2kaFmEzEDm00/Q==} + '@oxfmt/binding-win32-arm64-msvc@0.50.0': + resolution: {integrity: sha512-3nKN/kqClm9iCFWTwtJ9UpR5SGyExp5l3nw6uIiBt+3XitQtszin+vjHrL7JHfDksZ7Svigdaow2zqz/IKCfqw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxfmt/binding-win32-ia32-msvc@0.48.0': - resolution: {integrity: sha512-yiEKnIAGvx5CyZQOlMaNlZkAbwT7/Quk0j3WLt+PR5hK+qYjPTRRJYDfD77wCBPLvEYAG41v4KG3iL0H+uxoxg==} + '@oxfmt/binding-win32-ia32-msvc@0.50.0': + resolution: {integrity: sha512-3r6XZ8+X6qlLbXaPW2NygfiAWSpKbkE36pAVzS83mY+cYY+pSMalJ+qnCgkr92tr+Iqv988XKQ1CpARTg9ITbQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxfmt/binding-win32-x64-msvc@0.48.0': - resolution: {integrity: sha512-GSD2+7t2UoVMV2NgxXypa4bKewflPMAjYnF0Xw9/ht82ZfafAHhb8STwrEd7wlH2PFogt5zw3WVCxYJaHUdbeQ==} + '@oxfmt/binding-win32-x64-msvc@0.50.0': + resolution: {integrity: sha512-BSE8D8KsvquMG9vU+Qt4qGuoOcZ36rxU5S6ZkHNguj+MlWkXWCBETnno3yJ9CfWvfCrbmieaN9LK6hdcdHNZ/w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -974,219 +744,219 @@ packages: cpu: [x64] os: [win32] - '@oxlint/binding-android-arm-eabi@1.63.0': - resolution: {integrity: sha512-A9xLtQt7i0OA1PoB/meog6kikXI9CdwEp7ZwQqmgnpKn3G3b1orvTDy8CQ6T7w1HvDrgWGB78PkFKcWgibcTCg==} + '@oxlint/binding-android-arm-eabi@1.65.0': + resolution: {integrity: sha512-jDVaGNURT5pEA9qcabh6WusIoBNybOMMDPCx+EFt+gxo6rVvoUf0+73Xy5x81+ZrxU+ewk5uRBYifjy5pgkcnA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxlint/binding-android-arm64@1.63.0': - resolution: {integrity: sha512-SQo+ZMvdR9l3CxZp5W5gFNxSiDxclY6lOzzNpKYLF8asESpm3Pwumx0gER5T7aHLF1/2BAAtLD3DiDkdgy4V1A==} + '@oxlint/binding-android-arm64@1.65.0': + resolution: {integrity: sha512-v0z80IWNA7c9RhUydq9YprBxCVZrQ6Ixls2tdxUC1F/1FFqSfa7xTX+EJf0mj6+BKRg2zWXqWfcbJUnETlLlIw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxlint/binding-darwin-arm64@1.63.0': - resolution: {integrity: sha512-6W82XjJDTmMnjg30427l0dufpnyLoq7wEukKdM6/g2VIybRVuQiBVh43EA4b+UxZ3+tLcKm+Or/pXGNgLCEU8g==} + '@oxlint/binding-darwin-arm64@1.65.0': + resolution: {integrity: sha512-pL/mG/5gMzBwp1gdc5+Cwi87F9j3XRnPxHGyVj5Zd+dCEV5YkKt0L70PB3EGmEEHxgn4H+jnMS3xLuXs6mZW/Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxlint/binding-darwin-x64@1.63.0': - resolution: {integrity: sha512-CnWd/YCuVG5W1BYkjJEVbJG11o526O9qAwBEQM+nh8K19CRFUkFdROXCyYkGmroHEYQe4vgQ6+lh3550Lp35Xw==} + '@oxlint/binding-darwin-x64@1.65.0': + resolution: {integrity: sha512-jVTneaeuHtqTrKYnhrdH1buhnSorinvpy1sv43ayclfWx/e/DfdRWv+h1fopJcHQbYr5WMcZMmDvnfEBkPZ+1A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxlint/binding-freebsd-x64@1.63.0': - resolution: {integrity: sha512-a4eZAqrmtajqcxfdAzC+l7g3PaE3V8hpAYqqeD3fTxLXOMFdK3eNTZrU80n4dDEVm0JXy1aL5PqvqWldBl6zYA==} + '@oxlint/binding-freebsd-x64@1.65.0': + resolution: {integrity: sha512-8lJQ7B6RloYDUhwVdbSpwT2eKsCN5KP1Scn18ly1tytCuhXhbs0nkfKHT4jWWZBJqmynWuzd+78bF7wILrj6pw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxlint/binding-linux-arm-gnueabihf@1.63.0': - resolution: {integrity: sha512-tYUtU9TdbU3uXF5D62g5zXJ13iniFGhXQx5vp9cyEjGdbSAY3VdFBSaldYvyoDmgMZ0ZYuwQP1Y4t2Fhejwa0w==} + '@oxlint/binding-linux-arm-gnueabihf@1.65.0': + resolution: {integrity: sha512-EgmZY+DeWhLLEnNl70/49j3ltA8I6X9kxMfexupWi2Vwfp6RonGsBaHtGoedLolaU37ne7eDUgoxa3CFB95GZA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxlint/binding-linux-arm-musleabihf@1.63.0': - resolution: {integrity: sha512-I5r3twFf776UZg9dmRo2xbrKt00tTkORXEVe0ctg4vdTkQvJAjiCHxnbAU2HL1AiJ9cqADA76MAliuilsAWnvg==} + '@oxlint/binding-linux-arm-musleabihf@1.65.0': + resolution: {integrity: sha512-OJMWmAYRVBCPPxnYr3j5sXRwHPh1bAuMlTStGco1Z8q3HkvSH4h+A10E9MiRNYmLhUuli5a2P5wmfj8cagiF5Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxlint/binding-linux-arm64-gnu@1.63.0': - resolution: {integrity: sha512-t7ltUkg6FFh4b564QyGir8xIj/QZbXu8FlcRkcyW9+ztr/mfRHlvUOFd95pJCXi9s/L5DrUeWWgpXRS+V+6igQ==} + '@oxlint/binding-linux-arm64-gnu@1.65.0': + resolution: {integrity: sha512-D8uNi50LsYKgS0vGARZDRx05TBZeSxAVdLGddSEqQLSU7xsiqdImHPEw55xq8sKA5rCc/4au/5uS7FQALWdLCg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-arm64-musl@1.63.0': - resolution: {integrity: sha512-Q5mmZy/XWjuYFUuQyYjOvZ5U/JkKEwnpir6hGxhh6HcdP0V/BKxLo8dqkfF/t7r7AguB17dfS/8+go5AQDRR6g==} + '@oxlint/binding-linux-arm64-musl@1.65.0': + resolution: {integrity: sha512-IpbA8QGbwFehQhO+YaHwmoI81f93xvywpspf8HrdPCWOIeKwYfM1dhVhO4YKfZewTRRQEPY/JFjTOXTgkwhKrA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxlint/binding-linux-ppc64-gnu@1.63.0': - resolution: {integrity: sha512-uBGtuZ0TzLB4x5wVa82HGNvYqY8buwDhyCnCP0R0gkk9szqVsP0MeTtD5HX7EsEuFIt+aYmYxuxeVxs3nTSwtQ==} + '@oxlint/binding-linux-ppc64-gnu@1.65.0': + resolution: {integrity: sha512-ZSe8HgaZdgyHSv2+/pTG68z10+OarB18CkFKQOhRs3lmmP/p2vuigedK2e9d0ztoG2DU/duJzhxXBSjy/492HQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-riscv64-gnu@1.63.0': - resolution: {integrity: sha512-h4s6FwxE+9MeA181o0dnDwHP32Y/bG8EiB/vrD6Ib+AMt6haigDc/0bUtI/sLmQDBMJnUfaCmtSSrEAqjtEVrA==} + '@oxlint/binding-linux-riscv64-gnu@1.65.0': + resolution: {integrity: sha512-DcTERf++v6HyPHukKAr0JFTRqB+YeDEvqzRgNDMaz7jITPf+tlJIwRxodlAqoXMYhNVEZhXdQM5RAAYH8/oPuw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-riscv64-musl@1.63.0': - resolution: {integrity: sha512-2EaNcCBR8Mcjl5ARtuN3BdEpVkX7KpjSjMGZ/mJMIeaXgTtdz5ytg2VwygMSStA/k0ixfvZFoZOfjDEcouV5vQ==} + '@oxlint/binding-linux-riscv64-musl@1.65.0': + resolution: {integrity: sha512-xjhMwuFJwRh40NOBzol4gM5gqAa0xPCJU+GQLM6BydV8TbfkIA7JeyCFNhyfbE9Q/5EWcKYTx62R0cRcjP7DAA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxlint/binding-linux-s390x-gnu@1.63.0': - resolution: {integrity: sha512-p4hlf/fd7TrYYl3QrWWD0GocqJefwMu3cHQhmi2FvEB/YOvFb5DZN3SMBaPi7B1TM5DeypkEtrVib674q1KKPg==} + '@oxlint/binding-linux-s390x-gnu@1.65.0': + resolution: {integrity: sha512-lrWSXb8JzboPWYBG6Kunt/eemvjo2oCFXktShsm3yMToY7HjzKLjxh7CljSvGnnZH9oohNFHOKc9xYpGKCPm6w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxlint/binding-linux-x64-gnu@1.63.0': - resolution: {integrity: sha512-Vgq9rkRVcPcjbcH+ihYTfpeR7vCXfqpd+z5ItTGc0yYUV59L5ceHYN1iV4H9bKGV7Rn5hkVc7x3mSvHegduENA==} + '@oxlint/binding-linux-x64-gnu@1.65.0': + resolution: {integrity: sha512-A7xfghw250m4a1sPV+q44Mow2G5bhiC9FBvhAuIhJS6QovWnqzuL5AFQPEuwOB+PM4DhABkqxVa3Iwe3Y/nFlQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxlint/binding-linux-x64-musl@1.63.0': - resolution: {integrity: sha512-3/Lkq/ncooA61rorrC+ZQed1Bc4VpGj+WnGsp58zmxKgvZ2vhreu+dcVyr3mX8NUpq7mfZ4gDDTou/yrF1Pd7A==} + '@oxlint/binding-linux-x64-musl@1.65.0': + resolution: {integrity: sha512-reqOun1+pWO3fW6cv7bsa8hHG0TN3t/82qPdaoJo90FwugXiMjKhZMChmH5Z01cFNRHmxN4+543Fy8478cM/iA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxlint/binding-openharmony-arm64@1.63.0': - resolution: {integrity: sha512-0/EdD/6hDkx5Mfd769PTjvEM8mZ/6Dfukp1dBCL/2PjlIVGEtYdNZyok6ChqYPsT9JcFnlQnUeQzO0/1L/oC9w==} + '@oxlint/binding-openharmony-arm64@1.65.0': + resolution: {integrity: sha512-KQpqOb/juDBO0xyloDkVDhOVxDUgAfZ2OAAVq99TJScJDzT319xry1QzB9LQohV9QGnA7p6m/XATZkMXc84lwA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxlint/binding-win32-arm64-msvc@1.63.0': - resolution: {integrity: sha512-wb0CUkN8ngwPiRQBjD1Cj0LsHeNvm+Xt6YBHDMtj2DVQVD6Oj8Ri7g6BD+KICf6LaBqZlmzOvy6nF9E/8yyGOg==} + '@oxlint/binding-win32-arm64-msvc@1.65.0': + resolution: {integrity: sha512-xfqcOc3nJFeAd1kDY4T9d3XeJIhr00twaaW0kOAzGPyUHkruXtNJv6zz1Ra9fRtSek5VpW2Yoj5AcwPIlT0ZiQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxlint/binding-win32-ia32-msvc@1.63.0': - resolution: {integrity: sha512-BX5iq+ovdNlVYhSn5qPMUIT0uwAwt2lmEnCnzK+Gkhw4DovIvhGb96OFhV8yzQNUnQxn/xGkOR+X+BLrLDNm8w==} + '@oxlint/binding-win32-ia32-msvc@1.65.0': + resolution: {integrity: sha512-JV+pXm45p8sdgs3c7LOPAohW23optCNZETFOXUcjn6cS4PYZhEU/RI54Z5dHdMudab3nw7T48PZILthM+Q0COQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxlint/binding-win32-x64-msvc@1.63.0': - resolution: {integrity: sha512-QeN/WELOfsXMeYwxvfgQrl6CbVftYUCZsGXHjXQd5Trccm8+i4gmtxaOui4xbJQaiDlviF8F3yLSBloQUeFsfA==} + '@oxlint/binding-win32-x64-msvc@1.65.0': + resolution: {integrity: sha512-D7L/oBbskLss21bYrRbFuIs81AiSQV+wRzwck54dOkHIlq2qu1xjLz8u6jCqGH8Fltk8bB5DLBpVhE7v/fA8XQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@rolldown/binding-android-arm64@1.0.0-rc.18': - resolution: {integrity: sha512-lIDyUAfD7U3+BWKzdxMbJcsYHuqXqmGz40aeRqvuAm3y5TkJSYTBW2RDrn65DJFPQqVjUAUqq5uz8urzQ8aBdQ==} + '@rolldown/binding-android-arm64@1.0.1': + resolution: {integrity: sha512-fJI3I0r3C3Oj/zdBCpaCmBRZYf07xpaq4yCfDDoSFm+beWNzbIl26puW8RraUdugoJw/95zerNOn6jasAhzSmg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.0.0-rc.18': - resolution: {integrity: sha512-apJq2ktnGp27nSInMR5Vcj8kY6xJzDAvfdIFlpDcAK/w4cDO58qVoi1YQsES/SKiFNge/6e4CUzgjfHduYqWpQ==} + '@rolldown/binding-darwin-arm64@1.0.1': + resolution: {integrity: sha512-cKnAhWEsV7TPcA/5EAteDp6KcJZBQ2G+BqE7zayMMi7kMvwRsbv7WT9aOnn0WNl4SKEIf43vjS31iUPu80nzXg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.0.0-rc.18': - resolution: {integrity: sha512-5Ofot8xbs+pxRHJqm9/9N/4sTQOvdrwEsmPE9pdLEEoAbdZtG6F2LMDfO1sp6ZAtXJuJV/21ew2srq3W8NXB5g==} + '@rolldown/binding-darwin-x64@1.0.1': + resolution: {integrity: sha512-YKrVwQjIRBPo+5G/u03wGjbdy4q7pyzCe93DK9VJ7zkVmeg8LJ7GbgsiHWdR4xSoe4CAXRD7Bcjgbtr64bkXNg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.0.0-rc.18': - resolution: {integrity: sha512-7h8eeOTT1eyqJyx64BFCnWZpNm486hGWt2sqeLLgDxA0xI1oGZ9H7gK1S85uNGmBhkdPwa/6reTxfFFKvIsebw==} + '@rolldown/binding-freebsd-x64@1.0.1': + resolution: {integrity: sha512-z/oBsREo46SsFqBwYtFe0kpJeBijAT48O/WXLI4suiCLBkr03RTtTJMCzSdDd2znlh8VJizL09XVkQgk8IZonw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.18': - resolution: {integrity: sha512-eRcm/HVt9U/JFu5RKAEKwGQYtDCKWLiaH6wOnsSEp6NMBb/3Os8LgHZlNyzMpFVNmiiMFlfb2zEnebfzJrHFmg==} + '@rolldown/binding-linux-arm-gnueabihf@1.0.1': + resolution: {integrity: sha512-ik8q7GM11zxvYxFc2PeDcT6TBvhCQMaUxfph/M5l9sKuTs/Sjg3L+Byw0F7w0ZVLBZmx30P+gG0ECzzN+MFcmQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.18': - resolution: {integrity: sha512-SOrT/cT4ukTmgnrEz/Hg3m7LBnuCLW9psDeMKrimRWY4I8DmnO7Lco8W2vtqPmMkbVu8iJ+g4GFLVLLOVjJ9DQ==} + '@rolldown/binding-linux-arm64-gnu@1.0.1': + resolution: {integrity: sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-musl@1.0.0-rc.18': - resolution: {integrity: sha512-QWjdxN1HJCpBTAcZ5N5F7wju3gVPzRzSpmGzx7na0c/1qpN9CFil+xt+l9lV/1M6/gqHSNXCiqPfwhVJPeLnug==} + '@rolldown/binding-linux-arm64-musl@1.0.1': + resolution: {integrity: sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.18': - resolution: {integrity: sha512-ugCOyj7a4d9h3q9B+wXmf6g3a68UsjGh6dob5DHevHGMwDUbhsYNbSPxJsENcIttJZ9jv7qGM2UesLw5jqIhdg==} + '@rolldown/binding-linux-ppc64-gnu@1.0.1': + resolution: {integrity: sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.18': - resolution: {integrity: sha512-kKWRhbsotpXkGbcd5dllUWg5gEXcDAa8u5YnP9AV5DYNbvJHGzzuwv7dpmhc8NqKMJldl0a+x76IHbspEpEmdA==} + '@rolldown/binding-linux-s390x-gnu@1.0.1': + resolution: {integrity: sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.0.0-rc.18': - resolution: {integrity: sha512-uCo8ElcCIAMyYAZyuIZ81oFkhTSIllNvUCHCAlbhlN4ji3uC28h7IIdlXyIvGO7HsuqnV9p3rD/bpH7XhIyhRw==} + '@rolldown/binding-linux-x64-gnu@1.0.1': + resolution: {integrity: sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-musl@1.0.0-rc.18': - resolution: {integrity: sha512-XNOQZtuE6yUIvx4rwGemwh8kpL1xvU41FXy/s9K7T/3JVcqGzo3NfKM2HrbrGgfPYGFW42f07Wk++aOC6B9NWA==} + '@rolldown/binding-linux-x64-musl@1.0.1': + resolution: {integrity: sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-openharmony-arm64@1.0.0-rc.18': - resolution: {integrity: sha512-tSn/kzrfa7tNOXr7sEacDBN4YsIqTyLqh45IO0nHDwtpKIDNDJr+VFojt+4klSpChxB29JLyduSsE0MKEwa65A==} + '@rolldown/binding-openharmony-arm64@1.0.1': + resolution: {integrity: sha512-/Mh0Zhq3OP7fVs0kcQHZP6lZEthMGTaSf8UBQYSFEZDWGXXlEC+nJ6EqenaK2t4LBXMe3A+K/G2BVXXdtOr4PQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-wasm32-wasi@1.0.0-rc.18': - resolution: {integrity: sha512-+J9YGmc+czgqlhYmwun3S3O0FIZhsH8ep2456xwjAdIOmuJxM7xz4P4PtrxU+Bz17a/5bqPA8o3HAAoX0teUdg==} + '@rolldown/binding-wasm32-wasi@1.0.1': + resolution: {integrity: sha512-+1xc9X45l8ufsBAm6Gjvx2qDRIY9lTVt0cgWNcJ+1gdhXvkbxePA60yRTwSTuXL09CMhyJmjpV7E3NoyxbqFQQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [wasm32] - '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.18': - resolution: {integrity: sha512-zsu47DgU0FQzSwi6sU9dZoEdUv7pc1AptSEz/Z8HBg54sV0Pbs3N0+CrIbTsgiu6EyoaNN9CHboqbLaz9lhOyQ==} + '@rolldown/binding-win32-arm64-msvc@1.0.1': + resolution: {integrity: sha512-1D+UqZdfnuR+Jy1GgMJwi85bD40H21uNmOPRWQhw4oRSuolZ/B5rixZ45DK2KXOTCvmVCecauWgEhbw8bI7tOw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.0.0-rc.18': - resolution: {integrity: sha512-7H+3yqGgmnlDTRRhw/xpYY9J1kf4GC681nVc4GqKhExZTDrVVrV2tsOR9kso0fvgBdcTCcQShx4SLLoHgaLwhg==} + '@rolldown/binding-win32-x64-msvc@1.0.1': + resolution: {integrity: sha512-INAycaWuhlOK3wk4mRHGsdgwYWmd9cChdPdE9bwWmy6rn9VqVNYNFGhOdXrofXUxwHIncSiPNb8tNm8knDVIeQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -1208,11 +978,8 @@ packages: vite: optional: true - '@rolldown/pluginutils@1.0.0-rc.18': - resolution: {integrity: sha512-CUY5Mnhe64xQBGZEEXQ5WyZwsc1JU3vAZLIxtrsBt3LO6UOb+C8GunVKqe9sT8NeWb4lqSaoJtp2xo6GxT1MNw==} - - '@rolldown/pluginutils@1.0.0-rc.7': - resolution: {integrity: sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==} + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} '@smithy/chunked-blob-reader-native@4.2.3': resolution: {integrity: sha512-jA5k5Udn7Y5717L86h4EIv06wIr3xn8GM1qHRi/Nf31annXcXHJjBKvgztnbn2TxH3xWrPBfgwHsOwZf0UmQWw==} @@ -1526,8 +1293,8 @@ packages: peerDependencies: vite: ^5.2.0 || ^6 || ^7 || ^8 - '@tanstack/eslint-plugin-query@5.100.9': - resolution: {integrity: sha512-3jZwyxAZWSBqI7EXEdw+rktFfX1opMpqn9Lruwz52DEzQdi7kbKnqixjhR3dJ1xFfG05YxV9vsqXGxXqcLAmjA==} + '@tanstack/eslint-plugin-query@5.100.10': + resolution: {integrity: sha512-Ddou3agTWv5rvHSBby4yHlugUFHVh0nyo2fyoZ81qSxaTBIwNCoPgpiJhjo5QkThrH1wGC7k548BcMTszZCkBw==} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: ^5.4.0 || ^6.0.0 @@ -1535,25 +1302,25 @@ packages: typescript: optional: true - '@tanstack/eslint-plugin-router@1.161.6': - resolution: {integrity: sha512-aHln6x6mhtQmrbwMI0lmnMh7t9nEvrJrFOl1vGtQknEKdgKEEqSh9a9/MZKNm3kENaHotoqpRcfbE/or9aAYfQ==} + '@tanstack/eslint-plugin-router@1.162.0': + resolution: {integrity: sha512-0mv+5fOnWXeorh6zd3VyHVfpejIzc7+z68Ts0CQMDzMiwjM5rvea46fyl2m50zx5JFennsu7RO/QJAfnqkKJXw==} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - '@tanstack/history@1.161.6': - resolution: {integrity: sha512-NaOGLRrddszbQj9upGat6HG/4TKvXLvu+osAIgfxPYA+eIvYKv8GKDJOrY2D3/U9MRnKfMWD7bU4jeD4xmqyIg==} + '@tanstack/history@1.162.0': + resolution: {integrity: sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA==} engines: {node: '>=20.19'} - '@tanstack/query-core@5.100.9': - resolution: {integrity: sha512-SJSFw1S8+kQ0+knv/XGfrbocWoAlT7vDKsSImtLx3ZPQmEcR46hkDjLSvynSy25N8Ms4tIEini1FuBd5k7IscQ==} + '@tanstack/query-core@5.100.10': + resolution: {integrity: sha512-8UR0yJR+GiQ40m3lPhUr0xbfAupe6GSQiksSBSa9SM2NjezFyxXCIA69/lz8cSoNKZLrw1/PktIyQBJcVeMi3w==} - '@tanstack/react-query@5.100.9': - resolution: {integrity: sha512-Oa44XkaI3kCNN6ME0KByU3xT3SEUNOMfZpHxL6+wFoTm+OeUFYHKdeYVe0aOXlRDm/f15sgLwEt2HDorIdW8+A==} + '@tanstack/react-query@5.100.10': + resolution: {integrity: sha512-FLaZf2RCrA/Zgp4aiu5tG3TyasTRO7aZ99skxQpr3Hg/zXOhu6yq5FZCYQ/tRaJtM9ylnoK8tFK7PolXQadv6Q==} peerDependencies: react: ^18 || ^19 - '@tanstack/react-router@1.169.2': - resolution: {integrity: sha512-OJM7Kguc7ERnweaNRWsyWgIKcl3z23rD1B4jaxjzd9RGdnzpt2HfrWa9rggbT0Hfzhfo4D2ZmsfoTme035tniQ==} + '@tanstack/react-router@1.170.1': + resolution: {integrity: sha512-s8Nn5c4UhbSyOefxOScvG3TIWlonWJfwb1txYXJvk9BCEqM0W7b0/0bw2Y063QTVofK/Ap4vmhLdmaBlwiT1Aw==} engines: {node: '>=20.19'} peerDependencies: react: '>=18.0.0 || >=19.0.0' @@ -1565,20 +1332,20 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - '@tanstack/router-core@1.169.2': - resolution: {integrity: sha512-5sm0DJF1A7Mz+9gy4Gz/lLovNailK3yot4vYvz9MkBUPw26uLnhQiR8hSCYxucjE0wD6Mdlc5l+Z0/XTlZ7xHw==} + '@tanstack/router-core@1.170.1': + resolution: {integrity: sha512-uYxlIbdw2VY6xcEnBmLJ6lCuULV728vTQoK27BQSKPDMBB3TkV1+vkm8U24AT1iS2EbPVuHli1SNEKYd+WWGWw==} engines: {node: '>=20.19'} - '@tanstack/router-generator@1.166.42': - resolution: {integrity: sha512-2qBWC0t78r6b3vI+AbnvCZcFAvbYBDlLuWZrTjQbcjUmwG3qyeQp983tJyDuj9wb5//adG1tgAGXZkJ3aDwdBg==} + '@tanstack/router-generator@1.167.1': + resolution: {integrity: sha512-grpwEwuDht4M8P3nDUPt45B2BXxG0pIB5AdXSe8DHRP+GL++1UWxM5cAHK1WkXViGQhHNA2hhwKYhyP4z8RlcA==} engines: {node: '>=20.19'} - '@tanstack/router-plugin@1.167.35': - resolution: {integrity: sha512-UAScU5VAzLYVY4FML/Cbc5S5TucT4I8Ata05yozGOe4ZfepTKRffA5xWLtD2N+ov5svdv0KTX/kqlZnYPe28mA==} + '@tanstack/router-plugin@1.168.1': + resolution: {integrity: sha512-JPxBjrobxjyNqk4lgurHBGWNR7hE90wnlLCtANMBS6aY+Om71RKdxgiHIEqDiv8b6LLCiQFVHObJSa8O6LePNg==} engines: {node: '>=20.19'} peerDependencies: '@rsbuild/core': '>=1.0.2 || ^2.0.0' - '@tanstack/react-router': ^1.169.2 + '@tanstack/react-router': ^1.170.1 vite: '>=5.0.0 || >=6.0.0 || >=7.0.0 || >=8.0.0' vite-plugin-solid: ^2.11.10 || ^3.0.0-0 webpack: '>=5.92.0' @@ -1594,17 +1361,16 @@ packages: webpack: optional: true - '@tanstack/router-utils@1.161.8': - resolution: {integrity: sha512-xyiLWEKjfBAVhauDSSjXxyf7s8elU6SM+V050sbkofvGmIIvkwPFtDsX7Gvwh14kBd6iCwAT+RiPvXTxAptY0Q==} + '@tanstack/router-utils@1.162.0': + resolution: {integrity: sha512-c3GhqhBRCP636B41nf3TKvVz8EWzC5PTZ3I4J4LDH2tVjpxbyFNYsQKRtbNWiMFl+GTtgK4nCha346Wv7j4hcQ==} engines: {node: '>=20.19'} '@tanstack/store@0.9.3': resolution: {integrity: sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==} - '@tanstack/virtual-file-routes@1.161.7': - resolution: {integrity: sha512-olW33+Cn+bsCsZKPwEGhlkqS6w3M2slFv11JIobdnCFKMLG97oAI2kWKdx5/zsywTL8flpnoIgaZZPlQTFYhdQ==} + '@tanstack/virtual-file-routes@1.162.0': + resolution: {integrity: sha512-uhOeFyxLcU41HzvrxsGpiWdcMbScY1EDgbZ5K7DVRMYInbLYWAC0EA/kx9wXAoSM8q82bUG2hRl8+EAjE6XAbA==} engines: {node: '>=20.19'} - hasBin: true '@testing-library/dom@10.4.1': resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==} @@ -1647,9 +1413,6 @@ packages: '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} - '@types/estree@1.0.8': - resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} - '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} @@ -1673,124 +1436,87 @@ packages: '@types/ws@8.18.1': resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==} - '@typescript-eslint/project-service@8.57.2': - resolution: {integrity: sha512-FuH0wipFywXRTHf+bTTjNyuNQQsQC3qh/dYzaM4I4W0jrCqjCVuUh99+xd9KamUfmCGPvbO8NDngo/vsnNVqgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.0.0' - - '@typescript-eslint/project-service@8.59.2': - resolution: {integrity: sha512-+2hqvEkeyf/0FBor67duF0Ll7Ot8jyKzDQOSrxazF/danillRq2DwR9dLptsXpoZQqxE1UisSmoZewrlPas9Vw==} + '@typescript-eslint/project-service@8.59.3': + resolution: {integrity: sha512-ECiUWa/KYRGDFUqTNehaRgzDshnJfkTABJxVemHk4ko22gcr0ukloKjWvyQ64g8YCV/UI47kN1dbmjf/GaQYng==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/scope-manager@8.57.2': - resolution: {integrity: sha512-snZKH+W4WbWkrBqj4gUNRIGb/jipDW3qMqVJ4C9rzdFc+wLwruxk+2a5D+uoFcKPAqyqEnSb4l2ULuZf95eSkw==} + '@typescript-eslint/scope-manager@8.59.3': + resolution: {integrity: sha512-t2LvZnoEfzKtnPjgeEu41xw5gxq9mQVfYy4OoZ4Vlt0sk3JwxmhCca/AR7DwOiHrjWgjAj6as4AhRLKSDfvZIA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/scope-manager@8.59.2': - resolution: {integrity: sha512-JzfyEpEtOU89CcFSwyNS3mu4MLvLSXqnmX05+aKBDM+TdR5jzcGOEBwxwGNxrEQ7p/z6kK2WyioCGBf2zZBnvg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/tsconfig-utils@8.57.2': - resolution: {integrity: sha512-3Lm5DSM+DCowsUOJC+YqHHnKEfFh5CoGkj5Z31NQSNF4l5wdOwqGn99wmwN/LImhfY3KJnmordBq/4+VDe2eKw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.0.0' - - '@typescript-eslint/tsconfig-utils@8.59.2': - resolution: {integrity: sha512-BKK4alN7oi4C/zv4VqHQ+uRU+lTa6JGIZ7s1juw7b3RHo9OfKB+bKX3u0iVZetdsUCBBkSbdWbarJbmN0fTeSw==} + '@typescript-eslint/tsconfig-utils@8.59.3': + resolution: {integrity: sha512-PcIJHjmaREXLgIAIzLnSY9VucEzz8FKXsRgFa1DmdGCK/5tJpW03TKJF01Q6VZd1lLdz2sIKPWaDUZN9dp//dw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/types@8.57.2': - resolution: {integrity: sha512-/iZM6FnM4tnx9csuTxspMW4BOSegshwX5oBDznJ7S4WggL7Vczz5d2W11ecc4vRrQMQHXRSxzrCsyG5EsPPTbA==} + '@typescript-eslint/types@8.59.3': + resolution: {integrity: sha512-ePFoH0g4ludssdRFqqDxQePCxU4WQyRa9+XVwjm7yLn0FKhMeoetC+qBEEI1Eyb1pGSDveTIT09Bvw2WhlGayg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.59.2': - resolution: {integrity: sha512-e82GVOE8Ps3E++Egvb6Y3Dw0S10u8NkQ9KXmtRhCWJJ8kDhOJTvtMAWnFL16kB1583goCWXsr0NieKCZMs2/0Q==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/typescript-estree@8.57.2': - resolution: {integrity: sha512-2MKM+I6g8tJxfSmFKOnHv2t8Sk3T6rF20A1Puk0svLK+uVapDZB/4pfAeB7nE83uAZrU6OxW+HmOd5wHVdXwXA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.0.0' - - '@typescript-eslint/typescript-estree@8.59.2': - resolution: {integrity: sha512-o0XPGNwcWw+FIwStOWn+BwBuEmL6QXP0rsvAFg7ET1dey1Nr6Wb1ac8p5HEsK0ygO/6mUxlk+YWQD9xcb/nnXg==} + '@typescript-eslint/typescript-estree@8.59.3': + resolution: {integrity: sha512-CbRjVRAf7Lr9Kr8RopKcbY45p2VfmmHrm0ygOCYFi7oU8q19m0Fs/6iHS7kNOmwpp+ob07ZVcAqlxUod9lYdmg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/utils@8.57.2': - resolution: {integrity: sha512-krRIbvPK1ju1WBKIefiX+bngPs+odIQUtR7kymzPfo1POVw3jlF+nLkmexdSSd4UCbDcQn+wMBATOOmpBbqgKg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.0.0' - - '@typescript-eslint/utils@8.59.2': - resolution: {integrity: sha512-Juw3EinkXqjaffxz6roowvV7GZT/kET5vSKKZT6upl5TXdWkLkYmNPXwDDL2Vkt2DPn0nODIS4egC/0AGxKo/Q==} + '@typescript-eslint/utils@8.59.3': + resolution: {integrity: sha512-JAvT14goBzRzzzZyqq3P9BLArIxTtQURUtFgQ/V7FO+eU+Gg6ES+5ymOPP1wRxXcxAYeivCk4uS3jCKWI1K8Zg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/visitor-keys@8.57.2': - resolution: {integrity: sha512-zhahknjobV2FiD6Ee9iLbS7OV9zi10rG26odsQdfBO/hjSzUQbkIYgda+iNKK1zNiW2ey+Lf8MU5btN17V3dUw==} + '@typescript-eslint/visitor-keys@8.59.3': + resolution: {integrity: sha512-f1UQF7ggd42YiwI5wGrRaPsa+P0CINBlrkLPmGfpq/u/I/oVtecoEIfFR9ag/oa1sLOsRNZ6xehf6qMZhQGBDg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/visitor-keys@8.59.2': - resolution: {integrity: sha512-NwjLUnGy8/Zfx23fl50tRC8rYaYnM52xNRYFAXvmiil9yh1+K6aRVQMnzW6gQB/1DLgWt977lYQn7C+wtgXZiA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-oG9KahiCpx4q70Ood/rRJhYio4oIMHEHfX0g0LhfenlSIjIonitZWjUmUVG9N9q1ev9QWcM8pWpDrGGP0Osp3Q==} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-CSvyLkNV0k4Ro0B6nzNdDXFrRD8aa6sDvXSGla2FTmBio+JLKqNuJXq1ppyj42j9pAwdUhDZV/PNdjeHRCBjWQ==} engines: {node: '>=16.20.0'} cpu: [arm64] os: [darwin] - '@typescript/native-preview-darwin-x64@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-xdEkp23Gu8I7PJCMmSMYtSLX76NKODWj74AoWFPi6MM59ICsjnTSqZf/HmXKSvuNZ5MGb4CMpP3c40dLjGB2PQ==} + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-QTmm0dpF6CC3hrfudAyVcIvbr1tlBTZ7aGQHIs4PYmi+tnTi2R8jy6gDBCJWlDBSXqjPWlQZrdiOxRBCSlShSA==} engines: {node: '>=16.20.0'} cpu: [x64] os: [darwin] - '@typescript/native-preview-linux-arm64@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-rd+bMRtUAFBClOAKi9p2rOu6jPmnrjZVljoFyxHw+6bIRLerEQlxP+nIH1olC3HOZPyZ6/x75WtfzTHYeqffiQ==} + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-bH/CYrtXURXr3YwqJmlKblQ858wuJ0Qw2VSMvlsWwYZpb8eOd07T2bl1Ba6QxGBuL6EotcDQFd2OYJIj0uvM7A==} engines: {node: '>=16.20.0'} cpu: [arm64] os: [linux] - '@typescript/native-preview-linux-arm@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-ar5HN/V/4HLF4FZCoVVFj+ET1Soi758hb4WhhzYQfSUXQ/bpVGUGP86JAy8EhVMoeN6qxqWet93MkLSszJOIVg==} + '@typescript/native-preview-linux-arm@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-0b+Sxh8JUNMqvw06wfIoh45+G68/ikCW+aRqHGipU2uc9M9dWUKvI3zDyzP1rF6FOJ7xMKMbTbi5b2IvcRqh8g==} engines: {node: '>=16.20.0'} cpu: [arm] os: [linux] - '@typescript/native-preview-linux-x64@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-lB26mGzdolYIZiOdBII8roVJCxCUR8zkYszvvHyjB1IPs7d5fmOhT6OzI1zYPYujiSRJi4HVYM1iXTcIfp7KDg==} + '@typescript/native-preview-linux-x64@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-eXgYE6pmkCiEEX7T43TYeF24uiY8+h9mbi9YSvnCoRp4BLgn9b7uJagh4ctSGCNxUy3QSDeoznkWfSVlrvJ5pA==} engines: {node: '>=16.20.0'} cpu: [x64] os: [linux] - '@typescript/native-preview-win32-arm64@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-gH3UmtyxHiRNEP0LgQXCVlB5+ZN/U+/Z7jM/zULQtTOxIIFK3Y4b8gbGLvP7uW3u2cqYOg2hc2nuN8OdsCmOig==} + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-K1YJimcOr3/lFTJyOChT1GnRdfvoHtIvG/qcwHhHpeCBzpGfG7u2aH9MkBgsXqNJHAXHLnQRuON2uYgU8wWDzw==} engines: {node: '>=16.20.0'} cpu: [arm64] os: [win32] - '@typescript/native-preview-win32-x64@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-kZV0Vh64hp10saOghPlFZE1qahonqvRgU3iubt8pUY4XLe8IQIofwWCN5vzNNeULE4W4mRtAJbHuvP/muOFomw==} + '@typescript/native-preview-win32-x64@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-1cGEWLao/d2+Q3yMvtnDES85sM9HuI6J6PBmrcjwXzsQxnjXJkujStdp+LB6JZfY+VSDi+cpaCZmrKU6sYUfkg==} engines: {node: '>=16.20.0'} cpu: [x64] os: [win32] - '@typescript/native-preview@7.0.0-dev.20260509.2': - resolution: {integrity: sha512-JAJpEX0yBaEle2zzbX5z9QAhmEfML1SyQafLwbKCdcOtnkGdk5xD8NKIVxq+nTwYjRwuV7kKnQ+fqU3gpWY0qQ==} + '@typescript/native-preview@7.0.0-dev.20260515.1': + resolution: {integrity: sha512-dWhzJGb9iJfCDsjz/LzPkbMj5XDbFWyZmDyTixcmQPgX5zFOPZ+sAdlCpTZFGEJhA7OqXG+lZyajbJfjYvQorA==} engines: {node: '>=16.20.0'} hasBin: true @@ -1800,8 +1526,8 @@ packages: peerDependencies: vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@vitejs/plugin-react@6.0.1': - resolution: {integrity: sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==} + '@vitejs/plugin-react@6.0.2': + resolution: {integrity: sha512-DlSMqo4WhThw4vB8Mpn0Woe9J+Jfq1geJ61AKW0QEgLzGMNwtIMdxbDUzLxcun8W7NbJO0e2Jg/Nxm3cCSVzzg==} engines: {node: ^20.19.0 || >=22.12.0} peerDependencies: '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0 @@ -1813,20 +1539,20 @@ packages: babel-plugin-react-compiler: optional: true - '@vitest/coverage-v8@4.1.5': - resolution: {integrity: sha512-38C0/Ddb7HcRG0Z4/DUem8x57d2p9jYgp18mkaYswEOQBGsI1CG4f/hjm0ZCeaJfWhSZ4k7jgs29V1Zom7Ki9A==} + '@vitest/coverage-v8@4.1.6': + resolution: {integrity: sha512-36l628fQ/9a/8ihy97eOtEnvWQEdqULQOJtcaxtoNq0G1w3Mxd4szSahOaMM9/NGyZ+hyKcMtIW/WIxq0XQViQ==} peerDependencies: - '@vitest/browser': 4.1.5 - vitest: 4.1.5 + '@vitest/browser': 4.1.6 + vitest: 4.1.6 peerDependenciesMeta: '@vitest/browser': optional: true - '@vitest/expect@4.1.5': - resolution: {integrity: sha512-PWBaRY5JoKuRnHlUHfpV/KohFylaDZTupcXN1H9vYryNLOnitSw60Mw9IAE2r67NbwwzBw/Cc/8q9BK3kIX8Kw==} + '@vitest/expect@4.1.6': + resolution: {integrity: sha512-7EHDquPthALSV0jhhjgEW8FXaviMx7rSqu8W6oqCoAuOhKov814P99QDV1pxMA3QPv21YudvJngIhjrNI4opLg==} - '@vitest/mocker@4.1.5': - resolution: {integrity: sha512-/x2EmFC4mT4NNzqvC3fmesuV97w5FC903KPmey4gsnJiMQ3Be1IlDKVaDaG8iqaLFHqJ2FVEkxZk5VmeLjIItw==} + '@vitest/mocker@4.1.6': + resolution: {integrity: sha512-MCFc63czMjEInOlcY2cpQCvCN+KgbAn+60xu9cMgP4sKaLC5JNAKw7JH8QdAnoAC88hW1IiSNZ+GgVXlN1UcMQ==} peerDependencies: msw: ^2.4.9 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1836,20 +1562,20 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.5': - resolution: {integrity: sha512-7I3q6l5qr03dVfMX2wCo9FxwSJbPdwKjy2uu/YPpU3wfHvIL4QHwVRp57OfGrDFeUJ8/8QdfBKIV12FTtLn00g==} + '@vitest/pretty-format@4.1.6': + resolution: {integrity: sha512-h5SxD/IzNhZYnrSZRsUZQIC+vD0GY8cUvq0iwsmkFKixRCKLLWqCXa/FIQ4S1R+sI+PGoojkHsdNrbZiM9Qpgw==} - '@vitest/runner@4.1.5': - resolution: {integrity: sha512-2D+o7Pr82IEO46YPpoA/YU0neeyr6FTerQb5Ro7BUnBuv6NQtT/kmVnczngiMEBhzgqz2UZYl5gArejsyERDSQ==} + '@vitest/runner@4.1.6': + resolution: {integrity: sha512-nOPCmn2+yD0ZNmKdsXGv/UxMMWbMuKeD6GyYncNwdkYDxpQvrPSKYj2rWuDjC2Y4b6w6hjip5dBKFzEUuZe3vA==} - '@vitest/snapshot@4.1.5': - resolution: {integrity: sha512-zypXEt4KH/XgKGPUz4eC2AvErYx0My5hfL8oDb1HzGFpEk1P62bxSohdyOmvz+d9UJwanI68MKwr2EquOaOgMQ==} + '@vitest/snapshot@4.1.6': + resolution: {integrity: sha512-YhsdE6xAVfTDmzjxL2ZDUvjj+ZsgyOKe+TdQzqkD72wIOmHka8NuGQ6NpTNZv9D2Z63fbwWKJPeVpEw4EQgYxw==} - '@vitest/spy@4.1.5': - resolution: {integrity: sha512-2lNOsh6+R2Idnf1TCZqSwYlKN2E/iDlD8sgU59kYVl+OMDmvldO1VDk39smRfpUNwYpNRVn3w4YfuC7KfbBnkQ==} + '@vitest/spy@4.1.6': + resolution: {integrity: sha512-JFKxMx6udhwKh/Ldo270e17QX710vgunMkuPAvXjHSvC6oqLWAHhVhjg/I71q0u0CBSErIODV1Kjv0FQNSWjdg==} - '@vitest/utils@4.1.5': - resolution: {integrity: sha512-76wdkrmfXfqGjueGgnb45ITPyUi1ycZ4IHgC2bhPDUfWHklY/q3MdLOAB+TF1e6xfl8NxNY0ZYaPCFNWSsw3Ug==} + '@vitest/utils@4.1.6': + resolution: {integrity: sha512-FxIY+U81R3LGKCxaHHFRQ5+g6/iRgGLmeHWdp2Amj4ljQRrEIWHmZyDfDYBRZlpyqA7qKxtS9DD1dhk8RnRIVQ==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -1861,10 +1587,6 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - agent-base@7.1.4: - resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} - engines: {node: '>= 14'} - ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} @@ -1880,8 +1602,8 @@ packages: resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} engines: {node: '>=10'} - ansis@4.2.0: - resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==} + ansis@4.3.0: + resolution: {integrity: sha512-44mvgtPvohuU/70DdY5Oz2AIrLJ9k6/5x4KmoSvPwO+5Moijo0+N9D0fKbbYZQWP1hNm5CpOf+E01jhxG/r8xg==} engines: {node: '>=14'} anymatch@3.1.3: @@ -1926,9 +1648,6 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - bidi-js@1.0.3: - resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==} - binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -2008,27 +1727,12 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - css-tree@3.2.1: - resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==} - engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} - css.escape@1.5.1: resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==} - cssstyle@6.2.0: - resolution: {integrity: sha512-Fm5NvhYathRnXNVndkUsCCuR63DCLVVwGOOwQw782coXFi5HhkXdu289l59HlXZBawsyNccXfWRYvLzcDCdDig==} - engines: {node: '>=20'} - csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} - data-urls@7.0.0: - resolution: {integrity: sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - - date-fns@4.1.0: - resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -2038,9 +1742,6 @@ packages: supports-color: optional: true - decimal.js@10.6.0: - resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} - deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} @@ -2066,8 +1767,8 @@ packages: dom-accessibility-api@0.6.3: resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} - electron-to-chromium@1.5.353: - resolution: {integrity: sha512-kOrWphBi8TOZyiJZqsgqIle0lw+tzmnQK83pV9dZUd01Nm2POECSyFQMAuarzZdYqQW7FH9RaYOuaRo3h+bQ3w==} + electron-to-chromium@1.5.356: + resolution: {integrity: sha512-9NgFd7m5t5MCJ5rUSjJITUXAH9mEGlrlofnMf4YEr+pz6JlP7cWmTAH+JFmbPnaSW8koVTkuW7pacORWAnA5Yw==} enhanced-resolve@5.21.2: resolution: {integrity: sha512-xe9vQb5kReirPUxgQrXA3ihgbCqssmTiM7cOZ+Gzu+VeGWgpV98lLZvp0dl4yriyAePcewxGUs9UpKD8PET9KQ==} @@ -2077,18 +1778,9 @@ packages: resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} engines: {node: '>=0.12'} - entities@8.0.0: - resolution: {integrity: sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==} - engines: {node: '>=20.19.0'} - es-module-lexer@2.1.0: resolution: {integrity: sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==} - esbuild@0.27.7: - resolution: {integrity: sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==} - engines: {node: '>=18'} - hasBin: true - escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -2216,9 +1908,6 @@ packages: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} - get-tsconfig@4.14.0: - resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==} - glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -2246,21 +1935,9 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - html-encoding-sniffer@6.0.0: - resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} - http-proxy-agent@7.0.2: - resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} - engines: {node: '>= 14'} - - https-proxy-agent@7.0.6: - resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} - engines: {node: '>= 14'} - ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -2299,9 +1976,6 @@ packages: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} - is-potential-custom-element-name@1.0.1: - resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} - isbot@5.1.40: resolution: {integrity: sha512-yNeeynhhtIVRBk12tBV4eHNxwB42HzR4Q3Ea7vCOiJhImGaAIdIMrbJtacQlBizGLjUPw+akkFI5Dn9T70XoVQ==} engines: {node: '>=18'} @@ -2335,15 +2009,6 @@ packages: resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} hasBin: true - jsdom@28.1.0: - resolution: {integrity: sha512-0+MoQNYyr2rBHqO1xilltfDjV9G7ymYGlAUazgcDLQaUf8JDHbuGwsxN6U9qWaElZ4w1B2r7yEGIL3GdeW3Rug==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - peerDependencies: - canvas: ^3.0.0 - peerDependenciesMeta: - canvas: - optional: true - jsesc@3.1.0: resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} engines: {node: '>=6'} @@ -2461,8 +2126,8 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lucide-react@1.14.0: - resolution: {integrity: sha512-+1mdWcfSJVUsaTIjN9zoezmUhfXo5l0vP7ekBMPo3jcS/aIkxHnXqAPsByszMZx/Y8oQBRJxJx5xg+RH3urzxA==} + lucide-react@1.16.0: + resolution: {integrity: sha512-dYwyPzb4MEKpGUmNYk3WKWPnMrHs3FKM+q94kAnJrcDIqqn1hq2xY8scaS2ovsOCM5D51ey2gaRG3PBb1vgoYQ==} peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -2473,16 +2138,13 @@ packages: magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - magicast@0.5.2: - resolution: {integrity: sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==} + magicast@0.5.3: + resolution: {integrity: sha512-pVKE4UdSQ7DvHzivsCIFx2BJn1mHG6KsyrFcaxFx6tONdneEuThrDx0Cj3AMg58KyN4pzYT+LHOotxDQDjNvkw==} make-dir@4.0.0: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} - mdn-data@2.27.1: - resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} - min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -2509,8 +2171,8 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - node-releases@2.0.38: - resolution: {integrity: sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==} + node-releases@2.0.44: + resolution: {integrity: sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==} normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} @@ -2528,17 +2190,22 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxfmt@0.48.0: - resolution: {integrity: sha512-AVaLh+7XeGx+R1zfFV+f6VV61nT2MWVJXVUDhbTm5LBWGyNt64xAyh3NYYyjeY2WykNt9AvqSQLPHcbWquYF9g==} + oxfmt@0.50.0: + resolution: {integrity: sha512-owwjTnhfM5aCOJhYeqDvk7iM504OeYFZpdRU7cxx7xtZMo4uVpjlryTUon+Cf76CugsvnqA32e6rC73pr1hXaw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true + peerDependencies: + svelte: ^5.0.0 + peerDependenciesMeta: + svelte: + optional: true oxlint-tsgolint@0.22.1: resolution: {integrity: sha512-YUSGSLUnoolsu8gxISEDio3q1rtsCozwfOzASUn3DT2mR2EeQ93uEEnen7s+6LpF+lyTQFln1pQfqwBh/fsVEg==} hasBin: true - oxlint@1.63.0: - resolution: {integrity: sha512-9TGXetdjgIHOJ9OiReomP7nnrMkV9HxC1xM2ramJSLQpzxjsAJtQwa4wqkJN2f/uCrqZuJseFuSlWDdvcruveg==} + oxlint@1.65.0: + resolution: {integrity: sha512-ChUuE3Q7XnAbscvT4XLMsH7HFJmLgLVv9lu+RRgFL5wSXnDqUOzTp5IS8qWDBGd/ZDSzQ2tbX8fjAmijlGLC7A==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -2559,9 +2226,6 @@ packages: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} - parse5@8.0.1: - resolution: {integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==} - path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -2618,8 +2282,8 @@ packages: peerDependencies: react: ^19.2.6 - react-hook-form@7.75.0: - resolution: {integrity: sha512-Ovv94H+0p3sJ7B9B5QxPuCP1u8V/cHuVGyH55cSwodYDtoJwK+fqk3vjfIgSX59I2U/bU4z0nRJ9HMLpNiWEmw==} + react-hook-form@7.76.0: + resolution: {integrity: sha512-eKtLGgFeSgkHqQD8J59AMZ9a4uD1D83iSIzt4YlTGD7liDen5rrjcUO1rVIGd9yC1gofryjtHbv+4ny4hkLWlw==} engines: {node: '>=18.0.0'} peerDependencies: react: ^16.8.0 || ^17 || ^18 || ^19 @@ -2643,10 +2307,6 @@ packages: resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} engines: {node: '>=8'} - require-from-string@2.0.2: - resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} - engines: {node: '>=0.10.0'} - reselect@5.1.1: resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==} @@ -2654,21 +2314,14 @@ packages: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} - resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - - rolldown@1.0.0-rc.18: - resolution: {integrity: sha512-phmyKBpuBdRYDf4hgyynGAYn/rDDe+iZXKVJ7WX5b1zQzpLkP5oJRPGsfJuHdzPMlyyEO/4sPW6yfSx2gf7lVg==} + rolldown@1.0.1: + resolution: {integrity: sha512-X0KQHljNnEkWNqqiz9zJrGunh1B0HgOxLXvnFpCOcadzcy5qohZ3tqMEUg00vncoRovXuK3ZqCT9KnnKzoInFQ==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - saxes@6.0.0: - resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} - engines: {node: '>=v12.22.7'} - scheduler@0.27.0: resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} @@ -2736,11 +2389,8 @@ packages: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} - symbol-tree@3.2.4: - resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} - - tailwind-merge@3.5.0: - resolution: {integrity: sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==} + tailwind-merge@3.6.0: + resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==} tailwindcss@4.3.0: resolution: {integrity: sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==} @@ -2752,10 +2402,6 @@ packages: tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@1.1.1: - resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==} - engines: {node: '>=18'} - tinyexec@1.1.2: resolution: {integrity: sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==} engines: {node: '>=18'} @@ -2772,25 +2418,10 @@ packages: resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} engines: {node: '>=14.0.0'} - tldts-core@7.0.30: - resolution: {integrity: sha512-uiHN8PIB1VmWyS98eZYja4xzlYqeFZVjb4OuYlJQnZAuJhMw4PbKQOKgHKhBdJR3FE/t5mUQ1Kd80++B+qhD1Q==} - - tldts@7.0.30: - resolution: {integrity: sha512-ELrFxuqsDdHUwoh0XxDbxuLD3Wnz49Z57IFvTtvWy1hJdcMZjXLIuonjilCiWHlT2GbE4Wlv1wKVTzDFnXH1aw==} - hasBin: true - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - tough-cookie@6.0.1: - resolution: {integrity: sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==} - engines: {node: '>=16'} - - tr46@6.0.0: - resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==} - engines: {node: '>=20'} - ts-api-utils@2.5.0: resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} engines: {node: '>=18.12'} @@ -2800,11 +2431,6 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - tsx@4.21.0: - resolution: {integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==} - engines: {node: '>=18.0.0'} - hasBin: true - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -2814,8 +2440,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - ultracite@7.6.5: - resolution: {integrity: sha512-q68Ht5cTvjzmyDvhwZUPfxWLpcwioG5e5ODrVxBAbc0qWEn5hD3+CT1Tgq8FEFEypjKVote01inkG1nDOE9hmw==} + ultracite@7.7.0: + resolution: {integrity: sha512-ygdKJwOloPuBXccmpgAOzyNBf+XPqFxDeIP59GF4idZ+YS7Lr1lp5favgtkPtenKUV8bc+nkoOJBy0bb/+7IxA==} hasBin: true peerDependencies: oxfmt: '>=0.1.0' @@ -2829,10 +2455,6 @@ packages: undici-types@7.16.0: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - undici@7.25.0: - resolution: {integrity: sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ==} - engines: {node: '>=20.18.1'} - unplugin@3.0.0: resolution: {integrity: sha512-0Mqk3AT2TZCXWKdcoaufeXNukv2mTrEZExeXlHIOZXdqYoHHr4n51pymnwV8x2BOVxwXbK2HLlI7usrqMpycdg==} engines: {node: ^20.19.0 || >=22.12.0} @@ -2854,8 +2476,8 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - vite@8.0.11: - resolution: {integrity: sha512-Jz1mxtUBR5xTT65VOdJZUUeoyLtqljmFkiUXhPTLZka3RDc9vpi/xXkyrnsdRcm2lIi3l3GPMnAidTsEGIj3Ow==} + vite@8.0.13: + resolution: {integrity: sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -2897,20 +2519,20 @@ packages: yaml: optional: true - vitest@4.1.5: - resolution: {integrity: sha512-9Xx1v3/ih3m9hN+SbfkUyy0JAs72ap3r7joc87XL6jwF0jGg6mFBvQ1SrwaX+h8BlkX6Hz9shdd1uo6AF+ZGpg==} + vitest@4.1.6: + resolution: {integrity: sha512-6lvjbS3p9b4CrdCmguzbh2/4uoXhGE2q71R4OX5sqF9R1bo9Xd6fGrMAfvp5wnCzlBnFVdCOp6onuTQVbo8iUQ==} engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.5 - '@vitest/browser-preview': 4.1.5 - '@vitest/browser-webdriverio': 4.1.5 - '@vitest/coverage-istanbul': 4.1.5 - '@vitest/coverage-v8': 4.1.5 - '@vitest/ui': 4.1.5 + '@vitest/browser-playwright': 4.1.6 + '@vitest/browser-preview': 4.1.6 + '@vitest/browser-webdriverio': 4.1.6 + '@vitest/coverage-istanbul': 4.1.6 + '@vitest/coverage-v8': 4.1.6 + '@vitest/ui': 4.1.6 happy-dom: '*' jsdom: '*' vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -2938,14 +2560,6 @@ packages: jsdom: optional: true - w3c-xmlserializer@5.0.0: - resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} - engines: {node: '>=18'} - - webidl-conversions@8.0.1: - resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==} - engines: {node: '>=20'} - webpack-virtual-modules@0.6.2: resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} @@ -2953,14 +2567,6 @@ packages: resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==} engines: {node: '>=12'} - whatwg-mimetype@5.0.0: - resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==} - engines: {node: '>=20'} - - whatwg-url@16.0.1: - resolution: {integrity: sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -2987,22 +2593,15 @@ packages: utf-8-validate: optional: true - xml-name-validator@5.0.0: - resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} - engines: {node: '>=18'} - xml-naming@0.1.0: resolution: {integrity: sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw==} engines: {node: '>=16.0.0'} - xmlchars@2.2.0: - resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - yaml@2.8.4: - resolution: {integrity: sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==} + yaml@2.9.0: + resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} engines: {node: '>= 14.6'} hasBin: true @@ -3018,35 +2617,8 @@ packages: snapshots: - '@acemir/cssom@0.9.31': - optional: true - '@adobe/css-tools@4.4.4': {} - '@asamuzakjp/css-color@5.1.11': - dependencies: - '@asamuzakjp/generational-cache': 1.0.1 - '@csstools/css-calc': 3.2.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) - '@csstools/css-color-parser': 4.1.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) - '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) - '@csstools/css-tokenizer': 4.0.0 - optional: true - - '@asamuzakjp/dom-selector@6.8.1': - dependencies: - '@asamuzakjp/nwsapi': 2.3.9 - bidi-js: 1.0.3 - css-tree: 3.2.1 - is-potential-custom-element-name: 1.0.1 - lru-cache: 11.3.6 - optional: true - - '@asamuzakjp/generational-cache@1.0.1': - optional: true - - '@asamuzakjp/nwsapi@2.3.9': - optional: true - '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 @@ -3740,10 +3312,6 @@ snapshots: '@babel/template': 7.28.6 '@babel/types': 7.29.0 - '@babel/parser@7.29.2': - dependencies: - '@babel/types': 7.29.0 - '@babel/parser@7.29.3': dependencies: '@babel/types': 7.29.0 @@ -3783,7 +3351,7 @@ snapshots: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.28.5 - '@base-ui/react@1.4.1(@date-fns/tz@1.4.1)(@types/react@19.2.14)(date-fns@4.1.0)(react-dom@19.2.6(react@19.2.6))(react@19.2.6)': + '@base-ui/react@1.4.1(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6)': dependencies: '@babel/runtime': 7.29.2 '@base-ui/utils': 0.2.8(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6) @@ -3793,9 +3361,7 @@ snapshots: react-dom: 19.2.6(react@19.2.6) use-sync-external-store: 1.6.0(react@19.2.6) optionalDependencies: - '@date-fns/tz': 1.4.1 '@types/react': 19.2.14 - date-fns: 4.1.0 '@base-ui/utils@0.2.8(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6)': dependencies: @@ -3810,56 +3376,18 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@bramus/specificity@2.4.2': - dependencies: - css-tree: 3.2.1 - optional: true - - '@clack/core@1.3.0': + '@clack/core@1.3.1': dependencies: fast-wrap-ansi: 0.2.0 sisteransi: 1.0.5 - '@clack/prompts@1.3.0': + '@clack/prompts@1.4.0': dependencies: - '@clack/core': 1.3.0 + '@clack/core': 1.3.1 fast-string-width: 3.0.2 fast-wrap-ansi: 0.2.0 sisteransi: 1.0.5 - '@csstools/color-helpers@6.0.2': - optional: true - - '@csstools/css-calc@3.2.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': - dependencies: - '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) - '@csstools/css-tokenizer': 4.0.0 - optional: true - - '@csstools/css-color-parser@4.1.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': - dependencies: - '@csstools/color-helpers': 6.0.2 - '@csstools/css-calc': 3.2.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) - '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) - '@csstools/css-tokenizer': 4.0.0 - optional: true - - '@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0)': - dependencies: - '@csstools/css-tokenizer': 4.0.0 - optional: true - - '@csstools/css-syntax-patches-for-csstree@1.1.3(css-tree@3.2.1)': - optionalDependencies: - css-tree: 3.2.1 - optional: true - - '@csstools/css-tokenizer@4.0.0': - optional: true - - '@date-fns/tz@1.4.1': - optional: true - '@emnapi/core@1.10.0': dependencies: '@emnapi/wasi-threads': 1.2.1 @@ -3876,84 +3404,6 @@ snapshots: tslib: 2.8.1 optional: true - '@esbuild/aix-ppc64@0.27.7': - optional: true - - '@esbuild/android-arm64@0.27.7': - optional: true - - '@esbuild/android-arm@0.27.7': - optional: true - - '@esbuild/android-x64@0.27.7': - optional: true - - '@esbuild/darwin-arm64@0.27.7': - optional: true - - '@esbuild/darwin-x64@0.27.7': - optional: true - - '@esbuild/freebsd-arm64@0.27.7': - optional: true - - '@esbuild/freebsd-x64@0.27.7': - optional: true - - '@esbuild/linux-arm64@0.27.7': - optional: true - - '@esbuild/linux-arm@0.27.7': - optional: true - - '@esbuild/linux-ia32@0.27.7': - optional: true - - '@esbuild/linux-loong64@0.27.7': - optional: true - - '@esbuild/linux-mips64el@0.27.7': - optional: true - - '@esbuild/linux-ppc64@0.27.7': - optional: true - - '@esbuild/linux-riscv64@0.27.7': - optional: true - - '@esbuild/linux-s390x@0.27.7': - optional: true - - '@esbuild/linux-x64@0.27.7': - optional: true - - '@esbuild/netbsd-arm64@0.27.7': - optional: true - - '@esbuild/netbsd-x64@0.27.7': - optional: true - - '@esbuild/openbsd-arm64@0.27.7': - optional: true - - '@esbuild/openbsd-x64@0.27.7': - optional: true - - '@esbuild/openharmony-arm64@0.27.7': - optional: true - - '@esbuild/sunos-x64@0.27.7': - optional: true - - '@esbuild/win32-arm64@0.27.7': - optional: true - - '@esbuild/win32-ia32@0.27.7': - optional: true - - '@esbuild/win32-x64@0.27.7': - optional: true - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.4(jiti@2.7.0))': dependencies: eslint: 9.39.4(jiti@2.7.0) @@ -4000,9 +3450,6 @@ snapshots: '@eslint/core': 0.17.0 levn: 0.4.1 - '@exodus/bytes@1.15.0': - optional: true - '@floating-ui/core@1.7.5': dependencies: '@floating-ui/utils': 0.2.11 @@ -4024,10 +3471,10 @@ snapshots: '@fontsource-variable/jetbrains-mono@5.2.8': {} - '@hookform/resolvers@5.2.2(react-hook-form@7.75.0(react@19.2.6))': + '@hookform/resolvers@5.2.2(react-hook-form@7.76.0(react@19.2.6))': dependencies: '@standard-schema/utils': 0.3.0 - react-hook-form: 7.75.0(react@19.2.6) + react-hook-form: 7.76.0(react@19.2.6) '@humanfs/core@0.19.2': dependencies: @@ -4073,63 +3520,63 @@ snapshots: '@nodable/entities@2.1.0': {} - '@oxc-project/types@0.128.0': {} + '@oxc-project/types@0.130.0': {} - '@oxfmt/binding-android-arm-eabi@0.48.0': + '@oxfmt/binding-android-arm-eabi@0.50.0': optional: true - '@oxfmt/binding-android-arm64@0.48.0': + '@oxfmt/binding-android-arm64@0.50.0': optional: true - '@oxfmt/binding-darwin-arm64@0.48.0': + '@oxfmt/binding-darwin-arm64@0.50.0': optional: true - '@oxfmt/binding-darwin-x64@0.48.0': + '@oxfmt/binding-darwin-x64@0.50.0': optional: true - '@oxfmt/binding-freebsd-x64@0.48.0': + '@oxfmt/binding-freebsd-x64@0.50.0': optional: true - '@oxfmt/binding-linux-arm-gnueabihf@0.48.0': + '@oxfmt/binding-linux-arm-gnueabihf@0.50.0': optional: true - '@oxfmt/binding-linux-arm-musleabihf@0.48.0': + '@oxfmt/binding-linux-arm-musleabihf@0.50.0': optional: true - '@oxfmt/binding-linux-arm64-gnu@0.48.0': + '@oxfmt/binding-linux-arm64-gnu@0.50.0': optional: true - '@oxfmt/binding-linux-arm64-musl@0.48.0': + '@oxfmt/binding-linux-arm64-musl@0.50.0': optional: true - '@oxfmt/binding-linux-ppc64-gnu@0.48.0': + '@oxfmt/binding-linux-ppc64-gnu@0.50.0': optional: true - '@oxfmt/binding-linux-riscv64-gnu@0.48.0': + '@oxfmt/binding-linux-riscv64-gnu@0.50.0': optional: true - '@oxfmt/binding-linux-riscv64-musl@0.48.0': + '@oxfmt/binding-linux-riscv64-musl@0.50.0': optional: true - '@oxfmt/binding-linux-s390x-gnu@0.48.0': + '@oxfmt/binding-linux-s390x-gnu@0.50.0': optional: true - '@oxfmt/binding-linux-x64-gnu@0.48.0': + '@oxfmt/binding-linux-x64-gnu@0.50.0': optional: true - '@oxfmt/binding-linux-x64-musl@0.48.0': + '@oxfmt/binding-linux-x64-musl@0.50.0': optional: true - '@oxfmt/binding-openharmony-arm64@0.48.0': + '@oxfmt/binding-openharmony-arm64@0.50.0': optional: true - '@oxfmt/binding-win32-arm64-msvc@0.48.0': + '@oxfmt/binding-win32-arm64-msvc@0.50.0': optional: true - '@oxfmt/binding-win32-ia32-msvc@0.48.0': + '@oxfmt/binding-win32-ia32-msvc@0.50.0': optional: true - '@oxfmt/binding-win32-x64-msvc@0.48.0': + '@oxfmt/binding-win32-x64-msvc@0.50.0': optional: true '@oxlint-tsgolint/darwin-arm64@0.22.1': @@ -4150,124 +3597,122 @@ snapshots: '@oxlint-tsgolint/win32-x64@0.22.1': optional: true - '@oxlint/binding-android-arm-eabi@1.63.0': + '@oxlint/binding-android-arm-eabi@1.65.0': optional: true - '@oxlint/binding-android-arm64@1.63.0': + '@oxlint/binding-android-arm64@1.65.0': optional: true - '@oxlint/binding-darwin-arm64@1.63.0': + '@oxlint/binding-darwin-arm64@1.65.0': optional: true - '@oxlint/binding-darwin-x64@1.63.0': + '@oxlint/binding-darwin-x64@1.65.0': optional: true - '@oxlint/binding-freebsd-x64@1.63.0': + '@oxlint/binding-freebsd-x64@1.65.0': optional: true - '@oxlint/binding-linux-arm-gnueabihf@1.63.0': + '@oxlint/binding-linux-arm-gnueabihf@1.65.0': optional: true - '@oxlint/binding-linux-arm-musleabihf@1.63.0': + '@oxlint/binding-linux-arm-musleabihf@1.65.0': optional: true - '@oxlint/binding-linux-arm64-gnu@1.63.0': + '@oxlint/binding-linux-arm64-gnu@1.65.0': optional: true - '@oxlint/binding-linux-arm64-musl@1.63.0': + '@oxlint/binding-linux-arm64-musl@1.65.0': optional: true - '@oxlint/binding-linux-ppc64-gnu@1.63.0': + '@oxlint/binding-linux-ppc64-gnu@1.65.0': optional: true - '@oxlint/binding-linux-riscv64-gnu@1.63.0': + '@oxlint/binding-linux-riscv64-gnu@1.65.0': optional: true - '@oxlint/binding-linux-riscv64-musl@1.63.0': + '@oxlint/binding-linux-riscv64-musl@1.65.0': optional: true - '@oxlint/binding-linux-s390x-gnu@1.63.0': + '@oxlint/binding-linux-s390x-gnu@1.65.0': optional: true - '@oxlint/binding-linux-x64-gnu@1.63.0': + '@oxlint/binding-linux-x64-gnu@1.65.0': optional: true - '@oxlint/binding-linux-x64-musl@1.63.0': + '@oxlint/binding-linux-x64-musl@1.65.0': optional: true - '@oxlint/binding-openharmony-arm64@1.63.0': + '@oxlint/binding-openharmony-arm64@1.65.0': optional: true - '@oxlint/binding-win32-arm64-msvc@1.63.0': + '@oxlint/binding-win32-arm64-msvc@1.65.0': optional: true - '@oxlint/binding-win32-ia32-msvc@1.63.0': + '@oxlint/binding-win32-ia32-msvc@1.65.0': optional: true - '@oxlint/binding-win32-x64-msvc@1.63.0': + '@oxlint/binding-win32-x64-msvc@1.65.0': optional: true - '@rolldown/binding-android-arm64@1.0.0-rc.18': + '@rolldown/binding-android-arm64@1.0.1': optional: true - '@rolldown/binding-darwin-arm64@1.0.0-rc.18': + '@rolldown/binding-darwin-arm64@1.0.1': optional: true - '@rolldown/binding-darwin-x64@1.0.0-rc.18': + '@rolldown/binding-darwin-x64@1.0.1': optional: true - '@rolldown/binding-freebsd-x64@1.0.0-rc.18': + '@rolldown/binding-freebsd-x64@1.0.1': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.18': + '@rolldown/binding-linux-arm-gnueabihf@1.0.1': optional: true - '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.18': + '@rolldown/binding-linux-arm64-gnu@1.0.1': optional: true - '@rolldown/binding-linux-arm64-musl@1.0.0-rc.18': + '@rolldown/binding-linux-arm64-musl@1.0.1': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.18': + '@rolldown/binding-linux-ppc64-gnu@1.0.1': optional: true - '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.18': + '@rolldown/binding-linux-s390x-gnu@1.0.1': optional: true - '@rolldown/binding-linux-x64-gnu@1.0.0-rc.18': + '@rolldown/binding-linux-x64-gnu@1.0.1': optional: true - '@rolldown/binding-linux-x64-musl@1.0.0-rc.18': + '@rolldown/binding-linux-x64-musl@1.0.1': optional: true - '@rolldown/binding-openharmony-arm64@1.0.0-rc.18': + '@rolldown/binding-openharmony-arm64@1.0.1': optional: true - '@rolldown/binding-wasm32-wasi@1.0.0-rc.18': + '@rolldown/binding-wasm32-wasi@1.0.1': dependencies: '@emnapi/core': 1.10.0 '@emnapi/runtime': 1.10.0 '@napi-rs/wasm-runtime': 1.1.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) optional: true - '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.18': + '@rolldown/binding-win32-arm64-msvc@1.0.1': optional: true - '@rolldown/binding-win32-x64-msvc@1.0.0-rc.18': + '@rolldown/binding-win32-x64-msvc@1.0.1': optional: true - '@rolldown/plugin-babel@0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.0-rc.18)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4))': + '@rolldown/plugin-babel@0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0))': dependencies: '@babel/core': 7.29.0 picomatch: 4.0.4 - rolldown: 1.0.0-rc.18 + rolldown: 1.0.1 optionalDependencies: '@babel/runtime': 7.29.2 - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) - '@rolldown/pluginutils@1.0.0-rc.18': {} - - '@rolldown/pluginutils@1.0.0-rc.7': {} + '@rolldown/pluginutils@1.0.1': {} '@smithy/chunked-blob-reader-native@4.2.3': dependencies: @@ -4667,44 +4112,44 @@ snapshots: '@tailwindcss/oxide-win32-arm64-msvc': 4.3.0 '@tailwindcss/oxide-win32-x64-msvc': 4.3.0 - '@tailwindcss/vite@4.3.0(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4))': + '@tailwindcss/vite@4.3.0(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0))': dependencies: '@tailwindcss/node': 4.3.0 '@tailwindcss/oxide': 4.3.0 tailwindcss: 4.3.0 - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) - '@tanstack/eslint-plugin-query@5.100.9(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': + '@tanstack/eslint-plugin-query@5.100.10(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': dependencies: - '@typescript-eslint/utils': 8.59.2(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) + '@typescript-eslint/utils': 8.59.3(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) eslint: 9.39.4(jiti@2.7.0) optionalDependencies: typescript: 6.0.3 transitivePeerDependencies: - supports-color - '@tanstack/eslint-plugin-router@1.161.6(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': + '@tanstack/eslint-plugin-router@1.162.0(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': dependencies: - '@typescript-eslint/utils': 8.57.2(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) + '@typescript-eslint/utils': 8.59.3(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3) eslint: 9.39.4(jiti@2.7.0) transitivePeerDependencies: - supports-color - typescript - '@tanstack/history@1.161.6': {} + '@tanstack/history@1.162.0': {} - '@tanstack/query-core@5.100.9': {} + '@tanstack/query-core@5.100.10': {} - '@tanstack/react-query@5.100.9(react@19.2.6)': + '@tanstack/react-query@5.100.10(react@19.2.6)': dependencies: - '@tanstack/query-core': 5.100.9 + '@tanstack/query-core': 5.100.10 react: 19.2.6 - '@tanstack/react-router@1.169.2(react-dom@19.2.6(react@19.2.6))(react@19.2.6)': + '@tanstack/react-router@1.170.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6)': dependencies: - '@tanstack/history': 1.161.6 + '@tanstack/history': 1.162.0 '@tanstack/react-store': 0.9.3(react-dom@19.2.6(react@19.2.6))(react@19.2.6) - '@tanstack/router-core': 1.169.2 + '@tanstack/router-core': 1.170.1 isbot: 5.1.40 react: 19.2.6 react-dom: 19.2.6(react@19.2.6) @@ -4716,19 +4161,19 @@ snapshots: react-dom: 19.2.6(react@19.2.6) use-sync-external-store: 1.6.0(react@19.2.6) - '@tanstack/router-core@1.169.2': + '@tanstack/router-core@1.170.1': dependencies: - '@tanstack/history': 1.161.6 + '@tanstack/history': 1.162.0 cookie-es: 3.1.1 seroval: 1.5.4 seroval-plugins: 1.5.4(seroval@1.5.4) - '@tanstack/router-generator@1.166.42': + '@tanstack/router-generator@1.167.1': dependencies: '@babel/types': 7.29.0 - '@tanstack/router-core': 1.169.2 - '@tanstack/router-utils': 1.161.8 - '@tanstack/virtual-file-routes': 1.161.7 + '@tanstack/router-core': 1.170.1 + '@tanstack/router-utils': 1.162.0 + '@tanstack/virtual-file-routes': 1.162.0 jiti: 2.7.0 magic-string: 0.30.21 prettier: 3.8.3 @@ -4736,7 +4181,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@tanstack/router-plugin@1.167.35(@tanstack/react-router@1.169.2(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4))': + '@tanstack/router-plugin@1.168.1(@tanstack/react-router@1.170.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) @@ -4744,26 +4189,26 @@ snapshots: '@babel/template': 7.28.6 '@babel/traverse': 7.29.0 '@babel/types': 7.29.0 - '@tanstack/router-core': 1.169.2 - '@tanstack/router-generator': 1.166.42 - '@tanstack/router-utils': 1.161.8 - '@tanstack/virtual-file-routes': 1.161.7 + '@tanstack/router-core': 1.170.1 + '@tanstack/router-generator': 1.167.1 + '@tanstack/router-utils': 1.162.0 + '@tanstack/virtual-file-routes': 1.162.0 chokidar: 3.6.0 unplugin: 3.0.0 zod: 3.25.76 optionalDependencies: - '@tanstack/react-router': 1.169.2(react-dom@19.2.6(react@19.2.6))(react@19.2.6) - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + '@tanstack/react-router': 1.170.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6) + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) transitivePeerDependencies: - supports-color - '@tanstack/router-utils@1.161.8': + '@tanstack/router-utils@1.162.0': dependencies: '@babel/core': 7.29.0 '@babel/generator': 7.29.1 '@babel/parser': 7.29.3 '@babel/types': 7.29.0 - ansis: 4.2.0 + ansis: 4.3.0 babel-dead-code-elimination: 1.0.12 diff: 8.0.4 pathe: 2.0.3 @@ -4773,7 +4218,7 @@ snapshots: '@tanstack/store@0.9.3': {} - '@tanstack/virtual-file-routes@1.161.7': {} + '@tanstack/virtual-file-routes@1.162.0': {} '@testing-library/dom@10.4.1': dependencies: @@ -4823,8 +4268,6 @@ snapshots: '@types/deep-eql@4.0.2': {} - '@types/estree@1.0.8': {} - '@types/estree@1.0.9': {} '@types/json-schema@7.0.15': {} @@ -4847,52 +4290,32 @@ snapshots: dependencies: '@types/node': 24.12.3 - '@typescript-eslint/project-service@8.57.2(typescript@6.0.3)': + '@typescript-eslint/project-service@8.59.3(typescript@6.0.3)': dependencies: - '@typescript-eslint/tsconfig-utils': 8.57.2(typescript@6.0.3) - '@typescript-eslint/types': 8.57.2 + '@typescript-eslint/tsconfig-utils': 8.59.3(typescript@6.0.3) + '@typescript-eslint/types': 8.59.3 debug: 4.4.3 typescript: 6.0.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.59.2(typescript@6.0.3)': + '@typescript-eslint/scope-manager@8.59.3': dependencies: - '@typescript-eslint/tsconfig-utils': 8.59.2(typescript@6.0.3) - '@typescript-eslint/types': 8.59.2 - debug: 4.4.3 - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color + '@typescript-eslint/types': 8.59.3 + '@typescript-eslint/visitor-keys': 8.59.3 - '@typescript-eslint/scope-manager@8.57.2': - dependencies: - '@typescript-eslint/types': 8.57.2 - '@typescript-eslint/visitor-keys': 8.57.2 - - '@typescript-eslint/scope-manager@8.59.2': - dependencies: - '@typescript-eslint/types': 8.59.2 - '@typescript-eslint/visitor-keys': 8.59.2 - - '@typescript-eslint/tsconfig-utils@8.57.2(typescript@6.0.3)': + '@typescript-eslint/tsconfig-utils@8.59.3(typescript@6.0.3)': dependencies: typescript: 6.0.3 - '@typescript-eslint/tsconfig-utils@8.59.2(typescript@6.0.3)': + '@typescript-eslint/types@8.59.3': {} + + '@typescript-eslint/typescript-estree@8.59.3(typescript@6.0.3)': dependencies: - typescript: 6.0.3 - - '@typescript-eslint/types@8.57.2': {} - - '@typescript-eslint/types@8.59.2': {} - - '@typescript-eslint/typescript-estree@8.57.2(typescript@6.0.3)': - dependencies: - '@typescript-eslint/project-service': 8.57.2(typescript@6.0.3) - '@typescript-eslint/tsconfig-utils': 8.57.2(typescript@6.0.3) - '@typescript-eslint/types': 8.57.2 - '@typescript-eslint/visitor-keys': 8.57.2 + '@typescript-eslint/project-service': 8.59.3(typescript@6.0.3) + '@typescript-eslint/tsconfig-utils': 8.59.3(typescript@6.0.3) + '@typescript-eslint/types': 8.59.3 + '@typescript-eslint/visitor-keys': 8.59.3 debug: 4.4.3 minimatch: 10.2.5 semver: 7.8.0 @@ -4902,148 +4325,117 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@8.59.2(typescript@6.0.3)': - dependencies: - '@typescript-eslint/project-service': 8.59.2(typescript@6.0.3) - '@typescript-eslint/tsconfig-utils': 8.59.2(typescript@6.0.3) - '@typescript-eslint/types': 8.59.2 - '@typescript-eslint/visitor-keys': 8.59.2 - debug: 4.4.3 - minimatch: 10.2.5 - semver: 7.8.0 - tinyglobby: 0.2.16 - ts-api-utils: 2.5.0(typescript@6.0.3) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/utils@8.57.2(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': + '@typescript-eslint/utils@8.59.3(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': dependencies: '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.7.0)) - '@typescript-eslint/scope-manager': 8.57.2 - '@typescript-eslint/types': 8.57.2 - '@typescript-eslint/typescript-estree': 8.57.2(typescript@6.0.3) + '@typescript-eslint/scope-manager': 8.59.3 + '@typescript-eslint/types': 8.59.3 + '@typescript-eslint/typescript-estree': 8.59.3(typescript@6.0.3) eslint: 9.39.4(jiti@2.7.0) typescript: 6.0.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.59.2(eslint@9.39.4(jiti@2.7.0))(typescript@6.0.3)': + '@typescript-eslint/visitor-keys@8.59.3': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.7.0)) - '@typescript-eslint/scope-manager': 8.59.2 - '@typescript-eslint/types': 8.59.2 - '@typescript-eslint/typescript-estree': 8.59.2(typescript@6.0.3) - eslint: 9.39.4(jiti@2.7.0) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/visitor-keys@8.57.2': - dependencies: - '@typescript-eslint/types': 8.57.2 + '@typescript-eslint/types': 8.59.3 eslint-visitor-keys: 5.0.1 - '@typescript-eslint/visitor-keys@8.59.2': - dependencies: - '@typescript-eslint/types': 8.59.2 - eslint-visitor-keys: 5.0.1 - - '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260509.2': + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview-darwin-x64@7.0.0-dev.20260509.2': + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview-linux-arm64@7.0.0-dev.20260509.2': + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview-linux-arm@7.0.0-dev.20260509.2': + '@typescript/native-preview-linux-arm@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview-linux-x64@7.0.0-dev.20260509.2': + '@typescript/native-preview-linux-x64@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview-win32-arm64@7.0.0-dev.20260509.2': + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview-win32-x64@7.0.0-dev.20260509.2': + '@typescript/native-preview-win32-x64@7.0.0-dev.20260515.1': optional: true - '@typescript/native-preview@7.0.0-dev.20260509.2': + '@typescript/native-preview@7.0.0-dev.20260515.1': optionalDependencies: - '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260509.2 - '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260509.2 - '@typescript/native-preview-linux-arm': 7.0.0-dev.20260509.2 - '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260509.2 - '@typescript/native-preview-linux-x64': 7.0.0-dev.20260509.2 - '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260509.2 - '@typescript/native-preview-win32-x64': 7.0.0-dev.20260509.2 + '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260515.1 + '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260515.1 + '@typescript/native-preview-linux-arm': 7.0.0-dev.20260515.1 + '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260515.1 + '@typescript/native-preview-linux-x64': 7.0.0-dev.20260515.1 + '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260515.1 + '@typescript/native-preview-win32-x64': 7.0.0-dev.20260515.1 - '@vitejs/plugin-basic-ssl@2.3.0(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4))': + '@vitejs/plugin-basic-ssl@2.3.0(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0))': dependencies: - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) - '@vitejs/plugin-react@6.0.1(@rolldown/plugin-babel@0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.0-rc.18)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)))(babel-plugin-react-compiler@1.0.0)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4))': + '@vitejs/plugin-react@6.0.2(@rolldown/plugin-babel@0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)))(babel-plugin-react-compiler@1.0.0)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0))': dependencies: - '@rolldown/pluginutils': 1.0.0-rc.7 - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + '@rolldown/pluginutils': 1.0.1 + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) optionalDependencies: - '@rolldown/plugin-babel': 0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.0-rc.18)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + '@rolldown/plugin-babel': 0.2.3(@babel/core@7.29.0)(@babel/runtime@7.29.2)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) babel-plugin-react-compiler: 1.0.0 - '@vitest/coverage-v8@4.1.5(vitest@4.1.5)': + '@vitest/coverage-v8@4.1.6(vitest@4.1.6)': dependencies: '@bcoe/v8-coverage': 1.0.2 - '@vitest/utils': 4.1.5 + '@vitest/utils': 4.1.6 ast-v8-to-istanbul: 1.0.0 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-reports: 3.2.0 - magicast: 0.5.2 + magicast: 0.5.3 obug: 2.1.1 std-env: 4.1.0 tinyrainbow: 3.1.0 - vitest: 4.1.5(@types/node@24.12.3)(@vitest/coverage-v8@4.1.5)(happy-dom@20.9.0)(jsdom@28.1.0)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) + vitest: 4.1.6(@types/node@24.12.3)(@vitest/coverage-v8@4.1.6)(happy-dom@20.9.0)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) - '@vitest/expect@4.1.5': + '@vitest/expect@4.1.6': dependencies: '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.3 - '@vitest/spy': 4.1.5 - '@vitest/utils': 4.1.5 + '@vitest/spy': 4.1.6 + '@vitest/utils': 4.1.6 chai: 6.2.2 tinyrainbow: 3.1.0 - '@vitest/mocker@4.1.5(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4))': + '@vitest/mocker@4.1.6(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0))': dependencies: - '@vitest/spy': 4.1.5 + '@vitest/spy': 4.1.6 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) - '@vitest/pretty-format@4.1.5': + '@vitest/pretty-format@4.1.6': dependencies: tinyrainbow: 3.1.0 - '@vitest/runner@4.1.5': + '@vitest/runner@4.1.6': dependencies: - '@vitest/utils': 4.1.5 + '@vitest/utils': 4.1.6 pathe: 2.0.3 - '@vitest/snapshot@4.1.5': + '@vitest/snapshot@4.1.6': dependencies: - '@vitest/pretty-format': 4.1.5 - '@vitest/utils': 4.1.5 + '@vitest/pretty-format': 4.1.6 + '@vitest/utils': 4.1.6 magic-string: 0.30.21 pathe: 2.0.3 - '@vitest/spy@4.1.5': {} + '@vitest/spy@4.1.6': {} - '@vitest/utils@4.1.5': + '@vitest/utils@4.1.6': dependencies: - '@vitest/pretty-format': 4.1.5 + '@vitest/pretty-format': 4.1.6 convert-source-map: 2.0.0 tinyrainbow: 3.1.0 @@ -5053,9 +4445,6 @@ snapshots: acorn@8.16.0: {} - agent-base@7.1.4: - optional: true - ajv@6.15.0: dependencies: fast-deep-equal: 3.1.3 @@ -5071,7 +4460,7 @@ snapshots: ansi-styles@5.2.0: {} - ansis@4.2.0: {} + ansis@4.3.0: {} anymatch@3.1.3: dependencies: @@ -5115,11 +4504,6 @@ snapshots: baseline-browser-mapping@2.10.29: {} - bidi-js@1.0.3: - dependencies: - require-from-string: 2.0.2 - optional: true - binary-extensions@2.3.0: {} bowser@2.14.1: {} @@ -5141,8 +4525,8 @@ snapshots: dependencies: baseline-browser-mapping: 2.10.29 caniuse-lite: 1.0.30001792 - electron-to-chromium: 1.5.353 - node-releases: 2.0.38 + electron-to-chromium: 1.5.356 + node-releases: 2.0.44 update-browserslist-db: 1.2.3(browserslist@4.28.2) buffer@5.6.0: @@ -5201,42 +4585,14 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - css-tree@3.2.1: - dependencies: - mdn-data: 2.27.1 - source-map-js: 1.2.1 - optional: true - css.escape@1.5.1: {} - cssstyle@6.2.0: - dependencies: - '@asamuzakjp/css-color': 5.1.11 - '@csstools/css-syntax-patches-for-csstree': 1.1.3(css-tree@3.2.1) - css-tree: 3.2.1 - lru-cache: 11.3.6 - optional: true - csstype@3.2.3: {} - data-urls@7.0.0: - dependencies: - whatwg-mimetype: 5.0.0 - whatwg-url: 16.0.1 - transitivePeerDependencies: - - '@noble/hashes' - optional: true - - date-fns@4.1.0: - optional: true - debug@4.4.3: dependencies: ms: 2.1.3 - decimal.js@10.6.0: - optional: true - deep-is@0.1.4: {} deepmerge@4.3.1: {} @@ -5251,7 +4607,7 @@ snapshots: dom-accessibility-api@0.6.3: {} - electron-to-chromium@1.5.353: {} + electron-to-chromium@1.5.356: {} enhanced-resolve@5.21.2: dependencies: @@ -5260,41 +4616,8 @@ snapshots: entities@7.0.1: {} - entities@8.0.0: - optional: true - es-module-lexer@2.1.0: {} - esbuild@0.27.7: - optionalDependencies: - '@esbuild/aix-ppc64': 0.27.7 - '@esbuild/android-arm': 0.27.7 - '@esbuild/android-arm64': 0.27.7 - '@esbuild/android-x64': 0.27.7 - '@esbuild/darwin-arm64': 0.27.7 - '@esbuild/darwin-x64': 0.27.7 - '@esbuild/freebsd-arm64': 0.27.7 - '@esbuild/freebsd-x64': 0.27.7 - '@esbuild/linux-arm': 0.27.7 - '@esbuild/linux-arm64': 0.27.7 - '@esbuild/linux-ia32': 0.27.7 - '@esbuild/linux-loong64': 0.27.7 - '@esbuild/linux-mips64el': 0.27.7 - '@esbuild/linux-ppc64': 0.27.7 - '@esbuild/linux-riscv64': 0.27.7 - '@esbuild/linux-s390x': 0.27.7 - '@esbuild/linux-x64': 0.27.7 - '@esbuild/netbsd-arm64': 0.27.7 - '@esbuild/netbsd-x64': 0.27.7 - '@esbuild/openbsd-arm64': 0.27.7 - '@esbuild/openbsd-x64': 0.27.7 - '@esbuild/openharmony-arm64': 0.27.7 - '@esbuild/sunos-x64': 0.27.7 - '@esbuild/win32-arm64': 0.27.7 - '@esbuild/win32-ia32': 0.27.7 - '@esbuild/win32-x64': 0.27.7 - optional: true - escalade@3.2.0: {} escape-string-regexp@4.0.0: {} @@ -5369,7 +4692,7 @@ snapshots: estree-walker@3.0.3: dependencies: - '@types/estree': 1.0.8 + '@types/estree': 1.0.9 esutils@2.0.3: {} @@ -5434,11 +4757,6 @@ snapshots: gensync@1.0.0-beta.2: {} - get-tsconfig@4.14.0: - dependencies: - resolve-pkg-maps: 1.0.0 - optional: true - glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -5471,31 +4789,8 @@ snapshots: has-flag@4.0.0: {} - html-encoding-sniffer@6.0.0: - dependencies: - '@exodus/bytes': 1.15.0 - transitivePeerDependencies: - - '@noble/hashes' - optional: true - html-escaper@2.0.2: {} - http-proxy-agent@7.0.2: - dependencies: - agent-base: 7.1.4 - debug: 4.4.3 - transitivePeerDependencies: - - supports-color - optional: true - - https-proxy-agent@7.0.6: - dependencies: - agent-base: 7.1.4 - debug: 4.4.3 - transitivePeerDependencies: - - supports-color - optional: true - ieee754@1.2.1: {} ignore@5.3.2: {} @@ -5523,9 +4818,6 @@ snapshots: is-number@7.0.0: {} - is-potential-custom-element-name@1.0.1: - optional: true - isbot@5.1.40: {} isexe@2.0.0: {} @@ -5553,34 +4845,6 @@ snapshots: dependencies: argparse: 2.0.1 - jsdom@28.1.0: - dependencies: - '@acemir/cssom': 0.9.31 - '@asamuzakjp/dom-selector': 6.8.1 - '@bramus/specificity': 2.4.2 - '@exodus/bytes': 1.15.0 - cssstyle: 6.2.0 - data-urls: 7.0.0 - decimal.js: 10.6.0 - html-encoding-sniffer: 6.0.0 - http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.6 - is-potential-custom-element-name: 1.0.1 - parse5: 8.0.1 - saxes: 6.0.0 - symbol-tree: 3.2.4 - tough-cookie: 6.0.1 - undici: 7.25.0 - w3c-xmlserializer: 5.0.0 - webidl-conversions: 8.0.1 - whatwg-mimetype: 5.0.0 - whatwg-url: 16.0.1 - xml-name-validator: 5.0.0 - transitivePeerDependencies: - - '@noble/hashes' - - supports-color - optional: true - jsesc@3.1.0: {} json-buffer@3.0.1: {} @@ -5663,7 +4927,7 @@ snapshots: dependencies: yallist: 3.1.1 - lucide-react@1.14.0(react@19.2.6): + lucide-react@1.16.0(react@19.2.6): dependencies: react: 19.2.6 @@ -5673,9 +4937,9 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - magicast@0.5.2: + magicast@0.5.3: dependencies: - '@babel/parser': 7.29.2 + '@babel/parser': 7.29.3 '@babel/types': 7.29.0 source-map-js: 1.2.1 @@ -5683,9 +4947,6 @@ snapshots: dependencies: semver: 7.8.0 - mdn-data@2.27.1: - optional: true - min-indent@1.0.1: {} minimatch@10.2.5: @@ -5704,7 +4965,7 @@ snapshots: natural-compare@1.4.0: {} - node-releases@2.0.38: {} + node-releases@2.0.44: {} normalize-path@3.0.0: {} @@ -5725,29 +4986,29 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxfmt@0.48.0: + oxfmt@0.50.0: dependencies: tinypool: 2.1.0 optionalDependencies: - '@oxfmt/binding-android-arm-eabi': 0.48.0 - '@oxfmt/binding-android-arm64': 0.48.0 - '@oxfmt/binding-darwin-arm64': 0.48.0 - '@oxfmt/binding-darwin-x64': 0.48.0 - '@oxfmt/binding-freebsd-x64': 0.48.0 - '@oxfmt/binding-linux-arm-gnueabihf': 0.48.0 - '@oxfmt/binding-linux-arm-musleabihf': 0.48.0 - '@oxfmt/binding-linux-arm64-gnu': 0.48.0 - '@oxfmt/binding-linux-arm64-musl': 0.48.0 - '@oxfmt/binding-linux-ppc64-gnu': 0.48.0 - '@oxfmt/binding-linux-riscv64-gnu': 0.48.0 - '@oxfmt/binding-linux-riscv64-musl': 0.48.0 - '@oxfmt/binding-linux-s390x-gnu': 0.48.0 - '@oxfmt/binding-linux-x64-gnu': 0.48.0 - '@oxfmt/binding-linux-x64-musl': 0.48.0 - '@oxfmt/binding-openharmony-arm64': 0.48.0 - '@oxfmt/binding-win32-arm64-msvc': 0.48.0 - '@oxfmt/binding-win32-ia32-msvc': 0.48.0 - '@oxfmt/binding-win32-x64-msvc': 0.48.0 + '@oxfmt/binding-android-arm-eabi': 0.50.0 + '@oxfmt/binding-android-arm64': 0.50.0 + '@oxfmt/binding-darwin-arm64': 0.50.0 + '@oxfmt/binding-darwin-x64': 0.50.0 + '@oxfmt/binding-freebsd-x64': 0.50.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.50.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.50.0 + '@oxfmt/binding-linux-arm64-gnu': 0.50.0 + '@oxfmt/binding-linux-arm64-musl': 0.50.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.50.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.50.0 + '@oxfmt/binding-linux-riscv64-musl': 0.50.0 + '@oxfmt/binding-linux-s390x-gnu': 0.50.0 + '@oxfmt/binding-linux-x64-gnu': 0.50.0 + '@oxfmt/binding-linux-x64-musl': 0.50.0 + '@oxfmt/binding-openharmony-arm64': 0.50.0 + '@oxfmt/binding-win32-arm64-msvc': 0.50.0 + '@oxfmt/binding-win32-ia32-msvc': 0.50.0 + '@oxfmt/binding-win32-x64-msvc': 0.50.0 oxlint-tsgolint@0.22.1: optionalDependencies: @@ -5758,27 +5019,27 @@ snapshots: '@oxlint-tsgolint/win32-arm64': 0.22.1 '@oxlint-tsgolint/win32-x64': 0.22.1 - oxlint@1.63.0(oxlint-tsgolint@0.22.1): + oxlint@1.65.0(oxlint-tsgolint@0.22.1): optionalDependencies: - '@oxlint/binding-android-arm-eabi': 1.63.0 - '@oxlint/binding-android-arm64': 1.63.0 - '@oxlint/binding-darwin-arm64': 1.63.0 - '@oxlint/binding-darwin-x64': 1.63.0 - '@oxlint/binding-freebsd-x64': 1.63.0 - '@oxlint/binding-linux-arm-gnueabihf': 1.63.0 - '@oxlint/binding-linux-arm-musleabihf': 1.63.0 - '@oxlint/binding-linux-arm64-gnu': 1.63.0 - '@oxlint/binding-linux-arm64-musl': 1.63.0 - '@oxlint/binding-linux-ppc64-gnu': 1.63.0 - '@oxlint/binding-linux-riscv64-gnu': 1.63.0 - '@oxlint/binding-linux-riscv64-musl': 1.63.0 - '@oxlint/binding-linux-s390x-gnu': 1.63.0 - '@oxlint/binding-linux-x64-gnu': 1.63.0 - '@oxlint/binding-linux-x64-musl': 1.63.0 - '@oxlint/binding-openharmony-arm64': 1.63.0 - '@oxlint/binding-win32-arm64-msvc': 1.63.0 - '@oxlint/binding-win32-ia32-msvc': 1.63.0 - '@oxlint/binding-win32-x64-msvc': 1.63.0 + '@oxlint/binding-android-arm-eabi': 1.65.0 + '@oxlint/binding-android-arm64': 1.65.0 + '@oxlint/binding-darwin-arm64': 1.65.0 + '@oxlint/binding-darwin-x64': 1.65.0 + '@oxlint/binding-freebsd-x64': 1.65.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.65.0 + '@oxlint/binding-linux-arm-musleabihf': 1.65.0 + '@oxlint/binding-linux-arm64-gnu': 1.65.0 + '@oxlint/binding-linux-arm64-musl': 1.65.0 + '@oxlint/binding-linux-ppc64-gnu': 1.65.0 + '@oxlint/binding-linux-riscv64-gnu': 1.65.0 + '@oxlint/binding-linux-riscv64-musl': 1.65.0 + '@oxlint/binding-linux-s390x-gnu': 1.65.0 + '@oxlint/binding-linux-x64-gnu': 1.65.0 + '@oxlint/binding-linux-x64-musl': 1.65.0 + '@oxlint/binding-openharmony-arm64': 1.65.0 + '@oxlint/binding-win32-arm64-msvc': 1.65.0 + '@oxlint/binding-win32-ia32-msvc': 1.65.0 + '@oxlint/binding-win32-x64-msvc': 1.65.0 oxlint-tsgolint: 0.22.1 p-limit@3.1.0: @@ -5793,11 +5054,6 @@ snapshots: dependencies: callsites: 3.1.0 - parse5@8.0.1: - dependencies: - entities: 8.0.0 - optional: true - path-exists@4.0.0: {} path-expression-matcher@1.5.0: {} @@ -5840,7 +5096,7 @@ snapshots: react: 19.2.6 scheduler: 0.27.0 - react-hook-form@7.75.0(react@19.2.6): + react-hook-form@7.76.0(react@19.2.6): dependencies: react: 19.2.6 @@ -5863,44 +5119,33 @@ snapshots: indent-string: 4.0.0 strip-indent: 3.0.0 - require-from-string@2.0.2: - optional: true - reselect@5.1.1: {} resolve-from@4.0.0: {} - resolve-pkg-maps@1.0.0: - optional: true - - rolldown@1.0.0-rc.18: + rolldown@1.0.1: dependencies: - '@oxc-project/types': 0.128.0 - '@rolldown/pluginutils': 1.0.0-rc.18 + '@oxc-project/types': 0.130.0 + '@rolldown/pluginutils': 1.0.1 optionalDependencies: - '@rolldown/binding-android-arm64': 1.0.0-rc.18 - '@rolldown/binding-darwin-arm64': 1.0.0-rc.18 - '@rolldown/binding-darwin-x64': 1.0.0-rc.18 - '@rolldown/binding-freebsd-x64': 1.0.0-rc.18 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.18 - '@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.18 - '@rolldown/binding-linux-arm64-musl': 1.0.0-rc.18 - '@rolldown/binding-linux-ppc64-gnu': 1.0.0-rc.18 - '@rolldown/binding-linux-s390x-gnu': 1.0.0-rc.18 - '@rolldown/binding-linux-x64-gnu': 1.0.0-rc.18 - '@rolldown/binding-linux-x64-musl': 1.0.0-rc.18 - '@rolldown/binding-openharmony-arm64': 1.0.0-rc.18 - '@rolldown/binding-wasm32-wasi': 1.0.0-rc.18 - '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.18 - '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.18 + '@rolldown/binding-android-arm64': 1.0.1 + '@rolldown/binding-darwin-arm64': 1.0.1 + '@rolldown/binding-darwin-x64': 1.0.1 + '@rolldown/binding-freebsd-x64': 1.0.1 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.1 + '@rolldown/binding-linux-arm64-gnu': 1.0.1 + '@rolldown/binding-linux-arm64-musl': 1.0.1 + '@rolldown/binding-linux-ppc64-gnu': 1.0.1 + '@rolldown/binding-linux-s390x-gnu': 1.0.1 + '@rolldown/binding-linux-x64-gnu': 1.0.1 + '@rolldown/binding-linux-x64-musl': 1.0.1 + '@rolldown/binding-openharmony-arm64': 1.0.1 + '@rolldown/binding-wasm32-wasi': 1.0.1 + '@rolldown/binding-win32-arm64-msvc': 1.0.1 + '@rolldown/binding-win32-x64-msvc': 1.0.1 safe-buffer@5.2.1: {} - saxes@6.0.0: - dependencies: - xmlchars: 2.2.0 - optional: true - scheduler@0.27.0: {} semver@6.3.1: {} @@ -5950,10 +5195,7 @@ snapshots: dependencies: has-flag: 4.0.0 - symbol-tree@3.2.4: - optional: true - - tailwind-merge@3.5.0: {} + tailwind-merge@3.6.0: {} tailwindcss@4.3.0: {} @@ -5961,8 +5203,6 @@ snapshots: tinybench@2.9.0: {} - tinyexec@1.1.1: {} - tinyexec@1.1.2: {} tinyglobby@0.2.16: @@ -5974,68 +5214,39 @@ snapshots: tinyrainbow@3.1.0: {} - tldts-core@7.0.30: - optional: true - - tldts@7.0.30: - dependencies: - tldts-core: 7.0.30 - optional: true - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 - tough-cookie@6.0.1: - dependencies: - tldts: 7.0.30 - optional: true - - tr46@6.0.0: - dependencies: - punycode: 2.3.1 - optional: true - ts-api-utils@2.5.0(typescript@6.0.3): dependencies: typescript: 6.0.3 tslib@2.8.1: {} - tsx@4.21.0: - dependencies: - esbuild: 0.27.7 - get-tsconfig: 4.14.0 - optionalDependencies: - fsevents: 2.3.3 - optional: true - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 typescript@6.0.3: {} - ultracite@7.6.5(oxfmt@0.48.0)(oxlint@1.63.0(oxlint-tsgolint@0.22.1)): + ultracite@7.7.0(oxfmt@0.50.0)(oxlint@1.65.0(oxlint-tsgolint@0.22.1)): dependencies: - '@clack/prompts': 1.3.0 + '@clack/prompts': 1.4.0 commander: 14.0.3 cross-spawn: 7.0.6 deepmerge: 4.3.1 glob: 13.0.6 jsonc-parser: 3.3.1 nypm: 0.6.6 - yaml: 2.8.4 + yaml: 2.9.0 zod: 4.4.3 optionalDependencies: - oxfmt: 0.48.0 - oxlint: 1.63.0(oxlint-tsgolint@0.22.1) + oxfmt: 0.50.0 + oxlint: 1.65.0(oxlint-tsgolint@0.22.1) undici-types@7.16.0: {} - undici@7.25.0: - optional: true - unplugin@3.0.0: dependencies: '@jridgewell/remapping': 2.3.5 @@ -6058,30 +5269,28 @@ snapshots: util-deprecate@1.0.2: {} - vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4): + vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0): dependencies: lightningcss: 1.32.0 picomatch: 4.0.4 postcss: 8.5.14 - rolldown: 1.0.0-rc.18 + rolldown: 1.0.1 tinyglobby: 0.2.16 optionalDependencies: '@types/node': 24.12.3 - esbuild: 0.27.7 fsevents: 2.3.3 jiti: 2.7.0 - tsx: 4.21.0 - yaml: 2.8.4 + yaml: 2.9.0 - vitest@4.1.5(@types/node@24.12.3)(@vitest/coverage-v8@4.1.5)(happy-dom@20.9.0)(jsdom@28.1.0)(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)): + vitest@4.1.6(@types/node@24.12.3)(@vitest/coverage-v8@4.1.6)(happy-dom@20.9.0)(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)): dependencies: - '@vitest/expect': 4.1.5 - '@vitest/mocker': 4.1.5(vite@8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4)) - '@vitest/pretty-format': 4.1.5 - '@vitest/runner': 4.1.5 - '@vitest/snapshot': 4.1.5 - '@vitest/spy': 4.1.5 - '@vitest/utils': 4.1.5 + '@vitest/expect': 4.1.6 + '@vitest/mocker': 4.1.6(vite@8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0)) + '@vitest/pretty-format': 4.1.6 + '@vitest/runner': 4.1.6 + '@vitest/snapshot': 4.1.6 + '@vitest/spy': 4.1.6 + '@vitest/utils': 4.1.6 es-module-lexer: 2.1.0 expect-type: 1.3.0 magic-string: 0.30.21 @@ -6090,43 +5299,22 @@ snapshots: picomatch: 4.0.4 std-env: 4.1.0 tinybench: 2.9.0 - tinyexec: 1.1.1 + tinyexec: 1.1.2 tinyglobby: 0.2.16 tinyrainbow: 3.1.0 - vite: 8.0.11(@types/node@24.12.3)(esbuild@0.27.7)(jiti@2.7.0)(tsx@4.21.0)(yaml@2.8.4) + vite: 8.0.13(@types/node@24.12.3)(jiti@2.7.0)(yaml@2.9.0) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 24.12.3 - '@vitest/coverage-v8': 4.1.5(vitest@4.1.5) + '@vitest/coverage-v8': 4.1.6(vitest@4.1.6) happy-dom: 20.9.0 - jsdom: 28.1.0 transitivePeerDependencies: - msw - w3c-xmlserializer@5.0.0: - dependencies: - xml-name-validator: 5.0.0 - optional: true - - webidl-conversions@8.0.1: - optional: true - webpack-virtual-modules@0.6.2: {} whatwg-mimetype@3.0.0: {} - whatwg-mimetype@5.0.0: - optional: true - - whatwg-url@16.0.1: - dependencies: - '@exodus/bytes': 1.15.0 - tr46: 6.0.0 - webidl-conversions: 8.0.1 - transitivePeerDependencies: - - '@noble/hashes' - optional: true - which@2.0.2: dependencies: isexe: 2.0.0 @@ -6140,17 +5328,11 @@ snapshots: ws@8.20.0: {} - xml-name-validator@5.0.0: - optional: true - xml-naming@0.1.0: {} - xmlchars@2.2.0: - optional: true - yallist@3.1.1: {} - yaml@2.8.4: {} + yaml@2.9.0: {} yocto-queue@0.1.0: {} diff --git a/spinifex/services/spinifexui/frontend/src/components/elbv2/attributes-editor.tsx b/spinifex/services/spinifexui/frontend/src/components/elbv2/attributes-editor.tsx index d7d25a361..5f067f353 100644 --- a/spinifex/services/spinifexui/frontend/src/components/elbv2/attributes-editor.tsx +++ b/spinifex/services/spinifexui/frontend/src/components/elbv2/attributes-editor.tsx @@ -162,6 +162,7 @@ export function AttributesEditor({ {spec.type === "bool" && ( diff --git a/spinifex/services/spinifexui/frontend/src/components/elbv2/listeners-tab.tsx b/spinifex/services/spinifexui/frontend/src/components/elbv2/listeners-tab.tsx index 10e025678..1202b635c 100644 --- a/spinifex/services/spinifexui/frontend/src/components/elbv2/listeners-tab.tsx +++ b/spinifex/services/spinifexui/frontend/src/components/elbv2/listeners-tab.tsx @@ -133,7 +133,9 @@ export function ListenersTab({ loadBalancerArn, vpcId }: ListenersTabProps) { Port Default action Listener ARN - + + Actions + diff --git a/spinifex/services/spinifexui/frontend/src/components/elbv2/register-targets-dialog.tsx b/spinifex/services/spinifexui/frontend/src/components/elbv2/register-targets-dialog.tsx index 800c660aa..660055d7e 100644 --- a/spinifex/services/spinifexui/frontend/src/components/elbv2/register-targets-dialog.tsx +++ b/spinifex/services/spinifexui/frontend/src/components/elbv2/register-targets-dialog.tsx @@ -134,6 +134,7 @@ export function RegisterTargetsDialog({ key={id} > toggle(id)} diff --git a/spinifex/services/spinifexui/frontend/src/components/elbv2/target-group-form.tsx b/spinifex/services/spinifexui/frontend/src/components/elbv2/target-group-form.tsx index 19a47b93a..87441100e 100644 --- a/spinifex/services/spinifexui/frontend/src/components/elbv2/target-group-form.tsx +++ b/spinifex/services/spinifexui/frontend/src/components/elbv2/target-group-form.tsx @@ -127,7 +127,7 @@ export function TargetGroupForm({ form, vpcs }: TargetGroupFormProps) { } + render={