From f49923ef10cd6e9d4a0cc7c1fa61bd30c0576e2f Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Tue, 12 May 2026 09:22:04 +1000 Subject: [PATCH] chore: update pnpm --- .../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 | 2 +- .../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 | 2 +- .../frontend/dist/assets/create-subnet.js | 2 +- .../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 | 6 +- .../dist/assets/createBaseUIEventDetails.js | 1 + .../frontend/dist/assets/createLucideIcon.js | 1 + .../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 +- .../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 | 4 +- .../spinifexui/frontend/dist/assets/index.js | 94 ++----------------- .../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 +- .../spinifexui/frontend/dist/assets/plus.js | 2 +- .../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 +- .../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 | 22 +++++ .../services/spinifexui/frontend/package.json | 2 +- 112 files changed, 229 insertions(+), 184 deletions(-) create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/DescribeInstancesCommand.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/QueryClientProvider.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/SignatureV4.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/awsClient.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/button.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/createLucideIcon.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/dist.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/ec23.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/elbv23.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/iam3.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/link.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/matchContext.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/s32.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/separator.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useOpenInteractionType.js create 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 new file mode 100644 index 000000000..b2b04e1dd --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/DescribeInstancesCommand.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..6dc57f674 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/QueryClientProvider.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..f98ed94a6 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/SignatureV4.js @@ -0,0 +1,75 @@ +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 06deb7843..1ae0c9634 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"./back-link.js";import{n as a,r as o,t as s}from"./upload-button.js";import{r as c}from"./s3.js";import{Ca as l,Oa as u,P as d,h as f,to as p,wa as m,xa as h}from"./index.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=f.useParams(),y=l(v??``),{data:b}=r(d(t,y)),x=c(),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)(i,{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)(s,{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)(o,{bucketName:t,folderName:u(m(e.Prefix,y)),fullPrefix:h(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)(a,{bucketName:t,displayName:m(e.Key,y),fullKey:h(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)(p,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index 60fab450d..a42bde983 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"./chevron-down.js";import{t as o}from"./chevron-right.js";import{Ba as s,Bn as c,Da as l,F as u,J as d,La as f,Ra as ee,U as p,Ua as m,V as h,Va as g,et as _,nt as v,to as y,za 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=m(`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=m(`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=m(`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=m(`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}=c(),[s,l]=(0,N.useState)(!1),u;e[0]===t?u=e[1]:(u={...ne,enabled:t},e[0]=t,e[1]=u);let{data:d}=i(u),f;e[2]===t?f=e[3]:(f={...C,enabled:t},e[2]=t,e[3]=f);let{data:p}=i(f);if(!t||!n)return null;let m,h,g,_,v,y,b,x,S,T,E,A,j,I,L,z,B,V,H;if(e[4]!==r||e[5]!==d?.cluster_mode||e[6]!==d?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==p?.vms){_=d?.nodes??[];let t;e[31]===p?.vms?t=e[32]:(t=p?.vms??[],e[31]=p?.vms,e[32]=t);let i=t,a=d?.cluster_mode??`single-node`;g=r===`open-source`;let o=_[0]?.region??null,s=_.reduce(ce,0),c=_.reduce(se,0),l=_.reduce(oe,0),u=_.reduce(ae,0);E=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let f;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(f=(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]=f):f=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:[f,(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=g?`secondary`:`default`,G=g?`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=g?`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]===g?X=e[53]:(X=g&&(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]=g,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],h=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],m=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:_.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?v=e[64]:(v=(0,P.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,P.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=v);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],y=(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=u.toFixed(1),j=` / `,I=l.toFixed(1),e[4]=r,e[5]=d?.cluster_mode,e[6]=d?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=p?.vms,e[12]=m,e[13]=h,e[14]=g,e[15]=_,e[16]=v,e[17]=y,e[18]=b,e[19]=x,e[20]=S,e[21]=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 m=e[12],h=e[13],g=e[14],_=e[15],v=e[16],y=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]!==m||e[76]!==v||e[77]!==y||e[78]!==W||e[79]!==B||e[80]!==V||e[81]!==H?(G=(0,P.jsxs)(m,{className:B,children:[V,H,v,y,W]}),e[75]=m,e[76]=v,e[77]=y,e[78]=W,e[79]=B,e[80]=V,e[81]=H,e[82]=G):G=e[82];let K;e[83]!==h||e[84]!==b||e[85]!==G?(K=(0,P.jsxs)(h,{children:[b,G]}),e[83]=h,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]!==_||e[93]!==s?(J=_.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:()=>l(!s),children:[s?(0,P.jsx)(a,{className:`size-3.5`}):(0,P.jsx)(o,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),s&&(0,P.jsx)(O,{className:`pt-2`,children:(0,P.jsx)(R,{nodes:_})})]}),e[92]=_,e[93]=s,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]===g?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:g?`text-muted-foreground`:void 0,children:e.name}),g?(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]=g,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]===g?Q=e[101]:(Q=g&&(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]=g,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:a,children:o}=e,s;t[0]!==r||t[1]!==n?(s=(0,P.jsxs)(D,{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,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]=c);let l;t[5]!==s||t[6]!==c?(l=(0,P.jsxs)(w,{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,P.jsx)(O,{children:o}),t[8]=o,t[9]=u);let d;t[10]===a?d=t[11]:(d=(0,P.jsx)(T,{children:(0,P.jsx)(y,{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,P.jsxs)(k,{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,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(h),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)(g,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,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 d;return e[13]!==n.length||e[14]!==u?(d=(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]=d):d=e[15],d}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(_),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(v),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)(b,{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=l(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(p),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)(s,{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(u),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(d),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)(f,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js index 85b4960dc..c9136f467 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{t as i}from"./back-link.js";import{n as a,r as o,t as s}from"./upload-button.js";import{r as c}from"./s3.js";import{C as l,Oa as u,P 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}=l.useParams(),h;e[0]===t?h=e[1]:(h=d(t),e[0]=t,e[1]=h);let{data:g}=r(h),_=c(),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)(i,{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)(s,{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)(o,{bucketName:t,folderName:u(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)(a,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id.js b/spinifex/services/spinifexui/frontend/dist/assets/_id.js index 55284dc55..18ead60ee 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{L 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{r 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{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{r 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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js index 33cfc8c02..8c2e71b70 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"./back-link.js";import{a as o,i as ee,n as te,r as s,t as ne}from"./select.js";import{t as c}from"./trash-2.js";import{S as l,b as re,t as u}from"./ec2.js";import{$ as d,Da as f,Ha as p,Ta as m,Ua as h,V as g,ba as _,no as ie,to as v,u as y,ya as b,yi as ae}from"./index.js";import{t as x}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=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=e(n()),z=t();function B(){let{id:e}=y.useParams(),t=ie(),{data:n}=i(d(e)),{data:h}=i(g),B=n.Volumes?.[0],V=re(),H=u(),U=l(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=h.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)(a,{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)(x,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(b,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(c,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(v,{className:_({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(b,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(b,{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)(b,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(v,{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)(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: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)(v,{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(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)(ne,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(ee,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(o,{placeholder:`Select an instance`})}),(0,z.jsx)(te,{children:oe.map(e=>{let t=f(e.Tags);return(0,z.jsxs)(s,{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)(ae,{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)(a,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js index d78083497..cec347481 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"./back-link.js";import{E as a}from"./ec2.js";import{$ as o,d as s,no 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=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=s.useParams(),b=c(),x;e[0]===t?x=e[1]:(x=o(t),e[0]=t,e[1]=x);let{data:S}=r(x),C=S.Volumes?.[0],w=C?.VolumeId,T=a(),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)(i,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(i,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(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)(l,{"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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js index 9ca6aac71..d0556fd13 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"./back-link.js";import{t as o}from"./trash-2.js";import{x as s}from"./ec2.js";import{Da as c,Q as l,f as u,no as d,to 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=e(n()),x=t();function S(){let{id:e}=u.useParams(),t=d(),{data:n}=i(p(e)),{data:S}=i(l),C=n.Vpcs?.[0],w=s(),[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)(a,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=c(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a,{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)(m,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(o,{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)(f,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id2.js b/spinifex/services/spinifexui/frontend/dist/assets/_id2.js index 515ef718d..2bc0ac33b 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"./back-link.js";import{a as s,i as c,n as l,r as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{A as p,C as m,D as h,M as g,T as _,a as v,j as y}from"./ec2.js";import{B as b,L as x,Ta as S,Ua as C,n as w,to 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=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=v(),[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=p(),o=y(),s=h(),c=g(),[l,u]=(0,J.useState)(!1),d=Z.has(r??``),m;t[0]!==n||t[1]!==c?(m=()=>{c.mutate(n,{onSettled:()=>u(!1)})},t[0]=n,t[1]=c,t[2]=m):m=t[2];let _=m;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 v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,Y.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=v):v=t[6];let b;t[7]===a.error?b=t[8]:(b=a.error&&(0,Y.jsx)(i,{error:a.error,msg:`Failed to start instance`}),t[7]=a.error,t[8]=b);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 C;t[13]===c.error?C=t[14]:(C=c.error&&(0,Y.jsx)(i,{error:c.error,msg:`Failed to terminate instance`}),t[13]=c.error,t[14]=C);let w;t[15]!==n||t[16]!==a||t[17]!==r?(w=r===`stopped`&&(0,Y.jsxs)(E,{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]=w):w=t[18];let T;t[19]!==n||t[20]!==s||t[21]!==r||t[22]!==o?(T=r===`running`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(E,{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)(E,{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]=T):T=t[23];let D;t[24]!==r||t[25]!==c.isPending?(D=(r===`stopped`||r===`running`)&&(0,Y.jsxs)(E,{disabled:c.isPending,onClick:()=>u(!0),size:`sm`,variant:`destructive`,children:[(0,Y.jsx)(f,{className:`size-4`}),c.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=c.isPending,t[26]=D):D=t[26];let O;t[27]!==w||t[28]!==T||t[29]!==D?(O=(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[w,T,D]}),t[27]=w,t[28]=T,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]!==_||t[32]!==l||t[33]!==k||t[34]!==c.isPending?(A=(0,Y.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:c.isPending,onConfirm:_,onOpenChange:u,open:l,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=_,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]!==b||t[39]!==x||t[40]!==S||t[41]!==C?(j=(0,Y.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[v,b,x,S,C,O,A]}),t[36]=O,t[37]=A,t[38]=b,t[39]=x,t[40]=S,t[41]=C,t[42]=j):j=t[42],j}function Q(){let{id:e}=w.useParams(),{data:t}=a(O(e)),n=t.Reservations?.[0]?.Instances?.[0],{data:r}=a(x(n?.ImageId)),f=r?.Images?.[0],{data:p}=a(b),h=_(),g=m(),[v,y]=(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(p.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!n?.InstanceId)return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(o,{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 h.mutateAsync({instanceId:e,instanceType:C}),y(!1),D(``)}catch{}}async function ce(){try{let t=await g.mutateAsync(e);K(t.Output?atob(t.Output):`(no output)`),W(!0)}catch{}}return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(o,{to:`/ec2/describe-instances`,children:`Back to instances`}),h.error&&(0,Y.jsx)(i,{error:h.error,msg:`Failed to modify instance`}),g.error&&(0,Y.jsx)(i,{error:g.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:g.isPending,onClick:ce,size:`sm`,variant:`outline`,children:[(0,Y.jsx)(re,{className:`size-4`}),g.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(n.InstanceType??``),y(!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)(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: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)(T,{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)(T,{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)(T,{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)(T,{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))]}),f&&(0,Y.jsx)(ee,{image:f})]}),(0,Y.jsx)(B,{onOpenChange:e=>{e||(y(!1),D(``))},open:v,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)(d,{onValueChange:e=>D(e??``),value:C,children:[(0,Y.jsx)(c,{className:`w-full`,id:`instanceType`,children:(0,Y.jsx)(s,{})}),(0,Y.jsx)(l,{children:Z.map(e=>(0,Y.jsx)(u,{value:e,children:e},e))})]})]}),(0,Y.jsxs)(L,{children:[(0,Y.jsx)(R,{children:`Cancel`}),(0,Y.jsx)(I,{disabled:h.isPending||!C||C===n.InstanceType,onClick:se,children:h.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js index 1ec0bb0f5..303cf4fcd 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"./back-link.js";import{t as o}from"./trash-2.js";import{h as s}from"./ec2.js";import{H as c,Ta as l,no as u,r 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 _=e(n()),v=t();function y(){let{id:e}=d.useParams(),t=u(),{data:n}=i(c(e)),y=n.KeyPairs?.[0],b=s(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=l(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(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)(f,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(o,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js index 70f2ee90b..2834755de 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"./back-link.js";import{a as s,i as c,n as l,r as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{a as p,c as m,i as h,t as g}from"./elbv2.js";import{Da as _,E as v,O as y,Q as b,T as x,i as S,j as C,no 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=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:u}=o,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]===i?p=t[2]:(p=(0,Q.jsxs)(R,{children:[f,(0,Q.jsx)(B,{control:i,name:`protocol`,render:oe})]}),t[1]=i,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=!!u.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)(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]===u.port?v=t[10]:(v=(0,Q.jsx)(L,{errors:[u.port]}),t[9]=u.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]!==u.defaultTargetGroupArn||t[16]!==r?(x=e=>{let{field:t}=e;return(0,Q.jsxs)(d,{onValueChange:t.onChange,value:t.value??``,children:[(0,Q.jsx)(c,{"aria-invalid":!!u.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,Q.jsx)(s,{placeholder:`Select target group`})}),(0,Q.jsx)(l,{children:r.map(ae)})]})},t[15]=u.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]===u.defaultTargetGroupArn?C=t[22]:(C=(0,Q.jsx)(L,{errors:[u.defaultTargetGroupArn]}),t[21]=u.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 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)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function oe(e){let{field:t}=e;return(0,Q.jsxs)(d,{onValueChange:t.onChange,value:t.value,children:[(0,Q.jsx)(c,{className:`w-full`,id:`listener-protocol`,children:(0,Q.jsx)(s,{})}),(0,Q.jsx)(l,{children:(0,Q.jsx)(u,{value:`HTTP`,children:`HTTP`})})]})}function se({loadBalancerArn:e,vpcId:t}){let{data:n}=a(T(e)),{data:r}=a(C),o=g(),s=h(),[c,l]=(0,X.useState)(!1),[u,d]=(0,X.useState)(),p=n.Listeners??[],m=r.TargetGroups??[],_=m.filter(e=>e.VpcId===t),v=new Map;for(let e of m)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)(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:[p.length,` listener`,p.length===1?``:`s`]}),(0,Q.jsx)(E,{onClick:()=>l(!0),size:`sm`,children:`Add listener`})]}),p.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:p.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:()=>d(e),size:`sm`,variant:`ghost`,children:(0,Q.jsx)(f,{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:_}),(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=w(),{data:n}=a(v(e)),{data:r}=a(x(e)),{data:s}=a(y([e])),{data:c}=a(b),l=p(),u=m(),[d,h]=(0,X.useState)(!1),g=n.LoadBalancers?.[0];if(!g?.LoadBalancerArn)return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(o,{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 l.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{h(!1)}},C=c.Subnets??[],T=e=>{let t=C.find(t=>t.SubnetId===e);if(!t)return e;let n=_(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},D=r.Attributes??[],A=s?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(o,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),l.error&&(0,Q.jsx)(i,{error:l.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:()=>h(!0),size:`sm`,variant:`destructive`,children:[(0,Q.jsx)(f,{className:`size-4`}),`Delete`]}),(0,Q.jsx)(te,{state:g.State?.Code})]}),subtitle:`Load balancer details`,title:g.LoadBalancerName??g.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:g.LoadBalancerArn}),(0,Q.jsx)(k,{label:`DNS name`,value:g.DNSName}),(0,Q.jsx)(k,{label:`State`,value:g.State?.Reason?`${g.State.Code} — ${g.State.Reason}`:g.State?.Code}),(0,Q.jsx)(k,{label:`Type`,value:g.Type}),(0,Q.jsx)(k,{label:`Scheme`,value:g.Scheme}),(0,Q.jsx)(k,{label:`IP address type`,value:g.IpAddressType}),(0,Q.jsx)(k,{label:`VPC`,value:g.VpcId}),(0,Q.jsx)(k,{label:`Created at`,value:g.CreatedTime?new Date(g.CreatedTime).toLocaleString():void 0})]})]}),(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Availability zones`}),(0,Q.jsx)(O.Content,{children:(g.AvailabilityZones??[]).map(e=>(0,Q.jsx)(k,{label:e.ZoneName??`—`,value:e.SubnetId?T(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(g.SecurityGroups??[]).length>0&&(0,Q.jsxs)(O,{children:[(0,Q.jsx)(O.Header,{children:`Security groups`}),(0,Q.jsx)(O.Content,{children:(g.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:g.VpcId})}),(0,Q.jsx)(J,{value:`attributes`,children:(0,Q.jsx)(W,{attributes:D,error:u.error,isPending:u.isPending,isSuccess:u.isSuccess,onSubmit:t=>{u.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 "${g.LoadBalancerName??g.LoadBalancerArn}"? This action cannot be undone.`,isPending:l.isPending,onConfirm:S,onOpenChange:h,open:d,title:`Delete load balancer`})]})}function $(){let e=(0,Z.c)(2),{id:t}=S.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js index f503741cc..d7b2c594e 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"./back-link.js";import{t as o}from"./trash-2.js";import{g as s}from"./ec2.js";import{V as c,W as l,a as u,no as d,to 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=e(n()),b=t();function x(){let{id:e}=u.useParams(),t=d(),{data:n}=i(l(e)),{data:x}=i(c),S=s(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(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)(p,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{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)(f,{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)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file +import{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js index 7d4b2b9a9..66a02343d 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"./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"./plus.js";import{t as f}from"./trash-2.js";import{O as p,_ as m,k as h,n as g,r as _}from"./ec2.js";import{Ia as v,no as y,o as b,q as x,to 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=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=_(),d=g(),f=n===`ingress`?a:d,{control:p,handleSubmit:m,register:h,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: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`]})}),f.error&&(0,W.jsx)(r,{error:f.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:S?-1:e.fromPort,toPort:S?-1:e.toPort,cidrIp:e.cidrIp};await f.mutateAsync(n),v(),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)(u,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(s,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(o,{})}),(0,W.jsxs)(c,{children:[(0,W.jsx)(l,{value:`tcp`,children:`TCP`}),(0,W.jsx)(l,{value:`udp`,children:`UDP`}),(0,W.jsx)(l,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(l,{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`,...h(`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`,...h(`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:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(w,{"aria-invalid":!!b.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...h(`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:e,cidr:t,groupId:n,direction:i}){let a=h(),o=p(),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)(C,{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)(v,{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}=b.useParams(),t=y(),{data:n}=i(x(e)),o=n.SecurityGroups?.[0],s=m(),[c,l]=(0,U.useState)(!1),[u,p]=(0,U.useState)(!1),[h,g]=(0,U.useState)(!1),_=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let v=o.IpPermissions??[],w=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(r,{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:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(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)(S,{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 (`,v.length,`)`]}),(0,W.jsxs)(C,{onClick:()=>p(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),v.length>0?(0,W.jsx)(`div`,{children:v.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)(d,{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:l,open:c,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:p,open:u}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:g,open:h})]})}export{Y as component}; \ No newline at end of file +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js index 5423fd595..e4df6c8e1 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"./back-link.js";import{t as o}from"./copy.js";import{t as s}from"./trash-2.js";import{i as c,v as l}from"./ec2.js";import{K as u,Ta as d,Y as f,no as p,s as m,to 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=e(n()),P=t();function F(){let{id:e}=m.useParams(),t=p(),{data:n}=i(f(e)),{data:F}=i(u),I=n.Snapshots?.[0],L=l(),R=c(),[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)(a,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=d(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a,{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)(g,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(s,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(g,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(o,{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)(h,{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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js index 972d64cc5..a13228db5 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"./back-link.js";import{t as o}from"./trash-2.js";import{y as s}from"./ec2.js";import{Da as c,Z as l,c as u,no as d,to 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=e(n()),b=t();function x(){let{id:e}=u.useParams(),t=d(),{data:n}=i(l(e)),x=n.Subnets?.[0],S=s(),[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)(a,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=c(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{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)(p,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{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)(f,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js index 1f348711a..e107657a1 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"./back-link.js";import{t as c}from"./trash-2.js";import{l,o as u,s as d,u as f}from"./elbv2.js";import{A as p,Da as m,M as h,O as g,Sa as _,V as v,k as y,l as b,no 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=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[l,u]=(0,U.useState)(c),[d,f]=(0,U.useState)(),p,h;t[1]===n?(p=t[2],h=t[3]):(p=()=>{n||(u({}),f(void 0))},h=[n],t[1]=n,t[2]=p,t[3]=h),(0,U.useEffect)(p,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{u(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)=>{u(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){f(`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){f(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}f(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=m(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)(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]===d?E=t[17]:(E=d&&(0,W.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:d}),t[16]=d,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(v),{data:l,isLoading:u,error:p}=a({...h(e),refetchInterval:r?J:!1,refetchIntervalInBackground:!1}),m=f(),g=d(),[y,b]=(0,U.useState)(!1),[x,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:[m.error&&(0,W.jsx)(i,{error:m.error,msg:`Failed to register targets`}),g.error&&(0,W.jsx)(i,{error:g.error,msg:`Failed to deregister target`}),p&&(0,W.jsx)(i,{error:p,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)(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`})]})}),(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:_(`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)(c,{className:`size-4`})})})]},$(t))})})]})}),(0,W.jsx)(K,{defaultPort:n,instances:w,isPending:m.isPending,onConfirm:async t=>{try{await m.mutateAsync({targetGroupArn:e,targets:t}),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:g.isPending,onConfirm:async()=>{if(x?.Id)try{await g.mutateAsync({targetGroupArn:e,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:e}){let t=x(),{data:n}=o(p(e)),{data:r}=o(y(e)),{data:a}=o(g([e])),d=u(),f=l(),[m,h]=(0,U.useState)(!1),[_,v]=(0,U.useState)(`overview`),b=n.TargetGroups?.[0];if(!b?.TargetGroupArn)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{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 d.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{h(!1)}},D=r.Attributes??[],O=a?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),d.error&&(0,W.jsx)(i,{error:d.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:()=>h(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Target group details`,title:b.TargetGroupName??b.TargetGroupArn}),(0,W.jsxs)(V,{onValueChange:v,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:b.TargetGroupArn}),(0,W.jsx)(E,{label:`Protocol`,value:b.Protocol}),(0,W.jsx)(E,{label:`Port`,value:b.Port?.toString()}),(0,W.jsx)(E,{label:`VPC`,value:b.VpcId}),(0,W.jsx)(E,{label:`Target type`,value:b.TargetType}),(0,W.jsx)(E,{label:`Protocol version`,value:b.ProtocolVersion}),(0,W.jsx)(E,{label:`IP address type`,value:b.IpAddressType})]})]})}),(0,W.jsx)(z,{value:`targets`,children:(0,W.jsx)(ee,{defaultPort:b.Port??80,isActive:_===`targets`,targetGroupArn:b.TargetGroupArn,vpcId:b.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:b.HealthCheckEnabled===void 0?void 0:String(b.HealthCheckEnabled)}),(0,W.jsx)(E,{label:`Protocol`,value:b.HealthCheckProtocol}),(0,W.jsx)(E,{label:`Path`,value:b.HealthCheckPath}),(0,W.jsx)(E,{label:`Port`,value:b.HealthCheckPort}),(0,W.jsx)(E,{label:`Interval (s)`,value:b.HealthCheckIntervalSeconds?.toString()}),(0,W.jsx)(E,{label:`Timeout (s)`,value:b.HealthCheckTimeoutSeconds?.toString()}),(0,W.jsx)(E,{label:`Healthy threshold`,value:b.HealthyThresholdCount?.toString()}),(0,W.jsx)(E,{label:`Unhealthy threshold`,value:b.UnhealthyThresholdCount?.toString()}),(0,W.jsx)(E,{label:`Matcher (HTTP codes)`,value:b.Matcher?.HttpCode??b.Matcher?.GrpcCode})]})]})]}),(0,W.jsx)(z,{value:`attributes`,children:(0,W.jsx)(I,{attributes:D,error:f.error,isPending:f.isPending,isSuccess:f.isSuccess,onSubmit:t=>{f.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 "${b.TargetGroupName??b.TargetGroupArn}"? This action cannot be undone.`,isPending:d.isPending,onConfirm:C,onOpenChange:h,open:m,title:`Delete target group`})]})}function ne(){let e=(0,H.c)(2),{id:t}=b.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js index ac77c71bd..d06db3067 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"./back-link.js";import{t as s}from"./trash-2.js";import{o as c}from"./iam.js";import{Ta as l,b as u,no as d,p 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=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}=f.useParams(),t=decodeURIComponent(e),n=d(),{data:r}=a(p(t)),b=r.Policy,C=c(),[w,T]=(0,y.useState)(!1),{data:E}=a(u(t,b?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return b?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{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)(m,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(s,{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:l(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)(o,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js index b956bdfe8..178b24e5a 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"./back-link.js";import{t as s}from"./check.js";import{t as c}from"./trash-2.js";import{t as l}from"./triangle-alert.js";import{a as u,c as d,l as f,n as p,s as m,t as h}from"./iam.js";import{Ta as g,_,g as v,m as y,no 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=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(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{children:(0,B.jsx)(l,{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]=c):c=t[0];let u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=u):u=t[1];let d;t[2]===r?d=t[3]:(d=(0,B.jsxs)(`div`,{children:[u,r]}),t[2]=r,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]===i?p=t[6]:(p=(0,B.jsxs)(`div`,{children:[f,i]}),t[5]=i,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]!==r||t[11]!==o||t[12]!==i?(h=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=h):h=t[13];let g;t[14]===a?g=t[15]:(g=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=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:[c,v,y]})}),t[24]=v,t[25]=y,t[26]=b):b=t[26],b}function H(){let{userName:e}=y.useParams(),t=b(),{data:n}=a(S(e)),{data:r}=a(v(e)),{data:s}=a(_(e)),{data:l}=a(x),O=m(),k=p(),A=u(),j=f(),M=h(),N=d(),[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=s.AttachedPolicies??[],Z=l.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await 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)(o,{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)(C,{onClick:()=>F(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(c,{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:g(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 `,g(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 "${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)(o,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file +import{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js b/spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js new file mode 100644 index 000000000..e8f19b2c1 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/addEventListener.js @@ -0,0 +1 @@ +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 c7dbfd206..e34f6a94a 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{$a as n,Ga as r,Sa as i,Vn as a,Wa as o,ir as s}from"./index.js";var c=e(),l=o(`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),a,o,s,u,d;if(t[0]!==e){let{className:c,variant:f,render:p,...m}=e;a=p,d=f===void 0?`default`:f,u=r,o=`span`,s=n({className:i(l({className:c,variant:d}))},m),t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=u,t[5]=d}else a=t[1],o=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]!==a||t[9]!==o||t[10]!==s||t[11]!==f?(p={defaultTagName:o,props:s,render:a,state:f},t[8]=a,t[9]=o,t[10]=s,t[11]=f,t[12]=p):p=t[12],u(p)}var d=t({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=s();if(!e)throw Error(`Not authenticated`);return await a({action:`GetNodes`,credentials:e})},staleTime:1e4}),f=t({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=s();if(!e)throw Error(`Not authenticated`);return await a({action:`GetVMs`,credentials:e})},staleTime:1e4}),p=t({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=s();if(!e)throw Error(`Not authenticated`);return await a({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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js index 366f0820c..e2cb2f2bc 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{Cr as i,Mr as a,Sa as o,Sr as s,_i as c,di as l,fi as u,kr as d,pi as f,vi as p,wr as m,xr as h,ya as g}from"./index.js";var _=e(n()),v=t();function y(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:a,onOpenChangeComplete:o,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,h=p(!0),g=!!h,y=i.useStore(u?.store,{open:r,openProp:n,activeTriggerId:f,triggerIdProp:d,modal:!0,disablePointerDismissal:!0,nested:g,role:`alertdialog`});y.useControlledProp(`openProp`,n),y.useControlledProp(`triggerIdProp`,d),y.useSyncedValue(`nested`,g),y.useContextCallback(`onOpenChange`,a),y.useContextCallback(`onOpenChangeComplete`,o);let b=y.useState(`payload`);m({store:y,actionsRef:l,parentContext:h?.store.context,isDrawer:!1,onOpenChange:a,triggerIdProp:d});let x=_.useMemo(()=>({store:y}),[y]);return(0,v.jsx)(s.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)(d,{"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 i;t[3]===n?i=t[4]:(i=o(`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]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(f,{className:i,"data-slot":`alert-dialog-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function w(e){let t=(0,b.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let s=i===void 0?`default`:i,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,v.jsx)(C,{}),t[4]=c):c=t[4];let l;t[5]===n?l=t[6]:(l=o(`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]=l);let u;return t[7]!==r||t[8]!==s||t[9]!==l?(u=(0,v.jsxs)(S,{children:[c,(0,v.jsx)(a,{className:l,"data-size":s,"data-slot":`alert-dialog-content`,...r})]}),t[7]=r,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}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 i;t[3]===n?i=t[4]:(i=o(`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]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(`div`,{className:i,"data-slot":`alert-dialog-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}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 i;t[3]===n?i=t[4]:(i=o(`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]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(`div`,{className:i,"data-slot":`alert-dialog-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}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 i;t[3]===n?i=t[4]:(i=o(`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]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(`div`,{className:i,"data-slot":`alert-dialog-media`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}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 i;t[3]===n?i=t[4]:(i=o(`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]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(h,{className:i,"data-slot":`alert-dialog-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}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 i;t[3]===n?i=t[4]:(i=o(`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]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(l,{className:i,"data-slot":`alert-dialog-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}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 i;t[3]===n?i=t[4]:(i=o(n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,v.jsx)(g,{className:i,"data-slot":`alert-dialog-action`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function j(e){let t=(0,b.c)(14),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 s=i===void 0?`outline`:i,c=a===void 0?`default`:a,l;t[5]===n?l=t[6]:(l=o(n),t[5]=n,t[6]=l);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]!==r||t[11]!==l||t[12]!==d?(f=(0,v.jsx)(u,{className:l,"data-slot":`alert-dialog-cancel`,render:d,...r}),t[10]=r,t[11]=l,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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js index 1188888e1..3135d8d40 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{Ta as n,to as r}from"./index.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=n(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)(r,{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)(r,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js new file mode 100644 index 000000000..7d48b3a53 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js @@ -0,0 +1,10 @@ +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 d2192d6dd..09450f776 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{Ua as n,to as r}from"./index.js";var i=n(`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),n,s;t[0]===e?(n=t[1],s=t[2]):({children:n,...s}=e,t[0]=e,t[1]=n,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]!==n||t[5]!==s?(l=(0,o.jsxs)(r,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,n]}),t[4]=n,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/button.js b/spinifex/services/spinifexui/frontend/dist/assets/button.js new file mode 100644 index 000000000..6dc5f99dd --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/button.js @@ -0,0 +1 @@ +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 e8c49079b..f07f8cf67 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{Sa as n}from"./index.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/check.js b/spinifex/services/spinifexui/frontend/dist/assets/check.js index fc7f1d9ca..5ddb6de60 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/check.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/check.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js index ca402d67b..fbfd38c65 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js index 6dbb08e16..5d81b9134 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js @@ -1 +1 @@ -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 +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 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 4b5d70cac..c46f0c0ec 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{t as i}from"./check.js";import{t as a}from"./chevron-down.js";import{t as o}from"./copy.js";import{Sa as s,Ua as c,ya as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=c(`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{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(` -`)}function _(e){let t=(0,f.c)(18),{commands:n}=e,[r,c]=(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=()=>c(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=s(`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)(a,{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)(i,{className:`size-2.5`}):(0,m.jsx)(o,{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)})}),ta(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)})}),t{let t=!c,n=v(a,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`&&!d&&t&&m(!0),P.current===`css-animation`&&(!g&&t&&_(!0),!d&&t&&m(!0))),l(t),P.current===`none`&&d&&!t&&m(!1)});return u(()=>{s&&P.current===`none`&&!c&&m(!1)},[s,c,t,m]),w.useMemo(()=>({abortControllerRef:N,animationTypeRef:P,disabled:o,handleTrigger:R,height:x,mounted:d,open:c,panelId:O,panelRef:I,runOnceAnimationsFinish:L,setDimensions:C,setHiddenUntilFound:A,setKeepMounted:M,setMounted:m,setOpen:l,setPanelIdState:D,setVisible:_,transitionDimensionRef:F,transitionStatus:h,visible:g,width:S}),[N,P,o,R,x,d,c,O,I,L,C,A,M,m,l,_,F,h,g,S])}var E=w.createContext(void 0);function D(){let e=w.useContext(E);if(e===void 0)throw Error(h(15));return e}var O=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=m.startingStyle]=`startingStyle`,e[e.endingStyle=m.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},...o},P=t(),F=w.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:l,...u}=e,d=f(o),p=T({open:s,defaultOpen:i,onOpenChange:d,disabled:a}),m=w.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=w.useMemo(()=>({...p,onOpenChange:d,state:m}),[p,d,m]),g=c(`div`,e,{state:m,ref:t,props:u,stateAttributesMapping:N});return(0,P.jsx)(E.Provider,{value:h,children:g})}),I={...M,...o},L=w.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=D(),{className:s,disabled:l=o,id:u,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=x({disabled:l,focusableWhenDisabled:!0,native:f}),_=w.useMemo(()=>({"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i}),[n,r,i]);return c(`button`,e,{state:a,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:i,hiddenUntilFound:a,keepMounted:o,id:c,mounted:d,onOpenChange:p,open:m,panelRef:h,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(m),P=w.useRef(m),F=l(),I=w.useMemo(()=>n.current===`css-animation`?!k:!m&&!d,[m,d,k,n]),L=_(r,h,f(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=s.request(()=>{P.current=!1,r=s.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{s.cancel(t),s.cancel(r)}}));return u(()=>{if(n.current!==`css-transition`)return;let e=h.current;if(!e)return;let r=-1;if(t.current!=null&&(t.current.abort(),t.current=null),m){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&&!o&&e.setAttribute(O.startingStyle,``),b({height:e.scrollHeight,width:e.scrollWidth}),r=s.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()=>{s.cancel(r)}},[t,n,F,a,o,d,m,h,y,b,x]),u(()=>{if(n.current!==`css-animation`)return;let e=h.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`),m?(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,m,h,y,b,x,E,k]),C(()=>{let e=s.request(()=>{N.current=!1});return()=>s.cancel(e)}),u(()=>{if(!a)return;let e=h.current;if(!e)return;let t=-1,n=-1;return m&&j.current&&(e.style.transitionDuration=`0s`,b({height:e.scrollHeight,width:e.scrollWidth}),t=s.request(()=>{j.current=!1,n=s.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{s.cancel(t),s.cancel(n)}},[a,m,h,b]),u(()=>{let e=h.current;e&&a&&I&&(e.setAttribute(`hidden`,`until-found`),n.current===`css-transition`&&e.setAttribute(O.startingStyle,``))},[a,I,n,h]),w.useEffect(function(){let e=h.current;if(!e)return;function t(e){j.current=!0,T(!0),p(!0,v(g,e))}return S(e,`beforematch`,t)},[p,h,T]),w.useMemo(()=>({props:{hidden:I,id:c,ref:L}}),[I,c,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:a,id:o,style:s,...l}=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;u(()=>{if(o)return E(o),()=>{E(void 0)}},[o,E]),u(()=>{S(I)},[S,I]),u(()=>{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});d({open:_&&F===`idle`,ref:y,onComplete(){_&&x({height:void 0,width:void 0})}});let V=c(`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`}},l],stateAttributesMapping:N});return L||I||h?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{a as e,n as t,r as n,t as r}from"./compiler-runtime.js";import{l as i,n as a,s as o}from"./dist.js";import{c as s,o as c,r as l}from"./button.js";import{r as u}from"./separator.js";import{b as d,m as f,t as p,u as m}from"./createBaseUIEventDetails.js";import{a as h,c as g,i as _,l as v,n as y,o as b,r as x,t as S,u as C}from"./addEventListener.js";var w=e(n());function T(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,a=t!==void 0,[o,l]=u({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:m,setMounted:h,transitionStatus:g}=y(o,!0,!0),[v,b]=w.useState(o),[{height:x,width:S},C]=w.useState({height:void 0,width:void 0}),T=d(),[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=_(I,!1),R=s(e=>{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js b/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js index 53fe00fa9..f2db5362c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/compiler-runtime.js @@ -1 +1 @@ -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 +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 fdbabd6ff..ad47eb762 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/copy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/copy.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js index 880aa55de..d94b021f7 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"./back-link.js";import{t as i}from"./cli-command-panel.js";import{t as a}from"./s3.js";import{dr as o,no as s,pr 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 _=t(),v=o({bucketName:c().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=s(),o=a(),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={resolver:h(v)},e[0]=c):c=e[0];let{handleSubmit:b,register:S,watch:C,formState:w}=m(c),{errors:T,isSubmitting:E}=w,D;e[1]!==o||e[2]!==t?(D=async e=>{await o.mutateAsync(e),t({to:`/s3/ls`})},e[1]=o,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)(r,{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]===o.error?j=e[7]:(j=o.error&&(0,y.jsx)(n,{error:o.error,msg:`Failed to create bucket`}),e[6]=o.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)(i,{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]!==o.isPending||e[29]!==E||e[30]!==V?(H=(0,y.jsx)(g,{isPending:o.isPending,isSubmitting:E,onCancel:V,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),e[28]=o.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{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 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 2b3351865..76a2dfab8 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"./back-link.js";import{t as o}from"./check.js";import{t as s}from"./download.js";import{t as c}from"./cli-command-panel.js";import{t as l}from"./triangle-alert.js";import{s as u}from"./ec2.js";import{no 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=e(n()),M=r(),N=t();function P(e){let t=(0,M.c)(37),{open:n,keyName:r,keyMaterial:i}=e,a=d(),{copied:c,copy:u}=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]===a?C=t[4]:(C=()=>{a({to:`/ec2/describe-key-pairs`})},t[3]=a,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)(l,{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]!==u||t[12]!==i?(A=async()=>await u(i),t[11]=u,t[12]=i,t[13]=A):A=t[13];let j;t[14]===c?j=t[15]:(j=c?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=c,t[15]=j);let P;t[16]!==A||t[17]!==j?(P=(0,N.jsx)(f,{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)(s,{className:`mr-2 size-4`}),t[19]=F):F=t[19];let I;t[20]===m?I=t[21]:(I=(0,N.jsxs)(f,{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=d(),n=u(),[r,o]=(0,j.useState)(null),s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:D(k)},e[0]=s):s=e[0];let{handleSubmit:l,register:f,watch:h,formState:g}=E(s),{errors:_,isSubmitting:v}=g,y;e[1]===n?y=e[2]:(y=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&o({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)(a,{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]!==l||e[8]!==b?(F=l(b),e[7]=l,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]===f?z=e[12]:(z=f(`keyName`),e[11]=f,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)(c,{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{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 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 c9221d410..6dd6dd904 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"./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"./plus.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./trash-2.js";import{n as m}from"./elbv2.js";import{Da as h,J as g,Q as _,R as ee,j as te,no as v,nt as ne,ya as y,yi as b}from"./index.js";import{t as x}from"./page-heading.js";import{n as re}from"./system-managed.js";import{a as S,r as C,t as w}from"./field.js";import{n as T,r as E,t as D}from"./zod.js";import{t as ie}from"./form-actions.js";import{t as O}from"./lb-image-missing-banner.js";import{t as k}from"./target-group-form.js";import{n as ae,r as oe}from"./elbv22.js";var se=e(n(),1),A=t();function j(e){let t=h(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function ce(e){let t=h(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function le(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 M(){let e=v(),{data:t}=i(ne),{data:n}=i(_),{data:h}=i(g),{data:M}=i(te),{data:N}=i(ee),P=m(),de=re(N.Images??[]),[F,I]=(0,se.useState)(null),L=t.Vpcs??[],R=n.Subnets??[],z=h.SecurityGroups??[],B=M.TargetGroups??[],V=E({resolver:D(ae),defaultValues:{name:``,scheme:`internet-facing`,vpcId:L[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``}}}),H=E({resolver:D(oe),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:fe,register:U,watch:W,control:G,setValue:K,getValues:q,formState:{errors:J,isSubmitting:pe}}=V,Y=W(`vpcId`),me=W(`subnetIds`),he=W(`securityGroupIds`),X=W(`listener.targetGroupMode`),ge=W(`tags`),_e=R.filter(e=>e.VpcId===Y),Z=z.filter(e=>e.VpcId===Y),Q=B.filter(e=>e.VpcId===Y),ve=(e=``)=>{let t=e??``;K(`vpcId`,t,{shouldValidate:!0}),K(`subnetIds`,[],{shouldValidate:!0}),K(`securityGroupIds`,[]),K(`listener.existingTargetGroupArn`,``),H.setValue(`vpcId`,t)},ye=e=>{let t=q(`subnetIds`);K(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},be=e=>{let t=q(`securityGroupIds`);K(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},xe=async t=>{I(null);let n;if(t.listener.targetGroupMode===`new`){if(!await H.trigger())return;n=H.getValues()}let r=await P.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}});I(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=le(_e);return de?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(a,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(x,{title:`Create load balancer`}),P.error&&(0,A.jsx)(r,{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:fe(xe),children:[(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{children:(0,A.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,A.jsx)(b,{"aria-invalid":!!J.name,id:`lb-name`,placeholder:`my-load-balancer`,...U(`name`)}),(0,A.jsx)(C,{errors:[J.name]})]}),(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{children:`Scheme`}),(0,A.jsx)(T,{control:G,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)(w,{children:[(0,A.jsx)(S,{children:(0,A.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,A.jsx)(T,{control:G,name:`vpcId`,render:({field:e})=>(0,A.jsxs)(u,{onValueChange:e=>ve(e),value:e.value??``,children:[(0,A.jsx)(s,{"aria-invalid":!!J.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,A.jsx)(o,{placeholder:`Select VPC`})}),(0,A.jsx)(c,{children:L.map(e=>(0,A.jsx)(l,{value:e.VpcId??``,children:j(e)},e.VpcId))})]})}),(0,A.jsx)(C,{errors:[J.vpcId]})]}),(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{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:me.includes(e.SubnetId??``),onChange:()=>ye(e.SubnetId??``),type:`checkbox`}),(0,A.jsx)(`span`,{className:`font-mono`,children:ce(e)})]},e.SubnetId))})]},e.az))}),(0,A.jsx)(C,{errors:[J.subnetIds]})]}),(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{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:he.includes(e.GroupId??``),onChange:()=>be(e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{children:`Tags`}),(0,A.jsxs)(`div`,{className:`space-y-2`,children:[ge.map((e,t)=>(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(b,{placeholder:`Key`,...U(`tags.${t}.key`)}),(0,A.jsx)(b,{placeholder:`Value`,...U(`tags.${t}.value`)}),(0,A.jsx)(y,{onClick:()=>K(`tags`,q(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,A.jsx)(p,{className:`size-3.5`})})]},t)),(0,A.jsxs)(y,{onClick:()=>K(`tags`,[...q(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,A.jsx)(d,{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)(w,{children:[(0,A.jsx)(S,{children:(0,A.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,A.jsx)(T,{control:G,name:`listener.protocol`,render:({field:e})=>(0,A.jsxs)(u,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(s,{className:`w-full`,id:`listener-protocol`,children:(0,A.jsx)(o,{})}),(0,A.jsx)(c,{children:(0,A.jsx)(l,{value:`HTTP`,children:`HTTP`})})]})})]}),(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{children:(0,A.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,A.jsx)(b,{"aria-invalid":!!J.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...U(`listener.port`,{valueAsNumber:!0})}),(0,A.jsx)(C,{errors:[J.listener?.port]})]}),(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{children:`Default target group`}),(0,A.jsx)(T,{control:G,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`]})]})})]}),X===`existing`&&(0,A.jsxs)(w,{children:[(0,A.jsx)(S,{children:(0,A.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,A.jsx)(T,{control:G,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,A.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(s,{"aria-invalid":!!J.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,A.jsx)(o,{placeholder:`Select target group`})}),(0,A.jsx)(c,{children:Q.map(e=>(0,A.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,A.jsx)(C,{errors:[J.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.`})]}),X===`new`&&(0,A.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,A.jsx)(k,{form:H,vpcs:L})})]}),(0,A.jsx)(f,{commands:ue(W,H.watch)}),(0,A.jsx)(ie,{isPending:P.isPending,isSubmitting:pe,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create load balancer`})]})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(a,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(x,{title:`Create load balancer`}),(0,A.jsx)(O,{})]})}function ue(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{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,r as te,x as ne}from"./ec22.js";import{n as re}from"./elbv2.js";import{c as ie}from"./elbv22.js";import{L as v}from"./index.js";import{t as y}from"./page-heading.js";import{n as b}from"./system-managed.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{t as ae}from"./form-actions.js";import{t as oe}from"./lb-image-missing-banner.js";import{t as se}from"./target-group-form.js";import{n as ce,r as D}from"./elbv23.js";var le=e(n(),1),O=t();function ue(e){let t=o(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function k(e){let t=o(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function A(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(ne),{data:n}=i(_),{data:o}=i(ee),{data:j}=i(ie),{data:M}=i(te),N=re(),fe=b(M.Images??[]),[P,F]=(0,le.useState)(null),I=t.Vpcs??[],L=n.Subnets??[],R=o.SecurityGroups??[],z=j.TargetGroups??[],B=T({resolver:E(ce),defaultValues:{name:``,scheme:`internet-facing`,vpcId:I[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``}}}),V=T({resolver:E(D),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:I[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:H,register:U,watch:W,control:G,setValue:K,getValues:q,formState:{errors:J,isSubmitting:pe}}=B,Y=W(`vpcId`),me=W(`subnetIds`),he=W(`securityGroupIds`),X=W(`listener.targetGroupMode`),ge=W(`tags`),_e=L.filter(e=>e.VpcId===Y),Z=R.filter(e=>e.VpcId===Y),Q=z.filter(e=>e.VpcId===Y),ve=(e=``)=>{let t=e??``;K(`vpcId`,t,{shouldValidate:!0}),K(`subnetIds`,[],{shouldValidate:!0}),K(`securityGroupIds`,[]),K(`listener.existingTargetGroupArn`,``),V.setValue(`vpcId`,t)},ye=e=>{let t=q(`subnetIds`);K(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},be=e=>{let t=q(`securityGroupIds`);K(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},xe=async t=>{F(null);let n;if(t.listener.targetGroupMode===`new`){if(!await V.trigger())return;n=V.getValues()}let r=await N.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}});F(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=A(_e);return fe?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,O.jsx)(y,{title:`Create load balancer`}),N.error&&(0,O.jsx)(r,{error:N.error,msg:`Failed to create load balancer`}),P?.error&&(0,O.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,O.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,P.failedStep]}),(0,O.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:P.error.message}),P.created.length>0&&(0,O.jsxs)(`div`,{className:`mt-3`,children:[(0,O.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,O.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:P.created.map((e,t)=>(0,O.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,O.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:H(xe),children:[(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:(0,O.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,O.jsx)(v,{"aria-invalid":!!J.name,id:`lb-name`,placeholder:`my-load-balancer`,...U(`name`)}),(0,O.jsx)(S,{errors:[J.name]})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:`Scheme`}),(0,O.jsx)(w,{control:G,name:`scheme`,render:({field:e})=>(0,O.jsxs)(`div`,{className:`flex gap-4`,children:[(0,O.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,O.jsx)(`input`,{checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,O.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,O.jsx)(`input`,{checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:(0,O.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,O.jsx)(w,{control:G,name:`vpcId`,render:({field:e})=>(0,O.jsxs)(f,{onValueChange:e=>ve(e),value:e.value??``,children:[(0,O.jsx)(l,{"aria-invalid":!!J.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,O.jsx)(c,{placeholder:`Select VPC`})}),(0,O.jsx)(u,{children:I.map(e=>(0,O.jsx)(d,{value:e.VpcId??``,children:ue(e)},e.VpcId))})]})}),(0,O.jsx)(S,{errors:[J.vpcId]})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:`Subnets (select at least 2)`}),$.length===0?(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,O.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,O.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,O.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,O.jsx)(`input`,{checked:me.includes(e.SubnetId??``),onChange:()=>ye(e.SubnetId??``),type:`checkbox`}),(0,O.jsx)(`span`,{className:`font-mono`,children:k(e)})]},e.SubnetId))})]},e.az))}),(0,O.jsx)(S,{errors:[J.subnetIds]})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:`Security groups`}),Z.length===0?(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,O.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,O.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,O.jsx)(`input`,{checked:he.includes(e.GroupId??``),onChange:()=>be(e.GroupId??``),type:`checkbox`}),(0,O.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:`Tags`}),(0,O.jsxs)(`div`,{className:`space-y-2`,children:[ge.map((e,t)=>(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(v,{placeholder:`Key`,...U(`tags.${t}.key`)}),(0,O.jsx)(v,{placeholder:`Value`,...U(`tags.${t}.value`)}),(0,O.jsx)(g,{onClick:()=>K(`tags`,q(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,O.jsx)(h,{className:`size-3.5`})})]},t)),(0,O.jsxs)(g,{onClick:()=>K(`tags`,[...q(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,O.jsx)(p,{className:`size-3.5`}),`Add tag`]})]})]}),(0,O.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,O.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:(0,O.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,O.jsx)(w,{control:G,name:`listener.protocol`,render:({field:e})=>(0,O.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,O.jsx)(l,{className:`w-full`,id:`listener-protocol`,children:(0,O.jsx)(c,{})}),(0,O.jsx)(u,{children:(0,O.jsx)(d,{value:`HTTP`,children:`HTTP`})})]})})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:(0,O.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,O.jsx)(v,{"aria-invalid":!!J.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...U(`listener.port`,{valueAsNumber:!0})}),(0,O.jsx)(S,{errors:[J.listener?.port]})]}),(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:`Default target group`}),(0,O.jsx)(w,{control:G,name:`listener.targetGroupMode`,render:({field:e})=>(0,O.jsxs)(`div`,{className:`flex gap-4`,children:[(0,O.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,O.jsx)(`input`,{checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,O.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,O.jsx)(`input`,{checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),X===`existing`&&(0,O.jsxs)(C,{children:[(0,O.jsx)(x,{children:(0,O.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,O.jsx)(w,{control:G,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,O.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,O.jsx)(l,{"aria-invalid":!!J.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,O.jsx)(c,{placeholder:`Select target group`})}),(0,O.jsx)(u,{children:Q.map(e=>(0,O.jsxs)(d,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,O.jsx)(S,{errors:[J.listener?.existingTargetGroupArn]}),Q.length===0&&(0,O.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),X===`new`&&(0,O.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,O.jsx)(se,{form:V,vpcs:I})})]}),(0,O.jsx)(m,{commands:de(W,V.watch)}),(0,O.jsx)(ae,{isPending:N.isPending,isSubmitting:pe,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create load balancer`})]})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,O.jsx)(y,{title:`Create load balancer`}),(0,O.jsx)(oe,{})]})}function de(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 N=M;export{N as component}; \ No newline at end of file + --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}]}),p}var M=j;export{M 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 fbd7c9160..afb9c4dcc 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"./back-link.js";import{a as i,i as a,n as o,r as s,t as ee}from"./select.js";import{t as c}from"./cli-command-panel.js";import{c as l}from"./ec2.js";import{no 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 y}from"./ec22.js";import{t as b}from"./form-actions.js";var te=t(),x=e();function S(){let e=(0,te.c)(52),t=u(),S=l(),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)(r,{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)(ee,{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)(i,{})}),(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)(c,{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 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{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 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:` \\ --group-name`},{type:`value`,value:` ${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 407146a5b..049e49da7 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"./back-link.js";import{t as i}from"./cli-command-panel.js";import{r as a}from"./iam.js";import{no 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=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=o(),v=a(),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)(r,{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)(i,{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{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:` \\ --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 9b48da34e..4243137f7 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 ee}from"./back-link.js";import{a as i,i as a,n as o,r as s,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{l as re}from"./ec2.js";import{Da as c,no as ie,nt as ae,yi 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"./ec22.js";import{t as de}from"./form-actions.js";var fe=t(),p=e();function m(){let e=(0,fe.c)(69),t=ie(),{data:s}=r(ae),c=re(),m;e[0]===s.Vpcs?m=e[1]:(m=s.Vpcs??[],e[0]=s.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)(ee,{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)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,p.jsx)(a,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,p.jsx)(i,{})}),(0,p.jsx)(o,{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)(ne,{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=c(e.Tags);return(0,p.jsx)(s,{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:` \\ +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:` \\ --group-name`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --description`},{type:`value`,value:` "${ee||``}"`}];return a&&o.push({type:`flag`,value:` \\ - --vpc-id`},{type:`value`,value:` ${a}`}),[{label:`Create Security Group`,parts:o}]}export{m as component}; \ No newline at end of file + --description`},{type:`value`,value:` "${i||``}"`}];return o&&s.push({type:`flag`,value:` \\ + --vpc-id`},{type:`value`,value:` ${o}`}),[{label:`Create Security Group`,parts:s}]}export{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 b740a44e7..500488d0d 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"./back-link.js";import{a,i as o,n as s,r as c,t as l}from"./select.js";import{t as u}from"./cli-command-panel.js";import{u as d}from"./ec2.js";import{N as ee,et as te,no 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"./ec22.js";import{t as _}from"./form-actions.js";var se=t(),v=e();function y(){let e=(0,se.c)(51),t=ne(),{data:c}=r(te),y=d(),x;e[0]===c.Volumes?x=e[1]:(x=c.Volumes??[],e[0]=c.Volumes,e[1]=x);let S=x,{volumeId:C}=ee.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)(i,{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)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,v.jsx)(o,{"aria-invalid":!!M.volumeId,className:`w-full`,id:`volumeId`,children:(0,v.jsx)(a,{})}),(0,v.jsx)(s,{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)(u,{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)(c,{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{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:` \\ --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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js index a36e08556..2a2c59acf 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"./back-link.js";import{a,i as o,n as s,r as c,t as ee}from"./select.js";import{t as te}from"./cli-command-panel.js";import{d as ne}from"./ec2.js";import{Da as l,I as re,no as ie,nt as ae,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=t(),f=e();function p(){let e=(0,me.c)(66),t=ie(),{data:l}=r(ae),{data:p}=r(re),m=ne(),h;e[0]===l.Vpcs?h=e[1]:(h=l.Vpcs??[],e[0]=l.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)(i,{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)(ee,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,f.jsx)(o,{"aria-invalid":!!E.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(a,{})}),(0,f.jsx)(s,{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)(ee,{onValueChange:e=>t.onChange(e===`none`?``:e),value:t.value??`none`,children:[(0,f.jsx)(o,{className:`w-full`,id:`availabilityZone`,children:(0,f.jsx)(a,{})}),(0,f.jsxs)(s,{children:[(0,f.jsx)(c,{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)(te,{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)(c,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ge(e){let t=l(e.Tags);return(0,f.jsx)(c,{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:` \\ +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 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 a31e13066..d7219dd6a 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"./back-link.js";import{t as i}from"./cli-command-panel.js";import{r as a}from"./elbv2.js";import{no as o,nt 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=e();function h(){let e=o(),{data:h}=n(s),_=a(),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)(r,{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)(i,{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.path`)||`/`,c=t(`healthCheck.port`)||`traffic-port`,l=n(`healthCheck.intervalSeconds`),u=n(`healthCheck.timeoutSeconds`),d=n(`healthCheck.healthyThresholdCount`),f=n(`healthCheck.unhealthyThresholdCount`),p=t(`healthCheck.matcher`)||`200`,m=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ +import{n as e}from"./compiler-runtime.js";import{t}from"./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.path`)||`/`,c=t(`healthCheck.port`)||`traffic-port`,l=n(`healthCheck.intervalSeconds`),u=n(`healthCheck.timeoutSeconds`),d=n(`healthCheck.healthyThresholdCount`),f=n(`healthCheck.unhealthyThresholdCount`),p=t(`healthCheck.matcher`)||`200`,m=[{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 c95a26fc3..18deebe53 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"./back-link.js";import{t as i}from"./cli-command-panel.js";import{i as a}from"./iam.js";import{no 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=t(),_=e();function v(){let e=(0,g.c)(51),t=o(),v=a(),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)(r,{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)(i,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js index 341634311..f1f659bfa 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"./back-link.js";import{a,i as ee,n as te,r as o,t as s}from"./select.js";import{t as c}from"./cli-command-panel.js";import{f as l}from"./ec2.js";import{I as ne,no as re,yi 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"./ec22.js";import{t as ce}from"./form-actions.js";var h=t(),g=e();function _(){let e=(0,h.c)(57),t=re(),{data:o}=r(ne),_=l(),b;e[0]===o.AvailabilityZones?b=e[1]:(b=o.AvailabilityZones??[],e[0]=o.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)(i,{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)(s,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(ee,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,g.jsx)(a,{})}),(0,g.jsx)(te,{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)(c,{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)(o,{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{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:` \\ --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 e1d3c5dfe..e581fc548 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js @@ -1,8 +1,8 @@ -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"./back-link.js";import{t as o}from"./chevron-down.js";import{t as s}from"./chevron-right.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{N as m,m as h,p as g}from"./ec2.js";import{no 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=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,[c,l]=(0,A.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(i===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(o,{className:`size-3`}):(0,j.jsx)(s,{className:`size-3`}),t[2]=c,t[3]=f);let p;t[4]!==d||t[5]!==f||t[6]!==r?(p=(0,j.jsxs)(v,{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]!==c||t[11]!==u||t[12]!==n||t[13]!==r?(m=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(y,{defaultValue:a[t],placeholder:a[t],...n.register(`${u}.${t}`)})]},t))}),t[8]=i,t[9]=a,t[10]=c,t[11]=u,t[12]=n,t[13]=r,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 e=_(),t=g(),n=h(),[r,o]=(0,A.useState)(null),s=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}}=s,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=m(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(o(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);o(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)(a,{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)(f,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(l,{id:`tenancy`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(d,{value:`default`,children:`default`}),(0,j.jsx)(d,{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:s,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:s,type:`private`})]})]}),(0,j.jsx)(p,{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{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:` \\ --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 + --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 -`}],{type:`variable`,value:`VPC_ID=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ +`},{type:`variable`,value:`VPC_ID=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${a||`10.0.0.0/16`}`},{type:`flag`,value:` \\ --query`},{type:`value`,value:` 'Vpc.VpcId'`},{type:`flag`,value:` --output`},{type:`value`,value:` text)`}]});for(let e of l)c.push({label:`Create Subnet (${e.name})`,parts:[{type:`variable`,value:`${e.name}_ID=`},{type:`bin`,value:`$(AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ --vpc-id`},{type:`variable`,value:` "$VPC_ID"`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js b/spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js new file mode 100644 index 000000000..eaf051aad --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/createBaseUIEventDetails.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..56dec13fd --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/createLucideIcon.js @@ -0,0 +1 @@ +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/describe-images.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-images.js index 492573882..1180af814 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 as r}from"./index.js";import{t as i}from"./page-heading.js";import{t as a}from"./state-badge.js";import{r 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{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{r 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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js index 9d664faf0..bbf220d1a 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{V as r,to 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=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(r),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)??[]).toSorted(m),r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,u.jsx)(o,{actions:(0,u.jsx)(i,{to:`/ec2/run-instances`,children:(0,u.jsx)(a,{children:`Run Instances`})}),title:`EC2 Instances`}),e[2]=r):r=e[2],s=(0,u.jsxs)(u.Fragment,{children:[r,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{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 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 1c67d50c0..ad328477f 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{U as r,to 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=e();function u(){let e=(0,c.c)(4),{data:t}=n(r),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs??[]).toSorted(f),r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,l.jsx)(i,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(a,{variant:`outline`,children:`Import Key Pair`})}),e[2]=r):r=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:[r,(0,l.jsx)(i,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(a,{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{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 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 70894039d..c329b8485 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{D as r,R as i,no as a,to as o,ya as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";import{n as u}from"./system-managed.js";import{t as d}from"./lb-image-missing-banner.js";var f=t(),p=e();function m(e){return e?new Date(e).toLocaleString():``}function h(){let e=(0,f.c)(20),t=a(),{data:h}=n(r),{data:_}=n(i),v;e[0]===h.LoadBalancers?v=e[1]:(v=h.LoadBalancers??[],e[0]=h.LoadBalancers,e[1]=v);let y=v,b;e[2]===_.Images?b=e[3]:(b=_.Images??[],e[2]=_.Images,e[3]=b);let x;e[4]===b?x=e[5]:(x=u(b),e[4]=b,e[5]=x);let S=x,C=!S,w;e[6]===t?w=e[7]:(w=async()=>await t({to:`/ec2/create-load-balancer`}),e[6]=t,e[7]=w);let T;e[8]!==C||e[9]!==w?(T=(0,p.jsx)(c,{actions:(0,p.jsx)(s,{disabled:C,onClick:w,children:`Create Load Balancer`}),title:`Load Balancers`}),e[8]=C,e[9]=w,e[10]=T):T=e[10];let E;e[11]===S?E=e[12]:(E=!S&&(0,p.jsx)(d,{}),e[11]=S,e[12]=E);let D;e[13]!==y||e[14]!==t?(D=y.length>0?(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,p.jsx)(`tbody`,{children:y.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,p.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,p.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,p.jsx)(o,{className:`text-primary hover:underline`,onClick:g,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:(0,p.jsx)(l,{state:e.State?.Code})}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,p.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:m(e.CreatedTime)})]},n)})})]})}):(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[13]=y,e[14]=t,e[15]=D):D=e[15];let O;return e[16]!==T||e[17]!==E||e[18]!==D?(O=(0,p.jsxs)(p.Fragment,{children:[T,E,D]}),e[16]=T,e[17]=E,e[18]=D,e[19]=O):O=e[19],O}function g(e){return e.stopPropagation()}var _=h;export{_ as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./link.js";import{t as i}from"./useNavigate.js";import{t as a}from"./button.js";import{r as o}from"./ec22.js";import{i as s}from"./elbv22.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";import{n as u}from"./system-managed.js";import{t as d}from"./lb-image-missing-banner.js";var f=t(),p=e();function m(e){return e?new Date(e).toLocaleString():``}function h(){let e=(0,f.c)(20),t=i(),{data:h}=n(s),{data:_}=n(o),v;e[0]===h.LoadBalancers?v=e[1]:(v=h.LoadBalancers??[],e[0]=h.LoadBalancers,e[1]=v);let y=v,b;e[2]===_.Images?b=e[3]:(b=_.Images??[],e[2]=_.Images,e[3]=b);let x;e[4]===b?x=e[5]:(x=u(b),e[4]=b,e[5]=x);let S=x,C=!S,w;e[6]===t?w=e[7]:(w=async()=>await t({to:`/ec2/create-load-balancer`}),e[6]=t,e[7]=w);let T;e[8]!==C||e[9]!==w?(T=(0,p.jsx)(c,{actions:(0,p.jsx)(a,{disabled:C,onClick:w,children:`Create Load Balancer`}),title:`Load Balancers`}),e[8]=C,e[9]=w,e[10]=T):T=e[10];let E;e[11]===S?E=e[12]:(E=!S&&(0,p.jsx)(d,{}),e[11]=S,e[12]=E);let D;e[13]!==y||e[14]!==t?(D=y.length>0?(0,p.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,p.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,p.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,p.jsx)(`tbody`,{children:y.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,p.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,p.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,p.jsx)(r,{className:`text-primary hover:underline`,onClick:g,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:(0,p.jsx)(l,{state:e.State?.Code})}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,p.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,p.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:m(e.CreatedTime)})]},n)})})]})}):(0,p.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[13]=y,e[14]=t,e[15]=D):D=e[15];let O;return e[16]!==T||e[17]!==E||e[18]!==D?(O=(0,p.jsxs)(p.Fragment,{children:[T,E,D]}),e[16]=T,e[17]=E,e[18]=D,e[19]=O):O=e[19],O}function g(e){return e.stopPropagation()}var _=h;export{_ 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 991e0ebee..4a6abdb56 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{G as r,to 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=e();function d(){let e=(0,l.c)(5),{data:t}=n(r),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)(i,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(a,{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{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 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 d9255386a..7a319ad09 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{J as r,to 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=e();function u(){let e=(0,c.c)(5),{data:t}=n(r),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)(i,{to:`/ec2/create-security-group`,children:(0,l.jsx)(a,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js index 4d09e96da..5e7c3adc1 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{X as r,to 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=e();function d(){let e=(0,l.c)(5),{data:t}=n(r),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)(i,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(a,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js index a34495e0c..0a37aa761 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{Da as r,Q as i,to 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=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(i),r;e[0]===t.Subnets?r=e[1]:(r=t.Subnets??[],e[0]=t.Subnets,e[1]=r);let c=r,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-subnet`,children:(0,d.jsx)(o,{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=r(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{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 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 7c00c6109..caef61481 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{M as i,j as a,no as o,to as s,ya as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=o(),{data:n}=r(a),i;e[0]===n.TargetGroups?i=e[1]:(i=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=i);let f=i,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(s,{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]!==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)(s,{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,a;t[0]===r?a=t[1]:(a=i(r),t[0]=r,t[1]=a);let{data:o,isLoading:s}=n(a);if(s){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 c,l;if(t[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(`, `)||`—`,t[3]=o?.TargetHealthDescriptions,t[4]=c,t[5]=l}else c=t[4],l=t[5];let f=l,p;t[6]===c.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),t[6]=c.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js index 981ec177e..04f65022e 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{et as r,to 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=e();function d(){let e=(0,l.c)(5),{data:t}=n(r),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)(i,{to:`/ec2/create-volume`,children:(0,u.jsx)(a,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js index 2cb9272f6..bde703d33 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{Da as r,nt as i,to 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=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(i),r;e[0]===t.Vpcs?r=e[1]:(r=t.Vpcs??[],e[0]=t.Vpcs,e[1]=r);let c=r,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(a,{to:`/ec2/create-vpc`,children:(0,d.jsx)(o,{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=r(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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/dist.js b/spinifex/services/spinifexui/frontend/dist/assets/dist.js new file mode 100644 index 000000000..68973bc5f --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/dist.js @@ -0,0 +1 @@ +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 b55283264..637e84d9b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/download.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/download.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js index e2902d462..adf14fb43 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"./error-banner.js";import{$t as n,An as r,Cn as i,Dn as a,En as o,Hn as s,In as c,Jn as l,Jt as u,Kt as d,Ln as f,Mn as p,Nn as m,On as h,Qt as g,Sn as _,Tn as v,U as y,Xt as ee,Yt as te,Zt as ne,_n as re,an as ie,bn as ae,cn as oe,dn as se,en 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,pn as D,qt as O,rn as k,ro 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 r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(d).build(){},z=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(O).build(){},B=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(u).build(){},V=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(te).build(){},H=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(ee).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?f(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 p(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():m(i),o=new l({...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 s({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(u)}},l.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${c(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 r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),ge(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(ne).build(){},ve=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(g).build(){},ye=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(n).build(){},be=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(ce).build(){},xe=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(M).build(){},Se=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(T).build(){},U=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(k).build(){},Ce=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(b).build(){},we=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(ie).build(){},W=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(E).build(){},Te=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(j).build(){},G=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(oe).build(){},Ee=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(C).build(){},De=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(N).build(){},Oe=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(se).build(){},ke=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(le).build(){},Ae=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(D).build(){},je=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(w).build(){},Me=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(de).build(){},Ne=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(ue).build(){},Pe=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(re).build(){},Fe=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(P).build(){},Ie=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(L).build(){},Le=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(ae).build(){},Re=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(I).build(){},ze=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(_).build(){},Be=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(i).build(){},Ve=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(F).build(){},He=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(v).build(){},Ue=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(o).build(){},We=class extends r.classBuilder().ep(h).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(a).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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ze,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ze(e){let t=new He({InstanceIds:[e]});return await x().send(t)}function Qe(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:$e,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $e(e){let t=new Ue({InstanceIds:[e]});return await x().send(t)}function et(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function tt(e){let t=new We({InstanceIds:[e]});return await x().send(t)}function nt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:rt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function rt(e){let t=new Re({InstanceIds:[e]});return await x().send(t)}function it(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:at,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:ct,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=r),t(r)}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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:ut,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:ft,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=r),t(r)}async function ft(e){let t=new Ee({KeyPairId:e});return await x().send(t)}function pt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:mt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function vt(e){let t=new je({VolumeId:e});return await x().send(t)}function yt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:bt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:St,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function St(e){let t=new ke({SnapshotId:e});return await x().send(t)}function Ct(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:wt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Et,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ot,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:At,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:Mt},e[0]=n):n=e[0],t(n)}async function Mt(e){let t=new Pe({InstanceId:e});return await x().send(t)}function Nt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:It,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function Rt(e){let t=new Me({VpcId:e});return await x().send(t)}function zt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ht,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function Ht(e){let t=new Ae({SubnetId:e});return await x().send(t)}function Ut(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Kt(e){let t=new De({GroupName:e});return await x().send(t)}function qt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(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 e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Oe({GroupId:e});return await x().send(t)}function Xt(){let e=(0,q.c)(2),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function 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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function $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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:tn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function 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),n=A(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function 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=A();return t({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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec22.js b/spinifex/services/spinifexui/frontend/dist/assets/ec22.js index 4efbf3bff..673614e2e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec22.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec22.js @@ -1 +1 @@ -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;t{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec23.js b/spinifex/services/spinifexui/frontend/dist/assets/ec23.js new file mode 100644 index 000000000..9995fd2aa --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec23.js @@ -0,0 +1 @@ +import{D as e,E as t,O as n,T as r,j as i,k as a,w as o}from"./SignatureV4.js";import{F as s,I as c,P as l}from"./ec2.js";var u=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/,d=i().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=a({imageId:i(`Please select an Image`),instanceType:i(`Please select an instance type`),keyName:i(`Please select a key pair`).min(1,`Key pair is required`),subnetId:i().optional(),placementGroupName:i().optional(),count:e(`Instance count must be a whole number`).min(1,`Instance count must be at least 1`),rootDeviceName:i().optional(),rootVolumeSize:n().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:t().optional()}),m=a({keyName:d}),h=a({keyName:d,publicKeyMaterial:i().min(1,`Public key is required`).refine(e=>e.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{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new x({LoadBalancerArn:e});return await p().send(t)}function A(){let e=(0,D.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}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),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:P,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(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 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),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:R,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function R(e){let t=new S({TargetGroupArn:e});return await p().send(t)}function z(){let e=(0,D.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}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),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(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 p().send(n)}function W(){let e=(0,D.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new b({ListenerArn:e});return await p().send(t)}function K(){let e=h();return t({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),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}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),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}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{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{n}from"./error-banner.js";import{G as r,H as i,K as a,U as o,V as s,W as c,in as l,it as u,nt as d,q as f,r as p,rn as m,rt as h,tt as g}from"./awsClient.js";var _=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(s).build(){},v=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(i).build(){},y=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(o).build(){},b=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(c).build(){},x=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(r).build(){},S=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(a).build(){},C=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(f).build(){},w=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(g).build(){},T=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(d).build(){},E=class extends m.classBuilder().ep(u).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(h).build(){},D=e();function O(){let e=(0,D.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:k,onSuccess:()=>{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js index 63039acd9..752c141c8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv22.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv23.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv23.js new file mode 100644 index 000000000..52dc3d4e3 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv23.js @@ -0,0 +1 @@ +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 73674650c..615ba4e4a 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{bo as i,do as a,go as o,ho as s,io as c,lo as l,oo as u,ro as d}from"./index.js";var f=class extends i{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),s(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&l(t.mutationKey)!==l(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??c();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){u.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=d(t),[r]=p.useState(()=>new f(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);let i=p.useSyncExternalStore(p.useCallback(e=>r.subscribe(u.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=p.useCallback((e,t)=>{r.mutate(e,t).catch(a)},[r]);if(i.error&&o(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js b/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js index c9ff314a3..4e6f695f6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/event-streams.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/field.js b/spinifex/services/spinifexui/frontend/dist/assets/field.js index d652234e2..807e89ed1 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{Sa as r,Wa as i}from"./index.js";t();var a=n(),o=e();function s(e){let t=(0,a.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 s;t[3]===n?s=t[4]:(s=r(`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]!==i||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...i}),t[5]=i,t[6]=s,t[7]=c):c=t[7],c}var c=i(`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,i,s;t[0]===e?(n=t[1],i=t[2],s=t[3]):({className:n,orientation:s,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=s);let l=s===void 0?`vertical`:s,u;t[4]!==n||t[5]!==l?(u=r(c({orientation:l}),n),t[4]=n,t[5]=l,t[6]=u):u=t[6];let d;return t[7]!==l||t[8]!==i||t[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...i}),t[7]=l,t[8]=i,t[9]=u,t[10]=d):d=t[10],d}function u(e){let t=(0,a.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 s;t[3]===n?s=t[4]:(s=r(`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]!==i||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...i}),t[5]=i,t[6]=s,t[7]=c):c=t[7],c}function d(e){let t=(0,a.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 s;t[3]===n?s=t[4]:(s=r(`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]!==i||t[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...i}),t[5]=i,t[6]=s,t[7]=c):c=t[7],c}function f(e){let t=(0,a.c)(15),n,i,s,c;t[0]===e?(n=t[1],i=t[2],s=t[3],c=t[4]):({className:i,children:n,errors:s,...c}=e,t[0]=e,t[1]=n,t[2]=i,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]===i?d=t[10]:(d=r(`text-xs/relaxed font-normal text-destructive`,i),t[9]=i,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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js b/spinifex/services/spinifexui/frontend/dist/assets/form-actions.js index 683bb5535..f2074c408 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{ya as n}from"./index.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js b/spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js new file mode 100644 index 000000000..f075af6d7 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/fromUtf8.browser.js @@ -0,0 +1 @@ +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 67308e143..00dbebd43 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"./error-banner.js";import{An as n,At as r,Dt as i,Et as a,Mt as o,Nt as s,Ot as c,Tt as l,jn as u,jt as d,kt as f,ot as p,ro as m,wt as h}from"./index.js";var g=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(h).build(){},_=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(l).build(){},v=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(a).build(){},y=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(i).build(){},b=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(c).build(){},x=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(f).build(){},S=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(r).build(){},C=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(d).build(){},w=class extends n.classBuilder().ep(s).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(o).build(){},T=e();function E(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new y({UserName:e.userName,Path:e.path||void 0});return await p().send(t)}function O(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new S({UserName:e});return await p().send(t)}function A(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function j(e){let t=new _({UserName:e});return await p().send(t)}function M(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:N,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function N(e){let{userName:t,accessKeyId:n}=e,r=new b({UserName:t,AccessKeyId:n});return await p().send(r)}function P(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function F(e){let{userName:t,accessKeyId:n,status:r}=e,i=new w({UserName:t,AccessKeyId:n,Status:r});return await p().send(i)}function I(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:L,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function L(e){let t=new v({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await p().send(t)}function R(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new x({PolicyArn:e});return await p().send(t)}function B(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let{userName:t,policyArn:n}=e,r=new g({UserName:t,PolicyArn:n});return await p().send(r)}function H(){let e=(0,T.c)(2),n=m(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let{userName:t,policyArn:n}=e,r=new C({UserName:t,PolicyArn:n});return await p().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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js index 683e1d0f7..a0b6c7fa8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam2.js @@ -1 +1 @@ -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`),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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam3.js b/spinifex/services/spinifexui/frontend/dist/assets/iam3.js new file mode 100644 index 000000000..93aea6aa5 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam3.js @@ -0,0 +1 @@ +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`),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 f1335fcd2..6ec29b4ee 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"./back-link.js";import{t as i}from"./cli-command-panel.js";import{w as a}from"./ec2.js";import{no 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 _=t(),v=e();function y(){let e=(0,_.c)(53),t=o(),y=a(),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)(r,{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)(i,{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{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:` \\ --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 9b5490eb3..eb94fef01 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.2.4 | 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)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.end\!{inset-inline-end:var(--spacing)!important}.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}} +/*! 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}} diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index 5e14e4a48..f02efb46d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -1,92 +1,10 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/collapsible.js","assets/zod.js","assets/card.js","assets/field.js","assets/route.js","assets/_auth.js","assets/useQuery.js","assets/useBaseQuery.js","assets/chevron-down.js","assets/chevron-right.js","assets/page-heading.js","assets/state-badge.js","assets/admin.js","assets/queryOptions.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/ls.js","assets/useSuspenseQuery.js","assets/list-card.js","assets/create-bucket.js","assets/s3.js","assets/error-banner.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/iam2.js","assets/create-policy.js","assets/textarea.js","assets/create-vpc.js","assets/ec2.js","assets/select.js","assets/ec22.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/elbv22.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/lb-image-missing-banner.js","assets/system-managed.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/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/_.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{t as a}from"./queryOptions.js";import{n as o,t as s}from"./redirect.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var c=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(){}},l=new class extends c{#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`}},u={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},d=new class{#e=u;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 f(e){setTimeout(e,0)}var p=typeof window>`u`||`Deno`in globalThis;function m(){}function h(e,t){return typeof e==`function`?e(t):e}function g(e){return typeof e==`number`&&e>=0&&e!==1/0}function _(e,t){return Math.max(e+(t||0)-Date.now(),0)}function v(e,t){return typeof e==`function`?e(t):e}function y(e,t){return typeof e==`function`?e(t):e}function b(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==S(o,t.options))return!1}else if(!w(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 x(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(C(t.options.mutationKey)!==C(a))return!1}else if(!w(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function S(e,t){return(t?.queryKeyHashFn||C)(e)}function C(e){return JSON.stringify(e,(e,t)=>O(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function w(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>w(e[n],t[n])):!1}var T=Object.prototype.hasOwnProperty;function E(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=D(e)&&D(t);if(!r&&!(O(e)&&O(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{d.setTimeout(t,e)})}function re(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:E(e,t)}function ie(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 ae=Symbol();function A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ae?()=>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=()=>p;return{isServer(){return e()},setIsServer(t){e=t}}})();function le(){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 j=f;function ue(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=j,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 de=ue(),M=new class extends c{#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`?M.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=le(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new me(t);p(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},u=()=>l.isFocused()&&(e.networkMode===`always`||M.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()||u())&&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`&&nu()?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(),g(this.gcTime)&&(this.#e=d.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&&(d.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=A(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?k:ie;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=re(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(m).catch(m):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=>y(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ae||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>v(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:!_(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=A(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),de.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),de.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 c{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(){de.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=>x(t,e))}findAll(e={}){return this.getAll().filter(t=>x(e,t))}notify(e){de.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return de.batch(()=>Promise.all(e.map(e=>e.continue().catch(m))))}};function De(e){return e.options.scope?.id}var Oe=class extends c{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??S(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(){de.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=>b(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>b(e,t)):t}notify(e){de.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){de.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){de.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=l.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=M.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(v(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=h(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return de.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;de.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return de.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=de.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(m).catch(m)}invalidateQueries(e,t={}){return de.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=de.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(m)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(m)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(v(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(m).catch(m)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(m).catch(m)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return M.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(C(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{w(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(C(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{w(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||=S(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===ae&&(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()}},N=e(r(),1),P=n(),Ae=N.createContext(void 0),je=e=>{let t=N.useContext(Ae);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Me=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,P.jsx)(Ae.Provider,{value:e,children:t})),Ne=N.use,Pe=typeof window<`u`?N.useLayoutEffect:N.useEffect;function Fe(e){let t=N.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Ie(e,t,n={},r={}){N.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 Le(e){let t=N.useRef(null);return N.useImperativeHandle(e,()=>t.current,[]),t}function Re(e){return e[e.length-1]}function ze(e){return typeof e==`function`}function Be(e,t){return ze(e)?e(t):e}var Ve=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;function Ue(e){for(let t in e)if(Ve.call(e,t))return!0;return!1}var We=()=>Object.create(null),Ge=(e,t)=>Ke(e,t,We);function Ke(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=Xe(e)&&Xe(i);if(!a&&!(Je(e)&&Je(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||!Ze(e[o],t[o],n)))return!1;return i===a}return!1}function Qe(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 $e(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 et(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function tt(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function nt(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 tt(t)}var rt=[`http:`,`https:`,`mailto:`,`tel:`];function it(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var at={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ot=/[&><\u2028\u2029]/g;function st(e){return e.replace(ot,e=>at[e])}function ct(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+=nt(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=nt(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function lt(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ut(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 pt=4,mt=5;function ht(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 gt(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=ht(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=xt(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=xt(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=xt(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=bt(n.fullPath??n.from);e.kind=mt,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=bt(n.fullPath??n.from);e.kind=pt,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)_t(e,t,r,s,i,a,o)}function vt(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 yt(e){if(e.pathless)for(let t of e.pathless)yt(t);if(e.static)for(let t of e.static.values())yt(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())yt(t);if(e.dynamic?.length){e.dynamic.sort(vt);for(let t of e.dynamic)yt(t)}if(e.optional?.length){e.optional.sort(vt);for(let t of e.optional)yt(t)}if(e.wildcard?.length){e.wildcard.sort(vt);for(let t of e.wildcard)yt(t)}}function bt(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 xt(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 St(e,t){let n=bt(`/`),r=new Uint16Array(6);for(let t of e)_t(!1,r,t,1,n,0);yt(n),t.masksTree=n,t.flatCache=ft(1e3)}function Ct(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Ot(e,t.masksTree);return t.flatCache.set(e,r),r}function wt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=bt(`/`),_t(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Ot(r,o,n)}function Tt(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=Ot(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=At(a.route)),t.matchCache.set(r,a),a}function Et(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Dt(e,t=!1,n){let r=bt(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return _t(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&dt(),a[e.id]=e,s!==0&&e.path){let t=Et(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),yt(r),{processedTree:{segmentTree:r,singleCache:ft(1e3),matchCache:ft(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Ot(e,t,n=!1){let r=e.split(`/`),i=Mt(e,r,t,n);if(!i)return null;let[a]=kt(e,r,i);return{route:i.node.route,rawParams:a}}function kt(e,t,n){let r=jt(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+Nt(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+Nt(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+Nt(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+Nt(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===pt)>(e.node.kind===pt)||t.node.kind===pt==(e.node.kind===pt)&&t.depth>e.depth))):!0}function Lt(e){return Rt(e.filter(e=>e!==void 0).join(`/`))}function Rt(e){return e.replace(/\/{2,}/g,`/`)}function zt(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Bt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Vt(e){return Bt(zt(e))}function Ht(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Ut(e,t,n){return Ht(e,n)===Ht(t,n)}function Wt({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&&Re(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(Re(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Rt(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Gt(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 Kt(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Jt(e,n)).join(`/`):Jt(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=Be(e,t)||t},persist:()=>{try{e.setItem(Zt,JSON.stringify(t))}catch{}}}}var $t=Qt(),en=e=>e.state.__TSR_key||e.href;function tn(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 nn=!1,rn=`window`,an=`data-scroll-restoration-id`;function on(e,t){if(!$t)return;let n=$t;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,nn=!1;let r=e.options.getScrollRestorationKey||en,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(nn||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(rn,{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===rn)n=rn;else if(e.isConnected){let t=e.getAttribute(an);n=t?`[${an}="${t}"]`:tn(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}))){nn=!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(!Je(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===rn)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===rn)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{nn=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function sn(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 cn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ln(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]=cn(r):Array.isArray(t)?t.push(cn(r)):n[e]=[t,cn(r)]}return n}var un=fn(JSON.parse),dn=pn(JSON.stringify,JSON.parse);function fn(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ln(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function pn(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=sn(e,r);return t?`?${t}`:``}}var mn=`__root__`;function hn(e){return{input:({url:t})=>{for(let n of e)t=_n(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=vn(e[n],t);return t}}}function gn(e){let t=Vt(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=Lt([`/`,t,e.pathname]),e)}}function _n(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 vn(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 yn(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(()=>bn(o,_.get())),x=r(()=>bn(s,v.get())),S=r(()=>bn(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=ft(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){xn(e,o,_,n,i)}function ne(e){xn(e,s,v,n,i)}function re(e){xn(e,c,y,n,i)}return O}function bn(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function xn(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)}ut(n.get(),a)||n.set(a)})}var Sn=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Cn=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),wn=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Tn=(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},En=(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},Dn=(e,t,n)=>{if(!(!s(n)&&!Yt(n)))throw s(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:s(n)?`redirected`:Yt(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Tn(e,t.index),isFetching:!1,error:n})),Yt(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),s(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},On=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},kn=(e,t,n)=>{let r=Tn(e,n);e.updateMatch(t,e=>({...e,context:r}))},An=(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,Dn(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,Dn(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&&!s(n)&&!Yt(n)&&(e.serialError??=n)},jn=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!wn(e,t)&&(n.options.loader||n.options.beforeLoad||Hn(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Sn(e)},i);r._nonReactive.pendingTimeout=t}},Mn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;jn(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Dn(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Nn=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Qe(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:c}=i;o&&An(e,n,o,`PARSE_PARAMS`),c&&An(e,n,c,`VALIDATE_SEARCH`),jn(e,t,r,i);let l=new AbortController,u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=Qe();let p={...Tn(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=wn(e,t),v={search:m,abortController:l,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},y=r=>{if(r===void 0){e.router.batch(()=>{d(),f()});return}(s(r)||Yt(r))&&(d(),An(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},b;try{if(b=r.options.beforeLoad(v),et(b))return d(),b.catch(t=>{An(e,n,t,`BEFORE_LOAD`)}).then(y)}catch(t){d(),An(e,n,t,`BEFORE_LOAD`)}y(b)},Pn=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Nn(e,n,t,i),s=()=>{if(On(e,n))return;let t=Mn(e,n,i);return et(t)?t.then(o):o()};return a()},Fn=(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}))},In=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Tn(e,r),d=wn(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}},Ln=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Vn(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(In(e,t,n,r,i)),l=!!s&&et(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;Dn(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:Tn(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:Tn(e,r)}));return}let c=a._nonReactive.minPendingPromise;c&&await c,Yt(t)&&await i.options.notFoundComponent?.preload?.(),Dn(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Dn(e,e.router.getMatch(n),t)}!s(o)&&!Yt(o)&&await Vn(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Tn(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Dn(e,r,t)}},Rn=async(e,t,n)=>{async function r(r,a,l,u,f){let p=Date.now()-a.updatedAt,m=r?f.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.router.options.defaultStaleTime??0,h=f.options.shouldReload,g=typeof h==`function`?h(In(e,t,i,n,f)):h,{status:_,invalid:v}=u,y=p>=m&&(!!e.forceStaleReload||u.cause===`enter`||l!==void 0&&l!==u.id);o=_===`success`&&(v||(g??y)),r&&f.options.preload===!1||(o&&!e.sync&&d?(c=!0,(async()=>{try{await Ln(e,t,i,n,f);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){s(t)&&await e.router.navigate(t.options)}})()):_!==`success`||o?await Ln(e,t,i,n,f):kn(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,c=!1,l=e.router.looseRoutesById[a],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(On(e,i)){if(!e.router.getMatch(i))return e.matches[n];kn(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,c=wn(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Dn(e,n,a),n.status===`pending`&&await r(c,t,s,n,l)}else{let n=c&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=Qe(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(c,t,s,a,l)}}let f=e.router.getMatch(i);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function zn(e){let t=e,n=[];Cn(t.router)&&Sn(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:u},isFetching:!1})),d=e,await Vn(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 Vn(e,[`errorComponent`])}for(let e=0;e<=d;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Fn(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 f=Sn(t);if(et(f)&&await f,u)throw u;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Bn(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Vn(e,t=Un){!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===Un?(()=>{if(e._componentsPromise===void 0){let t=Bn(e,Un);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Bn(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Hn(e){for(let t of Un)if(e.options[t]?.preload)return!0;return!1}var Un=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],Wn=`__TSR_index`,Gn=`popstate`,Kn=`beforeunload`;function qn(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=Zn(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[Wn];i=Jn(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[Wn];i=Jn(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[Wn]!==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 Jn(e,t){t||={};let n=Qn();return{...t,key:n,__TSR_key:n,[Wn]:e}}function Yn(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??(()=>Zn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Qn();t.history.replaceState({[Wn]: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=Zn(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[Wn]-l.state[Wn],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=qn({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(Kn,S,{capture:!0}),t.removeEventListener(Gn,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Kn,S,{capture:!0}),t.addEventListener(Gn,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 Xn(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Zn(e,t){let n=Xn(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Qn();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||{[Wn]:0,key:a,__TSR_key:a}}}function Qn(){return(Math.random()+1).toString(36).substring(7)}function $n(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 er=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=Gt(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Yn()),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=ft(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=yn(rr(this.latestLocation),e),on(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Vt(o);t&&t!==`/`&&e.push(gn({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:hn(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=Dt(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&St(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:ct(e).path,external:!1,searchStr:o,search:Ge(t?.search,i),hash:ct(r.slice(1)).path,state:Ke(t?.state,a)}}let o=new URL(i,this.origin),s=_n(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:ct(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:Ge(t?.search,c),hash:ct(s.hash.slice(1)).path,state:Ke(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)=>Wt({base:e,to:t.includes(`//`)?Rt(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=>ar({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,Be(t.params,s)),d=this.routesByPath[Bt(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&&Ue(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:ct(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,ir(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=or({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=Ge(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?Be(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?Be(t.state,n.state):{};v=Ke(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=vn(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=lt(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=Ct(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,Be(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=Ze(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=Bt(this.latestLocation.href)===Bt(n.href),a=this.commitLocationPromise;if(this.commitLocationPromise=Qe(()=>{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=Zn(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=_n(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(it(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=$n(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await zn({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){s(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):Yt(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($n(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&&it(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=Vn,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 zn({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(s(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Yt(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=wt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!Ze(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?Ze(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??dn,parseSearch:e.parseSearch??un,protocolAllowlist:e.protocolAllowlist??rt}),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=At(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[`**`]:Bt(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?cr(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=Re(t),i={...e.search};for(let e of t)try{Object.assign(i,ir(e.options.validateSearch,i))}catch{}let a=Re(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{lr(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},tr=class extends Error{},nr=class extends Error{};function rr(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function ir(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new tr(`Async validation not supported`);if(n.issues)throw new tr(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 ar({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Bt(e),a,o=Tt(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function or({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return sr(n)(e,t,r??!1)}function sr(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,...ir(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:Be(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 cr(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 mn}function lr(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 ur=`Error preloading route! ☝️`;function dr(e,t){if(e)return typeof e==`string`?e:e[t]}function fr(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function pr(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 mr(e,t){let n=pr(t);return!!n&&e?.inlineCss?.styles[n]!==void 0}var hr=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=mn:this.parentRoute||dt();let r=n?mn:t?.path;r&&r!==`/`&&(r=zt(r));let i=t?.id||r,a=n?mn:Lt([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Lt([`/`,a]));let o=a===`__root__`?`/`:Lt([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Bt(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=>o({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.`)}},gr=class extends hr{constructor(e){super(e)}};function _r(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 vr(e){let t=e.errorComponent??br;return(0,P.jsx)(yr,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?N.createElement(t,{error:n,reset:r}):e.children})}var yr=class extends N.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 br({error:e}){let[t,n]=N.useState(!1);return(0,P.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,P.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,P.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,P.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,P.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,P.jsx)(`div`,{children:(0,P.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,P.jsx)(`code`,{children:e.message}):null})}):null]})}function xr({children:e,fallback:t=null}){return Sr()?(0,P.jsx)(N.Fragment,{children:e}):(0,P.jsx)(N.Fragment,{children:t})}function Sr(){return N.useSyncExternalStore(Cr,()=>!0,()=>!1)}function Cr(){return()=>{}}var wr=N.createContext(null);function Tr(e){return N.useContext(wr)}var Er=N.createContext(void 0),Dr=N.createContext(void 0),Or=(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))(Or||{});function kr({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 Ar(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 jr=[],Mr=0,{link:Nr,unlink:Pr,propagate:Fr,checkDirty:Ir,shallowPropagate:Lr}=kr({update(e){return e._update()},notify(e){jr[zr++]=e,e.flags&=~Or.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Or.Mutable|Or.Dirty,Ur(e))}}),Rr=0,zr=0,Br,Vr=0;function Hr(e){try{++Vr,e()}finally{--Vr||Wr()}}function Ur(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Pr(n,e)}function Wr(){if(!(Vr>0)){for(;Rr{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Br,o=t?.compare??Object.is;if(n)Br=i,++Mr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Or.Mutable|Or.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{Br=a,n&&(i.flags&=~Or.RecursedCheck),Ur(i)}}};return n?(i.flags=Or.Mutable|Or.Dirty,i.get=function(){let e=i.flags;if(e&Or.Dirty||e&Or.Pending&&Ir(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Lr(e)}}else e&Or.Pending&&(i.flags=e&~Or.Pending);return Br!==void 0&&Nr(i,Br,Mr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fr(e),Lr(e),Wr())}},i}function Kr(e){let t=()=>{let t=Br;Br=n,++Mr,n.depsTail=void 0,n.flags=Or.Watching|Or.RecursedCheck;try{return e()}finally{Br=t,n.flags&=~Or.RecursedCheck,Ur(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Or.Watching|Or.RecursedCheck,notify(){let e=this.flags;e&Or.Dirty||e&Or.Pending&&Ir(this.deps,this)?t():this.flags=Or.Watching},stop(){this.flags=Or.None,this.depsTail=void 0,Ur(this)}};return t(),n}var qr=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})),Jr=t(((e,t)=>{t.exports=qr()})),Yr=t((e=>{var t=r(),n=Jr();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}})),Xr=t(((e,t)=>{t.exports=Yr()}))();function Zr(e,t){return e===t}function Qr(e,t,n=Zr){let r=(0,N.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,N.useCallback)(()=>e?.get(),[e]);return(0,Xr.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var $r={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function ei(e){let t=Tr(),n=N.useContext(e.from?Dr:Er),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=N.useRef(void 0);return Qr(i??$r,n=>{if((e.shouldThrow??!0)&&!n&&dt(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=Ke(a.current,r);return a.current=e,e}return r})}function ti(e){return ei({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ni(e){let{select:t,...n}=e;return ei({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ri(e){return ei({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 ii(e){return ei({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ai(e){let t=Tr();return N.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function oi(e){return ei({...e,select:t=>e.select?e.select(t.context):t.context})}var si=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=si()})),li=e(ci(),1);function ui(e,t){let n=Tr(),r=Le(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:ie,unsafeRelative:k,from:ae,_fromLocation:A,...oe}=e,se=Sr(),ce=N.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),le=Qr(n.stores.location,e=>e,(e,t)=>e.href===t.href),j=N.useMemo(()=>{let e={_fromLocation:le,...ce};return n.buildLocation(e)},[n,le,ce]),ue=j.maskedLocation?j.maskedLocation.publicHref:j.publicHref,de=j.maskedLocation?j.maskedLocation.external:j.external,M=N.useMemo(()=>yi(ue,de,n.history,v),[v,de,ue,n.history]),fe=N.useMemo(()=>{if(M?.external)return it(M.href,n.protocolAllowlist)?void 0:M.href;if(!bi(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),it(s,n.protocolAllowlist)?void 0:s}catch{}},[s,M,n.protocolAllowlist]),pe=N.useMemo(()=>{if(fe)return!1;if(o?.exact){if(!Ut(le.pathname,j.pathname,n.basepath))return!1}else{let e=Ht(le.pathname,n.basepath),t=Ht(j.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!Ze(le.search,j.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?se&&le.hash===j.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,le,fe,se,j.hash,j.pathname,j.search,n.basepath]),me=pe?Be(i,{})??fi:di,he=pe?di:Be(a,{})??di,ge=[b,me.className,he.className].filter(Boolean).join(` `),_e=(y||me.style||he.style)&&{...y,...me.style,...he.style},[ve,ye]=N.useState(!1),be=N.useRef(!1),xe=e.reloadDocument||fe?!1:c??n.options.defaultPreload,Se=l??n.options.defaultPreloadDelay??0,Ce=N.useCallback(()=>{n.preloadRoute({...ce,_builtLocation:j}).catch(e=>{console.warn(e),console.warn(ur)})},[n,ce,j]);Ie(r,N.useCallback(e=>{e?.isIntersecting&&Ce()},[Ce]),_i,{disabled:!!v||xe!==`viewport`}),N.useEffect(()=>{be.current||!v&&xe===`render`&&(Ce(),be.current=!0)},[v,Ce,xe]);let we=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Si(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,li.flushSync)(()=>{ye(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ye(!1)});n.navigate({...ce,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:ee})}};if(fe)return{...oe,ref:r,href:fe,...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 Te=e=>{if(v||xe!==`intent`)return;if(!Se){Ce();return}let t=e.currentTarget;if(gi.has(t))return;let n=setTimeout(()=>{gi.delete(t),Ce()},Se);gi.set(t,n)},Ee=e=>{v||xe!==`intent`||Ce()},De=e=>{if(v||!xe||!Se)return;let t=e.currentTarget,n=gi.get(t);n&&(clearTimeout(n),gi.delete(t))};return{...oe,...me,...he,href:M?.href,ref:r,onClick:vi([x,we]),onBlur:vi([S,De]),onFocus:vi([C,Te]),onMouseEnter:vi([w,Te]),onMouseLeave:vi([T,De]),onTouchStart:vi([E,Ee]),disabled:!!v,target:_,..._e&&{style:_e},...ge&&{className:ge},...v&&pi,...pe&&mi,...se&&ve&&hi}}var di={},fi={className:`active`},pi={role:`link`,"aria-disabled":!0},mi={"data-status":`active`,"aria-current":`page`},hi={"data-transitioning":`transitioning`},gi=new WeakMap,_i={rootMargin:`100px`},vi=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function yi(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function bi(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var xi=N.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=ui(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return N.createElement(`a`,t,o)}return N.createElement(n,a,o)});function Si(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Ci=class extends hr{constructor(e){super(e),this.useMatch=e=>ei({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>oi({...e,from:this.id}),this.useSearch=e=>ii({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ri({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ni({...e,from:this.id}),this.useLoaderData=e=>ti({...e,from:this.id}),this.useNavigate=()=>ai({from:this.fullPath}),this.Link=N.forwardRef((e,t)=>(0,P.jsx)(xi,{ref:t,from:this.fullPath,...e}))}};function wi(e){return new Ci(e)}function Ti(){return e=>Di(e)}var Ei=class extends gr{constructor(e){super(e),this.useMatch=e=>ei({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>oi({...e,from:this.id}),this.useSearch=e=>ii({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ri({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ni({...e,from:this.id}),this.useLoaderData=e=>ti({...e,from:this.id}),this.useNavigate=()=>ai({from:this.fullPath}),this.Link=N.forwardRef((e,t)=>(0,P.jsx)(xi,{ref:t,from:this.fullPath,...e}))}};function Di(e){return new Ei(e)}function F(e){return new Oi(e,{silent:!0}).createRoute}var Oi=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=wi(e);return t.isRoot=!1,t},this.silent=t?.silent}};function I(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,$e(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(Ne)Ne(o());else throw o();return N.createElement(r,e)};return s.preload=o,s}function ki(e){let t=Tr(),n=`not-found-${Qr(t.stores.location,e=>e.pathname)}-${Qr(t.stores.status,e=>e)}`;return(0,P.jsx)(vr,{getResetKey:()=>n,onCatch:(t,n)=>{if(Yt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Yt(t))return e.fallback?.(t);throw t},children:e.children})}function Ai(){return(0,P.jsx)(`p`,{children:`Not Found`})}function ji(e){return(0,P.jsx)(P.Fragment,{children:e.children})}function Mi(e,t,n){return t.options.notFoundComponent?(0,P.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,P.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,P.jsx)(Ai,{})}var Ni=N.memo(function({matchId:e}){let t=Tr(),n=t.stores.matchStores.get(e);n||dt();let r=Qr(t.stores.loadedAt,e=>e),i=Qr(n,e=>e);return(0,P.jsx)(Pi,{router:t,matchId:e,resetKey:r,matchState:N.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 Pi({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,P.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))?N.Suspense:ji,f=s?vr:ji,p=l?ki:ji;return(0,P.jsxs)(i.isRoot?i.options.shellComponent??ji:ji,{children:[(0,P.jsx)(Er.Provider,{value:t,children:(0,P.jsx)(d,{fallback:o,children:(0,P.jsx)(f,{getResetKey:()=>n,errorComponent:s||br,onCatch:(e,t)=>{if(Yt(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,P.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return N.createElement(l,e)},children:u||r._displayPending?(0,P.jsx)(xr,{fallback:o,children:(0,P.jsx)(Ii,{matchId:t})}):(0,P.jsx)(Ii,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Fi,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function Fi({resetKey:e}){let t=Tr(),n=N.useRef(void 0);return Pe(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...$n(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Ii=N.memo(function({matchId:e}){let t=Tr(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||dt();let i=Qr(r,e=>e),a=i.routeId,o=t.routesById[a],c=N.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]),l=N.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,P.jsx)(e,{},c):(0,P.jsx)(Li,{})},[c,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=Qe();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Yt(i.error)||dt(),Mi(t,o,i.error);if(i.status===`redirected`)throw s(i.error)||dt(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return l}),Li=N.memo(function(){let e=Tr(),t=N.useContext(Er),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=Qr(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=Qr(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,P.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||dt(),Mi(e,a,void 0);if(!i)return null;let s=(0,P.jsx)(Ni,{matchId:i});return n===`__root__`?(0,P.jsx)(N.Suspense,{fallback:o,children:s}):s});function Ri(){let e=Tr(),t=N.useRef({router:e,mounted:!1}),[n,r]=N.useState(!1),i=Qr(e.stores.isLoading,e=>e),a=Qr(e.stores.hasPending,e=>e),o=Fe(i),s=i||n||a,c=Fe(s),l=i||a,u=Fe(l);return e.startTransition=e=>{r(!0),N.startTransition(()=>{e(),r(!1)})},N.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 Bt(e.latestLocation.publicHref)!==Bt(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Pe(()=>{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]),Pe(()=>{o&&!i&&e.emit({type:`onLoad`,...$n(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),Pe(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...$n(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),Pe(()=>{if(c&&!s){let t=$n(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Hr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&_r(e)}},[s,c,e]),null}function zi(){let e=Tr(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,P.jsx)(t,{}):null,r=(0,P.jsxs)(typeof document<`u`&&e.ssr?ji:N.Suspense,{fallback:n,children:[(0,P.jsx)(Ri,{}),(0,P.jsx)(Bi,{})]});return e.options.InnerWrap?(0,P.jsx)(e.options.InnerWrap,{children:r}):r}function Bi(){let e=Tr(),t=Qr(e.stores.firstId,e=>e),n=Qr(e.stores.loadedAt,e=>e),r=t?(0,P.jsx)(Ni,{matchId:t}):null;return(0,P.jsx)(Er.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,P.jsx)(vr,{getResetKey:()=>n,errorComponent:br,onCatch:void 0,children:r})})}var Vi=e=>({createMutableStore:Gr,createReadonlyStore:Gr,batch:Hr}),Hi=e=>new Ui(e),Ui=class extends er{constructor(e){super(e,Vi)}};function Wi({router:e,children:t,...n}){Ue(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,P.jsx)(wr.Provider,{value:e,children:t});return e.options.Wrap?(0,P.jsx)(e.options.Wrap,{children:r}):r}function Gi({router:e,...t}){return(0,P.jsx)(Wi,{router:e,...t,children:(0,P.jsx)(zi,{})})}function Ki(e){let t=Tr(),n=(0,N.useRef)(void 0);return Qr(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Ke(n.current,i);return n.current=e,e}return i})}function qi(e){let{attrs:t,children:n,nonce:r}=e;switch(e.tag){case`title`:return(0,P.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,P.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,P.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,P.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,P.jsx)(Ji,{attrs:t,children:n});default:return null}}function Ji({attrs:e,children:t}){Tr();let n=Sr(),r=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(N.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,P.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,P.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Yi=e=>{let t=Tr(),n=t.options.ssr?.nonce,r=Qr(t.stores.matches,e=>e.map(e=>e.meta).filter(Boolean),Ze),i=N.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:st(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=Qr(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`?mr(a,t)?[]:[{tag:`link`,attrs:{...t.attrs,crossOrigin:dr(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]},Ze),o=Qr(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=fr(t);i.push({tag:`link`,attrs:{rel:`modulepreload`,href:r.href,crossOrigin:dr(e,`modulepreload`)??r.crossOrigin,nonce:n}})})),i},Ze),s=Qr(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})),Ze),c=Qr(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})),Ze);return Xi([...i,...o,...a,...s,...c],e=>JSON.stringify(e))};function Xi(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Zi(e){let t=Yi(e.assetCrossOrigin),n=Tr().options.ssr?.nonce;return(0,P.jsx)(P.Fragment,{children:t.map(e=>(0,N.createElement)(qi,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Qi=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,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}}}})),$i=t(((e,t)=>{t.exports=Qi()})),ea=t((e=>{var t=$i(),n=r(),i=ci();function a(e){var t=`https://react.dev/errors/`+e;if(1se||(e.current=oe[se],oe[se]=null,se--)}function j(e,t){se++,oe[se]=e.current,e.current=t}var ue=ce(null),de=ce(null),M=ce(null),fe=ce(null);function pe(e,t){switch(j(M,t),j(de,e),j(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nf(t),e=rf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(ue),j(ue,e)}function me(){le(ue),le(de),le(M)}function he(e){e.memoizedState!==null&&j(fe,e);var t=ue.current,n=rf(t,e.type);t!==n&&(j(de,e),j(ue,n))}function ge(e){de.current===e&&(le(ue),le(de)),fe.current===e&&(le(fe),pp._currentValue=A)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1i.map(i=>d[i]); +import{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=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +`+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 we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,N=t.unstable_getCurrentPriorityLevel,P=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Fe=t.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(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 qe(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=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(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 Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(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),fn=!1;if(dn)try{var pn={};Object.defineProperty(pn,`passive`,{get:function(){fn=!0}}),window.addEventListener(`test`,pn,pn),window.removeEventListener(`test`,pn,pn)}catch{fn=!1}var mn=null,hn=null,gn=null;function _n(){if(gn)return gn;var e,t=hn,n=t.length,r,i=`value`in mn?mn.value:mn.textContent,a=i.length;for(e=0;e=Yn),Qn=` `,$n=!1;function er(e,t){switch(e){case`keyup`:return qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var nr=!1;function rr(e,t){switch(e){case`compositionend`:return tr(t);case`keypress`:return t.which===32?($n=!0,Qn):null;case`textInput`:return e=t.data,e===Qn&&$n?null:e;default:return null}}function ir(e,t){if(nr)return e===`compositionend`||!Jn&&er(e,t)?(e=_n(),gn=hn=mn=null,nr=!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=Er(n)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rt(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=Rt(e.document)}return t}function Ar(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 jr=dn&&`documentMode`in document&&11>=document.documentMode,Mr=null,Nr=null,Pr=null,Fr=!1;function Ir(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||Mr==null||Mr!==Rt(r)||(r=Mr,`selectionStart`in r&&Ar(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}),Pr&&Tr(Pr,r)||(Pr=r,r=Bd(Nr,`onSelect`),0>=o,i-=o,Oi=1<<32-ze(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),Ii&&ki(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),Ii&&ki(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 Ii&&ki(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)}),Ii&&ki(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&&ja(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ra(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),Ra(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=yi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=ja(o),b(e,r,o,c)}if(ie(o))return v(e,r,o,c);if(te(o)){if(l=te(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,La(o),c);if(o.$$typeof===x)return b(e,r,aa(e,o),c);za(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=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ia=0;var i=b(e,t,n,r);return Fa=null,i}catch(t){if(t===Ta||t===Da)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Va=Ba(!0),Ha=Ba(!1),Ua=!1;function Wa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ga(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 Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Kl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=si(e),oi(e,null,n),t}return ri(e,r,t,n),si(e)}function Ja(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,tt(e,n)}}function Ya(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 Xa=!1;function Za(){if(Xa){var e=ga;if(e!==null)throw e}}function Qa(e,t,n,r){Xa=!1;var i=e.updateQueue;Ua=!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?(Yl&f)===f:(r&f)===f){f!==0&&f===ha&&(Xa=!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:Ua=!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),ru|=o,e.lanes=o,e.memoizedState=d}}function $a(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function eo(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,Vs(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Bs(e,t,ya(c,r),Tu(e)):Bs(e,t,r,Tu(e))}catch(n){Bs(e,t,{then:function(){},status:`rejected`,reason:n},Tu())}finally{ae.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function As(){}function js(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Ms(e).queue;ks(e,i,t,A,n===null?As:function(){return Ns(e),n(r)})}function Ms(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:A},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ns(e){var t=Ms(e);t.next===null&&(t=e.alternate.memoizedState),Bs(e,t.next.queue,{},Tu())}function Ps(){return ia(pp)}function Fs(){return Lo().memoizedState}function Is(){return Lo().memoizedState}function Ls(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tu();e=Ka(n);var r=qa(t,e,n);r!==null&&(Du(r,t,n),Ja(r,t,n)),t={cache:da()},e.payload=t;return}t=t.return}}function Rs(e,t,n){var r=Tu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hs(e)?Us(t,n):(n=ii(e,t,n,r),n!==null&&(Du(n,e,r),Ws(n,t,r)))}function zs(e,t,n){Bs(e,t,n,Tu())}function Bs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hs(e))Us(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,wr(s,o))return ri(e,t,i,0),ql===null&&ni(),!1}catch{}if(n=ii(e,t,i,r),n!==null)return Du(n,e,r),Ws(n,t,r),!0}return!1}function Vs(e,t,n,r){if(r={lane:2,revertLane:wd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Hs(e)){if(t)throw Error(a(479))}else t=ii(e,n,r,2),t!==null&&Du(t,e,2)}function Hs(e){var t=e.alternate;return e===_o||t!==null&&t===_o}function Us(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ws(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var Gs={readContext:ia,use:Bo,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useInsertionEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useSyncExternalStore:Do,useId:Do,useHostTransitionStatus:Do,useFormState:Do,useActionState:Do,useOptimistic:Do,useMemoCache:Do,useCacheRefresh:Do};Gs.useEffectEvent=Do;var Ks={readContext:ia,use:Bo,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:ia,useEffect:gs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ms(4194308,4,Ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var n=Io();t=t===void 0?null:t;var r=e();if(So){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Io();if(n!==void 0){var i=n(t);if(So){Re(!0);try{n(t)}finally{Re(!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=Rs.bind(null,_o,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=zs.bind(null,_o,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ws,useDeferredValue:function(e,t){return Ds(Io(),e,t)},useTransition:function(){var e=Qo(!1);return e=ks.bind(null,_o,e.queue,!0,!1),Io().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=_o,i=Io();if(Ii){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),ql===null)throw Error(a(349));Yl&127||qo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gs(Yo.bind(null,r,o,e),[e]),r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,o,n,t),null),n},useId:function(){var e=Io(),t=ql.identifierPrefix;if(Ii){var n=I,r=Oi;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ct]=t,o[lt]=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(Yd(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&&Rc(t)}}return Uc(t),zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=M.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Pi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Kd(e.nodeValue,n)),e||Bi(t,!0)}else e=tf(e).createTextNode(r),e[ct]=t,t.stateNode=e}return Uc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[ct]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Uc(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(po(t),t):(po(t),null);if(t.flags&128)throw Error(a(558))}return Uc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[ct]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Uc(t),i=!1}else i=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(po(t),t):(po(t),null)}return po(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),Vc(t,t.updateQueue),Uc(t),null);case 4:return me(),e===null&&Id(t.stateNode.containerInfo),Uc(t),null;case 10:return Zi(t.type),Uc(t),null;case 19:if(le(mo),r=t.memoizedState,r===null)return Uc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Hc(r,!1);else{if(nu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ho(e),o!==null){for(t.flags|=128,Hc(r,!1),e=o.updateQueue,t.updateQueue=e,Vc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return j(mo,mo.current&1|2),Ii&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>pu&&(t.flags|=128,i=!0,Hc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ho(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Vc(t,e),Hc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ii)return Uc(t),null}else 2*ke()-r.renderingStartTime>pu&&n!==536870912&&(t.flags|=128,i=!0,Hc(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?(Uc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=mo.current,j(mo,i?n&1|2:n&1),Ii&&ki(t,r.treeForkCount),e);case 22:case 23:return po(t),ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Uc(t),t.subtreeFlags&6&&(t.flags|=8192)):Uc(t),n=t.updateQueue,n!==null&&Vc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&le(xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(ua),Uc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Gc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(ua),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(po(t),t.alternate===null)throw Error(a(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(mo),null;case 4:return me(),null;case 10:return Zi(t.type),null;case 22:case 23:return po(t),ao(),e!==null&&le(xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(ua),null;case 25:return null;default:return null}}function Kc(e,t){switch(Mi(t),t.tag){case 3:Zi(ua),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&po(t);break;case 13:po(t);break;case 19:le(mo);break;case 10:Zi(t.type);break;case 22:case 23:po(t),ao(),e!==null&&le(xa);break;case 24:Zi(ua)}}function qc(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){rd(t,t.return,e)}}function Jc(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){rd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){rd(t,t.return,e)}}function Yc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eo(t,n)}catch(t){rd(e,e.return,t)}}}function Xc(e,t,n){n.props=$s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){rd(e,t,n)}}function Zc(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){rd(e,t,n)}}function Qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){rd(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){rd(e,t,n)}else n.current=null}function $c(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){rd(e,e.return,t)}}function el(e,t,n){try{var r=e.stateNode;Xd(r,e.type,n,t),r[lt]=t}catch(t){rd(e,e.return,t)}}function tl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pf(e.type)||e.tag===4}function nl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||tl(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&&pf(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 rl(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=tn));else if(r!==4&&(r===27&&pf(e.type)&&(n=e.stateNode,t=null),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,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&&pf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function al(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Yd(t,r,n),t[ct]=e,t[lt]=n}catch(t){rd(e,e.return,t)}}var ol=!1,sl=!1,cl=!1,ll=typeof WeakSet==`function`?WeakSet:Set,ul=null;function dl(e,t){if(e=e.containerInfo,$d=Sp,e=kr(e),Ar(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(ef={focusedElem:e,selectionRange:n},Sp=!1,ul=t;ul!==null;)if(t=ul,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ul=e;else for(;ul!==null;){switch(t=ul,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`))),Yd(o,r,n),o[ct]=e,xt(o),r=o;break a;case`link`:var s=np(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Dr(s,h),v=Dr(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=xu,xu=null;var o=_u,s=yu;if(gu=0,vu=_u=null,yu=0,Kl&6)throw Error(a(331));var c=Kl;if(Kl|=4,Vl(o.current),Nl(o,o.current,s,n),Kl=c,_d(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,o)}catch{}return!0}finally{ae.p=i,k.T=r,$u(e,t)}}function nd(e,t,n){t=xi(n,t),t=ac(e.stateNode,t,2),e=qa(e,t,2),e!==null&&(Qe(e,2),gd(e))}function rd(e,t,n){if(e.tag===3)nd(e,e,n);else for(;t!==null;){if(t.tag===3){nd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hu===null||!hu.has(r))){e=xi(n,e),n=oc(2),r=qa(t,n,2),r!==null&&(sc(n,r,t,e),Qe(r,2),gd(r));break}}t=t.return}}function id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gl;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)||(eu=!0,i.add(n),e=ad.bind(null,e,t,n),t.then(e,e))}function ad(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ql===e&&(Yl&n)===n&&(nu===4||nu===3&&(Yl&62914560)===Yl&&300>ke()-du?!(Kl&2)&&Pu(e,0):au|=n,su===Yl&&(su=0)),gd(e)}function od(e,t){t===0&&(t=Xe()),e=ai(e,t),e!==null&&(Qe(e,t),gd(e))}function sd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function cd(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),od(e,n)}function ld(e,t){return Te(e,t)}var ud=null,dd=null,fd=!1,pd=!1,md=!1,hd=0;function gd(e){e!==dd&&e.next===null&&(dd===null?ud=dd=e:dd=dd.next=e),pd=!0,fd||(fd=!0,Cd())}function _d(e,t){if(!md&&pd){md=!0;do for(var n=!1,r=ud;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-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Sd(r,a))}else a=Yl,a=qe(r,r===ql?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,Sd(r,a));r=r.next}while(n);md=!1}}function vd(){yd()}function yd(){pd=fd=!1;var e=0;hd!==0&&sf()&&(e=hd);for(var t=ke(),n=null,r=ud;r!==null;){var i=r.next,a=bd(r,t);a===0?(r.next=null,n===null?ud=i:n.next=i,i===null&&(dd=n)):(n=r,(e!==0||a&3)&&(pd=!0)),r=i}gu!==0&&gu!==5||_d(e,!1),hd!==0&&(hd=0)}function bd(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&&Zd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function If(e,t,n){var r=Ff;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Af.has(i)||(Af.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Yd(t,`link`,e),xt(t),r.head.appendChild(t)))}}function Lf(e){Mf.D(e),If(`dns-prefetch`,e,null)}function Rf(e,t){Mf.C(e,t),If(`preconnect`,e,t)}function zf(e,t,n){Mf.L(e,t,n);var r=Ff;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=Gf(e);break;case`script`:a=Yf(e)}kf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),kf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Kf(a))||t===`script`&&r.querySelector(Xf(a))||(t=r.createElement(`link`),Yd(t,`link`,e),xt(t),r.head.appendChild(t)))}}function Bf(e,t){Mf.m(e,t);var n=Ff;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Yf(e)}if(!kf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),kf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Xf(a)))return}r=n.createElement(`link`),Yd(r,`link`,e),xt(r),n.head.appendChild(r)}}}function Vf(e,t,n){Mf.S(e,t,n);var r=Ff;if(r&&e){var i=bt(r).hoistableStyles,a=Gf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Kf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=kf.get(a))&&$f(e,n);var c=o=r.createElement(`link`);xt(c),Yd(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,Qf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Hf(e,t){Mf.X(e,t);var n=Ff;if(n&&e){var r=bt(n).hoistableScripts,i=Yf(e),a=r.get(i);a||(a=n.querySelector(Xf(i)),a||(e=p({src:e,async:!0},t),(t=kf.get(i))&&ep(e,t),a=n.createElement(`script`),xt(a),Yd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Uf(e,t){Mf.M(e,t);var n=Ff;if(n&&e){var r=bt(n).hoistableScripts,i=Yf(e),a=r.get(i);a||(a=n.querySelector(Xf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=kf.get(i))&&ep(e,t),a=n.createElement(`script`),xt(a),Yd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Wf(e,t,n,r){var i=(i=M.current)?jf(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=Gf(n.href),n=bt(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=Gf(n.href);var o=bt(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(Kf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),kf.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},kf.set(e,n),o||Jf(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=Yf(n),n=bt(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 Gf(e){return`href="`+Bt(e)+`"`}function Kf(e){return`link[rel="stylesheet"][`+e+`]`}function qf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Jf(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}),Yd(t,`link`,n),xt(t),e.head.appendChild(t))}function Yf(e){return`[src="`+Bt(e)+`"]`}function Xf(e){return`script[async]`+e}function Zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,xt(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`),xt(r),Yd(r,`style`,i),Qf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Gf(n.href);var o=e.querySelector(Kf(i));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;r=qf(n),(i=kf.get(i))&&$f(r,i),o=(e.ownerDocument||e).createElement(`link`),xt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Yd(o,`link`,r),t.state.loading|=4,Qf(o,n.precedence,e),t.instance=o;case`script`:return o=Yf(n.src),(i=e.querySelector(Xf(o)))?(t.instance=i,xt(i),i):(r=n,(i=kf.get(o))&&(r=p({},n),ep(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),xt(i),Yd(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,Qf(r,n.precedence,e));return t.instance}function Qf(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 ip(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 ap(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function op(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=Gf(r.href),a=t.querySelector(Kf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=lp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,xt(a);return}a=t.ownerDocument||t,r=qf(r),(i=kf.get(i))&&$f(r,i),a=a.createElement(`link`),xt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Yd(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=lp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sp=0;function cp(e,t){return e.stylesheets&&e.count===0&&dp(e,e.stylesheets),0sp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var up=null;function dp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,up=new Map,t.forEach(fp,e),up=null,lp.call(e))}function fp(e,t){if(!(t.state.loading&4)){var n=up.get(e);if(n)var r=n.get(null);else{n=new Map,up.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=ea()}))(),1),na=i(),ra=(0,N.createContext)(void 0);function ia(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function aa(e){let t=(0,na.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=()=>ia(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,N.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,N.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,P.jsx)(ra.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function oa(){let e=(0,N.useContext)(ra);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function sa(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var ca={};function la(e,t,n,r,i){if(!n&&!r&&!i&&!e)return da(t);let a=da(e);return t&&(a=fa(a,t)),n&&(a=fa(a,n)),r&&(a=fa(a,r)),i&&(a=fa(a,i)),a}function ua(e){if(e.length===0)return ca;if(e.length===1)return da(e[0]);let t=da(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function ga(e){return typeof e==`function`}function _a(e,t){return ga(e)?e(t):e??ca}function va(e,t){return t?e?(...n)=>{let r=n[0];if(Sa(r)){let i=r;ba(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:ya(t):e}function ya(e){return e&&((...t)=>{let n=t[0];return Sa(n)&&ba(n),e(...t)})}function ba(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function xa(e,t){return t?e?t+` `+e:t:e}function Sa(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Ca(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 wa=Ca(`https://base-ui.com/production-error`,`Base UI`),Ta={};function Ea(e,t){let n=N.useRef(Ta);return n.current===Ta&&(n.current=e(t)),n}function Da(e,t,n,r){let i=Ea(ka).current;return Aa(i,e,t,n,r)&&Ma(i,[e,t,n,r]),i.callback}function Oa(e){let t=Ea(ka).current;return ja(t,e)&&Ma(t,e),t.callback}function ka(){return{callback:null,cleanup:null,refs:[]}}function Aa(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ja(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Ma(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 Fa(e){if(!N.isValidElement(e))return null;let t=e,n=t.props;return(Pa(19)?n?.ref:t.ref)??null}function Ia(){}var La=Object.freeze([]),Ra=Object.freeze({});function za(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 Ba(e,t){return typeof e==`function`?e(t):e}function Va(e,t){return typeof e==`function`?e(t):e}function Ha(e,t,n={}){let r=t.render,i=Ua(t,n);return n.enabled===!1?null:Ka(e,r,i,n.state??Ra)}function Ua(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Ra,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Ba(n,a):void 0,d=l?Va(r,a):void 0,f=l?za(a,c):Ra,p=l&&s?Wa(s):void 0,m=l?sa(f,p)??{}:Ra;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=Oa([m.ref,Fa(i),...o]):m.ref=Da(m.ref,Fa(i),o):Da(null,null)),l?(u!==void 0&&(m.className=xa(m.className,u)),d!==void 0&&(m.style=sa(m.style,d)),m):Ra}function Wa(e){return Array.isArray(e)?ua(e):la(void 0,e)}var Ga=Symbol.for(`react.lazy`);function Ka(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=la(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===Ga&&(i=N.Children.toArray(t)[0]),N.cloneElement(i,e)}if(e&&typeof e==`string`)return qa(e,n);throw Error(wa(8))}function qa(e,t){return e===`button`?(0,N.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,N.createElement)(`img`,{alt:``,...t,key:t.key}):N.createElement(e,t)}function Ja(e){return Ha(e.defaultTagName??`div`,e,e)}function Ya(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,Qa=Xa,$a=(e,t)=>n=>{if(t?.variants==null)return Qa(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=Za(t)||Za(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 Qa(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)},eo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),to=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),no=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ro=e=>{let t=no(e);return t.charAt(0).toUpperCase()+t.slice(1)},io={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`},ao=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},oo=(0,N.createContext)({}),so=()=>(0,N.useContext)(oo),co=(0,N.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=``}=so()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,N.createElement)(`svg`,{ref:c,...io,width:t??l??io.width,height:t??l??io.height,stroke:e??f,strokeWidth:m,className:eo(`lucide`,p,i),...!a&&!ao(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,N.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),lo=(e,t)=>{let n=(0,N.forwardRef)(({className:n,...r},i)=>(0,N.createElement)(co,{ref:i,iconNode:t,className:eo(`lucide-${to(ro(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ro(e),n},uo=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Eo=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`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=lo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function No(){return typeof window<`u`}function Po(e){return Lo(e)?(e.nodeName||``).toLowerCase():`#document`}function Fo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Io(e){return((Lo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Lo(e){return No()?e instanceof Node||e instanceof Fo(e).Node:!1}function Ro(e){return No()?e instanceof Element||e instanceof Fo(e).Element:!1}function zo(e){return No()?e instanceof HTMLElement||e instanceof Fo(e).HTMLElement:!1}function Bo(e){return!No()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Fo(e).ShadowRoot}function Vo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Qo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ho(e){return/^(table|td|th)$/.test(Po(e))}function Uo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Wo=/transform|translate|scale|rotate|perspective|filter/,Go=/paint|layout|strict|content/,Ko=e=>!!e&&e!==`none`,qo;function Jo(e){let t=Ro(e)?Qo(e):e;return Ko(t.transform)||Ko(t.translate)||Ko(t.scale)||Ko(t.rotate)||Ko(t.perspective)||!Xo()&&(Ko(t.backdropFilter)||Ko(t.filter))||Wo.test(t.willChange||``)||Go.test(t.contain||``)}function Yo(e){let t=es(e);for(;zo(t)&&!Zo(t);){if(Jo(t))return t;if(Uo(t))return null;t=es(t)}return null}function Xo(){return qo??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),qo}function Zo(e){return/^(html|body|#document)$/.test(Po(e))}function Qo(e){return Fo(e).getComputedStyle(e)}function $o(e){return Ro(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if(Po(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Bo(e)&&e.host||Io(e);return Bo(t)?t.host:t}function ts(e){let t=es(e);return Zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:zo(t)&&Vo(t)?t:ts(t)}function ns(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ts(e),i=r===e.ownerDocument?.body,a=Fo(r);if(i){let e=rs(a);return t.concat(a,a.visualViewport||[],Vo(r)?r:[],e&&n?ns(e):[])}else return t.concat(r,ns(r,[],n))}function rs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var is=N[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],as=is&&is!==N.useLayoutEffect?is:e=>e();function os(e){let t=Ea(ss).current;return t.next=e,as(t.effect),t.trampoline}function ss(){let e={next:void 0,callback:cs,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function cs(){}var ls={...N},us=typeof document<`u`?N.useLayoutEffect:()=>{},ds=N.createContext(void 0);function fs(e=!1){let t=N.useContext(ds);if(t===void 0&&!e)throw Error(wa(16));return t}function ps(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:N.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 ms(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=N.useRef(null),s=fs(!0),c=a??s!==void 0,{props:l}=ps({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=N.useCallback(()=>{let e=o.current;hs(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return us(u,[u]),{getButtonProps:N.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return la({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(ba(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=hs(a),l=!i&&gs(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(ba(e),a?.(e),e.target===e.currentTarget&&i&&c&&hs(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:os(e=>{o.current=e,u()})}}function hs(e){return zo(e)&&e.tagName===`BUTTON`}function gs(e){return!!(e?.tagName===`A`&&e?.href)}var _s=N.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}=ms({disabled:i,focusableWhenDisabled:a,native:o});return Ha(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),vs=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),bs=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),xs=`-`,Ss=[],Cs=`arbitrary..`,ws=e=>{let t=Ds(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Es(e);let n=e.split(xs);return Ts(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?vs(i,t):t:i||Ss}return n[e]||Ss}}},Ts=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ts(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(xs):e.slice(t).join(xs),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?Cs+r:void 0})(),Ds=e=>{let{theme:t,classGroups:n}=e;return Os(n,t)},Os=(e,t)=>{let n=bs();for(let r in e){let i=e[r];ks(i,n,r,t)}return n},ks=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){js(e,t,n);return}if(typeof e==`function`){Ms(e,t,n,r);return}Ns(e,t,n,r)},js=(e,t,n)=>{let r=e===``?t:Ps(t,e);r.classGroupId=n},Ms=(e,t,n,r)=>{if(Fs(e)){ks(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ys(n,e))},Ns=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(xs),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Is=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)}}},Ls=`!`,Rs=`:`,zs=[],Bs=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Vs=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 Bs(t,l,c,u)};if(t){let e=t+Rs,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Bs(zs,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Hs=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}},Us=e=>({cache:Is(e.cacheSize),parseClassName:Vs(e),sortModifiers:Hs(e),...ws(e)}),Ws=/\s+/,Gs=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Ws),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(`:`),_=d?g+Ls:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e0?` `+c:c)}return c},Ks=(...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=Us(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=Gs(e,n);return i(e,a),a};return a=o,(...e)=>a(Ks(...e))},Ys=[],Xs=e=>{let t=t=>t[e]||Ys;return t.isThemeGetter=!0,t},Zs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$s=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ec=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tc=/\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$/,nc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ic=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ac=e=>$s.test(e),oc=e=>!!e&&!Number.isNaN(Number(e)),sc=e=>!!e&&Number.isInteger(Number(e)),cc=e=>e.endsWith(`%`)&&oc(e.slice(0,-1)),lc=e=>ec.test(e),uc=()=>!0,dc=e=>tc.test(e)&&!nc.test(e),fc=()=>!1,pc=e=>rc.test(e),mc=e=>ic.test(e),hc=e=>!L(e)&&!R(e),gc=e=>jc(e,Fc,fc),L=e=>Zs.test(e),_c=e=>jc(e,Ic,dc),vc=e=>jc(e,Lc,oc),yc=e=>jc(e,zc,uc),bc=e=>jc(e,Rc,fc),xc=e=>jc(e,Nc,fc),Sc=e=>jc(e,Pc,mc),Cc=e=>jc(e,Bc,pc),R=e=>Qs.test(e),wc=e=>Mc(e,Ic),Tc=e=>Mc(e,Rc),Ec=e=>Mc(e,Nc),Dc=e=>Mc(e,Fc),Oc=e=>Mc(e,Pc),kc=e=>Mc(e,Bc,!0),Ac=e=>Mc(e,zc,!0),jc=(e,t,n)=>{let r=Zs.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Mc=(e,t,n=!1)=>{let r=Qs.exec(e);return r?r[1]?t(r[1]):n:!1},Nc=e=>e===`position`||e===`percentage`,Pc=e=>e===`image`||e===`url`,Fc=e=>e===`length`||e===`size`||e===`bg-size`,Ic=e=>e===`length`,Lc=e=>e===`number`,Rc=e=>e===`family-name`,zc=e=>e===`number`||e===`weight`,Bc=e=>e===`shadow`,Vc=Js(()=>{let e=Xs(`color`),t=Xs(`font`),n=Xs(`text`),r=Xs(`font-weight`),i=Xs(`tracking`),a=Xs(`leading`),o=Xs(`breakpoint`),s=Xs(`container`),c=Xs(`spacing`),l=Xs(`radius`),u=Xs(`shadow`),d=Xs(`inset-shadow`),f=Xs(`text-shadow`),p=Xs(`drop-shadow`),m=Xs(`blur`),h=Xs(`perspective`),g=Xs(`aspect`),_=Xs(`ease`),v=Xs(`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(),R,L],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[R,L,c],T=()=>[ac,`full`,`auto`,...w()],E=()=>[sc,`none`,`subgrid`,R,L],ee=()=>[`auto`,{span:[`full`,sc,R,L]},sc,R,L],D=()=>[sc,`auto`,R,L],O=()=>[`auto`,`min`,`max`,`fr`,R,L],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()],ie=()=>[ac,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[ac,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[ac,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,R,L],oe=()=>[...b(),Ec,xc,{position:[R,L]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,Dc,gc,{size:[R,L]}],le=()=>[cc,wc,_c],j=()=>[``,`none`,`full`,l,R,L],ue=()=>[``,oc,wc,_c],de=()=>[`solid`,`dashed`,`dotted`,`double`],M=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],fe=()=>[oc,cc,Ec,xc],pe=()=>[``,`none`,m,R,L],me=()=>[`none`,oc,R,L],he=()=>[`none`,oc,R,L],ge=()=>[oc,R,L],_e=()=>[ac,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[lc],breakpoint:[lc],color:[uc],container:[lc],"drop-shadow":[lc],ease:[`in`,`out`,`in-out`],font:[hc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[lc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[lc],shadow:[lc],spacing:[`px`,oc],text:[lc],"text-shadow":[lc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ac,L,R,g]}],container:[`container`],columns:[{columns:[oc,L,R,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:[sc,`auto`,R,L]}],basis:[{basis:[ac,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[oc,ac,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,oc,R,L]}],shrink:[{shrink:[``,oc,R,L]}],order:[{order:[sc,`first`,`last`,`none`,R,L]}],"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:ie()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,wc,_c]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ac,yc]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,cc,L]}],"font-family":[{font:[Tc,bc,t]}],"font-features":[{"font-features":[L]}],"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,R,L]}],"line-clamp":[{"line-clamp":[oc,`none`,R,vc]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,R,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,R,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...de(),`wavy`]}],"text-decoration-thickness":[{decoration:[oc,`from-font`,`auto`,R,_c]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[oc,`auto`,R,L]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,R,L]}],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`,R,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},sc,R,L],radial:[``,R,L],conic:[sc,R,L]},Oc,Sc]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...de(),`hidden`,`none`]}],"divide-style":[{divide:[...de(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...de(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[oc,R,L]}],"outline-w":[{outline:[``,oc,wc,_c]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,kc,Cc]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,kc,Cc]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ue()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[oc,_c]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,kc,Cc]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[oc,R,L]}],"mix-blend":[{"mix-blend":[...M(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":M()}],"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":[oc]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[R,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":[oc]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,R,L]}],filter:[{filter:[``,`none`,R,L]}],blur:[{blur:pe()}],brightness:[{brightness:[oc,R,L]}],contrast:[{contrast:[oc,R,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,kc,Cc]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,oc,R,L]}],"hue-rotate":[{"hue-rotate":[oc,R,L]}],invert:[{invert:[``,oc,R,L]}],saturate:[{saturate:[oc,R,L]}],sepia:[{sepia:[``,oc,R,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,R,L]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[oc,R,L]}],"backdrop-contrast":[{"backdrop-contrast":[oc,R,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,oc,R,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[oc,R,L]}],"backdrop-invert":[{"backdrop-invert":[``,oc,R,L]}],"backdrop-opacity":[{"backdrop-opacity":[oc,R,L]}],"backdrop-saturate":[{"backdrop-saturate":[oc,R,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,oc,R,L]}],"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`,R,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[oc,`initial`,R,L]}],ease:[{ease:[`linear`,`initial`,_,R,L]}],delay:[{delay:[oc,R,L]}],animate:[{animate:[`none`,v,R,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,R,L]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[R,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"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`,R,L]}],"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":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`,R,L]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[oc,wc,_c,vc]}],stroke:[{stroke:[`none`,...A()]}],"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 Hc(...e){return Vc(Xa(e))}var Uc=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Wc(e){return e?Uc.format(new Date(e)):`Unknown`}var Gc=[`B`,`KB`,`MB`,`GB`,`TB`];function Kc(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${Gc[t]}`}function qc(e){return e?.find(e=>e.Key===`Name`)?.Value}var Jc=/\/$/;function Yc(e){return e.replace(Jc,``)}function Xc(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function Zc(e,t){return e.startsWith(t)?e:`${t}${e}`}function Qc(e,t){return e.startsWith(t)?e.slice(t.length):e}var $c=$a(`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 el(e){let t=(0,na.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=Hc($c({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,P.jsx)(_s,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var tl=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}({}),nl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},rl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},il={disabled:!1,...rl},al={valid(e){return e===null?null:e?{[tl.valid]:``}:{[tl.invalid]:``}}},ol=N.createContext({invalid:void 0,name:void 0,validityData:{state:nl,errors:[],error:``,value:``,initialValue:null},setValidityData:Ia,disabled:void 0,touched:rl.touched,setTouched:Ia,dirty:rl.dirty,setDirty:Ia,filled:rl.filled,setFilled:Ia,focused:rl.focused,setFocused:Ia,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:il,markedDirtyRef:{current:!1},registerFieldControl:Ia,validation:{getValidationProps:(e=Ra)=>e,getInputValidationProps:(e=Ra)=>e,inputRef:{current:null},commit:async()=>{}}});function sl(e=!0){let t=N.useContext(ol);if(t.setValidityData===Ia&&!e)throw Error(wa(28));return t}var cl=0;function ll(e,t=`mui`){let[n,r]=N.useState(e),i=e||n;return N.useEffect(()=>{n??(cl+=1,r(`${t}-${cl}`))},[n,t]),i}var ul=ls.useId;function dl(e,t){if(ul!==void 0){let n=ul();return e??(t?`${t}-${n}`:n)}return ll(e,t)}function fl(e){return dl(e,`base-ui`)}var pl=N.createContext({controlId:void 0,registerControlId:Ia,labelId:void 0,setLabelId:Ia,messageIds:[],setMessageIds:Ia,getDescriptionProps:e=>e});function ml(){return N.useContext(pl)}function hl(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=ml(),o=fl(t),s=n?i:void 0,c=Ea(()=>Symbol(`labelable-control`)),l=N.useRef(!1),u=N.useRef(t!=null),d=os(()=>{!l.current||a===Ia||(l.current=!1,a(c.current,void 0))});return us(()=>{if(a===Ia)return;let e;if(n){let n=r?.current;e=Ro(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]),N.useEffect(()=>d,[d]),i??o}function gl(e){return e?.ownerDocument||document}var _l=typeof navigator<`u`,vl=Dl(),yl=kl(),bl=Ol(),xl=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),Sl=vl.platform===`MacIntel`&&vl.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(vl.platform);_l&&/firefox/i.test(bl);var Cl=_l&&/apple/i.test(navigator.vendor);_l&&/Edg/i.test(bl);var wl=_l&&/android/i.test(yl)||/android/i.test(bl),Tl=_l&&yl.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,El=bl.includes(`jsdom/`);function Dl(){if(!_l)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 Ol(){if(!_l)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function kl(){if(!_l)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Al=`data-base-ui-focusable`,jl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Ml=`ArrowLeft`,Nl=`ArrowRight`,Pl=`ArrowUp`,Fl=`ArrowDown`;function Il(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ll(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Bo(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Rl(e){return`composedPath`in e?e.composedPath()[0]:e.target}function zl(e,t){if(!Ro(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(Ll(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Bl(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 Vl(e){return e.matches(`html,body`)}function Hl(e){return zo(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ul(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${jl}`)!=null}function Wl(e){return e?e.getAttribute(`role`)===`combobox`&&Hl(e):!1}function Gl(e){if(!e||El)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Kl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function ql(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...ql(e,t.id,n)])}function Jl(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 Yl(e){e.preventDefault(),e.stopPropagation()}function Xl(e){return`nativeEvent`in e}function Zl(e){return e.pointerType===``&&e.isTrusted?!0:wl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Ql(e){return El?!1:!wl&&e.width===0&&e.height===0||wl&&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 $l(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function eu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var tu=[`top`,`right`,`bottom`,`left`],nu=Math.min,ru=Math.max,iu=Math.round,au=Math.floor,ou=e=>({x:e,y:e}),su={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function cu(e,t,n){return ru(e,nu(t,n))}function lu(e,t){return typeof e==`function`?e(t):e}function uu(e){return e.split(`-`)[0]}function du(e){return e.split(`-`)[1]}function fu(e){return e===`x`?`y`:`x`}function pu(e){return e===`y`?`height`:`width`}function mu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function hu(e){return fu(mu(e))}function gu(e,t,n){n===void 0&&(n=!1);let r=du(e),i=hu(e),a=pu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Tu(o)),[o,Tu(o)]}function _u(e){let t=Tu(e);return[vu(e),t,vu(t)]}function vu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var yu=[`left`,`right`],bu=[`right`,`left`],xu=[`top`,`bottom`],Su=[`bottom`,`top`];function Cu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?bu:yu:t?yu:bu;case`left`:case`right`:return t?xu:Su;default:return[]}}function wu(e,t,n,r){let i=du(e),a=Cu(uu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(vu)))),a}function Tu(e){let t=uu(e);return su[t]+e.slice(t.length)}function Eu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Du(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Eu(e)}function Ou(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 ku(e,t,n){return Math.floor(e/t)!==n}function Au(e,t){return t<0||t>=e.length}function ju(e,t){return Nu(e.current,{disabledIndices:t})}function Mu(e,t){return Nu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Nu(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&&Ru(e,a,r));return a}function Pu(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(!Ru(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=au(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(!Ru(e,r,s))return r}};d&&Yl(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=Nu(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=Nu(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Au(e,f)&&(f=u)}if(n===`both`){let n=au(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Yl(t),u%o===o-1?r&&(f=Nu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Nu(e,{startingIndex:u,disabledIndices:s}),r&&ku(f,o,n)&&(f=Nu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),ku(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Yl(t),u%o===0?r&&(f=Nu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Nu(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&ku(f,o,n)&&(f=Nu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),ku(f,o,n)&&(f=u));let c=au(l/o)===n;Au(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Nu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Fu(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 Iu(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 Lu(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Ru(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Bu(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function zu(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Bu(e,t=e?Qo(e):null){return!e||!e.isConnected||!t||zu(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Vu=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Hu(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Bo(n)?n.host:null}function Uu(e){for(let t of Array.from(e.children))if(Po(t)===`summary`)return t;return null}function Wu(e,t){let n=Uu(t);return!!n&&(e===n||Ll(n,e))}function Gu(e){let t=e?Po(e):``;return e!=null&&e.matches(Vu)&&(t!==`summary`||e.parentElement!=null&&Po(e.parentElement)===`details`&&Uu(e.parentElement)===e)&&(t!==`details`||Uu(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Ku(e){if(!Gu(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Hu(t)){let n=t!==e,r=Po(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Po(t)===`details`&&!t.open&&!Wu(e,t)||t.hasAttribute(`hidden`)||!r&&!qu(t,n))return!1}return!0}function qu(e,t){let n=Qo(e);return t?n.display!==`none`:Bu(e,n)}function Ju(e){let t=e.tabIndex;if(t<0){let t=Po(e);if(t===`details`||t===`audio`||t===`video`||zo(e)&&e.isContentEditable)return 0}return t}function Yu(e){if(Po(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Xu(e,t){let n=Yu(e);if(!n)return!0;let r=t.find(e=>{let t=Yu(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Yu(e);return t?.name===n.name&&t.form===n.form})===n}function Zu(e){if(zo(e)&&Po(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return zo(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Qu(e,t){Zu(e).forEach(e=>{Gu(e)&&t.push(e),Qu(e,t)})}function $u(e,t,n){Zu(e).forEach(e=>{zo(e)&&e.matches(t)&&n.push(e),$u(e,t,n)})}function ed(e){return Ku(e)&&Ju(e)>=0}function td(e){let t=[];return Qu(e,t),t.filter(Ku)}function nd(e){let t=td(e);return t.filter(e=>Ju(e)>=0&&Xu(e,t))}function rd(e,t){let n=nd(e),r=n.length;if(r===0)return;let i=Il(gl(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function id(e){return rd(gl(e).body,1)||e}function ad(e){return rd(gl(e).body,-1)||e}function od(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ll(n,r)}function sd(e){nd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function cd(e){let t=[];$u(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 ld=[];function ud(e){N.useEffect(e,ld)}var dd=0,fd=class e{static create(){return new e}currentId=dd;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=dd,t()},e)}isStarted(){return this.currentId!==dd}clear=()=>{this.currentId!==dd&&(clearTimeout(this.currentId),this.currentId=dd)};disposeEffect=()=>this.clear};function pd(){let e=Ea(fd.create).current;return ud(e.disposeEffect),e}var md=null;globalThis.requestAnimationFrame;var hd=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)}},gd=class e{static create(){return new e}static request(e){return hd.request(e)}static cancel(e){return hd.cancel(e)}currentId=md;request(e){this.cancel(),this.currentId=hd.request(()=>{this.currentId=md,e()})}cancel=()=>{this.currentId!==md&&(hd.cancel(this.currentId),this.currentId=md)};disposeEffect=()=>this.cancel};function _d(){let e=Ea(gd.create).current;return ud(e.disposeEffect),e}function vd(e){return e==null?e:`current`in e?e.current:e}var yd=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),bd={[yd.startingStyle]:``},xd={[yd.endingStyle]:``},Sd={transitionStatus(e){return e===`starting`?bd:e===`ending`?xd:null}};function Cd(e,t=!1,n=!0){let r=_d();return os((i,a=null)=>{r.cancel();let o=vd(e);if(o==null)return;let s=o,c=()=>{li.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=yd.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 wd(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=os(i),o=Cd(r,n,!1);N.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Td(e,t=!1,n=!1){let[r,i]=N.useState(e&&t?`idle`:void 0),[a,o]=N.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),us(()=>{if(!e&&a&&r!==`ending`&&n){let e=gd.request(()=>{i(`ending`)});return()=>{gd.cancel(e)}}},[e,a,r,n]),us(()=>{if(!e||t)return;let n=gd.request(()=>{i(void 0)});return()=>{gd.cancel(n)}},[t,e]),us(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=gd.request(()=>{i(`idle`)});return()=>{gd.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Ed({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=N.useRef(e!==void 0),[a,o]=N.useState(t);return[i?e:a,N.useCallback(e=>{i||o(e)},[])]}function Dd(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=sl(),s=N.useRef(null);s.current||=Symbol(),us(()=>{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 Od=`none`,kd=`trigger-press`,Ad=`trigger-hover`,jd=`trigger-focus`,Md=`outside-press`,Nd=`item-press`,Pd=`close-press`,Fd=`focus-out`,Id=`escape-key`,Ld=`list-navigation`,Rd=`cancel-open`,zd=`disabled`,Bd=`imperative-action`,Vd=`window-resize`;function Hd(e,t,n,r){let i=!1,a=!1,o=r??Ra;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 Ud=N.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}=sl(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=ml(),ee=hl({id:i});us(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let D=N.useRef(null);us(()=>{u&&D.current===Il(gl(D.current))&&y(!0)},[u,y]);let[O]=Ed({controlled:o,default:l,name:`FieldControl`,state:`value`}),te=o!==void 0,ne=te?O:void 0,re=os(()=>S.inputRef.current?.value);return Dd(S.inputRef,{id:ee,value:ne,getValue:re}),Ha(`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,Hd(Od,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:al})}),Wd=N.forwardRef(function(e,t){return(0,P.jsx)(Ud,{ref:t,...e})});function Gd(e){let t=(0,na.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=Hc(`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,P.jsx)(Wd,{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 Kd=N.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Ha(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function qd(e){let t=(0,na.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=Hc(`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,P.jsx)(Kd,{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 Jd=N.createContext(void 0);function Yd(e){let t=N.useContext(Jd);if(e===!1&&t===void 0)throw Error(wa(27));return t}var Xd=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=yd.startingStyle]=`startingStyle`,e[e.endingStyle=yd.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Zd=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Qd={[Zd.popupOpen]:``},$d={[Zd.popupOpen]:``,[Zd.pressed]:``},ef={[Xd.open]:``},tf={[Xd.closed]:``},nf={[Xd.anchorHidden]:``},rf={open(e){return e?Qd:null}},af={open(e){return e?$d:null}},of={open(e){return e?ef:tf},anchorHidden(e){return e?nf:null}},sf={...of,...Sd},cf=N.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=Yd(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Ha(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:sf,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),lf=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{store:c}=Yd(),l=c.useState(`open`);function u(e){l&&c.setOpen(!1,Hd(Pd,e.nativeEvent))}let{getButtonProps:d,buttonRef:f}=ms({disabled:i,native:a});return Ha(`button`,e,{state:{disabled:i},ref:[t,f],props:[{onClick:u},s,d]})}),uf=N.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Yd(),c=fl(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ha(`p`,e,{ref:t,props:[{id:c},o]})});function df(e,t){return t!=null&&!$l(t)?0:typeof e==`function`?e():e}function ff(e,t,n){let r=df(e,n);return typeof r==`number`?r:r?.[t]}function pf(e){return typeof e==`function`?e():e}function mf(e,t){return t||e===`click`||e===`mousedown`}var hf=N.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new fd,currentIdRef:{current:null},currentContextRef:{current:null}});function gf(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=N.useRef(n),a=N.useRef(n),o=N.useRef(null),s=N.useRef(null),c=pd();return(0,P.jsx)(hf.Provider,{value:N.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function _f(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}=N.useContext(hf),[f,p]=N.useState(!1);return us(()=>{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]),us(()=>{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:ff(c.current,`close`)},t!==null&&t!==r?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Hd(Od))):(p(!1),e?.setIsInstantPhase(!1))},[i,r,n,a,o,s,c,l,d]),us(()=>()=>{l.current=null},[l]),N.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function vf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function yf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Sf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Cf={...Sf,position:`fixed`,top:0,left:0},wf={...Sf,position:`absolute`},Tf=N.forwardRef(function(e,t){let[n,r]=N.useState();us(()=>{Cl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,P.jsx)(`span`,{...e,ref:t,style:Cf,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Ef(e){return`data-base-ui-${e}`}var Df=0;function Of(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Df);let a=()=>e?.focus({preventScroll:n});if(i)return a(),Ia;let o=requestAnimationFrame(a);return Df=o,()=>{Df===o&&(cancelAnimationFrame(o),Df=0)}}var kf={inert:new WeakMap,"aria-hidden":new WeakMap},Af=`data-base-ui-inert`,jf={inert:new WeakSet,"aria-hidden":new WeakSet},Mf=new WeakMap,Nf=0;function Pf(e){return jf[e]}function Ff(e){return e?Bo(e)?e.host:Ff(e.parentNode):null}var If=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Ff(t);return e.contains(n)?n:null}).filter(e=>e!=null),Lf=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Rf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Po(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function zf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=If(t,e),u=i?If(t,a):[],d=new Set(u),f=i?Rf(t,Lf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=kf[o],n=Pf(o);c=n,s=e;let r=If(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Rf(t,Lf(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=(Mf.get(e)||0)+1;Mf.set(e,t),m.push(e),t===1&&e.setAttribute(Af,``)}),Nf+=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=(Mf.get(e)||0)-1;Mf.set(e,t),t||e.removeAttribute(Af)}),--Nf,Nf||(kf.inert=new WeakMap,kf[`aria-hidden`]=new WeakMap,jf.inert=new WeakSet,jf[`aria-hidden`]=new WeakSet,Mf=new WeakMap)}}function Bf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=gl(e[0]).body;return zf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Vf={style:{transition:`none`}},Hf={fallbackAxisSide:`none`},Uf={fallbackAxisSide:`end`},Wf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Gf=N.createContext(null),Kf=()=>N.useContext(Gf),qf=Ef(`portal`);function Jf(e={}){let{ref:t,container:n,componentProps:r=Ra,elementProps:i}=e,a=dl(),o=Kf()?.portalNode,[s,c]=N.useState(null),[l,u]=N.useState(null),d=os(e=>{e!==null&&u(e)}),f=N.useRef(null);us(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Lo(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=Ha(`div`,r,{ref:[t,d],props:[{id:a,[qf]:``},i]});return{portalNode:l,portalSubtree:s&&p?li.createPortal(p,s):null}}var Yf=N.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=Jf({container:r,ref:t,componentProps:e,elementProps:c}),d=N.useRef(null),f=N.useRef(null),p=N.useRef(null),m=N.useRef(null),[h,g]=N.useState(null),_=N.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;N.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&od(e)&&(e.type===`focusin`?_.current&&=(cd(l),!1):(sd(l),_.current=!0))}return yf(vf(l,`focusin`,e,!0),vf(l,`focusout`,e,!0))},[l,v]),N.useEffect(()=>{!l||y!==!1||(cd(l),_.current=!1)},[y,l]);let x=N.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,P.jsxs)(N.Fragment,{children:[u,(0,P.jsxs)(Gf.Provider,{value:x,children:[b&&l&&(0,P.jsx)(Tf,{"data-type":`outside`,ref:d,onFocus:e=>{od(e,l)?p.current?.focus():ad(h?h.domReference:null)?.focus()}}),b&&l&&(0,P.jsx)(`span`,{"aria-owns":l.id,style:Wf}),l&&li.createPortal(n,l),b&&l&&(0,P.jsx)(Tf,{"data-type":`outside`,ref:f,onFocus:e=>{od(e,l)?m.current?.focus():(id(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Hd(`focus-out`,e.nativeEvent)))}})]})]})});function Xf(){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 Zf=N.createContext(null),Qf=N.createContext(null),$f=()=>N.useContext(Zf)?.id||null,ep=e=>{let t=N.useContext(Qf);return e??t};function tp(e,t){let n=Fo(Rl(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 np=20,rp=[];function ip(){rp=rp.filter(e=>e.deref()?.isConnected)}function ap(e){ip(),e&&Po(e)!==`body`&&(rp.push(new WeakRef(e)),rp.length>np&&(rp=rp.slice(-np)))}function op(){return ip(),rp[rp.length-1]?.deref()}function sp(e){return e?ed(e)?e:nd(e)[0]||e:null}function cp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=td(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return ed(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 lp(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=os(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Wl(_)&&S,w=N.useRef([`content`]),T=bf(i),E=bf(a),ee=bf(l),D=ep(p),O=Kf(),te=N.useRef(!1),ne=N.useRef(!1),re=N.useRef(!1),ie=N.useRef(null),k=N.useRef(``),ae=N.useRef(``),A=N.useRef(null),oe=N.useRef(null),se=Da(A,f,O?.beforeInsideRef),ce=Da(oe,O?.afterInsideRef),le=pd(),j=pd(),ue=_d(),de=O!=null,M=Kl(v),fe=os((e=M)=>e?nd(e):[]),pe=os(()=>m?.().filter(e=>e!=null)??[]);N.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&Ll(M,Il(gl(M)))&&fe().length===0&&!C&&Yl(e)}return vf(gl(M),`keydown`,e)},[r,_,M,s,w,C,fe]),N.useEffect(()=>{if(r||!g)return;let e=gl(M);function t(){re.current=!1}function n(e){let t=Rl(e),n=pe();re.current=!(Ll(v,t)||Ll(_,t)||Ll(O?.portalNode,t)||n.some(e=>e===t||Ll(e,t))),ae.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(ne.current=!0)}function i(){ae.current=`keyboard`}return yf(vf(e,`pointerdown`,n,!0),vf(e,`pointerup`,t,!0),vf(e,`pointercancel`,t,!0),vf(e,`keydown`,i,!0))},[r,v,_,M,g,O,pe]),N.useEffect(()=>{if(r||!c)return;let e=gl(M);function t(){ne.current=!0,j.start(0,()=>{ne.current=!1})}function n(e){let t=Rl(e);ed(t)&&(ie.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Rl(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=pe(),f=n?.hasAttribute(Ef(`focus-guard`))&&[A.current,oe.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,vd(d),vd(u)].includes(n),p=!(Ll(_,n)||Ll(v,n)||Ll(n,v)||Ll(O?.portalNode,n)||l.some(e=>e===n||Ll(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>Ll(e,n))||f||D&&(ql(D.nodesRef.current,a).find(e=>Ll(e.context?.elements.floating,n)||Ll(e.context?.elements.domReference,n))||Jl(D.nodesRef.current,a).find(e=>[e.context?.elements.floating,Kl(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&M&&cp(M,w),o&&r!==_&&!Bu(i)&&Il(e)===e.body){if(zo(M)&&(M.focus(),o===`popup`)){ue.request(()=>{M.focus()});return}let e=fe(),t=ie.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||M;zo(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!ne.current&&(C||n!==op())&&(te.current=!0,h.setOpen(!1,Hd(Fd,t)))})}function a(){re.current||(b.current.insideReactTree=!0,le.start(0,()=>{b.current.insideReactTree=!1}))}let l=zo(_)?_:null;if(!(!v&&!l))return yf(l&&vf(l,`focusout`,i),l&&vf(l,`pointerdown`,t),v&&vf(v,`focusin`,n),v&&vf(v,`focusout`,i),v&&O&&vf(v,`focusout`,a,!0))},[r,_,v,M,s,D,O,h,c,o,fe,C,x,w,b,le,j,ue,u,d,pe]),N.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(O?.portalNode?.querySelectorAll(`[${Ef(`portal`)}]`)||[]),t=(D?Jl(D.nodesRef.current,x()):[]).find(e=>Wl(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Bf([...[v,...e,A.current,oe.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...pe()],t,vd(d),vd(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Bf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,O,C,D,x,u,d,pe]),us(()=>{if(!g||r||!zo(M))return;let e=Il(gl(M));queueMicrotask(()=>{let t=T.current,n=typeof t==`function`?t(ee.current||``):t;if(n===void 0||n===!1||Ll(M,e))return;let r=null,i=()=>(r??=fe(M),r[0]||M),a;a=n===!0||n===null?i():vd(n),a||=i(),Of(a,{preventScroll:a===M})})},[r,g,M,S,fe,T,ee]),us(()=>{if(r||!M)return;let e=gl(M);ap(Il(e));function t(e){if(e.open||(k.current=tp(e.nativeEvent,ae.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(te.current=!0),e.reason===`outside-press`)if(e.nested)te.current=!1;else if(Zl(e.nativeEvent)||Ql(e.nativeEvent))te.current=!1;else{let e=!1;gl(M).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(k.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||op();return e&&e.isConnected?e:null}let n=_||op();return vd(t)||n||null}return()=>{y.off(`openchange`,t);let r=Il(e),i=pe(),a=Ll(v,r)||i.some(e=>e===r||Ll(e,r))||D&&ql(D.nodesRef.current,x(),!1).some(e=>Ll(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=sp(s),n=typeof o!=`boolean`;o&&!te.current&&zo(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),te.current=!1})}},[r,v,M,E,b,y,D,_,x,pe]),us(()=>{if(!xl||g||!v)return;let e=Il(gl(v));!zo(e)||!Hl(e)||Ll(v,e)&&e.blur()},[g,v]),us(()=>{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,_]),us(()=>{if(!(r||!M))return cp(M,w),()=>{queueMicrotask(ip)}},[r,M,w]);let me=!r&&(s?!C:!0)&&(de||s);return(0,P.jsxs)(N.Fragment,{children:[me&&(0,P.jsx)(Tf,{"data-type":`inside`,ref:se,onFocus:e=>{if(s){let e=fe();Of(e[e.length-1])}else O?.portalNode&&(te.current=!1,od(e,O.portalNode)?id(_)?.focus():vd(d??O.beforeOutsideRef)?.focus())}}),n,me&&(0,P.jsx)(Tf,{"data-type":`inside`,ref:ce,onFocus:e=>{s?Of(fe()[0]):O?.portalNode&&(c&&(te.current=!0),od(e,O.portalNode)?ad(_)?.focus():vd(u??O.afterOutsideRef)?.focus())}})]})}function up(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 dp(e){return e!=null&&e.clientX!=null}function fp(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=N.useRef(!1),u=N.useRef(null),[d,f]=N.useState(),[p,m]=N.useState([]),h=os((e,t,r)=>{l.current||o.current.openEvent&&!dp(o.current.openEvent)||n.set(`positionReference`,up(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:d}))}),g=os(e=>{r?u.current||m([]):h(e.clientX,e.clientY,e.currentTarget)}),_=$l(d)?i:r,v=N.useCallback(()=>{if(!_||!s)return;let e=Fo(i);function t(e){Ll(i,Rl(e))?(u.current?.(),u.current=null):h(e.clientX,e.clientY)}if(!o.current.openEvent||dp(o.current.openEvent))return u.current=vf(e,`mousemove`,t),()=>{u.current?.(),u.current=null};n.set(`positionReference`,a)},[_,s,i,o,a,n,h]);N.useEffect(()=>v(),[v,p]),N.useEffect(()=>{s&&!i&&(l.current=!1)},[s,i]),N.useEffect(()=>{!s&&r&&(l.current=!0)},[s,r]);let y=N.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return N.useMemo(()=>s?{reference:y,trigger:y}:{},[s,y])}var pp={intentional:`onClick`,sloppy:`onPointerDown`};function mp(){return!1}function hp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function gp(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=mp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=ep(p),h=os(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,v=os(()=>l),y=N.useRef(!1),b=N.useRef(!1),x=N.useRef(!1),{escapeKey:S,outsidePress:C}=hp(f),w=N.useRef(null),T=pd(),E=pd(),ee=os(()=>{E.clear(),a.current.insideReactTree=!1}),D=N.useRef(!1),O=N.useRef(``),te=os(u),ne=os(e=>{if(!r||!o||!s||e.key!==`Escape`||D.current)return;let t=a.current.floatingContext?.nodeId,i=m?ql(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=Hd(Id,Xl(e)?e.nativeEvent:e);n.setOpen(!1,c),!S&&!c.isPropagationAllowed&&e.stopPropagation()}),re=os(()=>{a.current.insideReactTree=!0,E.start(0,ee)});N.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=C;let e=new fd,t=new fd;function c(){e.clear(),D.current=!0}function l(){e.start(Xo()?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&&ql(m.nodesRef.current,t).some(t=>Bl(e,t.context?.elements.floating));return Bl(e,n.select(`floatingElement`))||Bl(e,n.select(`domReferenceElement`))||r}function E(e){if(p(e)){ee();return}if(a.current.insideReactTree){ee();return}let r=Rl(e),i=`[${Ef(`inert`)}]`,o=Ro(r)?r.getRootNode():null,s=Array.from((Bo(o)?o:gl(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>Ll(e,r))))return;let l=Ro(r)?r:null;for(;l&&!Zo(l);){let e=es(l);if(Zo(e)||!Ro(e))break;l=e}if(s.length&&Ro(r)&&!Vl(r)&&!Ll(r,n.select(`floatingElement`))&&s.every(e=>!Ll(l,e)))return;if(zo(r)&&!(`touches`in e)){let t=Zo(r),n=Qo(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?ql(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,Hd(Md,e)),ee()}function te(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||Bl(e,n.select(`floatingElement`))||Bl(e,n.select(`domReferenceElement`))||E(e)}function re(e){if(f()!==`sloppy`||!n.select(`open`)||!o||Bl(e,n.select(`floatingElement`))||Bl(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 ie(e,t){let n=Rl(e);if(!n)return;let r=vf(n,e.type,()=>{t(e),r()})}function k(e){O.current=`touch`,ie(e,re)}function ae(e){T.clear(),e.type===`pointerdown`&&(O.current=e.pointerType),!(e.type===`mousedown`&&w.current&&!w.current.dismissOnMouseDown)&&ie(e,e=>{e.type===`pointerdown`?te(e):E(e)})}function A(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 oe(e){if(f()!==`sloppy`||!w.current||Bl(e,n.select(`floatingElement`))||Bl(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 se(e){ie(e,oe)}function ce(e){f()!==`sloppy`||!w.current||Bl(e,n.select(`floatingElement`))||Bl(e,n.select(`domReferenceElement`))||(w.current.dismissOnTouchEnd&&E(e),T.clear(),w.current=null)}function le(e){ie(e,ce)}let j=gl(i),ue=yf(s&&yf(vf(j,`keydown`,ne),vf(j,`compositionstart`,c),vf(j,`compositionend`,l)),_&&yf(vf(j,`click`,ae,!0),vf(j,`pointerdown`,ae,!0),vf(j,`pointerup`,A,!0),vf(j,`pointercancel`,A,!0),vf(j,`mousedown`,ae,!0),vf(j,`mouseup`,A,!0),vf(j,`touchstart`,k,!0),vf(j,`touchmove`,se,!0),vf(j,`touchend`,le,!0)));return()=>{ue(),e.clear(),t.clear(),d(),x.current=!1}},[a,i,s,_,g,r,o,S,C,ne,ee,v,m,n,T]),N.useEffect(ee,[g,ee]);let ie=N.useMemo(()=>({onKeyDown:ne,[pp[d]]:e=>{te()&&n.setOpen(!1,Hd(kd,e.nativeEvent))},...d!==`intentional`&&{onClick(e){te()&&n.setOpen(!1,Hd(`trigger-press`,e.nativeEvent))}}}),[ne,n,d,te]),k=os(e=>{if(!r||!o||e.button!==0)return;let t=Rl(e.nativeEvent);Ll(n.select(`floatingElement`),t)&&(y.current||(y.current=!0,b.current=!1))}),ae=os(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&y.current&&(b.current=!0)}),A=N.useMemo(()=>({onKeyDown:ne,onPointerDown:ae,onMouseDown:ae,onClickCapture:re,onMouseDownCapture(e){re(),k(e)},onPointerDownCapture(e){re(),k(e)},onMouseUpCapture:re,onTouchEndCapture:re,onTouchMoveCapture:re}),[ne,re,k,ae]);return N.useMemo(()=>o?{reference:ie,floating:A,trigger:ie}:{},[o,ie,A])}function _p(e,t,n){let{reference:r,floating:i}=e,a=mu(t),o=hu(t),s=pu(o),c=uu(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(du(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 vp(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}=lu(t,e),p=Du(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ou(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=Ou(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 yp=50,bp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:vp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=_p(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`&&_!==mu(t))||T.every(e=>mu(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=mu(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 Sp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cp(e){return tu.some(t=>e[t]>=0)}var wp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=lu(e,t);switch(i){case`referenceHidden`:{let e=Sp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cp(e)}}}case`escaped`:{let e=Sp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Cp(e)}}}default:return{}}}}},Tp=new Set([`left`,`top`]);async function Ep(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=uu(n),s=du(n),c=mu(n)===`y`,l=Tp.has(o)?-1:1,u=a&&c?-1:1,d=lu(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 Dp=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 Ep(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}}}}},Op=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}=lu(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=mu(uu(i)),p=fu(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=cu(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=cu(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}}}}}},kp=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}=lu(e,t),u={x:n,y:r},d=mu(i),f=fu(d),p=u[f],m=u[d],h=lu(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=Tp.has(uu(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}}}},Ap=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}=lu(e,t),u=await o.detectOverflow(t,l),d=uu(i),f=du(i),p=mu(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=nu(h-u[g],v),x=nu(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=ru(u.left,0),t=ru(u.right,0),n=ru(u.top,0),r=ru(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:ru(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:ru(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 jp(e){let t=Qo(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=zo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=iu(n)!==a||iu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Mp(e){return Ro(e)?e:e.contextElement}function Np(e){let t=Mp(e);if(!zo(t))return ou(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=jp(t),o=(a?iu(n.width):n.width)/r,s=(a?iu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Pp=ou(0);function Fp(e){let t=Fo(e);return!Xo()||!t.visualViewport?Pp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ip(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fo(e)?!1:t}function Lp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Mp(e),o=ou(1);t&&(r?Ro(r)&&(o=Np(r)):o=Np(e));let s=Ip(a,n,r)?Fp(a):ou(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=Fo(a),t=r&&Ro(r)?Fo(r):r,n=e,i=rs(n);for(;i&&r&&t!==n;){let e=Np(i),t=i.getBoundingClientRect(),r=Qo(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=Fo(i),i=rs(n)}}return Ou({width:u,height:d,x:c,y:l})}function Rp(e,t){let n=$o(e).scrollLeft;return t?t.left+n:Lp(Io(e)).left+n}function zp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Rp(e,n),y:n.top+t.scrollTop}}function Bp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Io(r),s=t?Uo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ou(1),u=ou(0),d=zo(r);if((d||!d&&!a)&&((Po(r)!==`body`||Vo(o))&&(c=$o(r)),d)){let e=Lp(r);l=Np(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zp(o,c):ou(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 Vp(e){return Array.from(e.getClientRects())}function Hp(e){let t=Io(e),n=$o(e),r=e.ownerDocument.body,i=ru(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ru(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Rp(e),s=-n.scrollTop;return Qo(r).direction===`rtl`&&(o+=ru(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Up=25;function Wp(e,t){let n=Fo(e),r=Io(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Xo();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Rp(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<=Up&&(a-=o)}else l<=Up&&(a+=l);return{width:a,height:o,x:s,y:c}}function Gp(e,t){let n=Lp(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=zo(e)?Np(e):ou(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Kp(e,t,n){let r;if(t===`viewport`)r=Wp(e,n);else if(t===`document`)r=Hp(Io(e));else if(Ro(t))r=Gp(t,n);else{let n=Fp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ou(r)}function qp(e,t){let n=es(e);return n===t||!Ro(n)||Zo(n)?!1:Qo(n).position===`fixed`||qp(n,t)}function Jp(e,t){let n=t.get(e);if(n)return n;let r=ns(e,[],!1).filter(e=>Ro(e)&&Po(e)!==`body`),i=null,a=Qo(e).position===`fixed`,o=a?es(e):e;for(;Ro(o)&&!Zo(o);){let t=Qo(o),n=Jo(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Vo(o)&&!n&&qp(e,o))?r=r.filter(e=>e!==o):i=t,o=es(o)}return t.set(e,r),r}function Yp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Uo(t)?[]:Jp(t,this._c):[].concat(n),r],o=Kp(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&&!im(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 om(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=Mp(e),u=i||a?[...l?ns(l):[],...t?ns(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?am(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?Lp(e):null;c&&g();function g(){let t=Lp(e);h&&!im(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 sm=Dp,cm=Op,lm=xp,um=Ap,dm=wp,eee=kp,tee=(e,t,n)=>{let r=new Map,i={platform:rm,...n},a={...i.platform,_c:r};return bp(e,t,{...i,platform:a})},fm=typeof document<`u`?N.useLayoutEffect:function(){};function pm(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(!pm(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)&&!pm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function mm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hm(e,t){let n=mm(e);return Math.round(t*n)/n}function gm(e){let t=N.useRef(e);return fm(()=>{t.current=e}),t}function _m(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]=N.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=N.useState(r);pm(f,r)||p(r);let[m,h]=N.useState(null),[g,_]=N.useState(null),v=N.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=N.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=N.useRef(null),C=N.useRef(null),w=N.useRef(u),T=c!=null,E=gm(c),ee=gm(i),D=gm(l),O=N.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),tee(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};te.current&&!pm(w.current,t)&&(w.current=t,li.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);fm(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=N.useRef(!1);fm(()=>(te.current=!0,()=>{te.current=!1}),[]),fm(()=>{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=N.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),re=N.useMemo(()=>({reference:b,floating:x}),[b,x]),ie=N.useMemo(()=>{let e={position:n,left:0,top:0};if(!re.floating)return e;let t=hm(re.floating,u.x),r=hm(re.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...mm(re.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,re.floating,u.x,u.y]);return N.useMemo(()=>({...u,update:O,refs:ne,elements:re,floatingStyles:ie}),[u,O,ne,re,ie])}var vm=(e,t)=>{let n=sm(e);return{name:n.name,fn:n.fn,options:[e,t]}},ym=(e,t)=>{let n=cm(e);return{name:n.name,fn:n.fn,options:[e,t]}},bm=(e,t)=>({fn:eee(e).fn,options:[e,t]}),xm=(e,t)=>{let n=lm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sm=(e,t)=>{let n=um(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cm=(e,t)=>{let n=dm(e);return{name:n.name,fn:n.fn,options:[e,t]}},wm=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(wa(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},Tm=[],Em=void 0;function Dm(){return Em}function Om(e){Tm.push(e)}function km(e){let t=(t,n)=>{let r=Ea(nee).current,i;try{Em=r;for(let e of Tm)e.before(r);i=e(t,n);for(let e of Tm)e.after(r);r.didInitialize=!0}finally{Em=void 0}return i};return t.displayName=e.displayName||e.name,t}function Am(e){return N.forwardRef(km(e))}function nee(){return{didInitialize:!1}}var jm=Jr(),ree=Pa(19)?aee:Nm;function Mm(e,t,n,r,i){return ree(e,t,n,r,i)}function iee(e,t,n,r,i){let a=N.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,jm.useSyncExternalStore)(e.subscribe,a,a)}Om({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,jm.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function aee(e,t,n,r,i){let a=Dm();if(!a)return iee(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 Nm(e,t,n,r,i){return(0,Xr.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Pm=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 Mm(this,e,t,n,r)}},Fm=class extends Pm{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){N.useDebugValue(e),us(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;us(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;us(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){N.useDebugValue(e);let n=t!==void 0;us(()=>{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 N.useDebugValue(e),Mm(this,this.selectors[e],t,n,r)}useContextCallback(e,t){N.useDebugValue(e);let n=os(t??Ia);this.context[e]=n}useStateSetter(e){let t=N.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)}})}},Im={open:wm(e=>e.open),transitionStatus:wm(e=>e.transitionStatus),domReferenceElement:wm(e=>e.domReferenceElement),referenceElement:wm(e=>e.positionReference??e.referenceElement),floatingElement:wm(e=>e.floatingElement),floatingId:wm(e=>e.floatingId)},Lm=class extends Fm{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:Xf(),nested:n,triggerElements:i},Im),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&eu(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 Rm(e,t){let n=N.useRef(null),r=N.useRef(null);return N.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 zm(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Rm(e,n),o=os(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 us(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Bm(e){let t=e.useState(`open`);us(()=>{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 Vm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Td(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=os(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return wd({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var Hm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Um(){return new Lm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Hm,floatingId:``,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Wm(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Um(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ra,inactiveTriggerProps:Ra,popupProps:Ra}}var Gm=wm(e=>e.triggerIdProp??e.activeTriggerId),Km={open:wm(e=>e.openProp??e.open),mounted:wm(e=>e.mounted),transitionStatus:wm(e=>e.transitionStatus),floatingRootContext:wm(e=>e.floatingRootContext),preventUnmountingOnClose:wm(e=>e.preventUnmountingOnClose),payload:wm(e=>e.payload),activeTriggerId:Gm,activeTriggerElement:wm(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:wm((e,t)=>t!==void 0&&Gm(e)===t),isOpenedByTrigger:wm((e,t)=>t!==void 0&&Gm(e)===t&&e.open),isMountedByTrigger:wm((e,t)=>t!==void 0&&Gm(e)===t&&e.mounted),triggerProps:wm((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:wm(e=>e.popupProps),popupElement:wm(e=>e.popupElement),positionerElement:wm(e=>e.positionerElement)};function qm(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=dl(),a=$f()!=null,o=Ea(()=>new Lm({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Hm,floatingId:i,syncOnly:!1,nested:a})).current;return us(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Ro(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 Jm(e={}){let{nodeId:t,externalTree:n}=e,r=qm(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=N.useState(null),c=N.useRef(null),l=ep(n);us(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=_m({...e,elements:{...a,...o&&{reference:o}}}),d=N.useCallback(e=>{let t=Ro(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=N.useState(void 0),[m,h]=N.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=Ro(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=N.useCallback(e=>{(Ro(e)||e===null)&&(c.current=e,p(e)),(Ro(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!Ro(e))&&u.refs.setReference(e)},[u.refs,p]),v=N.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=N.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=N.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=N.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 us(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),N.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function Ym(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=dl(),a=$f()!=null,o=t.useState(`open`),s=t.useState(`activeTriggerElement`),c=t.useState(n?`popupElement`:`positionerElement`),l=t.context.triggerElements,u=Ea(()=>new Lm({open:o,transitionStatus:void 0,referenceElement:s,floatingElement:c,triggerElements:l,onOpenChange:r,floatingId:i,syncOnly:!0,nested:a})).current;return us(()=>{let e={open:o,floatingId:i,referenceElement:s,floatingElement:c};Ro(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 Xm=Tl&&Cl;function Zm(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=N.useRef(!1),c=N.useRef(null),l=pd(),u=N.useRef(!0);N.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=Fo(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&zo(e)&&e===Il(gl(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return yf(vf(t,`blur`,r),Xm&&vf(t,`keydown`,i,!0),Xm&&vf(t,`pointerdown`,o,!0))},[n,a]),N.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);Ro(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=N.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=Rl(e.nativeEvent);if(Ro(r)){if(Xm&&!e.relatedTarget){if(!u.current&&!Hl(r))return}else if(!Gl(r))return}let i=zl(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,Hd(jd,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,Hd(jd,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=Ro(t)&&t.hasAttribute(Ef(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=Il(gl(e));!t&&o===e||Ll(i.current.floatingContext?.refs.floating.current,o)||Ll(e,o)||a||zl(t??o,n.context.triggerElements)||n.setOpen(!1,Hd(jd,r))})}}),[i,n,l,o]);return N.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var Qm=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 fd,this.restTimeout=new fd,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},$m=new WeakMap;function eh(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&$m.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),$m.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function th(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=$m.get(n);a&&a!==e&&eh(a),eh(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,$m.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function nh(e){let t=Ea(Qm.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,ud(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function rh(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=nh(n),d=ep(),f=$f(),p=os(()=>mf(o.current.openEvent?.type,u.interactedInside)),m=os(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),h=os(e=>zl(e,n.context.triggerElements)),g=N.useCallback(e=>{let t=ff(c,`close`,u.pointerType),r=()=>{n.setOpen(!1,Hd(Ad,e)),d?.events.emit(`floating.closed`,e)};t?u.openChangeTimeout.start(t,r):(u.openChangeTimeout.clear(),r())},[c,n,u,d]),_=os(()=>{eh(u)}),v=os(e=>{let t=Rl(e);if(!Ul(t)){u.interactedInside=!1;return}u.interactedInside=t?.closest(`[aria-haspopup]`)!=null});us(()=>{r||(u.pointerType=void 0,u.restTimeoutPending=!1,u.interactedInside=!1,_())},[r,u,_]),N.useEffect(()=>_,[_]),us(()=>{if(s&&r&&u.handleCloseOptions?.blockPointerEvents&&m()&&Ro(a)&&i){let e=a,t=i,n=gl(i),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),th(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=pd();N.useEffect(()=>{if(!s)return;function e(){u.openChangeTimeout.clear(),y.clear(),d?.events.off(`floating.closed`,r),_()}function t(e){if(d&&f&&ql(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&&Ro(n)&&ql(d.nodesRef.current,t,!1).some(e=>Ll(e.context?.elements.floating,n)))){if(u.handler){u.handler(e);return}_(),p()||g(e)}}function r(e){!d||!f||ql(d.nodesRef.current,f).length>0||y.start(0,()=>{d.events.off(`floating.closed`,r),n.setOpen(!1,Hd(Ad,e)),d.events.emit(`floating.closed`,e)})}let a=i;return yf(a&&vf(a,`mouseenter`,e),a&&vf(a,`mouseleave`,t),a&&vf(a,`pointerdown`,v,!0),()=>{d?.events.off(`floating.closed`,r)})},[s,i,n,o,l,p,h,g,_,v,u,d,f,y])}var ih={current:null};function ah(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=ih,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:m,isClosing:h}=t,g=ep(f),_=nh(n),v=N.useRef(!1),y=bf(s),b=bf(o),x=bf(l),S=bf(a),C=bf(h);p&&(_.handleCloseOptions=y.current?.__options);let w=os(()=>mf(r.current.openEvent?.type,_.interactedInside)),T=os(e=>zl(e,n.context.triggerElements)),E=os((e,t,r)=>{let i=n.context.triggerElements;if(i.hasElement(t))return!e||!Ll(e,t);if(!Ro(r))return!1;let a=r;return i.hasMatchingElement(e=>Ll(e,a))&&(!e||!Ll(e,a))}),ee=os((e,t=!0)=>{let r=ff(b.current,`close`,_.pointerType);r?_.openChangeTimeout.start(r,()=>{n.setOpen(!1,Hd(Ad,e)),g?.events.emit(`floating.closed`,e)}):t&&(_.openChangeTimeout.clear(),n.setOpen(!1,Hd(Ad,e)),g?.events.emit(`floating.closed`,e))}),D=os(()=>{_.handler&&=(gl(n.select(`domReferenceElement`)).removeEventListener(`mousemove`,_.handler),void 0)}),O=os(()=>{eh(_)});return N.useEffect(()=>D,[D]),N.useEffect(()=>{if(!a)return;function e(e){e.open?v.current=!1:(v.current=e.reason===Ad,D(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,_,D]),N.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!Ro(e))return;function t(e){if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,c&&!$l(_.pointerType))return;let t=pf(x.current),r=ff(b.current,`open`,_.pointerType),i=Rl(e),a=e.currentTarget??null,o=n.select(`domReferenceElement`),s=a;if(Ro(i)&&!n.context.triggerElements.hasElement(i)){for(let e of n.context.triggerElements.elements())if(Ll(e,i)){s=e;break}}Ro(a)&&Ro(o)&&!n.context.triggerElements.hasElement(a)&&Ll(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&&Ro(s)&&Ro(o)&&Ll(o,s)&&f,m=t>0&&!r,h=l&&(u||f)||p,g=!u||l;if(h){n.setOpen(!0,Hd(Ad,e,s));return}m||(r?_.openChangeTimeout.start(r,()=>{g&&n.setOpen(!0,Hd(Ad,e,s))}):g&&n.setOpen(!0,Hd(Ad,e,s)))}function i(e){if(w()){O();return}D();let t=gl(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`||!Ll(n.select(`floatingElement`),e.relatedTarget))&&ee(e)}}return u?yf(vf(e,`mousemove`,t,{once:!0}),vf(e,`mouseenter`,t),vf(e,`mouseleave`,i)):yf(vf(e,`mouseenter`,t),vf(e,`mouseleave`,i))},[D,O,r,b,ee,n,a,y,_,p,E,w,T,c,u,x,d,g,S,m,C]),N.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&&!$l(_.pointerType))return;if(a&&o&&_.handleCloseOptions?.blockPointerEvents){let e=n.select(`floatingElement`);e&&th(_,{scopeElement:_.handleCloseOptions?.getScope?.()??r.ownerDocument.body,referenceElement:r,floatingElement:e})}let s=pf(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,Hd(Ad,t,r))}_.pointerType===`touch`?li.flushSync(()=>{l()}):o&&a?l():(_.restTimeoutPending=!0,_.restTimeout.start(s,l))}}},[a,_,w,E,c,n,x])}function oh(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=N.useCallback(t=>sh(t,e,`reference`),t),o=N.useCallback(t=>sh(t,e,`floating`),n),s=N.useCallback(t=>sh(t,e,`item`),r),c=N.useCallback(t=>sh(t,e,`trigger`),i);return N.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function sh(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[Al]=``);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 oee=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function see(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=dl(),l=a?.id||c,u=N.useMemo(()=>Kl(o)?.id||i,[o,i]),d=oee.get(s)??s,f=$f()!=null,p=N.useMemo(()=>d===`tooltip`||s===`label`?Ra:{"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=N.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=N.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=N.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 N.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}var lh=.1,cee=lh*lh,uh=.5;function dh(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function fh(e,t,n,r,i,a,o,s,c,l){let u=!1;return dh(e,t,n,r,i,a)&&(u=!u),dh(e,t,i,a,o,s)&&(u=!u),dh(e,t,o,s,c,l)&&(u=!u),dh(e,t,c,l,n,r)&&(u=!u),u}function lee(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ph(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 uee(e={}){let{blockPointerEvents:t=!1}=e,n=new fd,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*cee;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=ph(d,f,ee,x.top+1,D,S.bottom-1);break;case`bottom`:ne=ph(d,f,ee,S.top+1,D,x.bottom-1);break;case`left`:ne=ph(d,f,S.right-1,te,x.left+1,O);break;case`right`:ne=ph(d,f,x.right-1,te,S.left+1,O);break;default:}if(ne)return;if(l&&!lee(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let re=!1;switch(c){case`top`:{let n=T?uh/2:uh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+uh+1,o=C||T?S.bottom-uh:S.top,s=C?T?S.bottom-uh:S.top:S.bottom-uh;re=fh(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?uh/2:uh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-uh,o=C||T?S.top+uh:S.bottom,s=C?T?S.top+uh:S.bottom:S.top+uh;re=fh(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?uh/2:uh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+uh+1,o=w||E?S.right-uh:S.left,s=w?E?S.right-uh:S.left:S.right-uh;re=fh(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?uh/2:uh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-uh,o=w||E?S.left+uh:S.right,s=w?E?S.left+uh:S.right:S.left+uh;re=fh(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 dee=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),fee=function(e){return e[e.open=Xd.open]=`open`,e[e.closed=Xd.closed]=`closed`,e[e.startingStyle=Xd.startingStyle]=`startingStyle`,e[e.endingStyle=Xd.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),mh=N.createContext(void 0);function hh(){let e=N.useContext(mh);if(e===void 0)throw Error(wa(26));return e}var gh=`ArrowUp`,_h=`ArrowDown`,vh=`ArrowLeft`,yh=`ArrowRight`,bh=`Home`,xh=new Set([vh,yh]),Sh=new Set([vh,yh,bh,`End`]),Ch=new Set([gh,_h]),wh=new Set([gh,_h,bh,`End`]),Th=new Set([...xh,...Ch]),Eh=new Set([...Th,bh,`End`]),Dh=new Set([gh,_h,vh,yh,bh,`End`]),Oh=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function kh(e){return zo(e)&&e.tagName===`INPUT`}function Ah(e){return!!(kh(e)&&e.selectionStart!=null||zo(e)&&e.tagName===`TEXTAREA`)}function jh(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=Mh(e,t,`top`),r=Nh(e),i=Nh(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 Mh(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 Nh(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 Ph={...of,...Sd,nestedDialogOpen(e){return e?{[fee.nestedDialogOpen]:``}:null}},Fh=N.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,style:o,...s}=e,{store:c}=Yd(),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`);hh(),wd({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=Ha(`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){Dh.has(e.key)&&e.stopPropagation()},style:{[dee.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:Ph});return(0,P.jsx)(lp,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:w})});function Ih(e){return Pa(19)?e:e?`true`:void 0}var Lh=N.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,P.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Rh=N.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Yd(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,P.jsx)(mh.Provider,{value:n,children:(0,P.jsxs)(Yf,{ref:t,...r,children:[a&&o===!0&&(0,P.jsx)(Lh,{ref:i.context.internalBackdropRef,inert:Ih(!s)}),e.children]})}):null});function zh(e){let t=N.useRef(!0);t.current&&(t.current=!1,e())}var Bh={},Vh={},Hh=``;function Uh(e){if(typeof document>`u`)return!1;let t=gl(e);return Fo(t).innerWidth-t.documentElement.clientWidth>0}function Wh(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=gl(e),n=t.documentElement,r=t.body,i=Vo(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Gh(e){let t=gl(e),n=t.documentElement,r=t.body,i=Vo(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 Kh(e){let t=gl(e),n=t.documentElement,r=t.body,i=Fo(n),a=0,o=0,s=!1,c=gd.create();if(xl&&(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,Bh={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Hh=n.style.scrollBehavior,Vh={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=Vo(n)?n:r;if(s=Wh(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,Bh),Object.assign(r.style,Vh),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Hh)}function d(){u(),c.request(l)}l();let f=vf(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var qh=new class{lockCount=0;restore=null;timeoutLock=fd.create();timeoutUnlock=fd.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=gl(e).documentElement,n=Fo(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ia;return}let r=Sl||!Uh(e);this.restore=r?Gh(e):Kh(e)}};function Jh(e=!0,t=null){us(()=>{if(e)return qh.acquire(t)},[e,t])}function Yh(e){let t=N.useRef(``),n=N.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:N.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 Xh(e,t){let n=N.useRef(e),r=os(t);us(()=>{n.current!==e&&r(n.current)},[e,r]),us(()=>{n.current=e},[e])}function Zh(e){let[t,n]=N.useState(null),r=os((t,r)=>{e||n(r||(Sl?`touch`:``))});Xh(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=Yh(r);return N.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function Qh(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}=Zh(a);Bm(t);let{forceUnmount:d}=Vm(a,t),f=N.useCallback(()=>{t.setOpen(!1,Hd(Bd))},[t]);N.useImperativeHandle(r,()=>({unmount:d,close:f}),[d,f]);let p=Ym({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[m,h]=N.useState(0),[g,_]=N.useState(0),v=m===0,y=see(p),b=gp(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=Rl(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||Ll(e,c)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:v});Jh(a&&s===!0,c);let{getReferenceProps:x,getFloatingProps:S,getTriggerProps:C}=oh([y,b]);t.useContextCallback(`onNestedDialogOpen`,(e,t)=>{h(e),_(t)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0),_(0)}),N.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=N.useMemo(()=>x(u),[x,u]),T=N.useMemo(()=>C(u),[C,u]),E=N.useMemo(()=>S(),[S]);t.useSyncedValues({openMethod:l,activeTriggerProps:w,inactiveTriggerProps:T,popupProps:E,floatingRootContext:p,nestedOpenDialogCount:m,nestedOpenDrawerCount:g})}var $h={...Km,modal:wm(e=>e.modal),nested:wm(e=>e.nested),nestedOpenDialogCount:wm(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:wm(e=>e.nestedOpenDrawerCount),disablePointerDismissal:wm(e=>e.disablePointerDismissal),openMethod:wm(e=>e.openMethod),descriptionElementId:wm(e=>e.descriptionElementId),titleElementId:wm(e=>e.titleElementId),viewportElement:wm(e=>e.viewportElement),role:wm(e=>e.role)},eg=class e extends Fm{constructor(e){super(tg(e),{popupRef:N.createRef(),backdropRef:N.createRef(),internalBackdropRef:N.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Hm,onOpenChange:void 0,onOpenChangeComplete:void 0},$h)}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=Ea(()=>new e(n)).current;return t??r}};function tg(e={}){return{...Wm(),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 ng=N.createContext(!1);function rg(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=Yd(!0),p=N.useContext(ng),m=!!f,h=eg.useStore(l?.store,{open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:m});zh(()=>{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`);Qh({store:h,actionsRef:c,parentContext:f?.store.context,isDrawer:p,onOpenChange:i,triggerIdProp:u});let _=N.useMemo(()=>({store:h}),[h]);return(0,P.jsx)(ng.Provider,{value:!1,children:(0,P.jsx)(Jd.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})})}var ig=N.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Yd(),c=fl(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ha(`h2`,e,{ref:t,props:[{id:c},o]})});function ag(e){let t=(0,na.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)(rg,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function og(e){let t=(0,na.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)(Rh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function sg(e){let t=(0,na.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=Hc(`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,P.jsx)(cf,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cg(e){let t=(0,na.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,P.jsx)(sg,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=Hc(`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,P.jsxs)(lf,{"data-slot":`sheet-close`,render:(0,P.jsx)(el,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,P.jsx)(Mo,{}),(0,P.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,P.jsxs)(og,{children:[l,(0,P.jsxs)(Fh,{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 lg(e){let t=(0,na.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=Hc(`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,P.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ug(e){let t=(0,na.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=Hc(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(ig,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function dg(e){let t=(0,na.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=Hc(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(uf,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var fg=N.createContext(void 0);function pg(e){let t=N.useContext(fg);if(t===void 0&&!e)throw Error(wa(72));return t}var mg={...Km,disabled:wm(e=>e.disabled),instantType:wm(e=>e.instantType),isInstantPhase:wm(e=>e.isInstantPhase),trackCursorAxis:wm(e=>e.trackCursorAxis),disableHoverablePopup:wm(e=>e.disableHoverablePopup),lastOpenChangeReason:wm(e=>e.openChangeReason),closeOnClick:wm(e=>e.closeOnClick),closeDelay:wm(e=>e.closeDelay),hasViewport:wm(e=>e.hasViewport)},hg=class e extends Fm{constructor(e){super({...gg(),...e},{popupRef:N.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Hm},mg)}setOpen=(e,t)=>{let n=t.reason,r=n===Ad,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?li.flushSync(o):o()};static useStore(t,n){let r=Ea(()=>new e(n)).current,i=t??r,a=Ym({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function gg(){return{...Wm(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var _g=km(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=hg.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});zh(()=>{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}),us(()=>{m&&t&&p.setOpen(!1,Hd(zd))},[m,t,p]),p.useSyncedValue(`disabled`,t),Bm(p);let{forceUnmount:v,transitionStatus:y}=Vm(h,p),b=p.select(`floatingRootContext`),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=N.useRef(null);us(()=>{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]),us(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=N.useCallback(()=>{p.setOpen(!1,Hd(Bd))},[p]);N.useImperativeHandle(o,()=>({unmount:v,close:T}),[v,T]);let{getReferenceProps:E,getFloatingProps:ee,getTriggerProps:D}=oh([gp(b,{enabled:!t,referencePress:()=>p.select(`closeOnClick`)}),fp(b,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),O=N.useMemo(()=>E(),[E]),te=N.useMemo(()=>D(),[D]),ne=N.useMemo(()=>ee(),[ee]);return p.useSyncedValues({activeTriggerProps:O,inactiveTriggerProps:te,popupProps:ne}),(0,P.jsx)(fg.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})}),vg=N.createContext(void 0);function yg(){return N.useContext(vg)}var bg=function(e){return e[e.popupOpen=Zd.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),xg=Am(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=pg(!0),m=i?.store??p;if(!m)throw Error(wa(82));let h=fl(u),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=N.useRef(null),b=s??600,x=l??0,{registerTrigger:S,isMountedByThisTrigger:C}=zm(h,y,m,{payload:a,closeOnClick:c,closeDelay:x}),w=yg(),{delayRef:T,isInstantPhase:E,hasProvider:ee}=_f(v,{open:_});m.useSyncedValue(`isInstantPhase`,E);let D=m.useState(`disabled`),O=o??D,te=m.useState(`trackCursorAxis`),ne=m.useState(`disableHoverablePopup`),re=ah(v,{enabled:!O,mouseOnly:!0,move:!1,handleClose:!ne&&te!==`both`?uee():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`}),ie=Zm(v,{enabled:!O}).reference,k={open:_},ae=m.useState(`triggerProps`,C);return Ha(`button`,e,{state:k,ref:[t,S,y],props:[re,ie,ae,{onPointerDown(){m.set(`closeOnClick`,c)},id:h,[bg.triggerDisabled]:O?``:void 0},f],stateAttributesMapping:rf})}),Sg=N.createContext(void 0);function Cg(){let e=N.useContext(Sg);if(e===void 0)throw Error(wa(70));return e}var pee=N.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Jf({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,P.jsxs)(N.Fragment,{children:[l,c&&li.createPortal(n,c)]})}),mee=N.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return pg().useState(`mounted`)||n?(0,P.jsx)(Sg.Provider,{value:n,children:(0,P.jsx)(pee,{ref:t,...r})}):null}),wg=N.createContext(void 0);function Tg(){let e=N.useContext(wg);if(e===void 0)throw Error(wa(71));return e}var hee=N.createContext(void 0);function Eg(){return N.useContext(hee)?.direction??`ltr`}var gee=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`}=lu(e,t)||{};if(l==null)return{};let f=Du(u),p={x:n,y:r},m=hu(i),h=pu(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=cu(O,ne,te),ie=!c.arrow&&du(i)!=null&&ne!==re&&a.reference[h]/2-(ne({...gee(e),options:[e,t]}),vee={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 Cm().fn(e)).data?.referenceHidden||a}}}},Dg={sideX:`left`,sideY:`top`},yee={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Fo(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=gl(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=uu(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,uu(i),n),align:du(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]=N.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=os(E),D=E?ee:t,O=bf(t),te=bf(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],ie=a===`center`?re:`${re}-${a}`,k=c,ae=+(r===`bottom`),A=+(r===`top`),oe=+(r===`right`),se=+(r===`left`);typeof k==`number`?k={top:k+ae,right:k+se,bottom:k+A,left:k+oe}:k&&={top:(k.top||0)+ae,right:(k.right||0)+se,bottom:(k.bottom||0)+A,left:(k.left||0)+oe};let ce={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:k},le=N.useRef(null),j=bf(i),ue=bf(o),de=[vm(e=>{let t=kg(e,r,ne),n=typeof j.current==`function`?j.current(t):j.current,i=typeof ue.current==`function`?ue.current(t):ue.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,ne,r])],M=w===`none`&&C!==`shift`,fe=!M&&(l||g||C===`shift`),pe=C===`none`?null:xm({...ce,padding:{top:k.top+1,right:k.right+1,bottom:k.bottom+1,left:k.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:T}),me=M?null:ym(e=>{let t=gl(e.elements.floating).documentElement;return{...ce,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:fe,limiter:l||g?void 0:bm(e=>{if(!le.current)return{};let{width:t,height:n}=le.current.getBoundingClientRect(),r=mu(uu(e.placement)),i=r===`y`?t:n,a=r===`y`?k.left+k.right:k.top+k.bottom;return{offset:i/2+a/2}})}},[ce,l,g,k,w]);C===`shift`||w===`shift`||a===`center`?de.push(me,pe):de.push(pe,me),de.push(Sm({...ce,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=Fo(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`)}}),_ee(()=>({element:le.current||gl(le.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=uu(a),l=mu(c),u=le.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`,fe&&l===`y`&&b?S:x),{}}},vee,v),us(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let he=N.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:ge,elements:_e,x:ve,y:ye,middlewareData:be,update:xe,placement:Se,context:Ce,isPositioned:we,floatingStyles:Te}=Jm({rootContext:p,open:f?m:void 0,placement:ie,middleware:de,strategy:n,whileElementsMounted:f?void 0:(...e)=>om(...e,he),nodeId:_,externalTree:b}),{sideX:Ee,sideY:De}=be.adaptiveOrigin||Dg,Oe=we?n:`fixed`,ke=N.useMemo(()=>{let e=v?{position:Oe,[Ee]:ve,[De]:ye}:{position:Oe,...Te};return we||(e.opacity=0),e},[v,Oe,Ee,ve,De,ye,Te,we]),P=N.useRef(null);us(()=>{if(!m)return;let e=O.current,t=typeof e==`function`?e():e,n=(jg(t)?t.current:t)||null;n!==P.current&&(ge.setPositionReference(n),P.current=n)},[m,ge,D,O]),N.useEffect(()=>{if(!m)return;let e=O.current;typeof e!=`function`&&jg(e)&&e.current!==P.current&&(ge.setPositionReference(e.current),P.current=e.current)},[m,ge,D,O]),N.useEffect(()=>{if(f&&m&&_e.domReference&&_e.floating)return om(_e.domReference,_e.floating,xe,he)},[f,m,_e,xe,he]);let Ae=uu(Se),je=Og(r,Ae,ne),Me=du(Se)||`center`,Ne=!!be.hide?.referenceHidden;us(()=>{y&&m&&we&&S(Ae)},[y,m,we,Ae]);let Pe=N.useMemo(()=>({position:`absolute`,top:be.arrow?.y,left:be.arrow?.x}),[be.arrow]),Fe=be.arrow?.centerOffset!==0;return N.useMemo(()=>({positionerStyles:ke,arrowStyles:Pe,arrowRef:le,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:ge,context:Ce,isPositioned:we,update:xe}),[ke,Pe,le,Fe,je,Me,Ae,Ne,ge,Ce,we,xe])}function jg(e){return e!=null&&`current`in e}function Mg(e){return e===`starting`?Vf:Ra}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`),Ha(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Mg(r),i],stateAttributesMapping:of})}var bee=N.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=Uf,style:g,..._}=e,v=pg(),y=Cg(),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`)?yee:void 0}),D=Ng(e,N.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,P.jsx)(wg.Provider,{value:ee,children:D})}),xee={...of,...Sd},See=N.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=pg(),{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`);wd({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}});let m=o.useState(`disabled`),h=o.useState(`closeDelay`);return rh(p,{enabled:!m,closeDelay:h}),Ha(`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:xee})}),Cee=N.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=pg(),s=o.useState(`open`),c=o.useState(`instantType`),{arrowRef:l,side:u,align:d,arrowUncentered:f,arrowStyles:p}=Tg();return Ha(`div`,e,{state:{open:s,side:u,align:d,uncentered:f,instant:c},ref:[t,l],props:[{style:p,"aria-hidden":!0},a],stateAttributesMapping:of})}),wee=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=N.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=N.useMemo(()=>({open:t,close:n}),[t,n]);return(0,P.jsx)(vg.Provider,{value:i,children:(0,P.jsx)(gf,{delay:a,timeoutMs:r,children:e.children})})};function Tee(e){let t=(0,na.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,P.jsx)(wee,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Eee(e){let t=(0,na.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)(Tee,{children:(0,P.jsx)(_g,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Dee(e){let t=(0,na.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)(xg,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Oee(e){let t=(0,na.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=Hc(`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,P.jsx)(Cee,{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,P.jsxs)(See,{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,P.jsx)(mee,{children:(0,P.jsx)(bee,{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 kee(e){return Pg.addEventListener(`change`,e),()=>Pg.removeEventListener(`change`,e)}function Aee(){return Pg.matches}function jee(){return(0,N.useSyncExternalStore)(kee,Aee)}var Mee=`sidebar_state`,Nee=3600*24*7,Pee=`12rem`,Fee=`16rem`,Iee=`3rem`,Lee=`b`,Fg=N.createContext(null);function Ig(){let e=N.useContext(Fg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ree(e){let t=(0,na.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=jee(),[d,f]=N.useState(!1),[p,m]=N.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=`${Mee}=${t}; path=/; max-age=${Nee}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(Bee):_(zee),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===Lee&&(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),N.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=Hc(`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":Pee,"--sidebar-width-icon":Iee,...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,P.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,P.jsx)(Fg.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=O):O=t[35],O}function zee(e){return!e}function Bee(e){return!e}function Vee(e){let t=(0,na.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}=Ig();if(u===`none`){let e;t[7]===r?e=t[8]:(e=Hc(`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,P.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":Fee},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsxs)(lg,{className:`sr-only`,children:[(0,P.jsx)(ug,{children:`Sidebar`}),(0,P.jsx)(dg,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,P.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,P.jsxs)(cg,{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,P.jsx)(ag,{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]:(_=Hc(`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,P.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=Hc(`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,P.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,P.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,P.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 Hee(e){let t=(0,na.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}=Ig(),o;t[4]===n?o=t[5]:(o=Hc(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,P.jsx)(To,{}),l=(0,P.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,P.jsxs)(el,{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 Lg(e){let t=(0,na.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}=Ig(),a;t[3]===n?a=t[4]:(a=Hc(`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,P.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 Rg(e){let t=(0,na.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=Hc(`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,P.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 zg(e){let t=(0,na.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=Hc(`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,P.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 Bg(e){let t=(0,na.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=Hc(`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,P.jsx)(qd,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vg(e){let t=(0,na.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=Hc(`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,P.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 Hg(e){let t=(0,na.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=Hc(`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,P.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 Ug(e){let t=(0,na.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Ja,r=`div`,i=la({className:Hc(`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 Wg(e){let t=(0,na.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=Hc(`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,P.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 Gg(e){let t=(0,na.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=Hc(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.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 Kg=$a(`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 qg(e){let t=(0,na.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}=Ig(),m=la({className:Hc(Kg({variant:u,size:d}),s)},c),h=o?Dee: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=Ja(_);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,P.jsx)(Oee,{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,P.jsxs)(Eee,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var Jg;function z(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 Yg=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Xg=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Jg=globalThis).__zod_globalConfig??(Jg.__zod_globalConfig={});var Zg=globalThis.__zod_globalConfig;function Qg(e){return e&&Object.assign(Zg,e),Zg}function $g(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 e_(e,t){return typeof t==`bigint`?t.toString():t}function t_(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function n_(e){return e==null}function r_(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function i_(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 f_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var p_=t_(()=>{if(Zg.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function m_(e){if(f_(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(f_(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function h_(e){return m_(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var g_=new Set([`string`,`number`,`symbol`]);function __(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 y_(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 b_(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var x_={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function S_(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,c_(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 s_(this,`shape`,e),e},checks:[]}))}function C_(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,c_(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 s_(this,`shape`,r),r},checks:[]}))}function w_(e,t){if(!m_(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,c_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return s_(this,`shape`,n),n}}))}function T_(e,t){if(!m_(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return v_(e,c_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return s_(this,`shape`,n),n}}))}function E_(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,c_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return s_(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function D_(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,c_(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 s_(this,`shape`,i),i},checks:[]}))}function O_(e,t,n){return v_(t,c_(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 s_(this,`shape`,i),i}}))}function k_(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 M_(e){return typeof e==`string`?e:e?.message}function N_(e,t,n){let r=e.message?e.message:M_(e.inst?._zod.def?.error?.(e))??M_(t?.error?.(e))??M_(n.customError?.(e))??M_(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 P_(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function F_(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var I_=(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,e_,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},L_=z(`$ZodError`,I_),R_=z(`$ZodError`,I_,{Parent:Error});function z_(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 B_(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 Yg;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>N_(e,a,Qg())));throw d_(t,i?.callee),t}return o.value},H_=V_(R_),U_=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=>N_(e,a,Qg())));throw d_(t,i?.callee),t}return o.value},W_=U_(R_),G_=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 Yg;return a.issues.length?{success:!1,error:new(e??L_)(a.issues.map(e=>N_(e,i,Qg())))}:{success:!0,data:a.value}},K_=G_(R_),q_=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=>N_(e,i,Qg())))}:{success:!0,data:a.value}},J_=q_(R_),Y_=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return V_(e)(t,n,i)},X_=e=>(t,n,r)=>V_(e)(t,n,r),Z_=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return U_(e)(t,n,i)},Q_=e=>async(t,n,r)=>U_(e)(t,n,r),$_=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return G_(e)(t,n,i)},ev=e=>(t,n,r)=>G_(e)(t,n,r),tv=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return q_(e)(t,n,i)},nv=e=>async(t,n,r)=>q_(e)(t,n,r),rv=/^[cC][0-9a-z]{6,}$/,iv=/^[0-9a-z]+$/,av=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ov=/^[0-9a-vA-V]{20}$/,sv=/^[A-Za-z0-9]{27}$/,cv=/^[a-zA-Z0-9_-]{21}$/,lv=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,uv=/^([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})$/,dv=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)$/,fv=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,pv=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function mv(){return new RegExp(pv,`u`)}var hv=/^(?:(?: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])$/,gv=/^(([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}|:))$/,_v=/^((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])$/,vv=/^(([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])$/,yv=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bv=/^[A-Za-z0-9_-]*$/,xv=/^https?$/,Sv=/^\+[1-9]\d{6,14}$/,Cv=`(?:(?:\\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])))`,wv=RegExp(`^${Cv}$`);function Tv(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 Ev(e){return RegExp(`^${Tv(e)}$`)}function Dv(e){let t=Tv({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(`^${Cv}T(?:${r})$`)}var Ov=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},kv=/^-?\d+$/,Av=/^-?\d+(?:\.\d+)?$/,jv=/^(?:true|false)$/i,Mv=/^[^A-Z]*$/,Nv=/^[^a-z]*$/,Pv=z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Fv={number:`number`,bigint:`bigint`,object:`date`},Iv=z(`$ZodCheckLessThan`,(e,t)=>{Pv.init(e,t);let n=Fv[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{Pv.init(e,t);let n=Fv[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})}}),Rv=z(`$ZodCheckMultipleOf`,(e,t)=>{Pv.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):i_(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})}}),zv=z(`$ZodCheckNumberFormat`,(e,t)=>{Pv.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=x_[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=kv)}),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})}}),Bv=z(`$ZodCheckMaxLength`,(e,t)=>{var n;Pv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!n_(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=P_(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vv=z(`$ZodCheckMinLength`,(e,t)=>{var n;Pv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!n_(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=P_(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hv=z(`$ZodCheckLengthEquals`,(e,t)=>{var n;Pv.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!n_(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=P_(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})}}),Uv=z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Pv.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=()=>{})}),Wv=z(`$ZodCheckRegex`,(e,t)=>{Uv.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})}}),Gv=z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Mv,Uv.init(e,t)}),Kv=z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Nv,Uv.init(e,t)}),qv=z(`$ZodCheckIncludes`,(e,t)=>{Pv.init(e,t);let n=__(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})}}),Jv=z(`$ZodCheckStartsWith`,(e,t)=>{Pv.init(e,t);let n=RegExp(`^${__(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})}}),Yv=z(`$ZodCheckEndsWith`,(e,t)=>{Pv.init(e,t);let n=RegExp(`.*${__(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})}}),Xv=z(`$ZodCheckOverwrite`,(e,t)=>{Pv.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Zv=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(` -`))}},Qv={major:4,minor:4,patch:2},$v=z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qv;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=k_(e),i;for(let a of t){if(a._zod.def.when){if(A_(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 Yg;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=k_(e,t))});else{if(e.issues.length===t)continue;r||=k_(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(k_(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Yg;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 Yg;return o.then(e=>t(e,r,a))}return t(o,r,a)}}o_(e,`~standard`,()=>({validate:t=>{try{let n=K_(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return J_(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),ey=z(`$ZodString`,(e,t)=>{$v.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ov(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}}),ty=z(`$ZodStringFormat`,(e,t)=>{Uv.init(e,t),ey.init(e,t)}),ny=z(`$ZodGUID`,(e,t)=>{t.pattern??=uv,ty.init(e,t)}),ry=z(`$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??=dv(e)}else t.pattern??=dv();ty.init(e,t)}),iy=z(`$ZodEmail`,(e,t)=>{t.pattern??=fv,ty.init(e,t)}),ay=z(`$ZodURL`,(e,t)=>{ty.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===xv.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})}}}),oy=z(`$ZodEmoji`,(e,t)=>{t.pattern??=mv(),ty.init(e,t)}),sy=z(`$ZodNanoID`,(e,t)=>{t.pattern??=cv,ty.init(e,t)}),cy=z(`$ZodCUID`,(e,t)=>{t.pattern??=rv,ty.init(e,t)}),ly=z(`$ZodCUID2`,(e,t)=>{t.pattern??=iv,ty.init(e,t)}),uy=z(`$ZodULID`,(e,t)=>{t.pattern??=av,ty.init(e,t)}),dy=z(`$ZodXID`,(e,t)=>{t.pattern??=ov,ty.init(e,t)}),fy=z(`$ZodKSUID`,(e,t)=>{t.pattern??=sv,ty.init(e,t)}),py=z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Dv(t),ty.init(e,t)}),my=z(`$ZodISODate`,(e,t)=>{t.pattern??=wv,ty.init(e,t)}),hy=z(`$ZodISOTime`,(e,t)=>{t.pattern??=Ev(t),ty.init(e,t)}),gy=z(`$ZodISODuration`,(e,t)=>{t.pattern??=lv,ty.init(e,t)}),_y=z(`$ZodIPv4`,(e,t)=>{t.pattern??=hv,ty.init(e,t),e._zod.bag.format=`ipv4`}),vy=z(`$ZodIPv6`,(e,t)=>{t.pattern??=gv,ty.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})}}}),yy=z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=_v,ty.init(e,t)}),by=z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=vv,ty.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 xy(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Sy=z(`$ZodBase64`,(e,t)=>{t.pattern??=yv,ty.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{xy(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Cy(e){if(!bv.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return xy(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var wy=z(`$ZodBase64URL`,(e,t)=>{t.pattern??=bv,ty.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Cy(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ty=z(`$ZodE164`,(e,t)=>{t.pattern??=Sv,ty.init(e,t)});function Ey(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 Dy=z(`$ZodJWT`,(e,t)=>{ty.init(e,t),e._zod.check=n=>{Ey(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Oy=z(`$ZodNumber`,(e,t)=>{$v.init(e,t),e._zod.pattern=e._zod.bag.pattern??Av,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}}),ky=z(`$ZodNumberFormat`,(e,t)=>{zv.init(e,t),Oy.init(e,t)}),Ay=z(`$ZodBoolean`,(e,t)=>{$v.init(e,t),e._zod.pattern=jv,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}}),jy=z(`$ZodUnknown`,(e,t)=>{$v.init(e,t),e._zod.parse=e=>e}),My=z(`$ZodNever`,(e,t)=>{$v.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Ny(e,t,n){e.issues.length&&t.issues.push(...j_(n,e.issues)),t.value[n]=e.value}var Py=z(`$ZodArray`,(e,t)=>{$v.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;eNy(t,n,e))):Ny(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Fy(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...j_(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 Iy(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=b_(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ly(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=>Fy(e,n,i,t,u,d))):Fy(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 Ry=z(`$ZodObject`,(e,t)=>{if($v.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=t_(()=>Iy(t));o_(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=f_,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=>Fy(n,t,e,s,r,i))):Fy(a,t,e,s,r,i)}return i?Ly(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),zy=z(`$ZodObjectJIT`,(e,t)=>{Ry.init(e,t);let n=e._zod.parse,r=t_(()=>Iy(t)),i=e=>{let t=new Zv([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=l_(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=l_(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=f_,s=!Zg.jitless,c=s&&p_.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?Ly([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function By(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=>!k_(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=>N_(e,r,Qg())))}),t)}var Vy=z(`$ZodUnion`,(e,t)=>{$v.init(e,t),o_(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),o_(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),o_(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),o_(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=>r_(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=>By(t,r,e,i)):By(o,r,e,i)}}),Hy=z(`$ZodIntersection`,(e,t)=>{$v.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])=>Wy(e,t,n)):Wy(e,i,a)}});function Uy(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(m_(e)&&m_(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=Uy(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}),k_(e))return e;let o=Uy(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Gy=z(`$ZodRecord`,(e,t)=>{$v.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!m_(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=>N_(e,r,Qg())),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(...j_(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...j_(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`&&Av.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=>N_(e,r,Qg())),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(...j_(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...j_(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Uee=z(`$ZodEnum`,(e,t)=>{$v.init(e,t);let n=$g(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>g_.has(typeof e)).map(e=>typeof e==`string`?__(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}}),Wee=z(`$ZodTransform`,(e,t)=>{$v.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Xg(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));if(i instanceof Promise)throw new Yg;return n.value=i,n}});function Ky(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var qy=z(`$ZodOptional`,(e,t)=>{$v.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,o_(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),o_(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${r_(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ky(t,e.value)):Ky(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Gee=z(`$ZodExactOptional`,(e,t)=>{qy.init(e,t),o_(e._zod,`values`,()=>t.innerType._zod.values),o_(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Kee=z(`$ZodNullable`,(e,t)=>{$v.init(e,t),o_(e._zod,`optin`,()=>t.innerType._zod.optin),o_(e._zod,`optout`,()=>t.innerType._zod.optout),o_(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${r_(e.source)}|null)$`):void 0}),o_(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)}),qee=z(`$ZodDefault`,(e,t)=>{$v.init(e,t),e._zod.optin=`optional`,o_(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=>Jy(e,t)):Jy(r,t)}});function Jy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Jee=z(`$ZodPrefault`,(e,t)=>{$v.init(e,t),e._zod.optin=`optional`,o_(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))}),Yee=z(`$ZodNonOptional`,(e,t)=>{$v.init(e,t),o_(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=>Yy(t,e)):Yy(i,e)}});function Yy(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 Xee=z(`$ZodCatch`,(e,t)=>{$v.init(e,t),o_(e._zod,`optin`,()=>t.innerType._zod.optin),o_(e._zod,`optout`,()=>t.innerType._zod.optout),o_(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=>N_(e,n,Qg()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>N_(e,n,Qg()))},input:e.value}),e.issues=[]),e)}}),Zee=z(`$ZodPipe`,(e,t)=>{$v.init(e,t),o_(e._zod,`values`,()=>t.in._zod.values),o_(e._zod,`optin`,()=>t.in._zod.optin),o_(e._zod,`optout`,()=>t.out._zod.optout),o_(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=>Xy(e,t.in,n)):Xy(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Xy(e,t.out,n)):Xy(r,t.out,n)}});function Xy(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Qee=z(`$ZodReadonly`,(e,t)=>{$v.init(e,t),o_(e._zod,`propValues`,()=>t.innerType._zod.propValues),o_(e._zod,`values`,()=>t.innerType._zod.values),o_(e._zod,`optin`,()=>t.innerType?._zod?.optin),o_(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(Zy):Zy(r)}});function Zy(e){return e.value=Object.freeze(e.value),e}var $ee=z(`$ZodCustom`,(e,t)=>{Pv.init(e,t),$v.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=>Qy(t,n,r,e));Qy(i,n,r,e)}});function Qy(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(F_(e))}}var $y,ete=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 tte(){return new ete}($y=globalThis).__zod_globalRegistry??($y.__zod_globalRegistry=tte());var eb=globalThis.__zod_globalRegistry;function nte(e,t){return new e({type:`string`,...y_(t)})}function rte(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...y_(t)})}function tb(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...y_(t)})}function ite(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...y_(t)})}function ate(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...y_(t)})}function ote(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...y_(t)})}function ste(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...y_(t)})}function cte(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...y_(t)})}function lte(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...y_(t)})}function ute(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...y_(t)})}function dte(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...y_(t)})}function fte(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...y_(t)})}function pte(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...y_(t)})}function mte(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...y_(t)})}function hte(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...y_(t)})}function gte(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...y_(t)})}function _te(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...y_(t)})}function vte(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...y_(t)})}function yte(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...y_(t)})}function bte(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...y_(t)})}function xte(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...y_(t)})}function Ste(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...y_(t)})}function Cte(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...y_(t)})}function wte(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...y_(t)})}function Tte(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...y_(t)})}function Ete(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...y_(t)})}function Dte(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...y_(t)})}function Ote(e,t){return new e({type:`number`,checks:[],...y_(t)})}function kte(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...y_(t)})}function Ate(e,t){return new e({type:`boolean`,...y_(t)})}function jte(e){return new e({type:`unknown`})}function Mte(e,t){return new e({type:`never`,...y_(t)})}function nb(e,t){return new Iv({check:`less_than`,...y_(t),value:e,inclusive:!1})}function rb(e,t){return new Iv({check:`less_than`,...y_(t),value:e,inclusive:!0})}function ib(e,t){return new Lv({check:`greater_than`,...y_(t),value:e,inclusive:!1})}function ab(e,t){return new Lv({check:`greater_than`,...y_(t),value:e,inclusive:!0})}function ob(e,t){return new Rv({check:`multiple_of`,...y_(t),value:e})}function sb(e,t){return new Bv({check:`max_length`,...y_(t),maximum:e})}function cb(e,t){return new Vv({check:`min_length`,...y_(t),minimum:e})}function lb(e,t){return new Hv({check:`length_equals`,...y_(t),length:e})}function Nte(e,t){return new Wv({check:`string_format`,format:`regex`,...y_(t),pattern:e})}function Pte(e){return new Gv({check:`string_format`,format:`lowercase`,...y_(e)})}function Fte(e){return new Kv({check:`string_format`,format:`uppercase`,...y_(e)})}function Ite(e,t){return new qv({check:`string_format`,format:`includes`,...y_(t),includes:e})}function Lte(e,t){return new Jv({check:`string_format`,format:`starts_with`,...y_(t),prefix:e})}function Rte(e,t){return new Yv({check:`string_format`,format:`ends_with`,...y_(t),suffix:e})}function ub(e){return new Xv({check:`overwrite`,tx:e})}function zte(e){return ub(t=>t.normalize(e))}function Bte(){return ub(e=>e.trim())}function Vte(){return ub(e=>e.toLowerCase())}function Hte(){return ub(e=>e.toUpperCase())}function Ute(){return ub(e=>u_(e))}function Wte(e,t,n){return new e({type:`array`,element:t,...y_(n)})}function Gte(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...y_(n)})}function Kte(e,t){let n=qte(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(F_(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(F_(r))}},e(t.value,t)),t);return n}function qte(e,t){let n=new Pv({check:`custom`,...y_(t)});return n._zod.check=e,n}function db(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??eb,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 fb(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,fb(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`&&hb(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 pb(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 mb(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:gb(t,`input`,e.processors),output:gb(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function hb(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 hb(r.element,n);if(r.type===`set`)return hb(r.valueType,n);if(r.type===`lazy`)return hb(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 hb(r.innerType,n);if(r.type===`intersection`)return hb(r.left,n)||hb(r.right,n);if(r.type===`record`||r.type===`map`)return hb(r.keyType,n)||hb(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:hb(r.in,n)||hb(r.out,n);if(r.type===`object`){for(let e in r.shape)if(hb(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(hb(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(hb(e,n))return!0;return!!(r.rest&&hb(r.rest,n))}return!1}var Jte=(e,t={})=>n=>{let r=db({...n,processors:t});return fb(e,r),pb(r,e),mb(r,e)},gb=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=db({...i??{},target:a,io:t,processors:n});return fb(e,o),pb(o,e),mb(o,e)},Yte={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Xte=(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=Yte[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}))])}},Zte=(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)},Qte=(e,t,n,r)=>{n.type=`boolean`},$te=(e,t,n,r)=>{n.not={}},ene=(e,t,n,r)=>{let i=e._zod.def,a=$g(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},tne=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},nne=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},rne=(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=fb(a.element,t,{...r,path:[...r.path,`items`]})},ine=(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]=fb(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=fb(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ane=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>fb(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},one=(e,t,n,r)=>{let i=e._zod.def,a=fb(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=fb(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]]},sne=(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=fb(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=fb(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=fb(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)}},cne=(e,t,n,r)=>{let i=e._zod.def,a=fb(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`}]},lne=(e,t,n,r)=>{let i=e._zod.def;fb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},une=(e,t,n,r)=>{let i=e._zod.def;fb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},dne=(e,t,n,r)=>{let i=e._zod.def;fb(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)))},fne=(e,t,n,r)=>{let i=e._zod.def;fb(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},pne=(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;fb(o,t,r);let s=t.seen.get(e);s.ref=o},mne=(e,t,n,r)=>{let i=e._zod.def;fb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},_b=(e,t,n,r)=>{let i=e._zod.def;fb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hne=z(`ZodISODateTime`,(e,t)=>{py.init(e,t),wb.init(e,t)});function gne(e){return wte(hne,e)}var _ne=z(`ZodISODate`,(e,t)=>{my.init(e,t),wb.init(e,t)});function vne(e){return Tte(_ne,e)}var yne=z(`ZodISOTime`,(e,t)=>{hy.init(e,t),wb.init(e,t)});function bne(e){return Ete(yne,e)}var xne=z(`ZodISODuration`,(e,t)=>{gy.init(e,t),wb.init(e,t)});function Sne(e){return Dte(xne,e)}var vb=z(`ZodError`,(e,t)=>{L_.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>B_(e,t)},flatten:{value:t=>z_(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,e_,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,e_,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Cne=V_(vb),wne=U_(vb),Tne=G_(vb),Ene=q_(vb),Dne=Y_(vb),One=X_(vb),kne=Z_(vb),Ane=Q_(vb),jne=$_(vb),Mne=ev(vb),Nne=tv(vb),Pne=nv(vb),yb=new WeakMap;function bb(e,t,n){let r=Object.getPrototypeOf(e),i=yb.get(r);if(i||(i=new Set,yb.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 xb=z(`ZodType`,(e,t)=>($v.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:gb(e,`input`),output:gb(e,`output`)}}),e.toJSONSchema=Jte(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Cne(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Tne(e,t,n),e.parseAsync=async(t,n)=>wne(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ene(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Dne(e,t,n),e.decode=(t,n)=>One(e,t,n),e.encodeAsync=async(t,n)=>kne(e,t,n),e.decodeAsync=async(t,n)=>Ane(e,t,n),e.safeEncode=(t,n)=>jne(e,t,n),e.safeDecode=(t,n)=>Mne(e,t,n),e.safeEncodeAsync=async(t,n)=>Nne(e,t,n),e.safeDecodeAsync=async(t,n)=>Pne(e,t,n),bb(e,`ZodType`,{check(...e){let t=this.def;return this.clone(c_(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(ex(e,t))},superRefine(e,t){return this.check(tx(e,t))},overwrite(e){return this.check(ub(e))},optional(){return Ib(this)},exactOptional(){return Rb(this)},nullable(){return Bb(this)},nullish(){return Ib(Bb(this))},nonoptional(e){return Kb(this,e)},array(){return Ab(this)},or(e){return lre([this,e])},and(e){return dre(this,e)},transform(e){return Xb(this,mre(e))},default(e){return Hb(this,e)},prefault(e){return Wb(this,e)},catch(e){return Jb(this,e)},pipe(e){return Xb(this,e)},readonly(){return Qb(this)},describe(e){let t=this.clone();return eb.add(t,{description:e}),t},meta(...e){if(e.length===0)return eb.get(this);let t=this.clone();return eb.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 eb.get(e)?.description},configurable:!0}),e)),Sb=z(`_ZodString`,(e,t)=>{ey.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xte(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,bb(e,`_ZodString`,{regex(...e){return this.check(Nte(...e))},includes(...e){return this.check(Ite(...e))},startsWith(...e){return this.check(Lte(...e))},endsWith(...e){return this.check(Rte(...e))},min(...e){return this.check(cb(...e))},max(...e){return this.check(sb(...e))},length(...e){return this.check(lb(...e))},nonempty(...e){return this.check(cb(1,...e))},lowercase(e){return this.check(Pte(e))},uppercase(e){return this.check(Fte(e))},trim(){return this.check(Bte())},normalize(...e){return this.check(zte(...e))},toLowerCase(){return this.check(Vte())},toUpperCase(){return this.check(Hte())},slugify(){return this.check(Ute())}})}),Fne=z(`ZodString`,(e,t)=>{ey.init(e,t),Sb.init(e,t),e.email=t=>e.check(rte(Ine,t)),e.url=t=>e.check(cte(Lne,t)),e.jwt=t=>e.check(Cte(Qne,t)),e.emoji=t=>e.check(lte(Rne,t)),e.guid=t=>e.check(tb(Tb,t)),e.uuid=t=>e.check(ite(Eb,t)),e.uuidv4=t=>e.check(ate(Eb,t)),e.uuidv6=t=>e.check(ote(Eb,t)),e.uuidv7=t=>e.check(ste(Eb,t)),e.nanoid=t=>e.check(ute(zne,t)),e.guid=t=>e.check(tb(Tb,t)),e.cuid=t=>e.check(dte(Bne,t)),e.cuid2=t=>e.check(fte(Vne,t)),e.ulid=t=>e.check(pte(Hne,t)),e.base64=t=>e.check(bte(Yne,t)),e.base64url=t=>e.check(xte(Xne,t)),e.xid=t=>e.check(mte(Une,t)),e.ksuid=t=>e.check(hte(Wne,t)),e.ipv4=t=>e.check(gte(Gne,t)),e.ipv6=t=>e.check(_te(Kne,t)),e.cidrv4=t=>e.check(vte(qne,t)),e.cidrv6=t=>e.check(yte(Jne,t)),e.e164=t=>e.check(Ste(Zne,t)),e.datetime=t=>e.check(gne(t)),e.date=t=>e.check(vne(t)),e.time=t=>e.check(bne(t)),e.duration=t=>e.check(Sne(t))});function Cb(e){return nte(Fne,e)}var wb=z(`ZodStringFormat`,(e,t)=>{ty.init(e,t),Sb.init(e,t)}),Ine=z(`ZodEmail`,(e,t)=>{iy.init(e,t),wb.init(e,t)}),Tb=z(`ZodGUID`,(e,t)=>{ny.init(e,t),wb.init(e,t)}),Eb=z(`ZodUUID`,(e,t)=>{ry.init(e,t),wb.init(e,t)}),Lne=z(`ZodURL`,(e,t)=>{ay.init(e,t),wb.init(e,t)}),Rne=z(`ZodEmoji`,(e,t)=>{oy.init(e,t),wb.init(e,t)}),zne=z(`ZodNanoID`,(e,t)=>{sy.init(e,t),wb.init(e,t)}),Bne=z(`ZodCUID`,(e,t)=>{cy.init(e,t),wb.init(e,t)}),Vne=z(`ZodCUID2`,(e,t)=>{ly.init(e,t),wb.init(e,t)}),Hne=z(`ZodULID`,(e,t)=>{uy.init(e,t),wb.init(e,t)}),Une=z(`ZodXID`,(e,t)=>{dy.init(e,t),wb.init(e,t)}),Wne=z(`ZodKSUID`,(e,t)=>{fy.init(e,t),wb.init(e,t)}),Gne=z(`ZodIPv4`,(e,t)=>{_y.init(e,t),wb.init(e,t)}),Kne=z(`ZodIPv6`,(e,t)=>{vy.init(e,t),wb.init(e,t)}),qne=z(`ZodCIDRv4`,(e,t)=>{yy.init(e,t),wb.init(e,t)}),Jne=z(`ZodCIDRv6`,(e,t)=>{by.init(e,t),wb.init(e,t)}),Yne=z(`ZodBase64`,(e,t)=>{Sy.init(e,t),wb.init(e,t)}),Xne=z(`ZodBase64URL`,(e,t)=>{wy.init(e,t),wb.init(e,t)}),Zne=z(`ZodE164`,(e,t)=>{Ty.init(e,t),wb.init(e,t)}),Qne=z(`ZodJWT`,(e,t)=>{Dy.init(e,t),wb.init(e,t)}),Db=z(`ZodNumber`,(e,t)=>{Oy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zte(e,t,n,r),bb(e,`ZodNumber`,{gt(e,t){return this.check(ib(e,t))},gte(e,t){return this.check(ab(e,t))},min(e,t){return this.check(ab(e,t))},lt(e,t){return this.check(nb(e,t))},lte(e,t){return this.check(rb(e,t))},max(e,t){return this.check(rb(e,t))},int(e){return this.check(Ob(e))},safe(e){return this.check(Ob(e))},positive(e){return this.check(ib(0,e))},nonnegative(e){return this.check(ab(0,e))},negative(e){return this.check(nb(0,e))},nonpositive(e){return this.check(rb(0,e))},multipleOf(e,t){return this.check(ob(e,t))},step(e,t){return this.check(ob(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 $ne(e){return Ote(Db,e)}var ere=z(`ZodNumberFormat`,(e,t)=>{ky.init(e,t),Db.init(e,t)});function Ob(e){return kte(ere,e)}var tre=z(`ZodBoolean`,(e,t)=>{Ay.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qte(e,t,n,r)});function nre(e){return Ate(tre,e)}var rre=z(`ZodUnknown`,(e,t)=>{jy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function kb(){return jte(rre)}var ire=z(`ZodNever`,(e,t)=>{My.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$te(e,t,n,r)});function are(e){return Mte(ire,e)}var ore=z(`ZodArray`,(e,t)=>{Py.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rne(e,t,n,r),e.element=t.element,bb(e,`ZodArray`,{min(e,t){return this.check(cb(e,t))},nonempty(e){return this.check(cb(1,e))},max(e,t){return this.check(sb(e,t))},length(e,t){return this.check(lb(e,t))},unwrap(){return this.element}})});function Ab(e,t){return Wte(ore,e,t)}var sre=z(`ZodObject`,(e,t)=>{zy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ine(e,t,n,r),o_(e,`shape`,()=>t.shape),bb(e,`ZodObject`,{keyof(){return Pb(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:kb()})},loose(){return this.clone({...this._zod.def,catchall:kb()})},strict(){return this.clone({...this._zod.def,catchall:are()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return w_(this,e)},safeExtend(e){return T_(this,e)},merge(e){return E_(this,e)},pick(e){return S_(this,e)},omit(e){return C_(this,e)},partial(...e){return D_(Fb,this,e[0])},required(...e){return O_(Gb,this,e[0])}})});function jb(e,t){return new sre({type:`object`,shape:e??{},...y_(t)})}var cre=z(`ZodUnion`,(e,t)=>{Vy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ane(e,t,n,r),e.options=t.options});function lre(e,t){return new cre({type:`union`,options:e,...y_(t)})}var ure=z(`ZodIntersection`,(e,t)=>{Hy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>one(e,t,n,r)});function dre(e,t){return new ure({type:`intersection`,left:e,right:t})}var Mb=z(`ZodRecord`,(e,t)=>{Gy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sne(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function fre(e,t,n){return!t||!t._zod?new Mb({type:`record`,keyType:Cb(),valueType:e,...y_(t)}):new Mb({type:`record`,keyType:e,valueType:t,...y_(n)})}var Nb=z(`ZodEnum`,(e,t)=>{Uee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ene(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 Nb({...t,checks:[],...y_(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 Nb({...t,checks:[],...y_(r),entries:i})}});function Pb(e,t){return new Nb({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...y_(t)})}var pre=z(`ZodTransform`,(e,t)=>{Wee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nne(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Xg(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(F_(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(F_(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function mre(e){return new pre({type:`transform`,transform:e})}var Fb=z(`ZodOptional`,(e,t)=>{qy.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_b(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ib(e){return new Fb({type:`optional`,innerType:e})}var Lb=z(`ZodExactOptional`,(e,t)=>{Gee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_b(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Rb(e){return new Lb({type:`optional`,innerType:e})}var zb=z(`ZodNullable`,(e,t)=>{Kee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Bb(e){return new zb({type:`nullable`,innerType:e})}var Vb=z(`ZodDefault`,(e,t)=>{qee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>une(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Hb(e,t){return new Vb({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():h_(t)}})}var Ub=z(`ZodPrefault`,(e,t)=>{Jee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Wb(e,t){return new Ub({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():h_(t)}})}var Gb=z(`ZodNonOptional`,(e,t)=>{Yee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Kb(e,t){return new Gb({type:`nonoptional`,innerType:e,...y_(t)})}var qb=z(`ZodCatch`,(e,t)=>{Xee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jb(e,t){return new qb({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Yb=z(`ZodPipe`,(e,t)=>{Zee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pne(e,t,n,r),e.in=t.in,e.out=t.out});function Xb(e,t){return new Yb({type:`pipe`,in:e,out:t})}var Zb=z(`ZodReadonly`,(e,t)=>{Qee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mne(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Qb(e){return new Zb({type:`readonly`,innerType:e})}var $b=z(`ZodCustom`,(e,t)=>{$ee.init(e,t),xb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tne(e,t,n,r)});function ex(e,t={}){return Gte($b,e,t)}function tx(e,t){return Kte(e,t)}var nx=`spinifex:v1:aws-credentials`,rx=jb({accessKeyId:Cb().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Cb().min(1,`Secret Access Key is required`)}),ix;function ax(){if(ix!==void 0)return ix;try{let e=localStorage.getItem(nx);if(!e)return ix=null,null;let t=JSON.parse(e),n=rx.safeParse(t);return ix=n.success?n.data:null,ix}catch{return ix=null,null}}function ox(e){try{localStorage.setItem(nx,JSON.stringify(e)),ix=e}catch{ix=e}}function sx(){try{localStorage.removeItem(nx)}catch{}ix=null}var cx=e=>new TextEncoder().encode(e),lx=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:cx;function ux(e){return e instanceof Uint8Array?e:typeof e==`string`?lx(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function dx(e){return typeof e==`string`?e.length===0:e.byteLength===0}function fx(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function px(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 Cx=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]),wx=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Tx=2**53-1,Ex=function(){function e(){this.state=Int32Array.from(wx),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>Tx)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+(Cx[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}(),Dx=function(){function e(e){this.secret=e,this.hash=new Ex,this.reset()}return e.prototype.update=function(e){if(!(dx(e)||this.error))try{this.hash.update(ux(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 bx(this,void 0,void 0,function(){return xx(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Ex,this.secret){this.outer=new Ex;var e=Ox(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 Ex;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var kx=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Ax(e){if(jx(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return Mx(t)}return!1}function jx(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function Mx(e){return e&&kx.every(function(t){return typeof e[t]==`function`})}var Nx=function(){function e(e){Ax(vx())?this.hash=new yx(e):this.hash=new Dx(e)}return e.prototype.update=function(e,t){this.hash.update(ux(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),Px=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Fx=e=>({httpHandler:e.httpHandler()}),Ix;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Ix||={});var Lx;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Lx||={});var Rx=`__smithy_context`,zx=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&&=Bx(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 Bx(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Vx=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`}},Hx={},Ux={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Hx[e]=t,Ux[t]=e}function Wx(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),qx=e=>typeof e==`string`?Kx(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Jx=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)},Yx=`X-Amz-Algorithm`,Xx=`X-Amz-Credential`,Zx=`X-Amz-Date`,Qx=`X-Amz-SignedHeaders`,$x=`X-Amz-Expires`,eS=`X-Amz-Signature`,tS=`X-Amz-Security-Token`,nS=`authorization`,rS=Zx.toLowerCase(),iS=[nS,rS,`date`];eS.toLowerCase();var aS=`x-amz-content-sha256`,oS=tS.toLowerCase(),sS={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},cS=/^proxy-/,lS=/^sec-/,uS=`AWS4-HMAC-SHA256`,dS=`AWS4-HMAC-SHA256-PAYLOAD`,fS=`UNSIGNED-PAYLOAD`,pS=`aws4_request`,mS={},hS=[],gS=(e,t,n)=>`${e}/${t}/${n}/${pS}`,_S=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${Gx(await vS(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in mS)return mS[a];for(hS.push(a);hS.length>50;)delete mS[hS.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,pS])o=await vS(e,o,t);return mS[a]=o},vS=(e,t,n)=>{let r=new e(t);return r.update(qx(n)),r.digest()},yS=({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 sS||t?.has(a)||cS.test(a)||lS.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},bS=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,xS=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)||bS(t)){let e=new n;return e.update(qx(t)),Gx(await e.digest())}return fS},SS=class{format(e){let t=[];for(let n of Object.keys(e)){let r=Kx(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=Kx(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(TS.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!wS.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Wx(e.value.replace(/\-/g,``)),1),u}}},CS;(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`})(CS||={});var wS=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,TS=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&&ES(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&ES(e),parseInt(Gx(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function ES(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var DS=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},OS=(e,t={})=>{let{headers:n,query:r={}}=zx.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}},kS=e=>{e=zx.clone(e);for(let t of Object.keys(e.headers))iS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},AS=e=>e.__smithy_context||={},jS=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},MS=e=>encodeURIComponent(e).replace(/[!'()*]/g,NS),NS=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,PS=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=MS(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${MS(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${MS(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},FS=e=>IS(e).toISOString().replace(/\.\d{3}Z$/,`Z`),IS=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,LS=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=jS(n),this.credentialProvider=jS(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} -${this.getCanonicalPath(e)} -${PS(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(qx(n)),`${r} -${e} -${t} -${Gx(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 MS(`${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=FS(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},RS=class extends LS{headerFormatter=new SS;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=gS(p,d,l??this.service),h=OS(kS(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[tS]=u.sessionToken),h.query[Yx]=uS,h.query[Xx]=`${u.accessKeyId}/${m}`,h.query[Zx]=f,h.query[$x]=r.toString(10);let g=yS(h,i,o);return h.query[Qx]=this.getCanonicalHeaderList(g),h.query[eS]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await xS(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=gS(c,s,a??this.service),d=await xS({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=[dS,l,u,r,Gx(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(qx(e)),Gx(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=kS(e),{longDate:l,shortDate:u}=this.formatDate(t),d=gS(u,s,a??this.service);c.headers[rS]=l,o.sessionToken&&(c.headers[oS]=o.sessionToken);let f=await xS(c,this.sha256);!DS(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[aS]=f);let p=yS(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[nS]=`${uS} 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,uS),a=new this.sha256(await n);return a.update(qx(i)),Gx(await a.digest())}getSigningKey(e,t,n,r){return _S(this.sha256,e,n,t,r||this.service)}},zS={SignatureV4a:null},BS=`ap-southeast-2`,VS=9999;async function HS({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new zx({method:`POST`,protocol:r,hostname:`localhost`,port:VS,path:`/`,headers:{host:`localhost:${VS}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new RS({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey},region:BS,service:n,sha256:Nx}).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 US=`000000000001`,WS=(0,N.createContext)(void 0);function GS({children:e}){let[t,n]=(0,N.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,N.useEffect)(()=>{async function e(){let e=ax();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await HS({action:`GetCallerIdentity`,credentials:e}),r=t.account_id===US,i=null;if(r)try{i=await HS({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,P.jsx)(WS,{value:t,children:e})}function KS(){let e=(0,N.useContext)(WS);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}function qS(){let e=(0,na.c)(8),{theme:t,setTheme:n}=oa(),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,P.jsx)(ko,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,P.jsx)(Co,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,P.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,P.jsxs)(el,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function JS(){let e=(0,na.c)(7),{isAdmin:t,license:n}=KS(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=Hc(`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,P.jsx)(Hee,{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,P.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:Hc($c({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,P.jsx)(qS,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,P.jsxs)(`header`,{className:i,children:[a,(0,P.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function YS(){let e=(0,na.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,P.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,P.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,P.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,P.jsx)(xi,{to:`/`,children:(0,P.jsx)(el,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function XS(e){return e}var ZS=e=>t=>async n=>{if(!zx.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)},QS={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},$S=e=>({applyToStack:t=>{t.add(ZS(e),QS)}}),eC=()=>(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}},tC={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},nC=e=>({applyToStack:e=>{e.add(eC(),tC)}}),rC={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`},iC=()=>e=>async t=>e(t),aC=e=>({applyToStack:e=>{e.add(iC(),rC)}}),oC=(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 sC(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var cC=(e,t)=>(n,r)=>async i=>{let a=oC(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=sC(e.httpAuthSchemes),s=AS(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)},lC={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},uC=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(cC(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),lC)}}),dC=e=>e=>{throw e},fC=(e,t)=>{},pC=e=>(e,t)=>async n=>{if(!zx.isInstance(n.request))return e(n);let r=AS(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||dC)(i));return(o.successHandler||fC)(s.response,i),s},mC={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},hC=e=>({applyToStack:t=>{t.addRelativeTo(pC(e),mC)}}),gC=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},_C=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,vC=Object.entries(_C).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),yC=_C.split(``),bC=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 xC(e){let t;t=typeof e==`string`?Kx(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 SC=class e extends Uint8Array{static fromString(t,n=`utf-8`){if(typeof t==`string`)return n===`base64`?e.mutate(bC(t)):e.mutate(Kx(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`?xC(this):Jx(this)}},CC=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),wC=(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 TC(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=MS(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 OC={supported:void 0},kC=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)),OC.supported===void 0&&(OC.supported=typeof Request<`u`&&`keepalive`in EC(`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=AC(t);return Promise.reject(e)}let o=e.path,s=TC(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),OC.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=EC(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 Vx({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Vx({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),DC(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(AC(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 AC(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 jC=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?MC(e):new Uint8Array(await e.arrayBuffer()):NC(e);async function MC(e){let t=bC(await PC(e));return new Uint8Array(t)}async function NC(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 PC(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 FC=`The stream has already been transformed.`,IC=e=>{if(!LC(e)&&!CC(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(FC);return t=!0,await jC(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 xC(t);if(e===`hex`)return Gx(t);if(e===void 0||e===`utf8`||e===`utf-8`)return Jx(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(FC);if(t=!0,LC(e))return r(e);if(CC(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},LC=e=>typeof Blob==`function`&&e instanceof Blob,RC=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return SC.mutate(e);if(!e)return SC.mutate(new Uint8Array);let n=t.streamCollector(e);return SC.mutate(await n)};function zC(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var BC=e=>typeof e==`function`?e():e,VC=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),HC=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=AS(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(VC(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(Vx.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:UC(/^x-[\w-]+-request-?id$/,n),extendedRequestId:UC(/^x-[\w-]+-id-2$/,n),cfId:UC(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},UC=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];function WC(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 GC=e=>{if(typeof e==`string`)return GC(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=WC(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},KC=e=>{if(typeof e==`object`){if(`url`in e){let t=GC(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 GC(e)},qC=e=>(t,n)=>async r=>{let{operationSchema:i}=AS(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>KC(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(VC(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},JC={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},YC={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function XC(e){return{applyToStack:t=>{t.add(qC(e),YC),t.add(HC(e),JC),e.protocol.setSerdeContext(e)}}}var ZC=[];function QC(e){if(typeof e==`object`)return e;if(e|=0,ZC[e])return ZC[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return ZC[e]=t}var $C={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},ew=[],tw={},nw=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;iw(i);)r.push(i[1]),i=i[0],a=BC(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,QC(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=BC(a),aw(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(ew[t])return ew[t]}else if(typeof t==`string`){if(tw[t])return tw[t]}else if(n&&t[$C.ns])return t[$C.ns];let r=BC(t);if(r instanceof e)return r;if(iw(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),QC(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[$C.ns]=i:typeof r==`string`?tw[r]=i:typeof r==`number`?ew[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 QC(this.memberTraits)}getOwnTraits(){return QC(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 rw([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 rw([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 rw(iw(r)?r:[r,0],e)}if(this.isDocumentSchema())return rw([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[$C.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,aw=e=>Array.isArray(e)&&e.length>=5,ow=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}},sw=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&xw.warn(bw(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},cw=Math.ceil(2**127*(2-2**-23)),lw=e=>{let t=sw(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>cw)throw TypeError(`Expected 32-bit float, got ${e}`);return t},uw=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},dw=e=>pw(e,16),fw=e=>pw(e,8),pw=(e,t)=>{let n=uw(e);if(n!==void 0&&mw(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},mw=(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]}},hw=e=>lw(typeof e==`string`?_w(e):e),gw=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,_w=e=>{let t=e.match(gw);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},vw=e=>dw(typeof e==`string`?_w(e):e),yw=e=>fw(typeof e==`string`?_w(e):e),bw=e=>String(TypeError(e).stack||e).split(` -`).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` -`),xw={warn:console.warn},Sw=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Cw=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function ww(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`${Sw[r]}, ${c} ${Cw[n]} ${t} ${l}:${u}:${d} GMT`}var Tw=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$/),Ew=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$/),Dw=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})$/),Ow=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=Tw.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return kw(vw(zw(i)),Nw(r),Lw(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=Ew.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return Mw(kw(Aw(i),Nw(r),Lw(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=Dw.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return kw(vw(zw(c)),Nw(n),Lw(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},kw=(e,t,n,r)=>{let i=t-1;return Fw(e,i,n),new Date(Date.UTC(e,i,n,Lw(r.hours,`hour`,0,23),Lw(r.minutes,`minute`,0,59),Lw(r.seconds,`seconds`,0,60),Rw(r.fractionalMilliseconds)))},Aw=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+vw(zw(e));return ne.getTime()-new Date().getTime()>jw?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Nw=e=>{let t=Cw.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},Pw=[31,28,31,30,31,30,31,31,30,31,30,31],Fw=(e,t,n)=>{let r=Pw[t];if(t===1&&Iw(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${Cw[t]} in ${e}: ${n}`)},Iw=e=>e%4==0&&(e%100!=0||e%400==0),Lw=(e,t,n,r)=>{let i=yw(zw(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Rw=e=>e==null?0:hw(`0.`+e)*1e3,zw=e=>{let t=0;for(;tt.toString(16).padStart(2,`0`)),Hw=()=>{if(Bw)return Bw();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Vw[e[0]]+Vw[e[1]]+Vw[e[2]]+Vw[e[3]]+`-`+Vw[e[4]]+Vw[e[5]]+`-`+Vw[e[6]]+Vw[e[7]]+`-`+Vw[e[8]]+Vw[e[9]]+`-`+Vw[e[10]]+Vw[e[11]]+Vw[e[12]]+Vw[e[13]]+Vw[e[14]]+Vw[e[15]]},Uw=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};Uw.from=e=>e&&typeof e==`object`&&(e instanceof Uw||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?Uw(String(e)):Uw(JSON.stringify(e)),Uw.fromObject=Uw.from;function Ww(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var Gw=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,Kw=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,qw=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,Jw=`(\\d?\\d)`,Yw=`(\\d{4})`,Xw=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Zw=RegExp(`^${Gw}, ${Jw} ${Kw} ${Yw} ${qw} GMT$`),Qw=RegExp(`^${Gw}, ${Jw}-${Kw}-(\\d\\d) ${qw} GMT$`),$w=RegExp(`^${Gw} ${Kw} ( [1-9]|\\d\\d) ${qw} ${Yw}$`),eT=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],tT=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))},nT=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=Xw.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;iT(r,1,12),iT(i,1,31),iT(a,0,23),iT(o,0,59),iT(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},rT=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=Zw.exec(e))?[,t,n,r,i,a,o,s]=c:(c=Qw.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=$w.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),eT.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);iT(t,1,31),iT(i,0,23),iT(a,0,59),iT(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)};function iT(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}function aT(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,`"`))})},sT=/^-?\d*(\.\d+)?$/,cT=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!sT.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`&&sT.test(n.string)}},lT=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},uT=`modulepreload`,dT=function(e){return`/`+e},fT={},pT=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=dT(t,n),t in fT)return;fT[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`:uT,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)})},mT=class extends lT{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=ow.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return zx}getResponseType(){return Vx}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=nw.of(t.input),i=QC(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 pT(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}},hT=class extends mT{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=nw.of(e?.input),l=[],u=[],d=!1,f,p=new zx({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=QC(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(zC).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,zC(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=nw.of(e.output),a={};if(n.statusCode>=300){let i=await RC(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 RC(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 RC(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=nw.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]=IC(n.body);else if(n.body){let i=await RC(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?aT(o,`,`,2):oT(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}},gT=class extends mT{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=nw.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new zx({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=nw.of(e.output),a={};if(n.statusCode>=300){let i=await RC(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 RC(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function _T(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 vT=class extends lT{settings;constructor(e){super(),this.settings=e}read(e,t){let n=nw.of(e);if(n.isListSchema())return oT(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??bC)(t);if(n.isTimestampSchema())switch(_T(n,this.settings)){case 5:return nT(t);case 6:return rT(t);case 7:return tT(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=Uw.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new cT(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Jx)((this.serdeContext?.base64Decoder??bC)(e))}},yT=class extends lT{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new vT(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=nw.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??Jx;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??Kx;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},bT=class extends lT{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=nw.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(_T(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=ww(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??xC)(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:Ww(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=Uw.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??xC)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Hw():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},xT=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new bT(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=nw.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 ST(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 CT=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)}},wT=(e=>function(t){return TT(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,ET=(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 DT(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function OT(e){let t=gC(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!DT(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 kT=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)}},AT=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}},jT=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},MT=`endpoints`;function NT(e){return typeof e!=`object`||!e?e:`ref`in e?`$${NT(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(NT).join(`, `)})`:JSON.stringify(e,null,2)}var PT={},FT=(e,t)=>e===t;function IT(...e){for(let t of e)if(t!=null)return t}var LT=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 jT(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new jT(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},RT=(e,t)=>LT(t).reduce((n,r)=>{if(typeof n!=`object`)throw new jT(`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),zT=e=>e!=null,BT=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),VT=(e,t=!1)=>{if(!t)return BT.test(e);let n=e.split(`.`);for(let e of n)if(!VT(e))return!1;return!0};function HT(e,t,n){return e?t:n}var UT=e=>!e,WT=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}$`),GT=e=>WT.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),KT={[Ix.HTTP]:80,[Ix.HTTPS]:443},qT=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(Ix).includes(c))return null;let l=GT(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${KT[c]}`)||typeof e==`string`&&e.includes(`${r}:${KT[c]}`)?`:${KT[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function JT(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 YT={booleanEquals:FT,coalesce:IT,getAttr:RT,isSet:zT,isValidHostLabel:VT,ite:HT,not:UT,parseURL:qT,split:JT,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()}`)},XT=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],QT=(e,t,n)=>{if(typeof e==`string`)return XT(e,n);if(e.fn)return eE.callFunction(e,n);if(e.ref)return ZT(e,n);throw new jT(`'${t}': ${String(e)} is not a string, function or reference.`)},$T=({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 jT(`'${n}' is already defined in Reference Record.`);let r=$T(e,t);t.logger?.debug?.(`${MT} evaluateCondition: ${NT(e)} = ${NT(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},nE=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=QT(e,`Header value entry`,t);if(typeof r!=`string`)throw new jT(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),rE=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=aE.getEndpointProperty(r,t),e),{}),iE=(e,t)=>{if(Array.isArray(e))return e.map(e=>iE(e,t));switch(typeof e){case`string`:return XT(e,t);case`object`:if(e===null)throw new jT(`Unexpected endpoint property: ${e}`);return aE.getEndpointProperties(e,t);case`boolean`:return e;default:throw new jT(`Unexpected endpoint property type: ${typeof e}`)}},aE={getEndpointProperty:iE,getEndpointProperties:rE},oE=(e,t)=>{let n=QT(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 jT(`Endpoint URL must be a string, got ${typeof n}`)},sE=1e8,cE=(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>=sE){let e=i[o-sE];if(e[0]===-1){let[,t]=e;throw new jT(QT(t,`Error`,c))}let[t,n,r]=e;return{url:oE(t,c),properties:rE(n,c),headers:nE(r??{},c)}}throw new jT(`No matching endpoint.`)},lE=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!lE(t))return!1;return!0}return!(!VT(e)||e.length<3||e.length>63||e!==e.toLowerCase()||GT(e))},uE=`:`,dE=`/`,fE=e=>{let t=e.split(uE);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(uE)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(dE)).flat()}},pE={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`},mE=``,hE=e=>{let{partitions:t}=pE;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}},gE=()=>mE,_E={isVirtualHostableS3Bucket:lE,parseArn:fE,partition:hE};PT.aws=_E;function vE(e,t,n){return e.$source||={},e.$source[t]=n,e}var yE;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(yE||={});var bE=yE.STANDARD,xE=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],SE=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],CE=[500,502,503,504],wE=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],TE=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],EE=e=>e?.$retryable!==void 0,DE=e=>e.$metadata?.clockSkewCorrected,OE=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},kE=e=>e.$metadata?.httpStatusCode===429||xE.includes(e.name)||e.$retryable?.throttling==1,AE=(e,t=0)=>EE(e)||DE(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||SE.includes(e.name)||wE.includes(e?.code||``)||TE.includes(e?.code||``)||CE.includes(e.$metadata?.httpStatusCode||0)||OE(e)||ME(e)||e.cause!==void 0&&t<=10&&AE(e.cause,t+1),jE=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!AE(e)}return!1};function ME(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var NE=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`||kE(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))}},PE=20*1e3,FE=`amz-sdk-invocation-id`,IE=`amz-sdk-request`,LE=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`}},RE=class{x=LE.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,PE);return Math.floor(t)}setDelayBase(e){this.x=e}},zE=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(PE,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},BE={incompatible:1,attempts:2,capacity:3},VE=class{mode=yE.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??=LE.delay(),this.retryBackoffStrategy??=new RE}async acquireInitialRetryToken(e){return new zE(LE.delay(),0,void 0,LE.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`?LE.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 zE(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:LE.v2026&&r===BE.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:BE.incompatible,a=r=this.getCapacityCost(t.errorType)?0:BE.capacity;return i||a||o}getCapacityCost(e){return e===LE.modifiedCostType()?LE.throttlingCost():LE.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},HE=class{mode=yE.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new NE,this.standardRetryStrategy=t?new VE({maxAttempts:typeof e==`number`?e:3,...t}):new VE(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()}};LE.v2026||=typeof process==`object`&&{}?.AWS_NEW_RETRIES_2026===`true`;function UE(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 WE=/\d{12}\.ddb/;async function GE(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&UE(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case yE.ADAPTIVE:UE(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case yE.STANDARD:UE(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(WE)&&UE(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:UE(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:UE(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:UE(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&UE(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))UE(e,n,r)}}var KE=`user-agent`,qE=`x-amz-user-agent`,JE=/[^!$%&'*+\-.^_`|~\w]/g,YE=/[^!$%&'*+\-.^_`|~\w#]/g,XE=1024;function ZE(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=XE){t.length?t+=`,`+r:t+=r;continue}break}return t}var QE=e=>(t,n)=>async r=>{let{request:i}=r;if(!zx.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map($E)||[],s=(await e.defaultUserAgentProvider()).map($E);await GE(n,e,r);let c=n;s.push(`m/${ZE(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map($E)||[],u=await e.userAgentAppId();u&&s.push($E([`app`,`${u}`]));let d=gE(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[qE]=f:(p&&(a[qE]=a[`x-amz-user-agent`]?`${a[KE]} ${p}`:p),a[KE]=f),t({...r,request:i})},$E=e=>{let t=e[0].split(`/`).map(e=>e.replace(JE,`-`)).join(`/`),n=e[1]?.replace(YE,`-`),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}`}},``)},eD={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},tD=e=>({applyToStack:t=>{t.add(QE(e),eD)}}),nD=new Set,rD=(e,t=VT)=>{if(!nD.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 nD.add(e)},iD=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),aD=e=>iD(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,oD=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=aD(typeof t==`function`?await t():t);return rD(e),e},useFipsEndpoint:async()=>iD(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},sD=`content-length`;function hre(e){return t=>async n=>{let r=n.request;if(zx.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(sD)===-1)try{let n=e(t);r.headers={...r.headers,[sD]:String(n)}}catch{}}return t({...n,request:r})}}var gre={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},cD=e=>({applyToStack:t=>{t.add(hre(e.bodyLengthChecker),gre)}}),_re=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),Sre(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!xre(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},vre=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,yre=/(\d+\.){3}\d+/,bre=/\.\./,xre=e=>vre.test(e)&&!yre.test(e)&&!bre.test(e),Sre=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},Cre=(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},lD=async e=>void 0,uD=e=>{if(typeof e==`object`){if(`url`in e){let t=GC(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 GC(e)},dD=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await lD(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(uD(e)),n.isCustomEndpoint=!0)}let i=await fD(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},fD=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 Cre(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 _re(r),r},wre=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&ST(r,`ENDPOINT_OVERRIDE`,`N`);let a=await dD(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=AS(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})},Tre={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name},pD=(e,t)=>({applyToStack:n=>{n.addRelativeTo(wre({config:e,instructions:t}),Tre)}}),mD=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=Object.assign(e,{endpoint:n==null?void 0:async()=>uD(await jS(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:jS(r??!1),useFipsEndpoint:jS(i??!1)}),o;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!o&&(o=lD(e.serviceId)),o),a},Ere=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`),hD=e=>{let{retryStrategy:t,retryMode:n}=e,r=jS(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await jS(n)()===yE.ADAPTIVE?new HE(r):new VE(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},gD=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},_D=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,vD=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>yD[t.step]-yD[e.step]||bD[t.priority||`normal`]-bD[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=gD(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 gD(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 gD(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of gD(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 ${_D(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=gD(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${_D(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(`"${_D(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${_D(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=gD(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${_D(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(`"${_D(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${_D(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(vD()),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=gD(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(vD());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 _D(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},yD={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},bD={high:3,normal:2,low:1},xD=class{config;middlewareStack=vD();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}},SD=`***SensitiveInformation***`;function CD(e,t){if(t==null)return t;let n=nw.of(e);if(n.getMergedTraits().sensitive)return SD;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return SD}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return SD}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=CD(i,e[t]));return r}return t}var wD=class{middlewareStack=vD();schema;static classBuilder(){return new Dre}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,[Rx]:{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)}},Dre=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 wD{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?CD.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?CD.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},TD=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}},ED=(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),DD=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{}}},OD=Object.values(Lx),Ore=e=>{let t=[];for(let n in Lx){let r=Lx[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();OD.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},kre=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();OD.includes(n)&&(t[n]=e.checksumConstructor())}),t},Are=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),jre=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},kD=e=>Object.assign(Ore(e),Are(e)),AD=e=>Object.assign(kre(e),jre(e)),jD=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]=jD(e[n]));return e},MD=class{trace(){}debug(){}info(){}warn(){}error(){}},Mre=e=>e?.body instanceof ReadableStream;function Nre(e,t){if(Vx.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=(Ow(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 Pre=e=>(t,n)=>async r=>{let i=await e.retryStrategy(),a=await e.maxAttempts();if(Fre(i)){i=i;let o=await i.acquireInitialRetryToken((n.partition_id??``)+(n.__retryLongPoll?`:longpoll`:``)),s=Error(),c=0,l=0,{request:u}=r,d=zx.isInstance(u);for(d&&(u.headers[FE]=Hw());;)try{d&&(u.headers[IE]=`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=Ire(t,e.logger);if(s=Ere(t),d&&Mre(u))throw(n.logger instanceof MD?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 ND(e.$backoff),s.$metadata||={},s.$metadata.attempts=c+1,s.$metadata.totalRetryDelay=l,s}c=o.getRetryCount();let a=o.getRetryDelay();l+=a,await ND(a)}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,i.mode]]),i.retry(t,r)},ND=e=>new Promise(t=>setTimeout(t,e)),Fre=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,Ire=(e,t)=>{let n={error:e,errorType:Lre(e)},r=Nre(e.$response,t);return r&&(n.retryAfterHint=r),n},Lre=e=>kE(e)?`THROTTLING`:AE(e)?`TRANSIENT`:jE(e)?`SERVER_ERROR`:`CLIENT_ERROR`,Rre={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},PD=e=>({applyToStack:t=>{t.add(Pre(e),Rre)}}),FD=e=>Vx.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,ID=e=>new Date(Date.now()+e),zre=(e,t)=>Math.abs(ID(t).getTime()-e)>=3e5,LD=(e,t)=>{let n=Date.parse(e);return zre(n,t)?n-Date.now():t},RD=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},zD=async e=>{let t=RD(`context`,e.context),n=RD(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await RD(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},BD=class{async sign(e,t,n){if(!zx.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await zD(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:ID(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??FD(t.$response);if(n){let r=RD(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=LD(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=FD(e);if(n){let e=RD(`config`,t.config);e.systemClockOffset=LD(n,e.systemClockOffset)}}},Bre=class extends BD{async sign(e,t,n){if(!zx.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 zD(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:ID(r.systemClockOffset),signingRegion:c,signingService:s})}},Vre=(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))},Hre=e=>(e.sigv4aSigningRegionSet=gC(e.sigv4aSigningRegionSet),e),VD=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=Wre(e,Ure(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)?vE(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?gC(e.signer):e.regionInfoProvider?()=>gC(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||RS)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await gC(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||RS)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Ure(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:ET(t,wT,TT):n?gC(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 Wre(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 Gre=async(e,t,n)=>({operation:AS(t).operation,region:await jS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Kre(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var qre=e=>{let t=[];switch(e.operation){default:t.push(Kre(e))}return t},Jre=e=>{let t=VD(e);return Object.assign(t,{authSchemePreference:jS(e.authSchemePreference??[])})},Yre=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),HD={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Xre={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1041.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`}},UD=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??WD.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??WD.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},WD={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`}},GD=e=>()=>Promise.reject(e),KD=typeof TextEncoder==`function`?new TextEncoder:null,qD=e=>{if(typeof e==`string`){if(KD)return KD.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}`)},Zre=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],JD=({defaultsMode:e}={})=>Vre(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(Qre()?`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 ${Zre.join(`, `)}, got ${t}`)}}),Qre=()=>{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},YD=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=ow.for(r),a=ow.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=ED(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 ED(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;tnw.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},XD=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},$re=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]}}},eie=/[&<>"]/g,tie={"&":`&`,"<":`<`,">":`>`,'"':`"`};function nie(e){return e.replace(eie,e=>tie[e])}var rie=/[&"'<>\r\n\u0085\u2028]/g,iie={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function aie(e){return e.replace(rie,e=>iie[e])}var ZD=class{value;constructor(e){this.value=e}toString(){return aie(``+this.value)}},QD=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new ZD(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}="${nie(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},$D;function oie(e){$D||=new DOMParser;let t=$D.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 eO=class extends XD{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new vT(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=nw.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??Jx)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=nw.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 $re(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=oie(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]),jD(i)}return{}}},sie=class extends XD{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=nw.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??xC)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Hw())):(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 cT?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),_T(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(ww(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+=`&${zC(e)}=`}writeValue(e){this.buffer+=zC(e)}},tO=class extends gT{options;serializer;deserializer;mixin=new YD;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 sie(t),this.deserializer=new eO(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`,(BC(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=nw.of(e.output),a={};if(n.statusCode>=300){let i=await RC(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 RC(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=nw.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`}},cie=class extends tO{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}},lie=(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`},uie=class extends XD{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=nw.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??bC)(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=QD.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=QD.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=QD.of(e);if(typeof n!=`string`)if(t instanceof QD||t instanceof ZD)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=QD.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=QD.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=QD.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=QD.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=QD.of(a.xmlName??e.getMemberName());h(t,r,i),n.addChildNode(t)}}else{let r;i||(r=QD.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=QD.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=nw.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??xC)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(_T(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=ww(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=ww(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof cT?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()?Hw():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=nw.of(e),o=new ZD(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]}},die=class extends XD{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new uie(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new eO(this.settings);return e.setSerdeContext(this.serdeContext),e}},fie=class extends hT{codec;serializer;deserializer;mixin=new YD;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new die(t),this.serializer=new xT(this.codec.createSerializer(),t),this.deserializer=new yT(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=nw.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=lie(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=nw.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}},nO=`ref`,rO=-1,iO=!0,aO=`isSet`,oO=`PartitionResult`,sO=`booleanEquals`,cO=`getAttr`,lO={[nO]:`Endpoint`},uO={[nO]:oO},dO={},fO=[{[nO]:`Region`}],pO={conditions:[[aO,[lO]],[aO,fO],[`aws.partition`,fO,oO],[sO,[{[nO]:`UseFIPS`},iO]],[sO,[{[nO]:`UseDualStack`},iO]],[sO,[{fn:cO,argv:[uO,`supportsDualStack`]},iO]],[sO,[{fn:cO,argv:[uO,`supportsFIPS`]},iO]],[`stringEquals`,[{fn:cO,argv:[uO,`name`]},`aws-us-gov`]]],results:[[rO],[rO,`Invalid Configuration: FIPS and custom endpoint are not supported`],[rO,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[lO,dO],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,dO],[rO,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,dO],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,dO],[rO,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,dO],[rO,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,dO],[rO,`Invalid Configuration: Missing Region`]]},pie=2,mO=1e8,mie=new Int32Array([-1,1,-1,0,13,3,1,4,mO+12,2,5,mO+12,3,8,6,4,7,mO+11,5,mO+9,mO+10,4,11,9,6,10,mO+8,7,mO+6,mO+7,5,12,mO+5,6,mO+4,mO+5,3,mO+1,14,4,mO+2,mO+3]),hie=kT.from(mie,pie,pO.conditions,pO.results),gie=new AT({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),_ie=(e,t={})=>gie.get(e,()=>cE(hie,{endpointParams:e,logger:t.logger}));PT.aws=_E;var vie=class e extends TD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},yie=`AllAvailabilityZones`,bie=`AttributeBooleanValue`,xie=`AssociateCarrierIpAddress`,Sie=`AdditionalFlexibleNetworkInterfaces`,Cie=`AvailableIpAddressCount`,wie=`AssignIpv6AddressOnCreation`,Tie=`AttachInternetGateway`,Eie=`AttachInternetGatewayRequest`,hO=`AdditionalInfo`,gO=`AssociationId`,_O=`AttachmentId`,Die=`AmiLaunchIndex`,Oie=`AttachmentLimitType`,kie=`AssociatePublicIpAddress`,Aie=`AmazonProvidedIpv6CidrBlock`,jie=`AutoRecoverySupported`,Mie=`AssociateRouteTableRequest`,Nie=`AssociateRouteTableResult`,Pie=`AssociateRouteTable`,Fie=`AllRegions`,vO=`AssociatedResource`,yO=`AutoRecovery`,bO=`AssociationState`,Iie=`AuthorizeSecurityGroupEgress`,Lie=`AuthorizeSecurityGroupEgressRequest`,Rie=`AuthorizeSecurityGroupEgressResult`,zie=`AuthorizeSecurityGroupIngressRequest`,Bie=`AuthorizeSecurityGroupIngressResult`,Vie=`AuthorizeSecurityGroupIngress`,xO=`AmdSevSnp`,Hie=`ArchitectureTypeList`,SO=`AttachTime`,Uie=`AttachVolumeRequest`,Wie=`AttributeValue`,Gie=`AttachVolume`,CO=`AvailabilityZone`,Kie=`AvailabilityZoneGeography`,qie=`AvailabilityZoneGeographyList`,wO=`AvailabilityZoneId`,Jie=`AvailabilityZoneList`,Yie=`AvailabilityZoneMessage`,Xie=`AvailabilityZoneMessageList`,Zie=`AvailabilityZoneSubGeography`,Qie=`AvailabilityZoneSubGeographyList`,$ie=`AvailabilityZones`,TO=`Accelerators`,eae=`Affinity`,EO=`Arn`,DO=`Architecture`,tae=`Associations`,OO=`Association`,nae=`Attribute`,kO=`Attachment`,AO=`Attachments`,rae=`BlobAttributeValue`,iae=`BaselineBandwidthInGbps`,jO=`BaselineBandwidthInMbps`,MO=`BlockDeviceMapping`,aae=`BlockDeviceMappingList`,oae=`BlockDeviceMappingRequestList`,NO=`BlockDeviceMappings`,sae=`BlockDurationMinutes`,PO=`BaselineIops`,FO=`BootMode`,cae=`BootModeTypeList`,lae=`BareMetal`,IO=`BlockPublicAccessStates`,uae=`BurstablePerformanceSupported`,LO=`BaselineThroughputInMBps`,RO=`BandwidthWeighting`,dae=`BandwidthWeightingTypeList`,fae=`BandwidthWeightings`,zO=`CidrBlock`,pae=`CidrBlockAssociationSet`,mae=`CapacityBlockId`,hae=`CidrBlockState`,gae=`CoreCountList`,BO=`CoreCount`,_ae=`CpuCredits`,VO=`CompletionDurationMinutes`,vae=`CreationDate`,HO=`CarrierGatewayId`,yae=`CurrentGeneration`,bae=`CarrierIp`,xae=`CurrentInstanceBootMode`,Sae=`CreateInternetGateway`,Cae=`CreateInternetGatewayRequest`,wae=`CreateInternetGatewayResult`,Tae=`CreateImageRequest`,Eae=`CreateImageResult`,UO=`CidrIp`,WO=`CidrIpv6`,GO=`CidrIpv4`,Dae=`CoreInfo`,Oae=`CreateImage`,kae=`CreateKeyPair`,Aae=`CreateKeyPairRequest`,KO=`CoreNetworkArn`,qO=`CpuOptions`,jae=`CustomerOwnedIp`,Mae=`CustomerOwnedIpv4Pool`,Nae=`CpuOptionsRequest`,Pae=`CreatePlacementGroup`,Fae=`CreatePlacementGroupRequest`,Iae=`CreatePlacementGroupResult`,JO=`CapacityReservationId`,YO=`CapacityReservationPreference`,Lae=`CreateRouteRequest`,XO=`CapacityReservationResourceGroupArn`,Rae=`CreateRouteResult`,zae=`CapacityReservationSpecificationResponse`,ZO=`CapacityReservationSpecification`,QO=`CapacityReservationTarget`,Bae=`CapacityReservationTargetResponse`,Vae=`CreateRouteTableRequest`,Hae=`CreateRouteTableResult`,Uae=`CreateRouteTable`,Wae=`CreateRoute`,Gae=`CreateSecurityGroup`,Kae=`CreateSecurityGroupRequest`,qae=`CreateSecurityGroupResult`,Jae=`CopySnapshotRequest`,Yae=`CopySnapshotRequestPSU`,Xae=`CopySnapshotResult`,Zae=`CreateSnapshotRequest`,Qae=`CreateSubnetRequest`,$ae=`CreateSubnetResult`,eoe=`CreditSpecificationRequest`,toe=`CopySnapshot`,noe=`CreditSpecification`,roe=`CreateSnapshot`,ioe=`CreateSubnet`,aoe=`CurrentState`,$O=`ClientToken`,ek=`ConnectionTrackingConfiguration`,ooe=`ConnectionTrackingSpecification`,soe=`ConnectionTrackingSpecificationRequest`,coe=`ConnectionTrackingSpecificationResponse`,loe=`CompletionTime`,tk=`CreateTime`,uoe=`CreateVolumeRequest`,doe=`CreateVpcRequest`,foe=`CreateVpcResult`,poe=`CreateVolume`,moe=`CreateVpc`,nk=`Code`,rk=`Configured`,ik=`Count`,ak=`DisableApiStop`,ok=`DisableApiTermination`,hoe=`DestinationAvailabilityZone`,goe=`DescribeAvailabilityZonesRequest`,_oe=`DescribeAvailabilityZonesResult`,voe=`DescribeAvailabilityZones`,sk=`DestinationCidrBlock`,yoe=`DefaultConnectionTrackingConfiguration`,boe=`DefaultCores`,xoe=`DataEncryptionKeyId`,Soe=`DefaultEnaQueueCountPerInterface`,Coe=`DefaultForAz`,woe=`DedicatedHostsSupported`,ck=`DeviceIndex`,lk=`DestinationIpv6CidrBlock`,Toe=`DescribeInternetGatewaysRequest`,Eoe=`DescribeInternetGatewaysResult`,Doe=`DescribeInternetGateways`,Ooe=`DiskInfoList`,koe=`DescribeImagesRequest`,Aoe=`DescribeImagesResult`,joe=`DescribeInstancesRequest`,Moe=`DescribeInstancesResult`,Noe=`DescribeInstanceTypesRequest`,Poe=`DescribeInstanceTypesResult`,Foe=`DescribeInstanceTypes`,Ioe=`DescribeImages`,Loe=`DescribeInstances`,Roe=`DiskInfo`,zoe=`DeleteKeyPair`,Boe=`DeleteKeyPairRequest`,Voe=`DeleteKeyPairResult`,Hoe=`DescribeKeyPairsRequest`,Uoe=`DescribeKeyPairsResult`,Woe=`DescribeKeyPairs`,uk=`DeviceName`,Goe=`DefaultNetworkCardIndex`,Koe=`DestinationOutpostArn`,qoe=`DhcpOptionsId`,dk=`DeleteOnTermination`,Joe=`DeletePlacementGroup`,Yoe=`DeletePlacementGroupRequest`,Xoe=`DescribePlacementGroupsRequest`,Zoe=`DescribePlacementGroupsResult`,Qoe=`DescribePlacementGroups`,fk=`DestinationPrefixListId`,$oe=`DeregistrationProtection`,pk=`DryRun`,ese=`DescribeRegionsRequest`,tse=`DescribeRegionsResult`,nse=`DescribeRouteTablesRequest`,rse=`DescribeRouteTablesResult`,ise=`DescribeRouteTables`,ase=`DestinationRegion`,ose=`DescribeRegions`,sse=`DeleteSecurityGroup`,cse=`DeleteSecurityGroupRequest`,lse=`DeleteSecurityGroupResult`,use=`DescribeSecurityGroupsRequest`,dse=`DescribeSecurityGroupsResult`,fse=`DescribeSecurityGroups`,pse=`DeleteSnapshotRequest`,mse=`DeleteSubnetRequest`,hse=`DescribeSnapshotsRequest`,gse=`DescribeSnapshotsResult`,_se=`DescribeSubnetsRequest`,vse=`DescribeSubnetsResult`,yse=`DeleteSnapshot`,bse=`DeleteSubnet`,xse=`DescribeSnapshots`,Sse=`DescribeSubnets`,Cse=`DefaultTcpEstablishedTimeout`,wse=`DefaultThreadsPerCore`,Tse=`DeprecationTime`,Ese=`DefaultUdpStreamTimeout`,Dse=`DefaultUdpTimeout`,Ose=`DefaultVCpus`,kse=`DeleteVolumeRequest`,Ase=`DeleteVpcRequest`,jse=`DescribeVolumesRequest`,Mse=`DescribeVolumesResult`,Nse=`DescribeVpcsRequest`,Pse=`DescribeVpcsResult`,Fse=`DetachVolumeRequest`,Ise=`DeleteVolume`,Lse=`DeleteVpc`,Rse=`DescribeVolumes`,zse=`DescribeVpcs`,Bse=`DetachVolume`,mk=`Description`,hk=`Device`,Vse=`Disks`,Hse=`EbsBlockDevice`,Use=`ExecutableByStringList`,gk=`ExecutableBy`,_k=`EbsCardIndex`,Wse=`EbsCardInfoList`,Gse=`EbsCardInfo`,Kse=`EbsCards`,qse=`EncryptionControl`,Jse=`EnableDns64`,Yse=`ElasticFileSystem`,Xse=`ElasticFileSystemExclusion`,Zse=`ElasticGpuAssociation`,Qse=`ElasticGpuAssociationId`,$se=`ElasticGpuAssociationList`,ece=`ElasticGpuAssociationState`,tce=`ElasticGpuAssociationTime`,nce=`ElasticGpuAssociations`,rce=`ElasticGpuId`,vk=`ElasticGpuSpecification`,ice=`ElasticGpuSpecifications`,yk=`ElasticInferenceAccelerator`,ace=`ElasticInferenceAcceleratorAssociation`,oce=`ElasticInferenceAcceleratorAssociationId`,sce=`ElasticInferenceAcceleratorAssociationList`,cce=`ElasticInferenceAcceleratorAssociationState`,lce=`ElasticInferenceAcceleratorAssociationTime`,uce=`ElasticInferenceAcceleratorArn`,dce=`ElasticInferenceAcceleratorAssociations`,bk=`ElasticInferenceAccelerators`,fce=`EbsInstanceBlockDevice`,pce=`EbsInstanceBlockDeviceSpecification`,mce=`EncryptionInTransitSupported`,xk=`EbsInfo`,Sk=`EfaInfo`,hce=`EnableLniAtDeviceIndex`,Ck=`EbsOptimized`,wk=`EbsOptimizedInfo`,gce=`EgressOnlyInternetGateway`,_ce=`EgressOnlyInternetGatewayExclusion`,Tk=`EgressOnlyInternetGatewayId`,vce=`EnclaveOptionsRequest`,yce=`EbsOptimizedSupport`,Ek=`EnclaveOptions`,bce=`EnablePrimaryIpv6`,Dk=`EnaQueueCount`,Ok=`EnableResourceNameDnsAAAARecord`,kk=`EnableResourceNameDnsARecord`,Ak=`EnaSrdEnabled`,jk=`EnaSrdSpecification`,xce=`EnaSrdSpecificationRequest`,Sce=`EnaSrdSupported`,Mk=`EnaSrdUdpEnabled`,Nk=`EnaSrdUdpSpecification`,Cce=`EnaSrdUdpSpecificationRequest`,wce=`EfaSupported`,Pk=`EncryptionSupport`,Fk=`EnaSupport`,Tce=`EndTime`,Ece=`ExecutableUsers`,Ik=`Ebs`,Lk=`Enabled`,Rk=`Encrypted`,Dce=`Endpoint`,zk=`Force`,Oce=`FpgaDeviceInfo`,kce=`FpgaDeviceInfoList`,Ace=`FpgaDeviceMemoryInfo`,jce=`FlexibleEnaQueuesSupport`,Bk=`FpgaInfo`,Mce=`FilterList`,Vk=`FromPort`,Nce=`FastRestored`,Pce=`FullSnapshotSizeInBytes`,Hk=`FreeTierEligible`,Uk=`Filters`,Wk=`Filter`,Fce=`Fpgas`,Gk=`Groups`,Ice=`GroupArn`,Lce=`GetConsoleOutput`,Rce=`GetConsoleOutputRequest`,zce=`GetConsoleOutputResult`,Bce=`GroupDescription`,Vce=`GpuDeviceInfo`,Hce=`GpuDeviceInfoList`,Uce=`GpuDeviceMemoryInfo`,Kk=`GatewayId`,Wce=`GroupIdentifierList`,Gce=`GroupIdStringList`,qk=`GpuInfo`,Jk=`GroupId`,Yk=`GroupIds`,Kce=`GroupIdentifier`,qce=`GroupLongName`,Xk=`GroupName`,Jce=`GroupNameStringList`,Zk=`GroupNames`,Yce=`GroupOwnerId`,Xce=`GpuPartitionSize`,Qk=`Geography`,Zce=`Gpus`,Qce=`HiddenByDefault`,$k=`HttpEndpoint`,$ce=`HostId`,eA=`HibernationOptions`,ele=`HibernationOptionsRequest`,tA=`HttpProtocolIpv6`,nA=`HttpPutResponseHopLimit`,tle=`HostResourceGroupArn`,nle=`HibernationSupported`,rA=`HttpTokens`,iA=`HostnameType`,rle=`Hibernate`,aA=`Hypervisor`,ile=`Id`,oA=`Ipv6Addresses`,sA=`Ipv6AddressAttribute`,cA=`Ipv6AddressCount`,ale=`InstanceAttachmentEnaSrdSpecification`,ole=`InstanceAttachmentEnaSrdUdpSpecification`,lA=`InferenceAcceleratorInfo`,sle=`Ipv4AddressesPerInterface`,cle=`Ipv6AddressesPerInterface`,lle=`Ipv4AddressesPerSecondaryInterface`,ule=`ImageAllowed`,dle=`IpAddress`,uA=`Ipv6Address`,fle=`InstanceBlockDeviceMapping`,ple=`InstanceBlockDeviceMappingList`,mle=`InstanceBlockDeviceMappingSpecification`,hle=`InstanceBlockDeviceMappingSpecificationList`,dA=`Ipv6CidrBlock`,fA=`Ipv6CidrBlockAssociationSet`,gle=`Ipv6CidrBlockNetworkBorderGroup`,pA=`Ipv6CidrBlockState`,_le=`IncludeDeprecated`,vle=`InferenceDeviceInfo`,yle=`InferenceDeviceInfoList`,ble=`InferenceDeviceMemoryInfo`,xle=`IncludeDisabled`,Sle=`IsDefault`,mA=`IsEgress`,hA=`InternetGateway`,Cle=`InternetGatewayAttachment`,wle=`InternetGatewayAttachmentList`,Tle=`InternetGatewayBlockMode`,Ele=`InternetGatewayExclusion`,gA=`InternetGatewayId`,Dle=`InternetGatewayIdList`,Ole=`InternetGatewayIds`,kle=`InternetGatewayList`,Ale=`InternetGateways`,_A=`InstanceId`,jle=`InstanceIpv6Address`,Mle=`InstanceIpv6AddressList`,Nle=`InstanceInterruptionBehavior`,vA=`IamInstanceProfile`,yA=`Ipv6IpamPoolId`,bA=`Ipv4IpamPoolId`,Ple=`InstanceIpv4PrefixList`,Fle=`InstanceIpv6PrefixList`,Ile=`IamInstanceProfileSpecification`,Lle=`InstanceIpv4Prefix`,Rle=`InstanceIpv6Prefix`,xA=`InstanceInitiatedShutdownBehavior`,zle=`ImageIdStringList`,Ble=`InstanceIdStringList`,SA=`ImageId`,CA=`ImageIds`,wA=`InstanceIds`,TA=`ImportKeyPair`,EA=`ImportKeyPairRequest`,DA=`ImportKeyPairResult`,OA=`ImageLocation`,kA=`ImageList`,AA=`InstanceLifecycle`,jA=`InstanceList`,MA=`InstanceMaintenanceOptions`,NA=`InstanceMaintenanceOptionsRequest`,PA=`InstanceMarketOptionsRequest`,FA=`InstanceMetadataOptionsRequest`,IA=`InstanceMetadataOptionsResponse`,LA=`InstanceMarketOptions`,RA=`IncludeManagedResources`,zA=`InstanceMetadataTags`,BA=`Ipv6Native`,VA=`InstanceNetworkInterface`,HA=`InstanceNetworkInterfaceAssociation`,UA=`InstanceNetworkInterfaceAttachment`,WA=`InstanceNetworkInterfaceList`,GA=`InstanceNetworkInterfaceSpecification`,KA=`InstanceNetworkInterfaceSpecificationList`,qA=`Ipv6NetmaskLength`,JA=`Ipv4NetmaskLength`,YA=`InstanceNetworkPerformanceOptions`,XA=`InstanceNetworkPerformanceOptionsRequest`,ZA=`ImageOwnerAlias`,QA=`IpOwnerId`,$A=`InstanceOwnerId`,ej=`InstanceOwningService`,tj=`Ipv6PrefixCount`,nj=`Ipv4PrefixCount`,rj=`IpPermissionsEgress`,ij=`InstancePrivateIpAddress`,aj=`InstancePrivateIpAddressList`,oj=`IsPrimaryIpv6`,sj=`IncludePublicKey`,cj=`IpPermissionList`,lj=`Ipv4PrefixList`,uj=`Ipv6PrefixList`,dj=`Ipv4PrefixSpecificationRequest`,fj=`Ipv6PrefixSpecificationRequest`,pj=`Ipv6Prefixes`,mj=`IpPermissions`,hj=`IpPermission`,gj=`IpProtocol`,_j=`Ipv6Prefix`,vj=`Ipv6Pool`,yj=`Ipv4Prefixes`,bj=`Ipv4Prefix`,xj=`IpRangeList`,Sj=`Ipv6RangeList`,Cj=`IpRanges`,wj=`IpRange`,Tj=`Ipv6Ranges`,Ej=`Ipv6Range`,Dj=`InstanceStateChange`,Oj=`InstanceStateChangeList`,kj=`InstanceSecondaryInterfaceAttachment`,Aj=`InstanceSecondaryInterfaceList`,jj=`InstanceSecondaryInterfacePrivateIpAddress`,Mj=`InstanceSecondaryInterfacePrivateIpAddressList`,Nj=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Pj=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Fj=`InstanceSecondaryInterfaceSpecificationListRequest`,Ij=`InstanceSecondaryInterfaceSpecificationRequest`,Lj=`InstanceSecondaryInterface`,Rj=`InstanceStorageInfo`,zj=`InstanceStorageSupported`,Bj=`ImdsSupport`,Vj=`InstanceState`,Hj=`IpSource`,Uj=`Ipv6Supported`,Wj=`InstanceType`,Gj=`InstanceTypeInfoList`,Kj=`InstanceTypeInfo`,qj=`ImageType`,Jj=`InstanceTenancy`,Yj=`InstanceTypes`,Xj=`InterfaceType`,Zj=`Images`,Qj=`Image`,$j=`Instance`,eM=`Instances`,tM=`Iops`,nM=`Key`,rM=`KeyFormat`,iM=`KeyFingerprint`,aM=`KernelId`,oM=`KmsKeyId`,sM=`KeyMaterial`,cM=`KeyName`,lM=`KeyNameStringList`,uM=`KeyNames`,dM=`KeyPairs`,fM=`KeyPairId`,pM=`KeyPairIdStringList`,mM=`KeyPairIds`,hM=`KeyPairInfo`,gM=`KeyPairList`,_M=`KeyPair`,vM=`KeyType`,yM=`Kernel`,bM=`LicenseConfigurationArn`,xM=`LicenseConfigurationRequest`,SM=`LicenseConfiguration`,CM=`LambdaExclusion`,wM=`LogicalGpuCount`,TM=`LocalGatewayId`,EM=`LinkedGroupId`,DM=`LicenseList`,OM=`LastLaunchedTime`,kM=`LicenseSpecifications`,AM=`LicenseSpecificationListRequest`,jM=`LicenseSpecification`,MM=`LaunchTemplate`,NM=`LaunchTemplateId`,PM=`LaunchTemplateName`,FM=`LaunchTemplateSpecification`,IM=`LaunchTime`,LM=`Latest`,RM=`Lambda`,zM=`Licenses`,BM=`Location`,VM=`MultiAttachEnabled`,HM=`MediaAcceleratorInfo`,UM=`MacAddress`,WM=`MaximumBandwidthInMbps`,GM=`MapCustomerOwnedIpOnLaunch`,KM=`MaxCount`,qM=`MinCount`,JM=`MediaDeviceInfo`,YM=`MediaDeviceInfoList`,XM=`MediaDeviceMemoryInfo`,ZM=`MaximumEbsAttachments`,QM=`MaximumEbsCards`,$M=`MaximumEfaInterfaces`,eN=`MaximumEnaQueueCount`,tN=`MaximumEnaQueueCountPerInterface`,nN=`MaximumIops`,rN=`ModifyInstanceAttributeRequest`,iN=`ModifyInstanceAttributeValue`,aN=`ModifyInstanceAttribute`,oN=`MemoryInfo`,sN=`MaximumNetworkCards`,cN=`MaximumNetworkInterfaces`,lN=`MetadataOptions`,uN=`MaintenanceOptions`,dN=`MapPublicIpOnLaunch`,fN=`MaxPrice`,pN=`MaxResults`,mN=`MaximumSecondaryNetworkInterfaces`,hN=`ModificationState`,gN=`MarketType`,_N=`MaximumThroughputInMBps`,vN=`ModifyVolumeRequest`,yN=`ModifyVolumeResult`,bN=`ModifyVolume`,xN=`Main`,SN=`Manufacturer`,CN=`Managed`,wN=`Message`,TN=`Messages`,EN=`Mode`,DN=`Monitoring`,ON=`Name`,kN=`NetworkBorderGroup`,AN=`NetworkCards`,jN=`NetworkCardIndex`,MN=`NetworkCardInfoList`,NN=`NetworkCardInfo`,PN=`NoDevice`,FN=`NeuronDeviceCoreInfo`,IN=`NeuronDeviceInfo`,LN=`NeuronDeviceInfoList`,RN=`NeuronDeviceMemoryInfo`,zN=`NeuronDevices`,BN=`NitroEnclavesSupport`,VN=`NatGateway`,HN=`NatGatewayExclusion`,UN=`NatGatewayId`,WN=`NetworkInterfaceId`,GN=`NetworkInterfaces`,KN=`NetworkInfo`,qN=`NeuronInfo`,JN=`NetworkPerformanceOptions`,YN=`NetworkPerformance`,XN=`NoReboot`,ZN=`NvmeSupport`,QN=`NitroTpmInfo`,$N=`NitroTpmSupport`,eP=`NitroTpmSupportedVersionsList`,tP=`NextToken`,nP=`NestedVirtualization`,rP=`Origin`,iP=`OutpostArn`,aP=`OwnerAlias`,oP=`OwnerId`,sP=`OptInStatus`,cP=`OriginalIops`,lP=`OwnerIds`,uP=`OriginalMultiAttachEnabled`,dP=`OdbNetworkArn`,fP=`OperatorRequest`,pP=`OperatorResponse`,mP=`OwnerStringList`,hP=`OriginalSize`,gP=`OriginalThroughput`,_P=`OriginalVolumeType`,vP=`Operator`,yP=`Output`,bP=`Owners`,xP=`Owner`,SP=`Principal`,CP=`PeakBandwidthInGbps`,wP=`ProductCodeId`,TP=`ProductCodeList`,EP=`ProductCodeType`,DP=`PartitionCount`,OP=`ProductCode`,kP=`ProductCodes`,AP=`PrivateDnsName`,jP=`PrivateDnsNameOptions`,MP=`PrivateDnsNameOptionsOnLaunch`,NP=`PrivateDnsNameOptionsRequest`,PP=`PrivateDnsNameOptionsResponse`,FP=`PublicDnsName`,IP=`PlatformDetails`,LP=`PlacementGroup`,RP=`PlacementGroupInfo`,zP=`PlacementGroupIdStringList`,BP=`PlacementGroupList`,VP=`PlacementGroupStrategyList`,HP=`PlacementGroups`,UP=`PublicIp`,WP=`PrivateIpAddressCount`,GP=`PrivateIpAddressSpecification`,KP=`PrivateIpAddressSpecificationList`,qP=`PrivateIpAddress`,JP=`PrivateIpAddresses`,YP=`PublicIpAddress`,XP=`PublicIpv4Pool`,ZP=`PrimaryIpv6`,QP=`ProcessorInfo`,$P=`PublicKey`,eF=`PublicKeyMaterial`,tF=`PrefixListId`,nF=`PrefixListIdList`,rF=`PrefixListIds`,iF=`PartitionNumber`,aF=`PeeringStatus`,oF=`PhcSupport`,sF=`PreviousState`,cF=`PresignedUrl`,lF=`PropagatingVgw`,uF=`PropagatingVgwList`,dF=`PropagatingVgws`,fF=`ParentZoneId`,pF=`ParentZoneName`,mF=`Platform`,hF=`Placement`,gF=`Primary`,_F=`Progress`,vF=`Public`,yF=`Return`,bF=`RestorableByUserIds`,xF=`RestorableBy`,SF=`RootDeviceName`,CF=`RootDeviceType`,wF=`RootDeviceTypeList`,TF=`RestoreExpiryTime`,EF=`ResourceExclusions`,DF=`RegionGeography`,OF=`ReferencedGroupId`,kF=`ReferencedGroupInfo`,AF=`RegionGeographyList`,jF=`RunInstancesMonitoringEnabled`,MF=`RebootInstancesRequest`,NF=`RunInstancesRequest`,PF=`RunInstancesUserData`,FF=`RamdiskId`,IF=`ReservationId`,LF=`RebootInstances`,RF=`RequesterId`,zF=`RunInstances`,BF=`RegionList`,VF=`ReservationList`,HF=`RouteList`,UF=`RebootMigrationSupport`,WF=`RebootMigration`,GF=`RegionName`,KF=`RegionNameStringList`,qF=`RegionNames`,JF=`ReferencedSecurityGroup`,YF=`RevokeSecurityGroupEgress`,XF=`RevokeSecurityGroupEgressRequest`,ZF=`RevokeSecurityGroupEgressResult`,QF=`RevokeSecurityGroupIngressRequest`,$F=`RevokeSecurityGroupIngressResult`,eI=`RevokeSecurityGroupIngress`,tI=`RevokedSecurityGroupRule`,nI=`RevokedSecurityGroupRuleList`,rI=`RevokedSecurityGroupRules`,iI=`RouteTableAssociation`,aI=`RouteTableAssociationId`,oI=`RouteTableAssociationList`,sI=`RouteTableAssociationState`,cI=`RouteTableId`,lI=`RouteTableIdStringList`,uI=`RouteTableIds`,dI=`RouteTableList`,fI=`ResourceType`,pI=`RouteTable`,mI=`RouteTables`,hI=`Ramdisk`,gI=`Regions`,_I=`Region`,vI=`Reservations`,yI=`Reservation`,bI=`Route`,xI=`Routes`,SI=`SupportedAdditionalProcessorFeatureList`,CI=`SubnetArn`,wI=`SupportedArchitectures`,TI=`SupportedBootModes`,EI=`SubnetCidrBlockState`,DI=`SustainedClockSpeedInGhz`,OI=`SourceDestCheck`,kI=`SpreadDomain`,AI=`SupportedFeatures`,jI=`SubGeography`,MI=`SecurityGroupArn`,NI=`SecurityGroupId`,PI=`SecurityGroupIdStringList`,FI=`SecurityGroupIds`,II=`SecurityGroupList`,LI=`SecurityGroupRules`,RI=`SecurityGroupRuleArn`,zI=`SecurityGroupRuleIds`,BI=`SecurityGroupRuleIdList`,VI=`SecurityGroupRuleId`,HI=`SecurityGroupRuleList`,UI=`SecurityGroupRule`,WI=`SecurityGroupStringList`,GI=`SecurityGroups`,KI=`SecurityGroup`,qI=`SubnetIds`,JI=`SubnetIpv6CidrBlockAssociation`,YI=`SubnetIpv6CidrBlockAssociationSet`,XI=`SizeInGB`,ZI=`SourceImageId`,QI=`SecondaryInterfaceId`,$I=`SourceInstanceId`,eL=`SizeInMiB`,tL=`SpotInstanceRequestId`,nL=`SourceImageRegion`,rL=`StartInstancesRequest`,iL=`StartInstancesResult`,aL=`StopInstancesRequest`,oL=`StopInstancesResult`,sL=`SnapshotIdStringList`,cL=`SubnetIdStringList`,lL=`SpotInstanceType`,uL=`SecondaryInterfaces`,dL=`SecondaryInterface`,fL=`SnapshotId`,pL=`SnapshotIds`,mL=`StartingInstances`,hL=`StartInstances`,gL=`StoppingInstances`,_L=`StopInstances`,vL=`SubnetId`,yL=`SnapshotLocation`,bL=`SnapshotList`,xL=`SpreadLevel`,SL=`SubnetList`,CL=`SpotMarketOptions`,wL=`StatusMessage`,TL=`StateMessage`,EL=`SecondaryNetworkId`,DL=`SriovNetSupport`,OL=`SecondaryNetworkSupported`,kL=`SpotOptions`,AL=`SkipOsShutdown`,jL=`SecondaryPrivateIpAddressCount`,ML=`SupportedRootDeviceTypes`,NL=`SourceRegion`,PL=`StateReason`,FL=`SourceSecurityGroupName`,IL=`SourceSecurityGroupOwnerId`,LL=`SourceSnapshotId`,RL=`SecondarySubnetId`,zL=`SupportedStrategies`,BL=`StartTime`,VL=`StateTransitionReason`,HL=`SseType`,UL=`StorageTier`,WL=`SupportedUsageClasses`,GL=`SensitiveUserData`,KL=`SourceVolumeId`,qL=`SupportedVirtualizationTypes`,JL=`SupportedVersions`,YL=`Size`,XL=`Snapshots`,ZL=`Snapshot`,QL=`State`,$L=`Status`,eR=`Strategy`,tR=`Subnet`,nR=`Subnets`,rR=`Tags`,iR=`TcpEstablishedTimeout`,aR=`TotalFpgaMemoryInMiB`,oR=`TransitGatewayId`,sR=`TotalGpuMemoryInMiB`,cR=`TerminateInstances`,lR=`TotalInferenceMemoryInMiB`,uR=`TerminateInstancesRequest`,dR=`TerminateInstancesResult`,fR=`TargetIops`,pR=`TerminatingInstances`,mR=`TagList`,hR=`TargetMultiAttachEnabled`,gR=`TotalMediaMemoryInMiB`,_R=`TotalNeuronDeviceMemoryInMiB`,vR=`ToPort`,yR=`ThreadsPerCore`,bR=`ThreadsPerCoreList`,xR=`TagSpecifications`,SR=`TotalSizeInGB`,CR=`TagSpecificationList`,wR=`TagSpecification`,TR=`TargetSize`,ER=`TpmSupport`,DR=`TargetThroughput`,OR=`TransferType`,kR=`TargetVolumeType`,AR=`Tag`,jR=`Tenancy`,MR=`Throughput`,NR=`Timestamp`,PR=`Type`,FR=`UsageClassTypeList`,IR=`UserData`,LR=`UserId`,RR=`UserIdGroupPairs`,zR=`UserIdGroupPairList`,BR=`UserIdGroupPair`,VR=`UnknownIpPermissions`,HR=`UsageOperation`,UR=`UsageOperationUpdateTime`,WR=`UdpStreamTimeout`,GR=`UdpTimeout`,KR=`Value`,qR=`VolumeAttachmentList`,JR=`VolumeAttachment`,YR=`VpcCidrBlockAssociation`,XR=`VpcCidrBlockAssociationSet`,ZR=`VpcCidrBlockState`,QR=`VCpuInfo`,$R=`ValidCores`,ez=`VpcEncryptionControl`,tz=`VpcEncryptionControlConfiguration`,nz=`VpcEncryptionControlExclusion`,rz=`VpcEncryptionControlExclusions`,iz=`VpcEncryptionControlId`,az=`VpcEndpointId`,oz=`VpcId`,sz=`VpcIpv6CidrBlockAssociation`,cz=`VpcIpv6CidrBlockAssociationSet`,lz=`VolumeInitializationRate`,uz=`VolumeIdStringList`,dz=`VpcIdStringList`,fz=`VolumeId`,pz=`VolumeIds`,mz=`VpcIds`,hz=`VpcLattice`,gz=`VpcLatticeExclusion`,_z=`VolumeList`,vz=`VpcList`,yz=`VolumeModification`,bz=`VirtualName`,xz=`VolumeOwnerId`,Sz=`VpcPeeringConnectionId`,Cz=`VpcPeeringExclusion`,wz=`VirtualPrivateGateway`,Tz=`VirtualPrivateGatewayExclusion`,Ez=`VpcPeering`,Dz=`ValueStringList`,Oz=`VolumeSize`,kz=`VolumeType`,Az=`VirtualizationTypeList`,jz=`ValidThreadsPerCore`,Mz=`VirtualizationType`,Nz=`ValidUntil`,Pz=`Values`,Fz=`Version`,Iz=`Volumes`,Lz=`Volume`,Rz=`Vpc`,zz=`Vpcs`,Bz=`WorkloadsList`,Vz=`Workloads`,Hz=`ZoneId`,Uz=`ZoneIdStringList`,Wz=`ZoneIds`,Gz=`ZoneName`,Kz=`ZoneNameStringList`,qz=`ZoneNames`,Jz=`ZoneType`,Yz=`additionalFlexibleNetworkInterfaces`,Xz=`availableIpAddressCount`,Zz=`assignIpv6AddressOnCreation`,Qz=`additionalInfo`,$z=`associationId`,eB=`attachmentId`,tB=`amiLaunchIndex`,nB=`attachmentLimitType`,rB=`associatePublicIpAddress`,iB=`amazonProvidedIpv6CidrBlock`,aB=`autoRecoverySupported`,oB=`associatedResource`,sB=`autoRecovery`,cB=`associationState`,lB=`amdSevSnp`,uB=`associationSet`,dB=`attachmentSet`,fB=`attachTime`,pB=`availabilityZone`,mB=`availabilityZoneId`,hB=`availabilityZoneInfo`,gB=`accelerators`,_B=`affinity`,vB=`arn`,yB=`architecture`,bB=`association`,xB=`attachment`,SB=`attribute`,CB=`baselineBandwidthInGbps`,wB=`baselineBandwidthInMbps`,TB=`blockDeviceMapping`,EB=`baselineIops`,DB=`bootMode`,OB=`bareMetal`,kB=`blockPublicAccessStates`,AB=`burstablePerformanceSupported`,jB=`baselineThroughputInMBps`,MB=`bandwidthWeighting`,NB=`bandwidthWeightings`,PB=`cidrBlock`,FB=`cidrBlockAssociationSet`,IB=`capacityBlockId`,LB=`cidrBlockState`,RB=`coreCount`,zB=`completionDurationMinutes`,BB=`creationDate`,VB=`carrierGatewayId`,HB=`currentGeneration`,UB=`carrierIp`,WB=`currentInstanceBootMode`,GB=`cidrIp`,KB=`cidrIpv6`,qB=`cidrIpv4`,JB=`coreInfo`,YB=`coreNetworkArn`,XB=`cpuOptions`,ZB=`customerOwnedIp`,QB=`customerOwnedIpv4Pool`,$B=`capacityReservationId`,eV=`capacityReservationPreference`,tV=`capacityReservationResourceGroupArn`,nV=`capacityReservationSpecification`,rV=`capacityReservationTarget`,iV=`currentState`,aV=`clientToken`,oV=`connectionTrackingConfiguration`,sV=`completionTime`,cV=`createTime`,lV=`code`,uV=`configured`,dV=`count`,fV=`disableApiTermination`,pV=`destinationCidrBlock`,mV=`defaultCores`,hV=`dataEncryptionKeyId`,gV=`defaultEnaQueueCountPerInterface`,_V=`defaultForAz`,vV=`dedicatedHostsSupported`,yV=`deviceIndex`,bV=`destinationIpv6CidrBlock`,xV=`deviceName`,SV=`defaultNetworkCardIndex`,CV=`dnsName`,wV=`dhcpOptionsId`,TV=`deleteOnTermination`,EV=`destinationPrefixListId`,DV=`deregistrationProtection`,OV=`dryRun`,kV=`destinationRegion`,AV=`defaultTcpEstablishedTimeout`,jV=`defaultThreadsPerCore`,MV=`deprecationTime`,NV=`defaultUdpStreamTimeout`,PV=`defaultUdpTimeout`,FV=`defaultVCpus`,IV=`description`,LV=`device`,RV=`disks`,zV=`ebsCardIndex`,BV=`ebsCardSet`,VV=`encryptionControl`,HV=`enableDns64`,UV=`elasticFileSystem`,WV=`elasticGpuAssociationId`,GV=`elasticGpuAssociationState`,KV=`elasticGpuAssociationSet`,qV=`elasticGpuAssociationTime`,JV=`elasticGpuId`,YV=`elasticInferenceAcceleratorArn`,XV=`elasticInferenceAcceleratorAssociationId`,ZV=`elasticInferenceAcceleratorAssociationState`,QV=`elasticInferenceAcceleratorAssociationSet`,$V=`elasticInferenceAcceleratorAssociationTime`,eH=`encryptionInTransitSupported`,tH=`ebsInfo`,nH=`efaInfo`,rH=`enableLniAtDeviceIndex`,iH=`ebsOptimized`,aH=`ebsOptimizedInfo`,oH=`egressOnlyInternetGateway`,sH=`egressOnlyInternetGatewayId`,cH=`ebsOptimizedSupport`,lH=`enclaveOptions`,uH=`enaQueueCount`,B=`ec2QueryName`,dH=`enableResourceNameDnsAAAARecord`,fH=`enableResourceNameDnsARecord`,pH=`enaSrdEnabled`,mH=`enaSrdSpecification`,hH=`enaSrdSupported`,gH=`enaSrdUdpEnabled`,_H=`enaSrdUdpSpecification`,vH=`efaSupported`,yH=`encryptionSupport`,bH=`enaSupport`,xH=`endTime`,SH=`ebs`,CH=`enabled`,wH=`encrypted`,TH=`flexibleEnaQueuesSupport`,EH=`fpgaInfo`,DH=`fromPort`,OH=`fastRestored`,kH=`fullSnapshotSizeInBytes`,AH=`freeTierEligible`,jH=`force`,MH=`fpgas`,NH=`groupArn`,PH=`groupDescription`,FH=`gatewayId`,IH=`gpuInfo`,LH=`groupId`,RH=`groupLongName`,zH=`groupName`,BH=`groupOwnerId`,VH=`gpuPartitionSize`,HH=`geographySet`,UH=`groupSet`,WH=`gpus`,GH=`groups`,KH=`hypervisor`,qH=`hiddenByDefault`,JH=`httpEndpoint`,YH=`hostId`,XH=`hibernationOptions`,ZH=`httpProtocolIpv6`,QH=`httpPutResponseHopLimit`,$H=`hostResourceGroupArn`,eU=`hibernationSupported`,tU=`httpTokens`,nU=`hostnameType`,rU=`id`,iU=`ipv6AddressAttribute`,aU=`ipv6AddressCount`,oU=`inferenceAcceleratorInfo`,sU=`ipv4AddressesPerInterface`,cU=`ipv6AddressesPerInterface`,lU=`ipv4AddressesPerSecondaryInterface`,uU=`ipv6AddressesSet`,dU=`imageAllowed`,fU=`ipAddress`,pU=`ipv6Address`,mU=`ipv6CidrBlock`,hU=`ipv6CidrBlockAssociationSet`,gU=`ipv6CidrBlockState`,_U=`isDefault`,vU=`isEgress`,yU=`internetGateway`,bU=`internetGatewayBlockMode`,xU=`internetGatewayId`,SU=`internetGatewaySet`,CU=`instanceId`,wU=`iamInstanceProfile`,TU=`instanceInitiatedShutdownBehavior`,EU=`imageId`,DU=`imageLocation`,OU=`instanceLifecycle`,kU=`instanceMetadataTags`,AU=`ipv6Native`,jU=`imageOwnerAlias`,MU=`imageOwnerId`,NU=`instanceOwnerId`,PU=`ipOwnerId`,FU=`instanceOwningService`,IU=`ipPermissionsEgress`,LU=`isPrimaryIpv6`,RU=`ipv4PrefixSet`,zU=`ipv6PrefixSet`,BU=`ipProtocol`,VU=`ipPermissions`,HU=`ipv4Prefix`,UU=`ipv6Pool`,WU=`ipv6Prefix`,GU=`isPublic`,KU=`ipRanges`,qU=`ipv6Ranges`,JU=`instanceStorageInfo`,YU=`instanceStorageSupported`,XU=`imagesSet`,ZU=`imageState`,QU=`imdsSupport`,$U=`instancesSet`,eW=`instanceState`,tW=`ipSource`,nW=`ipv6Supported`,rW=`instanceType`,iW=`instanceTypeSet`,aW=`idempotencyToken`,oW=`imageType`,sW=`instanceTenancy`,cW=`interfaceType`,lW=`iops`,V=`item`,uW=`key`,dW=`keyFingerprint`,fW=`kernelId`,pW=`kmsKeyId`,mW=`keyMaterial`,hW=`keyName`,gW=`keyPairId`,_W=`keySet`,vW=`keyType`,yW=`kernel`,bW=`licenseConfigurationArn`,xW=`logicalGpuCount`,SW=`localGatewayId`,CW=`linkedGroupId`,wW=`lastLaunchedTime`,TW=`licenseSet`,EW=`launchTime`,DW=`lambda`,OW=`multiAttachEnabled`,kW=`mediaAcceleratorInfo`,AW=`macAddress`,jW=`maximumBandwidthInMbps`,MW=`mapCustomerOwnedIpOnLaunch`,NW=`maximumEbsAttachments`,PW=`maximumEbsCards`,FW=`maximumEfaInterfaces`,IW=`maximumEnaQueueCount`,LW=`maximumEnaQueueCountPerInterface`,RW=`maximumIops`,zW=`memoryInfo`,BW=`maximumNetworkCards`,VW=`maximumNetworkInterfaces`,HW=`metadataOptions`,UW=`maintenanceOptions`,WW=`mapPublicIpOnLaunch`,GW=`maxResults`,KW=`messageSet`,qW=`maximumSecondaryNetworkInterfaces`,JW=`modificationState`,YW=`maximumThroughputInMBps`,XW=`main`,ZW=`manufacturer`,QW=`managed`,$W=`message`,eG=`monitoring`,tG=`mode`,nG=`name`,rG=`networkBorderGroup`,iG=`networkCards`,aG=`networkCardIndex`,oG=`noDevice`,sG=`neuronDevices`,cG=`nitroEnclavesSupport`,lG=`natGateway`,uG=`natGatewayId`,dG=`networkInterfaceId`,fG=`networkInterfaceSet`,pG=`networkInterface`,mG=`networkInfo`,hG=`neuronInfo`,gG=`networkPerformanceOptions`,_G=`networkPerformance`,vG=`noReboot`,yG=`nvmeSupport`,bG=`nitroTpmInfo`,xG=`nitroTpmSupport`,SG=`nextToken`,CG=`nestedVirtualization`,wG=`origin`,TG=`outpostArn`,EG=`ownerAlias`,DG=`ownerId`,OG=`optInStatus`,kG=`originalIops`,AG=`originalMultiAttachEnabled`,jG=`odbNetworkArn`,MG=`originalSize`,NG=`originalThroughput`,PG=`originalVolumeType`,FG=`operator`,IG=`output`,LG=`principal`,RG=`peakBandwidthInGbps`,zG=`productCodes`,BG=`partitionCount`,VG=`productCode`,HG=`privateDnsNameOptions`,UG=`privateDnsNameOptionsOnLaunch`,WG=`privateDnsName`,GG=`publicDnsName`,KG=`platformDetails`,qG=`placementGroup`,JG=`placementGroupInfo`,YG=`placementGroupSet`,XG=`publicIp`,ZG=`privateIpAddressesSet`,QG=`privateIpAddressSet`,$G=`privateIpAddress`,eK=`publicIpv4Pool`,tK=`processorInfo`,nK=`publicKey`,rK=`publicKeyMaterial`,iK=`prefixListId`,aK=`prefixListIds`,oK=`partitionNumber`,sK=`peeringStatus`,cK=`phcSupport`,lK=`previousState`,uK=`presignedUrl`,dK=`propagatingVgwSet`,fK=`parentZoneId`,pK=`parentZoneName`,mK=`platform`,hK=`placement`,gK=`primary`,_K=`progress`,vK=`return`,yK=`rootDeviceName`,bK=`rootDeviceType`,xK=`restoreExpiryTime`,SK=`regionEndpoint`,CK=`resourceExclusions`,wK=`referencedGroupId`,TK=`referencedGroupInfo`,EK=`reservationId`,DK=`ramdiskId`,OK=`regionInfo`,kK=`requesterId`,AK=`rebootMigrationSupport`,jK=`rebootMigration`,MK=`regionName`,NK=`revokedSecurityGroupRuleSet`,PK=`reservationSet`,FK=`routeSet`,IK=`routeTableAssociationId`,LK=`routeTableId`,RK=`routeTableSet`,zK=`resourceType`,BK=`routeTable`,VK=`ramdisk`,HK=`reason`,UK=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,WK=`supportedArchitectures`,GK=`subnetArn`,KK=`supportedBootModes`,qK=`sustainedClockSpeedInGhz`,JK=`sourceDestCheck`,YK=`spreadDomain`,XK=`supportedFeatures`,ZK=`securityGroupArn`,QK=`securityGroupInfo`,$K=`securityGroupRuleArn`,eq=`securityGroupRuleId`,tq=`securityGroupRuleSet`,nq=`subGeographySet`,rq=`sizeInGB`,iq=`sourceInstanceId`,aq=`secondaryInterfaceId`,oq=`sourceImageId`,sq=`sizeInMiB`,cq=`sourceImageRegion`,lq=`spotInstanceRequestId`,uq=`secondaryInterfaceSet`,dq=`snapshotId`,fq=`subnetId`,pq=`spreadLevel`,mq=`statusMessage`,hq=`stateMessage`,gq=`secondaryNetworkId`,_q=`secondaryNetworkSupported`,vq=`sriovNetSupport`,yq=`secondaryPrivateIpAddressCount`,bq=`supportedRootDeviceTypes`,xq=`stateReason`,Sq=`sourceSecurityGroupName`,Cq=`sourceSecurityGroupOwnerId`,wq=`secondarySubnetId`,Tq=`snapshotSet`,Eq=`subnetSet`,Dq=`supportedStrategies`,Oq=`startTime`,kq=`sseType`,Aq=`storageTier`,jq=`supportedUsageClasses`,Mq=`sourceVolumeId`,Nq=`supportedVirtualizationTypes`,Pq=`supportedVersions`,Fq=`size`,Iq=`state`,Lq=`status`,Rq=`strategy`,zq=`subnet`,Bq=`tenancy`,Vq=`tcpEstablishedTimeout`,Hq=`totalFpgaMemoryInMiB`,Uq=`transitGatewayId`,Wq=`totalGpuMemoryInMiB`,Gq=`totalInferenceMemoryInMiB`,Kq=`targetIops`,qq=`targetMultiAttachEnabled`,Jq=`totalMediaMemoryInMiB`,Yq=`totalNeuronDeviceMemoryInMiB`,Xq=`toPort`,Zq=`threadsPerCore`,Qq=`tagSet`,$q=`totalSizeInGB`,eJ=`targetSize`,tJ=`tpmSupport`,nJ=`targetThroughput`,rJ=`transferType`,iJ=`targetVolumeType`,aJ=`throughput`,oJ=`timestamp`,sJ=`type`,cJ=`userData`,lJ=`userId`,uJ=`unknownIpPermissionSet`,dJ=`usageOperation`,fJ=`usageOperationUpdateTime`,pJ=`udpStreamTimeout`,mJ=`udpTimeout`,hJ=`value`,gJ=`vCpuInfo`,_J=`validCores`,vJ=`vpcEncryptionControlId`,yJ=`vpcId`,bJ=`volumeInitializationRate`,xJ=`volumeId`,SJ=`vpcLattice`,CJ=`volumeModification`,wJ=`virtualName`,TJ=`volumeOwnerId`,EJ=`vpcPeeringConnectionId`,DJ=`virtualPrivateGateway`,OJ=`vpcPeering`,kJ=`volumeSet`,AJ=`volumeSize`,jJ=`vpcSet`,MJ=`volumeType`,NJ=`validThreadsPerCore`,PJ=`virtualizationType`,FJ=`version`,IJ=`vpc`,LJ=`workloadSet`,H=`xmlName`,RJ=`zoneId`,zJ=`zoneName`,BJ=`zoneState`,VJ=`zoneType`,U=`com.amazonaws.ec2`,HJ=ow.for(UK),UJ=[-3,UK,`EC2ServiceException`,0,[],[]];HJ.registerError(UJ,vie);var WJ=[HJ],GJ=[0,U,Yae,8,0],KJ=[0,U,iN,8,0],qJ=[0,U,PF,8,0],JJ=[0,U,GL,8,0],YJ=[3,U,Mie,0,[cI,Kk,XP,pk,vL],[[0,{[B]:`RouteTableId`,[H]:LK}],0,0,[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`SubnetId`,[H]:fq}]],1],XJ=[3,U,Nie,0,[gO,bO],[[0,{[B]:`AssociationId`,[H]:$z}],[()=>LQ,{[B]:`AssociationState`,[H]:cB}]]],ZJ=[3,U,Eie,0,[gA,oz,pk],[[0,{[B]:`InternetGatewayId`,[H]:xU}],[0,{[B]:`VpcId`,[H]:yJ}],[2,{[B]:`DryRun`,[H]:OV}]],2],QJ=[3,U,Uie,0,[hk,_A,fz,_k,pk],[0,0,0,1,[2,{[B]:`DryRun`,[H]:OV}]],3],$J=[3,U,bie,0,[KR],[[2,{[B]:`Value`,[H]:hJ}]]],eY=[3,U,Wie,0,[KR],[[0,{[B]:`Value`,[H]:hJ}]]],tY=[3,U,Lie,0,[Jk,xR,pk,FL,IL,gj,Vk,vR,UO,mj],[[0,{[B]:`GroupId`,[H]:LH}],[()=>A1,{[H]:wR}],[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`SourceSecurityGroupName`,[H]:Sq}],[0,{[B]:`SourceSecurityGroupOwnerId`,[H]:Cq}],[0,{[B]:`IpProtocol`,[H]:BU}],[1,{[B]:`FromPort`,[H]:DH}],[1,{[B]:`ToPort`,[H]:Xq}],[0,{[B]:`CidrIp`,[H]:GB}],[()=>s1,{[B]:`IpPermissions`,[H]:VU}]],1],nY=[3,U,Rie,0,[yF,LI],[[2,{[B]:`Return`,[H]:vK}],[()=>O1,{[B]:`SecurityGroupRuleSet`,[H]:tq}]]],rY=[3,U,zie,0,[UO,Vk,Jk,Xk,mj,gj,FL,IL,vR,xR,pk],[0,1,0,0,[()=>s1,0],0,0,0,1,[()=>A1,{[H]:wR}],[2,{[B]:`DryRun`,[H]:OV}]]],iY=[3,U,Bie,0,[yF,LI],[[2,{[B]:`Return`,[H]:vK}],[()=>O1,{[B]:`SecurityGroupRuleSet`,[H]:tq}]]],aY=[3,U,CO,0,[sP,TN,GF,Gz,Hz,Xk,kN,Jz,pF,fF,qce,Qk,jI,QL],[[0,{[B]:`OptInStatus`,[H]:OG}],[()=>y$,{[B]:`MessageSet`,[H]:KW}],[0,{[B]:`RegionName`,[H]:MK}],[0,{[B]:`ZoneName`,[H]:zJ}],[0,{[B]:`ZoneId`,[H]:RJ}],[0,{[B]:`GroupName`,[H]:zH}],[0,{[B]:`NetworkBorderGroup`,[H]:rG}],[0,{[B]:`ZoneType`,[H]:VJ}],[0,{[B]:`ParentZoneName`,[H]:pK}],[0,{[B]:`ParentZoneId`,[H]:fK}],[0,{[B]:`GroupLongName`,[H]:RH}],[()=>_$,{[B]:`GeographySet`,[H]:HH}],[()=>b$,{[B]:`SubGeographySet`,[H]:nq}],[0,{[B]:`ZoneState`,[H]:BJ}]]],oY=[3,U,Kie,0,[ON],[[0,{[B]:`Name`,[H]:nG}]]],sY=[3,U,Yie,0,[wN],[[0,{[B]:`Message`,[H]:$W}]]],cY=[3,U,Zie,0,[ON],[[0,{[B]:`Name`,[H]:nG}]]],lY=[3,U,rae,0,[KR],[[21,{[B]:`Value`,[H]:hJ}]]],uY=[3,U,MO,0,[Ik,PN,uk,bz],[[()=>OX,{[B]:`Ebs`,[H]:SH}],[0,{[B]:`NoDevice`,[H]:oG}],[0,{[B]:`DeviceName`,[H]:xV}],[0,{[B]:`VirtualName`,[H]:wJ}]]],dY=[3,U,IO,0,[Tle],[[0,{[B]:`InternetGatewayBlockMode`,[H]:bU}]]],fY=[3,U,ZO,0,[YO,QO],[0,()=>mY]],pY=[3,U,zae,0,[YO,QO],[[0,{[B]:`CapacityReservationPreference`,[H]:eV}],[()=>hY,{[B]:`CapacityReservationTarget`,[H]:rV}]]],mY=[3,U,QO,0,[JO,XO],[0,0]],hY=[3,U,Bae,0,[JO,XO],[[0,{[B]:`CapacityReservationId`,[H]:$B}],[0,{[B]:`CapacityReservationResourceGroupArn`,[H]:tV}]]],gY=[3,U,soe,0,[iR,WR,GR],[1,1,1]],_Y=[3,U,coe,0,[iR,WR,GR],[[1,{[B]:`TcpEstablishedTimeout`,[H]:Vq}],[1,{[B]:`UdpStreamTimeout`,[H]:pJ}],[1,{[B]:`UdpTimeout`,[H]:mJ}]]],vY=[3,U,Jae,0,[NL,LL,mk,Koe,ase,Rk,oM,cF,xR,VO,hoe,pk],[0,0,0,0,[0,{[B]:`DestinationRegion`,[H]:kV}],[2,{[B]:`Encrypted`,[H]:wH}],[0,{[B]:`KmsKeyId`,[H]:pW}],[()=>GJ,{[B]:`PresignedUrl`,[H]:uK}],[()=>A1,{[H]:wR}],1,0,[2,{[B]:`DryRun`,[H]:OV}]],2],yY=[3,U,Xae,0,[rR,fL],[[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`SnapshotId`,[H]:dq}]]],bY=[3,U,qO,0,[BO,yR,xO,nP],[[1,{[B]:`CoreCount`,[H]:RB}],[1,{[B]:`ThreadsPerCore`,[H]:Zq}],[0,{[B]:`AmdSevSnp`,[H]:lB}],[0,{[B]:`NestedVirtualization`,[H]:CG}]]],xY=[3,U,Nae,0,[BO,yR,xO,nP],[1,1,0,0]],SY=[3,U,Tae,0,[_A,ON,xR,yL,pk,mk,XN,NO],[[0,{[B]:`InstanceId`,[H]:CU}],[0,{[B]:`Name`,[H]:nG}],[()=>A1,{[H]:wR}],0,[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`Description`,[H]:IV}],[2,{[B]:`NoReboot`,[H]:vG}],[()=>C$,{[B]:`BlockDeviceMapping`,[H]:TB}]],2],CY=[3,U,Eae,0,[SA],[[0,{[B]:`ImageId`,[H]:EU}]]],wY=[3,U,Cae,0,[xR,pk],[[()=>A1,{[H]:wR}],[2,{[B]:`DryRun`,[H]:OV}]]],TY=[3,U,wae,0,[hA],[[()=>RZ,{[B]:`InternetGateway`,[H]:yU}]]],EY=[3,U,Aae,0,[cM,vM,xR,rM,pk],[0,0,[()=>A1,{[H]:wR}],0,[2,{[B]:`DryRun`,[H]:OV}]],1],DY=[3,U,Fae,0,[DP,xR,xL,EM,vP,pk,Xk,eR],[1,[()=>A1,{[H]:wR}],0,0,()=>dQ,[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`GroupName`,[H]:zH}],[0,{[B]:`Strategy`,[H]:Rq}]]],OY=[3,U,Iae,0,[LP],[[()=>mQ,{[B]:`PlacementGroup`,[H]:qG}]]],kY=[3,U,Lae,0,[cI,fk,az,oR,TM,HO,KO,dP,pk,sk,Kk,lk,Tk,_A,WN,Sz,UN],[[0,{[B]:`RouteTableId`,[H]:LK}],0,0,0,0,0,0,0,[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`DestinationCidrBlock`,[H]:pV}],[0,{[B]:`GatewayId`,[H]:FH}],[0,{[B]:`DestinationIpv6CidrBlock`,[H]:bV}],[0,{[B]:`EgressOnlyInternetGatewayId`,[H]:sH}],[0,{[B]:`InstanceId`,[H]:CU}],[0,{[B]:`NetworkInterfaceId`,[H]:dG}],[0,{[B]:`VpcPeeringConnectionId`,[H]:EJ}],[0,{[B]:`NatGatewayId`,[H]:uG}]],1],AY=[3,U,Rae,0,[yF],[[2,{[B]:`Return`,[H]:vK}]]],jY=[3,U,Vae,0,[oz,xR,$O,pk],[[0,{[B]:`VpcId`,[H]:yJ}],[()=>A1,{[H]:wR}],[0,4],[2,{[B]:`DryRun`,[H]:OV}]],1],MY=[3,U,Hae,0,[pI,$O],[[()=>FQ,{[B]:`RouteTable`,[H]:BK}],[0,{[B]:`ClientToken`,[H]:aV}]]],NY=[3,U,Kae,0,[mk,Xk,oz,xR,pk],[[0,{[H]:Bce}],0,0,[()=>A1,{[H]:wR}],[2,{[B]:`DryRun`,[H]:OV}]],2],PY=[3,U,qae,0,[Jk,rR,MI],[[0,{[B]:`GroupId`,[H]:LH}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`SecurityGroupArn`,[H]:ZK}]]],FY=[3,U,Zae,0,[fz,mk,iP,xR,BM,pk],[0,0,0,[()=>A1,{[H]:wR}],0,[2,{[B]:`DryRun`,[H]:OV}]],1],IY=[3,U,Qae,0,[oz,xR,CO,wO,zO,dA,iP,BA,bA,JA,yA,qA,pk],[0,[()=>A1,{[H]:wR}],0,0,0,0,0,2,0,1,0,1,[2,{[B]:`DryRun`,[H]:OV}]],1],LY=[3,U,$ae,0,[tR],[[()=>YQ,{[B]:`Subnet`,[H]:zq}]]],RY=[3,U,uoe,0,[CO,wO,Rk,tM,oM,iP,YL,fL,kz,xR,VM,MR,$O,lz,vP,pk],[0,0,[2,{[B]:`Encrypted`,[H]:wH}],1,0,0,1,0,0,[()=>A1,{[H]:wR}],2,1,[0,4],1,()=>dQ,[2,{[B]:`DryRun`,[H]:OV}]]],zY=[3,U,doe,0,[zO,vj,dA,bA,JA,yA,qA,gle,ez,xR,pk,Jj,Aie],[0,0,0,0,1,0,1,0,()=>d$,[()=>A1,{[H]:wR}],[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`InstanceTenancy`,[H]:sW}],[2,{[B]:`AmazonProvidedIpv6CidrBlock`,[H]:iB}]]],BY=[3,U,foe,0,[Rz],[[()=>s$,{[B]:`Vpc`,[H]:IJ}]]],VY=[3,U,eoe,0,[_ae],[0],1],HY=[3,U,yoe,0,[Cse,Dse,Ese],[[1,{[B]:`DefaultTcpEstablishedTimeout`,[H]:AV}],[1,{[B]:`DefaultUdpTimeout`,[H]:PV}],[1,{[B]:`DefaultUdpStreamTimeout`,[H]:NV}]]],UY=[3,U,Boe,0,[cM,fM,pk],[0,0,[2,{[B]:`DryRun`,[H]:OV}]]],WY=[3,U,Voe,0,[yF,fM],[[2,{[B]:`Return`,[H]:vK}],[0,{[B]:`KeyPairId`,[H]:gW}]]],GY=[3,U,Yoe,0,[Xk,pk],[[0,{[B]:`GroupName`,[H]:zH}],[2,{[B]:`DryRun`,[H]:OV}]],1],KY=[3,U,cse,0,[Jk,Xk,pk],[0,0,[2,{[B]:`DryRun`,[H]:OV}]]],qY=[3,U,lse,0,[yF,Jk],[[2,{[B]:`Return`,[H]:vK}],[0,{[B]:`GroupId`,[H]:LH}]]],JY=[3,U,pse,0,[fL,pk],[0,[2,{[B]:`DryRun`,[H]:OV}]],1],YY=[3,U,mse,0,[vL,pk],[0,[2,{[B]:`DryRun`,[H]:OV}]],1],XY=[3,U,kse,0,[fz,pk],[0,[2,{[B]:`DryRun`,[H]:OV}]],1],ZY=[3,U,Ase,0,[oz,pk],[0,[2,{[B]:`DryRun`,[H]:OV}]],1],QY=[3,U,goe,0,[qz,Wz,yie,pk,Uk],[[()=>Sue,{[H]:Gz}],[()=>xue,{[H]:Hz}],2,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}]]],$Y=[3,U,_oe,0,[$ie],[[()=>v$,{[B]:`AvailabilityZoneInfo`,[H]:hB}]]],eX=[3,U,koe,0,[Ece,CA,bP,_le,xle,pN,tP,pk,Uk],[[()=>M$,{[H]:gk}],[()=>z$,{[H]:SA}],[()=>x1,{[H]:xP}],2,2,1,0,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}]]],tX=[3,U,Aoe,0,[tP,Zj],[[0,{[B]:`NextToken`,[H]:SG}],[()=>B$,{[B]:`ImagesSet`,[H]:XU}]]],nX=[3,U,joe,0,[wA,RA,pk,Uk,tP,pN],[[()=>W$,{[H]:_A}],2,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}],[0,{[B]:`NextToken`,[H]:SG}],[1,{[B]:`MaxResults`,[H]:GW}]]],rX=[3,U,Moe,0,[tP,vI],[[0,{[B]:`NextToken`,[H]:SG}],[()=>Jle,{[B]:`ReservationSet`,[H]:PK}]]],iX=[3,U,Noe,0,[pk,Yj,Uk,pN,tP],[2,[64,{[H]:Wj}],[()=>N$,{[H]:Wk}],1,0]],aX=[3,U,Poe,0,[Yj,tP],[[()=>r1,{[B]:`InstanceTypeSet`,[H]:iW}],[0,{[B]:`NextToken`,[H]:SG}]]],oX=[3,U,Toe,0,[tP,pN,pk,Ole,Uk],[0,1,[2,{[B]:`DryRun`,[H]:OV}],[()=>a1,{[B]:`InternetGatewayId`,[H]:xU}],[()=>N$,{[H]:Wk}]]],sX=[3,U,Eoe,0,[Ale,tP],[[()=>o1,{[B]:`InternetGatewaySet`,[H]:SU}],[0,{[B]:`NextToken`,[H]:SG}]]],cX=[3,U,Hoe,0,[uM,mM,sj,pk,Uk],[[()=>f1,{[H]:cM}],[()=>p1,{[H]:fM}],2,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}]]],lX=[3,U,Uoe,0,[dM],[[()=>m1,{[B]:`KeySet`,[H]:_W}]]],uX=[3,U,Xoe,0,[Yk,pk,Zk,Uk],[[()=>S1,{[H]:Jk}],[2,{[B]:`DryRun`,[H]:OV}],[64,{[B]:`GroupName`,[H]:zH}],[()=>N$,{[H]:Wk}]]],dX=[3,U,Zoe,0,[HP],[[()=>C1,{[B]:`PlacementGroupSet`,[H]:YG}]]],fX=[3,U,ese,0,[qF,Fie,pk,Uk],[[()=>qle,{[H]:GF}],2,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}]]],pX=[3,U,tse,0,[gI],[[()=>Kle,{[B]:`RegionInfo`,[H]:OK}]]],mX=[3,U,nse,0,[tP,pN,pk,uI,Uk],[0,1,[2,{[B]:`DryRun`,[H]:OV}],[()=>Qle,{[H]:cI}],[()=>N$,{[H]:Wk}]]],hX=[3,U,rse,0,[mI,tP],[[()=>$le,{[B]:`RouteTableSet`,[H]:RK}],[0,{[B]:`NextToken`,[H]:SG}]]],gX=[3,U,use,0,[Yk,Zk,tP,pN,pk,Uk],[[()=>L$,{[H]:Jk}],[()=>R$,{[H]:Xk}],0,1,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}]]],_X=[3,U,dse,0,[tP,GI],[[0,{[B]:`NextToken`,[H]:SG}],[()=>eue,{[B]:`SecurityGroupInfo`,[H]:QK}]]],vX=[3,U,hse,0,[pN,tP,lP,bF,pL,pk,Uk],[1,0,[()=>x1,{[H]:xP}],[64,{[H]:xF}],[()=>nue,{[H]:fL}],[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}]]],yX=[3,U,gse,0,[tP,XL],[[0,{[B]:`NextToken`,[H]:SG}],[()=>rue,{[B]:`SnapshotSet`,[H]:Tq}]]],bX=[3,U,_se,0,[Uk,qI,tP,pN,pk],[[()=>N$,{[H]:Wk}],[()=>iue,{[H]:vL}],0,1,[2,{[B]:`DryRun`,[H]:OV}]]],xX=[3,U,vse,0,[tP,nR],[[0,{[B]:`NextToken`,[H]:SG}],[()=>oue,{[B]:`SubnetSet`,[H]:Eq}]]],SX=[3,U,jse,0,[pz,RA,pk,Uk,tP,pN],[[()=>mue,{[H]:fz}],2,[2,{[B]:`DryRun`,[H]:OV}],[()=>N$,{[H]:Wk}],[0,{[B]:`NextToken`,[H]:SG}],[1,{[B]:`MaxResults`,[H]:GW}]]],CX=[3,U,Mse,0,[tP,Iz],[[0,{[B]:`NextToken`,[H]:SG}],[()=>hue,{[B]:`VolumeSet`,[H]:kJ}]]],wX=[3,U,Nse,0,[Uk,mz,tP,pN,pk],[[()=>N$,{[H]:Wk}],[()=>_ue,{[H]:oz}],0,1,[2,{[B]:`DryRun`,[H]:OV}]]],TX=[3,U,Pse,0,[tP,zz],[[0,{[B]:`NextToken`,[H]:SG}],[()=>yue,{[B]:`VpcSet`,[H]:jJ}]]],EX=[3,U,Fse,0,[fz,hk,zk,_A,pk],[0,0,2,0,[2,{[B]:`DryRun`,[H]:OV}]],1],DX=[3,U,Roe,0,[XI,ik,PR],[[1,{[B]:`SizeInGB`,[H]:rq}],[1,{[B]:`Count`,[H]:dV}],[0,{[B]:`Type`,[H]:sJ}]]],OX=[3,U,Hse,0,[dk,tM,fL,Oz,kz,oM,MR,iP,CO,Rk,lz,wO,_k],[[2,{[B]:`DeleteOnTermination`,[H]:TV}],[1,{[B]:`Iops`,[H]:lW}],[0,{[B]:`SnapshotId`,[H]:dq}],[1,{[B]:`VolumeSize`,[H]:AJ}],[0,{[B]:`VolumeType`,[H]:MJ}],[0,{[B]:`KmsKeyId`,[H]:pW}],[1,{[B]:`Throughput`,[H]:aJ}],[0,{[B]:`OutpostArn`,[H]:TG}],[0,{[B]:`AvailabilityZone`,[H]:pB}],[2,{[B]:`Encrypted`,[H]:wH}],1,0,1]],kX=[3,U,Gse,0,[_k,jO,LO,PO,WM,_N,nN],[[1,{[B]:`EbsCardIndex`,[H]:zV}],[1,{[B]:`BaselineBandwidthInMbps`,[H]:wB}],[1,{[B]:`BaselineThroughputInMBps`,[H]:jB}],[1,{[B]:`BaselineIops`,[H]:EB}],[1,{[B]:`MaximumBandwidthInMbps`,[H]:jW}],[1,{[B]:`MaximumThroughputInMBps`,[H]:YW}],[1,{[B]:`MaximumIops`,[H]:RW}]]],AX=[3,U,xk,0,[yce,Pk,wk,ZN,ZM,Oie,QM,Kse],[[0,{[B]:`EbsOptimizedSupport`,[H]:cH}],[0,{[B]:`EncryptionSupport`,[H]:yH}],[()=>NX,{[B]:`EbsOptimizedInfo`,[H]:aH}],[0,{[B]:`NvmeSupport`,[H]:yG}],[1,{[B]:`MaximumEbsAttachments`,[H]:NW}],[0,{[B]:`AttachmentLimitType`,[H]:nB}],[1,{[B]:`MaximumEbsCards`,[H]:PW}],[()=>D$,{[B]:`EbsCardSet`,[H]:BV}]]],jX=[3,U,fce,0,[SO,dk,$L,fz,vO,xz,vP,_k],[[4,{[B]:`AttachTime`,[H]:fB}],[2,{[B]:`DeleteOnTermination`,[H]:TV}],[0,{[B]:`Status`,[H]:Lq}],[0,{[B]:`VolumeId`,[H]:xJ}],[0,{[B]:`AssociatedResource`,[H]:oB}],[0,{[B]:`VolumeOwnerId`,[H]:TJ}],[()=>fQ,{[B]:`Operator`,[H]:FG}],[1,{[B]:`EbsCardIndex`,[H]:zV}]]],MX=[3,U,pce,0,[fz,dk],[[0,{[B]:`VolumeId`,[H]:xJ}],[2,{[B]:`DeleteOnTermination`,[H]:TV}]]],NX=[3,U,wk,0,[jO,LO,PO,WM,_N,nN],[[1,{[B]:`BaselineBandwidthInMbps`,[H]:wB}],[1,{[B]:`BaselineThroughputInMBps`,[H]:jB}],[1,{[B]:`BaselineIops`,[H]:EB}],[1,{[B]:`MaximumBandwidthInMbps`,[H]:jW}],[1,{[B]:`MaximumThroughputInMBps`,[H]:YW}],[1,{[B]:`MaximumIops`,[H]:RW}]]],PX=[3,U,Sk,0,[$M],[[1,{[B]:`MaximumEfaInterfaces`,[H]:FW}]]],FX=[3,U,Zse,0,[rce,Qse,ece,tce],[[0,{[B]:`ElasticGpuId`,[H]:JV}],[0,{[B]:`ElasticGpuAssociationId`,[H]:WV}],[0,{[B]:`ElasticGpuAssociationState`,[H]:GV}],[0,{[B]:`ElasticGpuAssociationTime`,[H]:qV}]]],IX=[3,U,vk,0,[PR],[0],1],LX=[3,U,yk,0,[PR,ik],[0,1],1],RX=[3,U,ace,0,[uce,oce,cce,lce],[[0,{[B]:`ElasticInferenceAcceleratorArn`,[H]:YV}],[0,{[B]:`ElasticInferenceAcceleratorAssociationId`,[H]:XV}],[0,{[B]:`ElasticInferenceAcceleratorAssociationState`,[H]:ZV}],[4,{[B]:`ElasticInferenceAcceleratorAssociationTime`,[H]:$V}]]],zX=[3,U,xce,0,[Ak,Nk],[2,()=>BX]],BX=[3,U,Cce,0,[Mk],[2]],VX=[3,U,Ek,0,[Lk],[[2,{[B]:`Enabled`,[H]:CH}]]],HX=[3,U,vce,0,[Lk],[2]],UX=[3,U,Wk,0,[ON,Pz],[0,[()=>due,{[H]:KR}]]],WX=[3,U,Oce,0,[ON,SN,ik,oN],[[0,{[B]:`Name`,[H]:nG}],[0,{[B]:`Manufacturer`,[H]:ZW}],[1,{[B]:`Count`,[H]:dV}],[()=>GX,{[B]:`MemoryInfo`,[H]:zW}]]],GX=[3,U,Ace,0,[eL],[[1,{[B]:`SizeInMiB`,[H]:sq}]]],KX=[3,U,Bk,0,[Fce,aR],[[()=>P$,{[B]:`Fpgas`,[H]:MH}],[1,{[B]:`TotalFpgaMemoryInMiB`,[H]:Hq}]]],qX=[3,U,Rce,0,[_A,LM,pk],[0,2,[2,{[B]:`DryRun`,[H]:OV}]],1],JX=[3,U,zce,0,[_A,NR,yP],[[0,{[B]:`InstanceId`,[H]:CU}],[4,{[B]:`Timestamp`,[H]:oJ}],[0,{[B]:`Output`,[H]:IG}]]],YX=[3,U,Vce,0,[ON,SN,ik,wM,Xce,Vz,oN],[[0,{[B]:`Name`,[H]:nG}],[0,{[B]:`Manufacturer`,[H]:ZW}],[1,{[B]:`Count`,[H]:dV}],[1,{[B]:`LogicalGpuCount`,[H]:xW}],[1,{[B]:`GpuPartitionSize`,[H]:VH}],[()=>bue,{[B]:`WorkloadSet`,[H]:LJ}],[()=>XX,{[B]:`MemoryInfo`,[H]:zW}]]],XX=[3,U,Uce,0,[eL],[[1,{[B]:`SizeInMiB`,[H]:sq}]]],ZX=[3,U,qk,0,[Zce,sR],[[()=>F$,{[B]:`Gpus`,[H]:WH}],[1,{[B]:`TotalGpuMemoryInMiB`,[H]:Wq}]]],QX=[3,U,Kce,0,[Jk,Xk],[[0,{[B]:`GroupId`,[H]:LH}],[0,{[B]:`GroupName`,[H]:zH}]]],$X=[3,U,eA,0,[rk],[[2,{[B]:`Configured`,[H]:uV}]]],eZ=[3,U,ele,0,[rk],[2]],tZ=[3,U,vA,0,[EO,ile],[[0,{[B]:`Arn`,[H]:vB}],[0,{[B]:`Id`,[H]:rU}]]],nZ=[3,U,Ile,0,[EO,ON],[[0,{[B]:`Arn`,[H]:vB}],[0,{[B]:`Name`,[H]:nG}]]],rZ=[3,U,Qj,0,[IP,HR,NO,mk,Fk,aA,ZA,ON,SF,CF,DL,PL,rR,Mz,FO,ER,Tse,Bj,$I,$oe,OM,ule,ZI,nL,Hk,SA,OA,QL,oP,vae,vF,kP,DO,qj,aM,FF,mF],[[0,{[B]:`PlatformDetails`,[H]:KG}],[0,{[B]:`UsageOperation`,[H]:dJ}],[()=>S$,{[B]:`BlockDeviceMapping`,[H]:TB}],[0,{[B]:`Description`,[H]:IV}],[2,{[B]:`EnaSupport`,[H]:bH}],[0,{[B]:`Hypervisor`,[H]:KH}],[0,{[B]:`ImageOwnerAlias`,[H]:jU}],[0,{[B]:`Name`,[H]:nG}],[0,{[B]:`RootDeviceName`,[H]:yK}],[0,{[B]:`RootDeviceType`,[H]:bK}],[0,{[B]:`SriovNetSupport`,[H]:vq}],[()=>KQ,{[B]:`StateReason`,[H]:xq}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`VirtualizationType`,[H]:PJ}],[0,{[B]:`BootMode`,[H]:DB}],[0,{[B]:`TpmSupport`,[H]:tJ}],[0,{[B]:`DeprecationTime`,[H]:MV}],[0,{[B]:`ImdsSupport`,[H]:QU}],[0,{[B]:`SourceInstanceId`,[H]:iq}],[0,{[B]:`DeregistrationProtection`,[H]:DV}],[0,{[B]:`LastLaunchedTime`,[H]:wW}],[2,{[B]:`ImageAllowed`,[H]:dU}],[0,{[B]:`SourceImageId`,[H]:oq}],[0,{[B]:`SourceImageRegion`,[H]:cq}],[2,{[B]:`FreeTierEligible`,[H]:AH}],[0,{[B]:`ImageId`,[H]:EU}],[0,{[B]:`ImageLocation`,[H]:DU}],[0,{[B]:`ImageState`,[H]:ZU}],[0,{[B]:`ImageOwnerId`,[H]:MU}],[0,{[B]:`CreationDate`,[H]:BB}],[2,{[B]:`IsPublic`,[H]:GU}],[()=>w1,{[B]:`ProductCodes`,[H]:zG}],[0,{[B]:`Architecture`,[H]:yB}],[0,{[B]:`ImageType`,[H]:oW}],[0,{[B]:`KernelId`,[H]:fW}],[0,{[B]:`RamdiskId`,[H]:DK}],[0,{[B]:`Platform`,[H]:mK}]]],iZ=[3,U,EA,0,[cM,eF,xR,pk],[[0,{[B]:`KeyName`,[H]:hW}],[21,{[B]:`PublicKeyMaterial`,[H]:rK}],[()=>A1,{[H]:wR}],[2,{[B]:`DryRun`,[H]:OV}]],2],aZ=[3,U,DA,0,[iM,cM,fM,rR],[[0,{[B]:`KeyFingerprint`,[H]:dW}],[0,{[B]:`KeyName`,[H]:hW}],[0,{[B]:`KeyPairId`,[H]:gW}],[()=>k1,{[B]:`TagSet`,[H]:Qq}]]],oZ=[3,U,lA,0,[TO,lR],[[()=>V$,{[B]:`Accelerators`,[H]:gB}],[1,{[B]:`TotalInferenceMemoryInMiB`,[H]:Gq}]]],sZ=[3,U,vle,0,[ik,ON,SN,oN],[[1,{[B]:`Count`,[H]:dV}],[0,{[B]:`Name`,[H]:nG}],[0,{[B]:`Manufacturer`,[H]:ZW}],[()=>cZ,{[B]:`MemoryInfo`,[H]:zW}]]],cZ=[3,U,ble,0,[eL],[[1,{[B]:`SizeInMiB`,[H]:sq}]]],lZ=[3,U,$j,0,[DO,NO,$O,Ck,Fk,aA,vA,AA,nce,dce,GN,iP,SF,CF,GI,OI,tL,DL,PL,rR,Mz,qO,mae,JO,ZO,eA,zM,lN,Ek,FO,IP,HR,UR,jP,uA,ER,uN,xae,JN,vP,uL,_A,SA,QL,AP,FP,VL,cM,Die,kP,Wj,IM,hF,aM,FF,mF,DN,vL,oz,qP,YP],[[0,{[B]:`Architecture`,[H]:yB}],[()=>H$,{[B]:`BlockDeviceMapping`,[H]:TB}],[0,{[B]:`ClientToken`,[H]:aV}],[2,{[B]:`EbsOptimized`,[H]:iH}],[2,{[B]:`EnaSupport`,[H]:bH}],[0,{[B]:`Hypervisor`,[H]:KH}],[()=>tZ,{[B]:`IamInstanceProfile`,[H]:wU}],[0,{[B]:`InstanceLifecycle`,[H]:OU}],[()=>O$,{[B]:`ElasticGpuAssociationSet`,[H]:KV}],[()=>A$,{[B]:`ElasticInferenceAcceleratorAssociationSet`,[H]:QV}],[()=>Y$,{[B]:`NetworkInterfaceSet`,[H]:fG}],[0,{[B]:`OutpostArn`,[H]:TG}],[0,{[B]:`RootDeviceName`,[H]:yK}],[0,{[B]:`RootDeviceType`,[H]:bK}],[()=>I$,{[B]:`GroupSet`,[H]:UH}],[2,{[B]:`SourceDestCheck`,[H]:JK}],[0,{[B]:`SpotInstanceRequestId`,[H]:lq}],[0,{[B]:`SriovNetSupport`,[H]:vq}],[()=>KQ,{[B]:`StateReason`,[H]:xq}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`VirtualizationType`,[H]:PJ}],[()=>bY,{[B]:`CpuOptions`,[H]:XB}],[0,{[B]:`CapacityBlockId`,[H]:IB}],[0,{[B]:`CapacityReservationId`,[H]:$B}],[()=>pY,{[B]:`CapacityReservationSpecification`,[H]:nV}],[()=>$X,{[B]:`HibernationOptions`,[H]:XH}],[()=>h1,{[B]:`LicenseSet`,[H]:TW}],[()=>xZ,{[B]:`MetadataOptions`,[H]:HW}],[()=>VX,{[B]:`EnclaveOptions`,[H]:lH}],[0,{[B]:`BootMode`,[H]:DB}],[0,{[B]:`PlatformDetails`,[H]:KG}],[0,{[B]:`UsageOperation`,[H]:dJ}],[4,{[B]:`UsageOperationUpdateTime`,[H]:fJ}],[()=>yQ,{[B]:`PrivateDnsNameOptions`,[H]:HG}],[0,{[B]:`Ipv6Address`,[H]:pU}],[0,{[B]:`TpmSupport`,[H]:tJ}],[()=>_Z,{[B]:`MaintenanceOptions`,[H]:UW}],[0,{[B]:`CurrentInstanceBootMode`,[H]:WB}],[()=>EZ,{[B]:`NetworkPerformanceOptions`,[H]:gG}],[()=>fQ,{[B]:`Operator`,[H]:FG}],[()=>Q$,{[B]:`SecondaryInterfaceSet`,[H]:uq}],[0,{[B]:`InstanceId`,[H]:CU}],[0,{[B]:`ImageId`,[H]:EU}],[()=>PZ,{[B]:`InstanceState`,[H]:eW}],[0,{[B]:`PrivateDnsName`,[H]:WG}],[0,{[B]:`DnsName`,[H]:CV}],[0,{[B]:`Reason`,[H]:HK}],[0,{[B]:`KeyName`,[H]:hW}],[1,{[B]:`AmiLaunchIndex`,[H]:tB}],[()=>w1,{[B]:`ProductCodes`,[H]:zG}],[0,{[B]:`InstanceType`,[H]:rW}],[4,{[B]:`LaunchTime`,[H]:EW}],[()=>pQ,{[B]:`Placement`,[H]:hK}],[0,{[B]:`KernelId`,[H]:fW}],[0,{[B]:`RamdiskId`,[H]:DK}],[0,{[B]:`Platform`,[H]:mK}],[()=>rQ,{[B]:`Monitoring`,[H]:eG}],[0,{[B]:`SubnetId`,[H]:fq}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`PrivateIpAddress`,[H]:$G}],[0,{[B]:`IpAddress`,[H]:fU}]]],uZ=[3,U,ale,0,[Ak,Nk],[[2,{[B]:`EnaSrdEnabled`,[H]:pH}],[()=>dZ,{[B]:`EnaSrdUdpSpecification`,[H]:_H}]]],dZ=[3,U,ole,0,[Mk],[[2,{[B]:`EnaSrdUdpEnabled`,[H]:gH}]]],fZ=[3,U,fle,0,[uk,Ik],[[0,{[B]:`DeviceName`,[H]:xV}],[()=>jX,{[B]:`Ebs`,[H]:SH}]]],pZ=[3,U,mle,0,[uk,Ik,bz,PN],[[0,{[B]:`DeviceName`,[H]:xV}],[()=>MX,{[B]:`Ebs`,[H]:SH}],[0,{[B]:`VirtualName`,[H]:wJ}],[0,{[B]:`NoDevice`,[H]:oG}]]],mZ=[3,U,Lle,0,[bj],[[0,{[B]:`Ipv4Prefix`,[H]:HU}]]],hZ=[3,U,jle,0,[uA,oj],[[0,{[B]:`Ipv6Address`,[H]:pU}],[2,{[B]:`IsPrimaryIpv6`,[H]:LU}]]],gZ=[3,U,Rle,0,[_j],[[0,{[B]:`Ipv6Prefix`,[H]:WU}]]],_Z=[3,U,MA,0,[yO,WF],[[0,{[B]:`AutoRecovery`,[H]:sB}],[0,{[B]:`RebootMigration`,[H]:jK}]]],vZ=[3,U,NA,0,[yO],[0]],yZ=[3,U,PA,0,[gN,kL],[0,()=>UQ]],bZ=[3,U,FA,0,[rA,nA,$k,tA,zA],[0,1,0,0,0]],xZ=[3,U,IA,0,[QL,rA,nA,$k,tA,zA],[[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`HttpTokens`,[H]:tU}],[1,{[B]:`HttpPutResponseHopLimit`,[H]:QH}],[0,{[B]:`HttpEndpoint`,[H]:JH}],[0,{[B]:`HttpProtocolIpv6`,[H]:ZH}],[0,{[B]:`InstanceMetadataTags`,[H]:kU}]]],SZ=[3,U,VA,0,[OO,kO,mk,Gk,oA,UM,WN,oP,AP,qP,JP,OI,$L,vL,oz,Xj,yj,pj,ek,vP],[[()=>CZ,{[B]:`Association`,[H]:bB}],[()=>wZ,{[B]:`Attachment`,[H]:xB}],[0,{[B]:`Description`,[H]:IV}],[()=>I$,{[B]:`GroupSet`,[H]:UH}],[()=>K$,{[B]:`Ipv6AddressesSet`,[H]:uU}],[0,{[B]:`MacAddress`,[H]:AW}],[0,{[B]:`NetworkInterfaceId`,[H]:dG}],[0,{[B]:`OwnerId`,[H]:DG}],[0,{[B]:`PrivateDnsName`,[H]:WG}],[0,{[B]:`PrivateIpAddress`,[H]:$G}],[()=>Z$,{[B]:`PrivateIpAddressesSet`,[H]:ZG}],[2,{[B]:`SourceDestCheck`,[H]:JK}],[0,{[B]:`Status`,[H]:Lq}],[0,{[B]:`SubnetId`,[H]:fq}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`InterfaceType`,[H]:cW}],[()=>G$,{[B]:`Ipv4PrefixSet`,[H]:RU}],[()=>q$,{[B]:`Ipv6PrefixSet`,[H]:zU}],[()=>_Y,{[B]:`ConnectionTrackingConfiguration`,[H]:oV}],[()=>fQ,{[B]:`Operator`,[H]:FG}]]],CZ=[3,U,HA,0,[bae,jae,QA,FP,UP],[[0,{[B]:`CarrierIp`,[H]:UB}],[0,{[B]:`CustomerOwnedIp`,[H]:ZB}],[0,{[B]:`IpOwnerId`,[H]:PU}],[0,{[B]:`PublicDnsName`,[H]:GG}],[0,{[B]:`PublicIp`,[H]:XG}]]],wZ=[3,U,UA,0,[SO,_O,dk,ck,$L,jN,jk,Dk],[[4,{[B]:`AttachTime`,[H]:fB}],[0,{[B]:`AttachmentId`,[H]:eB}],[2,{[B]:`DeleteOnTermination`,[H]:TV}],[1,{[B]:`DeviceIndex`,[H]:yV}],[0,{[B]:`Status`,[H]:Lq}],[1,{[B]:`NetworkCardIndex`,[H]:aG}],[()=>uZ,{[B]:`EnaSrdSpecification`,[H]:mH}],[1,{[B]:`EnaQueueCount`,[H]:uH}]]],TZ=[3,U,GA,0,[kie,dk,mk,ck,Gk,cA,oA,WN,qP,JP,jL,vL,xie,Xj,jN,yj,nj,pj,tj,ZP,jk,ooe,Dk],[[2,{[B]:`AssociatePublicIpAddress`,[H]:rB}],[2,{[B]:`DeleteOnTermination`,[H]:TV}],[0,{[B]:`Description`,[H]:IV}],[1,{[B]:`DeviceIndex`,[H]:yV}],[()=>E1,{[H]:NI}],[1,{[B]:`Ipv6AddressCount`,[H]:aU}],[()=>K$,{[B]:`Ipv6Addresses`,[H]:uU}],[0,{[B]:`NetworkInterfaceId`,[H]:dG}],[0,{[B]:`PrivateIpAddress`,[H]:$G}],[()=>Ule,{[B]:`PrivateIpAddresses`,[H]:ZG}],[1,{[B]:`SecondaryPrivateIpAddressCount`,[H]:yq}],[0,{[B]:`SubnetId`,[H]:fq}],2,0,1,[()=>l1,{[H]:bj}],1,[()=>u1,{[H]:_j}],1,2,()=>zX,()=>gY,1]],EZ=[3,U,YA,0,[RO],[[0,{[B]:`BandwidthWeighting`,[H]:MB}]]],DZ=[3,U,XA,0,[RO],[0]],OZ=[3,U,ij,0,[OO,gF,AP,qP],[[()=>CZ,{[B]:`Association`,[H]:bB}],[2,{[B]:`Primary`,[H]:gK}],[0,{[B]:`PrivateDnsName`,[H]:WG}],[0,{[B]:`PrivateIpAddress`,[H]:$G}]]],kZ=[3,U,Lj,0,[kO,UM,QI,oP,JP,OI,$L,RL,EL,Xj],[[()=>AZ,{[B]:`Attachment`,[H]:xB}],[0,{[B]:`MacAddress`,[H]:AW}],[0,{[B]:`SecondaryInterfaceId`,[H]:aq}],[0,{[B]:`OwnerId`,[H]:DG}],[()=>$$,{[B]:`PrivateIpAddressSet`,[H]:QG}],[2,{[B]:`SourceDestCheck`,[H]:JK}],[0,{[B]:`Status`,[H]:Lq}],[0,{[B]:`SecondarySubnetId`,[H]:wq}],[0,{[B]:`SecondaryNetworkId`,[H]:gq}],[0,{[B]:`InterfaceType`,[H]:cW}]]],AZ=[3,U,kj,0,[SO,_O,dk,ck,$L,jN],[[4,{[B]:`AttachTime`,[H]:fB}],[0,{[B]:`AttachmentId`,[H]:eB}],[2,{[B]:`DeleteOnTermination`,[H]:TV}],[1,{[B]:`DeviceIndex`,[H]:yV}],[0,{[B]:`Status`,[H]:Lq}],[1,{[B]:`NetworkCardIndex`,[H]:aG}]]],jZ=[3,U,jj,0,[qP],[[0,{[B]:`PrivateIpAddress`,[H]:$G}]]],MZ=[3,U,Pj,0,[qP],[0],1],NZ=[3,U,Ij,0,[dk,ck,JP,WP,RL,Xj,jN],[2,1,[()=>e1,{[H]:qP}],1,0,0,1]],PZ=[3,U,Vj,0,[nk,ON],[[1,{[B]:`Code`,[H]:lV}],[0,{[B]:`Name`,[H]:nG}]]],FZ=[3,U,Dj,0,[_A,aoe,sF],[[0,{[B]:`InstanceId`,[H]:CU}],[()=>PZ,{[B]:`CurrentState`,[H]:iV}],[()=>PZ,{[B]:`PreviousState`,[H]:lK}]]],IZ=[3,U,Rj,0,[SR,Vse,ZN,Pk],[[1,{[B]:`TotalSizeInGB`,[H]:$q}],[()=>E$,{[B]:`Disks`,[H]:RV}],[0,{[B]:`NvmeSupport`,[H]:yG}],[0,{[B]:`EncryptionSupport`,[H]:yH}]]],LZ=[3,U,Kj,0,[Wj,yae,Hk,WL,ML,qL,lae,aA,QP,QR,oN,zj,Rj,xk,KN,qk,Bk,RP,lA,nle,uae,woe,jie,TI,BN,$N,QN,HM,qN,oF,UF],[[0,{[B]:`InstanceType`,[H]:rW}],[2,{[B]:`CurrentGeneration`,[H]:HB}],[2,{[B]:`FreeTierEligible`,[H]:AH}],[()=>lue,{[B]:`SupportedUsageClasses`,[H]:jq}],[()=>Yle,{[B]:`SupportedRootDeviceTypes`,[H]:bq}],[()=>fue,{[B]:`SupportedVirtualizationTypes`,[H]:Nq}],[2,{[B]:`BareMetal`,[H]:OB}],[0,{[B]:`Hypervisor`,[H]:KH}],[()=>xQ,{[B]:`ProcessorInfo`,[H]:tK}],[()=>r$,{[B]:`VCpuInfo`,[H]:gJ}],[()=>$Z,{[B]:`MemoryInfo`,[H]:zW}],[2,{[B]:`InstanceStorageSupported`,[H]:YU}],[()=>IZ,{[B]:`InstanceStorageInfo`,[H]:JU}],[()=>AX,{[B]:`EbsInfo`,[H]:tH}],[()=>aQ,{[B]:`NetworkInfo`,[H]:mG}],[()=>ZX,{[B]:`GpuInfo`,[H]:IH}],[()=>KX,{[B]:`FpgaInfo`,[H]:EH}],[()=>hQ,{[B]:`PlacementGroupInfo`,[H]:JG}],[()=>oZ,{[B]:`InferenceAcceleratorInfo`,[H]:oU}],[2,{[B]:`HibernationSupported`,[H]:eU}],[2,{[B]:`BurstablePerformanceSupported`,[H]:AB}],[2,{[B]:`DedicatedHostsSupported`,[H]:vV}],[2,{[B]:`AutoRecoverySupported`,[H]:aB}],[()=>w$,{[B]:`SupportedBootModes`,[H]:KK}],[0,{[B]:`NitroEnclavesSupport`,[H]:cG}],[0,{[B]:`NitroTpmSupport`,[H]:xG}],[()=>uQ,{[B]:`NitroTpmInfo`,[H]:bG}],[()=>XZ,{[B]:`MediaAcceleratorInfo`,[H]:kW}],[()=>lQ,{[B]:`NeuronInfo`,[H]:hG}],[0,{[B]:`PhcSupport`,[H]:cK}],[0,{[B]:`RebootMigrationSupport`,[H]:AK}]]],RZ=[3,U,hA,0,[AO,gA,oP,rR],[[()=>i1,{[B]:`AttachmentSet`,[H]:dB}],[0,{[B]:`InternetGatewayId`,[H]:xU}],[0,{[B]:`OwnerId`,[H]:DG}],[()=>k1,{[B]:`TagSet`,[H]:Qq}]]],zZ=[3,U,Cle,0,[QL,oz],[[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`VpcId`,[H]:yJ}]]],BZ=[3,U,hj,0,[gj,Vk,vR,RR,Cj,Tj,rF],[[0,{[B]:`IpProtocol`,[H]:BU}],[1,{[B]:`FromPort`,[H]:DH}],[1,{[B]:`ToPort`,[H]:Xq}],[()=>uue,{[B]:`Groups`,[H]:GH}],[()=>c1,{[B]:`IpRanges`,[H]:KU}],[()=>d1,{[B]:`Ipv6Ranges`,[H]:qU}],[()=>Hle,{[B]:`PrefixListIds`,[H]:aK}]]],VZ=[3,U,wj,0,[mk,UO],[[0,{[B]:`Description`,[H]:IV}],[0,{[B]:`CidrIp`,[H]:GB}]]],HZ=[3,U,dj,0,[bj],[0]],UZ=[3,U,fj,0,[_j],[0]],WZ=[3,U,Ej,0,[mk,WO],[[0,{[B]:`Description`,[H]:IV}],[0,{[B]:`CidrIpv6`,[H]:KB}]]],GZ=[3,U,_M,0,[fM,rR,cM,iM,sM],[[0,{[B]:`KeyPairId`,[H]:gW}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`KeyName`,[H]:hW}],[0,{[B]:`KeyFingerprint`,[H]:dW}],[()=>JJ,{[B]:`KeyMaterial`,[H]:mW}]]],KZ=[3,U,hM,0,[fM,vM,rR,$P,tk,cM,iM],[[0,{[B]:`KeyPairId`,[H]:gW}],[0,{[B]:`KeyType`,[H]:vW}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`PublicKey`,[H]:nK}],[4,{[B]:`CreateTime`,[H]:cV}],[0,{[B]:`KeyName`,[H]:hW}],[0,{[B]:`KeyFingerprint`,[H]:dW}]]],qZ=[3,U,FM,0,[NM,PM,Fz],[0,0,0]],JZ=[3,U,SM,0,[bM],[[0,{[B]:`LicenseConfigurationArn`,[H]:bW}]]],YZ=[3,U,xM,0,[bM],[0]],XZ=[3,U,HM,0,[TO,gR],[[()=>_1,{[B]:`Accelerators`,[H]:gB}],[1,{[B]:`TotalMediaMemoryInMiB`,[H]:Jq}]]],ZZ=[3,U,JM,0,[ik,ON,SN,oN],[[1,{[B]:`Count`,[H]:dV}],[0,{[B]:`Name`,[H]:nG}],[0,{[B]:`Manufacturer`,[H]:ZW}],[()=>QZ,{[B]:`MemoryInfo`,[H]:zW}]]],QZ=[3,U,XM,0,[eL],[[1,{[B]:`SizeInMiB`,[H]:sq}]]],$Z=[3,U,oN,0,[eL],[[1,{[B]:`SizeInMiB`,[H]:sq}]]],eQ=[3,U,rN,0,[_A,OI,ak,pk,nae,KR,NO,ok,Wj,yM,hI,IR,xA,Gk,Ck,DL,Fk],[[0,{[B]:`InstanceId`,[H]:CU}],[()=>$J,0],[()=>$J,0],[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`Attribute`,[H]:SB}],[()=>KJ,{[B]:`Value`,[H]:hJ}],[()=>U$,{[B]:`BlockDeviceMapping`,[H]:TB}],[()=>$J,{[B]:`DisableApiTermination`,[H]:fV}],[()=>eY,{[B]:`InstanceType`,[H]:rW}],[()=>eY,{[B]:`Kernel`,[H]:yW}],[()=>eY,{[B]:`Ramdisk`,[H]:VK}],[()=>lY,{[B]:`UserData`,[H]:cJ}],[()=>eY,{[B]:`InstanceInitiatedShutdownBehavior`,[H]:TU}],[()=>L$,{[H]:Jk}],[()=>$J,{[B]:`EbsOptimized`,[H]:iH}],[()=>eY,{[B]:`SriovNetSupport`,[H]:vq}],[()=>$J,{[B]:`EnaSupport`,[H]:bH}]],1],tQ=[3,U,vN,0,[fz,pk,YL,kz,tM,MR,VM],[0,2,1,0,1,1,2],1],nQ=[3,U,yN,0,[yz],[[()=>o$,{[B]:`VolumeModification`,[H]:CJ}]]],rQ=[3,U,DN,0,[QL],[[0,{[B]:`State`,[H]:Iq}]]],iQ=[3,U,NN,0,[jN,YN,cN,Sie,iae,CP,Soe,eN,tN],[[1,{[B]:`NetworkCardIndex`,[H]:aG}],[0,{[B]:`NetworkPerformance`,[H]:_G}],[1,{[B]:`MaximumNetworkInterfaces`,[H]:VW}],[1,{[B]:`AdditionalFlexibleNetworkInterfaces`,[H]:Yz}],[1,{[B]:`BaselineBandwidthInGbps`,[H]:CB}],[1,{[B]:`PeakBandwidthInGbps`,[H]:RG}],[1,{[B]:`DefaultEnaQueueCountPerInterface`,[H]:gV}],[1,{[B]:`MaximumEnaQueueCount`,[H]:IW}],[1,{[B]:`MaximumEnaQueueCountPerInterface`,[H]:LW}]]],aQ=[3,U,KN,0,[YN,cN,sN,Goe,AN,sle,cle,Uj,Fk,wce,Sk,mce,Sce,fae,jce,ek,OL,mN,lle],[[0,{[B]:`NetworkPerformance`,[H]:_G}],[1,{[B]:`MaximumNetworkInterfaces`,[H]:VW}],[1,{[B]:`MaximumNetworkCards`,[H]:BW}],[1,{[B]:`DefaultNetworkCardIndex`,[H]:SV}],[()=>v1,{[B]:`NetworkCards`,[H]:iG}],[1,{[B]:`Ipv4AddressesPerInterface`,[H]:sU}],[1,{[B]:`Ipv6AddressesPerInterface`,[H]:cU}],[2,{[B]:`Ipv6Supported`,[H]:nW}],[0,{[B]:`EnaSupport`,[H]:bH}],[2,{[B]:`EfaSupported`,[H]:vH}],[()=>PX,{[B]:`EfaInfo`,[H]:nH}],[2,{[B]:`EncryptionInTransitSupported`,[H]:eH}],[2,{[B]:`EnaSrdSupported`,[H]:hH}],[()=>x$,{[B]:`BandwidthWeightings`,[H]:NB}],[0,{[B]:`FlexibleEnaQueuesSupport`,[H]:TH}],[()=>HY,{[B]:`ConnectionTrackingConfiguration`,[H]:oV}],[2,{[B]:`SecondaryNetworkSupported`,[H]:_q}],[1,{[B]:`MaximumSecondaryNetworkInterfaces`,[H]:qW}],[1,{[B]:`Ipv4AddressesPerSecondaryInterface`,[H]:lU}]]],oQ=[3,U,FN,0,[ik,Fz],[[1,{[B]:`Count`,[H]:dV}],[1,{[B]:`Version`,[H]:FJ}]]],sQ=[3,U,IN,0,[ik,ON,Dae,oN],[[1,{[B]:`Count`,[H]:dV}],[0,{[B]:`Name`,[H]:nG}],[()=>oQ,{[B]:`CoreInfo`,[H]:JB}],[()=>cQ,{[B]:`MemoryInfo`,[H]:zW}]]],cQ=[3,U,RN,0,[eL],[[1,{[B]:`SizeInMiB`,[H]:sq}]]],lQ=[3,U,qN,0,[zN,_R],[[()=>y1,{[B]:`NeuronDevices`,[H]:sG}],[1,{[B]:`TotalNeuronDeviceMemoryInMiB`,[H]:Yq}]]],uQ=[3,U,QN,0,[JL],[[()=>b1,{[B]:`SupportedVersions`,[H]:Pq}]]],dQ=[3,U,fP,0,[SP],[0]],fQ=[3,U,pP,0,[CN,SP,Qce],[[2,{[B]:`Managed`,[H]:QW}],[0,{[B]:`Principal`,[H]:LG}],[2,{[B]:`HiddenByDefault`,[H]:qH}]]],pQ=[3,U,hF,0,[wO,eae,Xk,iF,$ce,jR,kI,tle,Jk,CO],[[0,{[B]:`AvailabilityZoneId`,[H]:mB}],[0,{[B]:`Affinity`,[H]:_B}],[0,{[B]:`GroupName`,[H]:zH}],[1,{[B]:`PartitionNumber`,[H]:oK}],[0,{[B]:`HostId`,[H]:YH}],[0,{[B]:`Tenancy`,[H]:Bq}],[0,{[B]:`SpreadDomain`,[H]:YK}],[0,{[B]:`HostResourceGroupArn`,[H]:$H}],[0,{[B]:`GroupId`,[H]:LH}],[0,{[B]:`AvailabilityZone`,[H]:pB}]]],mQ=[3,U,LP,0,[Xk,QL,eR,DP,Jk,rR,Ice,xL,EM,vP],[[0,{[B]:`GroupName`,[H]:zH}],[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`Strategy`,[H]:Rq}],[1,{[B]:`PartitionCount`,[H]:BG}],[0,{[B]:`GroupId`,[H]:LH}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`GroupArn`,[H]:NH}],[0,{[B]:`SpreadLevel`,[H]:pq}],[0,{[B]:`LinkedGroupId`,[H]:CW}],[()=>fQ,{[B]:`Operator`,[H]:FG}]]],hQ=[3,U,RP,0,[zL],[[()=>Vle,{[B]:`SupportedStrategies`,[H]:Dq}]]],gQ=[3,U,tF,0,[mk,tF],[[0,{[B]:`Description`,[H]:IV}],[0,{[B]:`PrefixListId`,[H]:iK}]]],_Q=[3,U,MP,0,[iA,kk,Ok],[[0,{[B]:`HostnameType`,[H]:nU}],[2,{[B]:`EnableResourceNameDnsARecord`,[H]:fH}],[2,{[B]:`EnableResourceNameDnsAAAARecord`,[H]:dH}]]],vQ=[3,U,NP,0,[iA,kk,Ok],[0,2,2]],yQ=[3,U,PP,0,[iA,kk,Ok],[[0,{[B]:`HostnameType`,[H]:nU}],[2,{[B]:`EnableResourceNameDnsARecord`,[H]:fH}],[2,{[B]:`EnableResourceNameDnsAAAARecord`,[H]:dH}]]],bQ=[3,U,GP,0,[gF,qP],[[2,{[B]:`Primary`,[H]:gK}],[0,{[B]:`PrivateIpAddress`,[H]:$G}]]],xQ=[3,U,QP,0,[wI,DI,AI,SN],[[()=>g$,{[B]:`SupportedArchitectures`,[H]:WK}],[1,{[B]:`SustainedClockSpeedInGhz`,[H]:qK}],[()=>sue,{[B]:`SupportedFeatures`,[H]:XK}],[0,{[B]:`Manufacturer`,[H]:ZW}]]],SQ=[3,U,OP,0,[wP,EP],[[0,{[B]:`ProductCode`,[H]:VG}],[0,{[B]:`Type`,[H]:sJ}]]],CQ=[3,U,lF,0,[Kk],[[0,{[B]:`GatewayId`,[H]:FH}]]],wQ=[3,U,MF,0,[wA,pk],[[()=>W$,{[H]:_A}],[2,{[B]:`DryRun`,[H]:OV}]],1],TQ=[3,U,JF,0,[Jk,aF,LR,oz,Sz],[[0,{[B]:`GroupId`,[H]:LH}],[0,{[B]:`PeeringStatus`,[H]:sK}],[0,{[B]:`UserId`,[H]:lJ}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`VpcPeeringConnectionId`,[H]:EJ}]]],EQ=[3,U,_I,0,[sP,Qk,GF,Dce],[[0,{[B]:`OptInStatus`,[H]:OG}],[()=>Gle,{[B]:`GeographySet`,[H]:HH}],[0,{[B]:`RegionName`,[H]:MK}],[0,{[B]:`RegionEndpoint`,[H]:SK}]]],DQ=[3,U,DF,0,[ON],[[0,{[B]:`Name`,[H]:nG}]]],OQ=[3,U,yI,0,[IF,oP,RF,Gk,eM],[[0,{[B]:`ReservationId`,[H]:EK}],[0,{[B]:`OwnerId`,[H]:DG}],[0,{[B]:`RequesterId`,[H]:kK}],[()=>I$,{[B]:`GroupSet`,[H]:UH}],[()=>J$,{[B]:`InstancesSet`,[H]:$U}]]],kQ=[3,U,tI,0,[VI,Jk,mA,gj,Vk,vR,GO,WO,tF,OF,mk],[[0,{[B]:`SecurityGroupRuleId`,[H]:eq}],[0,{[B]:`GroupId`,[H]:LH}],[2,{[B]:`IsEgress`,[H]:vU}],[0,{[B]:`IpProtocol`,[H]:BU}],[1,{[B]:`FromPort`,[H]:DH}],[1,{[B]:`ToPort`,[H]:Xq}],[0,{[B]:`CidrIpv4`,[H]:qB}],[0,{[B]:`CidrIpv6`,[H]:KB}],[0,{[B]:`PrefixListId`,[H]:iK}],[0,{[B]:`ReferencedGroupId`,[H]:wK}],[0,{[B]:`Description`,[H]:IV}]]],AQ=[3,U,XF,0,[Jk,zI,pk,FL,IL,gj,Vk,vR,UO,mj],[[0,{[B]:`GroupId`,[H]:LH}],[()=>D1,{[H]:VI}],[2,{[B]:`DryRun`,[H]:OV}],[0,{[B]:`SourceSecurityGroupName`,[H]:Sq}],[0,{[B]:`SourceSecurityGroupOwnerId`,[H]:Cq}],[0,{[B]:`IpProtocol`,[H]:BU}],[1,{[B]:`FromPort`,[H]:DH}],[1,{[B]:`ToPort`,[H]:Xq}],[0,{[B]:`CidrIp`,[H]:GB}],[()=>s1,{[B]:`IpPermissions`,[H]:VU}]],1],jQ=[3,U,ZF,0,[yF,VR,rI],[[2,{[B]:`Return`,[H]:vK}],[()=>s1,{[B]:`UnknownIpPermissionSet`,[H]:uJ}],[()=>T1,{[B]:`RevokedSecurityGroupRuleSet`,[H]:NK}]]],MQ=[3,U,QF,0,[UO,Vk,Jk,Xk,mj,gj,FL,IL,vR,zI,pk],[0,1,0,0,[()=>s1,0],0,0,0,1,[()=>D1,{[H]:VI}],[2,{[B]:`DryRun`,[H]:OV}]]],NQ=[3,U,$F,0,[yF,VR,rI],[[2,{[B]:`Return`,[H]:vK}],[()=>s1,{[B]:`UnknownIpPermissionSet`,[H]:uJ}],[()=>T1,{[B]:`RevokedSecurityGroupRuleSet`,[H]:NK}]]],PQ=[3,U,bI,0,[sk,lk,fk,Tk,Kk,_A,$A,UN,oR,TM,HO,WN,rP,QL,Sz,KO,dP,dle],[[0,{[B]:`DestinationCidrBlock`,[H]:pV}],[0,{[B]:`DestinationIpv6CidrBlock`,[H]:bV}],[0,{[B]:`DestinationPrefixListId`,[H]:EV}],[0,{[B]:`EgressOnlyInternetGatewayId`,[H]:sH}],[0,{[B]:`GatewayId`,[H]:FH}],[0,{[B]:`InstanceId`,[H]:CU}],[0,{[B]:`InstanceOwnerId`,[H]:NU}],[0,{[B]:`NatGatewayId`,[H]:uG}],[0,{[B]:`TransitGatewayId`,[H]:Uq}],[0,{[B]:`LocalGatewayId`,[H]:SW}],[0,{[B]:`CarrierGatewayId`,[H]:VB}],[0,{[B]:`NetworkInterfaceId`,[H]:dG}],[0,{[B]:`Origin`,[H]:wG}],[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`VpcPeeringConnectionId`,[H]:EJ}],[0,{[B]:`CoreNetworkArn`,[H]:YB}],[0,{[B]:`OdbNetworkArn`,[H]:jG}],[0,{[B]:`IpAddress`,[H]:fU}]]],FQ=[3,U,pI,0,[tae,dF,cI,xI,rR,oz,oP],[[()=>Zle,{[B]:`AssociationSet`,[H]:uB}],[()=>Wle,{[B]:`PropagatingVgwSet`,[H]:dK}],[0,{[B]:`RouteTableId`,[H]:LK}],[()=>Xle,{[B]:`RouteSet`,[H]:FK}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`OwnerId`,[H]:DG}]]],IQ=[3,U,iI,0,[xN,aI,cI,vL,Kk,XP,bO],[[2,{[B]:`Main`,[H]:XW}],[0,{[B]:`RouteTableAssociationId`,[H]:IK}],[0,{[B]:`RouteTableId`,[H]:LK}],[0,{[B]:`SubnetId`,[H]:fq}],[0,{[B]:`GatewayId`,[H]:FH}],[0,{[B]:`PublicIpv4Pool`,[H]:eK}],[()=>LQ,{[B]:`AssociationState`,[H]:cB}]]],LQ=[3,U,sI,0,[QL,wL],[[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`StatusMessage`,[H]:mq}]]],RQ=[3,U,jF,0,[Lk],[[2,{[B]:`Enabled`,[H]:CH}]],1],zQ=[3,U,NF,0,[KM,qM,NO,SA,Wj,cA,oA,aM,cM,DN,hF,FF,FI,GI,vL,IR,vk,bk,xR,MM,LA,noe,qO,ZO,eA,kM,lN,Ek,jP,uN,ak,bce,JN,vP,uL,pk,ok,xA,qP,$O,hO,GN,vA,Ck],[1,1,[()=>C$,{[H]:MO}],0,0,1,[()=>K$,{[H]:uA}],0,0,[()=>RQ,0],[()=>pQ,0],0,[()=>E1,{[H]:NI}],[()=>tue,{[H]:KI}],0,[()=>qJ,0],[()=>k$,0],[()=>j$,{[H]:yk}],[()=>A1,{[H]:wR}],()=>qZ,()=>yZ,()=>VY,()=>xY,()=>fY,()=>eZ,[()=>g1,{[H]:jM}],()=>bZ,()=>HX,()=>vQ,()=>vZ,2,2,()=>DZ,()=>dQ,[()=>t1,{[H]:dL}],[2,{[B]:`DryRun`,[H]:OV}],[2,{[B]:`DisableApiTermination`,[H]:fV}],[0,{[B]:`InstanceInitiatedShutdownBehavior`,[H]:TU}],[0,{[B]:`PrivateIpAddress`,[H]:$G}],[0,{[B]:`ClientToken`,[aW]:1,[H]:aV}],[0,{[B]:`AdditionalInfo`,[H]:Qz}],[()=>X$,{[B]:`NetworkInterface`,[H]:pG}],[()=>nZ,{[B]:`IamInstanceProfile`,[H]:wU}],[2,{[B]:`EbsOptimized`,[H]:iH}]],2],BQ=[3,U,KI,0,[Jk,rj,rR,oz,MI,oP,Xk,mk,mj],[[0,{[B]:`GroupId`,[H]:LH}],[()=>s1,{[B]:`IpPermissionsEgress`,[H]:IU}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`SecurityGroupArn`,[H]:ZK}],[0,{[B]:`OwnerId`,[H]:DG}],[0,{[B]:`GroupName`,[H]:zH}],[0,{[B]:`GroupDescription`,[H]:PH}],[()=>s1,{[B]:`IpPermissions`,[H]:VU}]]],VQ=[3,U,UI,0,[VI,Jk,Yce,mA,gj,Vk,vR,GO,WO,tF,kF,mk,rR,RI],[[0,{[B]:`SecurityGroupRuleId`,[H]:eq}],[0,{[B]:`GroupId`,[H]:LH}],[0,{[B]:`GroupOwnerId`,[H]:BH}],[2,{[B]:`IsEgress`,[H]:vU}],[0,{[B]:`IpProtocol`,[H]:BU}],[1,{[B]:`FromPort`,[H]:DH}],[1,{[B]:`ToPort`,[H]:Xq}],[0,{[B]:`CidrIpv4`,[H]:qB}],[0,{[B]:`CidrIpv6`,[H]:KB}],[0,{[B]:`PrefixListId`,[H]:iK}],[()=>TQ,{[B]:`ReferencedGroupInfo`,[H]:TK}],[0,{[B]:`Description`,[H]:IV}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`SecurityGroupRuleArn`,[H]:$K}]]],HQ=[3,U,ZL,0,[aP,iP,rR,UL,TF,HL,CO,OR,VO,loe,Pce,fL,fz,QL,TL,BL,_F,oP,mk,Oz,Rk,oM,xoe],[[0,{[B]:`OwnerAlias`,[H]:EG}],[0,{[B]:`OutpostArn`,[H]:TG}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`StorageTier`,[H]:Aq}],[4,{[B]:`RestoreExpiryTime`,[H]:xK}],[0,{[B]:`SseType`,[H]:kq}],[0,{[B]:`AvailabilityZone`,[H]:pB}],[0,{[B]:`TransferType`,[H]:rJ}],[1,{[B]:`CompletionDurationMinutes`,[H]:zB}],[4,{[B]:`CompletionTime`,[H]:sV}],[1,{[B]:`FullSnapshotSizeInBytes`,[H]:kH}],[0,{[B]:`SnapshotId`,[H]:dq}],[0,{[B]:`VolumeId`,[H]:xJ}],[0,{[B]:`Status`,[H]:Lq}],[0,{[B]:`StatusMessage`,[H]:mq}],[4,{[B]:`StartTime`,[H]:Oq}],[0,{[B]:`Progress`,[H]:_K}],[0,{[B]:`OwnerId`,[H]:DG}],[0,{[B]:`Description`,[H]:IV}],[1,{[B]:`VolumeSize`,[H]:AJ}],[2,{[B]:`Encrypted`,[H]:wH}],[0,{[B]:`KmsKeyId`,[H]:pW}],[0,{[B]:`DataEncryptionKeyId`,[H]:hV}]]],UQ=[3,U,CL,0,[fN,lL,sae,Nz,Nle],[0,0,1,4,0]],WQ=[3,U,rL,0,[wA,hO,pk],[[()=>W$,{[H]:_A}],[0,{[B]:`AdditionalInfo`,[H]:Qz}],[2,{[B]:`DryRun`,[H]:OV}]],1],GQ=[3,U,iL,0,[mL],[[()=>n1,{[B]:`InstancesSet`,[H]:$U}]]],KQ=[3,U,PL,0,[nk,wN],[[0,{[B]:`Code`,[H]:lV}],[0,{[B]:`Message`,[H]:$W}]]],qQ=[3,U,aL,0,[wA,rle,AL,pk,zk],[[()=>W$,{[H]:_A}],2,2,[2,{[B]:`DryRun`,[H]:OV}],[2,{[B]:`Force`,[H]:jH}]],1],JQ=[3,U,oL,0,[gL],[[()=>n1,{[B]:`InstancesSet`,[H]:$U}]]],YQ=[3,U,tR,0,[wO,hce,GM,Mae,oP,wie,fA,rR,CI,iP,Jse,BA,MP,IO,PR,vL,QL,oz,zO,Cie,CO,Coe,dN],[[0,{[B]:`AvailabilityZoneId`,[H]:mB}],[1,{[B]:`EnableLniAtDeviceIndex`,[H]:rH}],[2,{[B]:`MapCustomerOwnedIpOnLaunch`,[H]:MW}],[0,{[B]:`CustomerOwnedIpv4Pool`,[H]:QB}],[0,{[B]:`OwnerId`,[H]:DG}],[2,{[B]:`AssignIpv6AddressOnCreation`,[H]:Zz}],[()=>aue,{[B]:`Ipv6CidrBlockAssociationSet`,[H]:hU}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`SubnetArn`,[H]:GK}],[0,{[B]:`OutpostArn`,[H]:TG}],[2,{[B]:`EnableDns64`,[H]:HV}],[2,{[B]:`Ipv6Native`,[H]:AU}],[()=>_Q,{[B]:`PrivateDnsNameOptionsOnLaunch`,[H]:UG}],[()=>dY,{[B]:`BlockPublicAccessStates`,[H]:kB}],[0,{[B]:`Type`,[H]:sJ}],[0,{[B]:`SubnetId`,[H]:fq}],[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`CidrBlock`,[H]:PB}],[1,{[B]:`AvailableIpAddressCount`,[H]:Xz}],[0,{[B]:`AvailabilityZone`,[H]:pB}],[2,{[B]:`DefaultForAz`,[H]:_V}],[2,{[B]:`MapPublicIpOnLaunch`,[H]:WW}]]],XQ=[3,U,EI,0,[QL,wL],[[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`StatusMessage`,[H]:mq}]]],ZQ=[3,U,JI,0,[gO,dA,pA,sA,Hj],[[0,{[B]:`AssociationId`,[H]:$z}],[0,{[B]:`Ipv6CidrBlock`,[H]:mU}],[()=>XQ,{[B]:`Ipv6CidrBlockState`,[H]:gU}],[0,{[B]:`Ipv6AddressAttribute`,[H]:iU}],[0,{[B]:`IpSource`,[H]:tW}]]],QQ=[3,U,AR,0,[nM,KR],[[0,{[B]:`Key`,[H]:uW}],[0,{[B]:`Value`,[H]:hJ}]]],$Q=[3,U,wR,0,[fI,rR],[[0,{[B]:`ResourceType`,[H]:zK}],[()=>k1,{[H]:AR}]]],e$=[3,U,uR,0,[wA,zk,AL,pk],[[()=>W$,{[H]:_A}],2,2,[2,{[B]:`DryRun`,[H]:OV}]],1],t$=[3,U,dR,0,[pR],[[()=>n1,{[B]:`InstancesSet`,[H]:$U}]]],n$=[3,U,BR,0,[mk,LR,Xk,Jk,oz,Sz,aF],[[0,{[B]:`Description`,[H]:IV}],[0,{[B]:`UserId`,[H]:lJ}],[0,{[B]:`GroupName`,[H]:zH}],[0,{[B]:`GroupId`,[H]:LH}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`VpcPeeringConnectionId`,[H]:EJ}],[0,{[B]:`PeeringStatus`,[H]:sK}]]],r$=[3,U,QR,0,[Ose,boe,wse,$R,jz],[[1,{[B]:`DefaultVCpus`,[H]:FV}],[1,{[B]:`DefaultCores`,[H]:mV}],[1,{[B]:`DefaultThreadsPerCore`,[H]:jV}],[()=>T$,{[B]:`ValidCores`,[H]:_J}],[()=>cue,{[B]:`ValidThreadsPerCore`,[H]:NJ}]]],i$=[3,U,Lz,0,[wO,iP,KL,tM,rR,kz,Nce,VM,MR,HL,vP,lz,fz,YL,fL,CO,QL,tk,AO,Rk,oM],[[0,{[B]:`AvailabilityZoneId`,[H]:mB}],[0,{[B]:`OutpostArn`,[H]:TG}],[0,{[B]:`SourceVolumeId`,[H]:Mq}],[1,{[B]:`Iops`,[H]:lW}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[0,{[B]:`VolumeType`,[H]:MJ}],[2,{[B]:`FastRestored`,[H]:OH}],[2,{[B]:`MultiAttachEnabled`,[H]:OW}],[1,{[B]:`Throughput`,[H]:aJ}],[0,{[B]:`SseType`,[H]:kq}],[()=>fQ,{[B]:`Operator`,[H]:FG}],[1,{[B]:`VolumeInitializationRate`,[H]:bJ}],[0,{[B]:`VolumeId`,[H]:xJ}],[1,{[B]:`Size`,[H]:Fq}],[0,{[B]:`SnapshotId`,[H]:dq}],[0,{[B]:`AvailabilityZone`,[H]:pB}],[0,{[B]:`Status`,[H]:Lq}],[4,{[B]:`CreateTime`,[H]:cV}],[()=>pue,{[B]:`AttachmentSet`,[H]:dB}],[2,{[B]:`Encrypted`,[H]:wH}],[0,{[B]:`KmsKeyId`,[H]:pW}]]],a$=[3,U,JR,0,[dk,vO,ej,_k,fz,_A,hk,QL,SO],[[2,{[B]:`DeleteOnTermination`,[H]:TV}],[0,{[B]:`AssociatedResource`,[H]:oB}],[0,{[B]:`InstanceOwningService`,[H]:FU}],[1,{[B]:`EbsCardIndex`,[H]:zV}],[0,{[B]:`VolumeId`,[H]:xJ}],[0,{[B]:`InstanceId`,[H]:CU}],[0,{[B]:`Device`,[H]:LV}],[0,{[B]:`Status`,[H]:Lq}],[4,{[B]:`AttachTime`,[H]:fB}]]],o$=[3,U,yz,0,[fz,hN,wL,TR,fR,kR,DR,hR,hP,cP,_P,gP,uP,_F,BL,Tce,vP],[[0,{[B]:`VolumeId`,[H]:xJ}],[0,{[B]:`ModificationState`,[H]:JW}],[0,{[B]:`StatusMessage`,[H]:mq}],[1,{[B]:`TargetSize`,[H]:eJ}],[1,{[B]:`TargetIops`,[H]:Kq}],[0,{[B]:`TargetVolumeType`,[H]:iJ}],[1,{[B]:`TargetThroughput`,[H]:nJ}],[2,{[B]:`TargetMultiAttachEnabled`,[H]:qq}],[1,{[B]:`OriginalSize`,[H]:MG}],[1,{[B]:`OriginalIops`,[H]:kG}],[0,{[B]:`OriginalVolumeType`,[H]:PG}],[1,{[B]:`OriginalThroughput`,[H]:NG}],[2,{[B]:`OriginalMultiAttachEnabled`,[H]:AG}],[1,{[B]:`Progress`,[H]:_K}],[4,{[B]:`StartTime`,[H]:Oq}],[4,{[B]:`EndTime`,[H]:xH}],[()=>fQ,{[B]:`Operator`,[H]:FG}]]],s$=[3,U,Rz,0,[oP,Jj,fA,pae,Sle,qse,rR,IO,oz,QL,zO,qoe],[[0,{[B]:`OwnerId`,[H]:DG}],[0,{[B]:`InstanceTenancy`,[H]:sW}],[()=>vue,{[B]:`Ipv6CidrBlockAssociationSet`,[H]:hU}],[()=>gue,{[B]:`CidrBlockAssociationSet`,[H]:FB}],[2,{[B]:`IsDefault`,[H]:_U}],[()=>u$,{[B]:`EncryptionControl`,[H]:VV}],[()=>k1,{[B]:`TagSet`,[H]:Qq}],[()=>dY,{[B]:`BlockPublicAccessStates`,[H]:kB}],[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`CidrBlock`,[H]:PB}],[0,{[B]:`DhcpOptionsId`,[H]:wV}]]],c$=[3,U,YR,0,[gO,zO,hae],[[0,{[B]:`AssociationId`,[H]:$z}],[0,{[B]:`CidrBlock`,[H]:PB}],[()=>l$,{[B]:`CidrBlockState`,[H]:LB}]]],l$=[3,U,ZR,0,[QL,wL],[[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`StatusMessage`,[H]:mq}]]],u$=[3,U,ez,0,[oz,iz,EN,QL,TL,EF,rR],[[0,{[B]:`VpcId`,[H]:yJ}],[0,{[B]:`VpcEncryptionControlId`,[H]:vJ}],[0,{[B]:`Mode`,[H]:tG}],[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`StateMessage`,[H]:hq}],[()=>p$,{[B]:`ResourceExclusions`,[H]:CK}],[()=>k1,{[B]:`TagSet`,[H]:Qq}]]],d$=[3,U,tz,0,[EN,Ele,_ce,HN,Tz,Cz,CM,gz,Xse],[0,0,0,0,0,0,0,0,0],1],f$=[3,U,nz,0,[QL,TL],[[0,{[B]:`State`,[H]:Iq}],[0,{[B]:`StateMessage`,[H]:hq}]]],p$=[3,U,rz,0,[hA,gce,VN,wz,Ez,RM,hz,Yse],[[()=>f$,{[B]:`InternetGateway`,[H]:yU}],[()=>f$,{[B]:`EgressOnlyInternetGateway`,[H]:oH}],[()=>f$,{[B]:`NatGateway`,[H]:lG}],[()=>f$,{[B]:`VirtualPrivateGateway`,[H]:DJ}],[()=>f$,{[B]:`VpcPeering`,[H]:OJ}],[()=>f$,{[B]:`Lambda`,[H]:DW}],[()=>f$,{[B]:`VpcLattice`,[H]:SJ}],[()=>f$,{[B]:`ElasticFileSystem`,[H]:UV}]]],m$=[3,U,sz,0,[gO,dA,pA,kN,vj,sA,Hj],[[0,{[B]:`AssociationId`,[H]:$z}],[0,{[B]:`Ipv6CidrBlock`,[H]:mU}],[()=>l$,{[B]:`Ipv6CidrBlockState`,[H]:gU}],[0,{[B]:`NetworkBorderGroup`,[H]:rG}],[0,{[B]:`Ipv6Pool`,[H]:UU}],[0,{[B]:`Ipv6AddressAttribute`,[H]:iU}],[0,{[B]:`IpSource`,[H]:tW}]]],h$=`unit`,g$=[1,U,Hie,0,[0,{[H]:V}]],_$=[1,U,qie,0,[()=>oY,{[H]:V}]],v$=[1,U,Jie,0,[()=>aY,{[H]:V}]],y$=[1,U,Xie,0,[()=>sY,{[H]:V}]],b$=[1,U,Qie,0,[()=>cY,{[H]:V}]],x$=[1,U,dae,0,[0,{[H]:V}]],S$=[1,U,aae,0,[()=>uY,{[H]:V}]],C$=[1,U,oae,0,[()=>uY,{[H]:MO}]],w$=[1,U,cae,0,[0,{[H]:V}]],T$=[1,U,gae,0,[1,{[H]:V}]],E$=[1,U,Ooe,0,[()=>DX,{[H]:V}]],D$=[1,U,Wse,0,[()=>kX,{[H]:V}]],O$=[1,U,$se,0,[()=>FX,{[H]:V}]],k$=[1,U,ice,0,[()=>IX,{[H]:V}]],A$=[1,U,sce,0,[()=>RX,{[H]:V}]],j$=[1,U,bk,0,[()=>LX,{[H]:V}]],M$=[1,U,Use,0,[0,{[H]:gk}]],N$=[1,U,Mce,0,[()=>UX,{[H]:Wk}]],P$=[1,U,kce,0,[()=>WX,{[H]:V}]],F$=[1,U,Hce,0,[()=>YX,{[H]:V}]],I$=[1,U,Wce,0,[()=>QX,{[H]:V}]],L$=[1,U,Gce,0,[0,{[H]:LH}]],R$=[1,U,Jce,0,[0,{[H]:Xk}]],z$=[1,U,zle,0,[0,{[H]:SA}]],B$=[1,U,kA,0,[()=>rZ,{[H]:V}]],V$=[1,U,yle,0,[()=>sZ,0]],H$=[1,U,ple,0,[()=>fZ,{[H]:V}]],U$=[1,U,hle,0,[()=>pZ,{[H]:V}]],W$=[1,U,Ble,0,[0,{[H]:_A}]],G$=[1,U,Ple,0,[()=>mZ,{[H]:V}]],K$=[1,U,Mle,0,[()=>hZ,{[H]:V}]],q$=[1,U,Fle,0,[()=>gZ,{[H]:V}]],J$=[1,U,jA,0,[()=>lZ,{[H]:V}]],Y$=[1,U,WA,0,[()=>SZ,{[H]:V}]],X$=[1,U,KA,0,[()=>TZ,{[H]:V}]],Z$=[1,U,aj,0,[()=>OZ,{[H]:V}]],Q$=[1,U,Aj,0,[()=>kZ,{[H]:V}]],$$=[1,U,Mj,0,[()=>jZ,{[H]:V}]],e1=[1,U,Nj,0,[()=>MZ,{[H]:V}]],t1=[1,U,Fj,0,[()=>NZ,{[H]:V}]],n1=[1,U,Oj,0,[()=>FZ,{[H]:V}]],r1=[1,U,Gj,0,[()=>LZ,{[H]:V}]],i1=[1,U,wle,0,[()=>zZ,{[H]:V}]],a1=[1,U,Dle,0,[0,{[H]:V}]],o1=[1,U,kle,0,[()=>RZ,{[H]:V}]],s1=[1,U,cj,0,[()=>BZ,{[H]:V}]],c1=[1,U,xj,0,[()=>VZ,{[H]:V}]],l1=[1,U,lj,0,[()=>HZ,{[H]:V}]],u1=[1,U,uj,0,[()=>UZ,{[H]:V}]],d1=[1,U,Sj,0,[()=>WZ,{[H]:V}]],f1=[1,U,lM,0,[0,{[H]:cM}]],p1=[1,U,pM,0,[0,{[H]:fM}]],m1=[1,U,gM,0,[()=>KZ,{[H]:V}]],h1=[1,U,DM,0,[()=>JZ,{[H]:V}]],g1=[1,U,AM,0,[()=>YZ,{[H]:V}]],_1=[1,U,YM,0,[()=>ZZ,{[H]:V}]],v1=[1,U,MN,0,[()=>iQ,{[H]:V}]],y1=[1,U,LN,0,[()=>sQ,{[H]:V}]],b1=[1,U,eP,0,[0,{[H]:V}]],x1=[1,U,mP,0,[0,{[H]:xP}]],S1=[1,U,zP,0,[0,{[H]:Jk}]],C1=[1,U,BP,0,[()=>mQ,{[H]:V}]],Vle=[1,U,VP,0,[0,{[H]:V}]],Hle=[1,U,nF,0,[()=>gQ,{[H]:V}]],Ule=[1,U,KP,0,[()=>bQ,{[H]:V}]],w1=[1,U,TP,0,[()=>SQ,{[H]:V}]],Wle=[1,U,uF,0,[()=>CQ,{[H]:V}]],Gle=[1,U,AF,0,[()=>DQ,{[H]:V}]],Kle=[1,U,BF,0,[()=>EQ,{[H]:V}]],qle=[1,U,KF,0,[0,{[H]:GF}]],Jle=[1,U,VF,0,[()=>OQ,{[H]:V}]],T1=[1,U,nI,0,[()=>kQ,{[H]:V}]],Yle=[1,U,wF,0,[0,{[H]:V}]],Xle=[1,U,HF,0,[()=>PQ,{[H]:V}]],Zle=[1,U,oI,0,[()=>IQ,{[H]:V}]],Qle=[1,U,lI,0,[0,{[H]:V}]],$le=[1,U,dI,0,[()=>FQ,{[H]:V}]],E1=[1,U,PI,0,[0,{[H]:NI}]],eue=[1,U,II,0,[()=>BQ,{[H]:V}]],D1=[1,U,BI,0,[0,{[H]:V}]],O1=[1,U,HI,0,[()=>VQ,{[H]:V}]],tue=[1,U,WI,0,[0,{[H]:KI}]],nue=[1,U,sL,0,[0,{[H]:fL}]],rue=[1,U,bL,0,[()=>HQ,{[H]:V}]],iue=[1,U,cL,0,[0,{[H]:vL}]],aue=[1,U,YI,0,[()=>ZQ,{[H]:V}]],oue=[1,U,SL,0,[()=>YQ,{[H]:V}]],sue=[1,U,SI,0,[0,{[H]:V}]],k1=[1,U,mR,0,[()=>QQ,{[H]:V}]],A1=[1,U,CR,0,[()=>$Q,{[H]:V}]],cue=[1,U,bR,0,[1,{[H]:V}]],lue=[1,U,FR,0,[0,{[H]:V}]],uue=[1,U,zR,0,[()=>n$,{[H]:V}]],due=[1,U,Dz,0,[0,{[H]:V}]],fue=[1,U,Az,0,[0,{[H]:V}]],pue=[1,U,qR,0,[()=>a$,{[H]:V}]],mue=[1,U,uz,0,[0,{[H]:fz}]],hue=[1,U,_z,0,[()=>i$,{[H]:V}]],gue=[1,U,XR,0,[()=>c$,{[H]:V}]],_ue=[1,U,dz,0,[0,{[H]:oz}]],vue=[1,U,cz,0,[()=>m$,{[H]:V}]],yue=[1,U,vz,0,[()=>s$,{[H]:V}]],bue=[1,U,Bz,0,[0,{[H]:V}]],xue=[1,U,Uz,0,[0,{[H]:Hz}]],Sue=[1,U,Kz,0,[0,{[H]:Gz}]],Cue=[9,U,Pie,0,()=>YJ,()=>XJ],wue=[9,U,Tie,0,()=>ZJ,()=>h$],Tue=[9,U,Gie,0,()=>QJ,()=>a$],Eue=[9,U,Iie,0,()=>tY,()=>nY],Due=[9,U,Vie,0,()=>rY,()=>iY],Oue=[9,U,toe,0,()=>vY,()=>yY],kue=[9,U,Oae,0,()=>SY,()=>CY],Aue=[9,U,Sae,0,()=>wY,()=>TY],jue=[9,U,kae,0,()=>EY,()=>GZ],Mue=[9,U,Pae,0,()=>DY,()=>OY],Nue=[9,U,Wae,0,()=>kY,()=>AY],Pue=[9,U,Uae,0,()=>jY,()=>MY],Fue=[9,U,Gae,0,()=>NY,()=>PY],Iue=[9,U,roe,0,()=>FY,()=>HQ],Lue=[9,U,ioe,0,()=>IY,()=>LY],Rue=[9,U,poe,0,()=>RY,()=>i$],zue=[9,U,moe,0,()=>zY,()=>BY],Bue=[9,U,zoe,0,()=>UY,()=>WY],Vue=[9,U,Joe,0,()=>GY,()=>h$],Hue=[9,U,sse,0,()=>KY,()=>qY],Uue=[9,U,yse,0,()=>JY,()=>h$],Wue=[9,U,bse,0,()=>YY,()=>h$],Gue=[9,U,Ise,0,()=>XY,()=>h$],Kue=[9,U,Lse,0,()=>ZY,()=>h$],que=[9,U,voe,0,()=>QY,()=>$Y],Jue=[9,U,Ioe,0,()=>eX,()=>tX],Yue=[9,U,Loe,0,()=>nX,()=>rX],Xue=[9,U,Foe,0,()=>iX,()=>aX],Zue=[9,U,Doe,0,()=>oX,()=>sX],Que=[9,U,Woe,0,()=>cX,()=>lX],$ue=[9,U,Qoe,0,()=>uX,()=>dX],ede=[9,U,ose,0,()=>fX,()=>pX],tde=[9,U,ise,0,()=>mX,()=>hX],nde=[9,U,fse,0,()=>gX,()=>_X],rde=[9,U,xse,0,()=>vX,()=>yX],ide=[9,U,Sse,0,()=>bX,()=>xX],ade=[9,U,Rse,0,()=>SX,()=>CX],ode=[9,U,zse,0,()=>wX,()=>TX],sde=[9,U,Bse,0,()=>EX,()=>a$],cde=[9,U,Lce,0,()=>qX,()=>JX],lde=[9,U,TA,0,()=>iZ,()=>aZ],ude=[9,U,aN,0,()=>eQ,()=>h$],dde=[9,U,bN,0,()=>tQ,()=>nQ],fde=[9,U,LF,0,()=>wQ,()=>h$],pde=[9,U,YF,0,()=>AQ,()=>jQ],mde=[9,U,eI,0,()=>MQ,()=>NQ],hde=[9,U,zF,0,()=>zQ,()=>OQ],gde=[9,U,hL,0,()=>WQ,()=>GQ],_de=[9,U,_L,0,()=>qQ,()=>JQ],vde=[9,U,cR,0,()=>e$,()=>t$],yde=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??bC,base64Encoder:e?.base64Encoder??xC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_ie,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??qre,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new BD}],logger:e?.logger??new MD,protocol:e?.protocol??cie,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:WJ,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??GC,utf8Decoder:e?.utf8Decoder??Kx,utf8Encoder:e?.utf8Encoder??Jx}),bde=e=>{let t=JD(e),n=()=>t().then(DD),r=yde(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??qD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??UD({serviceId:r.serviceId,clientVersion:Xre.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??GD(`Region is missing`),requestHandler:kC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||bE),sha256:e?.sha256??Nx,streamCollector:e?.streamCollector??jC,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},j1=e=>({setRegion(t){e.region=t},region(){return e.region}}),M1=e=>({region:e.region()}),xde=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}}},Sde=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Cde=(e,t)=>{let n=Object.assign(j1(e),kD(e),Px(e),xde(e));return t.forEach(e=>e.configure(n)),Object.assign(e,M1(n),AD(n),Fx(n),Sde(n))},wde=class extends xD{config;constructor(...[e]){let t=bde(e||{});super(t),this.initConfig=t;let n=Cde(Jre(mD(XS(oD(hD(OT(Yre(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(XC(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(cD(this.config)),this.middlewareStack.use($S(this.config)),this.middlewareStack.use(nC(this.config)),this.middlewareStack.use(aC(this.config)),this.middlewareStack.use(uC(this.config,{httpAuthSchemeParametersProvider:Gre,identityProviderConfigProvider:async e=>new CT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(hC(this.config))}destroy(){super.destroy()}},Tde=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(que).build(){},N1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(Jue).build(){},P1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(Yue).build(){},Ede=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(Xue).build(){},Dde=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(Zue).build(){},F1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(Que).build(){},I1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc($ue).build(){},Ode=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(ede).build(){},kde=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(tde).build(){},L1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(nde).build(){},R1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(rde).build(){},z1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(ide).build(){},B1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(ade).build(){},V1=class extends wD.classBuilder().ep(HD).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(ode).build(){},Ade=async(e,t,n)=>({operation:AS(t).operation,region:await jS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function jde(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Mde=e=>{let t=[];switch(e.operation){default:t.push(jde(e))}return t},Nde=e=>{let t=VD(e);return Object.assign(t,{authSchemePreference:jS(e.authSchemePreference??[])})},Pde=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),H1={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Fde={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.1041.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`}},U1=`ref`,W1=-1,G1=!0,K1=`isSet`,q1=`PartitionResult`,J1=`booleanEquals`,Y1=`getAttr`,X1={[U1]:`Endpoint`},Z1={[U1]:q1},Q1={},$1=[{[U1]:`Region`}],e0={conditions:[[K1,[X1]],[K1,$1],[`aws.partition`,$1,q1],[J1,[{[U1]:`UseFIPS`},G1]],[J1,[{[U1]:`UseDualStack`},G1]],[J1,[{fn:Y1,argv:[Z1,`supportsDualStack`]},G1]],[J1,[{fn:Y1,argv:[Z1,`supportsFIPS`]},G1]],[`stringEquals`,[{fn:Y1,argv:[Z1,`name`]},`aws-us-gov`]]],results:[[W1],[W1,`Invalid Configuration: FIPS and custom endpoint are not supported`],[W1,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[X1,Q1],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Q1],[W1,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,Q1],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,Q1],[W1,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,Q1],[W1,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,Q1],[W1,`Invalid Configuration: Missing Region`]]},Ide=2,t0=1e8,Lde=new Int32Array([-1,1,-1,0,13,3,1,4,t0+12,2,5,t0+12,3,8,6,4,7,t0+11,5,t0+9,t0+10,4,11,9,6,10,t0+8,7,t0+6,t0+7,5,12,t0+5,6,t0+4,t0+5,3,t0+1,14,4,t0+2,t0+3]),Rde=kT.from(Lde,Ide,e0.conditions,e0.results),zde=new AT({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Bde=(e,t={})=>zde.get(e,()=>cE(Rde,{endpointParams:e,logger:t.logger}));PT.aws=_E;var W=class e extends TD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Vde=class e extends W{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Hde=class e extends W{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ude=class e extends W{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Wde=class e extends W{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Gde=class e extends W{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Kde=class e extends W{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qde=class e extends W{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Jde=class e extends W{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Yde=class e extends W{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xde=class e extends W{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Zde=class e extends W{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qde=class e extends W{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$de=class e extends W{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},efe=class e extends W{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tfe=class e extends W{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nfe=class e extends W{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rfe=class e extends W{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ife=class e extends W{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},afe=class e extends W{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ofe=class e extends W{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 W{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 W{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lfe=class e extends W{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ufe=class e extends W{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dfe=class e extends W{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ffe=class e extends W{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pfe=class e extends W{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mfe=class e extends W{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hfe=class e extends W{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gfe=class e extends W{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_fe=class e extends W{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vfe=class e extends W{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yfe=class e extends W{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bfe=class e extends W{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xfe=class e extends W{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Sfe=class e extends W{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Cfe=class e extends W{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wfe=class e extends W{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Tfe=class e extends W{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Efe=class e extends W{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Dfe=class e extends W{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ofe=class e extends W{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kfe=class e extends W{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Afe=class e extends W{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jfe=class e extends W{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Mfe=class e extends W{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Nfe=class e extends W{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Pfe=class e extends W{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ffe=class e extends W{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ife=class e extends W{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Lfe=class e extends W{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Rfe=class e extends W{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zfe=class e extends W{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Bfe=class e extends W{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vfe=class e extends W{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Hfe=class e extends W{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ufe=`Action`,Wfe=`AdditionalClaims`,Gfe=`AuthenticateCognitoActionConfig`,Kfe=`AuthenticateCognitoConfig`,n0=`AnomalyDetection`,qfe=`AuthorizationEndpoint`,r0=`AllocationId`,Jfe=`AllocationIdNotFoundException`,Yfe=`ALPNPolicyNotSupportedException`,i0=`AdministrativeOverride`,Xfe=`AuthenticateOidcActionConfig`,Zfe=`AuthenticateOidcConfig`,a0=`AlpnPolicy`,o0=`AuthenticationRequestExtraParams`,Qfe=`AdvertiseTrustStoreCaNames`,s0=`AvailabilityZone`,$fe=`AvailabilityZoneNotSupportedException`,c0=`AvailabilityZones`,epe=`Actions`,l0=`Attributes`,u0=`Certificates`,tpe=`CertificateArn`,npe=`CaCertificatesBundleNotFoundException`,rpe=`CapacityDecreaseRequestsLimitExceededException`,ipe=`CanonicalHostedZoneId`,ape=`ClientId`,ope=`CertificateList`,spe=`CreateLoadBalancer`,cpe=`CreateLoadBalancerInput`,lpe=`CreateLoadBalancerOutput`,upe=`CreateListenerInput`,dpe=`CreateListenerOutput`,fpe=`CreateListener`,ppe=`CertificateNotFoundException`,d0=`CustomerOwnedIpv4Pool`,mpe=`CapacityReservationPendingException`,hpe=`ClientSecret`,gpe=`ContentType`,_pe=`CreateTargetGroup`,vpe=`CreateTargetGroupInput`,ype=`CreateTargetGroupOutput`,bpe=`CreatedTime`,xpe=`CapacityUnitsLimitExceededException`,Spe=`Certificate`,Cpe=`Code`,f0=`Description`,p0=`DefaultActions`,wpe=`DeleteAssociationSameAccountException`,Tpe=`DeleteListener`,Epe=`DeleteLoadBalancer`,Dpe=`DescribeLoadBalancerAttributes`,Ope=`DescribeLoadBalancerAttributesInput`,kpe=`DescribeLoadBalancerAttributesOutput`,Ape=`DeleteLoadBalancerInput`,jpe=`DescribeLoadBalancersInput`,Mpe=`DuplicateLoadBalancerNameException`,Npe=`DeleteLoadBalancerOutput`,Ppe=`DescribeLoadBalancersOutput`,Fpe=`DescribeLoadBalancers`,Ipe=`DuplicateListenerException`,Lpe=`DeleteListenerInput`,Rpe=`DescribeListenersInput`,zpe=`DeleteListenerOutput`,Bpe=`DescribeListenersOutput`,Vpe=`DescribeListeners`,Hpe=`DNSName`,Upe=`DurationSeconds`,Wpe=`DeregisterTargets`,Gpe=`DeleteTargetGroup`,Kpe=`DescribeTargetGroupAttributes`,qpe=`DescribeTargetGroupAttributesInput`,Jpe=`DescribeTargetGroupAttributesOutput`,Ype=`DeleteTargetGroupInput`,Xpe=`DescribeTargetGroupsInput`,Zpe=`DuplicateTargetGroupNameException`,Qpe=`DeleteTargetGroupOutput`,$pe=`DescribeTargetGroupsOutput`,eme=`DescribeTargetGroups`,tme=`DescribeTargetHealth`,nme=`DescribeTargetHealthInput`,rme=`DescribeTargetHealthOutput`,ime=`DeregisterTargetsInput`,ame=`DescribeTagsInput`,ome=`DuplicateTagKeysException`,sme=`DeregisterTargetsOutput`,cme=`DescribeTagsOutput`,lme=`DuplicateTrustStoreNameException`,ume=`DescribeTags`,dme=`Enabled`,m0=`EnablePrefixForIpv6SourceNat`,fme=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,pme=`Format`,mme=`ForwardActionConfig`,hme=`ForwardConfig`,gme=`FixedResponseActionConfig`,_me=`FixedResponseConfig`,vme=`GrpcCode`,yme=`Host`,bme=`HttpCode`,h0=`HealthCheckEnabled`,g0=`HealthCheckIntervalSeconds`,_0=`HealthCheckProtocol`,v0=`HealthCheckPort`,y0=`HealthCheckPath`,b0=`HealthCheckTimeoutSeconds`,x0=`HealthyThresholdCount`,xme=`HealthUnavailableException`,S0=`Issuer`,Sme=`IpAddress`,C0=`IpAddressType`,Cme=`InvalidCaCertificatesBundleException`,wme=`IgnoreClientCertificateExpiry`,Tme=`InsufficientCapacityException`,Eme=`InvalidConfigurationRequestException`,Dme=`IsDefault`,Ome=`Ipv4IpamPoolId`,kme=`InvalidLoadBalancerActionException`,w0=`IpamPools`,T0=`IPv6Address`,Ame=`IncompatibleProtocolsException`,jme=`InvalidRevocationContentException`,Mme=`InvalidSchemeException`,Nme=`InvalidSubnetException`,Pme=`InvalidSecurityGroupException`,Fme=`InvalidTargetException`,Ime=`Id`,Lme=`Include`,Rme=`JwksEndpoint`,zme=`JwtValidationActionAdditionalClaim`,Bme=`JwtValidationActionAdditionalClaims`,Vme=`JwtValidationActionConfig`,Hme=`JwtValidationConfig`,E0=`Key`,D0=`Listeners`,O0=`ListenerArn`,Ume=`ListenerArns`,k0=`LoadBalancers`,A0=`LoadBalancerAddresses`,j0=`LoadBalancerArn`,M0=`LoadBalancerArns`,Wme=`LoadBalancerAddress`,Gme=`LoadBalancerAttribute`,Kme=`LoadBalancerAttributes`,qme=`LoadBalancerName`,Jme=`LoadBalancerNotFoundException`,Yme=`LoadBalancerState`,Xme=`LoadBalancer`,Zme=`ListenerNotFoundException`,Qme=`Listener`,G=`Message`,N0=`MutualAuthentication`,$me=`MutualAuthenticationAttributes`,ehe=`MessageBody`,the=`MitigationInEffect`,nhe=`ModifyLoadBalancerAttributes`,rhe=`ModifyLoadBalancerAttributesInput`,ihe=`ModifyLoadBalancerAttributesOutput`,ahe=`ModifyTargetGroupAttributes`,ohe=`ModifyTargetGroupAttributesInput`,she=`ModifyTargetGroupAttributesOutput`,P0=`Matcher`,F0=`Marker`,che=`Mode`,I0=`Name`,L0=`NextMarker`,R0=`Names`,lhe=`Order`,uhe=`OutpostId`,dhe=`OperationNotPermittedException`,z0=`OnUnauthenticatedRequest`,B0=`PrivateIPv4Address`,fhe=`PriorityInUseException`,phe=`PriorRequestNotCompleteException`,V0=`PageSize`,H0=`ProtocolVersion`,mhe=`Path`,U0=`Port`,W0=`Protocol`,hhe=`Query`,ghe=`QuicServerId`,G0=`Reason`,_he=`ResourceArns`,vhe=`RedirectActionConfig`,yhe=`ResourceArn`,bhe=`RedirectConfig`,xhe=`RevocationContentNotFoundException`,She=`RevocationIdNotFoundException`,Che=`ResourceInUseException`,whe=`ResourceNotFoundException`,The=`RuleNotFoundException`,Ehe=`RegisterTargetsInput`,Dhe=`RegisterTargetsOutput`,Ohe=`RegisterTargets`,khe=`Result`,K0=`State`,q0=`StatusCode`,J0=`SessionCookieName`,Y0=`SecurityGroups`,X0=`SubnetId`,Z0=`SubnetMappings`,Ahe=`SubnetMapping`,jhe=`SubnetNotFoundException`,Mhe=`SourceNatIpv6Prefixes`,Nhe=`SourceNatIpv6Prefix`,Q0=`SslPolicy`,Phe=`SSLPolicyNotFoundException`,$0=`SessionTimeout`,e2=`Scope`,t2=`Scheme`,Fhe=`Subnets`,n2=`Type`,r2=`TargetControlPort`,i2=`TagDescriptions`,Ihe=`TagDescription`,Lhe=`TargetDescription`,Rhe=`TargetDescriptions`,zhe=`TokenEndpoint`,a2=`TargetGroups`,o2=`TargetGroupArn`,Bhe=`TargetGroupAssociationLimitException`,Vhe=`TargetGroupArns`,Hhe=`TargetGroupAttribute`,Uhe=`TargetGroupAttributes`,Whe=`TargetGroupList`,Ghe=`TargetGroupName`,Khe=`TargetGroupNotFoundException`,s2=`TargetGroupStickinessConfig`,qhe=`TargetGroupTuple`,Jhe=`TargetGroup`,c2=`TargetHealth`,l2=`TargetHealthDescriptions`,Yhe=`TargetHealthDescription`,Xhe=`TagList`,Zhe=`TooManyActionsException`,Qhe=`TooManyCertificatesException`,$he=`TooManyLoadBalancersException`,ege=`TooManyListenersException`,tge=`TooManyRulesException`,nge=`TooManyRegistrationsForTargetIdException`,rge=`TooManyTagsException`,ige=`TooManyTargetsException`,age=`TooManyTargetGroupsException`,oge=`TooManyTrustStoresException`,sge=`TooManyTrustStoreRevocationEntriesException`,cge=`TooManyUniqueTargetGroupsPerLoadBalancerException`,lge=`TrustStoreArn`,uge=`TrustStoreAssociationNotFoundException`,dge=`TrustStoreAssociationStatus`,fge=`TrustStoreInUseException`,pge=`TrustStoreNotFoundException`,mge=`TrustStoreNotReadyException`,u2=`TargetType`,d2=`Tags`,hge=`Tag`,f2=`Targets`,gge=`Target`,_ge=`UseExistingClientSecret`,vge=`UserInfoEndpoint`,yge=`UserPoolArn`,bge=`UserPoolClientId`,xge=`UserPoolDomain`,Sge=`UnsupportedProtocolException`,p2=`UnhealthyThresholdCount`,Cge=`Values`,m2=`VpcId`,h2=`Value`,wge=`Weight`,Tge=`ZoneName`,K=`awsQueryError`,g2=`client`,q=`error`,_2=`httpError`,v2=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,y2=`server`,J=`com.amazonaws.elasticloadbalancingv2`,b2=ow.for(v2),Ege=[-3,v2,`ElasticLoadBalancingV2ServiceException`,0,[],[]];b2.registerError(Ege,W);var Y=ow.for(J),Dge=[-3,J,Jfe,{[K]:[`AllocationIdNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Dge,$de);var Oge=[-3,J,Yfe,{[K]:[`ALPNPolicyNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Oge,efe);var kge=[-3,J,$fe,{[K]:[`AvailabilityZoneNotSupported`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(kge,tfe);var Age=[-3,J,npe,{[K]:[`CaCertificatesBundleNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Age,nfe);var jge=[-3,J,rpe,{[K]:[`CapacityDecreaseRequestLimitExceeded`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(jge,rfe);var Mge=[-3,J,mpe,{[K]:[`CapacityReservationPending`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Mge,ife);var Nge=[-3,J,xpe,{[K]:[`CapacityUnitsLimitExceeded`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Nge,afe);var Pge=[-3,J,ppe,{[K]:[`CertificateNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Pge,Vde);var Fge=[-3,J,wpe,{[K]:[`DeleteAssociationSameAccount`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Fge,Pfe);var Ige=[-3,J,Ipe,{[K]:[`DuplicateListener`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Ige,ofe);var Lge=[-3,J,Mpe,{[K]:[`DuplicateLoadBalancerName`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Lge,yfe);var Rge=[-3,J,ome,{[K]:[`DuplicateTagKeys`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Rge,Wde);var zge=[-3,J,Zpe,{[K]:[`DuplicateTargetGroupName`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(zge,Afe);var Bge=[-3,J,lme,{[K]:[`DuplicateTrustStoreName`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Bge,jfe);var Vge=[-3,J,xme,{[K]:[`HealthUnavailable`,500],[q]:y2,[_2]:500},[G],[0]];Y.registerError(Vge,Rfe);var Hge=[-3,J,Ame,{[K]:[`IncompatibleProtocols`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Hge,sfe);var Uge=[-3,J,Tme,{[K]:[`InsufficientCapacity`,500],[q]:y2,[_2]:500},[G],[0]];Y.registerError(Uge,Vfe);var Wge=[-3,J,Cme,{[K]:[`InvalidCaCertificatesBundle`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Wge,Mfe);var Gge=[-3,J,Eme,{[K]:[`InvalidConfigurationRequest`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Gge,cfe);var Kge=[-3,J,kme,{[K]:[`InvalidLoadBalancerAction`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Kge,lfe);var qge=[-3,J,jme,{[K]:[`InvalidRevocationContent`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(qge,Xde);var Jge=[-3,J,Mme,{[K]:[`InvalidScheme`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Jge,bfe);var Yge=[-3,J,Pme,{[K]:[`InvalidSecurityGroup`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Yge,xfe);var Xge=[-3,J,Nme,{[K]:[`InvalidSubnet`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Xge,Sfe);var Zge=[-3,J,Fme,{[K]:[`InvalidTarget`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Zge,Lfe);var Qge=[-3,J,Zme,{[K]:[`ListenerNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(Qge,Hde);var $ge=[-3,J,Jme,{[K]:[`LoadBalancerNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError($ge,Gde);var e_e=[-3,J,dhe,{[K]:[`OperationNotPermitted`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(e_e,Cfe);var t_e=[-3,J,fhe,{[K]:[`PriorityInUse`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(t_e,Dfe);var n_e=[-3,J,phe,{[K]:[`PriorRequestNotComplete`,429],[q]:g2,[_2]:429},[G],[0]];Y.registerError(n_e,Hfe);var r_e=[-3,J,Che,{[K]:[`ResourceInUse`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(r_e,wfe);var i_e=[-3,J,whe,{[K]:[`ResourceNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(i_e,Bfe);var a_e=[-3,J,xhe,{[K]:[`RevocationContentNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(a_e,Zde);var o_e=[-3,J,She,{[K]:[`RevocationIdNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(o_e,zfe);var s_e=[-3,J,The,{[K]:[`RuleNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(s_e,Kde);var c_e=[-3,J,Phe,{[K]:[`SSLPolicyNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(c_e,ufe);var l_e=[-3,J,jhe,{[K]:[`SubnetNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(l_e,Tfe);var u_e=[-3,J,Bhe,{[K]:[`TargetGroupAssociationLimit`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(u_e,dfe);var d_e=[-3,J,Khe,{[K]:[`TargetGroupNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(d_e,qde);var f_e=[-3,J,Zhe,{[K]:[`TooManyActions`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(f_e,ffe);var p_e=[-3,J,Qhe,{[K]:[`TooManyCertificates`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(p_e,Ude);var m_e=[-3,J,ege,{[K]:[`TooManyListeners`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(m_e,pfe);var h_e=[-3,J,$he,{[K]:[`TooManyLoadBalancers`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(h_e,Efe);var g_e=[-3,J,nge,{[K]:[`TooManyRegistrationsForTargetId`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(g_e,mfe);var __e=[-3,J,tge,{[K]:[`TooManyRules`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(__e,Ofe);var v_e=[-3,J,rge,{[K]:[`TooManyTags`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(v_e,Jde);var y_e=[-3,J,age,{[K]:[`TooManyTargetGroups`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(y_e,kfe);var b_e=[-3,J,ige,{[K]:[`TooManyTargets`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(b_e,hfe);var x_e=[-3,J,sge,{[K]:[`TooManyTrustStoreRevocationEntries`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(x_e,Qde);var S_e=[-3,J,oge,{[K]:[`TooManyTrustStores`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(S_e,Nfe);var C_e=[-3,J,cge,{[K]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(C_e,gfe);var w_e=[-3,J,uge,{[K]:[`AssociationNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(w_e,Ffe);var T_e=[-3,J,fge,{[K]:[`TrustStoreInUse`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(T_e,Ife);var E_e=[-3,J,pge,{[K]:[`TrustStoreNotFound`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(E_e,Yde);var D_e=[-3,J,mge,{[K]:[`TrustStoreNotReady`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(D_e,_fe);var O_e=[-3,J,Sge,{[K]:[`UnsupportedProtocol`,400],[q]:g2,[_2]:400},[G],[0]];Y.registerError(O_e,vfe);var k_e=[b2,Y],A_e=[3,J,Ufe,0,[n2,o2,Zfe,Kfe,lhe,bhe,_me,hme,Hme],[0,0,()=>P_e,()=>N_e,1,()=>wve,()=>dve,()=>fve,()=>mve],1],j_e=[3,J,i0,0,[K0,G0,f0],[0,0,0]],M_e=[3,J,n0,0,[khe,the],[0,0]],N_e=[3,J,Gfe,0,[yge,bge,xge,J0,e2,$0,o0,z0],[0,0,0,0,0,1,128,0],3],P_e=[3,J,Xfe,0,[S0,qfe,zhe,vge,ape,hpe,J0,e2,$0,o0,z0,_ge],[0,0,0,0,0,0,0,0,1,128,0,2],5],F_e=[3,J,s0,0,[Tge,X0,uhe,A0,Mhe],[0,0,0,()=>Rve,64]],I_e=[3,J,Spe,0,[tpe,Dme],[0,2]],L_e=[3,J,upe,0,[j0,p0,W0,U0,Q0,u0,a0,d2,N0],[0,()=>T2,0,1,0,()=>E2,64,()=>A2,()=>C2],2],R_e=[3,J,dpe,0,[D0],[()=>D2]],z_e=[3,J,cpe,0,[I0,Fhe,Z0,Y0,t2,d2,n2,C0,d0,m0,w0],[0,64,()=>zve,64,0,()=>A2,0,0,0,0,()=>x2],1],B_e=[3,J,lpe,0,[k0],[()=>k2]],V_e=[3,J,vpe,0,[I0,W0,H0,U0,m2,_0,v0,h0,y0,g0,b0,x0,p2,P0,u2,d2,C0,r2],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>S2,0,()=>A2,0,1],1],H_e=[3,J,ype,0,[a2],[()=>N2]],U_e=[3,J,Lpe,0,[O0],[0],1],W_e=[3,J,zpe,0,[],[]],G_e=[3,J,Ape,0,[j0],[0],1],K_e=[3,J,Npe,0,[],[]],q_e=[3,J,Ype,0,[o2],[0],1],J_e=[3,J,Qpe,0,[],[]],Y_e=[3,J,ime,0,[o2,f2],[0,()=>j2],2],X_e=[3,J,sme,0,[],[]],Z_e=[3,J,Rpe,0,[j0,Ume,F0,V0],[0,64,0,1]],Q_e=[3,J,Bpe,0,[D0,L0],[()=>D2,0]],$_e=[3,J,Ope,0,[j0],[0],1],eve=[3,J,kpe,0,[l0],[()=>O2]],tve=[3,J,jpe,0,[M0,R0,F0,V0],[64,64,0,1]],nve=[3,J,Ppe,0,[k0,L0],[()=>k2,0]],rve=[3,J,ame,0,[_he],[64],1],ive=[3,J,cme,0,[i2],[()=>Bve]],ave=[3,J,qpe,0,[o2],[0],1],ove=[3,J,Jpe,0,[l0],[()=>M2]],sve=[3,J,Xpe,0,[j0,Vhe,R0,F0,V0],[0,64,64,0,1]],cve=[3,J,$pe,0,[a2,L0],[()=>N2,0]],lve=[3,J,nme,0,[o2,f2,Lme],[0,()=>j2,64],1],uve=[3,J,rme,0,[l2],[()=>Hve]],dve=[3,J,gme,0,[q0,ehe,gpe],[0,0,0],1],fve=[3,J,mme,0,[a2,s2],[()=>Vve,()=>Mve]],x2=[3,J,w0,0,[Ome],[0]],pve=[3,J,zme,0,[pme,I0,Cge],[0,0,64],3],mve=[3,J,Vme,0,[Rme,S0,Wfe],[0,0,()=>Lve],2],hve=[3,J,Qme,0,[O0,j0,U0,W0,u0,Q0,p0,a0,N0],[0,0,1,0,()=>E2,0,()=>T2,64,()=>C2]],gve=[3,J,Xme,0,[j0,Hpe,ipe,bpe,qme,t2,m2,K0,n2,c0,Y0,C0,d0,fme,m0,w0],[0,0,0,4,0,0,0,()=>yve,0,()=>Ive,64,0,0,0,0,()=>x2]],_ve=[3,J,Wme,0,[Sme,r0,B0,T0],[0,0,0,0]],vve=[3,J,Gme,0,[E0,h2],[0,0]],yve=[3,J,Yme,0,[Cpe,G0],[0,0]],S2=[3,J,P0,0,[bme,vme],[0,0]],bve=[3,J,rhe,0,[j0,l0],[0,()=>O2],2],xve=[3,J,ihe,0,[l0],[()=>O2]],Sve=[3,J,ohe,0,[o2,l0],[0,()=>M2],2],Cve=[3,J,she,0,[l0],[()=>M2]],C2=[3,J,$me,0,[che,lge,wme,dge,Qfe],[0,0,2,0,0]],wve=[3,J,vhe,0,[q0,W0,U0,yme,mhe,hhe],[0,0,0,0,0,0],1],Tve=[3,J,Ehe,0,[o2,f2],[0,()=>j2],2],Eve=[3,J,Dhe,0,[],[]],Dve=[3,J,Ahe,0,[X0,r0,B0,T0,Nhe],[0,0,0,0,0]],Ove=[3,J,hge,0,[E0,h2],[0,0],1],kve=[3,J,Ihe,0,[yhe,d2],[0,()=>A2]],w2=[3,J,Lhe,0,[Ime,U0,s0,ghe],[0,1,0,0],1],Ave=[3,J,Jhe,0,[o2,Ghe,W0,U0,m2,_0,v0,h0,g0,b0,x0,p2,y0,P0,M0,u2,H0,C0,r2],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>S2,64,0,0,0,1]],jve=[3,J,Hhe,0,[E0,h2],[0,0]],Mve=[3,J,s2,0,[dme,Upe],[2,1]],Nve=[3,J,qhe,0,[o2,wge],[0,1]],Pve=[3,J,c2,0,[K0,G0,f0],[0,0,0]],Fve=[3,J,Yhe,0,[gge,v0,c2,n0,i0],[()=>w2,0,()=>Pve,()=>M_e,()=>j_e]],T2=[1,J,epe,0,()=>A_e],Ive=[1,J,c0,0,()=>F_e],E2=[1,J,ope,0,()=>I_e],Lve=[1,J,Bme,0,()=>pve],D2=[1,J,D0,0,()=>hve],Rve=[1,J,A0,0,()=>_ve],O2=[1,J,Kme,0,()=>vve],k2=[1,J,k0,0,()=>gve],zve=[1,J,Z0,0,()=>Dve],Bve=[1,J,i2,0,()=>kve],A2=[1,J,Xhe,0,()=>Ove],j2=[1,J,Rhe,0,()=>w2],M2=[1,J,Uhe,0,()=>jve],Vve=[1,J,Whe,0,()=>Nve],N2=[1,J,a2,0,()=>Ave],Hve=[1,J,l2,0,()=>Fve],Uve=[9,J,fpe,0,()=>L_e,()=>R_e],Wve=[9,J,spe,0,()=>z_e,()=>B_e],Gve=[9,J,_pe,0,()=>V_e,()=>H_e],Kve=[9,J,Tpe,0,()=>U_e,()=>W_e],qve=[9,J,Epe,0,()=>G_e,()=>K_e],Jve=[9,J,Gpe,0,()=>q_e,()=>J_e],Yve=[9,J,Wpe,0,()=>Y_e,()=>X_e],Xve=[9,J,Vpe,0,()=>Z_e,()=>Q_e],Zve=[9,J,Dpe,0,()=>$_e,()=>eve],Qve=[9,J,Fpe,0,()=>tve,()=>nve],$ve=[9,J,ume,0,()=>rve,()=>ive],eye=[9,J,Kpe,0,()=>ave,()=>ove],tye=[9,J,eme,0,()=>sve,()=>cve],nye=[9,J,tme,0,()=>lve,()=>uve],rye=[9,J,nhe,0,()=>bve,()=>xve],iye=[9,J,ahe,0,()=>Sve,()=>Cve],aye=[9,J,Ohe,0,()=>Tve,()=>Eve],oye=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??bC,base64Encoder:e?.base64Encoder??xC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Bde,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Mde,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new BD}],logger:e?.logger??new MD,protocol:e?.protocol??tO,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:k_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??GC,utf8Decoder:e?.utf8Decoder??Kx,utf8Encoder:e?.utf8Encoder??Jx}),sye=e=>{let t=JD(e),n=()=>t().then(DD),r=oye(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??qD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??UD({serviceId:r.serviceId,clientVersion:Fde.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??GD(`Region is missing`),requestHandler:kC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||bE),sha256:e?.sha256??Nx,streamCollector:e?.streamCollector??jC,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}}},lye=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),uye=(e,t)=>{let n=Object.assign(j1(e),kD(e),Px(e),cye(e));return t.forEach(e=>e.configure(n)),Object.assign(e,M1(n),AD(n),Fx(n),lye(n))},dye=class extends xD{config;constructor(...[e]){let t=sye(e||{});super(t),this.initConfig=t;let n=uye(Nde(mD(XS(oD(hD(OT(Pde(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(XC(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(cD(this.config)),this.middlewareStack.use($S(this.config)),this.middlewareStack.use(nC(this.config)),this.middlewareStack.use(aC(this.config)),this.middlewareStack.use(uC(this.config,{httpAuthSchemeParametersProvider:Ade,identityProviderConfigProvider:async e=>new CT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(hC(this.config))}destroy(){super.destroy()}},fye=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(Xve).build(){},pye=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(Zve).build(){},P2=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(Qve).build(){},mye=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc($ve).build(){},hye=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(eye).build(){},F2=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(tye).build(){},gye=class extends wD.classBuilder().ep(H1).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(nye).build(){},_ye=async(e,t,n)=>({operation:AS(t).operation,region:await jS(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function vye(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var yye=e=>{let t=[];switch(e.operation){default:t.push(vye(e))}return t},bye=e=>{let t=VD(e);return Object.assign(t,{authSchemePreference:jS(e.authSchemePreference??[])})},xye=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),I2={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Sye={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1041.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`}},L2=`ref`,R2=`authSchemes`,z2=`name`,B2=`signingRegion`,V2=-1,H2=!0,U2=`isSet`,W2=`PartitionResult`,G2=`booleanEquals`,K2=`stringEquals`,q2=`getAttr`,J2=`sigv4`,Y2={[L2]:`Endpoint`},X2={fn:q2,argv:[{[L2]:W2},`name`]},Z2={[L2]:W2},Q2={[R2]:[{[z2]:J2,[B2]:`us-east-1`}]},$2={[R2]:[{[z2]:J2,[B2]:`cn-north-1`}]},e4={[R2]:[{[z2]:J2,[B2]:`us-gov-west-1`}]},t4={[R2]:[{[z2]:J2,[B2]:`us-iso-east-1`}]},n4={[R2]:[{[z2]:J2,[B2]:`us-isob-east-1`}]},r4={[R2]:[{[z2]:J2,[B2]:`{PartitionResult#implicitGlobalRegion}`}]},i4=[{[L2]:`Region`}],a4={conditions:[[U2,[Y2]],[U2,i4],[`aws.partition`,i4,W2],[G2,[{[L2]:`UseFIPS`},H2]],[G2,[{[L2]:`UseDualStack`},H2]],[K2,[X2,`aws`]],[K2,[X2,`aws-cn`]],[K2,[X2,`aws-us-gov`]],[G2,[{fn:q2,argv:[Z2,`supportsDualStack`]},H2]],[K2,[X2,`aws-iso`]],[K2,[X2,`aws-iso-b`]],[G2,[{fn:q2,argv:[Z2,`supportsFIPS`]},H2]],[K2,[X2,`aws-iso-e`]],[K2,[X2,`aws-iso-f`]],[K2,[X2,`aws-eusc`]]],results:[[V2],[V2,`Invalid Configuration: FIPS and custom endpoint are not supported`],[V2,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Y2,{}],[`https://iam.global.api.aws`,Q2],[`https://iam-fips.global.api.aws`,Q2],[`https://iam.global.api.amazonwebservices.com.cn`,$2],[`https://iam.cn-north-1.amazonaws.com.cn`,$2],[`https://iam.us-gov.api.aws`,e4],[`https://iam.us-gov.amazonaws.com`,e4],[`https://iam.us-iso-east-1.c2s.ic.gov`,t4],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,t4],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,n4],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,n4],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[R2]:[{[z2]:J2,[B2]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[R2]:[{[z2]:J2,[B2]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[R2]:[{[z2]:J2,[B2]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,r4],[V2,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,r4],[V2,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,r4],[V2,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,r4],[V2,`Invalid Configuration: Missing Region`]]},Cye=2,o4=1e8,wye=new Int32Array([-1,1,-1,0,27,3,1,4,o4+24,2,5,o4+24,3,18,6,4,14,7,6,o4+7,8,7,o4+9,9,9,o4+10,10,10,o4+12,11,12,o4+14,12,13,o4+15,13,14,o4+16,o4+23,5,o4+4,15,6,o4+6,16,7,o4+8,17,8,o4+21,o4+22,4,23,19,7,o4+9,20,9,o4+11,21,10,o4+13,22,11,o4+19,o4+20,5,o4+5,24,7,o4+8,25,8,26,o4+18,11,o4+17,o4+18,3,o4+1,28,4,o4+2,o4+3]),Tye=kT.from(wye,Cye,a4.conditions,a4.results),Eye=new AT({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Dye=(e,t={})=>Eye.get(e,()=>cE(Tye,{endpointParams:e,logger:t.logger}));PT.aws=_E;var s4=class e extends TD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Oye=class e extends s4{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kye=class e extends s4{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Aye=class e extends s4{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},jye=class e extends s4{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Mye=class e extends s4{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nye=class e extends s4{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pye=class e extends s4{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fye=class e extends s4{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Iye=class e extends s4{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lye=class e extends s4{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rye=class e extends s4{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zye=class e extends s4{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bye=class e extends s4{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vye=class e extends s4{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hye=class e extends s4{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Uye=class e extends s4{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wye=class e extends s4{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Gye=class e extends s4{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Kye=class e extends s4{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qye=class e extends s4{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jye=class e extends s4{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yye=class e extends s4{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xye=class e extends s4{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zye=class e extends s4{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qye=class e extends s4{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$ye=class e extends s4{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ebe=class e extends s4{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tbe=class e extends s4{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nbe=class e extends s4{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},rbe=class e extends s4{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ibe=class e extends s4{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},abe=class e extends s4{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},obe=class e extends s4{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sbe=class e extends s4{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cbe=class e extends s4{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},c4=`Arn`,lbe=`AttachmentCount`,l4=`AccessKey`,u4=`AccessKeyId`,d4=`AccessKeyMetadata`,ube=`AccountNotManagementOrDelegatedAdministratorException`,dbe=`AttachedPolicy`,fbe=`AttachedPermissionsBoundary`,pbe=`AttachedPolicies`,mbe=`AttachUserPolicy`,hbe=`AttachUserPolicyRequest`,gbe=`CreateAccessKey`,_be=`CreateAccessKeyRequest`,vbe=`CreateAccessKeyResponse`,f4=`CreateDate`,ybe=`CallerIsNotManagementAccountException`,bbe=`ConcurrentModificationException`,xbe=`CreatePolicyRequest`,Sbe=`CreatePolicyResponse`,Cbe=`CreatePolicy`,wbe=`CredentialReportExpiredException`,Tbe=`CredentialReportNotPresentException`,Ebe=`CredentialReportNotReadyException`,Dbe=`CreateUser`,Obe=`CreateUserRequest`,kbe=`CreateUserResponse`,p4=`Description`,Abe=`DeleteAccessKey`,jbe=`DeleteAccessKeyRequest`,Mbe=`DeleteConflictException`,Nbe=`DuplicateCertificateException`,Pbe=`DeletePolicyRequest`,Fbe=`DeletePolicy`,Ibe=`DuplicateSSHPublicKeyException`,Lbe=`DeleteUser`,Rbe=`DetachUserPolicyRequest`,zbe=`DetachUserPolicy`,Bbe=`DeleteUserRequest`,Vbe=`DefaultVersionId`,Hbe=`Document`,Ube=`EntityAlreadyExistsException`,Wbe=`EntityTemporarilyUnmodifiableException`,Gbe=`FeatureDisabledException`,Kbe=`FeatureEnabledException`,qbe=`GetPolicy`,Jbe=`GetPolicyRequest`,Ybe=`GetPolicyResponse`,Xbe=`GetPolicyVersion`,Zbe=`GetPolicyVersionRequest`,Qbe=`GetPolicyVersionResponse`,$be=`GetUser`,exe=`GetUserRequest`,txe=`GetUserResponse`,nxe=`IsAttachable`,rxe=`InvalidAuthenticationCodeException`,ixe=`InvalidCertificateException`,axe=`IsDefaultVersion`,oxe=`InvalidInputException`,sxe=`InvalidPublicKeyException`,m4=`IsTruncated`,cxe=`InvalidUserTypeException`,lxe=`Key`,uxe=`KeyPairMismatchException`,dxe=`ListAccessKeys`,fxe=`ListAccessKeysRequest`,pxe=`ListAccessKeysResponse`,mxe=`ListAttachedUserPolicies`,hxe=`ListAttachedUserPoliciesRequest`,gxe=`ListAttachedUserPoliciesResponse`,_xe=`LimitExceededException`,vxe=`ListPoliciesRequest`,yxe=`ListPoliciesResponse`,bxe=`ListPolicies`,xxe=`ListUsers`,Sxe=`ListUsersRequest`,Cxe=`ListUsersResponse`,h4=`Message`,wxe=`MalformedCertificateException`,g4=`MaxItems`,Txe=`MalformedPolicyDocumentException`,_4=`Marker`,Exe=`NoSuchEntityException`,Dxe=`OnlyAttached`,Oxe=`OpenIdIdpCommunicationErrorException`,kxe=`OrganizationNotFoundException`,Axe=`OrganizationNotInAllFeaturesModeException`,v4=`PolicyArn`,y4=`PermissionsBoundary`,jxe=`PermissionsBoundaryArn`,Mxe=`PermissionsBoundaryType`,Nxe=`PermissionsBoundaryUsageCount`,Pxe=`PolicyDocument`,Fxe=`PolicyEvaluationException`,Ixe=`PolicyId`,Lxe=`PasswordLastUsed`,b4=`PolicyName`,Rxe=`PolicyNotAttachableException`,zxe=`PasswordPolicyViolationException`,x4=`PathPrefix`,Bxe=`PolicyUsageFilter`,S4=`PolicyVersion`,C4=`Path`,w4=`Policy`,Vxe=`Policies`,Hxe=`ReportGenerationLimitExceededException`,T4=`Status`,Uxe=`SecretAccessKey`,Wxe=`ServiceAccessNotEnabledException`,Gxe=`ServiceFailureException`,Kxe=`ServiceNotSupportedException`,qxe=`Scope`,E4=`Tags`,Jxe=`Tag`,Yxe=`UpdateAccessKey`,Xxe=`UpdateAccessKeyRequest`,Zxe=`UpdateDate`,Qxe=`UnmodifiableEntityException`,$xe=`UserId`,D4=`UserName`,eSe=`UnrecognizedPublicKeyEncodingException`,O4=`User`,tSe=`Users`,k4=`VersionId`,nSe=`Value`,rSe=`accessKeyMetadataListType`,iSe=`accessKeySecretType`,aSe=`attachedPoliciesListType`,A4=`awsQueryError`,j4=`client`,M4=`error`,N4=`httpError`,P4=`message`,oSe=`policyListType`,F4=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,I4=`server`,sSe=`tagListType`,cSe=`userListType`,X=`com.amazonaws.iam`,L4=ow.for(F4),lSe=[-3,F4,`IAMServiceException`,0,[],[]];L4.registerError(lSe,s4);var R4=ow.for(X),uSe=[-3,X,ube,{[M4]:j4,[N4]:400},[h4],[0]];R4.registerError(uSe,jye);var dSe=[-3,X,ybe,{[M4]:j4,[N4]:400},[h4],[0]];R4.registerError(dSe,Yye);var fSe=[-3,X,bbe,{[A4]:[`ConcurrentModification`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(fSe,Oye);var pSe=[-3,X,wbe,{[A4]:[`ReportExpired`,410],[M4]:j4,[N4]:410},[P4],[0]];R4.registerError(pSe,Qye);var mSe=[-3,X,Tbe,{[A4]:[`ReportNotPresent`,410],[M4]:j4,[N4]:410},[P4],[0]];R4.registerError(mSe,$ye);var hSe=[-3,X,Ebe,{[A4]:[`ReportInProgress`,404],[M4]:j4,[N4]:404},[P4],[0]];R4.registerError(hSe,ebe);var gSe=[-3,X,Mbe,{[A4]:[`DeleteConflict`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(gSe,Uye);var _Se=[-3,X,Nbe,{[A4]:[`DuplicateCertificate`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(_Se,abe);var vSe=[-3,X,Ibe,{[A4]:[`DuplicateSSHPublicKey`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(vSe,sbe);var ySe=[-3,X,Ube,{[A4]:[`EntityAlreadyExists`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(ySe,Pye);var bSe=[-3,X,Wbe,{[A4]:[`EntityTemporarilyUnmodifiable`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(bSe,Lye);var xSe=[-3,X,Gbe,{[A4]:[`FeatureDisabled`,404],[M4]:j4,[N4]:404},[P4],[0]];R4.registerError(xSe,qye);var SSe=[-3,X,Kbe,{[A4]:[`FeatureEnabled`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(SSe,Xye);var CSe=[-3,X,rxe,{[A4]:[`InvalidAuthenticationCode`,403],[M4]:j4,[N4]:403},[P4],[0]];R4.registerError(CSe,Jye);var wSe=[-3,X,ixe,{[A4]:[`InvalidCertificate`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(wSe,obe);var TSe=[-3,X,oxe,{[A4]:[`InvalidInput`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(TSe,Mye);var ESe=[-3,X,sxe,{[A4]:[`InvalidPublicKey`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(ESe,cbe);var DSe=[-3,X,cxe,{[A4]:[`InvalidUserType`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(DSe,Rye);var OSe=[-3,X,uxe,{[A4]:[`KeyPairMismatch`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(OSe,rbe);var kSe=[-3,X,_xe,{[A4]:[`LimitExceeded`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(kSe,Nye);var ASe=[-3,X,wxe,{[A4]:[`MalformedCertificate`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(ASe,ibe);var jSe=[-3,X,Txe,{[A4]:[`MalformedPolicyDocument`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(jSe,Vye);var MSe=[-3,X,Exe,{[A4]:[`NoSuchEntity`,404],[M4]:j4,[N4]:404},[P4],[0]];R4.registerError(MSe,kye);var NSe=[-3,X,Oxe,{[A4]:[`OpenIdIdpCommunicationError`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(NSe,Bye);var PSe=[-3,X,kxe,{[M4]:j4,[N4]:400},[h4],[0]];R4.registerError(PSe,Wye);var FSe=[-3,X,Axe,{[M4]:j4,[N4]:400},[h4],[0]];R4.registerError(FSe,Gye);var ISe=[-3,X,zxe,{[A4]:[`PasswordPolicyViolation`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(ISe,zye);var LSe=[-3,X,Fxe,{[A4]:[`PolicyEvaluation`,500],[M4]:I4,[N4]:500},[P4],[0]];R4.registerError(LSe,nbe);var RSe=[-3,X,Rxe,{[A4]:[`PolicyNotAttachable`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(RSe,Iye);var zSe=[-3,X,Hxe,{[A4]:[`ReportGenerationLimitExceeded`,409],[M4]:j4,[N4]:409},[P4],[0]];R4.registerError(zSe,Zye);var BSe=[-3,X,Wxe,{[M4]:j4,[N4]:400},[h4],[0]];R4.registerError(BSe,Kye);var VSe=[-3,X,Gxe,{[A4]:[`ServiceFailure`,500],[M4]:I4,[N4]:500},[P4],[0]];R4.registerError(VSe,Aye);var HSe=[-3,X,Kxe,{[A4]:[`NotSupportedService`,404],[M4]:j4,[N4]:404},[P4],[0]];R4.registerError(HSe,Hye);var USe=[-3,X,Qxe,{[A4]:[`UnmodifiableEntity`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(USe,Fye);var WSe=[-3,X,eSe,{[A4]:[`UnrecognizedPublicKeyEncoding`,400],[M4]:j4,[N4]:400},[P4],[0]];R4.registerError(WSe,tbe);var GSe=[L4,R4],KSe=[0,X,iSe,8,0],qSe=[3,X,l4,0,[D4,u4,T4,Uxe,f4],[0,0,0,[()=>KSe,0],4],4],JSe=[3,X,d4,0,[D4,u4,T4,f4],[0,0,0,4]],YSe=[3,X,fbe,0,[Mxe,jxe],[0,0]],XSe=[3,X,dbe,0,[b4,v4],[0,0]],ZSe=[3,X,hbe,0,[D4,v4],[0,0],2],QSe=[3,X,_be,0,[D4],[0]],$Se=[3,X,vbe,0,[l4],[[()=>qSe,0]],1],eCe=[3,X,xbe,0,[b4,Pxe,C4,p4,E4],[0,0,0,0,()=>H4],2],tCe=[3,X,Sbe,0,[w4],[()=>z4]],nCe=[3,X,Obe,0,[D4,C4,y4,E4],[0,0,0,()=>H4],1],rCe=[3,X,kbe,0,[O4],[()=>B4]],iCe=[3,X,jbe,0,[u4,D4],[0,0],1],aCe=[3,X,Pbe,0,[v4],[0],1],oCe=[3,X,Bbe,0,[D4],[0],1],sCe=[3,X,Rbe,0,[D4,v4],[0,0],2],cCe=[3,X,Jbe,0,[v4],[0],1],lCe=[3,X,Ybe,0,[w4],[()=>z4]],uCe=[3,X,Zbe,0,[v4,k4],[0,0],2],dCe=[3,X,Qbe,0,[S4],[()=>SCe]],fCe=[3,X,exe,0,[D4],[0]],pCe=[3,X,txe,0,[O4],[()=>B4],1],mCe=[3,X,fxe,0,[D4,_4,g4],[0,0,1]],hCe=[3,X,pxe,0,[d4,m4,_4],[()=>TCe,2,0],1],gCe=[3,X,hxe,0,[D4,x4,_4,g4],[0,0,0,1],1],_Ce=[3,X,gxe,0,[pbe,m4,_4],[()=>ECe,2,0]],vCe=[3,X,vxe,0,[qxe,Dxe,x4,Bxe,_4,g4],[0,2,0,0,0,1]],yCe=[3,X,yxe,0,[Vxe,m4,_4],[()=>DCe,2,0]],bCe=[3,X,Sxe,0,[x4,_4,g4],[0,0,1]],xCe=[3,X,Cxe,0,[tSe,m4,_4],[()=>OCe,2,0],1],z4=[3,X,w4,0,[b4,Ixe,c4,C4,Vbe,lbe,Nxe,nxe,p4,f4,Zxe,E4],[0,0,0,0,0,1,1,2,0,4,4,()=>H4]],SCe=[3,X,S4,0,[Hbe,k4,axe,f4],[0,0,2,4]],CCe=[3,X,Jxe,0,[lxe,nSe],[0,0],2],wCe=[3,X,Xxe,0,[u4,T4,D4],[0,0,0],2],B4=[3,X,O4,0,[C4,D4,$xe,c4,f4,Lxe,y4,E4],[0,0,0,0,4,4,()=>YSe,()=>H4],5],V4=`unit`,TCe=[1,X,rSe,0,()=>JSe],ECe=[1,X,aSe,0,()=>XSe],DCe=[1,X,oSe,0,()=>z4],H4=[1,X,sSe,0,()=>CCe],OCe=[1,X,cSe,0,()=>B4],kCe=[9,X,mbe,0,()=>ZSe,()=>V4],ACe=[9,X,gbe,0,()=>QSe,()=>$Se],jCe=[9,X,Cbe,0,()=>eCe,()=>tCe],MCe=[9,X,Dbe,0,()=>nCe,()=>rCe],NCe=[9,X,Abe,0,()=>iCe,()=>V4],PCe=[9,X,Fbe,0,()=>aCe,()=>V4],FCe=[9,X,Lbe,0,()=>oCe,()=>V4],ICe=[9,X,zbe,0,()=>sCe,()=>V4],LCe=[9,X,qbe,0,()=>cCe,()=>lCe],RCe=[9,X,Xbe,0,()=>uCe,()=>dCe],zCe=[9,X,$be,0,()=>fCe,()=>pCe],BCe=[9,X,dxe,0,()=>mCe,()=>hCe],VCe=[9,X,mxe,0,()=>gCe,()=>_Ce],HCe=[9,X,bxe,0,()=>vCe,()=>yCe],UCe=[9,X,xxe,0,()=>bCe,()=>xCe],WCe=[9,X,Yxe,0,()=>wCe,()=>V4],GCe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??bC,base64Encoder:e?.base64Encoder??xC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Dye,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??yye,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new BD}],logger:e?.logger??new MD,protocol:e?.protocol??tO,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:GSe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??GC,utf8Decoder:e?.utf8Decoder??Kx,utf8Encoder:e?.utf8Encoder??Jx}),KCe=e=>{let t=JD(e),n=()=>t().then(DD),r=GCe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??qD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??UD({serviceId:r.serviceId,clientVersion:Sye.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??GD(`Region is missing`),requestHandler:kC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||bE),sha256:e?.sha256??Nx,streamCollector:e?.streamCollector??jC,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},qCe=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}}},JCe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),YCe=(e,t)=>{let n=Object.assign(j1(e),kD(e),Px(e),qCe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,M1(n),AD(n),Fx(n),JCe(n))},XCe=class extends xD{config;constructor(...[e]){let t=KCe(e||{});super(t),this.initConfig=t;let n=YCe(bye(mD(XS(oD(hD(OT(xye(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(XC(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(cD(this.config)),this.middlewareStack.use($S(this.config)),this.middlewareStack.use(nC(this.config)),this.middlewareStack.use(aC(this.config)),this.middlewareStack.use(uC(this.config,{httpAuthSchemeParametersProvider:_ye,identityProviderConfigProvider:async e=>new CT({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(hC(this.config))}destroy(){super.destroy()}},ZCe=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(LCe).build(){},QCe=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(RCe).build(){},$Ce=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(zCe).build(){},ewe=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(BCe).build(){},twe=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(VCe).build(){},nwe=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(HCe).build(){},rwe=class extends wD.classBuilder().ep(I2).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(UCe).build(){};function iwe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&zx.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 awe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},owe=e=>({applyToStack:t=>{t.add(iwe(e),awe)}}),U4={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},swe=U4.WHEN_SUPPORTED,cwe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},lwe=U4.WHEN_SUPPORTED,W4;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(W4||={});var uwe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(uwe||={});var dwe=W4.CRC32,fwe=function(){function e(){this.crc32=new G4}return e.prototype.update=function(e){dx(e)||this.crc32.update(ux(e))},e.prototype.digest=function(){return bx(this,void 0,void 0,function(){return xx(this,function(e){return[2,fx(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new G4},e}(),G4=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=Sx(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^pwe[(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}(),pwe=px([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]),mwe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:jS(t??swe),responseChecksumValidation:jS(n??lwe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},hwe=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}},gwe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function _we(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 vwe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},ywe=e=>({applyToStack:t=>{t.add(_we(e),vwe),t.addRelativeTo(hwe(e),gwe)}}),bwe=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 K4(Promise.resolve(e)))})),t)):i.set(r,new K4(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}}},Swe=`sigv4-s3express`,q4=`X-Amz-S3session-Token`,J4=q4.toLowerCase(),Cwe=class extends RS{async signWithCredentials(e,t,n){let r=Y4(t);e.headers[J4]=t.sessionToken;let i=this;return X4(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=Y4(t);return delete e.headers[J4],e.headers[q4]=t.sessionToken,e.query=e.query??{},e.query[q4]=t.sessionToken,X4(this,r),this.presign(e,n)}};function Y4(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function X4(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 wwe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===Swe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(UE(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,zx.isInstance(r.request)&&i.sessionToken&&(r.request.headers[J4]=i.sessionToken)}}}return t(r)},Twe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},Ewe=e=>({applyToStack:t=>{t.add(wwe(e),Twe)}}),Dwe=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},Owe=e=>e=>{throw e},kwe=(e,t)=>{},Awe=e=>(t,n)=>async r=>{if(!zx.isInstance(r.request))return t(r);let i=AS(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 Dwe(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||Owe)(a));return(s.successHandler||kwe)(l.response,a),l},jwe=e=>({applyToStack:t=>{t.addRelativeTo(Awe(e),mC)}}),Mwe=(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 xwe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})};function Nwe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var Pwe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Fwe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Vx.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await Iwe(s,e);if(a.body=Nwe(c),c.length===0&&Pwe[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},Iwe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Lwe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},Z4=e=>({applyToStack:t=>{t.addRelativeTo(Fwe(e),Lwe)}}),Rwe=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6;function zwe(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 Bwe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function Vwe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!Rwe(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var Hwe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},Uwe=e=>({applyToStack:t=>{t.add(Vwe(e),Hwe),t.addRelativeTo(zwe(e),Bwe)}}),Wwe=class extends fie{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=nw.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}},Gwe=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),Q4={CrtSignerV4:null},$4=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof Q4.CrtSignerV4==`function`?`crt`:typeof zS.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new Cwe(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=Q4.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=Q4.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=Q4.CrtSignerV4,t=zS.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}},e3=`ref`,t3=`argv`,n3=`backend`,r3=`authSchemes`,i3=`disableDoubleEncoding`,a3=`signingName`,o3=`signingRegion`,s3=`signingRegionSet`,c3=-1,l3=!0,u3=!1,d3=`isSet`,f3=`booleanEquals`,p3=`stringEquals`,m3=`coalesce`,h3=`substring`,g3=``,_3=`aws.partition`,v3=`partitionResult`,y3=`accessPointSuffix`,b3=`regionPrefix`,x3=e=>`outpostId_ssa_`+e+g3,S3=`hardwareType`,C3=`ite`,w3=`isValidHostLabel`,T3=`sigv4`,E3=`aws.isVirtualHostableS3Bucket`,D3=`url`,O3=`getAttr`,k3=`bucketArn`,A3=`--`,j3=`arnType`,M3=`accesspoint`,N3=e=>`accessPointName_ssa_`+e+g3,P3=`s3-object-lambda`,F3=`s3-outposts`,I3=`bucketPartition`,L3=`us-east-1`,R3=`outpostType`,z3=`name`,B3=`s3`,V3=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,H3=`{url#scheme}://{url#authority}{url#path}`,U3=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,W3=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,G3=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,K3=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,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={[e3]:`UseFIPS`},Q3={[e3]:`UseDualStack`},$3={[e3]:`Bucket`},e6={fn:O3,[t3]:[{[e3]:v3},z3]},t6={[e3]:D3},n6={[e3]:`Region`},r6={[e3]:k3},i6={[e3]:j3},a6={[e3]:`accessPointName_ssa_1`},o6={fn:O3,[t3]:[r6,`region`]},s6={[e3]:S3},c6={fn:O3,[t3]:[r6,`service`]},l6={fn:O3,[t3]:[r6,`accountId`]},u6={[n3]:`S3Express`,[r3]:[{[i3]:!0,[z3]:`{_s3e_auth}`,[a3]:`s3express`,[o3]:`{Region}`}]},d6={[n3]:`S3Express`,[r3]:[{[i3]:!0,[z3]:T3,[a3]:`s3express`,[o3]:`{Region}`}]},f6={[r3]:[{[i3]:!0,[z3]:q3,[a3]:F3,[s3]:[`*`]},{[i3]:!0,[z3]:T3,[a3]:F3,[o3]:`{Region}`}]},p6={[r3]:[{[i3]:!0,[z3]:T3,[a3]:B3,[o3]:L3}]},m6={[r3]:[{[i3]:!0,[z3]:T3,[a3]:B3,[o3]:`{Region}`}]},h6={[r3]:[{[i3]:!0,[z3]:T3,[a3]:P3,[o3]:`{bucketArn#region}`}]},g6={[r3]:[{[i3]:!0,[z3]:T3,[a3]:B3,[o3]:`{bucketArn#region}`}]},_6={[r3]:[{[i3]:!0,[z3]:q3,[a3]:F3,[s3]:[`*`]},{[i3]:!0,[z3]:T3,[a3]:F3,[o3]:`{bucketArn#region}`}]},v6={[r3]:[{[i3]:!0,[z3]:T3,[a3]:P3,[o3]:`{Region}`}]},y6=[n6],b6=[{[e3]:`Endpoint`}],x6=[$3],S6=[$3,0,7,!0],C6=[r6,`resourceId[1]`],Kwe=[`*`],w6={conditions:[[d3,y6],[f3,[{[e3]:`Accelerate`},l3]],[f3,[Z3,l3]],[f3,[Q3,l3]],[d3,b6],[d3,x6],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,0,6,l3]},g3]},`--x-s3`]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:S6},g3]},`--xa-s3`]],[_3,y6,v3],[h3,S6,y3],[p3,[{[e3]:y3},`--op-s3`]],[h3,[$3,8,12,l3],b3],[h3,[$3,32,49,l3],x3(2)],[h3,[$3,49,50,l3],S3],[f3,[{[e3]:`ForcePathStyle`},l3]],[p3,[e6,`aws-cn`]],[C3,[Q3,`.dualstack`,g3],`_s3e_ds`],[w3,[{[e3]:x3(2)},u3]],[C3,[Z3,`-fips`,g3],`_s3e_fips`],[C3,[{fn:m3,[t3]:[{[e3]:`DisableS3ExpressSessionAuth`},u3]},T3,`sigv4-s3express`],`_s3e_auth`],[E3,[$3,u3]],[`parseURL`,b6,D3],[f3,[{fn:m3,[t3]:[{[e3]:`UseS3ExpressControlEndpoint`},u3]},l3]],[E3,[$3,l3]],[p3,[{fn:O3,[t3]:[t6,`scheme`]},`http`]],[w3,[n6,u3]],[`aws.parseArn`,x6,k3],[O3,[{fn:`split`,[t3]:[$3,A3,0]},`[-2]`],`s3expressAvailabilityZoneId`],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,0,4,u3]},g3]},`arn:`]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,16,18,l3]},g3]},A3]],[f3,[{fn:O3,[t3]:[t6,`isIp`]},l3]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,21,23,l3]},g3]},A3]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,27,29,l3]},g3]},A3]],[p3,[{[e3]:b3},`beta`]],[`uriEncode`,x6,`uri_encoded_bucket`],[w3,[n6,l3]],[f3,[{fn:m3,[t3]:[{[e3]:`UseObjectLambdaEndpoint`},u3]},l3]],[O3,[r6,`resourceId[0]`],j3],[p3,[i6,g3]],[p3,[i6,M3]],[O3,C6,N3(1)],[p3,[a6,g3]],[p3,[o6,g3]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,14,16,l3]},g3]},A3]],[p3,[s6,`e`]],[p3,[s6,`o`]],[p3,[n6,`aws-global`]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,19,21,l3]},g3]},A3]],[p3,[c6,P3]],[f3,[{fn:m3,[t3]:[{[e3]:`DisableAccessPoints`},u3]},l3]],[p3,[c6,F3]],[_3,[o6],I3],[w3,[a6,l3]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,26,28,l3]},g3]},A3]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,15,17,l3]},g3]},A3]],[O3,[r6,`resourceId[4]`]],[p3,[{fn:m3,[t3]:[{fn:h3,[t3]:[$3,20,22,l3]},g3]},A3]],[f3,[{[e3]:`UseGlobalEndpoint`},l3]],[p3,[n6,L3]],[O3,C6,x3(1)],[f3,[{fn:m3,[t3]:[{[e3]:`UseArnRegion`},l3]},l3]],[w3,[{[e3]:x3(1)},u3]],[O3,[r6,`resourceId[2]`],R3],[p3,[n6,o6]],[p3,[{fn:O3,[t3]:[{[e3]:I3},z3]},e6]],[f3,[{[e3]:`DisableMultiRegionAccessPoints`},l3]],[w3,[o6,l3]],[p3,[{fn:O3,[t3]:[r6,`partition`]},e6]],[p3,[l6,g3]],[p3,[c6,B3]],[w3,[l6,u3]],[O3,[r6,`resourceId[3]`],N3(2)],[w3,[a6,u3]],[p3,[{[e3]:R3},M3]]],results:[[c3],[c3,`Accelerate cannot be used with FIPS`],[c3,`Cannot set dual-stack in combination with a custom endpoint.`],[c3,`A custom endpoint cannot be combined with FIPS`],[c3,`A custom endpoint cannot be combined with S3 Accelerate`],[c3,`Partition does not support FIPS`],[c3,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,u6],[V3,u6],[c3,`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],[c3,`Unrecognized S3Express bucket name format.`],[H3,u6],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,d6],[c3,`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],[c3,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[c3,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[c3,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[c3,"Custom endpoint `{Endpoint}` was not a valid URI"],[c3,`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],[U3,p6],[V3,p6],[U3,m6],[V3,m6],[W3,p6],[W3,m6],[G3,p6],[G3,m6],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,m6],[c3,`Invalid region: region was not a valid DNS name.`],[c3,`S3 Object Lambda does not support Dual-stack`],[c3,`S3 Object Lambda does not support S3 Accelerate`],[c3,`Access points are not supported for this operation`],[c3,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[c3,`Invalid ARN: Missing account id`],[K3(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],[c3,"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_1}`"],[c3,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[c3,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[c3,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[c3,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[c3,`Invalid ARN: bucket ARN is missing a region`],[c3,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[c3,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[c3,`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],[K3(1),g6],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,g6],[c3,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[c3,`S3 MRAP does not support dual-stack`],[c3,`S3 MRAP does not support FIPS`],[c3,`S3 MRAP does not support S3 Accelerate`],[c3,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[r3]:[{[i3]:l3,name:q3,[a3]:B3,[s3]:Kwe}]}],[c3,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[c3,`Invalid Access Point Name`],[c3,`S3 Outposts does not support Dual-stack`],[c3,`S3 Outposts does not support FIPS`],[c3,`S3 Outposts does not support S3 Accelerate`],[c3,`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],[c3,"Expected an outpost type `accesspoint`, found {outpostType}"],[c3,`Invalid ARN: expected an access point name`],[c3,`Invalid ARN: Expected a 4-component resource`],[c3,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[c3,`Invalid ARN: The Outpost Id was not set`],[c3,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[c3,`Invalid ARN: No ARN type specified`],[c3,"Invalid ARN: `{Bucket}` was not a valid ARN"],[c3,`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],[c3,`Path-style addressing cannot be used with S3 Accelerate`],[H3,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],[H3,p6],[H3,m6],[X3,p6],[X3,m6],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,m6],[c3,`A region must be set when sending requests to S3.`]]},qwe=2,Z=1e8,Jwe=new Int32Array([-1,1,-1,0,3,Z+114,1,422,4,2,270,5,3,231,6,4,84,7,5,15,8,8,9,Z+114,16,10,13,18,11,13,19,12,13,22,Z+14,13,35,14,Z+42,36,Z+102,433,6,269,16,7,268,17,8,19,18,14,499,105,9,20,24,10,21,24,11,22,24,12,23,24,13,545,24,14,76,25,20,72,26,26,27,77,37,28,Z+85,38,Z+85,29,39,46,30,48,Z+58,31,50,32,Z+84,51,33,135,55,Z+76,34,59,35,Z+83,60,39,36,61,37,Z+82,62,38,145,63,41,Z+46,61,40,Z+82,62,41,149,64,42,Z+54,66,43,Z+53,70,44,Z+52,71,45,Z+80,73,Z+78,Z+79,40,47,Z+57,41,Z+57,48,42,183,49,48,61,50,49,Z+45,51,51,52,524,60,55,53,62,Z+55,54,63,56,Z+46,62,Z+55,56,64,57,Z+54,66,58,Z+53,69,59,Z+65,70,60,Z+52,72,Z+64,Z+51,49,Z+45,62,51,63,524,60,66,64,62,Z+55,65,63,67,Z+46,62,Z+55,67,64,68,Z+54,66,69,Z+53,68,Z+47,70,70,71,Z+52,72,Z+50,Z+51,25,73,Z+42,46,Z+39,74,57,75,Z+41,58,Z+40,Z+41,26,Z+87,77,28,Z+86,78,34,81,79,35,80,543,36,Z+102,Z+114,46,Z+96,82,57,83,Z+98,58,Z+97,Z+98,5,100,85,8,86,Z+114,16,87,88,18,90,88,19,89,91,21,96,94,19,92,91,21,97,94,21,96,93,22,Z+14,94,35,95,Z+42,36,Z+102,Z+42,22,Z+13,97,35,98,Z+42,36,Z+100,99,46,Z+109,Z+110,6,212,101,7,206,102,8,118,103,14,117,104,21,105,Z+23,26,106,500,37,107,Z+85,38,Z+85,108,39,111,109,48,Z+58,110,50,135,Z+84,40,112,Z+57,41,Z+57,113,42,114,498,48,Z+56,115,52,116,Z+72,65,Z+69,Z+72,21,499,Z+23,9,119,123,10,120,123,11,121,123,12,122,123,13,200,123,14,193,124,20,188,125,21,126,Z+23,23,127,128,24,187,128,26,129,195,37,130,Z+85,38,Z+85,131,39,157,132,48,Z+58,133,50,134,Z+84,51,140,135,55,Z+76,136,59,137,Z+83,60,Z+82,138,61,139,Z+82,63,Z+82,Z+46,55,Z+76,141,59,142,Z+83,60,147,143,61,144,Z+82,62,146,145,63,149,Z+46,63,152,Z+46,61,148,Z+82,62,152,149,64,150,Z+54,66,151,Z+53,70,Z+81,Z+52,64,153,Z+54,66,154,Z+53,70,155,Z+52,71,156,Z+80,73,Z+77,Z+79,40,158,Z+57,41,Z+57,159,42,183,160,48,172,161,49,Z+45,162,51,163,524,60,166,164,62,Z+55,165,63,167,Z+46,62,Z+55,167,64,168,Z+54,66,169,Z+53,69,170,Z+65,70,171,Z+52,72,Z+63,Z+51,49,Z+45,173,51,174,524,60,177,175,62,Z+55,176,63,178,Z+46,62,Z+55,178,64,179,Z+54,66,180,Z+53,68,Z+47,181,70,182,Z+52,72,Z+48,Z+51,48,Z+56,184,52,185,Z+72,65,Z+69,186,67,Z+70,Z+71,25,Z+36,Z+42,21,189,Z+23,25,190,Z+42,30,192,191,46,Z+34,Z+36,46,Z+33,Z+35,21,194,Z+23,26,Z+87,195,28,Z+86,196,34,199,197,35,198,543,36,Z+100,Z+114,46,Z+94,Z+95,17,201,Z+22,20,202,Z+21,21,203,548,33,204,548,44,Z+16,205,45,Z+18,Z+20,8,207,213,16,208,218,18,209,218,19,210,222,20,211,225,21,229,399,8,216,213,19,214,Z+9,20,215,225,21,229,Z+9,16,217,218,18,221,218,19,219,222,20,220,225,21,229,Z+12,19,224,222,20,223,Z+9,21,Z+9,Z+12,20,228,225,21,226,Z+9,30,227,Z+9,34,Z+7,Z+9,21,229,413,30,230,Z+8,34,Z+7,Z+8,4,Z+2,232,5,233,478,6,269,234,7,268,235,8,236,489,9,237,241,10,238,241,11,239,241,12,240,241,13,545,241,14,264,242,20,262,243,26,244,265,37,245,Z+85,38,Z+85,246,39,247,516,40,248,Z+57,41,Z+57,249,42,536,250,48,Z+43,251,49,Z+45,252,51,253,524,60,256,254,62,Z+55,255,63,257,Z+46,62,Z+55,257,64,258,Z+54,66,259,Z+53,69,260,Z+65,70,261,Z+52,72,Z+62,Z+51,25,263,Z+42,46,Z+31,Z+32,26,Z+87,265,28,Z+86,266,34,267,542,46,Z+92,Z+93,8,395,Z+9,8,405,Z+9,3,344,271,4,Z+3,272,5,282,273,8,274,Z+114,15,Z+5,275,16,276,279,18,277,279,19,278,279,22,Z+14,279,35,280,Z+42,36,Z+101,281,46,Z+105,Z+106,6,403,283,7,393,284,8,293,285,14,499,286,26,287,500,37,288,Z+85,38,Z+85,289,39,290,305,40,291,Z+57,41,Z+57,292,42,333,498,9,294,298,10,295,298,11,296,298,12,297,298,13,392,298,14,337,299,15,Z+5,300,20,335,301,26,302,339,37,303,Z+85,38,Z+85,304,39,307,305,48,Z+58,306,50,Z+74,Z+84,40,308,Z+57,41,Z+57,309,42,333,310,48,322,311,49,Z+45,312,51,313,524,60,316,314,62,Z+55,315,63,317,Z+46,62,Z+55,317,64,318,Z+54,66,319,Z+53,69,320,Z+65,70,321,Z+52,72,Z+61,Z+51,49,Z+45,323,51,324,524,60,327,325,62,Z+55,326,63,328,Z+46,62,Z+55,328,64,329,Z+54,66,330,Z+53,68,Z+47,331,70,332,Z+52,72,Z+49,Z+51,48,Z+56,334,52,Z+67,Z+72,25,336,Z+42,46,Z+27,Z+28,15,Z+5,338,26,Z+87,339,28,Z+86,340,34,343,341,35,342,543,36,Z+101,Z+114,46,Z+90,Z+91,4,Z+2,345,5,355,346,8,347,Z+114,15,Z+5,348,16,349,352,18,350,352,19,351,352,22,Z+14,352,35,353,Z+42,36,Z+43,354,46,Z+103,Z+104,6,403,356,7,393,357,8,358,489,9,359,363,10,360,363,11,361,363,12,362,363,13,392,363,14,387,364,15,Z+5,365,20,385,366,26,367,389,37,368,Z+85,38,Z+85,369,39,370,516,40,371,Z+57,41,Z+57,372,42,536,373,48,Z+43,374,49,Z+45,375,51,376,524,60,379,377,62,Z+55,378,63,380,Z+46,62,Z+55,380,64,381,Z+54,66,382,Z+53,69,383,Z+65,70,384,Z+52,72,Z+60,Z+51,25,386,Z+42,46,Z+25,Z+26,15,Z+5,388,26,Z+87,389,28,Z+86,390,34,391,542,46,Z+88,Z+89,15,Z+5,545,8,394,Z+9,15,Z+5,395,16,396,408,18,397,408,19,398,408,20,399,Z+9,27,400,Z+12,29,Z+11,401,31,Z+11,402,32,Z+11,420,8,404,Z+9,15,Z+5,405,16,406,408,18,407,408,19,409,408,20,Z+12,Z+9,20,412,410,22,411,Z+9,34,Z+10,Z+9,22,414,413,27,417,Z+12,27,416,415,34,Z+10,Z+12,34,Z+10,417,43,Z+11,418,47,Z+11,419,53,Z+11,420,54,Z+11,421,56,Z+11,Z+12,2,Z+1,423,3,476,424,4,Z+4,425,5,436,426,8,427,Z+114,16,428,431,18,429,431,19,430,431,22,Z+14,431,35,432,Z+42,36,Z+44,433,46,Z+111,434,57,435,Z+113,58,Z+112,Z+113,6,Z+6,437,7,Z+6,438,8,448,439,14,499,440,26,441,500,37,442,Z+85,38,Z+85,443,39,444,463,40,445,Z+57,41,Z+57,446,42,469,447,48,Z+44,498,9,449,453,10,450,453,11,451,453,12,452,453,13,545,453,14,471,454,15,458,455,20,456,459,25,457,Z+42,46,Z+37,Z+38,20,538,459,26,460,472,37,461,Z+85,38,Z+85,462,39,465,463,48,Z+58,464,50,Z+75,Z+84,40,466,Z+57,41,Z+57,467,42,469,468,48,Z+44,522,48,Z+44,470,52,Z+68,Z+72,26,Z+87,472,28,Z+86,473,34,Z+99,474,35,475,543,36,Z+44,Z+114,4,Z+2,477,5,486,478,8,479,Z+114,16,480,483,18,481,483,19,482,483,22,Z+14,483,35,484,Z+42,36,Z+43,485,46,Z+107,Z+108,6,Z+6,487,7,Z+6,488,8,501,489,14,499,490,26,491,500,37,492,Z+85,38,Z+85,493,39,494,516,40,495,Z+57,41,Z+57,496,42,536,497,48,Z+43,498,49,Z+45,524,26,Z+87,500,28,Z+86,Z+114,9,502,506,10,503,506,11,504,506,12,505,506,13,545,506,14,539,507,15,511,508,20,509,512,25,510,Z+42,46,Z+29,Z+30,20,538,512,26,513,540,37,514,Z+85,38,Z+85,515,39,518,516,48,Z+58,517,50,Z+73,Z+84,40,519,Z+57,41,Z+57,520,42,536,521,48,Z+43,522,49,Z+45,523,51,527,524,60,Z+55,525,62,Z+55,526,63,Z+55,Z+46,60,530,528,62,Z+55,529,63,531,Z+46,62,Z+55,531,64,532,Z+54,66,533,Z+53,69,534,Z+65,70,535,Z+52,72,Z+59,Z+51,48,Z+43,537,52,Z+66,Z+72,25,Z+24,Z+42,26,Z+87,540,28,Z+86,541,34,Z+99,542,35,544,543,36,Z+42,Z+114,36,Z+43,Z+114,17,546,Z+22,20,547,Z+21,33,550,548,44,Z+17,549,45,Z+19,Z+20,44,Z+15,551,45,Z+15,Z+20]),Ywe=kT.from(Jwe,qwe,w6.conditions,w6.results),Xwe=new AT({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),T6=(e,t={})=>Xwe.get(e,()=>cE(Ywe,{endpointParams:e,logger:t.logger}));PT.aws=_E;var Zwe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=AS(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await fD(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:AS(t).operation,region:await jS(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 Qwe=((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($4.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}),$we=e=>{let t=Hre(VD(e));return Object.assign(t,{authSchemePreference:jS(e.authSchemePreference??[])})},eTe=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 TD{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},tTe=class e extends k6{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nTe=class e extends k6{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rTe=class e extends k6{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iTe=class e extends k6{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aTe=class e extends k6{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oTe=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)}},lTe=class e extends k6{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uTe=class e extends k6{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dTe=class e extends k6{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fTe=class e extends k6{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pTe=class e extends k6{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mTe=class e extends k6{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hTe=class e extends k6{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},A6=`ACL`,gTe=`AccessDenied`,_Te=`AbortDate`,j6=`AccessKeyId`,vTe=`AbortMultipartUpload`,yTe=`AbortMultipartUploadOutput`,bTe=`AbortMultipartUploadRequest`,xTe=`AcceptRanges`,STe=`AbortRuleId`,CTe=`AccessTier`,M6=`Bucket`,N6=`BucketArn`,wTe=`BucketAlreadyExists`,TTe=`BucketAlreadyOwnedByYou`,ETe=`BypassGovernanceRetention`,DTe=`BucketInfo`,P6=`BucketKeyEnabled`,OTe=`BucketNamespace`,F6=`BucketRegion`,I6=`Body`,L6=`Buckets`,R6=`ChecksumAlgorithm`,kTe=`CreateBucket`,z6=`CreateBucketConfiguration`,ATe=`CreateBucketOutput`,jTe=`CreateBucketRequest`,B6=`CacheControl`,V6=`ChecksumCRC32`,H6=`ChecksumCRC32C`,U6=`ChecksumCRC64NVME`,W6=`Cache-Control`,MTe=`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`,NTe=`CompletedMultipartUpload`,PTe=`CompleteMultipartUploadOutput`,FTe=`CreateMultipartUploadOutput`,ITe=`CompleteMultipartUploadResult`,LTe=`CompleteMultipartUploadRequest`,RTe=`CreateMultipartUploadRequest`,n8=`CompleteMultipartUpload`,zTe=`CreateMultipartUpload`,BTe=`ChecksumMode`,VTe=`CommonPrefix`,HTe=`CommonPrefixList`,UTe=`CompletedPartList`,WTe=`CompletedPart`,GTe=`CommonPrefixes`,KTe=`ContentRange`,qTe=`Content-Range`,r8=`ChecksumSHA1`,i8=`ChecksumSHA256`,a8=`ChecksumSHA512`,JTe=`CreateSessionOutput`,YTe=`CreateSessionResult`,XTe=`CreateSessionRequest`,ZTe=`CreateSession`,o8=`ChecksumType`,s8=`Content-Type`,c8=`ContentType`,l8=`ContinuationToken`,u8=`ChecksumXXHASH64`,d8=`ChecksumXXHASH3`,f8=`ChecksumXXHASH128`,QTe=`Contents`,p8=`Credentials`,m8=`DeleteMarker`,$Te=`DisplayName`,eEe=`DeleteObjectOutput`,tEe=`DeleteObjectRequest`,nEe=`DeleteObject`,rEe=`DataRedundancy`,h8=`Delimiter`,g8=`Expiration`,_8=`ExpectedBucketOwner`,v8=`ExpiresString`,iEe=`EncryptionTypeMismatch`,y8=`ETag`,b8=`EncodingType`,x8=`Expires`,aEe=`FetchOwner`,S8=`GrantFullControl`,oEe=`GetObject`,sEe=`GetObjectOutput`,cEe=`GetObjectRequest`,C8=`GrantRead`,w8=`GrantReadACP`,lEe=`GrantWrite`,T8=`GrantWriteACP`,uEe=`ID`,E8=`IfMatch`,dEe=`IfMatchInitiatedTime`,fEe=`IfMatchLastModifiedTime`,pEe=`IfMatchSize`,mEe=`If-Modified-Since`,hEe=`IfModifiedSince`,gEe=`InitiateMultipartUploadResult`,D8=`If-Match`,O8=`IfNoneMatch`,k8=`If-None-Match`,_Ee=`InvalidObjectState`,vEe=`IdempotencyParameterMismatch`,yEe=`InvalidRequest`,bEe=`IsRestoreInProgress`,xEe=`IsTruncated`,SEe=`IfUnmodifiedSince`,CEe=`If-Unmodified-Since`,wEe=`InvalidWriteOffset`,A8=`Key`,TEe=`KeyCount`,j8=`Location`,EEe=`ListAllMyBucketsResult`,DEe=`ListBuckets`,OEe=`ListBucketsOutput`,kEe=`ListBucketsRequest`,AEe=`ListBucketResult`,jEe=`LocationConstraint`,MEe=`LocationInfo`,M8=`LastModified`,NEe=`Last-Modified`,PEe=`ListObjectsV2`,FEe=`ListObjectsV2Output`,IEe=`ListObjectsV2Request`,N8=`Metadata`,LEe=`MaxBuckets`,REe=`MFA`,P8=`MaxKeys`,zEe=`MissingMeta`,BEe=`MpuObjectSize`,VEe=`MultipartUpload`,F8=`Name`,HEe=`NextContinuationToken`,UEe=`NotFound`,WEe=`NoSuchBucket`,GEe=`NoSuchKey`,KEe=`NoSuchUpload`,I8=`Owner`,qEe=`ObjectAlreadyInActiveTierError`,JEe=`ObjectLockEnabledForBucket`,L8=`ObjectLockLegalHoldStatus`,R8=`ObjectLockMode`,z8=`ObjectLockRetainUntilDate`,YEe=`ObjectList`,XEe=`ObjectNotInActiveTierError`,ZEe=`ObjectOwnership`,QEe=`OptionalObjectAttributes`,$Ee=`Object`,B8=`Prefix`,eDe=`PartsCount`,V8=`PartNumber`,tDe=`PutObject`,nDe=`PutObjectOutput`,rDe=`PutObjectRequest`,iDe=`PutObjectTagging`,aDe=`PutObjectTaggingOutput`,oDe=`PutObjectTaggingRequest`,sDe=`Parts`,cDe=`Part`,H8=`RequestCharged`,lDe=`ResponseCacheControl`,uDe=`ResponseContentDisposition`,dDe=`ResponseContentEncoding`,fDe=`ResponseContentLanguage`,pDe=`ResponseContentType`,mDe=`ResponseExpires`,hDe=`RestoreExpiryDate`,U8=`RequestPayer`,gDe=`ReplicationStatus`,W8=`RestoreStatus`,G8=`Range`,_De=`Restore`,K8=`StartAfter`,q8=`SecretAccessKey`,vDe=`StreamingBlob`,J8=`StorageClass`,yDe=`SessionCredentialValue`,bDe=`SessionCredentials`,xDe=`SessionMode`,Y8=`ServerSideEncryption`,X8=`SSECustomerAlgorithm`,Z8=`SSECustomerKey`,Q8=`SSECustomerKeyMD5`,$8=`SSEKMSEncryptionContext`,e5=`SSEKMSKeyId`,t5=`SessionToken`,n5=`Size`,SDe=`Tags`,CDe=`TagCount`,wDe=`TooManyParts`,r5=`TagSet`,i5=`Tag`,a5=`Tagging`,o5=`Type`,s5=`UploadId`,TDe=`UploadPart`,EDe=`UploadPartOutput`,DDe=`UploadPartRequest`,ODe=`Value`,c5=`VersionId`,kDe=`WriteOffsetBytes`,l5=`WebsiteRedirectLocation`,ADe=`accept-ranges`,jDe=`bucket-region`,u5=`client`,d5=`continuation-token`,MDe=`delimiter`,f5=`error`,NDe=`encoding-type`,PDe=`fetch-owner`,p5=`http`,m5=`httpChecksum`,h5=`httpError`,Q=`httpHeader`,g5=`httpPayload`,_5=`httpPrefixHeaders`,v5=`httpQuery`,FDe=`max-buckets`,IDe=`max-keys`,y5=`prefix`,b5=`partNumber`,LDe=`response-cache-control`,RDe=`response-content-disposition`,zDe=`response-content-encoding`,BDe=`response-content-language`,VDe=`response-content-type`,HDe=`response-expires`,x5=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,UDe=`start-after`,WDe=`streaming`,S5=`uploadId`,C5=`versionId`,w5=`xmlFlattened`,T5=`xmlName`,E5=`x-amz-acl`,GDe=`x-amz-abort-date`,KDe=`x-amz-abort-rule-id`,qDe=`x-amz-bucket-arn`,JDe=`x-amz-bypass-governance-retention`,YDe=`x-amz-bucket-namespace`,XDe=`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`,ZDe=`x-amz-checksum-mode`,M5=`x-amz-checksum-sha1`,N5=`x-amz-checksum-sha256`,P5=`x-amz-checksum-sha512`,QDe=`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`,$De=`x-amz-grant-write`,G5=`x-amz-grant-write-acp`,eOe=`x-amz-if-match-initiated-time`,tOe=`x-amz-if-match-last-modified-time`,nOe=`x-amz-if-match-size`,K5=`x-amz-meta-`,rOe=`x-amz-mfa`,iOe=`x-amz-missing-meta`,aOe=`x-amz-mp-object-size`,oOe=`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`,lOe=`x-amz-object-size`,uOe=`x-amz-restore`,X5=`x-amz-request-charged`,Z5=`x-amz-request-payer`,dOe=`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`,fOe=`x-amz-tagging-count`,c7=`x-amz-version-id`,pOe=`x-amz-write-offset-bytes`,l7=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,u7=ow.for(x5),mOe=[-3,x5,`S3ServiceException`,0,[],[]];u7.registerError(mOe,k6);var d7=ow.for($),hOe=[-3,$,gTe,{[f5]:u5,[h5]:403},[],[]];d7.registerError(hOe,nTe);var gOe=[-3,$,wTe,{[f5]:u5,[h5]:409},[],[]];d7.registerError(gOe,iTe);var _Oe=[-3,$,TTe,{[f5]:u5,[h5]:409},[],[]];d7.registerError(_Oe,aTe);var vOe=[-3,$,iEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(vOe,uTe);var yOe=[-3,$,vEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(yOe,mTe);var bOe=[-3,$,_Ee,{[f5]:u5,[h5]:403},[J8,CTe],[0,0]];d7.registerError(bOe,sTe);var xOe=[-3,$,yEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(xOe,dTe);var SOe=[-3,$,wEe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(SOe,fTe);var f7=[-3,$,WEe,{[f5]:u5,[h5]:404},[],[]];d7.registerError(f7,oTe);var COe=[-3,$,GEe,{[f5]:u5,[h5]:404},[],[]];d7.registerError(COe,cTe);var wOe=[-3,$,KEe,{[f5]:u5,[h5]:404},[],[]];d7.registerError(wOe,tTe);var TOe=[-3,$,UEe,{[f5]:u5},[],[]];d7.registerError(TOe,lTe);var EOe=[-3,$,qEe,{[f5]:u5,[h5]:403},[],[]];d7.registerError(EOe,hTe);var DOe=[-3,$,XEe,{[f5]:u5,[h5]:403},[],[]];d7.registerError(DOe,rTe);var OOe=[-3,$,wDe,{[f5]:u5,[h5]:400},[],[]];d7.registerError(OOe,pTe);var kOe=[u7,d7],p7=[0,$,yDe,8,0],m7=[0,$,Z8,8,0],h7=[0,$,$8,8,0],g7=[0,$,e5,8,0],_7=[0,$,vDe,{[WDe]:1},42],AOe=[3,$,yTe,0,[H8],[[0,{[Q]:X5}]]],jOe=[3,$,bTe,0,[M6,A8,s5,U8,_8,dEe],[[0,1],[0,1],[0,{[v5]:S5}],[0,{[Q]:Z5}],[0,{[Q]:V5}],[6,{[Q]:eOe}]],3],MOe=[3,$,M6,0,[F8,MTe,F6,N6],[0,4,0,0]],NOe=[3,$,DTe,0,[rEe,o5],[0,0]],POe=[3,$,VTe,0,[B8],[0]],FOe=[3,$,NTe,0,[sDe],[[()=>mke,{[w5]:1,[T5]:cDe}]]],IOe=[3,$,WTe,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]],LOe=[3,$,PTe,{[T5]:ITe},[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}],[()=>g7,{[Q]:t7}],[2,{[Q]:n7}],[0,{[Q]:X5}]]],ROe=[3,$,LTe,0,[M6,A8,s5,VEe,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,o8,BEe,U8,_8,E8,O8,X8,Z8,Q8],[[0,1],[0,1],[0,{[v5]:S5}],[()=>FOe,{[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]:aOe}],[0,{[Q]:Z5}],[0,{[Q]:V5}],[0,{[Q]:D8}],[0,{[Q]:k8}],[0,{[Q]:i7}],[()=>m7,{[Q]:a7}],[0,{[Q]:o7}]],3],zOe=[3,$,z6,0,[jEe,j8,M6,SDe],[0,()=>eke,()=>NOe,[()=>y7,0]]],BOe=[3,$,ATe,0,[j8,N6],[[0,{[Q]:j8}],[0,{[Q]:qDe}]]],VOe=[3,$,jTe,0,[M6,A6,z6,S8,C8,w8,lEe,T8,JEe,ZEe,OTe],[[0,1],[0,{[Q]:E5}],[()=>zOe,{[g5]:1,[T5]:z6}],[0,{[Q]:H5}],[0,{[Q]:U5}],[0,{[Q]:W5}],[0,{[Q]:$De}],[0,{[Q]:G5}],[2,{[Q]:XDe}],[0,{[Q]:sOe}],[0,{[Q]:YDe}]],1],HOe=[3,$,FTe,{[T5]:gEe},[_Te,STe,M6,A8,s5,Y8,X8,Q8,e5,$8,P6,H8,R6,o8],[[4,{[Q]:GDe}],[0,{[Q]:KDe}],[0,{[T5]:M6}],0,0,[0,{[Q]:e7}],[0,{[Q]:i7}],[0,{[Q]:o7}],[()=>g7,{[Q]:t7}],[()=>h7,{[Q]:r7}],[2,{[Q]:n7}],[0,{[Q]:X5}],[0,{[Q]:D5}],[0,{[Q]:F5}]]],UOe=[3,$,RTe,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}],[()=>m7,{[Q]:a7}],[0,{[Q]:o7}],[()=>g7,{[Q]:t7}],[()=>h7,{[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],WOe=[3,$,JTe,{[T5]:YTe},[p8,Y8,e5,$8,P6],[[()=>ske,{[T5]:p8}],[0,{[Q]:e7}],[()=>g7,{[Q]:t7}],[()=>h7,{[Q]:r7}],[2,{[Q]:n7}]],1],GOe=[3,$,XTe,0,[M6,xDe,Y8,e5,$8,P6],[[0,1],[0,{[Q]:QDe}],[0,{[Q]:e7}],[()=>g7,{[Q]:t7}],[()=>h7,{[Q]:r7}],[2,{[Q]:n7}]],1],KOe=[3,$,eEe,0,[m8,c5,H8],[[2,{[Q]:z5}],[0,{[Q]:c7}],[0,{[Q]:X5}]]],qOe=[3,$,tEe,0,[M6,A8,REe,c5,U8,ETe,_8,E8,fEe,pEe],[[0,1],[0,1],[0,{[Q]:rOe}],[0,{[v5]:C5}],[0,{[Q]:Z5}],[2,{[Q]:JDe}],[0,{[Q]:V5}],[0,{[Q]:D8}],[6,{[Q]:tOe}],[1,{[Q]:nOe}]],2],JOe=[3,$,sEe,0,[I6,m8,xTe,g8,_De,M8,Q6,y8,V6,H6,U6,r8,i8,a8,e8,u8,d8,f8,o8,zEe,c5,B6,K6,J6,Y6,KTe,c8,x8,v8,l5,Y8,N8,X8,Q8,e5,P6,J8,H8,gDe,eDe,CDe,R8,z8,L8],[[()=>_7,16],[2,{[Q]:z5}],[0,{[Q]:ADe}],[0,{[Q]:B5}],[0,{[Q]:uOe}],[4,{[Q]:NEe}],[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]:iOe}],[0,{[Q]:c7}],[0,{[Q]:W6}],[0,{[Q]:G6}],[0,{[Q]:q6}],[0,{[Q]:X6}],[0,{[Q]:qTe}],[0,{[Q]:s8}],[4,{[Q]:x8}],[0,{[Q]:v8}],[0,{[Q]:l7}],[0,{[Q]:e7}],[128,{[_5]:K5}],[0,{[Q]:i7}],[0,{[Q]:o7}],[()=>g7,{[Q]:t7}],[2,{[Q]:n7}],[0,{[Q]:Q5}],[0,{[Q]:X5}],[0,{[Q]:dOe}],[1,{[Q]:oOe}],[1,{[Q]:fOe}],[0,{[Q]:J5}],[5,{[Q]:Y5}],[0,{[Q]:q5}]]],YOe=[3,$,cEe,0,[M6,A8,E8,hEe,O8,SEe,G8,lDe,uDe,dDe,fDe,pDe,mDe,c5,X8,Z8,Q8,U8,V8,_8,BTe],[[0,1],[0,1],[0,{[Q]:D8}],[4,{[Q]:mEe}],[0,{[Q]:k8}],[4,{[Q]:CEe}],[0,{[Q]:G8}],[0,{[v5]:LDe}],[0,{[v5]:RDe}],[0,{[v5]:zDe}],[0,{[v5]:BDe}],[0,{[v5]:VDe}],[6,{[v5]:HDe}],[0,{[v5]:C5}],[0,{[Q]:i7}],[()=>m7,{[Q]:a7}],[0,{[Q]:o7}],[0,{[Q]:Z5}],[1,{[v5]:b5}],[0,{[Q]:V5}],[0,{[Q]:ZDe}]],2],XOe=[3,$,OEe,{[T5]:EEe},[L6,I8,l8,B8],[[()=>fke,0],()=>v7,0,0]],ZOe=[3,$,kEe,0,[LEe,l8,B8,F6],[[1,{[v5]:FDe}],[0,{[v5]:d5}],[0,{[v5]:y5}],[0,{[v5]:jDe}]]],QOe=[3,$,FEe,{[T5]:AEe},[xEe,QTe,F8,B8,h8,P8,GTe,b8,TEe,l8,HEe,K8,H8],[2,[()=>hke,{[w5]:1}],0,0,0,1,[()=>pke,{[w5]:1}],0,1,0,0,0,[0,{[Q]:X5}]]],$Oe=[3,$,IEe,0,[M6,h8,b8,P8,B8,l8,aEe,K8,U8,_8,QEe],[[0,1],[0,{[v5]:MDe}],[0,{[v5]:NDe}],[1,{[v5]:IDe}],[0,{[v5]:y5}],[0,{[v5]:d5}],[2,{[v5]:PDe}],[0,{[v5]:UDe}],[0,{[Q]:Z5}],[0,{[Q]:V5}],[64,{[Q]:cOe}]],1],eke=[3,$,MEe,0,[o5,F8],[0,0]],tke=[3,$,$Ee,0,[A8,M8,y8,R6,o8,n5,J8,I8,W8],[0,4,0,[64,{[w5]:1}],0,1,0,()=>v7,()=>oke]],v7=[3,$,I8,0,[$Te,uEe],[0,0]],nke=[3,$,nDe,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}],[()=>g7,{[Q]:t7}],[()=>h7,{[Q]:r7}],[2,{[Q]:n7}],[1,{[Q]:lOe}],[0,{[Q]:X5}]]],rke=[3,$,rDe,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,kDe,N8,Y8,J8,l5,X8,Z8,Q8,e5,$8,P6,U8,a5,R8,z8,L8,_8],[[0,1],[0,1],[0,{[Q]:E5}],[()=>_7,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]:pOe}],[128,{[_5]:K5}],[0,{[Q]:e7}],[0,{[Q]:Q5}],[0,{[Q]:l7}],[0,{[Q]:i7}],[()=>m7,{[Q]:a7}],[0,{[Q]:o7}],[()=>g7,{[Q]:t7}],[()=>h7,{[Q]:r7}],[2,{[Q]:n7}],[0,{[Q]:Z5}],[0,{[Q]:s7}],[0,{[Q]:J5}],[5,{[Q]:Y5}],[0,{[Q]:q5}],[0,{[Q]:V5}]],2],ike=[3,$,aDe,0,[c5],[[0,{[Q]:c7}]]],ake=[3,$,oDe,0,[M6,A8,a5,c5,t8,R6,_8,U8],[[0,1],[0,1],[()=>lke,{[g5]:1,[T5]:a5}],[0,{[v5]:C5}],[0,{[Q]:$6}],[0,{[Q]:$5}],[0,{[Q]:V5}],[0,{[Q]:Z5}]],3],oke=[3,$,W8,0,[bEe,hDe],[2,4]],ske=[3,$,bDe,0,[j6,q8,t5,g8],[[0,{[T5]:j6}],[()=>p7,{[T5]:q8}],[()=>p7,{[T5]:t5}],[4,{[T5]:g8}]],4],cke=[3,$,i5,0,[A8,ODe],[0,0],2],lke=[3,$,a5,0,[r5],[[()=>y7,0]],1],uke=[3,$,EDe,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}],[()=>g7,{[Q]:t7}],[2,{[Q]:n7}],[0,{[Q]:X5}]]],dke=[3,$,DDe,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}],[()=>_7,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}],[()=>m7,{[Q]:a7}],[0,{[Q]:o7}],[0,{[Q]:Z5}],[0,{[Q]:V5}]],4],fke=[1,$,L6,0,[()=>MOe,{[T5]:M6}]],pke=[1,$,HTe,0,()=>POe],mke=[1,$,UTe,0,()=>IOe],hke=[1,$,YEe,0,[()=>tke,0]],y7=[1,$,r5,0,[()=>cke,{[T5]:i5}]],gke=[9,$,vTe,{[p5]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>jOe,()=>AOe],_ke=[9,$,n8,{[p5]:[`POST`,`/{Key+}`,200]},()=>ROe,()=>LOe],vke=[9,$,kTe,{[p5]:[`PUT`,`/`,200]},()=>VOe,()=>BOe],yke=[9,$,zTe,{[p5]:[`POST`,`/{Key+}?uploads`,200]},()=>UOe,()=>HOe],bke=[9,$,ZTe,{[p5]:[`GET`,`/?session`,200]},()=>GOe,()=>WOe],xke=[9,$,nEe,{[p5]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>qOe,()=>KOe],Ske=[9,$,oEe,{[m5]:`-`,[p5]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>YOe,()=>JOe],Cke=[9,$,DEe,{[p5]:[`GET`,`/?x-id=ListBuckets`,200]},()=>ZOe,()=>XOe],wke=[9,$,PEe,{[p5]:[`GET`,`/?list-type=2`,200]},()=>$Oe,()=>QOe],Tke=[9,$,tDe,{[m5]:`-`,[p5]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>rke,()=>nke],Eke=[9,$,iDe,{[m5]:`-`,[p5]:[`PUT`,`/{Key+}?tagging`,200]},()=>ake,()=>ike],Dke=[9,$,TDe,{[m5]:`-`,[p5]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>dke,()=>uke],Oke=class extends wD.classBuilder().ep({...O6,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions()),Z4(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(bke).build(){},kke={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1041.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.1041.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 b7(e){return typeof e==`string`?e.length===0:e.byteLength===0}var x7={name:`SHA-1`},S7={name:`HMAC`,hash:x7},Ake=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),jke=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){vx().crypto.subtle.importKey(`raw`,C7(e),S7,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!b7(e)){var t=C7(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 vx().crypto.subtle.sign(S7,t,e.toHash).then(function(e){return new Uint8Array(e)})}):b7(this.toHash)?Promise.resolve(Ake):Promise.resolve().then(function(){return vx().crypto.subtle.digest(x7,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function C7(e){return typeof e==`string`?cx(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Mke=function(){function e(e){if(Ax(vx()))this.hash=new jke(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(ux(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),w7=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&&T7(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&T7(e),parseInt(Gx(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function T7(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Nke=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(w7.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Uke.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Wx(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()}}}),tAe=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)}})},nAe=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new $ke({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=rAe(e)?eAe(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream==`function`?tAe(n):n}},rAe=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,iAe=e=>new nAe(e);async function aAe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},sAe=[1732584193,4023233417,2562383102,271733878],cAe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(lAe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=uAe(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=j7(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=j7(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=j7(i,a,n,r,e.getUint32(8,!0),17,606105819),r=j7(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=j7(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=j7(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=j7(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=j7(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=j7(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=j7(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=j7(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=j7(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=j7(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=j7(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=j7(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=j7(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=M7(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=M7(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=M7(i,a,n,r,e.getUint32(44,!0),14,643717713),r=M7(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=M7(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=M7(a,n,r,i,e.getUint32(40,!0),9,38016083),i=M7(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=M7(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=M7(n,r,i,a,e.getUint32(36,!0),5,568446438),a=M7(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=M7(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=M7(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=M7(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=M7(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=M7(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=M7(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=N7(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=N7(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=N7(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=N7(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=N7(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=N7(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=N7(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=N7(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=N7(n,r,i,a,e.getUint32(52,!0),4,681279174),a=N7(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=N7(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=N7(r,i,a,n,e.getUint32(24,!0),23,76029189),n=N7(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=N7(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=N7(i,a,n,r,e.getUint32(60,!0),16,530742520),r=N7(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=P7(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=P7(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=P7(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=P7(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=P7(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=P7(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=P7(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=P7(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=P7(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=P7(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=P7(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=P7(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=P7(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=P7(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=P7(i,a,n,r,e.getUint32(8,!0),15,718787259),r=P7(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(sAe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function A7(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function j7(e,t,n,r,i,a,o){return A7(t&n|~t&r,e,t,i,a,o)}function M7(e,t,n,r,i,a,o){return A7(t&r|n&~r,e,t,i,a,o)}function N7(e,t,n,r,i,a,o){return A7(t^n^r,e,t,i,a,o)}function P7(e,t,n,r,i,a,o){return A7(n^(t|~r),e,t,i,a,o)}function lAe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function uAe(e){return typeof e==`string`?Kx(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??bC,base64Encoder:e?.base64Encoder??xC,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??T6,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??wC,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qwe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new BD},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Bre}],logger:e?.logger??new MD,protocol:e?.protocol??Wwe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:kOe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??IC,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??$4,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??GC,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??Kx,utf8Encoder:e?.utf8Encoder??Jx}),fAe=e=>{let t=JD(e),n=()=>t().then(DD),r=dAe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??qD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??UD({serviceId:r.serviceId,clientVersion:kke.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??iAe,maxAttempts:e?.maxAttempts??3,md5:e?.md5??cAe,region:e?.region??GD(`Region is missing`),requestHandler:kC.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||bE),sha1:e?.sha1??Mke,sha256:e?.sha256??Nx,streamCollector:e?.streamCollector??jC,streamHasher:e?.streamHasher??oAe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},pAe=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}}},mAe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hAe=(e,t)=>{let n=Object.assign(j1(e),kD(e),Px(e),pAe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,M1(n),AD(n),Fx(n),mAe(n))},gAe=class extends xD{config;constructor(...[e]){let t=fAe(e||{});super(t),this.initConfig=t;let n=hAe(Mwe($we(Gwe(mD(XS(oD(hD(mwe(OT(eTe(t))))))))),{session:[()=>this,Oke]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(XC(this.config)),this.middlewareStack.use(tD(this.config)),this.middlewareStack.use(PD(this.config)),this.middlewareStack.use(cD(this.config)),this.middlewareStack.use($S(this.config)),this.middlewareStack.use(nC(this.config)),this.middlewareStack.use(aC(this.config)),this.middlewareStack.use(uC(this.config,{httpAuthSchemeParametersProvider:Zwe,identityProviderConfigProvider:async e=>new CT({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(hC(this.config)),this.middlewareStack.use(Uwe(this.config)),this.middlewareStack.use(owe(this.config)),this.middlewareStack.use(ywe(this.config)),this.middlewareStack.use(Ewe(this.config)),this.middlewareStack.use(jwe(this.config))}destroy(){super.destroy()}},_Ae=class extends wD.classBuilder().ep(O6).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions()),Z4(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(Cke).build(){},vAe=class extends wD.classBuilder().ep({...O6,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[pD(n,e.getEndpointParameterInstructions()),Z4(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(wke).build(){},F7=`ap-southeast-2`,I7=`${window.location.protocol}//localhost:9999`,yAe=`${window.location.protocol}//localhost:8443`,L7=null,R7=null,z7=null,B7=null;function V7(){if(!L7){let e=ax();if(!e)throw Error(`AWS credentials not configured`);L7=new wde({endpoint:I7,region:F7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),L7.middlewareStack.add(e=>async t=>(zx.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=ax();if(!e)throw Error(`AWS credentials not configured`);R7=new dye({endpoint:I7,region:F7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),R7.middlewareStack.add(e=>async t=>(zx.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=ax();if(!e)throw Error(`AWS credentials not configured`);z7=new XCe({endpoint:I7,region:F7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}}),z7.middlewareStack.add(e=>async t=>(zx.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 z7}function W7(){if(!B7){let e=ax();if(!e)throw Error(`AWS credentials not configured`);B7=new gAe({endpoint:yAe,region:F7,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),B7.middlewareStack.add(e=>async t=>(zx.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`}),B7.middlewareStack.add(e=>async t=>(zx.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 B7}function G7(){L7=null,R7=null,z7=null,B7=null}function K7(){let e=(0,na.c)(144),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:bAe},e[0]=t):t=e[0];let n=Ki(t),r=ai(),i=je(),{isAdmin:a}=KS(),o;e[1]!==r||e[2]!==i?(o=function(){sx(),G7(),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,P.jsxs)(Rg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,P.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,P.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,P.jsx)(Ug,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,P.jsx)(_o,{className:`size-4`}),f=(0,P.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,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/`,children:(0,P.jsxs)(qg,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/nodes`,children:(0,P.jsxs)(qg,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,P.jsx)(Eo,{className:`size-4`}),(0,P.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,P.jsxs)(Hg,{children:[l,(0,P.jsxs)(Wg,{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,P.jsx)(Ug,{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,P.jsx)(Eo,{className:`size-4`}),y=(0,P.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,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-instances`,children:(0,P.jsxs)(qg,{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,P.jsx)(vo,{className:`size-4`}),C=(0,P.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,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-images`,children:(0,P.jsxs)(qg,{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,P.jsx)(yo,{className:`size-4`}),ee=(0,P.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,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-key-pairs`,children:(0,P.jsxs)(qg,{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,P.jsx)(go,{className:`size-4`}),ne=(0,P.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,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-volumes`,children:(0,P.jsxs)(qg,{isActive:O,tooltip:`Volumes`,children:[te,ne]})})}),e[39]=O,e[40]=re);let ie;e[41]===n?ie=e[42]:(ie=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[41]=n,e[42]=ie);let k,ae;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,P.jsx)(po,{className:`size-4`}),ae=(0,P.jsx)(`span`,{children:`Snapshots`}),e[43]=k,e[44]=ae):(k=e[43],ae=e[44]);let A;e[45]===ie?A=e[46]:(A=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-snapshots`,children:(0,P.jsxs)(qg,{isActive:ie,tooltip:`Snapshots`,children:[k,ae]})})}),e[45]=ie,e[46]=A);let oe;e[47]===n?oe=e[48]:(oe=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[47]=n,e[48]=oe);let se,ce;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,P.jsx)(bo,{className:`size-4`}),ce=(0,P.jsx)(`span`,{children:`Placement Groups`}),e[49]=se,e[50]=ce):(se=e[49],ce=e[50]);let le;e[51]===oe?le=e[52]:(le=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-placement-groups`,children:(0,P.jsxs)(qg,{isActive:oe,tooltip:`Placement Groups`,children:[se,ce]})})}),e[51]=oe,e[52]=le);let j;e[53]===n?j=e[54]:(j=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[53]=n,e[54]=j);let ue,de;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,P.jsx)(jo,{className:`size-4`}),de=(0,P.jsx)(`span`,{children:`Load Balancers`}),e[55]=ue,e[56]=de):(ue=e[55],de=e[56]);let M;e[57]===j?M=e[58]:(M=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-load-balancers`,children:(0,P.jsxs)(qg,{isActive:j,tooltip:`Load Balancers`,children:[ue,de]})})}),e[57]=j,e[58]=M);let fe;e[59]===n?fe=e[60]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[59]=n,e[60]=fe);let pe,me;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,P.jsx)(ho,{className:`size-4`}),me=(0,P.jsx)(`span`,{children:`Target Groups`}),e[61]=pe,e[62]=me):(pe=e[61],me=e[62]);let he;e[63]===fe?he=e[64]:(he=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-target-groups`,children:(0,P.jsxs)(qg,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[63]=fe,e[64]=he);let ge;e[65]!==b||e[66]!==w||e[67]!==D||e[68]!==re||e[69]!==A||e[70]!==le||e[71]!==M||e[72]!==he?(ge=(0,P.jsxs)(Hg,{children:[g,(0,P.jsxs)(Wg,{children:[b,w,D,re,A,le,M,he]})]}),e[65]=b,e[66]=w,e[67]=D,e[68]=re,e[69]=A,e[70]=le,e[71]=M,e[72]=he,e[73]=ge):ge=e[73];let _e;e[74]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,P.jsx)(Ug,{children:`Networking`}),e[74]=_e):_e=e[74];let ve;e[75]===n?ve=e[76]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[75]=n,e[76]=ve);let ye,be;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,P.jsx)(wo,{className:`size-4`}),be=(0,P.jsx)(`span`,{children:`VPCs`}),e[77]=ye,e[78]=be):(ye=e[77],be=e[78]);let xe;e[79]===ve?xe=e[80]:(xe=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-vpcs`,children:(0,P.jsxs)(qg,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[79]=ve,e[80]=xe);let Se;e[81]===n?Se=e[82]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[81]=n,e[82]=Se);let Ce,we;e[83]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,P.jsx)(xo,{className:`size-4`}),we=(0,P.jsx)(`span`,{children:`Subnets`}),e[83]=Ce,e[84]=we):(Ce=e[83],we=e[84]);let Te;e[85]===Se?Te=e[86]:(Te=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-subnets`,children:(0,P.jsxs)(qg,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[85]=Se,e[86]=Te);let Ee;e[87]===n?Ee=e[88]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[87]=n,e[88]=Ee);let De,Oe;e[89]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,P.jsx)(Do,{className:`size-4`}),Oe=(0,P.jsx)(`span`,{children:`Security Groups`}),e[89]=De,e[90]=Oe):(De=e[89],Oe=e[90]);let ke;e[91]===Ee?ke=e[92]:(ke=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/ec2/describe-security-groups`,children:(0,P.jsxs)(qg,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[91]=Ee,e[92]=ke);let N;e[93]!==xe||e[94]!==Te||e[95]!==ke?(N=(0,P.jsxs)(Hg,{children:[_e,(0,P.jsxs)(Wg,{children:[xe,Te,ke]})]}),e[93]=xe,e[94]=Te,e[95]=ke,e[96]=N):N=e[96];let Ae;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,P.jsx)(Ug,{children:`IAM`}),e[97]=Ae):Ae=e[97];let Me;e[98]===n?Me=e[99]:(Me=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[98]=n,e[99]=Me);let Ne,Pe;e[100]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,P.jsx)(Ao,{className:`size-4`}),Pe=(0,P.jsx)(`span`,{children:`Users`}),e[100]=Ne,e[101]=Pe):(Ne=e[100],Pe=e[101]);let Fe;e[102]===Me?Fe=e[103]:(Fe=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/iam/list-users`,children:(0,P.jsxs)(qg,{isActive:Me,tooltip:`Users`,children:[Ne,Pe]})})}),e[102]=Me,e[103]=Fe);let Ie;e[104]===n?Ie=e[105]:(Ie=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[104]=n,e[105]=Ie);let Le,Re;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,P.jsx)(Oo,{className:`size-4`}),Re=(0,P.jsx)(`span`,{children:`Policies`}),e[106]=Le,e[107]=Re):(Le=e[106],Re=e[107]);let ze;e[108]===Ie?ze=e[109]:(ze=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/iam/list-policies`,children:(0,P.jsxs)(qg,{isActive:Ie,tooltip:`Policies`,children:[Le,Re]})})}),e[108]=Ie,e[109]=ze);let Be;e[110]!==Fe||e[111]!==ze?(Be=(0,P.jsxs)(Hg,{children:[Ae,(0,P.jsxs)(Wg,{children:[Fe,ze]})]}),e[110]=Fe,e[111]=ze,e[112]=Be):Be=e[112];let Ve;e[113]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,P.jsx)(Ug,{children:`S3`}),e[113]=Ve):Ve=e[113];let He;e[114]===n?He=e[115]:(He=n.startsWith(`/s3/ls`),e[114]=n,e[115]=He);let Ue,We;e[116]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,P.jsx)(Eo,{className:`size-4`}),We=(0,P.jsx)(`span`,{children:`Buckets`}),e[116]=Ue,e[117]=We):(Ue=e[116],We=e[117]);let Ge;e[118]===He?Ge=e[119]:(Ge=(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/s3/ls`,children:(0,P.jsxs)(qg,{isActive:He,tooltip:`Buckets`,children:[Ue,We]})})}),e[118]=He,e[119]=Ge);let Ke;e[120]!==a||e[121]!==n?(Ke=a&&(0,P.jsx)(Gg,{children:(0,P.jsx)(xi,{to:`/s3/service-metrics`,children:(0,P.jsxs)(qg,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,P.jsx)(uo,{className:`size-4`}),(0,P.jsx)(`span`,{children:`Service Metrics`})]})})}),e[120]=a,e[121]=n,e[122]=Ke):Ke=e[122];let qe;e[123]!==Ge||e[124]!==Ke?(qe=(0,P.jsxs)(Hg,{children:[Ve,(0,P.jsxs)(Wg,{children:[Ge,Ke]})]}),e[123]=Ge,e[124]=Ke,e[125]=qe):qe=e[125];let Je;e[126]===a?Je=e[127]:(Je=a&&(0,P.jsxs)(Hg,{children:[(0,P.jsx)(Ug,{children:`Documentation`}),(0,P.jsx)(Wg,{children:(0,P.jsx)(Gg,{children:(0,P.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,P.jsxs)(qg,{tooltip:`Documentation`,children:[(0,P.jsx)(fo,{className:`size-4`}),(0,P.jsx)(`span`,{children:`Docs`})]})})})})]}),e[126]=a,e[127]=Je);let Ye;e[128]!==ge||e[129]!==N||e[130]!==Be||e[131]!==qe||e[132]!==Je||e[133]!==h?(Ye=(0,P.jsxs)(Vg,{children:[h,ge,N,Be,qe,Je]}),e[128]=ge,e[129]=N,e[130]=Be,e[131]=qe,e[132]=Je,e[133]=h,e[134]=Ye):Ye=e[134];let Xe;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,P.jsx)(Bg,{className:`mx-0 w-full`}),e[135]=Xe):Xe=e[135];let Ze,Qe;e[136]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,P.jsx)(So,{className:`size-4`}),Qe=(0,P.jsx)(`span`,{children:`Sign out`}),e[136]=Ze,e[137]=Qe):(Ze=e[136],Qe=e[137]);let $e;e[138]===s?$e=e[139]:($e=(0,P.jsxs)(zg,{children:[Xe,(0,P.jsx)(Wg,{children:(0,P.jsx)(Gg,{children:(0,P.jsxs)(qg,{onClick:s,tooltip:`Sign out`,children:[Ze,Qe]})})})]}),e[138]=s,e[139]=$e);let et;e[140]===Symbol.for(`react.memo_cache_sentinel`)?(et=(0,P.jsx)(Lg,{}),e[140]=et):et=e[140];let tt;return e[141]!==Ye||e[142]!==$e?(tt=(0,P.jsxs)(Vee,{collapsible:`icon`,children:[c,Ye,$e,et]}),e[141]=Ye,e[142]=$e,e[143]=tt):tt=e[143],tt}function bAe(e){return e.pathname}function xAe(e){let t=(0,na.c)(18),{error:n,reset:r}=e,i=Tr(),a=je(),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,P.jsx)(K7,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,P.jsx)(JS,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,P.jsx)(`div`,{className:`flex justify-center`,children:(0,P.jsx)(mo,{className:`size-12 text-destructive`})}),d=(0,P.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,P.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,P.jsx)(el,{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,P.jsx)(xi,{to:`/`,children:(0,P.jsx)(el,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,P.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,P.jsxs)(P.Fragment,{children:[c,(0,P.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,P.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,P.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 q7=Ti()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Zi,{}),(0,P.jsx)(K7,{}),(0,P.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,P.jsx)(JS,{}),(0,P.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,P.jsx)(Li,{})})]})]}),errorComponent:xAe,notFoundComponent:YS}),SAe=F(`/login`)({beforeLoad:()=>{if(ax())throw o({to:`/`})},component:I(()=>pT(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),CAe=F(`/_auth`)({beforeLoad:()=>{if(!ax())throw o({to:`/login`})},component:I(()=>pT(()=>import(`./route.js`),__vite__mapDeps([6,1])),`component`)}),J7=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Tde({});return await V7().send(e)},staleTime:3e5}),Y7=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new P1({});return await V7().send(e)},refetchInterval:5e3}),X7=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new P1({InstanceIds:[e]});return await V7().send(t)},refetchInterval:5e3}),Z7=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new Ede({Filters:[{Name:`capacity`,Values:[`true`]}]});return await V7().send(e)},refetchInterval:5e3}),Q7=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new N1({});return await V7().send(e)}}),$7=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new N1({ImageIds:[e]});return await V7().send(t)}}),e9=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new F1({});return await V7().send(e)}}),t9=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new F1({KeyPairIds:[e]});return await V7().send(t)}}),n9=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new Ode({});return await V7().send(e)},staleTime:3e5}),r9=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new z1({});return await V7().send(e)}}),i9=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new z1({SubnetIds:[e]});return await V7().send(t)}}),a9=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new R1({});return await V7().send(e)},refetchInterval:5e3}),o9=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new R1({SnapshotIds:[e]});return await V7().send(t)},refetchInterval:5e3});a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new Dde({});return await V7().send(e)}}),a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new kde({});return await V7().send(e)}});var s9=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new V1({});return await V7().send(e)}}),c9=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new V1({VpcIds:[e]});return await V7().send(t)}}),l9=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new I1({});return await V7().send(e)}}),u9=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new I1({GroupIds:[e]});return await V7().send(t)}}),d9=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new L1({});return await V7().send(e)}}),f9=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new L1({GroupIds:[e]});return await V7().send(t)}}),p9=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new B1({});return await V7().send(e)},refetchInterval:5e3}),m9=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new B1({VolumeIds:[e]});return await V7().send(t)},refetchInterval:5e3}),h9=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new _Ae({});return await W7().send(e)}}),g9=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new vAe({Bucket:e,Prefix:t,Delimiter:`/`});return await W7().send(n)}}),wAe=F(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Y7),e.queryClient.ensureQueryData(p9),e.queryClient.ensureQueryData(s9),e.queryClient.ensureQueryData(e9),e.queryClient.ensureQueryData(h9),e.queryClient.ensureQueryData(d9)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:I(()=>pT(()=>import(`./_auth.js`),__vite__mapDeps([7,1,8,9,10,11,12,13,14,15,4])),`component`)}),TAe=F(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:I(()=>pT(()=>import(`./nodes.js`),__vite__mapDeps([16,1,8,9,17,12,14,15,4])),`component`)}),EAe=F(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | Mulga`}]}),component:I(()=>pT(()=>import(`./service-metrics.js`),__vite__mapDeps([18,1,8,9,17,12,14,15,4])),`component`)}),DAe=F(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(h9)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:I(()=>pT(()=>import(`./ls.js`),__vite__mapDeps([19,1,20,9,21,12])),`component`)}),OAe=F(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-bucket.js`),__vite__mapDeps([22,1,23,24,3,25,26,27,10,28,29,30,12,5])),`component`)}),kAe=F(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:I(()=>pT(()=>import(`./create-user.js`),__vite__mapDeps([31,1,32,24,3,25,26,27,10,28,29,30,12,5,33])),`component`)}),AAe=F(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:I(()=>pT(()=>import(`./create-policy.js`),__vite__mapDeps([34,1,32,24,3,25,26,27,10,28,29,30,12,5,35,33])),`component`)}),jAe=F(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-vpc.js`),__vite__mapDeps([36,1,37,24,38,27,10,3,25,11,26,28,29,30,12,5,39])),`component`)}),MAe=F(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(J7)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-volume.js`),__vite__mapDeps([40,1,37,24,38,27,10,3,20,9,25,26,28,29,30,12,5,39])),`component`)}),NAe=F(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(s9)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-target-group.js`),__vite__mapDeps([41,1,42,24,3,20,9,25,26,27,10,28,29,43,2,38,44,45,5,30,12,46])),`component`)}),PAe=F(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(s9),e.queryClient.ensureQueryData(J7)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-subnet.js`),__vite__mapDeps([47,1,37,24,38,27,10,3,20,9,25,26,28,29,30,12,5,39])),`component`)}),_9=F(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(p9)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-snapshot.js`),__vite__mapDeps([48,1,37,24,38,27,10,3,20,9,25,26,28,29,30,12,5,35,39])),`component`)}),FAe=F(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(s9)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-security-group.js`),__vite__mapDeps([49,1,37,24,38,27,10,3,20,9,25,26,28,29,30,12,5,39])),`component`)}),IAe=F(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-placement-group.js`),__vite__mapDeps([50,1,37,24,38,27,10,3,25,26,28,29,30,12,5,39])),`component`)}),v9=5e3,y9=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new P2({});return await H7().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?v9:!1}),b9=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new P2({LoadBalancerArns:[e]});return await H7().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?v9:!1}),x9=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new pye({LoadBalancerArn:e});return await H7().send(t)}}),S9=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new F2({});return await H7().send(e)}}),C9=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new F2({TargetGroupArns:[e]});return await H7().send(t)}}),w9=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new hye({TargetGroupArn:e});return await H7().send(t)}}),T9=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new fye({LoadBalancerArn:e});return await H7().send(t)}}),LAe=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new gye({TargetGroupArn:e});return await H7().send(t)}}),E9=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new mye({ResourceArns:e});return await H7().send(t)},enabled:e.length>0}),RAe=F(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(s9),e.queryClient.ensureQueryData(r9),e.queryClient.ensureQueryData(d9),e.queryClient.ensureQueryData(S9),e.queryClient.ensureQueryData(Q7)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-load-balancer.js`),__vite__mapDeps([51,1,42,24,38,27,10,3,20,9,25,44,26,28,29,45,52,53,43,2,5,30,12,46])),`component`)}),zAe=F(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./import-key-pair.js`),__vite__mapDeps([54,1,37,24,3,25,26,27,10,28,29,30,12,5,35,39])),`component`)}),BAe=F(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./create-key-pair.js`),__vite__mapDeps([55,1,37,24,56,3,25,27,57,26,10,28,29,58,30,12,5,39])),`component`)}),VAe=F(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Q7),e.queryClient.ensureQueryData(e9),e.queryClient.ensureQueryData(Z7),e.queryClient.ensureQueryData(r9),e.queryClient.ensureQueryData(l9)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./run-instances.js`),__vite__mapDeps([59,1,37,24,2,38,27,10,3,20,9,25,26,28,29,12,5,39])),`component`)}),HAe=F(`/_auth/s3/ls/$bucket`)({component:I(()=>pT(()=>import(`./route2.js`),__vite__mapDeps([60,1])),`component`)}),D9=F(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(g9(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:I(()=>pT(()=>import(`./_bucket.js`),__vite__mapDeps([61,1,23,24,62,57,45,63,56,20,9,25,12])),`component`)}),O9=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new rwe({});return await U7().send(e)},staleTime:3e5}),k9=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new $Ce({UserName:e});return await U7().send(t)},staleTime:3e5}),A9=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new ewe({UserName:e});return await U7().send(t)},staleTime:3e5}),j9=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new nwe({Scope:`Local`});return await U7().send(e)},staleTime:3e5}),M9=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new ZCe({PolicyArn:e});return await U7().send(t)},staleTime:3e5}),N9=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new QCe({PolicyArn:e,VersionId:t});return await U7().send(n)},staleTime:3e5}),P9=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new twe({UserName:e});return await U7().send(t)},staleTime:3e5}),UAe=F(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(O9)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:I(()=>pT(()=>import(`./list-users.js`),__vite__mapDeps([64,1,20,9,21,12])),`component`)}),WAe=F(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(j9)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:I(()=>pT(()=>import(`./list-policies.js`),__vite__mapDeps([65,1,20,9,21,12])),`component`)}),GAe=F(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(s9)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-vpcs.js`),__vite__mapDeps([66,1,20,9,21,12,13])),`component`)}),KAe=F(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(p9)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-volumes.js`),__vite__mapDeps([67,1,20,9,21,12,13])),`component`)}),qAe=F(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(S9)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-target-groups.js`),__vite__mapDeps([68,1,8,9,20,12])),`component`)}),JAe=F(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(r9)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-subnets.js`),__vite__mapDeps([69,1,20,9,21,12,13])),`component`)}),YAe=F(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(a9)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-snapshots.js`),__vite__mapDeps([70,1,20,9,21,12,13])),`component`)}),XAe=F(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(d9)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-security-groups.js`),__vite__mapDeps([71,1,20,9,21,12])),`component`)}),ZAe=F(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(l9)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([72,1,20,9,21,12,13])),`component`)}),QAe=F(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(y9),e.queryClient.ensureQueryData(Q7)])},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([73,1,20,9,52,53,12,13])),`component`)}),$Ae=F(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(e9)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([74,1,20,9,21,12])),`component`)}),eje=F(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Y7)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-instances.js`),__vite__mapDeps([75,1,20,9,21,12,13])),`component`)}),tje=F(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Q7)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./describe-images.js`),__vite__mapDeps([76,1,20,9,21,12,13,53])),`component`)}),F9=F(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Xc(t._splat??``);await e.queryClient.ensureQueryData(g9(t.bucket,n))},head:({params:e})=>({meta:[{title:`${Zc(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:I(()=>pT(()=>import(`./_.js`),__vite__mapDeps([77,1,23,24,62,57,45,63,56,20,9,25])),`component`)}),I9=F(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(k9(t.userName)),e.queryClient.ensureQueryData(A9(t.userName)),e.queryClient.ensureQueryData(P9(t.userName)),e.queryClient.ensureQueryData(j9)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:I(()=>pT(()=>import(`./_userName.js`),__vite__mapDeps([78,1,32,24,56,20,9,25,27,45,58,63,79,12,13,29])),`component`)}),L9=F(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(M9(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(N9(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:I(()=>pT(()=>import(`./_policyArn.js`),__vite__mapDeps([80,1,32,24,20,9,25,45,63,56,79,12])),`component`)}),R9=F(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(c9(t.id)),e.queryClient.ensureQueryData(r9)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:I(()=>pT(()=>import(`./_id12.js`),__vite__mapDeps([81,1,37,24,20,9,25,45,63,56,79,12,13])),`component`)}),z9=F(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(m9(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id11.js`),__vite__mapDeps([82,1,37,24,3,20,9,25,30,12,5,39])),`component`)}),B9=F(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(m9(t.id)),e.queryClient.ensureQueryData(Y7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id10.js`),__vite__mapDeps([83,1,37,24,56,38,27,10,20,9,25,45,63,79,12,13,5])),`component`)}),V9=F(`/_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(C9(n)),e.queryClient.ensureQueryData(w9(n)),e.queryClient.ensureQueryData(E9([n])),e.queryClient.ensureQueryData(Y7)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:I(()=>pT(()=>import(`./_id9.js`),__vite__mapDeps([84,1,42,24,56,85,38,27,10,5,8,9,20,25,45,63,79,12])),`component`)}),H9=F(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(i9(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:I(()=>pT(()=>import(`./_id8.js`),__vite__mapDeps([86,1,37,24,20,9,25,45,63,56,79,12,13])),`component`)}),U9=F(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(o9(t.id)),e.queryClient.ensureQueryData(n9)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id7.js`),__vite__mapDeps([87,1,37,24,56,20,9,25,28,45,63,79,12,13,5])),`component`)}),W9=F(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(f9(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:I(()=>pT(()=>import(`./_id6.js`),__vite__mapDeps([88,1,37,24,56,38,27,10,3,20,9,25,44,45,63,79,12,5,39])),`component`)}),G9=F(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(u9(t.id)),e.queryClient.ensureQueryData(Y7)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id5.js`),__vite__mapDeps([89,1,37,24,20,9,25,45,63,56,79,12,13])),`component`)}),K9=F(`/_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(b9(n)),e.queryClient.ensureQueryData(T9(n)),e.queryClient.ensureQueryData(x9(n)),e.queryClient.ensureQueryData(E9([n])),e.queryClient.ensureQueryData(S9),e.queryClient.ensureQueryData(r9)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:I(()=>pT(()=>import(`./_id4.js`),__vite__mapDeps([90,1,42,24,56,38,27,10,85,5,3,20,9,25,45,63,79,12,13,46])),`component`)}),q9=F(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(t9(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id3.js`),__vite__mapDeps([91,1,37,24,20,9,25,45,63,56,79,12])),`component`)}),J9=F(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(X7(t.id)),e.queryClient.ensureQueryData(Z7)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData($7(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id2.js`),__vite__mapDeps([92,1,37,24,56,38,27,10,20,9,25,45,63,79,12,13,5,35,93])),`component`)}),Y9=F(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData($7(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:I(()=>pT(()=>import(`./_id.js`),__vite__mapDeps([94,1,20,9,25,12,13,53,93,79])),`component`)}),nje=SAe.update({id:`/login`,path:`/login`,getParentRoute:()=>q7}),X9=CAe.update({id:`/_auth`,getParentRoute:()=>q7}),rje=wAe.update({id:`/`,path:`/`,getParentRoute:()=>X9}),ije=TAe.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>X9}),aje=EAe.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>X9}),oje=DAe.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>X9}),sje=OAe.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>X9}),cje=kAe.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>X9}),lje=AAe.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>X9}),uje=jAe.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>X9}),dje=MAe.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>X9}),fje=NAe.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>X9}),pje=PAe.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>X9}),mje=_9.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>X9}),hje=FAe.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>X9}),gje=IAe.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>X9}),_je=RAe.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>X9}),vje=zAe.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>X9}),yje=BAe.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>X9}),bje=VAe.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>X9}),Z9=HAe.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>X9}),xje=D9.update({id:`/`,path:`/`,getParentRoute:()=>Z9}),Sje=UAe.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>X9}),Cje=WAe.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>X9}),wje=GAe.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>X9}),Tje=KAe.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>X9}),Eje=qAe.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>X9}),Dje=JAe.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>X9}),Oje=YAe.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>X9}),kje=XAe.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>X9}),Aje=ZAe.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>X9}),jje=QAe.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>X9}),Mje=$Ae.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>X9}),Nje=eje.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>X9}),Pje=tje.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>X9}),Fje=F9.update({id:`/$`,path:`/$`,getParentRoute:()=>Z9}),Ije=I9.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>X9}),Lje=L9.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>X9}),Rje=R9.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>X9}),zje=z9.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>X9}),Bje=B9.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>X9}),Vje=V9.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>X9}),Hje=H9.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>X9}),Uje=U9.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>X9}),Wje=W9.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>X9}),Gje=G9.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>X9}),Kje=K9.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>X9}),qje=q9.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>X9}),Jje=J9.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>X9}),Yje=Y9.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>X9}),Xje={AuthS3LsBucketSplatRoute:Fje,AuthS3LsBucketIndexRoute:xje},Zje={AuthNodesRoute:ije,AuthIndexRoute:rje,AuthS3ServiceMetricsRoute:aje,AuthS3LsBucketRouteRoute:Z9._addFileChildren(Xje),AuthEc2instancesRunInstancesRoute:bje,AuthEc2keyCreateKeyPairRoute:yje,AuthEc2keyImportKeyPairRoute:vje,AuthEc2loadBalancersCreateLoadBalancerRoute:_je,AuthEc2placementGroupsCreatePlacementGroupRoute:gje,AuthEc2securityGroupsCreateSecurityGroupRoute:hje,AuthEc2snapshotsCreateSnapshotRoute:mje,AuthEc2subnetCreateSubnetRoute:pje,AuthEc2targetGroupsCreateTargetGroupRoute:fje,AuthEc2volumesCreateVolumeRoute:dje,AuthEc2vpcCreateVpcRoute:uje,AuthIampoliciesCreatePolicyRoute:lje,AuthIamusersCreateUserRoute:cje,AuthS3bucketsCreateBucketRoute:sje,AuthS3LsIndexRoute:oje,AuthEc2imagesDescribeImagesIdRoute:Yje,AuthEc2instancesDescribeInstancesIdRoute:Jje,AuthEc2keyDescribeKeyPairsIdRoute:qje,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:Kje,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:Gje,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:Wje,AuthEc2snapshotsDescribeSnapshotsIdRoute:Uje,AuthEc2subnetDescribeSubnetsIdRoute:Hje,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:Vje,AuthEc2volumesDescribeVolumesIdRoute:Bje,AuthEc2volumesModifyVolumeIdRoute:zje,AuthEc2vpcDescribeVpcsIdRoute:Rje,AuthIampoliciesListPoliciesPolicyArnRoute:Lje,AuthIamusersListUsersUserNameRoute:Ije,AuthEc2imagesDescribeImagesIndexRoute:Pje,AuthEc2instancesDescribeInstancesIndexRoute:Nje,AuthEc2keyDescribeKeyPairsIndexRoute:Mje,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:jje,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:Aje,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:kje,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Oje,AuthEc2subnetDescribeSubnetsIndexRoute:Dje,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Eje,AuthEc2volumesDescribeVolumesIndexRoute:Tje,AuthEc2vpcDescribeVpcsIndexRoute:wje,AuthIampoliciesListPoliciesIndexRoute:Cje,AuthIamusersListUsersIndexRoute:Sje},Qje={AuthRouteRoute:X9._addFileChildren(Zje),LoginRoute:nje},$je=q7._addFileChildren(Qje)._addFileTypes(),Q9=new ke({defaultOptions:{queries:{staleTime:5e3}}}),eMe=Hi({routeTree:$je,context:{queryClient:Q9},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),$9=document.querySelector(`#app`);$9&&!$9.innerHTML&&ta.createRoot($9).render((0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(aa,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,P.jsx)(Me,{client:Q9,children:(0,P.jsx)(GS,{children:(0,P.jsx)(Ree,{children:(0,P.jsx)(Gi,{router:eMe})})})})})}));export{m9 as $,la as $a,Zl as $i,fx as $n,rm as $r,Aue as $t,C9 as A,ds as Aa,Ed as Ai,wD as An,Lh as Ar,FCe as At,Z7 as B,yo as Ba,Fu as Bi,KS as Bn,bh as Br,Yve as Bt,D9 as C,Xc as Ca,Nd as Ci,mde as Cn,eg as Cr,cwe as Ct,y9 as D,qc as Da,kd as Di,vde as Dn,Jh as Dr,MCe as Dt,b9 as E,Kc as Ea,Md as Ei,_de as En,Xh as Er,jCe as Et,h9 as F,zo as Fa,Sd as Fi,Ow as Fn,Th as Fr,Wve as Ft,l9 as G,Ja as Ga,Mu as Gi,qx as Gn,wh as Gr,P1 as Gt,t9 as H,po as Ha,Iu as Hi,RS as Hn,Sh as Hr,iye as Ht,J7 as I,Mo as Ia,gd as Ii,zC as In,vh as Ir,Gve as It,d9 as J,Ra as Ja,Au as Ji,zx as Jn,oh as Jr,Tue as Jt,n9 as K,Ha as Ka,ju as Ki,Kx as Kn,Ah as Kr,Cue as Kt,$7 as L,Oo as La,_d as Li,TC as Ln,yh as Lr,Kve as Lt,LAe as M,us as Ma,wd as Mi,dD as Mn,Fh as Mr,WCe as Mt,_9 as N,os as Na,Cd as Ni,uD as Nn,Eh as Nr,I2 as Nt,E9 as O,Yc as Oa,Vd as Oi,HD as On,zh as Or,NCe as Ot,g9 as P,Fo as Pa,yd as Pi,UE as Pn,_h as Pr,Uve as Pt,r9 as Q,wa as Qa,$l as Qi,px as Qn,wm as Qr,kue as Qt,Q7 as R,Eo as Ra,pd as Ri,CC as Rn,gh as Rr,qve as Rt,O9 as S,Hc as Sa,Fd as Si,pde as Sn,ng as Sr,U4 as St,x9 as T,Wc as Ta,Od as Ti,gde as Tn,Zh as Tr,ACe as Tt,e9 as U,lo as Ua,Lu as Ui,bS as Un,Oh as Ur,aye as Ut,Y7 as V,go as Va,Nu as Vi,HS as Vn,xh as Vr,rye as Vt,u9 as W,$a as Wa,Pu as Wi,Jx as Wn,Ch as Wr,H1 as Wt,a9 as X,Da as Xa,Ou as Xi,xx as Xn,Pm as Xr,Due as Xt,o9 as Y,Ia as Ya,Ru as Yi,bx as Yn,qm as Yr,Eue as Yt,i9 as Z,Ea as Za,eu as Zi,Sx as Zn,Mm as Zr,Oue as Zt,P9 as _,sl as _a,Jd as _i,cde as _n,_ as _o,Ng as _r,O6 as _t,G9 as a,Il as aa,Hf as ai,Iue as an,xe as ao,ox as ar,H7 as at,N9 as b,$c as ba,Hd as bi,dde as bn,c as bo,Eg as br,W4 as bt,H9 as c,Fl as ca,wf as ci,zue as cn,ce as co,nre as cr,gke as ct,z9 as d,Pl as da,uf as di,Hue as dn,m as do,jb as dr,yke as dt,Ql as ea,gp as ei,jue as en,Li as eo,dx as er,p9 as et,R9 as f,xl as fa,lf as fi,Uue as fn,re as fo,fre as fr,xke as ft,A9 as g,fl as ga,rf as gi,sde as gn,oe as go,L_ as gr,Dke as gt,F9 as h,ml as ha,af as hi,Kue as hn,ee as ho,W_ as hr,Eke as ht,K9 as i,Hl as ia,Yf as ii,Fue as in,Te as io,ax as ir,V7 as it,S9 as j,fs as ja,Td as ji,pD as jn,Ih as jr,ICe as jt,w9 as k,ms as ka,Dd as ki,MD as kn,Rh as kr,PCe as kt,V9 as l,Ml as la,bf as li,Bue as ln,C as lo,Ob as lr,_ke as lt,I9 as m,hl as ma,of as mi,Gue as mn,v as mo,H_ as mr,Tke as mt,J9 as n,Kl as na,$f as ni,Nue as nn,ai as no,rx as nr,s9 as nt,W9 as o,Ll as oa,Of as oi,Lue as on,de as oo,Pb as or,U7 as ot,L9 as p,gl as pa,cf as pi,Wue as pn,y as po,Cb as pr,Ske as pt,f9 as q,La as qa,Bu as qi,Vx as qn,jh as qr,wue as qt,q9 as r,Wl as ra,ep as ri,Pue as rn,je as ro,sx as rr,G7 as rt,U9 as s,Rl as sa,Cf as si,Rue as sn,le as so,Ab as sr,W7 as st,Y9 as t,Yl as ta,lp as ti,Mue as tn,xi as to,ux as tr,c9 as tt,B9 as u,Nl as ua,vf as ui,Vue as un,g as uo,$ne as ur,vke as ut,j9 as v,al as va,Yd as vi,lde as vn,d as vo,Mg as vr,Z4 as vt,T9 as w,Qc as wa,Ld as wi,hde as wn,Qh as wr,kCe as wt,k9 as x,Zc as xa,Rd as xi,fde as xn,ig as xr,dwe as xt,M9 as y,el as ya,Gd as yi,ude as yn,l as yo,Ag as yr,fwe as yt,X7 as z,wo as za,ud as zi,xC as zn,Dh as zr,Jve as zt}; \ 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,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,71,72,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([73,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([74,1,54,2,3,4,5,18,6,19,23,40,75,8,9,13,41,25,42,24,26,44,76,43,27,45,46,77,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([78,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([79,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([80,1,39,2,3,4,5,23,40,81,8,9,24,25,26,76,63,82,75,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([83,1,84,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([85,1,84,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([86,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([87,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([88,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([89,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([90,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([91,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([92,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([93,1,18,2,3,4,5,6,19,70,8,9,36,22,23,24,25,41,71,72,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([94,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([95,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([96,1,18,2,3,4,5,6,19,36,22,23,37,24,25,29,30,72])),`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([97,1,39,2,3,4,5,23,40,81,8,9,24,25,26,76,63,82,75,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([98,1,3,4,49,2,5,23,40,84,19,75,8,9,36,22,41,25,42,24,26,44,63,77,82,99,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([100,1,3,4,49,2,5,23,40,84,19,8,9,36,22,41,25,42,24,26,63,82,75,99,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([101,1,3,4,54,2,5,18,6,19,23,40,8,9,36,22,24,25,41,42,26,63,82,75,99,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([102,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([103,1,3,4,54,2,5,18,6,19,23,40,75,8,9,55,10,11,56,12,25,26,44,27,36,22,24,41,42,63,82,99,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([104,1,3,4,18,2,5,6,19,60,23,40,70,75,8,9,105,55,10,11,56,12,25,26,44,27,15,21,22,36,41,42,24,63,82,99,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([106,1,3,4,54,2,5,18,6,19,23,40,8,9,36,22,24,25,41,42,26,63,82,75,99,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([107,1,3,4,54,2,5,18,6,19,23,40,75,8,9,36,22,24,25,41,42,26,45,63,82,99,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([108,1,54,2,3,4,5,18,6,19,23,40,75,8,9,55,10,11,56,12,25,26,44,27,13,36,22,24,41,42,62,63,82,99,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([109,1,54,2,3,4,5,18,6,19,23,40,8,9,36,22,24,25,41,42,26,63,82,75,99,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([110,1,3,4,18,2,5,6,19,60,23,40,70,75,8,9,55,10,11,56,12,25,26,44,27,105,15,13,36,22,41,42,24,63,82,99,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([111,1,3,4,54,2,5,18,6,19,23,40,8,9,36,22,41,25,42,24,26,63,82,75,99,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([112,1,3,4,54,2,5,18,6,19,23,40,75,8,9,55,10,11,56,12,25,26,44,27,36,22,24,42,63,82,99,29,30,15,52,113])),`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([114,1,18,2,3,4,5,6,19,36,22,23,42,24,25,26,29,30,72,113,99])),`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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js b/spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js new file mode 100644 index 000000000..907dff1bb --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/lazyRouteComponent.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..244f6c965 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/link.js @@ -0,0 +1 @@ +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 9c83da559..1ead9e6ab 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{to as n}from"./index.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js index 14ca699ed..166cc3b70 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{to 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=e();function u(){let e=(0,c.c)(3),{data:t}=n(i),s;if(e[0]!==t.Policies){let n=(t.Policies??[]).toSorted(f),i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-policy`,children:(0,l.jsx)(a,{children:`Create Policy`})}),title:`IAM Policies`}),e[2]=i):i=e[2],s=(0,l.jsxs)(l.Fragment,{children:[i,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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js index a7cba1708..c3f7a7fd9 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{S as r,to 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=e();function u(){let e=(0,c.c)(3),{data:t}=n(r),s;if(e[0]!==t.Users){let n=(t.Users??[]).toSorted(f),r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,l.jsx)(o,{actions:(0,l.jsx)(i,{to:`/iam/create-user`,children:(0,l.jsx)(a,{children:`Create User`})}),title:`IAM Users`}),e[2]=r):r=e[2],s=(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 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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/login.js b/spinifex/services/spinifexui/frontend/dist/assets/login.js index 22cb0cfb7..4e1d6eb5b 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{Gt as i,ar as a,it as o,nr as s,rr as c,rt 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=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),l(),a(e);try{await o().send(new i({})),window.location.href=`/`}catch{c(),l(),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)(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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ls.js b/spinifex/services/spinifexui/frontend/dist/assets/ls.js index 7234bb7ac..afe2e2dc3 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{F as r,Ta as i,to 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=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(r),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)(a,{to:`/s3/create-bucket`,children:(0,u.jsx)(o,{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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/matchContext.js b/spinifex/services/spinifexui/frontend/dist/assets/matchContext.js new file mode 100644 index 000000000..00a8c40aa --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/matchContext.js @@ -0,0 +1 @@ +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 a7ed1a641..efb19dc76 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{Bn 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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/plus.js b/spinifex/services/spinifexui/frontend/dist/assets/plus.js index c88c7ca74..1a8237c60 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/plus.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/plus.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route.js b/spinifex/services/spinifexui/frontend/dist/assets/route.js index bd9183416..6a82036c9 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{eo as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route2.js b/spinifex/services/spinifexui/frontend/dist/assets/route2.js index bd9183416..6a82036c9 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{eo as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js index e24e5d40b..6f8b35c84 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"./back-link.js";import{t as o}from"./chevron-down.js";import{a as s,i as c,n as l,r as u,t as d}from"./select.js";import{t as f}from"./cli-command-panel.js";import{o as p}from"./ec2.js";import{B as m,G as h,Q as g,R as _,U as v,no 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=e(n()),j=t(),M=`/dev/sda1`,ae=`gp3`,oe=1,se=16384;function N(){let e=y(),{data:t}=i(_),{data:n}=i(v),{data:M}=i(m),{data:N}=i(g),{data:F}=i(h),I=p(),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)(a,{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)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(c,{"aria-invalid":!!Y.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(s,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(l,{children:L.map(e=>(0,j.jsxs)(u,{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)(d,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(c,{"aria-invalid":!!Y.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(s,{})}),(0,j.jsx)(l,{children:H.map(e=>(0,j.jsxs)(u,{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)(d,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(c,{"aria-invalid":!!Y.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(s,{})}),(0,j.jsx)(l,{children:R.map(e=>(0,j.jsx)(u,{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)(d,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(c,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(u,{value:`none`,children:`none`}),z.map(e=>(0,j.jsx)(u,{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)(d,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(c,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(u,{value:`none`,children:`none`}),B.map(e=>(0,j.jsxs)(u,{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)(o,{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)(d,{onValueChange:t=>e.onChange(t),value:e.value??ae,children:[(0,j.jsx)(c,{"aria-invalid":!!Y.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(s,{})}),(0,j.jsx)(l,{children:k.map(e=>(0,j.jsx)(u,{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)(f,{commands:ce(J)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(b,{disabled:X||I.isPending,onClick:async()=>await e({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:` \\ +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:` \\ --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 c1768396c..407c9cc17 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"./error-banner.js";import{$n as r,An as i,Ct as a,Gn as o,In as s,Jn as c,Mn as l,Nn as u,Pn as d,Qn as f,Rn as p,St as m,Un as h,Xn as g,Yn as _,Zn as v,_t as y,bt as b,ct as x,dt 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,ro 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(!p(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===m.WHEN_SUPPORTED||t?P:void 0;if(e[n])return e[n]},G=e=>e===b.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)&&!h(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 _(this,void 0,void 0,function(){return g(this,function(e){return[2,r(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=v(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=f([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=[b.CRC32,b.CRC32C,b.CRC64NVME,b.SHA1,b.SHA256],Te=[b.SHA256,b.SHA1,b.CRC32,b.CRC32C,b.CRC64NVME],Ee=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case b.MD5:return n?.MD5??t.md5;case b.CRC32:return n?.CRC32??Ce();case b.CRC32C:return n?.CRC32C??ce;case b.CRC64NVME:return typeof Se.CrtCrc64Nvme==`function`?n?.CRC64NVME??Se.CrtCrc64Nvme:n?.CRC64NVME??xe;case b.SHA1:return n?.SHA1??t.sha1;case b.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(o(t||``)),n.digest()},Oe={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ke=(e,t)=>(n,r)=>async i=>{if(!c.isInstance(i.request)||oe(`x-amz-checksum-`,i.request.headers))return n(i);let{request:a,input:o}=i,{body:s,headers:l}=a,{base64Encoder:u,streamHasher:f}=e,{requestChecksumRequired:p,requestAlgorithmMember:h}=t,g=await e.requestChecksumCalculation(),_=h?.name,v=h?.httpHeader;_&&!o[_]&&(g===m.WHEN_SUPPORTED||p)&&(o[_]=P,v&&(l[v]=P));let y=W(o,{requestChecksumRequired:p,requestAlgorithmMember:h?.name,requestChecksumCalculation:g}),x=s,S=l;if(y){switch(y){case b.CRC32:d(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case b.CRC32C:d(r,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case b.CRC64NVME:d(r,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case b.SHA1:d(r,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case b.SHA256:d(r,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=G(y),n=Ee(y,e);if(se(s)){let{getAwsChunkedEncodingStream:i,bodyLengthChecker:a}=e;x=i(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?z(s,e.requestStreamBufferSize,r.logger):s,{base64Encoder:u,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,s);S={...l,[t]:u(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,r)=>async i=>{let o=i.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(c){case m.WHEN_REQUIRED:d(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case m.WHEN_SUPPORTED:d(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(l){case a.WHEN_REQUIRED:d(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case a.WHEN_SUPPORTED:d(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&l===a.WHEN_SUPPORTED&&(o[s]=`ENABLED`),n(i)},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===b.CRC64NVME){r?.warn(`Skipping ${b.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(!c.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=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 s.headers[t]!==void 0}),a=Me([...u??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=G(e),n=s.headers[t];return!n||Ne(n)}))return o;await Fe(s,{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(c.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 i.classBuilder().ep({...y,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(x).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 i.classBuilder().ep({...y,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 i.classBuilder().ep({...y,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 i.classBuilder().ep({...y,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(S).build(){},et=class extends i.classBuilder().ep({...y,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 i.classBuilder().ep({...y,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 i.classBuilder().ep({...y,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 i.classBuilder().ep({...y,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=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(``)}})),st=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=e((e=>{var t=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=t(),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=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=at().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=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=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,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=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=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 o=await Promise.all([this.client.send(new tt(t)),n?.endpoint?.()]),c=o[0],d=o[1];if(d||=u(await l(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=>s(e)).join(`/`),p=s(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={...c,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). +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). 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 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{t.invalidateQueries({queryKey:[`s3`,`buckets`,n.bucket,`objects`]})}},e[0]=t,e[1]=r),n(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 e=(0,ct.c)(2),t=A(),r;return e[0]===t?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{t.invalidateQueries({queryKey:[`s3`,`buckets`]})}},e[0]=t,e[1]=r),n(r)}async function zt(e){let{bucketName:t}=e,n=new Qe({Bucket:t});return await j().send(n)}function Bt(){let e=(0,ct.c)(2),t=A(),r;return e[0]===t?r=e[1]:(r={mutationFn:Vt,onSuccess:(e,n)=>{t.invalidateQueries({queryKey:[`s3`,`buckets`,n.bucket,`objects`]})}},e[0]=t,e[1]=r),n(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 +`);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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s32.js b/spinifex/services/spinifexui/frontend/dist/assets/s32.js new file mode 100644 index 000000000..da62e959a --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/s32.js @@ -0,0 +1 @@ +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 67cd358d8..30fd92730 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{t as i}from"./check.js";import{t as a}from"./chevron-down.js";import{$a as o,$i as s,$r as c,Ai as l,Ar as u,Bi as d,Ci as f,Di as p,Dr as m,Er as h,Fa as g,Fi as _,Gi as v,Hi as y,Ja as b,Ji as x,Jr as S,Ka as C,Ki as w,Li as T,Ma as E,Mi as D,Na as O,Oi as k,Or as A,Pa as j,Qa as M,Qi as N,Qr as P,Ri as F,Sa as I,Si as ee,Ti as te,Tr as L,Ua as R,Ui as ne,Vi as re,Wi as ie,Xa as z,Xi as B,Xr as V,Ya as H,Yi as ae,Yr as U,Za as oe,Zi as W,Zr as G,_a as se,_r as ce,aa as K,ai as q,bi as J,br as le,ca as Y,ci as ue,da as de,ea as fe,ei as pe,fa as me,gi as he,ha as ge,hi as _e,ia as ve,ii as ye,ji as be,jr as xe,ka as Se,ki as Ce,la as we,li as Te,ma as Ee,mi as De,na as Oe,ni as ke,oa as Ae,oi as je,pa as Me,qa as Ne,qi as Pe,ra as X,ri as Fe,sa as Ie,si 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=R(`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:H,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:l=0,reason:u=p}=t,d=Q.useRef(void 0),f=T(),m=F(),h=Q.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,p=n.select(`open`);if(e.button!==0||a===`click`||N(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=p&&_||!(p&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=Ie(i);if(ve(y)){let e=J(u,i,y);v&&t===`touch`&&l>0?m.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;f.request(()=>{let e=J(u,i,b);v&&t===`touch`&&l>0?m.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(N(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,p=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&p||!(i&&o&&(!(f&&c)||W(f))),g=J(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?m.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,m,l,u]);return Q.useMemo(()=>i?{reference:h}:b,[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===we:e===Be,e===Y)}function rt(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Qe:$e(t,n?e===Be:e===we,e===de)}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:c,activeIndex:l,onNavigate:u=()=>{},enabled:f=!0,selectedIndex:p=null,allowEscape:m=!1,loopFocus:h=!1,nested:_=!1,rtl:b=!1,virtual:S=!1,focusItemOnOpen:C=`auto`,focusItemOnHover:T=!0,openOnArrowKeyDown:D=!0,disabledIndices:k=void 0,orientation:A=`vertical`,parentOrientation:j,cols:M=1,id:N,resetOnPointerLeave:P=!0,externalTree:F}=t,I=Te(Oe(i)),te=ke(),L=Fe(F);E(()=>{o.current.orientation=A},[o,A]);let R=X(a),z=Q.useRef(C),B=Q.useRef(p??-1),V=Q.useRef(null),H=Q.useRef(!0),U=O(e=>{u(B.current===-1?null:B.current,e)}),oe=Q.useRef(U),W=Q.useRef(!!i),G=Q.useRef(r),se=Q.useRef(!1),ce=Q.useRef(!1),q=Q.useRef(null),le=Te(k),Y=Te(r),ue=Te(p),de=Te(P),pe=O(()=>{function e(e){S?L?.events.emit(`virtualfocus`,e):q.current=je(e,{sync:se.current,preventScroll:!0})}let t=c.current[B.current],n=ce.current;t&&e(t),(se.current?e=>e():requestAnimationFrame)(()=>{let r=c.current[B.current]||t;r&&(t||e(r),ge&&(n||!H.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});E(()=>{f&&(r&&i?(B.current=p??-1,z.current&&p!=null&&(ce.current=!0,U())):W.current&&(B.current=-1,oe.current()))},[f,r,i,p,U]),E(()=>{if(f){if(!r){se.current=!1;return}if(i)if(l==null){if(se.current=!1,ue.current!=null)return;if(W.current&&(B.current=-1,pe()),(!G.current||!W.current)&&z.current&&(V.current!=null||z.current===!0&&V.current==null)){let e=0,t=()=>{c.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(B.current=V.current==null||tt(V.current,A,b)||_?w(c):v(c),V.current=null,U())};t()}}else x(c.current,l)||(B.current=l,pe(),ce.current=!1)}},[f,r,i,l,ue,_,c,A,b,U,pe,le]),E(()=>{if(!f||i||!L||S||!W.current)return;let e=L.nodesRef.current,t=e.find(e=>e.id===te)?.context?.elements.floating,n=K(Me(i)),r=e.some(e=>e.context&&Ae(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[f,i,L,te,S]),E(()=>{oe.current=U,G.current=r,W.current=!!i}),E(()=>{r||(V.current=null,z.current=C)},[r,C]);let me=l!=null,he=O(e=>{if(!Y.current)return;let t=c.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||l!==t)&&(B.current=t,U(e))}),ge=Q.useMemo(()=>({onFocus(e){se.current=!0,he(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){se.current=!0,ce.current=!1,T&&he(e)},onPointerLeave(e){if(!Y.current||!H.current||e.pointerType===`touch`)return;se.current=!0;let t=e.relatedTarget;if(!(!T||c.current.includes(t))&&de.current&&(q.current?.(),q.current=null,B.current=-1,U(e),!S)){let e=I.current,t=K(Me(e));e&&Ae(e,t)&&e.focus({preventScroll:!0})}}}),[he,Y,I,T,c,U,de,S]),_e=Q.useCallback(()=>j??L?.nodesRef.current.find(e=>e.id===te)?.context?.dataRef?.current.orientation,[te,L,j]),ve=O(e=>{if(H.current=!1,se.current=!0,e.which===229||!Y.current&&e.currentTarget===I.current)return;if(_&&rt(e.key,A,b,M)){et(e.key,_e())||Re(e),n.setOpen(!1,J(We,e.nativeEvent)),g(a)&&(S?L?.events.emit(`virtualfocus`,a):a.focus());return}let t=B.current,i=w(c,k),o=v(c,k);if(R||(e.key===`Home`&&(Re(e),B.current=i,U(e)),e.key===`End`&&(Re(e),B.current=o,U(e))),M>1){let t=Array.from({length:c.current.length},()=>({width:1,height:1})),n=d(t,M,!1),r=n.findIndex(e=>e!=null&&!ae(c.current,e,k)),a=n.reduce((e,t,n)=>t!=null&&!ae(c.current,t,k)?n:e,-1),s=n[ie(n.map(e=>e==null?null:c.current[e]),{event:e,orientation:A,loopFocus:h,rtl:b,cols:M,disabledIndices:ne([...(typeof k==`function`?null:k)||c.current.map((e,t)=>ae(c.current,t,k)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:y(B.current>o?i:B.current,t,n,M,e.key===`ArrowDown`?`bl`:e.key===(b?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(s!=null&&(B.current=s,U(e)),A===`both`)return}if(et(e.key,A)){if(Re(e),r&&!S&&K(e.currentTarget.ownerDocument)===e.currentTarget){B.current=tt(e.key,A,b)?i:o,U(e);return}tt(e.key,A,b)?h?t>=o?m&&t!==c.current.length?B.current=-1:(se.current=!1,B.current=i):B.current=re(c.current,{startingIndex:t,disabledIndices:k}):B.current=Math.min(o,re(c.current,{startingIndex:t,disabledIndices:k})):h?t<=i?m&&t!==-1?B.current=c.current.length:(se.current=!1,B.current=o):B.current=re(c.current,{startingIndex:t,decrement:!0,disabledIndices:k}):B.current=Math.max(i,re(c.current,{startingIndex:t,decrement:!0,disabledIndices:k})),x(c.current,B.current)&&(B.current=-1),U(e)}}),ye=Q.useMemo(()=>S&&r&&me&&{"aria-activedescendant":`${N}-${l}`},[S,r,me,N,l]),be=Q.useMemo(()=>({"aria-orientation":A===`both`?void 0:A,...R?{}:ye,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!S){let t=Ie(e.nativeEvent);if(t&&!Ae(I.current,t))return;Re(e),n.setOpen(!1,J(ee,e.nativeEvent)),g(a)&&a.focus();return}ve(e)},onPointerMove(){H.current=!0}}),[ye,ve,I,A,R,n,r,S,a]),xe=Q.useMemo(()=>{function e(e){C===`auto`&&s(e.nativeEvent)&&(z.current=!S)}function t(e){z.current=C,C===`auto`&&fe(e.nativeEvent)&&(z.current=!0)}return{onKeyDown(e){let t=n.select(`open`);H.current=!1;let r=e.key.startsWith(`Arrow`),i=nt(e.key,_e(),b),a=et(e.key,A),o=(_?i:a)||e.key===`Enter`||e.key.trim()===``;if(S&&t)return ve(e);if(!(!t&&!D&&r)){if(o){let t=et(e.key,_e());V.current=_&&t?null:e.key}if(_){i&&(Re(e),t?(B.current=w(c,le.current),U(e)):n.setOpen(!0,J(We,e.nativeEvent,e.currentTarget)));return}a&&(ue.current!=null&&(B.current=ue.current),Re(e),!t&&D?n.setOpen(!0,J(We,e.nativeEvent,e.currentTarget)):ve(e),t&&U(e))}},onFocus(e){n.select(`open`)&&!S&&(B.current=-1,U(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ve,le,C,c,_,U,n,D,A,_e,b,ue,S]),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=F(),m=Q.useRef(``),h=Q.useRef(f??s??-1),g=Q.useRef(null);E(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),E(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=O(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=O(e=>{function t(e){let t=o?.current[e];return!t||Pe(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=O(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=Ae(r,t),o=Ae(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(M(60));return e}function ut(){let e=Q.useContext(ct);if(e===null)throw Error(M(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:P(e=>e.id),labelId:P(e=>e.labelId),modal:P(e=>e.modal),multiple:P(e=>e.multiple),items:P(e=>e.items),itemToStringLabel:P(e=>e.itemToStringLabel),itemToStringValue:P(e=>e.itemToStringValue),isItemEqualToValue:P(e=>e.isItemEqualToValue),value:P(e=>e.value),hasSelectedValue:P(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:bt(t,r)!==``}),hasNullItemLabel:P((e,t)=>t?vt(e.items):!1),open:P(e=>e.open),mounted:P(e=>e.mounted),forceMount:P(e=>e.forceMount),transitionStatus:P(e=>e.transitionStatus),openMethod:P(e=>e.openMethod),activeIndex:P(e=>e.activeIndex),selectedIndex:P(e=>e.selectedIndex),isActive:P((e,t)=>e.activeIndex===t),isSelected:P((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:P((e,t)=>e.selectedIndex===t),popupProps:P(e=>e.popupProps),triggerProps:P(e=>e.triggerProps),triggerElement:P(e=>e.triggerElement),positionerElement:P(e=>e.positionerElement),listElement:P(e=>e.listElement),scrollUpArrowVisible:P(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:P(e=>e.scrollDownArrowVisible),hasScrollArrows:P(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:a,defaultOpen:s=!1,onOpenChange:c,name:u,form:d,autoComplete:f,disabled:p=!1,readOnly:m=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:x,items:C,multiple:w=!1,itemToStringLabel:T,itemToStringValue:k,isItemEqualToValue:j=dt,highlightItemOnHover:M=!0,children:N}=e,{clearErrors:P}=Xe(),{setDirty:F,setTouched:I,setFocused:ee,shouldValidateOnChange:R,validityData:ne,setFilled:re,name:ie,disabled:B,validation:H,validationMode:ae}=se(),W=Ee({id:t}),ce=B||p,K=ie??u,[q,le]=l({controlled:n,default:w?r??Ne:r,name:`Select`,state:`value`}),[Y,de]=l({controlled:a,default:s,name:`Select`,state:`open`}),fe=Q.useRef([]),me=Q.useRef([]),he=Q.useRef(null),ge=Q.useRef(null),_e=Q.useRef(0),ve=Q.useRef(null),ye=Q.useRef([]),xe=Q.useRef(!1),Se=Q.useRef(!1),we=Q.useRef(null),De=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Oe=Q.useRef(!1),{mounted:ke,setMounted:Ae,transitionStatus:je}=be(Y),{openMethod:Me,triggerProps:Pe}=L(Y),X=oe(()=>new V({id:W,labelId:void 0,modal:_,multiple:w,itemToStringLabel:T,itemToStringValue:k,isItemEqualToValue:j,value:q,open:Y,mounted:ke,transitionStatus:je,items:C,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Fe=G(X,$.activeIndex),Ie=G(X,$.selectedIndex),Re=G(X,$.triggerElement),ze=G(X,$.positionerElement),Be=ot(Me),Ve=Me??Be,He=Q.useMemo(()=>w&&Array.isArray(q)&&q.length===0?``:bt(q,k),[w,q,k]),Ue=Q.useMemo(()=>w&&Array.isArray(q)?q.map(e=>bt(e,k)):bt(q,k),[w,q,k]);Ce(Te(X.state.triggerElement),{id:W,value:q,getValue:O(()=>Ue)});let We=Q.useRef(q);E(()=>{q!==We.current&&X.set(`forceMount`,!0)},[X,q]),E(()=>{re(w?Array.isArray(q)&&q.length>0:q!=null)},[w,q,re]),E(function(){if(Y)return;let e=ye.current;if(w){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)},[w,Y,q,ye,j,X]),h(q,()=>{P(K),F(q!==ne.initialValue),R()?H.commit(q):H.commit(q,!0)});let Ge=O((e,t)=>{if(c?.(e,t),!t.isCanceled&&(de(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(I(!0),ee(!1),ae===`onBlur`&&H.commit(q)),!e&&X.state.activeIndex!==null)){let e=fe.current[X.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ke=O(()=>{Ae(!1),X.update({activeIndex:null,openMethod:null}),x?.(!1)});D({enabled:!v,open:Y,ref:he,onComplete(){Y||Ke()}}),Q.useImperativeHandle(v,()=>({unmount:Ke}),[Ke]);let qe=O((e,t)=>{i?.(e,t),!t.isCanceled&&le(e)}),Je=O(()=>{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=no(Qe(),Pe,W?{id:W}:b),[Qe,Pe,W]);A(()=>{X.update({popupProps:$e(),triggerProps:tt})}),E(()=>{X.update({id:W,modal:_,multiple:w,value:q,open:Y,mounted:ke,transitionStatus:je,popupProps:$e(),triggerProps:tt,items:C,itemToStringLabel:T,itemToStringValue:k,isItemEqualToValue:j,openMethod:Ve})},[X,W,_,w,q,Y,ke,je,$e,tt,C,T,k,j,Ve]);let nt=Q.useMemo(()=>({store:X,name:K,required:g,disabled:ce,readOnly:m,multiple:w,highlightItemOnHover:M,setValue:qe,setOpen:Ge,listRef:fe,popupRef:he,scrollHandlerRef:ge,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:_e,getItemProps:et,events:Ye.context.events,valueRef:ve,valuesRef:ye,labelsRef:me,typingRef:xe,selectionRef:De,selectedItemTextRef:we,validation:H,onOpenChangeComplete:x,keyboardActiveRef:Se,alignItemWithTriggerActiveRef:Oe,initialValueRef:We}),[X,K,g,ce,m,w,M,qe,Ge,et,Ye.context.events,H,x,Je]),rt=z(y,H.inputRef),lt=w&&Array.isArray(q)&&q.length>0,ut=w?void 0:K,ft=Q.useMemo(()=>!w||!Array.isArray(q)||!K?null:q.map(e=>{let t=bt(e,k);return(0,Z.jsx)(`input`,{type:`hidden`,form:d,name:K,value:t},t)}),[w,q,d,K,k]);return(0,Z.jsx)(st.Provider,{value:nt,children:(0,Z.jsxs)(ct.Provider,{value:Ye,children:[N,(0,Z.jsx)(`input`,{...H.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=J(te,e.nativeEvent);function r(){if(w)return;let e=ye.current.find(e=>bt(e,k).toLowerCase()===t.toLowerCase()||yt(e,T).toLowerCase()===t.toLowerCase());e!=null&&(F(e!==ne.initialValue),qe(e,n),R()&&H.commit(e))}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:W&&ut==null?`${W}-hidden-input`:void 0,form:d,name:ut,autoComplete:f,value:He,disabled:ce,required:g&&!lt,readOnly:m,ref:rt,style:K?ue:Le,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ft]})})}function Dt(e,t){return e??t}function Ot(e){let t=e.getBoundingClientRect(),n=j(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={..._e,...He,value:()=>null},Nt=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...l}=e,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=se(),{labelId:h}=ge(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:w,keyboardActiveRef:T}=lt(),E=m||w||a,D=G(g,$.open),k=G(g,$.value),A=G(g,$.triggerProps),j=G(g,$.positionerElement),M=G(g,$.listElement),N=G(g,$.id),P=G(g,$.labelId),I=G(g,$.hasSelectedValue),ee=!I&&D,L=G(g,$.hasNullItemLabel,ee),R=i??N,ne=Dt(h,P);Ee({id:R});let re=Te(j),ie=Q.useRef(null),{getButtonProps:B,buttonRef:V}=Se({disabled:E,native:s}),H=z(t,ie,V,O(e=>{g.set(`triggerElement`,e)})),ae=F(),U=F(),oe=F(),W=F();Q.useEffect(()=>{if(D)return I||L?W.start(jt,()=>{v.current.allowUnselectedMouseUp=!0,oe.start(jt,()=>{v.current.allowSelectedMouseUp=!0})}):oe.start(At,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{oe.clear(),W.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},U.clear()},[D,I,L,v,U,oe,W]);let ce=Q.useMemo(()=>M?.id??Oe(j)?.id,[M,j]),K=o(A,{id:R,role:`combobox`,"aria-expanded":D?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":D?ce:void 0,"aria-labelledby":ne,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:E?-1:0,ref:H,onFocus(e){d(!0),D&&S.current&&_(!1,J(te,e.nativeEvent)),ae.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){Ae(j,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&y.commit(k))},onPointerMove(){T.current=!1},onKeyDown(){T.current=!0},onMouseDown(e){if(D)return;let t=Me(e.currentTarget);function n(e){if(!ie.current)return;let t=e.target;if(Ae(ie.current,t)||Ae(re.current,t)||t===ie.current)return;let n=Ot(ie.current);e.clientX>=n.left-kt&&e.clientX<=n.right+kt&&e.clientY>=n.top-kt&&e.clientY<=n.bottom+kt||_(!1,J(Ge,e))}U.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,l,B);K.role=`combobox`;let q={...p,open:D,disabled:E,value:k,readOnly:b,placeholder:!I};return C(`button`,e,{ref:[t,ie],state:q,stateAttributesMapping:Mt,props:K})}),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=G(c,$.value),d=G(c,$.items),f=G(c,$.itemToStringLabel),p=G(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=G(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)),C(`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 C(`span`,e,{state:{open:G(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=G(n,$.mounted),i=G(n,$.forceMount);return r||i?(0,Z.jsx)(Lt.Provider,{value:!0,children:(0,Z.jsx)(ye,{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=O(i),o=Q.useRef(0),s=oe(Ut).current,c=oe(Ht).current,[l,u]=Q.useState(0),d=Q.useRef(l),f=O((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=O(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]);E(()=>{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]),E(()=>{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]),E(()=>()=>{n.current=[]},[n]),E(()=>()=>{r&&(r.current=[])},[r]);let h=O(e=>(s.add(e),()=>{s.delete(e)}));E(()=>{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(M(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);E(()=>{if(!e||!t||n==null){a(!1);return}let r=Me(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Yt)},[e,t,n]),m(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:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h,alignItemWithTrigger:g=!0,collisionAvoidance:_=q,style:v,...y}=e,{store:b,listRef:x,labelsRef:S,alignItemWithTriggerActiveRef:C,selectedItemTextRef:w,valuesRef:T,initialValueRef:D,popupRef:k,setValue:A}=lt(),j=ut(),M=G(b,$.open),N=G(b,$.mounted),P=G(b,$.modal),F=G(b,$.value),I=G(b,$.openMethod),ee=G(b,$.positionerElement),L=G(b,$.triggerElement),R=G(b,$.isItemEqualToValue),ne=G(b,$.transitionStatus),re=Q.useRef(null),ie=Q.useRef(null),[z,B]=Q.useState(g),V=N&&z&&I!==`touch`;!N&&z!==g&&B(g),E(()=>{N||($.scrollUpArrowVisible(b.state)&&b.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(b.state)&&b.set(`scrollDownArrowVisible`,!1))},[b,N]),Q.useImperativeHandle(C,()=>V),Xt((V||P)&&M,I===`touch`,ee,L);let H=Ke({anchor:n,floatingRootContext:j,positionMethod:r,mounted:N,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h??V,collisionAvoidance:_,keepMounted:!0}),ae=V?`none`:H.side,U=V?Zt:H.positionerStyles,oe=ce(e,{open:M,side:ae,align:H.align,anchorHidden:H.anchorHidden},{styles:U,transitionStatus:ne,props:y,refs:[t,O(e=>{b.set(`positionerElement`,e)})],hidden:!N,inert:!M}),W=Q.useRef(0),se=O(e=>{if(e.size===0&&W.current===0||T.current.length===0)return;let t=W.current;if(W.current=e.size,e.size===t)return;let n=J(te);if(t!==0&&!b.state.multiple&&F!==null&&mt(T.current,F,R)===-1){let e=D.current,t=e!=null&&mt(T.current,e,R)!==-1?e:null;A(t,n),t===null&&(b.set(`selectedIndex`,null),w.current=null)}if(t!==0&&b.state.multiple&&Array.isArray(F)){let e=e=>mt(T.current,e,R)!==-1,t=F.filter(t=>e(t));(t.length!==F.length||t.some(e=>!pt(F,e,R)))&&(A(t,n),t.length===0&&(b.set(`selectedIndex`,null),w.current=null))}if(M&&V){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};qt(ee,e),qt(k.current,e)}}),K=Q.useMemo(()=>({...H,side:ae,alignItemWithTriggerActive:V,setControlledAlignItemWithTrigger:B,scrollUpArrowRef:re,scrollDownArrowRef:ie}),[H,ae,V,B]);return(0,Z.jsx)(Vt,{elementsRef:x,labelsRef:S,onMapChange:se,children:(0,Z.jsxs)(Gt.Provider,{value:K,children:[N&&P&&(0,Z.jsx)(u,{inert:xe(!M),cutout:L}),oe]})})}),$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(M(69));return t}var rn=Q.createContext(void 0),an={disableStyleElements:!1};function on(){return Q.useContext(rn)??an}var sn={...De,..._},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:b,alignItemWithTriggerActive:x,isPositioned:S,setControlledAlignItemWithTrigger:w,scrollDownArrowRef:A,scrollUpArrowRef:M}=Kt(),N=nn(!0)!=null,P=ut(),F=le(),{nonce:I,disableStyleElements:ee}=on(),te=G(s,$.id),L=G(s,$.open),R=G(s,$.mounted),ne=G(s,$.popupProps),re=G(s,$.transitionStatus),ie=G(s,$.triggerElement),z=G(s,$.positionerElement),B=G(s,$.listElement),V=Q.useRef(!1),H=Q.useRef(!1),ae=Q.useRef({}),U=T(),oe=O(e=>{if(!z||!c.current||!H.current)return;if(V.current||!x){h();return}let t=z.style.top===`0px`,n=z.style.bottom===`0px`;if(!t&&!n){h();return}let r=dn(z),i=fn(z.getBoundingClientRect().height,`y`,r),a=Me(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,g=null,_=!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),h()},S=t?p-f:f,C=Math.min(i+S,d);if(m=C,S<=1){b(S,t?p:0);return}if(d-C>1?t?v=!0:g=0:(_=!0,n&&f1&&(e.scrollTop=n)}(_||m>=d-1)&&(V.current=!0),h()});Q.useImperativeHandle(g,()=>oe,[oe]),D({open:L,ref:c,onComplete(){L&&l?.(!0)}});let W={open:L,transitionStatus:re,side:y,align:b};E(()=>{!z||!c.current||Object.keys(ae.current).length||(ae.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]),E(()=>{L||x||(H.current=!1,V.current=!1,qt(z,ae.current))},[L,x,z,c]),E(()=>{let e=c.current;if(!L||!ie||!z||!e||x&&!S||s.state.transitionStatus===`ending`)return;if(!x){H.current=!0,U.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(z),i=getComputedStyle(e),a=Me(ie),o=j(z),c=dn(ie),l=pn(ie.getBoundingClientRect(),c),u=pn(z.getBoundingClientRect(),c),p=l.height,m=B||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),T=a.documentElement.clientHeight-b-x,E=a.documentElement.clientWidth,D=T-l.bottom+p,O,k=F===`rtl`?l.right-u.width:l.left,A=0;if(t&&n){let e=pn(n.getBoundingClientRect(),c);O=pn(t.getBoundingClientRect(),c),k=u.left+(F===`rtl`?e.right-O.right:e.left-O.left);let r=e.top-l.top+e.height/2;A=O.top-u.top+O.height/2-r}let M=D+A+x+y,N=Math.min(T,M),P=T-b-x,I=M-N,ee=E-5;z.style.left=`${Ct(k,5,ee-u.width)}px`,z.style.height=`${N}px`,z.style.maxHeight=`auto`,z.style.marginTop=`${b}px`,z.style.marginBottom=`${x}px`,e.style.height=`100%`;let te=un(m),L=I>=te-1;L&&(N=Math.min(T,u.height)-(I-te));let R=l.top<20||l.bottom>T-20||Math.ceil(N)+1=P?`0`:`${e}px`,z.style.height=`${N}px`,m.scrollTop=un(m)}else z.style.bottom=`0`,m.scrollTop=I;if(O){let t=u.top,n=u.height,r=O.top+O.height/2,i=Ct(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(re===T||N>=C)&&(V.current=!0),h(),v&&s.state.selectedIndex===null&&s.state.activeIndex===null&&_.current[0]!=null&&s.set(`activeIndex`,0),H.current=!0}finally{t()}},[s,L,z,ie,d,f,c,h,x,w,U,A,M,B,_,v,F,S]),Q.useEffect(()=>{if(!x||!z||!L)return;let e=j(z);function t(e){u(!1,J(k,e))}return Ve(e,`resize`,t)},[u,x,z,L]);let se={...B?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":m||void 0,id:`${te}-list`},onKeyDown(e){p.current=!0,N&&qe.has(e.key)&&e.stopPropagation()},onMouseMove(){p.current=!1},onScroll(e){B||oe(e.currentTarget)},...x&&{style:B?{height:`100%`}:Jt}},ce=C(`div`,e,{ref:[t,c],state:W,stateAttributesMapping:sn,props:[ne,se,Ue(re),{className:!B&&x?en.className:void 0},o]});return(0,Z.jsxs)(Q.Fragment,{children:[!ee&&en.getElement(I),(0,Z.jsx)(ze,{context:P,modal:!1,disabled:!R,returnFocus:a,restoreFocus:!0,children:ce})]})});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 c.getScale(e)}function fn(e,t,n){return e/n[t]}function pn(e,t){return B({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=G(o,$.hasScrollArrows),u=G(o,$.openMethod),d=G(o,$.multiple),f={id:`${G(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 C(`div`,e,{ref:[t,O(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 E(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),E(()=>{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(M(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,...l}=e,u=Q.useRef(null),d=vn({label:a,textRef:u,indexGuessBehavior:_n.GuessFromOrder}),{store:p,getItemProps:m,setOpen:h,setValue:g,selectionRef:_,typingRef:v,valuesRef:y,multiple:b,selectedItemTextRef:x}=lt(),S=G(p,$.isActive,d.index),w=G(p,$.isSelected,d.index,i),T=G(p,$.isSelectedByFocus,d.index),D=G(p,$.isItemEqualToValue),O=d.index,k=O!==-1,A=Q.useRef(null),j=Te(O);E(()=>{if(!k)return;let e=y.current;return e[O]=i,()=>{delete e[O]}},[k,O,i,y]),E(()=>{if(!k)return;let e=p.state.value,t=e;b&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&ft(i,t,D)&&(p.set(`selectedIndex`,O),u.current&&(x.current=u.current))},[k,O,b,D,p,i,x]);let M={disabled:o,selected:w,highlighted:S},N=m({active:S,selected:w});N.id=void 0;let P=Q.useRef(null),F=Q.useRef(`mouse`),I=Q.useRef(!1),{getButtonProps:ee,buttonRef:te}=Se({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function L(e){let t=p.state.value;if(b){let n=Array.isArray(t)?t:[];g(w?ht(n,i,D):[...n,i],J(f,e))}else g(i,J(f,e)),h(!1,J(f,e))}let R={role:`option`,"aria-selected":w,tabIndex:S?0:-1,onTouchStart(){_.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){P.current=e.key,p.set(`activeIndex`,O),e.key===` `&&v.current&&e.preventDefault()},onClick(e){I.current=!1,!(e.type===`keydown`&&P.current===null)&&(o||e.type===`keydown`&&P.current===` `&&v.current||F.current!==`touch`&&!S||(P.current=null,L(e.nativeEvent)))},onPointerEnter(e){F.current=e.pointerType},onPointerDown(e){F.current=e.pointerType,I.current=!0},onMouseUp(){if(o)return;if(I.current){I.current=!1;return}let e=!_.current.allowSelectedMouseUp&&w,t=!_.current.allowUnselectedMouseUp&&!w;e||t||F.current!==`touch`&&!S||A.current?.click()}},ne=C(`div`,e,{ref:[te,t,d.ref,A],state:M,props:[N,R,l,ee]}),re=Q.useMemo(()=>({selected:w,indexRef:j,textRef:u,selectedByFocus:T,hasRegistered:k}),[w,j,u,T,k]);return(0,Z.jsx)(yn.Provider,{value:re,children:ne})})),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}=be(s),d=C(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:_});return D({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 C(`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(),_=G(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=G(l,$.openMethod),y=_&&v!==`touch`,b=F(),x=c?g:h,{transitionStatus:S,setMounted:w}=be(y);E(()=>(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]),D({open:y,ref:x,onComplete(){y||w(!1)}});let T=C(`div`,e,{ref:[t,x],state:{direction:a,visible:y,side:m,transitionStatus:S},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.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){b.clear();return}if(a.length>0){let t=x.current?.offsetHeight||0;e.scrollTop=En(a,c,r,e.clientHeight,t,n)}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},s]});return y||o?T: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=I(`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,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]):({className:r,size:s,id:i,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s);let c=s===void 0?`default`:s,l;t[6]===r?l=t[7]:(l=I(`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]=l);let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(It,{render:(0,Z.jsx)(a,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=u):u=t[8];let d;return t[9]!==n||t[10]!==i||t[11]!==o||t[12]!==c||t[13]!==l?(d=(0,Z.jsxs)(Nt,{className:l,"data-size":c,"data-slot":`select-trigger`,id:i,...o,children:[n,u]}),t[9]=n,t[10]=i,t[11]=o,t[12]=c,t[13]=l,t[14]=d):d=t[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=I(`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(e){let t=(0,kn.c)(13),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o;t[4]===r?o=t[5]:(o=I(`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]=o);let s;t[6]===n?s=t[7]:(s=(0,Z.jsx)(wn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=s);let c;t[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)(i,{className:`pointer-events-none`})}),t[8]=c):c=t[8];let l;return t[9]!==a||t[10]!==o||t[11]!==s?(l=(0,Z.jsxs)(xn,{className:o,"data-slot":`select-item`,...a,children:[s,c]}),t[9]=a,t[10]=o,t[11]=s,t[12]=l):l=t[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=I(`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=I(`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 o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(a,{}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==i?(s=(0,Z.jsx)(Dn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:o}),t[6]=r,t[7]=i,t[8]=s):s=t[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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/separator.js b/spinifex/services/spinifexui/frontend/dist/assets/separator.js new file mode 100644 index 000000000..60c9bc4fc --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/separator.js @@ -0,0 +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,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 32ca03623..f9054359a 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{Bn 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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js index 11b4531e9..46968c063 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{Sa as n}from"./index.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js index c035c2ce8..4c0cd27de 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{a as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./select.js";import{Aa as d,Ai as f,Bi as p,Fi as m,Fr as h,Gi as g,Gr as _,Hi as v,Hr as y,Ir as b,Ja as x,Ji as S,Ka as C,Ki as w,Kr as T,Lr as E,Ma as D,Mi as O,Na as k,Nr as A,Pi as j,Pr as M,Qa as N,Rr as P,Sa as F,Ti as I,Ui as L,Ur as R,Vi as z,Vr as B,Wi as ee,Wr as te,Xa as V,Yi as H,aa as U,bi as W,br as G,ga as K,ja as q,ji as ne,jr as re,ka as ie,oa as ae,pa as oe,qa as J,qr as se,sa as ce,ya as le,yi as ue}from"./index.js";import{a as de,r as fe,t as pe}from"./field.js";var Y=r(),X=e(n(),1),Z=t();function me(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 he(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 ge(e){let t=(0,Y.c)(56),{specs:n,attributes:r,onSubmit:s,isPending:c,error:l,isSuccess:d}=e,f;t[0]!==r||t[1]!==n?(f=me(n,r),t[0]=r,t[1]=n,t[2]=f):f=t[2];let p=f,[m,h]=(0,X.useState)(p),g;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(g=(e,t)=>{h(n=>({...n,[e]:t}))},t[3]=g):g=t[3];let _=g,v;if(t[4]!==n||t[5]!==m){v={};for(let e of n)v[e.key]=he(e,m[e.key]??``);t[4]=n,t[5]=m,t[6]=v}else v=t[6];let y=Object.values(v).some(Boolean),b;if(t[7]!==p||t[8]!==n||t[9]!==m){let e;t[11]!==p||t[12]!==m?(e=e=>(m[e.key]??``)!==(p[e.key]??``),t[11]=p,t[12]=m,t[13]=e):e=t[13];let r;t[14]===m?r=t[15]:(r=e=>({key:e.key,value:m[e.key]??``}),t[14]=m,t[15]=r),b=n.filter(e).map(r),t[7]=p,t[8]=n,t[9]=m,t[10]=b}else b=t[10];let x=b,S;t[16]===p?S=t[17]:(S=()=>{h(p)},t[16]=p,t[17]=S);let C=S,w;t[18]!==x||t[19]!==y||t[20]!==s?(w=e=>{e.preventDefault(),!(y||x.length===0)&&s(x)},t[18]=x,t[19]=y,t[20]=s,t[21]=w):w=t[21];let T;t[22]===l?T=t[23]:(T=l&&(0,Z.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:l.message||`Failed to save attributes`}),t[22]=l,t[23]=T);let E;t[24]!==x.length||t[25]!==d?(E=d&&x.length===0&&(0,Z.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]=d,t[26]=E):E=t[26];let D;if(t[27]!==v||t[28]!==n||t[29]!==m){let e;t[31]!==v||t[32]!==m?(e=e=>{let t=`attr-${e.key}`,n=m[e.key]??``,r=v[e.key];return(0,Z.jsxs)(pe,{children:[(0,Z.jsx)(de,{children:(0,Z.jsx)(`label`,{htmlFor:t,children:e.label})}),e.type===`bool`&&(0,Z.jsx)(`input`,{checked:n===`true`,id:t,onChange:t=>_(e.key,t.target.checked?`true`:`false`),type:`checkbox`}),e.type===`int`&&(0,Z.jsx)(ue,{"aria-invalid":!!r,id:t,inputMode:`numeric`,onChange:t=>_(e.key,t.target.value),value:n}),e.type===`text`&&(0,Z.jsx)(ue,{id:t,onChange:t=>_(e.key,t.target.value),placeholder:e.placeholder,value:n}),e.type===`select`&&(0,Z.jsxs)(u,{onValueChange:t=>_(e.key,t??``),value:n,children:[(0,Z.jsx)(a,{className:`w-full`,id:t,children:(0,Z.jsx)(i,{})}),(0,Z.jsx)(o,{children:e.options.map(_e)})]}),e.description&&(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description}),(0,Z.jsx)(fe,{errors:[r?{message:r}:void 0]})]},e.key)},t[31]=v,t[32]=m,t[33]=e):e=t[33],D=n.map(e),t[27]=v,t[28]=n,t[29]=m,t[30]=D}else D=t[30];let O;t[34]===D?O=t[35]:(O=(0,Z.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:D}),t[34]=D,t[35]=O);let k=x.length===0?`No changes`:`${x.length} change${x.length===1?``:`s`} pending`,A;t[36]===k?A=t[37]:(A=(0,Z.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:k}),t[36]=k,t[37]=A);let j=c||x.length===0,M;t[38]!==C||t[39]!==j?(M=(0,Z.jsx)(le,{disabled:j,onClick:C,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[38]=C,t[39]=j,t[40]=M):M=t[40];let N=c||y||x.length===0,P=c?`Saving…`:`Save changes`,F;t[41]!==N||t[42]!==P?(F=(0,Z.jsx)(le,{disabled:N,size:`sm`,type:`submit`,children:P}),t[41]=N,t[42]=P,t[43]=F):F=t[43];let I;t[44]!==A||t[45]!==M||t[46]!==F?(I=(0,Z.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[A,M,F]}),t[44]=A,t[45]=M,t[46]=F,t[47]=I):I=t[47];let L;t[48]!==I||t[49]!==O?(L=(0,Z.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[O,I]}),t[48]=I,t[49]=O,t[50]=L):L=t[50];let R;return t[51]!==L||t[52]!==w||t[53]!==T||t[54]!==E?(R=(0,Z.jsxs)(`form`,{onSubmit:w,children:[T,E,L]}),t[51]=L,t[52]=w,t[53]=T,t[54]=E,t[55]=R):R=t[55],R}function _e(e){return(0,Z.jsx)(c,{value:e,children:e},e)}var ve=[{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`}],ye=[{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}],be=X.createContext(void 0);function Q(){let e=X.useContext(be);if(e===void 0)throw Error(N(64));return e}var xe=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),$={tabActivationDirection:e=>({[xe.activationDirection]:e})},Se=X.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...u}=e,d=Object.hasOwn(e,`defaultValue`),p=X.useRef([]),[m,h]=X.useState(()=>new Map),[g,_]=f({controlled:s,default:r,name:`Tabs`,state:`value`}),v=s!==void 0,[y,b]=X.useState(()=>new Map),x=X.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]),[S,w]=X.useState(()=>({previousValue:g,tabActivationDirection:`none`})),{previousValue:T,tabActivationDirection:E}=S,O=E,A=!1;T!==g&&(O=Ce(T,g,a,y),A=T!=null&&g!=null&&x(g)==null);let j=A?T:g,M=T!==j||E!==O;D(()=>{M&&w({previousValue:j,tabActivationDirection:O})},[j,M,O]);let N=k((e,t)=>{t.activationDirection=Ce(g,e,a,y),i?.(e,t),!t.isCanceled&&_(e)}),P=k((e,t)=>{h(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),F=k((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=X.useCallback(e=>m.get(e),[m]),L=X.useCallback(e=>{for(let t of y.values())if(e===t?.value)return t?.id},[y]),R=X.useMemo(()=>({getTabElementBySelectedValue:x,getTabIdByPanelValue:L,getTabPanelIdByValue:I,onValueChange:N,orientation:a,registerMountedTabPanel:P,setTabMap:b,unregisterMountedTabPanel:F,tabActivationDirection:O,value:g}),[x,L,I,N,a,P,b,F,O,g]),z=X.useMemo(()=>{for(let e of y.values())if(e!=null&&e.value===g)return e},[y,g]),B=X.useMemo(()=>{for(let e of y.values())if(e!=null&&!e.disabled)return e.value},[y]);D(()=>{if(v||y.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),w(e=>e.tabActivationDirection===`none`?e:{...e,tabActivationDirection:`none`}))},[r,B,d,v,z,_,y,g]);let ee=C(`div`,e,{state:{orientation:a,tabActivationDirection:O},ref:t,props:u,stateAttributesMapping:$});return(0,Z.jsx)(be.Provider,{value:R,children:(0,Z.jsx)(l,{elementsRef:p,children:ee})})});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:r}=q(),{ref:i,index:a}=s(e),o=n===a,c=X.useRef(null),l=V(i,c);return{compositeProps:X.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=c.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=X.createContext(void 0);function De(){let e=X.useContext(Ee);if(e===void 0)throw Error(N(65));return e}var Oe=X.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}=Q(),{activateOnFocus:p,highlightedTabIndex:m,onTabActivation:h,registerTabResizeObserverElement:g,setHighlightedTabIndex:_,tabsListElement:v}=De(),y=K(o),{compositeProps:b,compositeRef:x,index:S}=Te({metadata:X.useMemo(()=>({disabled:r,id:y,value:a}),[r,y,a])}),w=a===u,T=X.useRef(!1),E=X.useRef(null);X.useEffect(()=>{let e=E.current;if(e)return g(e)},[g]),D(()=>{if(T.current){T.current=!1;return}if(!(w&&S>-1&&m!==S))return;let e=v;if(e!=null){let t=U(oe(e));if(t&&ae(e,t))return}r||_(S)},[w,S,m,_,r,v]);let{getButtonProps:O,buttonRef:k}=ie({disabled:r,native:s,focusableWhenDisabled:!0}),A=d(a),j=X.useRef(!1),M=X.useRef(!1);function N(e){w||r||h(a,W(I,e.nativeEvent,void 0,{activationDirection:`none`}))}function P(e){w||(S>-1&&!r&&_(S),!r&&p&&(!j.current||j.current&&M.current)&&h(a,W(I,e.nativeEvent,void 0,{activationDirection:`none`})))}function F(e){if(w||r)return;j.current=!0;function t(){j.current=!1,M.current=!1}(!e.button||e.button===0)&&(M.current=!0,oe(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return C(`button`,e,{state:{disabled:r,active:w,orientation:f},ref:[t,k,x,E],props:[b,{role:`tab`,"aria-controls":A,"aria-selected":w,id:y,onClick:N,onFocus:P,onPointerDown:F,[we]:w?``:void 0,onKeyDownCapture(){T.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=j.startingStyle]=`startingStyle`,e[e.endingStyle=j.endingStyle]=`endingStyle`,e}({}),Ae={...$,...m},je=X.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:f,registerMountedTabPanel:p,unregisterMountedTabPanel:m}=Q(),h=K(),{ref:g,index:_}=s({metadata:X.useMemo(()=>({id:h,value:r}),[h,r])}),v=r===l,{mounted:y,transitionStatus:b,setMounted:x}=ne(v),S=!y,w=u(r),T={hidden:S,orientation:d,tabActivationDirection:f,transitionStatus:b},E=X.useRef(null),k=C(`div`,e,{state:T,ref:[t,g,E],props:[{"aria-labelledby":w,hidden:S,id:h,role:`tabpanel`,tabIndex:v?0:-1,inert:re(!v),[ke.index]:_},c],stateAttributesMapping:Ae});return O({open:v,ref:E,onComplete(){v||x(!1)}}),D(()=>{if(!(S&&!a)&&h!=null)return p(r,h),()=>{m(r,h)}},[S,a,r,h,p,m]),a||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:l,rootRef:u,enableHomeAndEndKeys:d=!1,stopEventPropagation:f=!1,disabledIndices:m,modifierKeys:x=Ne}=e,[C,D]=X.useState(0),O=n>1,j=X.useRef(null),N=V(j,u),F=X.useRef([]),I=X.useRef(!1),R=c??C,U=k((e,t=!1)=>{if((l??D)(e),t){let t=F.current[e];se(j.current,t,s,o)}}),W=k(e=>{if(e.size===0||I.current)return;I.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&&U(r),se(j.current,n,s,o)}),G=k((e,t,n)=>i?i?.(e,t,n,F):n),K=X.useMemo(()=>({"aria-orientation":o===`both`?void 0:o,ref:N,onFocus(e){let t=j.current,n=ce(e.nativeEvent);!t||n==null||!T(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let c=d?A:h;if(!c.has(e.key)||Fe(e,x)||!j.current)return;let l=s===`rtl`,u=l?b:E,C={horizontal:u,vertical:M,both:u}[o],D=l?E:b,k={horizontal:D,vertical:P,both:D}[o],N=ce(e.nativeEvent);if(N!=null&&T(N)&&!Me(N)){let t=N.selectionStart,n=N.selectionEnd,r=N.value??``;if(t==null||e.shiftKey||t!==n||e.key!==k&&t0)return}let I=R,V=w(F,m),W=g(F,m);if(O){let i=t||Array.from({length:F.current.length},()=>({width:1,height:1})),s=p(i,n,a),c=s.findIndex(e=>e!=null&&!H(F.current,e,m)),u=s.reduce((e,t,n)=>t!=null&&!H(F.current,t,m)?n:e,-1);I=s[ee(s.map(e=>e==null?null:F.current[e]),{event:e,orientation:o,loopFocus:r,onLoop:G,cols:n,disabledIndices:L([...m||F.current.map((e,t)=>H(F.current,t)?t:void 0),void 0],s),minIndex:c,maxIndex:u,prevIndex:v(R>W?V:R,i,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let K={horizontal:[u],vertical:[M],both:[u,M]}[o],q={horizontal:[D],vertical:[P],both:[D,P]}[o],ne=O?c:{horizontal:d?y:B,vertical:d?_:te,both:c}[o];d&&(e.key===`Home`?I=V:e.key===`End`&&(I=W)),I===R&&(K.includes(e.key)||q.includes(e.key))&&(r&&I===W&&K.includes(e.key)?(I=V,i&&(I=i(e,R,I,F))):r&&I===V&&q.includes(e.key)?(I=W,i&&(I=i(e,R,I,F))):I=z(F.current,{startingIndex:I,decrement:q.includes(e.key),disabledIndices:m})),I!==R&&!S(F.current,I)&&(f&&e.stopPropagation(),ne.has(e.key)&&e.preventDefault(),U(I,!0),queueMicrotask(()=>{F.current[I]?.focus()}))}}),[n,a,s,m,F,d,R,O,t,r,i,G,N,x,U,o,f]);return X.useMemo(()=>({props:K,highlightedIndex:R,onHighlightedIndexChange:U,elementsRef:F,disabledIndices:m,onMapChange:W,relayKeyboardEvent:K.onKeyDown}),[K,R,U,F,m,W])}function Fe(e,t){for(let n of R.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ie(e){let{render:t,className:n,style:r,refs:i=J,props:a=J,state:o=x,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:u,orientation:f,dense:p,itemSizes:m,loopFocus:h,onLoop:g,cols:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:S,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:c,onHighlightedIndexChange:u,rootRef:S,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:G(),disabledIndices:w,modifierKeys:T}),F=C(D,e,{state:o,ref:i,props:[k,...a,O],stateAttributesMapping:s}),I=X.useMemo(()=>({highlightedIndex:A,onHighlightedIndexChange:j,highlightItemOnHover:E,relayKeyboardEvent:P}),[A,j,E,P]);return(0,Z.jsx)(d.Provider,{value:I,children:(0,Z.jsx)(l,{elementsRef:M,onMapChange:e=>{y?.(e),N(e)},children:F})})}var Le=X.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}=Q(),[p,m]=X.useState(0),[h,g]=X.useState(null),_=X.useRef(new Set),v=X.useRef(new Set),y=X.useRef(null),b=k(()=>{_.current.forEach(e=>{e()})});X.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=k(e=>(_.current.add(e),()=>{_.current.delete(e)})),S=k(e=>(v.current.add(e),y.current?.observe(e),()=>{v.current.delete(e),y.current?.unobserve(e)})),C=k((e,t)=>{e!==u&&c(e,t)}),w={orientation:l,tabActivationDirection:f},T={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},E=X.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:p,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,onTabActivation:C,setHighlightedTabIndex:m,tabsListElement:h}),[n,p,x,S,C,m,h]);return(0,Z.jsx)(Ee.Provider,{value:E,children:(0,Z.jsx)(Ie,{render:a,className:r,style:o,state:w,refs:[t,g],props:[T,s],stateAttributesMapping:$,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:l,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:J})})});function Re(e){let t=(0,Y.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=F(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.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,Y.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(`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,Z.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,Y.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(`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,Z.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,Y.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(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(je,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ge as a,Be as i,ze as n,ve as o,Ve as r,ye as s,Re as t}; \ No newline at end of file +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 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 d0c0747f0..2eca14e21 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{a as ee,i as te,n as ne,r as n,t as re}from"./select.js";import{t as ie}from"./plus.js";import{t as ae}from"./trash-2.js";import{Da as r,ya as oe,yi 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,H;t[86]===d?H=t[87]:(H=d(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[86]=d,t[87]=H);let Te;t[88]!==we||t[89]!==H?(Te=(0,l.jsx)(i,{"aria-invalid":we,id:`hc-interval`,inputMode:`numeric`,type:`number`,...H}),t[88]=we,t[89]=H,t[90]=Te):Te=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]!==Te||t[94]!==U?(W=(0,l.jsxs)(s,{children:[Ce,Te,U]}),t[93]=Te,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 $;t[121]!==Pe||t[122]!==Fe?($=(0,l.jsx)(i,{"aria-invalid":Pe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...Fe}),t[121]=Pe,t[122]=Fe,t[123]=$):$=t[123];let Ie=h.healthCheck?.unhealthyThresholdCount,Le;t[124]===Ie?Le=t[125]:(Le=(0,l.jsx)(o,{errors:[Ie]}),t[124]=Ie,t[125]=Le);let Re;t[126]!==$||t[127]!==Le?(Re=(0,l.jsxs)(s,{children:[Ne,$,Le]}),t[126]=$,t[127]=Le,t[128]=Re):Re=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]!==Re||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,Re,Ge]})]}),t[140]=L,t[141]=V,t[142]=W,t[143]=J,t[144]=Q,t[145]=Re,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,ee)=>ee!==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=r(e.Tags);return(0,l.jsx)(n,{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)(n,{value:`HTTP`,children:`HTTP`})})]})}export{u as t}; \ No newline at end of file +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js index 860e6d3a7..f8f8cf6f7 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{Sa as n}from"./index.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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js b/spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js new file mode 100644 index 000000000..6c4927e27 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/toUtf8.browser.js @@ -0,0 +1 @@ +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 8d8185d97..390471417 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js index d94232ab5..3b8116900 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js @@ -1 +1 @@ -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 +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js index f6874c3da..5a5f768ab 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"./download.js";import{t as o}from"./trash-2.js";import{a as s,i as c,n as l}from"./s3.js";import{An as u,Ea as d,Fn as f,Ta as p,Ua as m,_t as h,jn as g,pt as _,qn as v,st as y,to as b,ya as x}from"./index.js";import{t as S}from"./delete-confirmation-dialog.js";var C=m(`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=m(`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=m(`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{f(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends u.classBuilder().ep({...h,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions()),s(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),c(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(_).build(){},A=r(),j=t();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)(b,{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=e(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[s,c]=(0,N.useState)(!1),u=l();async function f(){try{let e=new k({Bucket:t,Key:r}),i=await y().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){throw Error(`Failed to download object`,{cause:e})}}async function m(){try{await u.mutateAsync({bucket:t,key:r})}finally{c(!1)}}return(0,j.jsxs)(`div`,{children:[u.error&&(0,j.jsx)(i,{error:u.error,msg:`Failed to delete 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: `,p(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:f,type:`button`,children:(0,j.jsx)(a,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>c(!0),type:`button`,children:(0,j.jsx)(o,{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:m,onOpenChange:c,open:s,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)(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 +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=x();async function l(){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){throw Error(`Failed to download object`,{cause:e})}}async function u(){try{await c.mutateAsync({bucket:t,key:r})}finally{o(!1)}}return(0,j.jsxs)(`div`,{children:[c.error&&(0,j.jsx)(i,{error:c.error,msg:`Failed to delete 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:l,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:c.isPending,onConfirm:u,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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js index 8d14ee09e..615f77dc5 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{_o as r,ao as i,bo as a,co as o,do as s,fo as c,go as l,ho as u,mo as d,oo as f,po as p,ro as m,so as h,uo as g,vo as _,yo as v}from"./index.js";var y=class extends a{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=h(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof p(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&&!u(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||p(this.options.enabled,this.#t)!==p(t.enabled,this.#t)||d(this.options.staleTime,this.#t)!==d(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||p(this.options.enabled,this.#t)!==p(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(s)),t}#g(){this.#b();let e=d(this.options.staleTime,this.#t);if(o.isServer()||this.#r.isStale||!g(e))return;let t=r(this.#r.dataUpdatedAt,e)+1;this.#d=_.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(o.isServer()||p(this.options.enabled,this.#t)===!1||!g(this.#p)||this.#p===0)&&(this.#f=_.setInterval(()=>{(this.options.refetchIntervalInBackground||v.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(_.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(_.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,m;if(t._optimisticResults){let a=this.hasListeners(),o=!a&&x(e,t),s=a&&C(e,n,t,r);(o||s)&&(d={...d,...i(u.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:g,errorUpdatedAt:_,status:v}=d;m=d.data;let y=!1;if(t.placeholderData!==void 0&&m===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`,m=c(a?.data,e,t),f=!0)}if(t.select&&m!==void 0&&!y)if(a&&m===o?.data&&t.select===this.#c)m=this.#l;else try{this.#c=t.select,m=t.select(m),m=c(a?.data,m,t),this.#l=m,this.#s=null}catch(e){this.#s=e}this.#s&&(g=this.#s,m=this.#l,_=Date.now(),v=`error`);let b=d.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=m!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:m,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:p(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},a=()=>{i(this.#o=O.promise=h())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||O.data!==o.value)&&a();break;case`rejected`:(!r||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!u(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){f.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return p(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&p(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(p(t.enabled,e)!==!1&&d(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||p(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return p(t.enabled,e)!==!1&&e.isStaleByTime(d(t.staleTime,e))}function T(e,t){return!u(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`?l(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||l(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=m(n),c=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=a.getQueryCache().get(c.queryHash);c._optimisticResults=r?`isRestoring`:`optimistic`,I(c),M(c,i,l),N(i);let u=!a.getQueryCache().get(c.queryHash),[d]=E.useState(()=>new t(a,c)),p=d.getOptimisticResult(c),h=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let t=h?d.subscribe(f.batchCalls(e)):s;return d.updateResult(),t},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(c)},[c,d]),R(c,p))throw z(c,d,i);if(P({result:p,errorResetBoundary:i,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw p.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(c,p),c.experimental_prefetchInRender&&!o.isServer()&&L(p,r)&&(u?z(c,d,i):l?.promise)?.catch(s).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?p:d.trackResult(p)}export{F as n,y as r,B as t}; \ No newline at end of file +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 diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js b/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js new file mode 100644 index 000000000..09209bd0a --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..74154bf7d --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/useOpenInteractionType.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..837bb4604 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/useStore.js @@ -0,0 +1 @@ +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 b9d227a66..4bef8f43a 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{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)=>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`?i: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 n}(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{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 diff --git a/spinifex/services/spinifexui/frontend/dist/index.html b/spinifex/services/spinifexui/frontend/dist/index.html index 3412271d0..ee68cef3d 100644 --- a/spinifex/services/spinifexui/frontend/dist/index.html +++ b/spinifex/services/spinifexui/frontend/dist/index.html @@ -9,8 +9,30 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/spinifex/services/spinifexui/frontend/package.json b/spinifex/services/spinifexui/frontend/package.json index bf880a910..637268e36 100644 --- a/spinifex/services/spinifexui/frontend/package.json +++ b/spinifex/services/spinifexui/frontend/package.json @@ -63,5 +63,5 @@ "vite": "^8.0.11", "vitest": "^4.1.5" }, - "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319" + "packageManager": "pnpm@11.1.0+sha512.0c44e842e5686b2c061a81adda8b2258bd8818e9704b2cf2c63d56b931a7b2e910092e085027003b96ca3911ab56a07f6df5abaed2be9925034cdd686a535b14" }