dynamic-mui 2.0.16 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -229,7 +229,7 @@ function print() { __p += __j.call(arguments, '') }
229
229
  `))},[JSON.stringify(b)]));const{timezone:C,value:O,handleValueChange:T}=dc({name:"a picker component",timezone:c,value:i,defaultValue:b,referenceDate:l,onChange:a,valueManager:r}),[P,k]=S.useState(()=>({open:!1,lastExternalValue:O,clockShallowValue:void 0,lastCommittedValue:O,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=y3({props:t,validator:o,timezone:C,value:O,onError:t.onError}),_=Ee(I=>{const N=typeof I=="function"?I(P.open):I;y||k(j=>E({},j,{open:N})),N&&p&&p(),N||h?.()}),D=Ee((I,N)=>{const{changeImportance:j="accept",skipPublicationIfPristine:H=!1,validationError:$,shortcut:B,source:q,shouldClose:U=j==="accept"}=N??{};let V,L;!H&&!g&&!P.hasBeenModifiedSinceMount?(V=!0,L=j==="accept"):(V=!r.areValuesEqual(v,I,O),L=j==="accept"&&!r.areValuesEqual(v,I,P.lastCommittedValue)),k(X=>E({},X,{clockShallowValue:V?void 0:X.clockShallowValue,lastCommittedValue:L?I:X.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let G=null;const Z=()=>{if(!G){let X;q?X=q:B?X="view":X="unknown",G={validationError:$??M(I),source:X},B&&(G.shortcut=B)}return G};V&&T(I,Z()),L&&u&&u(I,Z()),U&&_(!1)});O!==P.lastExternalValue&&k(I=>E({},I,{lastExternalValue:O,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const A=Ee((I,N="partial")=>{if(N==="shallow"){k(j=>E({},j,{clockShallowValue:I,hasBeenModifiedSinceMount:!0}));return}D(I,{changeImportance:N==="finish"&&d?"accept":"set",source:"view"})});S.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");k(I=>E({},I,{open:f}))}},[y,f]);const F=S.useMemo(()=>r.cleanValue(v,P.clockShallowValue===void 0?O:P.clockShallowValue),[v,r,P.clockShallowValue,O]);return{timezone:C,state:P,setValue:D,setValueFromView:A,setOpen:_,value:O,viewValue:F}}const Ahe=["className","sx"],X3=({ref:e,props:t,valueManager:r,valueType:o,variant:i,validator:s,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:p,view:h,openTo:b,onViewChange:g,viewRenderers:y,reduceAnimations:v,orientation:C,disableOpenPicker:O,closeOnSelect:T,disabled:P,readOnly:k,formatDensity:M,enableAccessibleFieldDOMStructure:_,selectedSections:D,onSelectedSectionsChange:A,format:F,label:I,autoFocus:N,name:j}=t,{className:H,sx:$}=t,B=ye(t,Ahe),q=Ht(),U=Zt(),V=F3(v),L=Rhe(p,C),{current:G}=S.useRef(b??null),[Z,X]=S.useState(null),J=S.useRef(null),te=S.useRef(null),ce=S.useRef(null),me=Lt(e,ce),{timezone:re,state:se,setOpen:le,setValue:Q,setValueFromView:Ce,value:ge,viewValue:Se}=Mhe({props:t,valueManager:r,validator:s}),{view:xe,setView:W,defaultView:K,focusedView:ne,setFocusedView:ae,setValueAndGoToNextView:de,goToNextStep:pe,hasNextStep:Pe,hasSeveralSteps:Me}=km({view:h,views:p,openTo:b,onChange:Ce,onViewChange:g,autoFocus:l,getStepNavigation:f}),ze=Ee(()=>Q(r.emptyValue,{source:"view"})),We=Ee(()=>Q(r.getTodayValue(U,re,o),{source:"view"})),ut=Ee(()=>Q(ge,{source:"view"})),St=Ee(()=>Q(se.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Fe=Ee(()=>{Q(ge,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Xe,viewModeLookup:Ae,timeViewsCount:Qe}=S.useMemo(()=>p.reduce((gt,Cn)=>{const mt=y[Cn]==null?"field":"UI";return gt.viewModeLookup[Cn]=mt,mt==="UI"&&(gt.hasUIView=!0,uu(Cn)&&(gt.timeViewsCount+=1)),gt},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),st=Ae[xe],yt=Ee(()=>st),[$t,cn]=S.useState(st==="UI"?xe:null);$t!==xe&&Ae[xe]==="UI"&&cn(xe),Mt(()=>{st==="field"&&se.open&&(le(!1),setTimeout(()=>{te?.current?.setSelectedSections(xe),te?.current?.focusField(xe)}))},[xe]),Mt(()=>{if(!se.open)return;let gt=xe;st==="field"&&$t!=null&&(gt=$t),gt!==K&&Ae[gt]==="UI"&&Ae[K]==="UI"&&(gt=K),gt!==xe&&W(gt),ae(gt,!0)},[se.open]);const Ct=S.useMemo(()=>({isPickerValueEmpty:r.areValuesEqual(U,ge,r.emptyValue),isPickerOpen:se.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:L,pickerVariant:i}),[U,r,ge,se.open,L,i,t.disabled,t.readOnly]),tt=S.useMemo(()=>O||!Xe?"hidden":P||k?"disabled":"enabled",[O,Xe,P,k]),vt=Ee(pe),zt=S.useMemo(()=>T&&!Me?[]:["cancel","nextOrAccept"],[T,Me]),Sn=S.useMemo(()=>({setValue:Q,setOpen:le,clearValue:ze,setValueToToday:We,acceptValueChanges:ut,cancelValueChanges:St,setView:W,goToNextStep:vt}),[Q,le,ze,We,ut,St,W,vt]),dn=S.useMemo(()=>E({},Sn,{value:ge,timezone:re,open:se.open,views:p,view:$t,initialView:G,disabled:P??!1,readOnly:k??!1,autoFocus:N??!1,variant:i,orientation:L,popupRef:J,reduceAnimations:V,triggerRef:X,triggerStatus:tt,hasNextStep:Pe,fieldFormat:F??"",name:j,label:I,rootSx:$,rootRef:me,rootClassName:H}),[Sn,ge,me,i,L,V,P,k,F,H,j,I,$,tt,Pe,re,se.open,$t,p,G,N]),Dr=S.useMemo(()=>({dismissViews:Fe,ownerState:Ct,hasUIView:Xe,getCurrentViewMode:yt,rootRefObject:ce,labelId:q,triggerElement:Z,viewContainerRole:d,defaultActionBarActions:zt,onPopperExited:a}),[Fe,Ct,Xe,yt,q,Z,d,zt,a]),ar=S.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:_,selectedSections:D,onSelectedSectionsChange:A,fieldRef:te}),[M,_,D,A,te]);return{providerProps:{localeText:u,contextValue:dn,privateContextValue:Dr,actionsContextValue:Sn,fieldPrivateContextValue:ar,isValidContextValue:gt=>{const Cn=s({adapter:U,value:gt,timezone:re,props:t});return!r.hasError(Cn)}},renderCurrentView:()=>{if($t==null)return null;const gt=y[$t];if(gt==null)return null;const Cn=E({},B,{views:p,timezone:re,value:Se,onChange:de,view:$t,onViewChange:W,showViewSwitcher:Qe>1,timeViewsCount:Qe},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ne,onFocusedViewChange:ae});return c?w.jsx(c,{viewRenderers:y,popperView:$t,rendererProps:Cn}):gt(Cn)},ownerState:Ct}};function Q3(e){return Je("MuiPickersLayout",e)}const Ys=Ze("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Dhe(e){return Je("MuiButton",e)}const _c=Ze("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),J3=S.createContext({});process.env.NODE_ENV!=="production"&&(J3.displayName="ButtonGroupContext");const e5=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(e5.displayName="ButtonGroupButtonContext");const _he=e=>{const{color:t,disableElevation:r,fullWidth:o,size:i,variant:s,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",s,`${s}${De(t)}`,`size${De(i)}`,`${s}Size${De(i)}`,`color${De(t)}`,r&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${De(l)}`],startIcon:["icon","startIcon",`iconSize${De(i)}`],endIcon:["icon","endIcon",`iconSize${De(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ie(u,Dhe,c);return{...c,...d}},t5=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nhe=ie(na,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${De(r.color)}`],t[`size${De(r.size)}`],t[`${r.variant}Size${De(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${_c.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${_c.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${_c.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${_c.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ur()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_c.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_c.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${_c.loading}`]:{color:"transparent"}}}]}})),Fhe=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${De(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...t5]})),Lhe=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${De(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...t5]})),$he=ie("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),tL=ie("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),xs=S.forwardRef(function(t,r){const o=S.useContext(J3),i=S.useContext(e5),s=ol(o,t),a=Dt({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:b,focusVisibleClassName:g,fullWidth:y=!1,id:v,loading:C=null,loadingIndicator:O,loadingPosition:T="center",size:P="medium",startIcon:k,type:M,variant:_="text",...D}=a,A=Ht(v),F=O??w.jsx(j0,{"aria-labelledby":A,color:"inherit",size:16}),I={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:C,loadingIndicator:F,loadingPosition:T,size:P,type:M,variant:_},N=_he(I),j=(k||C&&T==="start")&&w.jsx(Fhe,{className:N.startIcon,ownerState:I,children:k||w.jsx(tL,{className:N.loadingIconPlaceholder,ownerState:I})}),H=(b||C&&T==="end")&&w.jsx(Lhe,{className:N.endIcon,ownerState:I,children:b||w.jsx(tL,{className:N.loadingIconPlaceholder,ownerState:I})}),$=i||"",B=typeof C=="boolean"?w.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:C&&w.jsx($he,{className:N.loadingIndicator,ownerState:I,children:F})}):null;return w.jsxs(Nhe,{ownerState:I,className:Te(o.className,N.root,d,$),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:Te(N.focusVisible,g),ref:r,type:M,id:C?A:v,...D,classes:N,children:[j,T!=="end"&&B,l,T==="end"&&B,H]})});process.env.NODE_ENV!=="production"&&(xs.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","success","error","info","warning"]),n.string]),component:n.elementType,disabled:n.bool,disableElevation:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,endIcon:n.node,focusVisibleClassName:n.string,fullWidth:n.bool,href:n.string,id:n.string,loading:n.bool,loadingIndicator:n.node,loadingPosition:n.oneOf(["center","end","start"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),startIcon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string]),variant:n.oneOfType([n.oneOf(["contained","outlined","text"]),n.string])});function jhe(e){return Je("MuiDialogActions",e)}Ze("MuiDialogActions",["root","spacing"]);const Bhe=e=>{const{classes:t,disableSpacing:r}=e;return Ie({root:["root",!r&&"spacing"]},jhe,t)},Vhe=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),n5=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=o,l={...o,disableSpacing:s},c=Bhe(l);return w.jsx(Vhe,{className:Te(c.root,i),ownerState:l,ref:r,...a})});process.env.NODE_ENV!=="production"&&(n5.propTypes={children:n.node,classes:n.object,className:n.string,disableSpacing:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Hhe=["actions"],zhe=ie(n5,{name:"MuiPickersLayout",slot:"ActionBar"})({});function r5(e){const{actions:t}=e,r=ye(e,Hhe),o=Io(),{clearValue:i,setValueToToday:s,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Ea();if(t==null||t.length===0)return null;const d=t?.map(f=>{switch(f){case"clear":return w.jsx(xs,{onClick:i,children:o.clearButtonLabel},f);case"cancel":return w.jsx(xs,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return w.jsx(xs,{onClick:a,children:o.okButtonLabel},f);case"today":return w.jsx(xs,{onClick:s,children:o.todayButtonLabel},f);case"next":return w.jsx(xs,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?w.jsx(xs,{onClick:c,children:o.nextStepButtonLabel},f):w.jsx(xs,{onClick:a,children:o.okButtonLabel},f);default:return null}});return w.jsx(zhe,E({},r,{children:d}))}process.env.NODE_ENV!=="production"&&(r5.propTypes={actions:n.arrayOf(n.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const o5=S.memo(r5);process.env.NODE_ENV!=="production"&&(o5.displayName="PickersActionBar");function qhe(e){return Je("MuiListItem",e)}Ze("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Uhe=Ze("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ghe(e){return Je("MuiListItemSecondaryAction",e)}Ze("MuiListItemSecondaryAction",["root","disableGutters"]);const Whe=e=>{const{disableGutters:t,classes:r}=e;return Ie({root:["root",t&&"disableGutters"]},Ghe,r)},Khe=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),bI=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...s}=o,a=S.useContext(ya),l={...o,disableGutters:a.disableGutters},c=Whe(l);return w.jsx(Khe,{className:Te(c.root,i),ownerState:l,ref:r,...s})});process.env.NODE_ENV!=="production"&&(bI.propTypes={children:n.node,classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});bI.muiName="ListItemSecondaryAction";const Yhe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},Zhe=e=>{const{alignItems:t,classes:r,dense:o,disableGutters:i,disablePadding:s,divider:a,hasSecondaryAction:l}=e;return Ie({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},qhe,r)},Xhe=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:Yhe})(Tt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Uhe.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Qhe=ie("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),i5=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiListItem"}),{alignItems:i="center",children:s,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:b=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:v,slotProps:C={},slots:O={},...T}=o,P=S.useContext(ya),k=S.useMemo(()=>({dense:h||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,h,b]),M=S.useRef(null),_=S.Children.toArray(s),D=_.length&&nf(_[_.length-1],["ListItemSecondaryAction"]),A={...o,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:g,divider:y,hasSecondaryAction:D},F=Zhe(A),I=Lt(M,r),N={slots:O,slotProps:C},[j,H]=At("secondaryAction",{elementType:bI,externalForwardedProps:N,ownerState:A,className:F.secondaryAction}),$=O.root||c.Root||Xhe,B=C.root||u.root||{},q={className:Te(F.root,B.className,a),...T};let U=l||"li";return D?(U=!q.component&&!l?"div":U,d==="li"&&(U==="li"?U="div":q.component==="li"&&(q.component="div")),w.jsx(ya.Provider,{value:k,children:w.jsxs(Qhe,{as:d,className:Te(F.container,f),ref:I,ownerState:A,...p,children:[w.jsx($,{...B,...!gf($)&&{as:U,ownerState:{...A,...B.ownerState}},...q,children:_}),_.pop()]})})):w.jsx(ya.Provider,{value:k,children:w.jsxs($,{...B,as:U,ref:I,...!gf($)&&{ownerState:{...A,...B.ownerState}},...q,children:[_,v&&w.jsx(j,{...H,children:v})]})})});process.env.NODE_ENV!=="production"&&(i5.propTypes={alignItems:n.oneOf(["center","flex-start"]),children:Ms(n.node,e=>{const t=S.Children.toArray(e.children);let r=-1;for(let o=t.length-1;o>=0;o-=1){const i=t[o];if(nf(i,["ListItemSecondaryAction"])){r=o;break}}return r!==-1&&r!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:n.object,className:n.string,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.object}),ContainerComponent:P0,ContainerProps:n.object,dense:n.bool,disableGutters:n.bool,disablePadding:n.bool,divider:n.bool,secondaryAction:n.node,slotProps:n.shape({root:n.object,secondaryAction:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType,secondaryAction:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Jhe=Pr(w.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function eme(e){return Je("MuiChip",e)}const pn=Ze("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),tme=e=>{const{classes:t,disabled:r,size:o,color:i,iconColor:s,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled",`size${De(o)}`,`color${De(i)}`,l&&"clickable",l&&`clickableColor${De(i)}`,a&&"deletable",a&&`deletableColor${De(i)}`,`${c}${De(i)}`],label:["label",`label${De(o)}`],avatar:["avatar",`avatar${De(o)}`,`avatarColor${De(i)}`],icon:["icon",`icon${De(o)}`,`iconColor${De(s)}`],deleteIcon:["deleteIcon",`deleteIcon${De(o)}`,`deleteIconColor${De(i)}`,`deleteIcon${De(c)}Color${De(i)}`]};return Ie(u,eme,t)},nme=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:o,iconColor:i,clickable:s,onDelete:a,size:l,variant:c}=r;return[{[`& .${pn.avatar}`]:t.avatar},{[`& .${pn.avatar}`]:t[`avatar${De(l)}`]},{[`& .${pn.avatar}`]:t[`avatarColor${De(o)}`]},{[`& .${pn.icon}`]:t.icon},{[`& .${pn.icon}`]:t[`icon${De(l)}`]},{[`& .${pn.icon}`]:t[`iconColor${De(i)}`]},{[`& .${pn.deleteIcon}`]:t.deleteIcon},{[`& .${pn.deleteIcon}`]:t[`deleteIcon${De(l)}`]},{[`& .${pn.deleteIcon}`]:t[`deleteIconColor${De(o)}`]},{[`& .${pn.deleteIcon}`]:t[`deleteIcon${De(c)}Color${De(o)}`]},t.root,t[`size${De(l)}`],t[`color${De(o)}`],s&&t.clickable,s&&o!=="default"&&t[`clickableColor${De(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${De(o)}`],t[c],t[`${c}${De(o)}`]]}})(Tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${pn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${pn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${pn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${pn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${pn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${pn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${pn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${pn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${pn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(ur(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${pn.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${pn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${pn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${pn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(ur(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${pn.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${pn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(ur(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${pn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${pn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${pn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${pn.avatar}`]:{marginLeft:4},[`& .${pn.avatarSmall}`]:{marginLeft:2},[`& .${pn.icon}`]:{marginLeft:4},[`& .${pn.iconSmall}`]:{marginLeft:2},[`& .${pn.deleteIcon}`]:{marginRight:5},[`& .${pn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(ur()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${pn.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${pn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${pn.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),rme=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${De(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function nL(e){return e.key==="Backspace"||e.key==="Delete"}const Zf=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiChip"}),{avatar:i,className:s,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:h,onDelete:b,onKeyDown:g,onKeyUp:y,size:v="medium",variant:C="filled",tabIndex:O,skipFocusWhenDisabled:T=!1,slots:P={},slotProps:k={},...M}=o,_=S.useRef(null),D=Lt(_,r),A=te=>{te.stopPropagation(),b(te)},F=te=>{te.currentTarget===te.target&&nL(te)&&te.preventDefault(),g&&g(te)},I=te=>{te.currentTarget===te.target&&b&&nL(te)&&b(te),y&&y(te)},N=a!==!1&&h?!0:a,j=N||b?na:c||"div",H={...o,component:j,disabled:d,size:v,color:l,iconColor:S.isValidElement(f)&&f.props.color||l,onDelete:!!b,clickable:N,variant:C},$=tme(H),B=j===na?{component:c||"div",focusVisibleClassName:$.focusVisible,...b&&{disableRipple:!0}}:{};let q=null;b&&(q=u&&S.isValidElement(u)?S.cloneElement(u,{className:Te(u.props.className,$.deleteIcon),onClick:A}):w.jsx(Jhe,{className:$.deleteIcon,onClick:A}));let U=null;i&&S.isValidElement(i)&&(U=S.cloneElement(i,{className:Te($.avatar,i.props.className)}));let V=null;f&&S.isValidElement(f)&&(V=S.cloneElement(f,{className:Te($.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&U&&V&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const L={slots:P,slotProps:k},[G,Z]=At("root",{elementType:nme,externalForwardedProps:{...L,...M},ownerState:H,shouldForwardComponentProp:!0,ref:D,className:Te($.root,s),additionalProps:{disabled:N&&d?!0:void 0,tabIndex:T&&d?-1:O,...B},getSlotProps:te=>({...te,onClick:ce=>{te.onClick?.(ce),h?.(ce)},onKeyDown:ce=>{te.onKeyDown?.(ce),F(ce)},onKeyUp:ce=>{te.onKeyUp?.(ce),I(ce)}})}),[X,J]=At("label",{elementType:rme,externalForwardedProps:L,ownerState:H,className:$.label});return w.jsxs(G,{as:j,...Z,children:[U||V,w.jsx(X,{...J,children:p}),q]})});process.env.NODE_ENV!=="production"&&(Zf.propTypes={avatar:n.element,children:Sq,classes:n.object,className:n.string,clickable:n.bool,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,deleteIcon:n.element,disabled:n.bool,icon:n.element,label:n.node,onClick:n.func,onDelete:n.func,onKeyDown:n.func,onKeyUp:n.func,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),skipFocusWhenDisabled:n.bool,slotProps:n.shape({label:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({label:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,variant:n.oneOfType([n.oneOf(["filled","outlined"]),n.string])});const ome=["items","changeImportance"],ime=["getValue"],sme=ie(xE,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function s5(e){const{items:t,changeImportance:r="accept"}=e,o=ye(e,ome),{setValue:i}=ule(),s=cle();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=ye(l,ime);const d=c({isValid:s});return E({},u,{label:u.label,onClick:()=>{i(d,{changeImportance:r,shortcut:u,source:"view"})},disabled:!s(d)})});return w.jsx(sme,E({dense:!0,sx:[{maxHeight:xf,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>w.jsx(i5,{children:w.jsx(Zf,E({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(s5.propTypes={changeImportance:n.oneOf(["accept","set"]),className:n.string,component:n.elementType,dense:n.bool,disablePadding:n.bool,items:n.arrayOf(n.shape({getValue:n.func.isRequired,id:n.string,label:n.string.isRequired})),style:n.object,subheader:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const ame=["ownerState"];function lme(e){return e.view!==null}const cme=(e,t)=>{const{pickerOrientation:r}=t;return Ie({root:["root",r==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Q3,e)},a5=e=>{const{ownerState:t,defaultActionBarActions:r}=fr(),{view:o}=Ea(),i=In(),{children:s,slots:a,slotProps:l,classes:c}=e,u=S.useMemo(()=>E({},t,{layoutDirection:i?"rtl":"ltr",hasShortcuts:!1}),[t,i]),d=cme(c,u),f=a?.actionBar??o5,p=Ut({elementType:f,externalSlotProps:l?.actionBar,additionalProps:{actions:r},className:d.actionBar,ownerState:u}),h=ye(p,ame),b=w.jsx(f,E({},h)),g=a?.toolbar,y=Ut({elementType:g,externalSlotProps:l?.toolbar,className:d.toolbar,ownerState:u}),v=lme(y)&&g?w.jsx(g,E({},y)):null,C=s,O=a?.tabs,T=o&&O?w.jsx(O,E({className:d.tabs},l?.tabs)):null,P=a?.shortcuts??s5,k=Ut({elementType:P,externalSlotProps:l?.shortcuts,className:d.shortcuts,ownerState:u}),M=Array.isArray(k?.items)&&k.items.length>0,_=o&&P?w.jsx(P,E({},k)):null;return{toolbar:v,content:C,tabs:T,actionBar:b,shortcuts:_,ownerState:E({},u,{hasShortcuts:M})}},ume=(e,t)=>{const{pickerOrientation:r}=t;return Ie({root:["root",r==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Q3,e)},l5=ie("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Ys.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Ys.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Ys.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Ys.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Ys.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Ys.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Ys.shortcuts}`]:{gridColumn:4}}}]}),c5=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),oS=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiPickersLayout"}),{toolbar:i,content:s,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=a5(o),{orientation:d,variant:f}=Ea(),{sx:p,className:h,classes:b}=o,g=ume(b,u);return w.jsxs(l5,{ref:r,sx:p,className:Te(g.root,h),ownerState:u,children:[d==="landscape"?c:i,d==="landscape"?i:c,w.jsx(c5,{className:g.contentWrapper,ownerState:u,children:f==="desktop"?w.jsxs(S.Fragment,{children:[s,a]}):w.jsxs(S.Fragment,{children:[a,s]})}),l]})});process.env.NODE_ENV!=="production"&&(oS.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(oS.propTypes={children:n.node,classes:n.object,className:n.string,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function u5(e){const{steps:t}=e;return Qle({steps:t,isViewMatchingStep:(r,o)=>o.views==null||o.views.includes(r),onStepChange:({step:r,defaultView:o,setView:i,view:s,views:a})=>{const l=r.views==null?o:r.views.find(c=>a.includes(c));l!==s&&i(l)}})}const dme=["props","steps"],fme=["ownerState"],yI=e=>{let{props:t,steps:r}=e,o=ye(e,dme);const{slots:i,slotProps:s,label:a,inputRef:l,localeText:c}=t,u=u5({steps:r}),{providerProps:d,renderCurrentView:f,ownerState:p}=X3(E({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,b=s?.toolbar?.hidden??!1,g=i.field,y=Ut({elementType:g,externalSlotProps:s?.field,additionalProps:E({},b&&{id:h}),ownerState:p}),v=ye(y,fme),C=i.layout??oS;let O=h;b&&(a?O=`${h}-label`:O=void 0);const T=E({},s,{toolbar:E({},s?.toolbar,{titleId:h}),popper:E({"aria-labelledby":O},s?.popper)}),P=()=>w.jsxs(Qq,E({},d,{children:[w.jsx(g,E({},v,{slots:E({},i,v.slots),slotProps:E({},T,v.slotProps),inputRef:l})),w.jsx(khe,{slots:i,slotProps:T,children:w.jsx(C,E({},T?.layout,{slots:i,slotProps:T,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(P.displayName="renderPicker"),{renderPicker:P}},Gi=({view:e,onViewChange:t,views:r,focusedView:o,onFocusedViewChange:i,value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:b,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:C,onMonthChange:O,monthsPerRow:T,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:_,slotProps:D,loading:A,renderLoading:F,disableHighlightToday:I,readOnly:N,disabled:j,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:$,sx:B,autoFocus:q,fixedWeekNumber:U,displayWeekNumber:V,timezone:L})=>w.jsx(lI,{view:e,onViewChange:t,views:r.filter(yf),focusedView:o&&yf(o)?o:null,onFocusedViewChange:i,value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:b,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:C,onMonthChange:O,monthsPerRow:T,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:_,slotProps:D,loading:A,renderLoading:F,disableHighlightToday:I,readOnly:N,disabled:j,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:$,sx:B,autoFocus:q,fixedWeekNumber:U,displayWeekNumber:V,timezone:L});process.env.NODE_ENV!=="production"&&(Gi.displayName="renderDateViewCalendar");const iS=S.forwardRef(function(t,r){const o=Zt(),i=j3(t,"MuiDesktopDatePicker"),s=E({day:Gi,month:Gi,year:Gi},i.viewRenderers),a=E({},i,{closeOnSelect:i.closeOnSelect??!0,viewRenderers:s,format:jh(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:E({field:X0},i.slots),slotProps:E({},i.slotProps,{field:c=>E({},Vo(i.slotProps?.field,c),Wf(i)),toolbar:E({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:l}=yI({ref:r,props:a,valueManager:Ar,valueType:"date",validator:Yf,steps:null});return l()});process.env.NODE_ENV!=="production"&&(iS.displayName="DesktopDatePicker");iS.propTypes={autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,minDate:n.object,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","month","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["day","month","year"]),viewRenderers:n.shape({day:n.func,month:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","month","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};function pme(e){return Je("MuiDialogContent",e)}Ze("MuiDialogContent",["root","dividers"]);const hme=Ze("MuiDialogTitle",["root"]),mme=e=>{const{classes:t,dividers:r}=e;return Ie({root:["root",r&&"dividers"]},pme,t)},gme=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Tt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${hme.root} + &`]:{paddingTop:0}}}]}))),d5=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=o,l={...o,dividers:s},c=mme(l);return w.jsx(gme,{className:Te(c.root,i),ownerState:l,ref:r,...a})});process.env.NODE_ENV!=="production"&&(d5.propTypes={children:n.node,classes:n.object,className:n.string,dividers:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function bme(e){return Je("MuiDialog",e)}const xh=Ze("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),f5=S.createContext({});process.env.NODE_ENV!=="production"&&(f5.displayName="DialogContext");const yme=ie(TE,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),vme=e=>{const{classes:t,scroll:r,maxWidth:o,fullWidth:i,fullScreen:s}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${De(r)}`],paper:["paper",`paperScroll${De(r)}`,`paperWidth${De(String(o))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return Ie(a,bme,t)},xme=ie(OE,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Sme=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${De(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Cme=ie(uc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${De(r.scroll)}`],t[`paperWidth${De(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Tt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${xh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${xh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),p5=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiDialog"}),i=vr(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:v,onClose:C,open:O,PaperComponent:T=uc,PaperProps:P={},scroll:k="paper",slots:M={},slotProps:_={},TransitionComponent:D=tc,transitionDuration:A=s,TransitionProps:F,...I}=o,N={...o,disableEscapeKeyDown:h,fullScreen:b,fullWidth:g,maxWidth:y,scroll:k},j=vme(N),H=S.useRef(),$=Ce=>{H.current=Ce.target===Ce.currentTarget},B=Ce=>{v&&v(Ce),H.current&&(H.current=null,C&&C(Ce,"backdropClick"))},q=Ht(l),U=S.useMemo(()=>({titleId:q}),[q]),V={transition:D,...M},L={transition:F,paper:P,backdrop:d,..._},G={slots:V,slotProps:L},[Z,X]=At("root",{elementType:xme,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:N,className:Te(j.root,p),ref:r}),[J,te]=At("backdrop",{elementType:yme,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:N,className:j.backdrop}),[ce,me]=At("paper",{elementType:Cme,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:N,className:Te(j.paper,P.className)}),[re,se]=At("container",{elementType:Sme,externalForwardedProps:G,ownerState:N,className:j.container}),[le,Q]=At("transition",{elementType:tc,externalForwardedProps:G,ownerState:N,additionalProps:{appear:!0,in:O,timeout:A,role:"presentation"}});return w.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:J},slotProps:{backdrop:{transitionDuration:A,as:u,...te}},disableEscapeKeyDown:h,onClose:C,open:O,onClick:B,...X,...I,children:w.jsx(le,{...Q,children:w.jsx(re,{onMouseDown:$,...se,children:w.jsx(ce,{as:T,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":q,"aria-modal":c,...me,children:w.jsx(f5.Provider,{value:U,children:f})})})})})});process.env.NODE_ENV!=="production"&&(p5.propTypes={"aria-describedby":n.string,"aria-labelledby":n.string,"aria-modal":n.oneOfType([n.oneOf(["false","true"]),n.bool]),BackdropComponent:n.elementType,BackdropProps:n.object,children:n.node,classes:n.object,className:n.string,disableEscapeKeyDown:n.bool,fullScreen:n.bool,fullWidth:n.bool,maxWidth:n.oneOfType([n.oneOf(["xs","sm","md","lg","xl",!1]),n.string]),onClick:n.func,onClose:n.func,open:n.bool.isRequired,PaperComponent:n.elementType,PaperProps:n.object,scroll:n.oneOf(["body","paper"]),slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),container:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,container:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object});const wme=ie(p5,{slot:"internal"})({[`& .${xh.container}`]:{outline:0},[`& .${xh.paper}`]:{outline:0,minWidth:vf}}),Tme=ie(d5,{slot:"internal"})({"&:first-of-type":{padding:0}});function Ome(e){const{children:t,slots:r,slotProps:o}=e,{open:i}=Ea(),{dismissViews:s,onPopperExited:a}=fr(),l=r?.dialog??wme,c=r?.mobileTransition??tc;return w.jsx(l,E({open:i,onClose:()=>{s(),a?.()}},o?.dialog,{TransitionComponent:c,TransitionProps:o?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:o?.mobilePaper,children:w.jsx(Tme,{children:t})}))}const Pme=["props","steps"],Eme=["ownerState"],vI=e=>{let{props:t,steps:r}=e,o=ye(e,Pme);const{slots:i,slotProps:s,label:a,inputRef:l,localeText:c}=t,u=u5({steps:r}),{providerProps:d,renderCurrentView:f,ownerState:p}=X3(E({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,b=s?.toolbar?.hidden??!1,g=i.field,y=Ut({elementType:g,externalSlotProps:s?.field,additionalProps:E({},b&&{id:h}),ownerState:p}),v=ye(y,Eme),C=i.layout??oS;let O=h;b&&(a?O=`${h}-label`:O=void 0);const T=E({},s,{toolbar:E({},s?.toolbar,{titleId:h}),mobilePaper:E({"aria-labelledby":O},s?.mobilePaper)}),P=()=>w.jsxs(Qq,E({},d,{children:[w.jsx(g,E({},v,{slots:E({},i,v.slots),slotProps:E({},T,v.slotProps),inputRef:l})),w.jsx(Ome,{slots:i,slotProps:T,children:w.jsx(C,E({},T?.layout,{slots:i,slotProps:T,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(P.displayName="renderPicker"),{renderPicker:P}},sS=S.forwardRef(function(t,r){const o=Zt(),i=j3(t,"MuiMobileDatePicker"),s=E({day:Gi,month:Gi,year:Gi},i.viewRenderers),a=E({},i,{viewRenderers:s,format:jh(o,i,!1),slots:E({field:X0},i.slots),slotProps:E({},i.slotProps,{field:c=>E({},Vo(i.slotProps?.field,c),Wf(i)),toolbar:E({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:l}=vI({ref:r,props:a,valueManager:Ar,valueType:"date",validator:Yf,steps:null});return l()});process.env.NODE_ENV!=="production"&&(sS.displayName="MobileDatePicker");sS.propTypes={autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,minDate:n.object,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","month","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["day","month","year"]),viewRenderers:n.shape({day:n.func,month:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","month","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};const Ime=["desktopModeMediaQuery"],xI=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=UE}=o,s=ye(o,Ime);return Dm(i,{defaultMatches:!0})?w.jsx(iS,E({ref:r},s)):w.jsx(sS,E({ref:r},s))});process.env.NODE_ENV!=="production"&&(xI.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(xI.propTypes={autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,desktopModeMediaQuery:n.string,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,minDate:n.object,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","month","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["day","month","year"]),viewRenderers:n.shape({day:n.func,month:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","month","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])});function kme(e){return Je("MuiPickersToolbarText",e)}const Rme=Ze("MuiPickersToolbarText",["root"]),Mme=["className","classes","selected","value"],Ame=e=>Ie({root:["root"]},kme,e),Dme=ie($r,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),aS=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiPickersToolbarText"}),{className:i,classes:s,selected:a,value:l}=o,c=ye(o,Mme),u=Ame(s);return w.jsx(Dme,E({ref:r,className:Te(u.root,i),component:"span",ownerState:o},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(aS.displayName="PickersToolbarText");const _me=["align","className","classes","selected","typographyClassName","value","variant","width"],Nme=e=>Ie({root:["root"]},$3,e),Fme=ie(xs,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),xi=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:s,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:f}=o,p=ye(o,_me),h=Nme(a);return w.jsx(Fme,E({variant:"text",ref:r,className:Te(h.root,s),ownerState:o},f?{sx:{width:f}}:{},p,{children:w.jsx(aS,{align:i,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(xi.displayName="PickersToolbarButton");function Lme(e){return Je("MuiTimePickerToolbar",e)}const Sh=Ze("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),$me=["ampm","ampmInClock","className","classes"],jme=(e,t)=>{const{pickerOrientation:r,toolbarDirection:o}=t;return Ie({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Lme,e)},Bme=ie(tS,{name:"MuiTimePickerToolbar",slot:"Root"})({}),Vme=ie(aS,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Hme=ie("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Sh.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Sh.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),zme=ie("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Sh.ampmLabel}`]:t.ampmLabel},{[`&.${Sh.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Sh.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function h5(e){const t=_t({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:o,className:i,classes:s}=t,a=ye(t,$me),l=Zt(),c=Io(),u=eS(),d=jme(s,u),{value:f,setValue:p,disabled:h,readOnly:b,view:g,setView:y,views:v}=Ea(),C=!!(r&&!o&&v.includes("hours")),{meridiemMode:O,handleMeridiemChange:T}=B0(f,r,M=>p(M,{changeImportance:"set",source:"view"})),P=M=>l.isValid(f)?l.format(f,M):"--",k=w.jsx(Vme,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return w.jsxs(Bme,E({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:Te(d.root,i)},a,{children:[w.jsxs(Hme,{className:d.hourMinuteLabel,ownerState:u,children:[Bd(v,"hours")&&w.jsx(xi,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:g==="hours",value:P(r?"hours12h":"hours24h")}),Bd(v,["hours","minutes"])&&k,Bd(v,"minutes")&&w.jsx(xi,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:g==="minutes",value:P("minutes")}),Bd(v,["minutes","seconds"])&&k,Bd(v,"seconds")&&w.jsx(xi,{variant:"h3",onClick:()=>y("seconds"),selected:g==="seconds",value:P("seconds")})]}),C&&w.jsxs(zme,{className:d.ampmSelection,ownerState:u,children:[w.jsx(xi,{disableRipple:!0,variant:"subtitle2",selected:O==="am",typographyClassName:d.ampmLabel,value:Js(l,"am"),onClick:b?void 0:()=>T("am"),disabled:h}),w.jsx(xi,{disableRipple:!0,variant:"subtitle2",selected:O==="pm",typographyClassName:d.ampmLabel,value:Js(l,"pm"),onClick:b?void 0:()=>T("pm"),disabled:h})]})]}))}process.env.NODE_ENV!=="production"&&(h5.propTypes={ampm:n.bool,ampmInClock:n.bool,classes:n.object,className:n.string,hidden:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleId:n.string,toolbarFormat:n.string,toolbarPlaceholder:n.node});function m5(e,t){const r=Zt(),o=_t({props:e,name:t}),i=C3(o),s=o.ampm??r.is12HourCycleInCurrentLocale(),a=S.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:E({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return E({},o,i,{ampm:s,localeText:a},kE({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:E({toolbar:h5},o.slots),slotProps:E({},o.slotProps,{toolbar:E({ampm:s,ampmInClock:o.ampmInClock},o.slotProps?.toolbar)})})}const Nv=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:i,value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:b,shouldDisableTime:g,minutesStep:y,ampm:v,ampmInClock:C,slots:O,slotProps:T,readOnly:P,disabled:k,sx:M,autoFocus:_,showViewSwitcher:D,disableIgnoringDatePartForTimeValidation:A,timezone:F})=>w.jsx(qE,{view:e,onViewChange:t,focusedView:r&&uu(r)?r:null,onFocusedViewChange:o,views:i.filter(uu),value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:b,shouldDisableTime:g,minutesStep:y,ampm:v,ampmInClock:C,slots:O,slotProps:T,readOnly:P,disabled:k,sx:M,autoFocus:_,showViewSwitcher:D,disableIgnoringDatePartForTimeValidation:A,timezone:F});process.env.NODE_ENV!=="production"&&(Nv.displayName="renderTimeViewClock");const lS=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:i,value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:b,shouldDisableTime:g,minutesStep:y,ampm:v,slots:C,slotProps:O,readOnly:T,disabled:P,sx:k,autoFocus:M,disableIgnoringDatePartForTimeValidation:_,timeSteps:D,skipDisabled:A,timezone:F})=>w.jsx(GE,{view:e,onViewChange:t,focusedView:r&&uu(r)?r:null,onFocusedViewChange:o,views:i.filter(uu),value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:b,shouldDisableTime:g,minutesStep:y,ampm:v,slots:C,slotProps:O,readOnly:T,disabled:P,sx:k,autoFocus:M,disableIgnoringDatePartForTimeValidation:_,timeStep:D?.minutes,skipDisabled:A,timezone:F});process.env.NODE_ENV!=="production"&&(lS.displayName="renderDigitalClockTimeView");const pu=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:i,value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:b,shouldDisableTime:g,minutesStep:y,ampm:v,slots:C,slotProps:O,readOnly:T,disabled:P,sx:k,autoFocus:M,disableIgnoringDatePartForTimeValidation:_,timeSteps:D,skipDisabled:A,timezone:F})=>w.jsx(WE,{view:e,onViewChange:t,focusedView:r&&Ud(r)?r:null,onFocusedViewChange:o,views:i.filter(uu),value:s,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:b,shouldDisableTime:g,minutesStep:y,ampm:v,slots:C,slotProps:O,readOnly:T,disabled:P,sx:k,autoFocus:M,disableIgnoringDatePartForTimeValidation:_,timeSteps:D,skipDisabled:A,timezone:F});process.env.NODE_ENV!=="production"&&(pu.displayName="renderMultiSectionDigitalClockTimeView");const qme=["views","format"],g5=(e,t,r)=>{let{views:o,format:i}=t,s=ye(t,qme);if(i)return i;const a=[],l=[];if(o.forEach(d=>{uu(d)?l.push(d):yf(d)&&a.push(d)}),l.length===0)return jh(e,E({views:a},s),!1);if(a.length===0)return mx(e,E({views:l},s));const c=mx(e,E({views:l},s));return`${jh(e,E({views:a},s),!1)} ${c}`},Ume=(e,t,r)=>r?t.filter(o=>!Ud(o)||o==="hours"):e?[...t,"meridiem"]:t,Gme=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function b5({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:r,views:o}){const i=e??24,s=E({hours:1,minutes:5,seconds:5},r),a=Gme(s,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:s,shouldRenderTimeInASingleColumn:a,views:Ume(t,o,a)}}const cS=S.forwardRef(function(t,r){const o=Zt(),i=m5(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:s,views:a,timeSteps:l}=b5(i),c=s?lS:pu,u=E({hours:c,minutes:c,seconds:c,meridiem:c},i.viewRenderers),d=i.ampmInClock??!0,p=u.hours?.name===pu.name?a:a.filter(g=>g!=="meridiem"),h=E({},i,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:mx(o,i),views:s?["hours"]:p,slots:E({field:Q0},i.slots),slotProps:E({},i.slotProps,{field:g=>E({},Vo(i.slotProps?.field,g),Wf(i)),toolbar:E({hidden:!0,ampmInClock:d},i.slotProps?.toolbar)})}),{renderPicker:b}=yI({ref:r,props:h,valueManager:Ar,valueType:"time",validator:Rm,steps:null});return b()});process.env.NODE_ENV!=="production"&&(cS.displayName="DesktopTimePicker");cS.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,enableAccessibleFieldDOMStructure:n.any,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,localeText:n.object,maxTime:n.object,minTime:n.object,minutesStep:n.number,name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,open:n.bool,openTo:n.oneOf(["hours","meridiem","minutes","seconds"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableTime:n.func,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:n.shape({hours:n.func,meridiem:n.func,minutes:n.func,seconds:n.func}),views:n.arrayOf(n.oneOf(["hours","minutes","seconds"]).isRequired)};const uS=S.forwardRef(function(t,r){const o=Zt(),i=m5(t,"MuiMobileTimePicker"),s=E({hours:Nv,minutes:Nv,seconds:Nv},i.viewRenderers),a=i.ampmInClock??!1,l=E({},i,{ampmInClock:a,viewRenderers:s,format:mx(o,i),slots:E({field:Q0},i.slots),slotProps:E({},i.slotProps,{field:u=>E({},Vo(i.slotProps?.field,u),Wf(i)),toolbar:E({hidden:!1,ampmInClock:a},i.slotProps?.toolbar)})}),{renderPicker:c}=vI({ref:r,props:l,valueManager:Ar,valueType:"time",validator:Rm,steps:null});return c()});process.env.NODE_ENV!=="production"&&(uS.displayName="MobileTimePicker");uS.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,enableAccessibleFieldDOMStructure:n.any,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,localeText:n.object,maxTime:n.object,minTime:n.object,minutesStep:n.number,name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,open:n.bool,openTo:n.oneOf(["hours","minutes","seconds"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableTime:n.func,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["hours","minutes","seconds"]),viewRenderers:n.shape({hours:n.func,minutes:n.func,seconds:n.func}),views:n.arrayOf(n.oneOf(["hours","minutes","seconds"]).isRequired)};const Wme=["desktopModeMediaQuery"],SI=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=UE}=o,s=ye(o,Wme);return Dm(i,{defaultMatches:!0})?w.jsx(cS,E({ref:r},s)):w.jsx(uS,E({ref:r},s))});process.env.NODE_ENV!=="production"&&(SI.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(SI.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,defaultValue:n.object,desktopModeMediaQuery:n.string,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,enableAccessibleFieldDOMStructure:n.any,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,localeText:n.object,maxTime:n.object,minTime:n.object,minutesStep:n.number,name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,open:n.bool,openTo:n.oneOf(["hours","meridiem","minutes","seconds"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableTime:n.func,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:n.shape({hours:n.func,meridiem:n.func,minutes:n.func,seconds:n.func}),views:n.arrayOf(n.oneOf(["hours","minutes","seconds"]).isRequired)});function Kme(e){return Je("MuiTab",e)}const ds=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Yme=e=>{const{classes:t,textColor:r,fullWidth:o,wrapped:i,icon:s,label:a,selected:l,disabled:c}=e,u={root:["root",s&&a&&"labelIcon",`textColor${De(r)}`,o&&"fullWidth",i&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return Ie(u,Kme,t)},Zme=ie(na,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${De(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${ds.iconWrapper}`]:t.iconWrapper},{[`& .${ds.icon}`]:t.icon}]}})(Tt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${ds.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${ds.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${ds.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${ds.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ds.selected}`]:{opacity:1},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ds.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ds.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),vx=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiTab"}),{className:i,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:f,onChange:p,onClick:h,onFocus:b,selected:g,selectionFollowsFocus:y,textColor:v="inherit",value:C,wrapped:O=!1,...T}=o,P={...o,disabled:s,disableFocusRipple:a,selected:g,icon:!!c,iconPosition:u,label:!!f,fullWidth:l,textColor:v,wrapped:O},k=Yme(P),M=c&&f&&S.isValidElement(c)?S.cloneElement(c,{className:Te(k.icon,c.props.className)}):c,_=A=>{!g&&p&&p(A,C),h&&h(A)},D=A=>{y&&!g&&p&&p(A,C),b&&b(A)};return w.jsxs(Zme,{focusRipple:!a,className:Te(k.root,i),ref:r,role:"tab","aria-selected":g,disabled:s,onClick:_,onFocus:D,ownerState:P,tabIndex:g?0:-1,...T,children:[u==="top"||u==="start"?w.jsxs(S.Fragment,{children:[M,f]}):w.jsxs(S.Fragment,{children:[f,M]}),d]})});process.env.NODE_ENV!=="production"&&(vx.propTypes={children:Sq,classes:n.object,className:n.string,disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,icon:n.oneOfType([n.element,n.string]),iconPosition:n.oneOf(["bottom","end","start","top"]),label:n.node,onChange:n.func,onClick:n.func,onFocus:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any,wrapped:n.bool});function Xme(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Qme(e,t,r,o={},i=()=>{}){const{ease:s=Xme,duration:a=300}=o;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},f=p=>{if(u){i(new Error("Animation cancelled"));return}l===null&&(l=p);const h=Math.min(1,(p-l)/a);if(t[e]=s(h)*(r-c)+c,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return c===r?(i(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const Jme={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function y5(e){const{onChange:t,...r}=e,o=S.useRef(),i=S.useRef(null),s=()=>{o.current=i.current.offsetHeight-i.current.clientHeight};return Mt(()=>{const a=wa(()=>{const c=o.current;s(),c!==o.current&&t(o.current)}),l=As(i.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),S.useEffect(()=>{s(),t(o.current)},[t]),w.jsx("div",{style:Jme,...r,ref:i})}process.env.NODE_ENV!=="production"&&(y5.propTypes={onChange:n.func.isRequired});const v5=Pr(w.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),x5=Pr(w.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ege(e){return Je("MuiTabScrollButton",e)}const tge=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),nge=e=>{const{classes:t,orientation:r,disabled:o}=e;return Ie({root:["root",r,o&&"disabled"]},ege,t)},rge=ie(na,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${tge.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),S5=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:a={},direction:l,orientation:c,disabled:u,...d}=o,f=In(),p={isRtl:f,...o},h=nge(p),b=s.StartScrollButtonIcon??v5,g=s.EndScrollButtonIcon??x5,y=Ut({elementType:b,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),v=Ut({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return w.jsx(rge,{component:"div",className:Te(h.root,i),ref:r,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?w.jsx(b,{...y}):w.jsx(g,{...v})})});process.env.NODE_ENV!=="production"&&(S5.propTypes={children:n.node,classes:n.object,className:n.string,direction:n.oneOf(["left","right"]).isRequired,disabled:n.bool,orientation:n.oneOf(["horizontal","vertical"]).isRequired,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({EndScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function oge(e){return Je("MuiTabs",e)}const Fv=Ze("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,oL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,hb=(e,t,r)=>{let o=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(o)return;o=!0}const s=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||s)i=r(e,i);else{i.focus();return}}},ige=e=>{const{vertical:t,fixed:r,hideScrollbar:o,scrollableX:i,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Ie({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",i&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},oge,c)},sge=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Fv.scrollButtons}`]:t.scrollButtons},{[`& .${Fv.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Tt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Fv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),age=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),lge=ie("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),cge=ie("span",{name:"MuiTabs",slot:"Indicator"})(Tt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),uge=ie(y5)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),iL={};let sL=!1;const CI=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiTabs"}),i=vr(),s=In(),{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:f,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:b="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:v,scrollButtons:C="auto",selectionFollowsFocus:O,slots:T={},slotProps:P={},TabIndicatorProps:k={},TabScrollButtonProps:M={},textColor:_="primary",value:D,variant:A="standard",visibleScrollbar:F=!1,...I}=o,N=A==="scrollable",j=y==="vertical",H=j?"scrollTop":"scrollLeft",$=j?"top":"left",B=j?"bottom":"right",q=j?"clientHeight":"clientWidth",U=j?"height":"width",V={...o,component:p,allowScrollButtonsMobile:h,indicatorColor:b,orientation:y,vertical:j,scrollButtons:C,textColor:_,variant:A,visibleScrollbar:F,fixed:!N,hideScrollbar:N&&!F,scrollableX:N&&!j,scrollableY:N&&j,centered:u&&!N,scrollButtonsHideMobile:!h},L=ige(V),G=Ut({elementType:T.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:V}),Z=Ut({elementType:T.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:V});process.env.NODE_ENV!=="production"&&u&&N&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[X,J]=S.useState(!1),[te,ce]=S.useState(iL),[me,re]=S.useState(!1),[se,le]=S.useState(!1),[Q,Ce]=S.useState(!1),[ge,Se]=S.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,W=S.useRef(null),K=S.useRef(null),ne={slots:T,slotProps:{indicator:k,scrollButtons:M,...P}},ae=()=>{const mt=W.current;let It;if(mt){const en=mt.getBoundingClientRect();It={clientWidth:mt.clientWidth,scrollLeft:mt.scrollLeft,scrollTop:mt.scrollTop,scrollWidth:mt.scrollWidth,top:en.top,bottom:en.bottom,left:en.left,right:en.right}}let Kt;if(mt&&D!==!1){const en=K.current.children;if(en.length>0){const On=en[xe.get(D)];process.env.NODE_ENV!=="production"&&(On||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${D}".`,xe.keys?`You can provide one of the following values: ${Array.from(xe.keys()).join(", ")}.`:null].join(`
230
230
  `))),Kt=On?On.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&!globalThis.MUI_TEST_ENV&&!sL&&Kt&&Kt.width===0&&Kt.height===0&&It.clientWidth!==0&&(It=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${D}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
231
231
  `)),sL=!0)}}return{tabsMeta:It,tabMeta:Kt}},de=Ee(()=>{const{tabsMeta:mt,tabMeta:It}=ae();let Kt=0,en;j?(en="top",It&&mt&&(Kt=It.top-mt.top+mt.scrollTop)):(en=s?"right":"left",It&&mt&&(Kt=(s?-1:1)*(It[en]-mt[en]+mt.scrollLeft)));const On={[en]:Kt,[U]:It?It[U]:0};if(typeof te[en]!="number"||typeof te[U]!="number")ce(On);else{const Xr=Math.abs(te[en]-On[en]),Wo=Math.abs(te[U]-On[U]);(Xr>=1||Wo>=1)&&ce(On)}}),pe=(mt,{animation:It=!0}={})=>{It?Qme(H,W.current,mt,{duration:i.transitions.duration.standard}):W.current[H]=mt},Pe=mt=>{let It=W.current[H];j?It+=mt:It+=mt*(s?-1:1),pe(It)},Me=()=>{const mt=W.current[q];let It=0;const Kt=Array.from(K.current.children);for(let en=0;en<Kt.length;en+=1){const On=Kt[en];if(It+On[q]>mt){en===0&&(It=mt);break}It+=On[q]}return It},ze=()=>{Pe(-1*Me())},We=()=>{Pe(Me())},[ut,{onChange:St,...Fe}]=At("scrollbar",{className:Te(L.scrollableX,L.hideScrollbar),elementType:uge,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:V}),Xe=S.useCallback(mt=>{St?.(mt),Se({overflow:null,scrollbarWidth:mt})},[St]),[Ae,Qe]=At("scrollButtons",{className:Te(L.scrollButtons,M.className),elementType:S5,externalForwardedProps:ne,ownerState:V,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:T.startScrollButtonIcon||T.StartScrollButtonIcon,EndScrollButtonIcon:T.endScrollButtonIcon||T.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:G,endScrollButtonIcon:Z}}}),st=()=>{const mt={};mt.scrollbarSizeListener=N?w.jsx(ut,{...Fe,onChange:Xe}):null;const Kt=N&&(C==="auto"&&(me||se)||C===!0);return mt.scrollButtonStart=Kt?w.jsx(Ae,{direction:s?"right":"left",onClick:ze,disabled:!me,...Qe}):null,mt.scrollButtonEnd=Kt?w.jsx(Ae,{direction:s?"left":"right",onClick:We,disabled:!se,...Qe}):null,mt},yt=Ee(mt=>{const{tabsMeta:It,tabMeta:Kt}=ae();if(!(!Kt||!It)){if(Kt[$]<It[$]){const en=It[H]+(Kt[$]-It[$]);pe(en,{animation:mt})}else if(Kt[B]>It[B]){const en=It[H]+(Kt[B]-It[B]);pe(en,{animation:mt})}}}),$t=Ee(()=>{N&&C!==!1&&Ce(!Q)});S.useEffect(()=>{const mt=wa(()=>{W.current&&de()});let It;const Kt=Xr=>{Xr.forEach(Wo=>{Wo.removedNodes.forEach(ki=>{It?.unobserve(ki)}),Wo.addedNodes.forEach(ki=>{It?.observe(ki)})}),mt(),$t()},en=As(W.current);en.addEventListener("resize",mt);let On;return typeof ResizeObserver<"u"&&(It=new ResizeObserver(mt),Array.from(K.current.children).forEach(Xr=>{It.observe(Xr)})),typeof MutationObserver<"u"&&(On=new MutationObserver(Kt),On.observe(K.current,{childList:!0})),()=>{mt.clear(),en.removeEventListener("resize",mt),On?.disconnect(),It?.disconnect()}},[de,$t]),S.useEffect(()=>{const mt=Array.from(K.current.children),It=mt.length;if(typeof IntersectionObserver<"u"&&It>0&&N&&C!==!1){const Kt=mt[0],en=mt[It-1],On={root:W.current,threshold:.99},Xr=Ri=>{re(!Ri[0].isIntersecting)},Wo=new IntersectionObserver(Xr,On);Wo.observe(Kt);const ki=Ri=>{le(!Ri[0].isIntersecting)},ia=new IntersectionObserver(ki,On);return ia.observe(en),()=>{Wo.disconnect(),ia.disconnect()}}},[N,C,Q,d?.length]),S.useEffect(()=>{J(!0)},[]),S.useEffect(()=>{de()}),S.useEffect(()=>{yt(iL!==te)},[yt,te]),S.useImperativeHandle(c,()=>({updateIndicator:de,updateScrollButtons:$t}),[de,$t]);const[cn,Ct]=At("indicator",{className:Te(L.indicator,k.className),elementType:cge,externalForwardedProps:ne,ownerState:V,additionalProps:{style:te}}),tt=w.jsx(cn,{...Ct});let vt=0;const zt=S.Children.map(d,mt=>{if(!S.isValidElement(mt))return null;process.env.NODE_ENV!=="production"&&Tm.isFragment(mt)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
232
- `));const It=mt.props.value===void 0?vt:mt.props.value;xe.set(It,vt);const Kt=It===D;return vt+=1,S.cloneElement(mt,{fullWidth:A==="fullWidth",indicator:Kt&&!X&&tt,selected:Kt,selectionFollowsFocus:O,onChange:g,textColor:_,value:It,...vt===1&&D===!1&&!mt.props.tabIndex?{tabIndex:0}:{}})}),Sn=mt=>{if(mt.altKey||mt.shiftKey||mt.ctrlKey||mt.metaKey)return;const It=K.current,Kt=qd($n(It));if(Kt?.getAttribute("role")!=="tab")return;let On=y==="horizontal"?"ArrowLeft":"ArrowUp",Xr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&s&&(On="ArrowRight",Xr="ArrowLeft"),mt.key){case On:mt.preventDefault(),hb(It,Kt,oL);break;case Xr:mt.preventDefault(),hb(It,Kt,rL);break;case"Home":mt.preventDefault(),hb(It,null,rL);break;case"End":mt.preventDefault(),hb(It,null,oL);break}},dn=st(),[Dr,ar]=At("root",{ref:r,className:Te(L.root,f),elementType:sge,externalForwardedProps:{...ne,...I,component:p},ownerState:V}),[zr,qr]=At("scroller",{ref:W,className:L.scroller,elementType:age,externalForwardedProps:ne,ownerState:V,additionalProps:{style:{overflow:ge.overflow,[j?`margin${s?"Left":"Right"}`:"marginBottom"]:F?void 0:-ge.scrollbarWidth}}}),[gt,Cn]=At("list",{ref:K,className:Te(L.list,L.flexContainer),elementType:lge,externalForwardedProps:ne,ownerState:V,getSlotProps:mt=>({...mt,onKeyDown:It=>{Sn(It),mt.onKeyDown?.(It)}})});return w.jsxs(Dr,{...ar,children:[dn.scrollButtonStart,dn.scrollbarSizeListener,w.jsxs(zr,{...qr,children:[w.jsx(gt,{"aria-label":a,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...Cn,children:zt}),X&&tt]}),dn.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(CI.propTypes={action:Tn,allowScrollButtonsMobile:n.bool,"aria-label":n.string,"aria-labelledby":n.string,centered:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,indicatorColor:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),ScrollButtonComponent:n.elementType,scrollButtons:n.oneOf(["auto",!1,!0]),selectionFollowsFocus:n.bool,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),indicator:n.oneOfType([n.func,n.object]),list:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),scrollbar:n.oneOfType([n.func,n.object]),scrollButtons:n.oneOfType([n.func,n.object]),scroller:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({endScrollButtonIcon:n.elementType,EndScrollButtonIcon:n.elementType,indicator:n.elementType,list:n.elementType,root:n.elementType,scrollbar:n.elementType,scrollButtons:n.elementType,scroller:n.elementType,startScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TabIndicatorProps:n.object,TabScrollButtonProps:n.object,textColor:n.oneOf(["inherit","primary","secondary"]),value:n.any,variant:n.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:n.bool});function dge(e){return Je("MuiDateTimePickerTabs",e)}Ze("MuiDateTimePickerTabs",["root"]);const fge=e=>yf(e)?"date":"time",pge=e=>e==="date"?"day":"hours",hge=e=>Ie({root:["root"]},dge,e),mge=ie(CI,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Fv.indicator}`]:{bottom:"auto",top:0}}})),wI=function(t){const r=_t({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=w.jsx(jle,{}),timeIcon:i=w.jsx(Ble,{}),hidden:s=typeof window>"u"||window.innerHeight<667,className:a,classes:l,sx:c}=r,u=Io(),{ownerState:d}=fr(),{view:f,setView:p}=Ea(),h=hge(l),b=(g,y)=>{p(pge(y))};return s?null:w.jsxs(mge,{ownerState:d,variant:"fullWidth",value:fge(f),onChange:b,className:Te(a,h.root),sx:c,children:[w.jsx(vx,{value:"date","aria-label":u.dateTableLabel,icon:w.jsx(S.Fragment,{children:o})}),w.jsx(vx,{value:"time","aria-label":u.timeTableLabel,icon:w.jsx(S.Fragment,{children:i})})]})};process.env.NODE_ENV!=="production"&&(wI.displayName="DateTimePickerTabs");process.env.NODE_ENV!=="production"&&(wI.propTypes={classes:n.object,className:n.string,dateIcon:n.node,hidden:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeIcon:n.node});function gge(e){return Je("MuiDateTimePickerToolbar",e)}const KT=Ze("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),bge=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],yge=(e,t)=>{const{pickerOrientation:r,toolbarDirection:o}=t;return Ie({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",o==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",o==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},gge,e)},vge=ie(tS,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Jfe.content} .${Rme.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),xge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Sge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:r})=>e==="landscape"&&t!=="desktop"&&r==="rtl",style:{flexDirection:"column-reverse"}}]}),Cge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),aL=ie(aS,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),wge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${KT.ampmLabel}`]:t.ampmLabel},{[`&.${KT.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${KT.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),C5=S.createContext(null);process.env.NODE_ENV!=="production"&&(C5.displayName="DateTimePickerToolbarOverrideContext");function w5(e){const t=_t({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:o,toolbarFormat:i,toolbarPlaceholder:s="––",toolbarTitle:a,className:l,classes:c}=t,u=ye(t,bge),{value:d,setValue:f,disabled:p,readOnly:h,variant:b,orientation:g,view:y,setView:v,views:C}=Ea(),O=Io(),T=eS(),P=yge(c,T),k=Zt(),M=S.useContext(C5),_=M?M.value:d,D=M?M.setValue:f,A=M?M.view:y,F=M?M.setView:v,{meridiemMode:I,handleMeridiemChange:N}=B0(_,r,V=>D(V,{changeImportance:"set",source:"view"})),j=M?.forceDesktopVariant?"desktop":b,H=j==="desktop",$=!!(r&&!o),B=a??O.dateTimePickerToolbarTitle,q=S.useMemo(()=>k.isValid(_)?i?k.formatByString(_,i):k.format(_,"shortDate"):s,[_,i,s,k]),U=(V,L)=>k.isValid(_)?k.format(_,V):L;return w.jsxs(vge,E({className:Te(P.root,l),toolbarTitle:B,toolbarVariant:j},u,{ownerState:T,children:[w.jsxs(xge,{className:P.dateContainer,ownerState:T,children:[C.includes("year")&&w.jsx(xi,{tabIndex:-1,variant:"subtitle1",onClick:()=>F("year"),selected:A==="year",value:U("year","–")}),C.includes("day")&&w.jsx(xi,{tabIndex:-1,variant:H?"h5":"h4",onClick:()=>F("day"),selected:A==="day",value:q})]}),w.jsxs(Sge,{className:P.timeContainer,ownerState:T,toolbarVariant:j,children:[w.jsxs(Cge,{className:P.timeDigitsContainer,ownerState:T,toolbarVariant:j,children:[C.includes("hours")&&w.jsxs(S.Fragment,{children:[w.jsx(xi,{variant:H?"h5":"h3",width:H&&g==="portrait"?ah:void 0,onClick:()=>F("hours"),selected:A==="hours",value:U(r?"hours12h":"hours24h","--")}),w.jsx(aL,{variant:H?"h5":"h3",value:":",className:P.separator,ownerState:T,toolbarVariant:j}),w.jsx(xi,{variant:H?"h5":"h3",width:H&&g==="portrait"?ah:void 0,onClick:()=>F("minutes"),selected:A==="minutes"||!C.includes("minutes")&&A==="hours",value:U("minutes","--"),disabled:!C.includes("minutes")})]}),C.includes("seconds")&&w.jsxs(S.Fragment,{children:[w.jsx(aL,{variant:H?"h5":"h3",value:":",className:P.separator,ownerState:T,toolbarVariant:j}),w.jsx(xi,{variant:H?"h5":"h3",width:H&&g==="portrait"?ah:void 0,onClick:()=>F("seconds"),selected:A==="seconds",value:U("seconds","--")})]})]}),$&&!H&&w.jsxs(wge,{className:P.ampmSelection,ownerState:T,children:[w.jsx(xi,{variant:"subtitle2",selected:I==="am",typographyClassName:P.ampmLabel,value:Js(k,"am"),onClick:h?void 0:()=>N("am"),disabled:p}),w.jsx(xi,{variant:"subtitle2",selected:I==="pm",typographyClassName:P.ampmLabel,value:Js(k,"pm"),onClick:h?void 0:()=>N("pm"),disabled:p})]}),r&&H&&w.jsx(xi,{variant:"h5",onClick:()=>F("meridiem"),selected:A==="meridiem",value:_&&I?Js(k,I):"--",width:ah})]})]}))}process.env.NODE_ENV!=="production"&&(w5.propTypes={ampm:n.bool,ampmInClock:n.bool,classes:n.object,className:n.string,hidden:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleId:n.string,toolbarFormat:n.string,toolbarPlaceholder:n.node,toolbarTitle:n.node});function T5(e,t){const r=Zt(),o=_t({props:e,name:t}),i=w3(o),s=o.ampm??r.is12HourCycleInCurrentLocale(),a=S.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:E({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]),{openTo:l,views:c}=kE({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,timeSteps:p}=b5({thresholdToRenderTimeInASingleColumn:o.thresholdToRenderTimeInASingleColumn,ampm:s,timeSteps:o.timeSteps,views:c}),h=s?[...c,"meridiem"]:c;return E({},o,i,{timeSteps:p,openTo:l,shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,viewsForFormatting:h,ampm:s,localeText:a,orientation:o.orientation??"portrait",slots:E({toolbar:w5,tabs:wI},o.slots),slotProps:E({},o.slotProps,{toolbar:E({ampm:s},o.slotProps?.toolbar)})})}const TI=S.forwardRef(function(t,r){const{toolbar:o,tabs:i,content:s,actionBar:a,shortcuts:l,ownerState:c}=a5(t),{orientation:u}=Ea(),{sx:d,className:f,classes:p}=t,h=a&&(a.props.actions?.length??0)>0;return w.jsxs(l5,{ref:r,className:Te(Ys.root,p?.root,f),sx:[{[`& .${Ys.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Ys.actionBar}`]:{gridRow:5}},...Array.isArray(d)?d:[d]],ownerState:c,children:[u==="landscape"?l:o,u==="landscape"?o:l,w.jsxs(c5,{className:Te(Ys.contentWrapper,p?.contentWrapper),ownerState:c,sx:{display:"grid"},children:[s,i,h&&w.jsx(du,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})});process.env.NODE_ENV!=="production"&&(TI.displayName="DesktopDateTimePickerLayout");process.env.NODE_ENV!=="production"&&(TI.propTypes={children:n.node,classes:n.object,className:n.string,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Tge=["openTo","focusedView","timeViewsCount"],O5=function(t){const{viewRenderers:r,popperView:o,rendererProps:i}=t,{openTo:s,focusedView:a,timeViewsCount:l}=i,c=ye(i,Tge),u=E({},c,{autoFocus:!1,focusedView:null,sx:[{[`&.${U1.root}`]:{borderBottom:0},[`&.${U1.root}, .${G1.root}, &.${q1.root}`]:{maxHeight:xf}}]}),d=Ud(o),f=d?"day":o,p=d?o:"hours";return w.jsxs(S.Fragment,{children:[r[f]?.(E({},i,{view:d?"day":o,focusedView:a&&yf(a)?a:null,views:i.views.filter(yf),sx:[{gridColumn:1},...u.sx]})),l>0&&w.jsxs(S.Fragment,{children:[w.jsx(du,{orientation:"vertical",sx:{gridColumn:2}}),r[p]?.(E({},u,{view:d?o:"hours",focusedView:a&&Ud(a)?a:null,openTo:Ud(s)?s:"hours",views:i.views.filter(Ud),sx:[{gridColumn:3},...u.sx]}))]})]})};process.env.NODE_ENV!=="production"&&(O5.displayName="rendererInterceptor");const dS=S.forwardRef(function(t,r){const o=Zt(),i=T5(t,"MuiDesktopDateTimePicker"),s=i.shouldRenderTimeInASingleColumn?lS:pu,a=E({day:Gi,month:Gi,year:Gi,hours:s,minutes:s,seconds:s,meridiem:s},i.viewRenderers),l=i.ampmInClock??!0,u=a.hours?.name===pu.name?i.views:i.views.filter(p=>p!=="meridiem"),d=E({},i,{viewRenderers:a,format:g5(o,E({},i,{views:i.viewsForFormatting})),views:u,yearsPerRow:i.yearsPerRow??4,ampmInClock:l,slots:E({field:J0,layout:TI},i.slots),slotProps:E({},i.slotProps,{field:p=>E({},Vo(i.slotProps?.field,p),Wf(i)),toolbar:E({hidden:!0,ampmInClock:l},i.slotProps?.toolbar),tabs:E({hidden:!0},i.slotProps?.tabs)})}),{renderPicker:f}=yI({ref:r,props:d,valueManager:Ar,valueType:"date-time",validator:z0,rendererInterceptor:O5,steps:null});return f()});process.env.NODE_ENV!=="production"&&(dS.displayName="DesktopDateTimePicker");dS.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};const Oge=[{views:Wq},{views:r3}],fS=S.forwardRef(function(t,r){const o=Zt(),i=T5(t,"MuiMobileDateTimePicker"),s=i.shouldRenderTimeInASingleColumn?lS:pu,a=E({day:Gi,month:Gi,year:Gi,hours:s,minutes:s,seconds:s,meridiem:s},i.viewRenderers),l=i.ampmInClock??!1,u=a.hours?.name===pu.name?i.views:i.views.filter(p=>p!=="meridiem"),d=E({},i,{viewRenderers:a,format:g5(o,E({},i,{views:i.viewsForFormatting})),views:u,ampmInClock:l,slots:E({field:J0},i.slots),slotProps:E({},i.slotProps,{field:p=>E({},Vo(i.slotProps?.field,p),Wf(i)),toolbar:E({hidden:!1,ampmInClock:l},i.slotProps?.toolbar),tabs:E({hidden:!1},i.slotProps?.tabs),layout:E({},i.slotProps?.layout,{sx:Jce([{[`& .${U1.root}`]:{width:vf},[`& .${G1.root}`]:{flex:1,maxHeight:xf-1,[`.${G1.item}`]:{width:"auto"}},[`& .${q1.root}`]:{width:vf,maxHeight:xf,flex:1,[`.${q1.item}`]:{justifyContent:"center"}}}],i.slotProps?.layout?.sx)})})}),{renderPicker:f}=vI({ref:r,props:d,valueManager:Ar,valueType:"date-time",validator:z0,steps:Oge});return f()});process.env.NODE_ENV!=="production"&&(fS.displayName="MobileDateTimePicker");fS.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};const Pge=["desktopModeMediaQuery"],OI=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=UE}=o,s=ye(o,Pge);return Dm(i,{defaultMatches:!0})?w.jsx(dS,E({ref:r},s)):w.jsx(fS,E({ref:r},s))});process.env.NODE_ENV!=="production"&&(OI.displayName="DateTimePicker");process.env.NODE_ENV!=="production"&&(OI.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,desktopModeMediaQuery:n.string,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])});function Ege(e){const t={wrows:[],worows:[]},r=Ua.clone(e),o=Ua.remove(r,c=>(c.layout?c.layout.row:c.layout)===void 0),i=c=>{const u=c.layout??{},d=(()=>{if(u.size&&typeof u.size=="object")return u.size;const O={};return u.xs!=null&&(O.xs=u.xs),u.sm!=null&&(O.sm=u.sm),u.md!=null&&(O.md=u.md),u.lg!=null&&(O.lg=u.lg),u.xl!=null&&(O.xl=u.xl),Object.keys(O).length?O:{xs:12}})(),{xs:f,sm:p,md:h,lg:b,xl:g,size:y,...v}=u,C={...v,size:y??d};return{...c,layout:C}};t.worows=o.map(i);const s=Ua.map(r,"layout.row"),a=Ua.uniq(s),l=Ua.sortBy(a);return Ua.each(l,c=>{const u=[];Ua.each(r,d=>{d.layout&&d.layout.row===c&&u.push(i(d))}),t.wrows.push(u)}),t}function PI(e){if(!P1(e)){const{MuiInputAdornment:t={},position:r="start",icon:o,text:i,textstyle:s={}}=e;return{[`${r}Adornment`]:Ue.createElement(ht.InputAdornment,{...t,key:`custom-icon-Adornment-${r}`},o&&w.jsx(ht.Icon,{children:o}),P1(s)?i||"":w.jsx("div",{style:s,children:i||""}))}}return{}}function Ige(e){return e==null||e.hasOwnProperty("length")&&e.length===0||e.constructor===Object&&Object.keys(e).length===0}const P5=(e,t,r,o={},i=[])=>{try{o[r]=t;const s=Ua.map(e,a=>{const l=Ua.cloneDeep(a),c=l?.id||l?.props?.id;if(c&&o[r]&&!Ige(o[r][c])){const u=["switch","checkbox"].includes(l?.type||"")?!1:"";l.props={...l.props,value:o[r][c]===void 0?u:o[r][c]}}return l});return i.length>0&&i.forEach(({key:a,disableIds:l,compareValues:c={}})=>{const u=s.find(d=>d?.id===a||d?.props?.id===a);if(u){const d=u?.props?.value,f=c[d];l.forEach(p=>{const h=s.findIndex(b=>b?.id===p||b?.props?.id===p);if(h!==-1){const b=s[h],g=b?.id||b?.props?.id;g&&(o[r][g]=f?"":o[r][g]),s[h]={...s[h],props:{...s[h].props,value:f?"":s[h]?.props?.value,MuiAttributes:{...s[h].props?.MuiAttributes,disabled:f}}}}})}}),s}catch(s){return console.error("Error updating patch data:",s),e}},EI=e=>e==="MobileDatePicker"?sS:e==="DesktopDatePicker"?iS:e==="DateTimePicker"?OI:e==="MobileDateTimePicker"?fS:e==="DesktopDateTimePicker"?dS:e==="TimePicker"?SI:e==="MobileTimePicker"?uS:e==="DesktopTimePicker"?cS:xI,kge=e=>e?{color:e,"&.Mui-checked":{color:e}}:{};var mb={exports:{}},gb={exports:{}},bb={exports:{}},lL;function rt(){return lL||(lL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){if(o==null)throw new TypeError("Expected a string but received a ".concat(o));if(o.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(o.constructor.name))}e.exports=t.default,e.exports.default=t.default})(bb,bb.exports)),bb.exports}var cL;function II(){return cL||(cL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s),s=Date.parse(s),isNaN(s)?null:new Date(s)}e.exports=t.default,e.exports.default=t.default})(gb,gb.exports)),gb.exports}var yb={exports:{}},pd={},vb={exports:{}},uL;function E5(){return uL||(uL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){return o==null}e.exports=t.default,e.exports.default=t.default})(vb,vb.exports)),vb.exports}var Fr={},dL;function Fm(){if(dL)return Fr;dL=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.farsiLocales=Fr.englishLocales=Fr.dotDecimal=Fr.decimal=Fr.commaDecimal=Fr.bengaliLocales=Fr.arabicLocales=Fr.alphanumeric=Fr.alpha=void 0;for(var e=Fr.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/,"ta-IN":/^[\u0B80-\u0BFF]+$/i,"te-IN":/^[\u0C00-\u0C7F]+$/i,"kn-IN":/^[\u0C80-\u0CFF]+$/i,"ml-IN":/^[\u0D00-\u0D7F]+$/i,"gu-IN":/^[\u0A80-\u0AFF]+$/i,"pa-IN":/^[\u0A00-\u0A7F]+$/i,"or-IN":/^[\u0B00-\u0B7F]+$/i},t=Fr.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/,"ta-IN":/^[0-9\u0B80-\u0BFF.]+$/i,"te-IN":/^[0-9\u0C00-\u0C7F.]+$/i,"kn-IN":/^[0-9\u0C80-\u0CFF.]+$/i,"ml-IN":/^[0-9\u0D00-\u0D7F.]+$/i,"gu-IN":/^[0-9\u0A80-\u0AFF.]+$/i,"pa-IN":/^[0-9\u0A00-\u0A7F.]+$/i,"or-IN":/^[0-9\u0B00-\u0B7F.]+$/i},r=Fr.decimal={"en-US":".",ar:"٫"},o=Fr.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],i,s=0;s<o.length;s++)i="en-".concat(o[s]),e[i]=e["en-US"],t[i]=t["en-US"],r[i]=r["en-US"];for(var a=Fr.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],l,c=0;c<a.length;c++)l="ar-".concat(a[c]),e[l]=e.ar,t[l]=t.ar,r[l]=r.ar;for(var u=Fr.farsiLocales=["IR","AF"],d,f=0;f<u.length;f++)d="fa-".concat(u[f]),t[d]=t.fa,r[d]=r.ar;for(var p=Fr.bengaliLocales=["BD","IN"],h,b=0;b<p.length;b++)h="bn-".concat(p[b]),e[h]=e.bn,t[h]=t.bn,r[h]=r["en-US"];for(var g=Fr.dotDecimal=["ar-EG","ar-LB","ar-LY"],y=Fr.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","gu-IN","hi-IN","hu-HU","id-ID","it-IT","kk-KZ","kn-IN","ku-IQ","ml-IN","nb-NO","nl-NL","nn-NO","or-IN","pa-IN","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS","sr-RS@latin","sv-SE","ta-IN","te-IN","tr-TR","uk-UA","vi-VN"],v=0;v<g.length;v++)r[g[v]]=r["en-US"];for(var C=0;C<y.length;C++)r[y[C]]=",";return e["fr-CA"]=e["fr-FR"],t["fr-CA"]=t["fr-FR"],e["pt-BR"]=e["pt-PT"],t["pt-BR"]=t["pt-PT"],r["pt-BR"]=r["pt-PT"],e["pl-Pl"]=e["pl-PL"],t["pl-Pl"]=t["pl-PL"],r["pl-Pl"]=r["pl-PL"],e["fa-AF"]=e.fa,Fr}var fL;function I5(){if(fL)return pd;fL=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.default=i,pd.locales=void 0;var e=o(rt()),t=o(E5()),r=Fm();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){(0,e.default)(s),a=a||{};var l=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(a.locale?r.decimal[a.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(s===""||s==="."||s===","||s==="-"||s==="+")return!1;var c=parseFloat(s.replace(",","."));return l.test(s)&&(!a.hasOwnProperty("min")||(0,t.default)(a.min)||c>=a.min)&&(!a.hasOwnProperty("max")||(0,t.default)(a.max)||c<=a.max)&&(!a.hasOwnProperty("lt")||(0,t.default)(a.lt)||c<a.lt)&&(!a.hasOwnProperty("gt")||(0,t.default)(a.gt)||c>a.gt)}return pd.locales=Object.keys(r.decimal),pd}var pL;function k5(){return pL||(pL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(I5());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s)?parseFloat(s):NaN}e.exports=t.default,e.exports.default=t.default})(yb,yb.exports)),yb.exports}var xb={exports:{}},hL;function Rge(){return hL||(hL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){return(0,r.default)(s),parseInt(s,a||10)}e.exports=t.default,e.exports.default=t.default})(xb,xb.exports)),xb.exports}var Sb={exports:{}},mL;function Mge(){return mL||(mL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){return(0,r.default)(s),a?s==="1"||/^true$/i.test(s):s!=="0"&&!/^false$/i.test(s)&&s!==""}e.exports=t.default,e.exports.default=t.default})(Sb,Sb.exports)),Sb.exports}var Cb={exports:{}},gL;function Age(){return gL||(gL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){return(0,r.default)(s),s===a}e.exports=t.default,e.exports.default=t.default})(Cb,Cb.exports)),Cb.exports}var wb={exports:{}},Tb={exports:{}},bL;function R5(){return bL||(bL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;function r(i){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(i)}function o(i){return r(i)==="object"&&i!==null?typeof i.toString=="function"?i=i.toString():i="[object Object]":(i===null||typeof i>"u"||isNaN(i)&&!i.length)&&(i=""),String(i)}e.exports=t.default,e.exports.default=t.default})(Tb,Tb.exports)),Tb.exports}var Ob={exports:{}},yL;function zo(){return yL||(yL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var s in i)typeof o[s]>"u"&&(o[s]=i[s]);return o}e.exports=t.default,e.exports.default=t.default})(Ob,Ob.exports)),Ob.exports}var vL;function Dge(){return vL||(vL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(rt()),o=s(R5()),i=s(zo());function s(c){return c&&c.__esModule?c:{default:c}}var a={ignoreCase:!1,minOccurrences:1};function l(c,u,d){return(0,r.default)(c),d=(0,i.default)(d,a),d.ignoreCase?c.toLowerCase().split((0,o.default)(u).toLowerCase()).length>d.minOccurrences:c.split((0,o.default)(u)).length>d.minOccurrences}e.exports=t.default,e.exports.default=t.default})(wb,wb.exports)),wb.exports}var Pb={exports:{}},xL;function _ge(){return xL||(xL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a,l){return(0,r.default)(s),Object.prototype.toString.call(a)!=="[object RegExp]"&&(a=new RegExp(a,l)),!!s.match(a)}e.exports=t.default,e.exports.default=t.default})(Pb,Pb.exports)),Pb.exports}var Eb={exports:{}},Ib={exports:{}},SL;function M5(){return SL||(SL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;function r(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function o(i,s){for(var a=0;a<s.length;a++){var l=s[a];if(i===l||r(l)&&l.test(i))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(Ib,Ib.exports)),Ib.exports}var kb={exports:{}},CL;function A5(){return CL||(CL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(a)}function s(a,l){(0,r.default)(a);var c,u;i(l)==="object"?(c=l.min||0,u=l.max):(c=arguments[1],u=arguments[2]);var d=encodeURI(a).split(/%..|./).length-1;return d>=c&&(typeof u>"u"||d<=u)}e.exports=t.default,e.exports.default=t.default})(kb,kb.exports)),kb.exports}var Rb={exports:{}},wL;function kI(){return wL||(wL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=i(zo());function i(l){return l&&l.__esModule?l:{default:l}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function a(l,c){(0,r.default)(l),c=(0,o.default)(c,s),c.allow_trailing_dot&&l[l.length-1]==="."&&(l=l.substring(0,l.length-1)),c.allow_wildcard===!0&&l.indexOf("*.")===0&&(l=l.substring(2));var u=l.split("."),d=u[u.length-1];return c.require_tld&&(u.length<2||!c.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(d)||/\s/.test(d))||!c.allow_numeric_tld&&/^\d+$/.test(d)?!1:u.every(function(f){return!(f.length>63&&!c.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(f)||/[\uff01-\uff5e]/.test(f)||/^-|-$/.test(f)||!c.allow_underscores&&/_/.test(f))})}e.exports=t.default,e.exports.default=t.default})(Rb,Rb.exports)),Rb.exports}var Mb={exports:{}},TL;function pS(){return TL||(TL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=o(rt());function o(f){return f&&f.__esModule?f:{default:f}}function i(f){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(f)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(s,"[.]){3}").concat(s),l=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function d(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(f);var h=(i(p)==="object"?p.version:arguments[1])||"";return h?h.toString()==="4"?l.test(f):h.toString()==="6"?u.test(f):!1:d(f,{version:4})||d(f,{version:6})}e.exports=t.default,e.exports.default=t.default})(Mb,Mb.exports)),Mb.exports}var OL;function D5(){return OL||(OL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var r=c(rt()),o=c(M5()),i=c(A5()),s=c(kI()),a=c(pS()),l=c(zo());function c(O){return O&&O.__esModule?O:{default:O}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},d=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,b=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,y=254;function v(O){var T=O.replace(/^"(.+)"$/,"$1");if(!T.trim())return!1;var P=/[\.";<>]/.test(T);if(P){if(T===O)return!1;var k=T.split('"').length===T.split('\\"').length;if(!k)return!1}return!0}function C(O,T){if((0,r.default)(O),T=(0,l.default)(T,u),T.require_display_name||T.allow_display_name){var P=O.match(d);if(P){var k=P[1];if(O=O.replace(k,"").replace(/(^<|>$)/g,""),k.endsWith(" ")&&(k=k.slice(0,-1)),!v(k))return!1}else if(T.require_display_name)return!1}if(!T.ignore_max_length&&O.length>y)return!1;var M=O.split("@"),_=M.pop(),D=_.toLowerCase();if(T.host_blacklist.length>0&&(0,o.default)(D,T.host_blacklist)||T.host_whitelist.length>0&&!(0,o.default)(D,T.host_whitelist))return!1;var A=M.join("@");if(T.domain_specific_validation&&(D==="gmail.com"||D==="googlemail.com")){A=A.toLowerCase();var F=A.split("+")[0];if(!(0,i.default)(F.replace(/\./g,""),{min:6,max:30}))return!1;for(var I=F.split("."),N=0;N<I.length;N++)if(!p.test(I[N]))return!1}if(T.ignore_max_length===!1&&(!(0,i.default)(A,{max:64})||!(0,i.default)(_,{max:254})))return!1;if(!(0,s.default)(_,{require_tld:T.require_tld,ignore_max_length:T.ignore_max_length,allow_underscores:T.allow_underscores})){if(!T.allow_ip_domain)return!1;if(!(0,a.default)(_)){if(!_.startsWith("[")||!_.endsWith("]"))return!1;var j=_.slice(1,-1);if(j.length===0||!(0,a.default)(j))return!1}}if(T.blacklisted_chars&&A.search(new RegExp("[".concat(T.blacklisted_chars,"]+"),"g"))!==-1)return!1;if(A[0]==='"'&&A[A.length-1]==='"')return A=A.slice(1,A.length-1),T.allow_utf8_local_part?g.test(A):h.test(A);for(var H=T.allow_utf8_local_part?b:f,$=A.split("."),B=0;B<$.length;B++)if(!H.test($[B]))return!1;return!0}e.exports=t.default,e.exports.default=t.default})(Eb,Eb.exports)),Eb.exports}var Ab={exports:{}},Db={exports:{}},PL;function _5(){return PL||(PL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(i,s){return i.indexOf(s)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(Db,Db.exports)),Db.exports}var EL;function Nge(){return EL||(EL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var r=c(rt()),o=c(M5()),i=c(_5()),s=c(kI()),a=c(pS()),l=c(zo());function c(C){return C&&C.__esModule?C:{default:C}}function u(C,O){return b(C)||h(C,O)||f(C,O)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
232
+ `));const It=mt.props.value===void 0?vt:mt.props.value;xe.set(It,vt);const Kt=It===D;return vt+=1,S.cloneElement(mt,{fullWidth:A==="fullWidth",indicator:Kt&&!X&&tt,selected:Kt,selectionFollowsFocus:O,onChange:g,textColor:_,value:It,...vt===1&&D===!1&&!mt.props.tabIndex?{tabIndex:0}:{}})}),Sn=mt=>{if(mt.altKey||mt.shiftKey||mt.ctrlKey||mt.metaKey)return;const It=K.current,Kt=qd($n(It));if(Kt?.getAttribute("role")!=="tab")return;let On=y==="horizontal"?"ArrowLeft":"ArrowUp",Xr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&s&&(On="ArrowRight",Xr="ArrowLeft"),mt.key){case On:mt.preventDefault(),hb(It,Kt,oL);break;case Xr:mt.preventDefault(),hb(It,Kt,rL);break;case"Home":mt.preventDefault(),hb(It,null,rL);break;case"End":mt.preventDefault(),hb(It,null,oL);break}},dn=st(),[Dr,ar]=At("root",{ref:r,className:Te(L.root,f),elementType:sge,externalForwardedProps:{...ne,...I,component:p},ownerState:V}),[zr,qr]=At("scroller",{ref:W,className:L.scroller,elementType:age,externalForwardedProps:ne,ownerState:V,additionalProps:{style:{overflow:ge.overflow,[j?`margin${s?"Left":"Right"}`:"marginBottom"]:F?void 0:-ge.scrollbarWidth}}}),[gt,Cn]=At("list",{ref:K,className:Te(L.list,L.flexContainer),elementType:lge,externalForwardedProps:ne,ownerState:V,getSlotProps:mt=>({...mt,onKeyDown:It=>{Sn(It),mt.onKeyDown?.(It)}})});return w.jsxs(Dr,{...ar,children:[dn.scrollButtonStart,dn.scrollbarSizeListener,w.jsxs(zr,{...qr,children:[w.jsx(gt,{"aria-label":a,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...Cn,children:zt}),X&&tt]}),dn.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(CI.propTypes={action:Tn,allowScrollButtonsMobile:n.bool,"aria-label":n.string,"aria-labelledby":n.string,centered:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,indicatorColor:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),ScrollButtonComponent:n.elementType,scrollButtons:n.oneOf(["auto",!1,!0]),selectionFollowsFocus:n.bool,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),indicator:n.oneOfType([n.func,n.object]),list:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),scrollbar:n.oneOfType([n.func,n.object]),scrollButtons:n.oneOfType([n.func,n.object]),scroller:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({endScrollButtonIcon:n.elementType,EndScrollButtonIcon:n.elementType,indicator:n.elementType,list:n.elementType,root:n.elementType,scrollbar:n.elementType,scrollButtons:n.elementType,scroller:n.elementType,startScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TabIndicatorProps:n.object,TabScrollButtonProps:n.object,textColor:n.oneOf(["inherit","primary","secondary"]),value:n.any,variant:n.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:n.bool});function dge(e){return Je("MuiDateTimePickerTabs",e)}Ze("MuiDateTimePickerTabs",["root"]);const fge=e=>yf(e)?"date":"time",pge=e=>e==="date"?"day":"hours",hge=e=>Ie({root:["root"]},dge,e),mge=ie(CI,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Fv.indicator}`]:{bottom:"auto",top:0}}})),wI=function(t){const r=_t({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=w.jsx(jle,{}),timeIcon:i=w.jsx(Ble,{}),hidden:s=typeof window>"u"||window.innerHeight<667,className:a,classes:l,sx:c}=r,u=Io(),{ownerState:d}=fr(),{view:f,setView:p}=Ea(),h=hge(l),b=(g,y)=>{p(pge(y))};return s?null:w.jsxs(mge,{ownerState:d,variant:"fullWidth",value:fge(f),onChange:b,className:Te(a,h.root),sx:c,children:[w.jsx(vx,{value:"date","aria-label":u.dateTableLabel,icon:w.jsx(S.Fragment,{children:o})}),w.jsx(vx,{value:"time","aria-label":u.timeTableLabel,icon:w.jsx(S.Fragment,{children:i})})]})};process.env.NODE_ENV!=="production"&&(wI.displayName="DateTimePickerTabs");process.env.NODE_ENV!=="production"&&(wI.propTypes={classes:n.object,className:n.string,dateIcon:n.node,hidden:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeIcon:n.node});function gge(e){return Je("MuiDateTimePickerToolbar",e)}const KT=Ze("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),bge=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],yge=(e,t)=>{const{pickerOrientation:r,toolbarDirection:o}=t;return Ie({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",o==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",o==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},gge,e)},vge=ie(tS,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Jfe.content} .${Rme.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),xge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Sge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:r})=>e==="landscape"&&t!=="desktop"&&r==="rtl",style:{flexDirection:"column-reverse"}}]}),Cge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),aL=ie(aS,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>Bo(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),wge=ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${KT.ampmLabel}`]:t.ampmLabel},{[`&.${KT.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${KT.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),C5=S.createContext(null);process.env.NODE_ENV!=="production"&&(C5.displayName="DateTimePickerToolbarOverrideContext");function w5(e){const t=_t({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:o,toolbarFormat:i,toolbarPlaceholder:s="––",toolbarTitle:a,className:l,classes:c}=t,u=ye(t,bge),{value:d,setValue:f,disabled:p,readOnly:h,variant:b,orientation:g,view:y,setView:v,views:C}=Ea(),O=Io(),T=eS(),P=yge(c,T),k=Zt(),M=S.useContext(C5),_=M?M.value:d,D=M?M.setValue:f,A=M?M.view:y,F=M?M.setView:v,{meridiemMode:I,handleMeridiemChange:N}=B0(_,r,V=>D(V,{changeImportance:"set",source:"view"})),j=M?.forceDesktopVariant?"desktop":b,H=j==="desktop",$=!!(r&&!o),B=a??O.dateTimePickerToolbarTitle,q=S.useMemo(()=>k.isValid(_)?i?k.formatByString(_,i):k.format(_,"shortDate"):s,[_,i,s,k]),U=(V,L)=>k.isValid(_)?k.format(_,V):L;return w.jsxs(vge,E({className:Te(P.root,l),toolbarTitle:B,toolbarVariant:j},u,{ownerState:T,children:[w.jsxs(xge,{className:P.dateContainer,ownerState:T,children:[C.includes("year")&&w.jsx(xi,{tabIndex:-1,variant:"subtitle1",onClick:()=>F("year"),selected:A==="year",value:U("year","–")}),C.includes("day")&&w.jsx(xi,{tabIndex:-1,variant:H?"h5":"h4",onClick:()=>F("day"),selected:A==="day",value:q})]}),w.jsxs(Sge,{className:P.timeContainer,ownerState:T,toolbarVariant:j,children:[w.jsxs(Cge,{className:P.timeDigitsContainer,ownerState:T,toolbarVariant:j,children:[C.includes("hours")&&w.jsxs(S.Fragment,{children:[w.jsx(xi,{variant:H?"h5":"h3",width:H&&g==="portrait"?ah:void 0,onClick:()=>F("hours"),selected:A==="hours",value:U(r?"hours12h":"hours24h","--")}),w.jsx(aL,{variant:H?"h5":"h3",value:":",className:P.separator,ownerState:T,toolbarVariant:j}),w.jsx(xi,{variant:H?"h5":"h3",width:H&&g==="portrait"?ah:void 0,onClick:()=>F("minutes"),selected:A==="minutes"||!C.includes("minutes")&&A==="hours",value:U("minutes","--"),disabled:!C.includes("minutes")})]}),C.includes("seconds")&&w.jsxs(S.Fragment,{children:[w.jsx(aL,{variant:H?"h5":"h3",value:":",className:P.separator,ownerState:T,toolbarVariant:j}),w.jsx(xi,{variant:H?"h5":"h3",width:H&&g==="portrait"?ah:void 0,onClick:()=>F("seconds"),selected:A==="seconds",value:U("seconds","--")})]})]}),$&&!H&&w.jsxs(wge,{className:P.ampmSelection,ownerState:T,children:[w.jsx(xi,{variant:"subtitle2",selected:I==="am",typographyClassName:P.ampmLabel,value:Js(k,"am"),onClick:h?void 0:()=>N("am"),disabled:p}),w.jsx(xi,{variant:"subtitle2",selected:I==="pm",typographyClassName:P.ampmLabel,value:Js(k,"pm"),onClick:h?void 0:()=>N("pm"),disabled:p})]}),r&&H&&w.jsx(xi,{variant:"h5",onClick:()=>F("meridiem"),selected:A==="meridiem",value:_&&I?Js(k,I):"--",width:ah})]})]}))}process.env.NODE_ENV!=="production"&&(w5.propTypes={ampm:n.bool,ampmInClock:n.bool,classes:n.object,className:n.string,hidden:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleId:n.string,toolbarFormat:n.string,toolbarPlaceholder:n.node,toolbarTitle:n.node});function T5(e,t){const r=Zt(),o=_t({props:e,name:t}),i=w3(o),s=o.ampm??r.is12HourCycleInCurrentLocale(),a=S.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:E({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]),{openTo:l,views:c}=kE({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,timeSteps:p}=b5({thresholdToRenderTimeInASingleColumn:o.thresholdToRenderTimeInASingleColumn,ampm:s,timeSteps:o.timeSteps,views:c}),h=s?[...c,"meridiem"]:c;return E({},o,i,{timeSteps:p,openTo:l,shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,viewsForFormatting:h,ampm:s,localeText:a,orientation:o.orientation??"portrait",slots:E({toolbar:w5,tabs:wI},o.slots),slotProps:E({},o.slotProps,{toolbar:E({ampm:s},o.slotProps?.toolbar)})})}const TI=S.forwardRef(function(t,r){const{toolbar:o,tabs:i,content:s,actionBar:a,shortcuts:l,ownerState:c}=a5(t),{orientation:u}=Ea(),{sx:d,className:f,classes:p}=t,h=a&&(a.props.actions?.length??0)>0;return w.jsxs(l5,{ref:r,className:Te(Ys.root,p?.root,f),sx:[{[`& .${Ys.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Ys.actionBar}`]:{gridRow:5}},...Array.isArray(d)?d:[d]],ownerState:c,children:[u==="landscape"?l:o,u==="landscape"?o:l,w.jsxs(c5,{className:Te(Ys.contentWrapper,p?.contentWrapper),ownerState:c,sx:{display:"grid"},children:[s,i,h&&w.jsx(du,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})});process.env.NODE_ENV!=="production"&&(TI.displayName="DesktopDateTimePickerLayout");process.env.NODE_ENV!=="production"&&(TI.propTypes={children:n.node,classes:n.object,className:n.string,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Tge=["openTo","focusedView","timeViewsCount"],O5=function(t){const{viewRenderers:r,popperView:o,rendererProps:i}=t,{openTo:s,focusedView:a,timeViewsCount:l}=i,c=ye(i,Tge),u=E({},c,{autoFocus:!1,focusedView:null,sx:[{[`&.${U1.root}`]:{borderBottom:0},[`&.${U1.root}, .${G1.root}, &.${q1.root}`]:{maxHeight:xf}}]}),d=Ud(o),f=d?"day":o,p=d?o:"hours";return w.jsxs(S.Fragment,{children:[r[f]?.(E({},i,{view:d?"day":o,focusedView:a&&yf(a)?a:null,views:i.views.filter(yf),sx:[{gridColumn:1},...u.sx]})),l>0&&w.jsxs(S.Fragment,{children:[w.jsx(du,{orientation:"vertical",sx:{gridColumn:2}}),r[p]?.(E({},u,{view:d?o:"hours",focusedView:a&&Ud(a)?a:null,openTo:Ud(s)?s:"hours",views:i.views.filter(Ud),sx:[{gridColumn:3},...u.sx]}))]})]})};process.env.NODE_ENV!=="production"&&(O5.displayName="rendererInterceptor");const dS=S.forwardRef(function(t,r){const o=Zt(),i=T5(t,"MuiDesktopDateTimePicker"),s=i.shouldRenderTimeInASingleColumn?lS:pu,a=E({day:Gi,month:Gi,year:Gi,hours:s,minutes:s,seconds:s,meridiem:s},i.viewRenderers),l=i.ampmInClock??!0,u=a.hours?.name===pu.name?i.views:i.views.filter(p=>p!=="meridiem"),d=E({},i,{viewRenderers:a,format:g5(o,E({},i,{views:i.viewsForFormatting})),views:u,yearsPerRow:i.yearsPerRow??4,ampmInClock:l,slots:E({field:J0,layout:TI},i.slots),slotProps:E({},i.slotProps,{field:p=>E({},Vo(i.slotProps?.field,p),Wf(i)),toolbar:E({hidden:!0,ampmInClock:l},i.slotProps?.toolbar),tabs:E({hidden:!0},i.slotProps?.tabs)})}),{renderPicker:f}=yI({ref:r,props:d,valueManager:Ar,valueType:"date-time",validator:z0,rendererInterceptor:O5,steps:null});return f()});process.env.NODE_ENV!=="production"&&(dS.displayName="DesktopDateTimePicker");dS.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};const Oge=[{views:Wq},{views:r3}],fS=S.forwardRef(function(t,r){const o=Zt(),i=T5(t,"MuiMobileDateTimePicker"),s=i.shouldRenderTimeInASingleColumn?lS:pu,a=E({day:Gi,month:Gi,year:Gi,hours:s,minutes:s,seconds:s,meridiem:s},i.viewRenderers),l=i.ampmInClock??!1,u=a.hours?.name===pu.name?i.views:i.views.filter(p=>p!=="meridiem"),d=E({},i,{viewRenderers:a,format:g5(o,E({},i,{views:i.viewsForFormatting})),views:u,ampmInClock:l,slots:E({field:J0},i.slots),slotProps:E({},i.slotProps,{field:p=>E({},Vo(i.slotProps?.field,p),Wf(i)),toolbar:E({hidden:!1,ampmInClock:l},i.slotProps?.toolbar),tabs:E({hidden:!1},i.slotProps?.tabs),layout:E({},i.slotProps?.layout,{sx:Jce([{[`& .${U1.root}`]:{width:vf},[`& .${G1.root}`]:{flex:1,maxHeight:xf-1,[`.${G1.item}`]:{width:"auto"}},[`& .${q1.root}`]:{width:vf,maxHeight:xf,flex:1,[`.${q1.item}`]:{justifyContent:"center"}}}],i.slotProps?.layout?.sx)})})}),{renderPicker:f}=vI({ref:r,props:d,valueManager:Ar,valueType:"date-time",validator:z0,steps:Oge});return f()});process.env.NODE_ENV!=="production"&&(fS.displayName="MobileDateTimePicker");fS.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};const Pge=["desktopModeMediaQuery"],OI=S.forwardRef(function(t,r){const o=_t({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=UE}=o,s=ye(o,Pge);return Dm(i,{defaultMatches:!0})?w.jsx(dS,E({ref:r},s)):w.jsx(fS,E({ref:r},s))});process.env.NODE_ENV!=="production"&&(OI.displayName="DateTimePicker");process.env.NODE_ENV!=="production"&&(OI.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,desktopModeMediaQuery:n.string,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Tn,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])});function Ege(e){const t={wrows:[],worows:[]},r=Ua.clone(e),o=Ua.remove(r,c=>(c.layout?c.layout.row:c.layout)===void 0),i=c=>{const u=c.layout??{},d=(()=>{if(u.size&&typeof u.size=="object")return u.size;const O={};return u.xs!=null&&(O.xs=u.xs),u.sm!=null&&(O.sm=u.sm),u.md!=null&&(O.md=u.md),u.lg!=null&&(O.lg=u.lg),u.xl!=null&&(O.xl=u.xl),Object.keys(O).length?O:{xs:12}})(),{xs:f,sm:p,md:h,lg:b,xl:g,size:y,...v}=u,C={...v,size:y??d};return{...c,layout:C}};t.worows=o.map(i);const s=Ua.map(r,"layout.row"),a=Ua.uniq(s),l=Ua.sortBy(a);return Ua.each(l,c=>{const u=[];Ua.each(r,d=>{d.layout&&d.layout.row===c&&u.push(i(d))}),t.wrows.push(u)}),t}function PI(e){if(!P1(e)){const{MuiInputAdornment:t={},position:r="start",icon:o,text:i,textstyle:s={}}=e;return{[`${r}Adornment`]:Ue.createElement(ht.InputAdornment,{...t,key:`custom-icon-Adornment-${r}`},o&&w.jsx(ht.Icon,{children:o}),P1(s)?i||"":w.jsx("div",{style:s,children:i||""}))}}return{}}function Ige(e){return e==null||e.hasOwnProperty("length")&&e.length===0||e.constructor===Object&&Object.keys(e).length===0}const P5=(e,t,r,o={},i=[])=>{try{o[r]||(o[r]={}),Object.assign(o[r],t);const s=Ua.map(e,a=>{const l=Ua.cloneDeep(a),c=l?.id||l?.props?.id;if(c&&o[r]&&!Ige(o[r][c])){const u=["switch","checkbox"].includes(l?.type||"")?!1:"";l.props={...l.props,value:o[r][c]===void 0?u:o[r][c]}}return l});return i.length>0&&i.forEach(({key:a,disableIds:l,compareValues:c={}})=>{const u=s.find(d=>d?.id===a||d?.props?.id===a);if(u){const d=u?.props?.value,f=c[d];l.forEach(p=>{const h=s.findIndex(b=>b?.id===p||b?.props?.id===p);if(h!==-1){const b=s[h],g=b?.id||b?.props?.id;g&&(o[r][g]=f?"":o[r][g]),s[h]={...s[h],props:{...s[h].props,value:f?"":s[h]?.props?.value,MuiAttributes:{...s[h].props?.MuiAttributes,disabled:f}}}}})}}),s}catch(s){return console.error("Error updating patch data:",s),e}},EI=e=>e==="MobileDatePicker"?sS:e==="DesktopDatePicker"?iS:e==="DateTimePicker"?OI:e==="MobileDateTimePicker"?fS:e==="DesktopDateTimePicker"?dS:e==="TimePicker"?SI:e==="MobileTimePicker"?uS:e==="DesktopTimePicker"?cS:xI,kge=e=>e?{color:e,"&.Mui-checked":{color:e}}:{};var mb={exports:{}},gb={exports:{}},bb={exports:{}},lL;function rt(){return lL||(lL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){if(o==null)throw new TypeError("Expected a string but received a ".concat(o));if(o.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(o.constructor.name))}e.exports=t.default,e.exports.default=t.default})(bb,bb.exports)),bb.exports}var cL;function II(){return cL||(cL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s),s=Date.parse(s),isNaN(s)?null:new Date(s)}e.exports=t.default,e.exports.default=t.default})(gb,gb.exports)),gb.exports}var yb={exports:{}},pd={},vb={exports:{}},uL;function E5(){return uL||(uL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){return o==null}e.exports=t.default,e.exports.default=t.default})(vb,vb.exports)),vb.exports}var Fr={},dL;function Fm(){if(dL)return Fr;dL=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.farsiLocales=Fr.englishLocales=Fr.dotDecimal=Fr.decimal=Fr.commaDecimal=Fr.bengaliLocales=Fr.arabicLocales=Fr.alphanumeric=Fr.alpha=void 0;for(var e=Fr.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/,"ta-IN":/^[\u0B80-\u0BFF]+$/i,"te-IN":/^[\u0C00-\u0C7F]+$/i,"kn-IN":/^[\u0C80-\u0CFF]+$/i,"ml-IN":/^[\u0D00-\u0D7F]+$/i,"gu-IN":/^[\u0A80-\u0AFF]+$/i,"pa-IN":/^[\u0A00-\u0A7F]+$/i,"or-IN":/^[\u0B00-\u0B7F]+$/i},t=Fr.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/,"ta-IN":/^[0-9\u0B80-\u0BFF.]+$/i,"te-IN":/^[0-9\u0C00-\u0C7F.]+$/i,"kn-IN":/^[0-9\u0C80-\u0CFF.]+$/i,"ml-IN":/^[0-9\u0D00-\u0D7F.]+$/i,"gu-IN":/^[0-9\u0A80-\u0AFF.]+$/i,"pa-IN":/^[0-9\u0A00-\u0A7F.]+$/i,"or-IN":/^[0-9\u0B00-\u0B7F.]+$/i},r=Fr.decimal={"en-US":".",ar:"٫"},o=Fr.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],i,s=0;s<o.length;s++)i="en-".concat(o[s]),e[i]=e["en-US"],t[i]=t["en-US"],r[i]=r["en-US"];for(var a=Fr.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],l,c=0;c<a.length;c++)l="ar-".concat(a[c]),e[l]=e.ar,t[l]=t.ar,r[l]=r.ar;for(var u=Fr.farsiLocales=["IR","AF"],d,f=0;f<u.length;f++)d="fa-".concat(u[f]),t[d]=t.fa,r[d]=r.ar;for(var p=Fr.bengaliLocales=["BD","IN"],h,b=0;b<p.length;b++)h="bn-".concat(p[b]),e[h]=e.bn,t[h]=t.bn,r[h]=r["en-US"];for(var g=Fr.dotDecimal=["ar-EG","ar-LB","ar-LY"],y=Fr.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","gu-IN","hi-IN","hu-HU","id-ID","it-IT","kk-KZ","kn-IN","ku-IQ","ml-IN","nb-NO","nl-NL","nn-NO","or-IN","pa-IN","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS","sr-RS@latin","sv-SE","ta-IN","te-IN","tr-TR","uk-UA","vi-VN"],v=0;v<g.length;v++)r[g[v]]=r["en-US"];for(var C=0;C<y.length;C++)r[y[C]]=",";return e["fr-CA"]=e["fr-FR"],t["fr-CA"]=t["fr-FR"],e["pt-BR"]=e["pt-PT"],t["pt-BR"]=t["pt-PT"],r["pt-BR"]=r["pt-PT"],e["pl-Pl"]=e["pl-PL"],t["pl-Pl"]=t["pl-PL"],r["pl-Pl"]=r["pl-PL"],e["fa-AF"]=e.fa,Fr}var fL;function I5(){if(fL)return pd;fL=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.default=i,pd.locales=void 0;var e=o(rt()),t=o(E5()),r=Fm();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){(0,e.default)(s),a=a||{};var l=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(a.locale?r.decimal[a.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(s===""||s==="."||s===","||s==="-"||s==="+")return!1;var c=parseFloat(s.replace(",","."));return l.test(s)&&(!a.hasOwnProperty("min")||(0,t.default)(a.min)||c>=a.min)&&(!a.hasOwnProperty("max")||(0,t.default)(a.max)||c<=a.max)&&(!a.hasOwnProperty("lt")||(0,t.default)(a.lt)||c<a.lt)&&(!a.hasOwnProperty("gt")||(0,t.default)(a.gt)||c>a.gt)}return pd.locales=Object.keys(r.decimal),pd}var pL;function k5(){return pL||(pL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(I5());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s)?parseFloat(s):NaN}e.exports=t.default,e.exports.default=t.default})(yb,yb.exports)),yb.exports}var xb={exports:{}},hL;function Rge(){return hL||(hL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){return(0,r.default)(s),parseInt(s,a||10)}e.exports=t.default,e.exports.default=t.default})(xb,xb.exports)),xb.exports}var Sb={exports:{}},mL;function Mge(){return mL||(mL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){return(0,r.default)(s),a?s==="1"||/^true$/i.test(s):s!=="0"&&!/^false$/i.test(s)&&s!==""}e.exports=t.default,e.exports.default=t.default})(Sb,Sb.exports)),Sb.exports}var Cb={exports:{}},gL;function Age(){return gL||(gL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){return(0,r.default)(s),s===a}e.exports=t.default,e.exports.default=t.default})(Cb,Cb.exports)),Cb.exports}var wb={exports:{}},Tb={exports:{}},bL;function R5(){return bL||(bL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;function r(i){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(i)}function o(i){return r(i)==="object"&&i!==null?typeof i.toString=="function"?i=i.toString():i="[object Object]":(i===null||typeof i>"u"||isNaN(i)&&!i.length)&&(i=""),String(i)}e.exports=t.default,e.exports.default=t.default})(Tb,Tb.exports)),Tb.exports}var Ob={exports:{}},yL;function zo(){return yL||(yL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var s in i)typeof o[s]>"u"&&(o[s]=i[s]);return o}e.exports=t.default,e.exports.default=t.default})(Ob,Ob.exports)),Ob.exports}var vL;function Dge(){return vL||(vL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(rt()),o=s(R5()),i=s(zo());function s(c){return c&&c.__esModule?c:{default:c}}var a={ignoreCase:!1,minOccurrences:1};function l(c,u,d){return(0,r.default)(c),d=(0,i.default)(d,a),d.ignoreCase?c.toLowerCase().split((0,o.default)(u).toLowerCase()).length>d.minOccurrences:c.split((0,o.default)(u)).length>d.minOccurrences}e.exports=t.default,e.exports.default=t.default})(wb,wb.exports)),wb.exports}var Pb={exports:{}},xL;function _ge(){return xL||(xL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a,l){return(0,r.default)(s),Object.prototype.toString.call(a)!=="[object RegExp]"&&(a=new RegExp(a,l)),!!s.match(a)}e.exports=t.default,e.exports.default=t.default})(Pb,Pb.exports)),Pb.exports}var Eb={exports:{}},Ib={exports:{}},SL;function M5(){return SL||(SL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;function r(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function o(i,s){for(var a=0;a<s.length;a++){var l=s[a];if(i===l||r(l)&&l.test(i))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(Ib,Ib.exports)),Ib.exports}var kb={exports:{}},CL;function A5(){return CL||(CL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(a)}function s(a,l){(0,r.default)(a);var c,u;i(l)==="object"?(c=l.min||0,u=l.max):(c=arguments[1],u=arguments[2]);var d=encodeURI(a).split(/%..|./).length-1;return d>=c&&(typeof u>"u"||d<=u)}e.exports=t.default,e.exports.default=t.default})(kb,kb.exports)),kb.exports}var Rb={exports:{}},wL;function kI(){return wL||(wL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=i(zo());function i(l){return l&&l.__esModule?l:{default:l}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function a(l,c){(0,r.default)(l),c=(0,o.default)(c,s),c.allow_trailing_dot&&l[l.length-1]==="."&&(l=l.substring(0,l.length-1)),c.allow_wildcard===!0&&l.indexOf("*.")===0&&(l=l.substring(2));var u=l.split("."),d=u[u.length-1];return c.require_tld&&(u.length<2||!c.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(d)||/\s/.test(d))||!c.allow_numeric_tld&&/^\d+$/.test(d)?!1:u.every(function(f){return!(f.length>63&&!c.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(f)||/[\uff01-\uff5e]/.test(f)||/^-|-$/.test(f)||!c.allow_underscores&&/_/.test(f))})}e.exports=t.default,e.exports.default=t.default})(Rb,Rb.exports)),Rb.exports}var Mb={exports:{}},TL;function pS(){return TL||(TL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=o(rt());function o(f){return f&&f.__esModule?f:{default:f}}function i(f){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(f)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(s,"[.]){3}").concat(s),l=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function d(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(f);var h=(i(p)==="object"?p.version:arguments[1])||"";return h?h.toString()==="4"?l.test(f):h.toString()==="6"?u.test(f):!1:d(f,{version:4})||d(f,{version:6})}e.exports=t.default,e.exports.default=t.default})(Mb,Mb.exports)),Mb.exports}var OL;function D5(){return OL||(OL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var r=c(rt()),o=c(M5()),i=c(A5()),s=c(kI()),a=c(pS()),l=c(zo());function c(O){return O&&O.__esModule?O:{default:O}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},d=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,b=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,y=254;function v(O){var T=O.replace(/^"(.+)"$/,"$1");if(!T.trim())return!1;var P=/[\.";<>]/.test(T);if(P){if(T===O)return!1;var k=T.split('"').length===T.split('\\"').length;if(!k)return!1}return!0}function C(O,T){if((0,r.default)(O),T=(0,l.default)(T,u),T.require_display_name||T.allow_display_name){var P=O.match(d);if(P){var k=P[1];if(O=O.replace(k,"").replace(/(^<|>$)/g,""),k.endsWith(" ")&&(k=k.slice(0,-1)),!v(k))return!1}else if(T.require_display_name)return!1}if(!T.ignore_max_length&&O.length>y)return!1;var M=O.split("@"),_=M.pop(),D=_.toLowerCase();if(T.host_blacklist.length>0&&(0,o.default)(D,T.host_blacklist)||T.host_whitelist.length>0&&!(0,o.default)(D,T.host_whitelist))return!1;var A=M.join("@");if(T.domain_specific_validation&&(D==="gmail.com"||D==="googlemail.com")){A=A.toLowerCase();var F=A.split("+")[0];if(!(0,i.default)(F.replace(/\./g,""),{min:6,max:30}))return!1;for(var I=F.split("."),N=0;N<I.length;N++)if(!p.test(I[N]))return!1}if(T.ignore_max_length===!1&&(!(0,i.default)(A,{max:64})||!(0,i.default)(_,{max:254})))return!1;if(!(0,s.default)(_,{require_tld:T.require_tld,ignore_max_length:T.ignore_max_length,allow_underscores:T.allow_underscores})){if(!T.allow_ip_domain)return!1;if(!(0,a.default)(_)){if(!_.startsWith("[")||!_.endsWith("]"))return!1;var j=_.slice(1,-1);if(j.length===0||!(0,a.default)(j))return!1}}if(T.blacklisted_chars&&A.search(new RegExp("[".concat(T.blacklisted_chars,"]+"),"g"))!==-1)return!1;if(A[0]==='"'&&A[A.length-1]==='"')return A=A.slice(1,A.length-1),T.allow_utf8_local_part?g.test(A):h.test(A);for(var H=T.allow_utf8_local_part?b:f,$=A.split("."),B=0;B<$.length;B++)if(!H.test($[B]))return!1;return!0}e.exports=t.default,e.exports.default=t.default})(Eb,Eb.exports)),Eb.exports}var Ab={exports:{}},Db={exports:{}},PL;function _5(){return PL||(PL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(i,s){return i.indexOf(s)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(Db,Db.exports)),Db.exports}var EL;function Nge(){return EL||(EL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var r=c(rt()),o=c(M5()),i=c(_5()),s=c(kI()),a=c(pS()),l=c(zo());function c(C){return C&&C.__esModule?C:{default:C}}function u(C,O){return b(C)||h(C,O)||f(C,O)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
233
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(C,O){if(C){if(typeof C=="string")return p(C,O);var T={}.toString.call(C).slice(8,-1);return T==="Object"&&C.constructor&&(T=C.constructor.name),T==="Map"||T==="Set"?Array.from(C):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?p(C,O):void 0}}function p(C,O){(O==null||O>C.length)&&(O=C.length);for(var T=0,P=Array(O);T<O;T++)P[T]=C[T];return P}function h(C,O){var T=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(T!=null){var P,k,M,_,D=[],A=!0,F=!1;try{if(M=(T=T.call(C)).next,O!==0)for(;!(A=(P=M.call(T)).done)&&(D.push(P.value),D.length!==O);A=!0);}catch(I){F=!0,k=I}finally{try{if(!A&&T.return!=null&&(_=T.return(),Object(_)!==_))return}finally{if(F)throw k}}return D}}function b(C){if(Array.isArray(C))return C}var g={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},y=/^\[([^\]]+)\](?::([0-9]+))?$/;function v(C,O){if((0,r.default)(C),!C||/[\s<>]/.test(C)||C.indexOf("mailto:")===0||(O=(0,l.default)(O,g),O.validate_length&&C.length>O.max_allowed_length)||!O.allow_fragments&&(0,i.default)(C,"#")||!O.allow_query_components&&((0,i.default)(C,"?")||(0,i.default)(C,"&")))return!1;var T,P,k,M,_,D,A,F;A=C.split("#"),C=A.shift(),A=C.split("?"),C=A.shift();var I=C.match(/^([a-z][a-z0-9+\-.]*):/i),N=!1,j=function(Q){return N=!0,T=Q.toLowerCase(),O.require_valid_protocol&&O.protocols.indexOf(T)===-1?!1:C.substring(I[0].length)};if(I){var H=I[1],$=C.substring(I[0].length),B=$.slice(0,2)==="//";if(B){if(C=j(H),C===!1)return!1}else{var q=$.indexOf("/"),U=q===-1?$:$.substring(0,q),V=U.indexOf("@");if(V!==-1){var L=U.substring(0,V),G=/^[a-zA-Z0-9\-_.%:]*$/,Z=G.test(L),X=/%[0-9a-fA-F]{2}/.test(L);if(Z&&!X){if(O.require_protocol)return!1}else if(C=j(H),C===!1)return!1}else{var J=/^[0-9]/.test($);if(J){if(O.require_protocol)return!1}else if(C=j(H),C===!1)return!1}}}else if(O.require_protocol)return!1;if(C.slice(0,2)==="//"){if(!N&&!O.allow_protocol_relative_urls)return!1;C=C.slice(2)}if(C==="")return!1;if(A=C.split("/"),C=A.shift(),C===""&&!O.require_host)return!0;if(A=C.split("@"),A.length>1){if(O.disallow_auth||A[0]===""||(P=A.shift(),P.indexOf(":")>=0&&P.split(":").length>2))return!1;var te=P.split(":"),ce=u(te,2),me=ce[0],re=ce[1];if(me===""&&re==="")return!1}M=A.join("@"),D=null,F=null;var se=M.match(y);if(se?(k="",F=se[1],D=se[2]||null):(A=M.split(":"),k=A.shift(),A.length&&(D=A.join(":"))),D!==null&&D.length>0){if(_=parseInt(D,10),!/^[0-9]+$/.test(D)||_<=0||_>65535)return!1}else if(O.require_port)return!1;return O.host_whitelist?(0,o.default)(k,O.host_whitelist):k===""&&!O.require_host?!0:!(!(0,a.default)(k)&&!(0,s.default)(k,O)&&(!F||!(0,a.default)(F,6))||(k=k||F,O.host_blacklist&&(0,o.default)(k,O.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(Ab,Ab.exports)),Ab.exports}var _b={exports:{}},IL;function Fge(){return IL||(IL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=o(rt());function o(f){return f&&f.__esModule?f:{default:f}}var i=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,l=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,c=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;function d(f,p){return(0,r.default)(f),p!=null&&p.eui&&(p.eui=String(p.eui)),p!=null&&p.no_colons||p!=null&&p.no_separators?p.eui==="48"?s.test(f):p.eui==="64"?c.test(f):s.test(f)||c.test(f):p?.eui==="48"?i.test(f)||a.test(f):p?.eui==="64"?l.test(f)||u.test(f):d(f,{eui:"48"})||d(f,{eui:"64"})}e.exports=t.default,e.exports.default=t.default})(_b,_b.exports)),_b.exports}var Nb={exports:{}},kL;function Lge(){return kL||(kL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=i(rt()),o=i(pS());function i(u){return u&&u.__esModule?u:{default:u}}var s=/^\d{1,3}$/,a=32,l=128;function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(0,r.default)(u);var f=u.split("/");if(f.length!==2||!s.test(f[1])||f[1].length>1&&f[1].startsWith("0"))return!1;var p=(0,o.default)(f[0],d);if(!p)return!1;var h=null;switch(String(d)){case"4":h=a;break;case"6":h=l;break;default:h=(0,o.default)(f[0],"6")?l:a}return f[1]<=h&&f[1]>=0}e.exports=t.default,e.exports.default=t.default})(Nb,Nb.exports)),Nb.exports}var Fb={exports:{}},RL;function N5(){return RL||(RL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=o(zo());function o(g){return g&&g.__esModule?g:{default:g}}function i(g,y){return l(g)||a(g,y)||u(g,y)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
234
234
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(g,y){var v=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(v!=null){var C,O,T,P,k=[],M=!0,_=!1;try{if(T=(v=v.call(g)).next,y!==0)for(;!(M=(C=T.call(v)).done)&&(k.push(C.value),k.length!==y);M=!0);}catch(D){_=!0,O=D}finally{try{if(!M&&v.return!=null&&(P=v.return(),Object(P)!==P))return}finally{if(_)throw O}}return k}}function l(g){if(Array.isArray(g))return g}function c(g,y){var v=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!v){if(Array.isArray(g)||(v=u(g))||y){v&&(g=v);var C=0,O=function(){};return{s:O,n:function(){return C>=g.length?{done:!0}:{done:!1,value:g[C++]}},e:function(_){throw _},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
235
235
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T,P=!0,k=!1;return{s:function(){v=v.call(g)},n:function(){var _=v.next();return P=_.done,_},e:function(_){k=!0,T=_},f:function(){try{P||v.return==null||v.return()}finally{if(k)throw T}}}}function u(g,y){if(g){if(typeof g=="string")return d(g,y);var v={}.toString.call(g).slice(8,-1);return v==="Object"&&g.constructor&&(v=g.constructor.name),v==="Map"||v==="Set"?Array.from(g):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?d(g,y):void 0}}function d(g,y){(y==null||y>g.length)&&(y=g.length);for(var v=0,C=Array(y);v<y;v++)C[v]=g[v];return C}var f={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function p(g){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(g)}function h(g,y){for(var v=[],C=Math.max(g.length,y.length),O=0;O<C;O++)v.push([g[O],y[O]]);return v}function b(g,y){if(typeof y=="string"?y=(0,r.default)({format:y},f):y=(0,r.default)(y,f),typeof g=="string"&&p(y.format)){if(y.strictMode&&g.length!==y.format.length)return!1;var v=y.delimiters.find(function(H){return y.format.indexOf(H)!==-1}),C=y.strictMode?v:y.delimiters.find(function(H){return g.indexOf(H)!==-1}),O=h(g.split(C),y.format.toLowerCase().split(v)),T={},P=c(O),k;try{for(P.s();!(k=P.n()).done;){var M=i(k.value,2),_=M[0],D=M[1];if(!_||!D||_.length!==D.length)return!1;T[D.charAt(0)]=_}}catch(H){P.e(H)}finally{P.f()}var A=T.y;if(A.startsWith("-"))return!1;if(T.y.length===2){var F=parseInt(T.y,10);if(isNaN(F))return!1;var I=new Date().getFullYear()%100;F<I?A="20".concat(T.y):A="19".concat(T.y)}var N=T.m;T.m.length===1&&(N="0".concat(T.m));var j=T.d;return T.d.length===1&&(j="0".concat(T.d)),new Date("".concat(A,"-").concat(N,"-").concat(j,"T00:00:00.000Z")).getUTCDate()===+T.d}return y.strictMode?!1:Object.prototype.toString.call(g)==="[object Date]"&&isFinite(g)}e.exports=t.default,e.exports.default=t.default})(Fb,Fb.exports)),Fb.exports}var Lb={exports:{}},ML;function $ge(){return ML||(ML=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=o(zo());function o(l){return l&&l.__esModule?l:{default:l}}var i={hourFormat:"hour24",mode:"default"},s={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/,withOptionalSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9]))?$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/,withOptionalSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9])(?::([0-5][0-9]))? (A|P)M$/}};function a(l,c){return c=(0,r.default)(c,i),typeof l!="string"?!1:s[c.hourFormat][c.mode].test(l)}e.exports=t.default,e.exports.default=t.default})(Lb,Lb.exports)),Lb.exports}var $b={exports:{}},jb={exports:{}},AL;function Lm(){return AL||(AL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(i,s){return i.some(function(a){return s===a})};t.default=r,e.exports=t.default,e.exports.default=t.default})(jb,jb.exports)),jb.exports}var DL;function jge(){return DL||(DL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=i(rt()),o=i(Lm());function i(u){return u&&u.__esModule?u:{default:u}}var s={loose:!1},a=["true","false","1","0"],l=[].concat(a,["yes","no"]);function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return(0,r.default)(u),d.loose?(0,o.default)(l,u.toLowerCase()):(0,o.default)(a,u)}e.exports=t.default,e.exports.default=t.default})($b,$b.exports)),$b.exports}var Bb={exports:{}},_L;function Bge(){return _L||(_L=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var r=o(rt());function o(O){return O&&O.__esModule?O:{default:O}}var i="([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",s="(([a-zA-Z]{2,3}(-".concat(i,")?)|([a-zA-Z]{5,8}))"),a="([A-Za-z]{4})",l="([A-Za-z]{2}|\\d{3})",c="([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",u="(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])",d="(".concat(u,"(-[A-Za-z0-9]{2,8})+)"),f="(x(-[A-Za-z0-9]{1,8})+)",p="((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))",h="((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",b="(".concat(p,"|").concat(h,")"),g="(-|_)",y="".concat(s,"(").concat(g).concat(a,")?(").concat(g).concat(l,")?(").concat(g).concat(c,")*(").concat(g).concat(d,")*(").concat(g).concat(f,")?"),v=new RegExp("(^".concat(f,"$)|(^").concat(b,"$)|(^").concat(y,"$)"));function C(O){return(0,r.default)(O),v.test(O)}e.exports=t.default,e.exports.default=t.default})(Bb,Bb.exports)),Bb.exports}var Vb={exports:{}},NL;function Vge(){return NL||(NL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;function s(a){if((0,r.default)(a),!i.test(a))return!1;for(var l=0,c=0;c<a.length;c++)c%3===0?l+=a[c]*3:c%3===1?l+=a[c]*7:l+=a[c]*1;return l%10===0}e.exports=t.default,e.exports.default=t.default})(Vb,Vb.exports)),Vb.exports}var hd={},FL;function Hge(){if(FL)return hd;FL=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.default=o,hd.locales=void 0;var e=r(rt()),t=Fm();function r(i){return i&&i.__esModule?i:{default:i}}function o(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,e.default)(i);var l=i,c=a.ignore;if(c)if(c instanceof RegExp)l=l.replace(c,"");else if(typeof c=="string")l=l.replace(new RegExp("[".concat(c.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(s in t.alpha)return t.alpha[s].test(l);throw new Error("Invalid locale '".concat(s,"'"))}return hd.locales=Object.keys(t.alpha),hd}var md={},LL;function zge(){if(LL)return md;LL=1,Object.defineProperty(md,"__esModule",{value:!0}),md.default=o,md.locales=void 0;var e=r(rt()),t=Fm();function r(i){return i&&i.__esModule?i:{default:i}}function o(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,e.default)(i);var l=i,c=a.ignore;if(c)if(c instanceof RegExp)l=l.replace(c,"");else if(typeof c=="string")l=l.replace(new RegExp("[".concat(c.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(s in t.alphanumeric)return t.alphanumeric[s].test(l);throw new Error("Invalid locale '".concat(s,"'"))}return md.locales=Object.keys(t.alphanumeric),md}var Hb={exports:{}},$L;function qge(){return $L||($L=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=Fm();function i(l){return l&&l.__esModule?l:{default:l}}var s=/^[0-9]+$/;function a(l,c){return(0,r.default)(l),c&&c.no_symbols?s.test(l):new RegExp("^[+-]?([0-9]*[".concat((c||{}).locale?o.decimal[c.locale]:".","])?[0-9]+$")).test(l)}e.exports=t.default,e.exports.default=t.default})(Hb,Hb.exports)),Hb.exports}var gd={},jL;function Uge(){if(jL)return gd;jL=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.default=o,gd.locales=void 0;var e=t(rt());function t(i){return i&&i.__esModule?i:{default:i}}var r={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$|^[A-Z]\d{6}[A-Z]{2}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$|^[A-Z]\d{8}$/,ZA:/^[TAMD]\d{8}$/};gd.locales=Object.keys(r);function o(i,s){(0,e.default)(i);var a=i.replace(/\s/g,"").toUpperCase();return s.toUpperCase()in r&&r[s].test(a)}return gd}var zb={exports:{}},qb={exports:{}},BL;function RI(){return BL||(BL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=i(rt()),o=i(E5());function i(c){return c&&c.__esModule?c:{default:c}}var s=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;function l(c,u){(0,r.default)(c),u=u||{};var d=u.allow_leading_zeroes===!1?s:a,f=!u.hasOwnProperty("min")||(0,o.default)(u.min)||c>=u.min,p=!u.hasOwnProperty("max")||(0,o.default)(u.max)||c<=u.max,h=!u.hasOwnProperty("lt")||(0,o.default)(u.lt)||c<u.lt,b=!u.hasOwnProperty("gt")||(0,o.default)(u.gt)||c>u.gt;return d.test(c)&&f&&p&&h&&b}e.exports=t.default,e.exports.default=t.default})(qb,qb.exports)),qb.exports}var VL;function Gge(){return VL||(VL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(RI());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s,{allow_leading_zeroes:!1,min:0,max:65535})}e.exports=t.default,e.exports.default=t.default})(zb,zb.exports)),zb.exports}var Ub={exports:{}},HL;function Wge(){return HL||(HL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s),s===s.toLowerCase()}e.exports=t.default,e.exports.default=t.default})(Ub,Ub.exports)),Ub.exports}var Gb={exports:{}},zL;function Kge(){return zL||(zL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s),s===s.toUpperCase()}e.exports=t.default,e.exports.default=t.default})(Gb,Gb.exports)),Gb.exports}var Wb={exports:{}},qL;function Yge(){return qL||(qL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=o(rt());function o(l){return l&&l.__esModule?l:{default:l}}var i=/^[0-9]{15}$/,s=/^\d{2}-\d{6}-\d{6}-\d{1}$/;function a(l,c){(0,r.default)(l),c=c||{};var u=i;if(c.allow_hyphens&&(u=s),!u.test(l))return!1;l=l.replace(/-/g,"");for(var d=0,f=2,p=14,h=0;h<p;h++){var b=l.substring(p-h-1,p-h),g=parseInt(b,10)*f;g>=10?d+=g%10+1:d+=g,f===1?f+=1:f-=1}var y=(10-d%10)%10;return y===parseInt(l.substring(14,15),10)}e.exports=t.default,e.exports.default=t.default})(Wb,Wb.exports)),Wb.exports}var Kb={exports:{}},UL;function Zge(){return UL||(UL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^[\x00-\x7F]+$/;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(Kb,Kb.exports)),Kb.exports}var bd={},GL;function F5(){if(GL)return bd;GL=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.default=o,bd.fullWidth=void 0;var e=t(rt());function t(i){return i&&i.__esModule?i:{default:i}}var r=bd.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function o(i){return(0,e.default)(i),r.test(i)}return bd}var yd={},WL;function L5(){if(WL)return yd;WL=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.default=o,yd.halfWidth=void 0;var e=t(rt());function t(i){return i&&i.__esModule?i:{default:i}}var r=yd.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function o(i){return(0,e.default)(i),r.test(i)}return yd}var Yb={exports:{}},KL;function Xge(){return KL||(KL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=s(rt()),o=F5(),i=L5();function s(l){return l&&l.__esModule?l:{default:l}}function a(l){return(0,r.default)(l),o.fullWidth.test(l)&&i.halfWidth.test(l)}e.exports=t.default,e.exports.default=t.default})(Yb,Yb.exports)),Yb.exports}var Zb={exports:{}},YL;function Qge(){return YL||(YL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/[^\x00-\x7F]/;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(Zb,Zb.exports)),Zb.exports}var Xb={exports:{}},Qb={exports:{}},ZL;function Jge(){return ZL||(ZL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o,i){var s=o.join("");return new RegExp(s,i)}e.exports=t.default,e.exports.default=t.default})(Qb,Qb.exports)),Qb.exports}var XL;function ebe(){return XL||(XL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=i(Jge());function i(l){return l&&l.__esModule?l:{default:l}}var s=(0,o.default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");function a(l){return(0,r.default)(l),s.test(l)}e.exports=t.default,e.exports.default=t.default})(Xb,Xb.exports)),Xb.exports}var Jb={exports:{}},QL;function tbe(){return QL||(QL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(Jb,Jb.exports)),Jb.exports}var ey={exports:{}},JL;function nbe(){return JL||(JL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=a(zo()),o=a(rt()),i=a(Lm()),s=Fm();function a(f){return f&&f.__esModule?f:{default:f}}function l(f){var p=new RegExp("^[-+]?([0-9]+)?(\\".concat(s.decimal[f.locale],"[0-9]{").concat(f.decimal_digits,"})").concat(f.force_decimal?"":"?","$"));return p}var c={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];function d(f,p){if((0,o.default)(f),p=(0,r.default)(p,c),p.locale in s.decimal)return!(0,i.default)(u,f.replace(/ /g,""))&&l(p).test(f);throw new Error("Invalid locale '".concat(p.locale,"'"))}e.exports=t.default,e.exports.default=t.default})(ey,ey.exports)),ey.exports}var ty={exports:{}},e2;function $5(){return e2||(e2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^(0x|0h)?[0-9A-F]+$/i;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(ty,ty.exports)),ty.exports}var ny={exports:{}},t2;function rbe(){return t2||(t2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^(0o)?[0-7]+$/i;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(ny,ny.exports)),ny.exports}var ry={exports:{}},n2;function obe(){return n2||(n2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(rt()),o=i(k5());function i(a){return a&&a.__esModule?a:{default:a}}function s(a,l){return(0,r.default)(a),(0,o.default)(a)%parseInt(l,10)===0}e.exports=t.default,e.exports.default=t.default})(ry,ry.exports)),ry.exports}var oy={exports:{}},r2;function ibe(){return r2||(r2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=i(rt()),o=i(zo());function i(u){return u&&u.__esModule?u:{default:u}}var s=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,a=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,l={require_hashtag:!1};function c(u,d){(0,r.default)(u),d=(0,o.default)(d,l);var f=d.require_hashtag?a:s;return f.test(u)}e.exports=t.default,e.exports.default=t.default})(oy,oy.exports)),oy.exports}var iy={exports:{}},o2;function sbe(){return o2||(o2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=o(rt());function o(f){return f&&f.__esModule?f:{default:f}}function i(f){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(f)}var s=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,c=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/,u=/^rgba?/;function d(f,p){(0,r.default)(f);var h=!1,b=!0;if(i(p)!=="object"?arguments.length>=2&&(b=arguments[1]):(h=p.allowSpaces!==void 0?p.allowSpaces:h,b=p.includePercentValues!==void 0?p.includePercentValues:b),h){if(!u.test(f))return!1;f=f.replace(/\s/g,"")}return b?s.test(f)||a.test(f)||l.test(f)||c.test(f):s.test(f)||a.test(f)}e.exports=t.default,e.exports.default=t.default})(iy,iy.exports)),iy.exports}var sy={exports:{}},i2;function abe(){return i2||(i2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=o(rt());function o(l){return l&&l.__esModule?l:{default:l}}var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,s=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;function a(l){(0,r.default)(l);var c=l.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/ig,"$1");return c.indexOf(",")!==-1?i.test(c):s.test(c)}e.exports=t.default,e.exports.default=t.default})(sy,sy.exports)),sy.exports}var ay={exports:{}},s2;function lbe(){return s2||(s2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(ay,ay.exports)),ay.exports}var vd={},a2;function cbe(){if(a2)return vd;a2=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.default=l,vd.locales=void 0;var e=r(rt()),t=r(Lm());function r(c){return c&&c.__esModule?c:{default:c}}var o={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})\d{22}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function i(c){var u=c.filter(function(d){return!(d in o)});return!(u.length>0)}function s(c,u){var d=c.replace(/[\s\-]+/gi,"").toUpperCase(),f=d.slice(0,2).toUpperCase(),p=f in o;if(u.whitelist){if(!i(u.whitelist))return!1;var h=(0,t.default)(u.whitelist,f);if(!h)return!1}if(u.blacklist){var b=(0,t.default)(u.blacklist,f);if(b)return!1}return p&&o[f].test(d)}function a(c){var u=c.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),d=u.slice(4)+u.slice(0,4),f=d.replace(/[A-Z]/g,function(h){return h.charCodeAt(0)-55}),p=f.match(/\d{1,7}/g).reduce(function(h,b){return Number(h+b)%97},"");return p===1}function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,e.default)(c),s(c,u)&&a(c)}return vd.locales=Object.keys(o),vd}var ly={exports:{}},xd={},l2;function j5(){if(l2)return xd;l2=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.CountryCodes=void 0,xd.default=o;var e=t(rt());function t(i){return i&&i.__esModule?i:{default:i}}var r=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function o(i){return(0,e.default)(i),r.has(i.toUpperCase())}return xd.CountryCodes=r,xd}var c2;function ube(){return c2||(c2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=j5();function i(l){return l&&l.__esModule?l:{default:l}}var s=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function a(l){(0,r.default)(l);var c=l.slice(4,6).toUpperCase();return!o.CountryCodes.has(c)&&c!=="XK"?!1:s.test(l)}e.exports=t.default,e.exports.default=t.default})(ly,ly.exports)),ly.exports}var cy={exports:{}},u2;function dbe(){return u2||(u2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^[a-f0-9]{32}$/;function s(a){return(0,r.default)(a),i.test(a)}e.exports=t.default,e.exports.default=t.default})(cy,cy.exports)),cy.exports}var uy={exports:{}},d2;function fbe(){return d2||(d2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};function s(a,l){(0,r.default)(a);var c=new RegExp("^[a-fA-F0-9]{".concat(i[l],"}$"));return c.test(a)}e.exports=t.default,e.exports.default=t.default})(uy,uy.exports)),uy.exports}var dy={exports:{}},fy={exports:{}},f2;function B5(){return f2||(f2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=i(rt()),o=i(zo());function i(d){return d&&d.__esModule?d:{default:d}}var s=/^[A-Za-z0-9+/]+={0,2}$/,a=/^[A-Za-z0-9+/]+$/,l=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function u(d,f){var p;if((0,r.default)(d),f=(0,o.default)(f,{urlSafe:!1,padding:!((p=f)!==null&&p!==void 0&&p.urlSafe)}),d==="")return!0;if(f.padding&&d.length%4!==0)return!1;var h;return f.urlSafe?h=f.padding?l:c:h=f.padding?s:a,(!f.padding||d.length%4===0)&&h.test(d)}e.exports=t.default,e.exports.default=t.default})(fy,fy.exports)),fy.exports}var p2;function pbe(){return p2||(p2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(rt()),o=i(B5());function i(a){return a&&a.__esModule?a:{default:a}}function s(a){(0,r.default)(a);var l=a.split("."),c=l.length;return c!==3?!1:l.reduce(function(u,d){return u&&(0,o.default)(d,{urlSafe:!0})},!0)}e.exports=t.default,e.exports.default=t.default})(dy,dy.exports)),dy.exports}var py={exports:{}},h2;function hbe(){return h2||(h2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=s(rt()),o=s(Lm()),i=s(zo());function s(u){return u&&u.__esModule?u:{default:u}}function a(u){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},a(u)}var l={allow_primitives:!1};function c(u,d){(0,r.default)(u);try{d=(0,i.default)(d,l);var f=[];d.allow_primitives&&(f=[null,!1,!0]);var p=JSON.parse(u);return(0,o.default)(f,p)||!!p&&a(p)==="object"}catch{}return!1}e.exports=t.default,e.exports.default=t.default})(py,py.exports)),py.exports}var hy={exports:{}},m2;function mbe(){return m2||(m2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=i(zo());function i(l){return l&&l.__esModule?l:{default:l}}var s={ignore_whitespace:!1};function a(l,c){return(0,r.default)(l),c=(0,o.default)(c,s),(c.ignore_whitespace?l.trim().length:l.length)===0}e.exports=t.default,e.exports.default=t.default})(hy,hy.exports)),hy.exports}var my={exports:{}},g2;function gbe(){return g2||(g2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(a)}function s(a,l){(0,r.default)(a);var c,u;i(l)==="object"?(c=l.min||0,u=l.max):(c=arguments[1]||0,u=arguments[2]);var d=a.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],f=a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],p=a.length-d.length-f.length,h=p>=c&&(typeof u>"u"||p<=u);return h&&Array.isArray(l?.discreteLengths)?l.discreteLengths.some(function(b){return b===p}):h}e.exports=t.default,e.exports.default=t.default})(my,my.exports)),my.exports}var gy={exports:{}},b2;function bbe(){return b2||(b2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,r.default)(s),/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(s)}e.exports=t.default,e.exports.default=t.default})(gy,gy.exports)),gy.exports}var by={exports:{}},y2;function ybe(){return y2||(y2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,6:/^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,8:/^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,nil:/^00000000-0000-0000-0000-000000000000$/i,max:/^ffffffff-ffff-ffff-ffff-ffffffffffff$/i,loose:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,all:/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i};function s(a,l){return(0,r.default)(a),l==null&&(l="all"),l in i?i[l].test(a):!1}e.exports=t.default,e.exports.default=t.default})(by,by.exports)),by.exports}var yy={exports:{}},v2;function vbe(){return v2||(v2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(rt()),o=i($5());function i(a){return a&&a.__esModule?a:{default:a}}function s(a){return(0,r.default)(a),(0,o.default)(a)&&a.length===24}e.exports=t.default,e.exports.default=t.default})(yy,yy.exports)),yy.exports}var vy={exports:{}},x2;function xbe(){return x2||(x2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(II());function o(a){return a&&a.__esModule?a:{default:a}}function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(a)}function s(a,l){var c=(i(l)==="object"?l.comparisonDate:l)||Date().toString(),u=(0,r.default)(c),d=(0,r.default)(a);return!!(d&&u&&d>u)}e.exports=t.default,e.exports.default=t.default})(vy,vy.exports)),vy.exports}var xy={exports:{}},S2;function Sbe(){return S2||(S2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(II());function o(a){return a&&a.__esModule?a:{default:a}}function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(a)}function s(a,l){var c=(i(l)==="object"?l.comparisonDate:l)||Date().toString(),u=(0,r.default)(c),d=(0,r.default)(a);return!!(d&&u&&d<u)}e.exports=t.default,e.exports.default=t.default})(xy,xy.exports)),xy.exports}var Sy={exports:{}},C2;function Cbe(){return C2||(C2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(rt()),o=i(R5());function i(l){return l&&l.__esModule?l:{default:l}}function s(l){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},s(l)}function a(l,c){(0,r.default)(l);var u;if(Object.prototype.toString.call(c)==="[object Array]"){var d=[];for(u in c)({}).hasOwnProperty.call(c,u)&&(d[u]=(0,o.default)(c[u]));return d.indexOf(l)>=0}else{if(s(c)==="object")return c.hasOwnProperty(l);if(c&&typeof c.indexOf=="function")return c.indexOf(l)>=0}return!1}e.exports=t.default,e.exports.default=t.default})(Sy,Sy.exports)),Sy.exports}var Cy={exports:{}},w2;function V5(){return w2||(w2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(rt());function o(s){return s&&s.__esModule?s:{default:s}}function i(s){(0,r.default)(s);for(var a=s.replace(/[- ]+/g,""),l=0,c,u,d,f=a.length-1;f>=0;f--)c=a.substring(f,f+1),u=parseInt(c,10),d?(u*=2,u>=10?l+=u%10+1:l+=u):l+=u,d=!d;return!!(l%10===0&&a)}e.exports=t.default,e.exports.default=t.default})(Cy,Cy.exports)),Cy.exports}var wy={exports:{}},T2;function wbe(){return T2||(T2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=i(rt()),o=i(V5());function i(c){return c&&c.__esModule?c:{default:c}}var s={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},a=(function(){var c=[];for(var u in s)s.hasOwnProperty(u)&&c.push(s[u]);return c})();function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(c);var d=u.provider,f=c.replace(/[- ]+/g,"");if(d&&d.toLowerCase()in s){if(!s[d.toLowerCase()].test(f))return!1}else{if(d&&!(d.toLowerCase()in s))throw new Error("".concat(d," is not a valid credit card provider."));if(!a.some(function(p){return p.test(f)}))return!1}return(0,o.default)(c)}e.exports=t.default,e.exports.default=t.default})(wy,wy.exports)),wy.exports}var Ty={exports:{}},O2;function Tbe(){return O2||(O2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(rt()),o=s(Lm()),i=s(RI());function s(c){return c&&c.__esModule?c:{default:c}}var a={PL:function(u){(0,r.default)(u);var d={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(u!=null&&u.length===11&&(0,i.default)(u,{allow_leading_zeroes:!0})){var f=u.split("").slice(0,-1),p=f.reduce(function(g,y,v){return g+Number(y)*d[v+1]},0),h=p%10,b=Number(u.charAt(u.length-1));if(h===0&&b===0||b===10-h)return!0}return!1},ES:function(u){(0,r.default)(u);var d=/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/,f={X:0,Y:1,Z:2},p=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"],h=u.trim().toUpperCase();if(!d.test(h))return!1;var b=h.slice(0,-1).replace(/[X,Y,Z]/g,function(g){return f[g]});return h.endsWith(p[b%23])},FI:function(u){if((0,r.default)(u),u.length!==11||!u.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;var d="0123456789ABCDEFHJKLMNPRSTUVWXY",f=parseInt(u.slice(0,6),10)*1e3+parseInt(u.slice(7,10),10),p=f%31,h=d[p];return h===u.slice(10,11)},IN:function(u){var d=/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/,f=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],p=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],h=u.trim();if(!d.test(h))return!1;var b=0,g=h.replace(/\s/g,"").split("").map(Number).reverse();return g.forEach(function(y,v){b=f[b][p[v%8][y]]}),b===0},IR:function(u){if(!u.match(/^\d{10}$/)||(u="0000".concat(u).slice(u.length-6),parseInt(u.slice(3,9),10)===0))return!1;for(var d=parseInt(u.slice(9,10),10),f=0,p=0;p<9;p++)f+=parseInt(u.slice(p,p+1),10)*(10-p);return f%=11,f<2&&d===f||f>=2&&d===11-f},IT:function(u){return u.length!==9||u==="CA00000AA"?!1:u.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1},NO:function(u){var d=u.trim();if(isNaN(Number(d))||d.length!==11||d==="00000000000")return!1;var f=d.split("").map(Number),p=(11-(3*f[0]+7*f[1]+6*f[2]+1*f[3]+8*f[4]+9*f[5]+4*f[6]+5*f[7]+2*f[8])%11)%11,h=(11-(5*f[0]+4*f[1]+3*f[2]+2*f[3]+7*f[4]+6*f[5]+5*f[6]+4*f[7]+3*f[8]+2*p)%11)%11;return!(p!==f[9]||h!==f[10])},TH:function(u){if(!u.match(/^[1-8]\d{12}$/))return!1;for(var d=0,f=0;f<12;f++)d+=parseInt(u[f],10)*(13-f);return u[12]===((11-d%11)%10).toString()},LK:function(u){var d=/^[1-9]\d{8}[vx]$/i,f=/^[1-9]\d{11}$/i;return u.length===10&&d.test(u)?!0:!!(u.length===12&&f.test(u))},"he-IL":function(u){var d=/^\d{9}$/,f=u.trim();if(!d.test(f))return!1;for(var p=f,h=0,b,g=0;g<p.length;g++)b=Number(p[g])*(g%2+1),h+=b>9?b-9:b;return h%10===0},"ar-LY":function(u){var d=/^(1|2)\d{11}$/,f=u.trim();return!!d.test(f)},"ar-TN":function(u){var d=/^\d{8}$/,f=u.trim();return!!d.test(f)},"zh-CN":function(u){var d=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],f=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],p=["1","0","X","9","8","7","6","5","4","3","2"],h=function(P){return(0,o.default)(d,P)},b=function(P){var k=parseInt(P.substring(0,4),10),M=parseInt(P.substring(4,6),10),_=parseInt(P.substring(6),10),D=new Date(k,M-1,_);return D>new Date?!1:D.getFullYear()===k&&D.getMonth()===M-1&&D.getDate()===_},g=function(P){for(var k=P.substring(0,17),M=0,_=0;_<17;_++)M+=parseInt(k.charAt(_),10)*parseInt(f[_],10);var D=M%11;return p[D]},y=function(P){return g(P)===P.charAt(17).toUpperCase()},v=function(P){var k=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(P);if(!k)return!1;var M=P.substring(0,2);if(k=h(M),!k)return!1;var _="19".concat(P.substring(6,12));return k=b(_),!!k},C=function(P){var k=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(P);if(!k)return!1;var M=P.substring(0,2);if(k=h(M),!k)return!1;var _=P.substring(6,14);return k=b(_),k?y(P):!1},O=function(P){var k=/^\d{15}|(\d{17}(\d|x|X))$/.test(P);return k?P.length===15?v(P):C(P):!1};return O(u)},"zh-HK":function(u){u=u.trim();var d=/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/,f=/^[0-9]$/;if(u=u.toUpperCase(),!d.test(u))return!1;u=u.replace(/\[|\]|\(|\)/g,""),u.length===8&&(u="3".concat(u));for(var p=0,h=0;h<=7;h++){var b=void 0;f.test(u[h])?b=u[h]:b=(u[h].charCodeAt(0)-55)%11,p+=b*(9-h)}p%=11;var g;return p===0?g="0":p===1?g="A":g=String(11-p),g===u[u.length-1]},"zh-TW":function(u){var d={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},f=u.trim().toUpperCase();return/^[A-Z][0-9]{9}$/.test(f)?Array.from(f).reduce(function(p,h,b){if(b===0){var g=d[h];return g%10*9+Math.floor(g/10)}return b===9?(10-p%10-Number(h))%10===0:p+Number(h)*(9-b)},0):!1},PK:function(u){var d=/^[1-7][0-9]{4}-[0-9]{7}-[1-9]$/,f=u.trim();return d.test(f)}};function l(c,u){if((0,r.default)(c),u in a)return a[u](c);if(u==="any"){for(var d in a)if(a.hasOwnProperty(d)){var f=a[d];if(f(c))return!0}return!1}throw new Error("Invalid locale '".concat(u,"'"))}e.exports=t.default,e.exports.default=t.default})(Ty,Ty.exports)),Ty.exports}var Oy={exports:{}},P2;function Obe(){return P2||(P2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=o(rt());function o(d){return d&&d.__esModule?d:{default:d}}var i=8,s=14,a=/^(\d{8}|\d{13}|\d{14})$/;function l(d,f){return d===i||d===s?f%2===0?3:1:f%2===0?1:3}function c(d){var f=d.slice(0,-1).split("").map(function(h,b){return Number(h)*l(d.length,b)}).reduce(function(h,b){return h+b},0),p=10-f%10;return p<10?p:0}function u(d){(0,r.default)(d);var f=Number(d.slice(-1));return a.test(d)&&f===c(d)}e.exports=t.default,e.exports.default=t.default})(Oy,Oy.exports)),Oy.exports}var Py={exports:{}},E2;function Pbe(){return E2||(E2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function s(a){if((0,r.default)(a),!i.test(a))return!1;for(var l=!0,c=0,u=a.length-2;u>=0;u--)if(a[u]>="A"&&a[u]<="Z")for(var d=a[u].charCodeAt(0)-55,f=d%10,p=Math.trunc(d/10),h=0,b=[f,p];h<b.length;h++){var g=b[h];l?g>=5?c+=1+(g-5)*2:c+=g*2:c+=g,l=!l}else{var y=a[u].charCodeAt(0)-48;l?y>=5?c+=1+(y-5)*2:c+=y*2:c+=y,l=!l}var v=Math.trunc((c+9)/10)*10-c;return+a[a.length-1]===v}e.exports=t.default,e.exports.default=t.default})(Py,Py.exports)),Py.exports}var Ey={exports:{}},I2;function Ebe(){return I2||(I2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=o(rt());function o(c){return c&&c.__esModule?c:{default:c}}var i=/^(?:[0-9]{9}X|[0-9]{10})$/,s=/^(?:[0-9]{13})$/,a=[1,3];function l(c,u){(0,r.default)(c);var d=String(u?.version||u);if(!(u!=null&&u.version||u))return l(c,{version:10})||l(c,{version:13});var f=c.replace(/[\s-]+/g,""),p=0;if(d==="10"){if(!i.test(f))return!1;for(var h=0;h<d-1;h++)p+=(h+1)*f.charAt(h);if(f.charAt(9)==="X"?p+=100:p+=10*f.charAt(9),p%11===0)return!0}else if(d==="13"){if(!s.test(f))return!1;for(var b=0;b<12;b++)p+=a[b%2]*f.charAt(b);if(f.charAt(12)-(10-p%10)%10===0)return!0}return!1}e.exports=t.default,e.exports.default=t.default})(Ey,Ey.exports)),Ey.exports}var Iy={exports:{}},k2;function Ibe(){return k2||(k2=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(rt());function o(a){return a&&a.__esModule?a:{default:a}}var i="^\\d{4}-?\\d{3}[\\dX]$";function s(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(a);var c=i;if(c=l.require_hyphen?c.replace("?",""):c,c=l.case_sensitive?new RegExp(c):new RegExp(c,"i"),!c.test(a))return!1;for(var u=a.replace("-","").toUpperCase(),d=0,f=0;f<u.length;f++){var p=u[f];d+=(p==="X"?10:+p)*(8-f)}return d%11===0}e.exports=t.default,e.exports.default=t.default})(Iy,Iy.exports)),Iy.exports}var ky={exports:{}},Nc={},R2;function H5(){if(R2)return Nc;R2=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.iso7064Check=e,Nc.luhnCheck=t,Nc.reverseMultiplyAndSum=r,Nc.verhoeffCheck=o;function e(i){for(var s=10,a=0;a<i.length-1;a++)s=(parseInt(i[a],10)+s)%10===0?20%11:(parseInt(i[a],10)+s)%10*2%11;return s=s===1?0:11-s,s===parseInt(i[10],10)}function t(i){for(var s=0,a=!1,l=i.length-1;l>=0;l--){if(a){var c=parseInt(i[l],10)*2;c>9?s+=c.toString().split("").map(function(u){return parseInt(u,10)}).reduce(function(u,d){return u+d},0):s+=c}else s+=parseInt(i[l],10);a=!a}return s%10===0}function r(i,s){for(var a=0,l=0;l<i.length;l++)a+=i[l]*(s-l);return a}function o(i){for(var s=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],a=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],l=i.split("").reverse().join(""),c=0,u=0;u<l.length;u++)c=s[c][a[u%8][parseInt(l[u],10)]];return c===0}return Nc}var M2;function kbe(){return M2||(M2=1,(function(e,t){function r(W){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},r(W)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=xe;var o=l(rt()),i=a(H5()),s=l(N5());function a(W,K){if(typeof WeakMap=="function")var ne=new WeakMap,ae=new WeakMap;return(a=function(pe,Pe){if(!Pe&&pe&&pe.__esModule)return pe;var Me,ze,We={__proto__:null,default:pe};if(pe===null||r(pe)!="object"&&typeof pe!="function")return We;if(Me=Pe?ae:ne){if(Me.has(pe))return Me.get(pe);Me.set(pe,We)}for(var ut in pe)ut!=="default"&&{}.hasOwnProperty.call(pe,ut)&&((ze=(Me=Object.defineProperty)&&Object.getOwnPropertyDescriptor(pe,ut))&&(ze.get||ze.set)?Me(We,ut,ze):We[ut]=pe[ut]);return We})(W,K)}function l(W){return W&&W.__esModule?W:{default:W}}function c(W){return p(W)||f(W)||d(W)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -449,7 +449,7 @@ ${f}\r
449
449
  If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:r,transformToString:async i=>{const s=await r();if(i==="base64")return oc(s);if(i==="hex")return Ci(s);if(i===void 0||i==="utf8"||i==="utf-8")return zu(s);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error($V);if(t=!0,jV(e))return o(e);if(VP(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},jV=e=>typeof Blob=="function"&&e instanceof Blob;async function uze(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const fh=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return iu.mutate(e);if(!e)return iu.mutate(new Uint8Array);const r=t.streamCollector(e);return iu.mutate(await r)};function BV(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const Xv=e=>typeof e=="function"?e():e,YW=(e,t,r,o,i)=>({name:t,namespace:e,traits:r,input:o,output:i}),dze=e=>(t,r)=>async o=>{const{response:i}=await t(o),{operationSchema:s}=gl(r),[,a,l,c,u,d]=s??[];try{const f=await e.protocol.deserializeResponse(YW(a,l,c,u,d),{...e,...r},i);return{response:i,output:f}}catch(f){if(Object.defineProperty(f,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in f)){const p="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{f.message+=`
450
450
  `+p}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(p):r.logger?.warn?.(p)}typeof f.$responseBodyText<"u"&&f.$response&&(f.$response.body=f.$responseBodyText);try{if(wu.isInstance(i)){const{headers:h={}}=i,b=Object.entries(h);f.$metadata={httpStatusCode:i.statusCode,requestId:VO(/^x-[\w-]+-request-?id$/,b),extendedRequestId:VO(/^x-[\w-]+-id-2$/,b),cfId:VO(/^x-[\w-]+-cf-id$/,b)}}}catch{}}throw f}},VO=(e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1],fze=e=>(t,r)=>async o=>{const{operationSchema:i}=gl(r),[,s,a,l,c,u]=i??[],d=r.endpointV2?.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint,f=await e.protocol.serializeRequest(YW(s,a,l,c,u),o.input,{...e,...r,endpoint:d});return t({...o,request:f})},pze={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},hze={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function ZW(e){return{applyToStack:t=>{t.add(fze(e),hze),t.add(dze(e),pze),e.protocol.setSerdeContext(e)}}}function Jd(e){if(typeof e=="object")return e;e=e|0;const t={};let r=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)===1&&(t[o]=1);return t}const VV={it:Symbol.for("@smithy/nor-struct-it")};class or{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=or.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,r){this.ref=t,this.memberName=r;const o=[];let i=t,s=t;for(this._isMemberSchema=!1;HO(i);)o.push(i[1]),i=i[0],s=Xv(i),this._isMemberSchema=!0;if(o.length>0){this.memberTraits={};for(let a=o.length-1;a>=0;--a){const l=o[a];Object.assign(this.memberTraits,Jd(l))}}else this.memberTraits=0;if(s instanceof or){const a=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},a,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=Xv(s),mze(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}static of(t){const r=Xv(t);if(r instanceof or)return r;if(HO(r)){const[o,i]=r;if(o instanceof or)return Object.assign(o.getMergedTraits(),Jd(i)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new or(r)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:r}=this;return!t&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const r=t[0];return r===3||r===-3||r===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Jd(this.memberTraits)}getOwnTraits(){return Jd(this.traits)}getKeySchema(){const[t,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const o=this.getSchema(),i=t?15:o[4]??0;return Zp([i,0],"key")}getValueSchema(){const t=this.getSchema(),[r,o,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof t=="number"?63&t:t&&typeof t=="object"&&(o||i)?t[3+t[0]]:r?15:void 0;if(s!=null)return Zp([s,0],o?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const r=this.getSchema();if(this.isStructSchema()&&r[4].includes(t)){const o=r[4].indexOf(t),i=r[5][o];return Zp(HO(i)?i:[i,0],t)}if(this.isDocumentSchema())return Zp([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[r,o]of this.structIterator())t[r]=o}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),r=t[4].length;let o=t[VV.it];if(o&&r===o.length){yield*o;return}o=Array(r);for(let i=0;i<r;++i){const s=t[4][i],a=Zp([t[5][i],0],s);yield o[i]=[s,a]}t[VV.it]=o}}function Zp(e,t){if(e instanceof or)return Object.assign(e,{memberName:t,_isMemberSchema:!0});const r=or;return new r(e,t)}const HO=e=>Array.isArray(e)&&e.length===2,mze=e=>Array.isArray(e)&&e.length>=5;class ti{namespace;schemas;exceptions;static registries=new Map;constructor(t,r=new Map,o=new Map){this.namespace=t,this.schemas=r,this.exceptions=o}static for(t){return ti.registries.has(t)||ti.registries.set(t,new ti(t)),ti.registries.get(t)}copyFrom(t){const{schemas:r,exceptions:o}=this;for(const[i,s]of t.schemas)r.has(i)||r.set(i,s);for(const[i,s]of t.exceptions)o.has(i)||o.set(i,s)}register(t,r){const o=this.normalizeShapeId(t);for(const i of[this,ti.for(o.split("#")[0])])i.schemas.set(o,r)}getSchema(t){const r=this.normalizeShapeId(t);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(t,r){const o=t,i=o[1];for(const s of[this,ti.for(i)])s.schemas.set(i+"#"+o[2],o),s.exceptions.set(o,r)}getErrorCtor(t){const r=t;return this.exceptions.has(r)?this.exceptions.get(r):ti.for(r[1]).exceptions.get(r)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,r,o]=t,i=r+"#"+o;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}const zP=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Tze.warn(wze(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},gze=Math.ceil(2**127*(2-2**-23)),HV=e=>{const t=zP(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>gze)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},bze=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},zV=e=>XW(e,16),qV=e=>XW(e,8),XW=(e,t)=>{const r=bze(e);if(r!==void 0&&yze(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},yze=(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]}},vze=e=>zP(typeof e=="string"?TC(e):e),xze=e=>HV(typeof e=="string"?TC(e):e),Sze=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,TC=e=>{const t=e.match(Sze);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},o0=e=>zV(typeof e=="string"?TC(e):e),Cze=e=>qV(typeof e=="string"?TC(e):e),wze=e=>String(new TypeError(e).stack||e).split(`
451
451
  `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
452
- `),Tze={warn:console.warn},Oze=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function i0(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),l=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,d=a<10?`0${a}`:`${a}`,f=l<10?`0${l}`:`${l}`;return`${Oze[o]}, ${c} ${SM[r]} ${t} ${u}:${d}:${f} GMT`}const Pze=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Eze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=Pze.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,o,i,s,a,l,c,u,d]=t,f=o0(um(o)),p=Ql(i,"month",1,12),h=Ql(s,"day",1,31),b=Qv(f,p,h,{hours:a,minutes:l,seconds:c,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&b.setTime(b.getTime()-Bze(d)),b},Ize=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$/),kze=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$/),Rze=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})$/),Mze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Ize.exec(e);if(t){const[r,o,i,s,a,l,c,u]=t;return Qv(o0(um(s)),zO(i),Ql(o,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:u})}if(t=kze.exec(e),t){const[r,o,i,s,a,l,c,u]=t;return Nze(Qv(Dze(s),zO(i),Ql(o,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:u}))}if(t=Rze.exec(e),t){const[r,o,i,s,a,l,c,u]=t;return Qv(o0(um(u)),zO(o),Ql(i.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:l,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},Aze=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=vze(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},Qv=(e,t,r,o)=>{const i=t-1;return Lze(e,i,r),new Date(Date.UTC(e,i,r,Ql(o.hours,"hour",0,23),Ql(o.minutes,"minute",0,59),Ql(o.seconds,"seconds",0,60),jze(o.fractionalMilliseconds)))},Dze=e=>{const t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+o0(um(e));return r<t?r+100:r},_ze=50*365*24*60*60*1e3,Nze=e=>e.getTime()-new Date().getTime()>_ze?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,zO=e=>{const t=SM.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Fze=[31,28,31,30,31,30,31,31,30,31,30,31],Lze=(e,t,r)=>{let o=Fze[t];if(t===1&&$ze(e)&&(o=29),r>o)throw new TypeError(`Invalid day for ${SM[t]} in ${e}: ${r}`)},$ze=e=>e%4===0&&(e%100!==0||e%400===0),Ql=(e,t,r,o)=>{const i=Cze(um(e));if(i<r||i>o)throw new TypeError(`${t} must be between ${r} and ${o}, inclusive`);return i},jze=e=>e==null?0:xze("0."+e)*1e3,Bze=e=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const o=Number(e.substring(1,3)),i=Number(e.substring(4,6));return r*(o*60+i)*60*1e3},um=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},UV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ao=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),OC=()=>{if(UV)return UV();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ao[e[0]]+Ao[e[1]]+Ao[e[2]]+Ao[e[3]]+"-"+Ao[e[4]]+Ao[e[5]]+"-"+Ao[e[6]]+Ao[e[7]]+"-"+Ao[e[8]]+Ao[e[9]]+"-"+Ao[e[10]]+Ao[e[11]]+Ao[e[12]]+Ao[e[13]]+Ao[e[14]]+Ao[e[15]]},Qa=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Qa.from=e=>e&&typeof e=="object"&&(e instanceof Qa||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Qa(String(e)):Qa(JSON.stringify(e));Qa.fromObject=Qa.from;function Vze(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const CM="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",wM="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",TM="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",QW="(\\d?\\d)",JW="(\\d{4})",Hze=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),zze=new RegExp(`^${CM}, ${QW} ${wM} ${JW} ${TM} GMT$`),qze=new RegExp(`^${CM}, ${QW}-${wM}-(\\d\\d) ${TM} GMT$`),Uze=new RegExp(`^${CM} ${wM} ( [1-9]|\\d\\d) ${TM} ${JW}$`),Gze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wze=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},Kze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=Hze.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,r,o,i,s,a,l,,c,u]=t;Ya(o,1,12),Ya(i,1,31),Ya(s,0,23),Ya(a,0,59),Ya(l,0,60);const d=new Date(Date.UTC(Number(r),Number(o)-1,Number(i),Number(s),Number(a),Number(l),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){const[,f,p,h]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],b=f==="-"?1:-1;d.setTime(d.getTime()+b*(Number(p)*60*60*1e3+Number(h)*60*1e3))}return d},Yze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,r,o,i,s,a,l,c;if((c=zze.exec(e))?[,t,r,o,i,s,a,l]=c:(c=qze.exec(e))?([,t,r,o,i,s,a,l]=c,o=(Number(o)+1900).toString()):(c=Uze.exec(e))&&([,r,t,i,s,a,l,o]=c),o&&a){const u=Date.UTC(Number(o),Gze.indexOf(r),Number(t),Number(i),Number(s),Number(a),l?Math.round(parseFloat(`0.${l}`)*1e3):0);Ya(t,1,31),Ya(i,0,23),Ya(s,0,59),Ya(a,0,60);const d=new Date(u);return d.setUTCFullYear(Number(o)),d}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function Ya(e,t,r){const o=Number(e);if(o<t||o>r)throw new Error(`Value ${o} out of range [${t}, ${r}]`)}function Zze(e,t,r){if(!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");const o=e.split(t),i=[];let s="";for(let a=0;a<o.length;a++)s===""?s=o[a]:s+=t+o[a],(a+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}const e7=e=>{const t=e.length,r=[];let o=!1,i,s=0;for(let a=0;a<t;++a){const l=e[a];switch(l){case'"':i!=="\\"&&(o=!o);break;case",":o||(r.push(e.slice(s,a)),s=a+1);break}i=l}return r.push(e.slice(s)),r.map(a=>{a=a.trim();const l=a.length;return l<2?a:(a[0]==='"'&&a[l-1]==='"'&&(a=a.slice(1,l-1)),a.replace(/\\"/g,'"'))})},GV=/^-?\d*(\.\d+)?$/;class fg{string;type;constructor(t,r){if(this.string=t,this.type=r,!GV.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const r=t;return fg.prototype.isPrototypeOf(t)||r.type==="bigDecimal"&&GV.test(r.string)}}class PC{serdeContext;setSerdeContext(t){this.serdeContext=t}}class t7 extends PC{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=ti.for(t.defaultNamespace);for(const r of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Br}getResponseType(){return wu}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,r){if("url"in r){t.protocol=r.url.protocol,t.hostname=r.url.hostname,t.port=r.url.port?Number(r.url.port):void 0,t.path=r.url.pathname,t.fragment=r.url.hash||void 0,t.username=r.url.username||void 0,t.password=r.url.password||void 0,t.query||(t.query={});for(const[o,i]of r.url.searchParams.entries())t.query[o]=i;return t}else return t.protocol=r.protocol,t.hostname=r.hostname,t.port=r.port?Number(r.port):void 0,t.path=r.path,t.query={...r.query},t}setHostPrefix(t,r,o){if(this.serdeContext?.disableHostPrefix)return;const i=or.of(r.input),s=Jd(r.traits??{});if(s.endpoint){let a=s.endpoint?.[0];if(typeof a=="string"){const l=[...i.structIterator()].filter(([,c])=>c.getMergedTraits().hostLabel);for(const[c]of l){const u=o[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}t.hostname=a+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o})}async deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await Promise.resolve().then(()=>require("./index-BB-8Juwp.js"));return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,r,o,i,s){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class Xze extends t7{async serializeRequest(t,r,o){const i={...r??{}},s=this.serializer,a={},l={},c=await o.endpoint(),u=or.of(t?.input),d=u.getSchema();let f=!1,p;const h=new Br({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:l,body:void 0});if(c){this.updateServiceEndpoint(h,c),this.setHostPrefix(h,t,i);const b=Jd(t.traits);if(b.http){h.method=b.http[0];const[g,y]=b.http[1].split("?");h.path=="/"?h.path=g:h.path+=g;const v=new URLSearchParams(y??"");Object.assign(a,Object.fromEntries(v))}}for(const[b,g]of u.structIterator()){const y=g.getMergedTraits()??{},v=i[b];if(v==null&&!g.isIdempotencyToken()){if(y.httpLabel&&(h.path.includes(`{${b}+}`)||h.path.includes(`{${b}}`)))throw new Error(`No value provided for input HTTP label: ${b}.`);continue}if(y.httpPayload)g.isStreaming()?g.isStructSchema()?i[b]&&(p=await this.serializeEventStream({eventStream:i[b],requestSchema:u})):p=v:(s.write(g,v),p=s.flush()),delete i[b];else if(y.httpLabel){s.write(g,v);const C=s.flush();h.path.includes(`{${b}+}`)?h.path=h.path.replace(`{${b}+}`,C.split("/").map(BV).join("/")):h.path.includes(`{${b}}`)&&(h.path=h.path.replace(`{${b}}`,BV(C))),delete i[b]}else if(y.httpHeader)s.write(g,v),l[y.httpHeader.toLowerCase()]=String(s.flush()),delete i[b];else if(typeof y.httpPrefixHeaders=="string"){for(const[C,O]of Object.entries(v)){const T=y.httpPrefixHeaders+C;s.write([g.getValueSchema(),{httpHeader:T}],O),l[T.toLowerCase()]=s.flush()}delete i[b]}else y.httpQuery||y.httpQueryParams?(this.serializeQuery(g,v,a),delete i[b]):f=!0}return f&&i&&(s.write(d,i),p=s.flush()),h.headers=l,h.query=a,h.body=p,h}serializeQuery(t,r,o){const i=this.serializer,s=t.getMergedTraits();if(s.httpQueryParams){for(const[a,l]of Object.entries(r))if(!(a in o)){const c=t.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(c,l,o)}return}if(t.isListSchema()){const a=!!t.getMergedTraits().sparse,l=[];for(const c of r){i.write([t.getValueSchema(),s],c);const u=i.flush();(a||u!==void 0)&&l.push(u)}o[s.httpQuery]=l}else i.write([t,s],r),o[s.httpQuery]=i.flush()}async deserializeResponse(t,r,o){const i=this.deserializer,s=or.of(t.output),a={};if(o.statusCode>=300){const c=await fh(o.body,r);throw c.byteLength>0&&Object.assign(a,await i.read(15,c)),await this.handleError(t,r,o,a,this.deserializeMetadata(o)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const c in o.headers){const u=o.headers[c];delete o.headers[c],o.headers[c.toLowerCase()]=u}const l=await this.deserializeHttpMessage(s,r,o,a);if(l.length){const c=await fh(o.body,r);if(c.byteLength>0){const u=await i.read(s,c);for(const d of l)u[d]!=null&&(a[d]=u[d])}}else l.discardResponseBody&&await fh(o.body,r);return a.$metadata=this.deserializeMetadata(o),a}async deserializeHttpMessage(t,r,o,i,s){let a;i instanceof Set?a=s:a=i;let l=!0;const c=this.deserializer,u=or.of(t),d=[];for(const[f,p]of u.structIterator()){const h=p.getMemberTraits();if(h.httpPayload){if(l=!1,p.isStreaming())p.isStructSchema()?a[f]=await this.deserializeEventStream({response:o,responseSchema:u}):a[f]=KW(o.body);else if(o.body){const g=await fh(o.body,r);g.byteLength>0&&(a[f]=await c.read(p,g))}}else if(h.httpHeader){const b=String(h.httpHeader).toLowerCase(),g=o.headers[b];if(g!=null)if(p.isListSchema()){const y=p.getValueSchema();y.getMergedTraits().httpHeader=b;let v;y.isTimestampSchema()&&y.getSchema()===4?v=Zze(g,",",2):v=e7(g);const C=[];for(const O of v)C.push(await c.read(y,O.trim()));a[f]=C}else a[f]=await c.read(p,g)}else if(h.httpPrefixHeaders!==void 0){a[f]={};for(const[b,g]of Object.entries(o.headers))if(b.startsWith(h.httpPrefixHeaders)){const y=p.getValueSchema();y.getMergedTraits().httpHeader=b,a[f][b.slice(h.httpPrefixHeaders.length)]=await c.read(y,g)}}else h.httpResponseCode?a[f]=o.statusCode:d.push(f)}return d.discardResponseBody=l,d}}function EC(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:r,httpPrefixHeaders:o,httpHeader:i,httpQuery:s}=e.getMergedTraits();return(t.httpBindings?typeof o=="string"||i?6:s||r?5:void 0:void 0)??t.timestampFormat.default}class n7 extends PC{settings;constructor(t){super(),this.settings=t}read(t,r){const o=or.of(t);if(o.isListSchema())return e7(r).map(i=>this.read(o.getValueSchema(),i));if(o.isBlobSchema())return(this.serdeContext?.base64Decoder??Tu)(r);if(o.isTimestampSchema())switch(EC(o,this.settings)){case 5:return Kze(r);case 6:return Yze(r);case 7:return Wze(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isStringSchema()){const i=o.getMergedTraits().mediaType;let s=r;if(i)return o.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(i==="application/json"||i.endsWith("+json"))&&(s=Qa.from(s)),s}return o.isNumericSchema()?Number(r):o.isBigIntegerSchema()?BigInt(r):o.isBigDecimalSchema()?new fg(r,"bigDecimal"):o.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??zu)((this.serdeContext?.base64Decoder??Tu)(t))}}class Qze extends PC{codecDeserializer;stringDeserializer;constructor(t,r){super(),this.codecDeserializer=t,this.stringDeserializer=new n7(r)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,r){const o=or.of(t),i=o.getMergedTraits(),s=this.serdeContext?.utf8Encoder??zu;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(o,s(r));if(i.httpPayload){if(o.isBlobSchema()){const a=this.serdeContext?.utf8Decoder??cl;return typeof r=="string"?a(r):r}else if(o.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(o,r)}}class Jze extends PC{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,r){const o=or.of(t);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(o.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${o.getName(!0)}`);switch(EC(o,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=i0(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(o.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??oc)(r);return}if(o.isListSchema()&&Array.isArray(r)){let a="";for(const l of r){this.write([o.getValueSchema(),o.getMergedTraits()],l);const c=this.flush(),u=o.getValueSchema().isTimestampSchema()?c:Vze(c);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":const i=o.getMergedTraits().mediaType;let s=r;if(i&&((i==="application/json"||i.endsWith("+json"))&&(s=Qa.from(s)),o.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??oc)(s.toString());return}this.stringBuffer=r;break;default:o.isIdempotencyToken()?this.stringBuffer=OC():this.stringBuffer=String(r)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class eqe{codecSerializer;stringSerializer;buffer;constructor(t,r,o=new Jze(r)){this.codecSerializer=t,this.stringSerializer=o}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,r){const o=or.of(t),i=o.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(o,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(o,r)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function tqe(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}class r7{authSchemes=new Map;constructor(t){for(const[r,o]of Object.entries(t))o!==void 0&&this.authSchemes.set(r,o)}getIdentityProvider(t){return this.authSchemes.get(t)}}const nqe=e=>function(r){return o7(r)&&r.expiration.getTime()-Date.now()<e},rqe=3e5,oqe=nqe(rqe),o7=e=>e.expiration!==void 0,iqe=(e,t,r)=>{if(e===void 0)return;const o=typeof e!="function"?async()=>Promise.resolve(e):e;let i,s,a,l=!1;const c=async u=>{s||(s=o(u));try{i=await s,a=!0,l=!1}finally{s=void 0}return i};return t===void 0?async u=>((!a||u?.forceRefresh)&&(i=await c(u)),i):async u=>((!a||u?.forceRefresh)&&(i=await c(u)),l?i:r(i)?(t(i)&&await c(u),i):(l=!0,i))};class OM extends Error{name="ProviderError";tryNextLink;constructor(t,r=!0){let o,i=!0;typeof r=="boolean"?(o=void 0,i=r):r!=null&&typeof r=="object"&&(o=r.logger,i=r.tryNextLink??!0),super(t),this.tryNextLink=i,Object.setPrototypeOf(this,OM.prototype),o?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${t}`)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}}class fp extends OM{name="CredentialsProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,fp.prototype)}}const sqe=(e,t,r)=>{let o,i,s,a=!1;const l=async()=>{i||(i=e());try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return async c=>((!s||c?.forceRefresh)&&(o=await l()),o)},aqe=e=>(e.sigv4aSigningRegionSet=hf(e.sigv4aSigningRegionSet),e),lqe="X-Amz-Algorithm",cqe="X-Amz-Credential",i7="X-Amz-Date",uqe="X-Amz-SignedHeaders",dqe="X-Amz-Expires",s7="X-Amz-Signature",a7="X-Amz-Security-Token",l7="authorization",c7=i7.toLowerCase(),fqe="date",pqe=[l7,c7,fqe],hqe=s7.toLowerCase(),qP="x-amz-content-sha256",mqe=a7.toLowerCase(),gqe={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},bqe=/^proxy-/,yqe=/^sec-/,qO="AWS4-HMAC-SHA256",vqe="AWS4-HMAC-SHA256-PAYLOAD",xqe="UNSIGNED-PAYLOAD",Sqe=50,u7="aws4_request",Cqe=3600*24*7,Pv={},UO=[],GO=(e,t,r)=>`${e}/${t}/${r}/${u7}`,wqe=async(e,t,r,o,i)=>{const s=await WV(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${o}:${i}:${Ci(s)}:${t.sessionToken}`;if(a in Pv)return Pv[a];for(UO.push(a);UO.length>Sqe;)delete Pv[UO.shift()];let l=`AWS4${t.secretAccessKey}`;for(const c of[r,o,i,u7])l=await WV(e,l,c);return Pv[a]=l},WV=(e,t,r)=>{const o=new e(t);return o.update(Bf(r)),o.digest()},KV=({headers:e},t,r)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const s=i.toLowerCase();(s in gqe||t?.has(s)||bqe.test(s)||yqe.test(s))&&(!r||r&&!r.has(s))||(o[s]=e[i].trim().replace(/\s+/g," "))}return o},d7=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",WO=async({headers:e,body:t},r)=>{for(const o of Object.keys(e))if(o.toLowerCase()===qP)return e[o];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||d7(t)){const o=new r;return o.update(Bf(t)),Ci(await o.digest())}return xqe};class Tqe{format(t){const r=[];for(const s of Object.keys(t)){const a=cl(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}const o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0));let i=0;for(const s of r)o.set(s,i),i+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);const a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":const l=cl(t.value),c=new DataView(new ArrayBuffer(3+l.byteLength));c.setUint8(0,7),c.setUint16(1,l.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(l,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(Pqe.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!Oqe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(WW(t.value.replace(/\-/g,"")),1),f}}}var YV;(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"})(YV||(YV={}));const Oqe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let Pqe=class f7{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let o=7,i=Math.abs(Math.round(t));o>-1&&i>0;o--,i/=256)r[o]=i;return t<0&&ZV(r),new f7(r)}valueOf(){const t=this.bytes.slice(0),r=t[0]&128;return r&&ZV(t),parseInt(Ci(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function ZV(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const Eqe=(e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Iqe=(e,t={})=>{const{headers:r,query:o={}}=Br.clone(e);for(const i of Object.keys(r)){const s=i.toLowerCase();(s.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(o[i]=r[i],delete r[i])}return{...e,headers:r,query:o}},XV=e=>{e=Br.clone(e);for(const t of Object.keys(e.headers))pqe.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},kqe=({query:e={}})=>{const t=[],r={};for(const o of Object.keys(e)){if(o.toLowerCase()===hqe)continue;const i=su(o);t.push(i);const s=e[o];typeof s=="string"?r[i]=`${i}=${su(s)}`:Array.isArray(s)&&(r[i]=s.slice(0).reduce((a,l)=>a.concat([`${i}=${su(l)}`]),[]).sort().join("&"))}return t.sort().map(o=>r[o]).filter(o=>o).join("&")},Rqe=e=>Mqe(e).toISOString().replace(/\.\d{3}Z$/,"Z"),Mqe=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class Aqe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a=!0}){this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Rs(o),this.credentialProvider=Rs(r)}createCanonicalRequest(t,r,o){const i=Object.keys(r).sort();return`${t.method}
452
+ `),Tze={warn:console.warn},Oze=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function i0(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),l=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,d=a<10?`0${a}`:`${a}`,f=l<10?`0${l}`:`${l}`;return`${Oze[o]}, ${c} ${SM[r]} ${t} ${u}:${d}:${f} GMT`}const Pze=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Eze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=Pze.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,o,i,s,a,l,c,u,d]=t,f=o0(um(o)),p=Ql(i,"month",1,12),h=Ql(s,"day",1,31),b=Qv(f,p,h,{hours:a,minutes:l,seconds:c,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&b.setTime(b.getTime()-Bze(d)),b},Ize=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$/),kze=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$/),Rze=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})$/),Mze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Ize.exec(e);if(t){const[r,o,i,s,a,l,c,u]=t;return Qv(o0(um(s)),zO(i),Ql(o,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:u})}if(t=kze.exec(e),t){const[r,o,i,s,a,l,c,u]=t;return Nze(Qv(Dze(s),zO(i),Ql(o,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:u}))}if(t=Rze.exec(e),t){const[r,o,i,s,a,l,c,u]=t;return Qv(o0(um(u)),zO(o),Ql(i.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:l,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},Aze=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=vze(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},Qv=(e,t,r,o)=>{const i=t-1;return Lze(e,i,r),new Date(Date.UTC(e,i,r,Ql(o.hours,"hour",0,23),Ql(o.minutes,"minute",0,59),Ql(o.seconds,"seconds",0,60),jze(o.fractionalMilliseconds)))},Dze=e=>{const t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+o0(um(e));return r<t?r+100:r},_ze=50*365*24*60*60*1e3,Nze=e=>e.getTime()-new Date().getTime()>_ze?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,zO=e=>{const t=SM.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Fze=[31,28,31,30,31,30,31,31,30,31,30,31],Lze=(e,t,r)=>{let o=Fze[t];if(t===1&&$ze(e)&&(o=29),r>o)throw new TypeError(`Invalid day for ${SM[t]} in ${e}: ${r}`)},$ze=e=>e%4===0&&(e%100!==0||e%400===0),Ql=(e,t,r,o)=>{const i=Cze(um(e));if(i<r||i>o)throw new TypeError(`${t} must be between ${r} and ${o}, inclusive`);return i},jze=e=>e==null?0:xze("0."+e)*1e3,Bze=e=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const o=Number(e.substring(1,3)),i=Number(e.substring(4,6));return r*(o*60+i)*60*1e3},um=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},UV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ao=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),OC=()=>{if(UV)return UV();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ao[e[0]]+Ao[e[1]]+Ao[e[2]]+Ao[e[3]]+"-"+Ao[e[4]]+Ao[e[5]]+"-"+Ao[e[6]]+Ao[e[7]]+"-"+Ao[e[8]]+Ao[e[9]]+"-"+Ao[e[10]]+Ao[e[11]]+Ao[e[12]]+Ao[e[13]]+Ao[e[14]]+Ao[e[15]]},Qa=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Qa.from=e=>e&&typeof e=="object"&&(e instanceof Qa||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Qa(String(e)):Qa(JSON.stringify(e));Qa.fromObject=Qa.from;function Vze(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const CM="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",wM="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",TM="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",QW="(\\d?\\d)",JW="(\\d{4})",Hze=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),zze=new RegExp(`^${CM}, ${QW} ${wM} ${JW} ${TM} GMT$`),qze=new RegExp(`^${CM}, ${QW}-${wM}-(\\d\\d) ${TM} GMT$`),Uze=new RegExp(`^${CM} ${wM} ( [1-9]|\\d\\d) ${TM} ${JW}$`),Gze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wze=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},Kze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=Hze.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,r,o,i,s,a,l,,c,u]=t;Ya(o,1,12),Ya(i,1,31),Ya(s,0,23),Ya(a,0,59),Ya(l,0,60);const d=new Date(Date.UTC(Number(r),Number(o)-1,Number(i),Number(s),Number(a),Number(l),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){const[,f,p,h]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],b=f==="-"?1:-1;d.setTime(d.getTime()+b*(Number(p)*60*60*1e3+Number(h)*60*1e3))}return d},Yze=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,r,o,i,s,a,l,c;if((c=zze.exec(e))?[,t,r,o,i,s,a,l]=c:(c=qze.exec(e))?([,t,r,o,i,s,a,l]=c,o=(Number(o)+1900).toString()):(c=Uze.exec(e))&&([,r,t,i,s,a,l,o]=c),o&&a){const u=Date.UTC(Number(o),Gze.indexOf(r),Number(t),Number(i),Number(s),Number(a),l?Math.round(parseFloat(`0.${l}`)*1e3):0);Ya(t,1,31),Ya(i,0,23),Ya(s,0,59),Ya(a,0,60);const d=new Date(u);return d.setUTCFullYear(Number(o)),d}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function Ya(e,t,r){const o=Number(e);if(o<t||o>r)throw new Error(`Value ${o} out of range [${t}, ${r}]`)}function Zze(e,t,r){if(!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");const o=e.split(t),i=[];let s="";for(let a=0;a<o.length;a++)s===""?s=o[a]:s+=t+o[a],(a+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}const e7=e=>{const t=e.length,r=[];let o=!1,i,s=0;for(let a=0;a<t;++a){const l=e[a];switch(l){case'"':i!=="\\"&&(o=!o);break;case",":o||(r.push(e.slice(s,a)),s=a+1);break}i=l}return r.push(e.slice(s)),r.map(a=>{a=a.trim();const l=a.length;return l<2?a:(a[0]==='"'&&a[l-1]==='"'&&(a=a.slice(1,l-1)),a.replace(/\\"/g,'"'))})},GV=/^-?\d*(\.\d+)?$/;class fg{string;type;constructor(t,r){if(this.string=t,this.type=r,!GV.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const r=t;return fg.prototype.isPrototypeOf(t)||r.type==="bigDecimal"&&GV.test(r.string)}}class PC{serdeContext;setSerdeContext(t){this.serdeContext=t}}class t7 extends PC{options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=ti.for(t.defaultNamespace);for(const r of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Br}getResponseType(){return wu}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,r){if("url"in r){t.protocol=r.url.protocol,t.hostname=r.url.hostname,t.port=r.url.port?Number(r.url.port):void 0,t.path=r.url.pathname,t.fragment=r.url.hash||void 0,t.username=r.url.username||void 0,t.password=r.url.password||void 0,t.query||(t.query={});for(const[o,i]of r.url.searchParams.entries())t.query[o]=i;return t}else return t.protocol=r.protocol,t.hostname=r.hostname,t.port=r.port?Number(r.port):void 0,t.path=r.path,t.query={...r.query},t}setHostPrefix(t,r,o){if(this.serdeContext?.disableHostPrefix)return;const i=or.of(r.input),s=Jd(r.traits??{});if(s.endpoint){let a=s.endpoint?.[0];if(typeof a=="string"){const l=[...i.structIterator()].filter(([,c])=>c.getMergedTraits().hostLabel);for(const[c]of l){const u=o[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}t.hostname=a+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o})}async deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await Promise.resolve().then(()=>require("./index-C9xC1c3y.js"));return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,r,o,i,s){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class Xze extends t7{async serializeRequest(t,r,o){const i={...r??{}},s=this.serializer,a={},l={},c=await o.endpoint(),u=or.of(t?.input),d=u.getSchema();let f=!1,p;const h=new Br({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:l,body:void 0});if(c){this.updateServiceEndpoint(h,c),this.setHostPrefix(h,t,i);const b=Jd(t.traits);if(b.http){h.method=b.http[0];const[g,y]=b.http[1].split("?");h.path=="/"?h.path=g:h.path+=g;const v=new URLSearchParams(y??"");Object.assign(a,Object.fromEntries(v))}}for(const[b,g]of u.structIterator()){const y=g.getMergedTraits()??{},v=i[b];if(v==null&&!g.isIdempotencyToken()){if(y.httpLabel&&(h.path.includes(`{${b}+}`)||h.path.includes(`{${b}}`)))throw new Error(`No value provided for input HTTP label: ${b}.`);continue}if(y.httpPayload)g.isStreaming()?g.isStructSchema()?i[b]&&(p=await this.serializeEventStream({eventStream:i[b],requestSchema:u})):p=v:(s.write(g,v),p=s.flush()),delete i[b];else if(y.httpLabel){s.write(g,v);const C=s.flush();h.path.includes(`{${b}+}`)?h.path=h.path.replace(`{${b}+}`,C.split("/").map(BV).join("/")):h.path.includes(`{${b}}`)&&(h.path=h.path.replace(`{${b}}`,BV(C))),delete i[b]}else if(y.httpHeader)s.write(g,v),l[y.httpHeader.toLowerCase()]=String(s.flush()),delete i[b];else if(typeof y.httpPrefixHeaders=="string"){for(const[C,O]of Object.entries(v)){const T=y.httpPrefixHeaders+C;s.write([g.getValueSchema(),{httpHeader:T}],O),l[T.toLowerCase()]=s.flush()}delete i[b]}else y.httpQuery||y.httpQueryParams?(this.serializeQuery(g,v,a),delete i[b]):f=!0}return f&&i&&(s.write(d,i),p=s.flush()),h.headers=l,h.query=a,h.body=p,h}serializeQuery(t,r,o){const i=this.serializer,s=t.getMergedTraits();if(s.httpQueryParams){for(const[a,l]of Object.entries(r))if(!(a in o)){const c=t.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(c,l,o)}return}if(t.isListSchema()){const a=!!t.getMergedTraits().sparse,l=[];for(const c of r){i.write([t.getValueSchema(),s],c);const u=i.flush();(a||u!==void 0)&&l.push(u)}o[s.httpQuery]=l}else i.write([t,s],r),o[s.httpQuery]=i.flush()}async deserializeResponse(t,r,o){const i=this.deserializer,s=or.of(t.output),a={};if(o.statusCode>=300){const c=await fh(o.body,r);throw c.byteLength>0&&Object.assign(a,await i.read(15,c)),await this.handleError(t,r,o,a,this.deserializeMetadata(o)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const c in o.headers){const u=o.headers[c];delete o.headers[c],o.headers[c.toLowerCase()]=u}const l=await this.deserializeHttpMessage(s,r,o,a);if(l.length){const c=await fh(o.body,r);if(c.byteLength>0){const u=await i.read(s,c);for(const d of l)u[d]!=null&&(a[d]=u[d])}}else l.discardResponseBody&&await fh(o.body,r);return a.$metadata=this.deserializeMetadata(o),a}async deserializeHttpMessage(t,r,o,i,s){let a;i instanceof Set?a=s:a=i;let l=!0;const c=this.deserializer,u=or.of(t),d=[];for(const[f,p]of u.structIterator()){const h=p.getMemberTraits();if(h.httpPayload){if(l=!1,p.isStreaming())p.isStructSchema()?a[f]=await this.deserializeEventStream({response:o,responseSchema:u}):a[f]=KW(o.body);else if(o.body){const g=await fh(o.body,r);g.byteLength>0&&(a[f]=await c.read(p,g))}}else if(h.httpHeader){const b=String(h.httpHeader).toLowerCase(),g=o.headers[b];if(g!=null)if(p.isListSchema()){const y=p.getValueSchema();y.getMergedTraits().httpHeader=b;let v;y.isTimestampSchema()&&y.getSchema()===4?v=Zze(g,",",2):v=e7(g);const C=[];for(const O of v)C.push(await c.read(y,O.trim()));a[f]=C}else a[f]=await c.read(p,g)}else if(h.httpPrefixHeaders!==void 0){a[f]={};for(const[b,g]of Object.entries(o.headers))if(b.startsWith(h.httpPrefixHeaders)){const y=p.getValueSchema();y.getMergedTraits().httpHeader=b,a[f][b.slice(h.httpPrefixHeaders.length)]=await c.read(y,g)}}else h.httpResponseCode?a[f]=o.statusCode:d.push(f)}return d.discardResponseBody=l,d}}function EC(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:r,httpPrefixHeaders:o,httpHeader:i,httpQuery:s}=e.getMergedTraits();return(t.httpBindings?typeof o=="string"||i?6:s||r?5:void 0:void 0)??t.timestampFormat.default}class n7 extends PC{settings;constructor(t){super(),this.settings=t}read(t,r){const o=or.of(t);if(o.isListSchema())return e7(r).map(i=>this.read(o.getValueSchema(),i));if(o.isBlobSchema())return(this.serdeContext?.base64Decoder??Tu)(r);if(o.isTimestampSchema())switch(EC(o,this.settings)){case 5:return Kze(r);case 6:return Yze(r);case 7:return Wze(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isStringSchema()){const i=o.getMergedTraits().mediaType;let s=r;if(i)return o.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(i==="application/json"||i.endsWith("+json"))&&(s=Qa.from(s)),s}return o.isNumericSchema()?Number(r):o.isBigIntegerSchema()?BigInt(r):o.isBigDecimalSchema()?new fg(r,"bigDecimal"):o.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??zu)((this.serdeContext?.base64Decoder??Tu)(t))}}class Qze extends PC{codecDeserializer;stringDeserializer;constructor(t,r){super(),this.codecDeserializer=t,this.stringDeserializer=new n7(r)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,r){const o=or.of(t),i=o.getMergedTraits(),s=this.serdeContext?.utf8Encoder??zu;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(o,s(r));if(i.httpPayload){if(o.isBlobSchema()){const a=this.serdeContext?.utf8Decoder??cl;return typeof r=="string"?a(r):r}else if(o.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(o,r)}}class Jze extends PC{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,r){const o=or.of(t);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(o.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${o.getName(!0)}`);switch(EC(o,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=i0(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(o.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??oc)(r);return}if(o.isListSchema()&&Array.isArray(r)){let a="";for(const l of r){this.write([o.getValueSchema(),o.getMergedTraits()],l);const c=this.flush(),u=o.getValueSchema().isTimestampSchema()?c:Vze(c);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":const i=o.getMergedTraits().mediaType;let s=r;if(i&&((i==="application/json"||i.endsWith("+json"))&&(s=Qa.from(s)),o.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??oc)(s.toString());return}this.stringBuffer=r;break;default:o.isIdempotencyToken()?this.stringBuffer=OC():this.stringBuffer=String(r)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class eqe{codecSerializer;stringSerializer;buffer;constructor(t,r,o=new Jze(r)){this.codecSerializer=t,this.stringSerializer=o}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,r){const o=or.of(t),i=o.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(o,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(o,r)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function tqe(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}class r7{authSchemes=new Map;constructor(t){for(const[r,o]of Object.entries(t))o!==void 0&&this.authSchemes.set(r,o)}getIdentityProvider(t){return this.authSchemes.get(t)}}const nqe=e=>function(r){return o7(r)&&r.expiration.getTime()-Date.now()<e},rqe=3e5,oqe=nqe(rqe),o7=e=>e.expiration!==void 0,iqe=(e,t,r)=>{if(e===void 0)return;const o=typeof e!="function"?async()=>Promise.resolve(e):e;let i,s,a,l=!1;const c=async u=>{s||(s=o(u));try{i=await s,a=!0,l=!1}finally{s=void 0}return i};return t===void 0?async u=>((!a||u?.forceRefresh)&&(i=await c(u)),i):async u=>((!a||u?.forceRefresh)&&(i=await c(u)),l?i:r(i)?(t(i)&&await c(u),i):(l=!0,i))};class OM extends Error{name="ProviderError";tryNextLink;constructor(t,r=!0){let o,i=!0;typeof r=="boolean"?(o=void 0,i=r):r!=null&&typeof r=="object"&&(o=r.logger,i=r.tryNextLink??!0),super(t),this.tryNextLink=i,Object.setPrototypeOf(this,OM.prototype),o?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${t}`)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}}class fp extends OM{name="CredentialsProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,fp.prototype)}}const sqe=(e,t,r)=>{let o,i,s,a=!1;const l=async()=>{i||(i=e());try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return async c=>((!s||c?.forceRefresh)&&(o=await l()),o)},aqe=e=>(e.sigv4aSigningRegionSet=hf(e.sigv4aSigningRegionSet),e),lqe="X-Amz-Algorithm",cqe="X-Amz-Credential",i7="X-Amz-Date",uqe="X-Amz-SignedHeaders",dqe="X-Amz-Expires",s7="X-Amz-Signature",a7="X-Amz-Security-Token",l7="authorization",c7=i7.toLowerCase(),fqe="date",pqe=[l7,c7,fqe],hqe=s7.toLowerCase(),qP="x-amz-content-sha256",mqe=a7.toLowerCase(),gqe={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},bqe=/^proxy-/,yqe=/^sec-/,qO="AWS4-HMAC-SHA256",vqe="AWS4-HMAC-SHA256-PAYLOAD",xqe="UNSIGNED-PAYLOAD",Sqe=50,u7="aws4_request",Cqe=3600*24*7,Pv={},UO=[],GO=(e,t,r)=>`${e}/${t}/${r}/${u7}`,wqe=async(e,t,r,o,i)=>{const s=await WV(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${o}:${i}:${Ci(s)}:${t.sessionToken}`;if(a in Pv)return Pv[a];for(UO.push(a);UO.length>Sqe;)delete Pv[UO.shift()];let l=`AWS4${t.secretAccessKey}`;for(const c of[r,o,i,u7])l=await WV(e,l,c);return Pv[a]=l},WV=(e,t,r)=>{const o=new e(t);return o.update(Bf(r)),o.digest()},KV=({headers:e},t,r)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const s=i.toLowerCase();(s in gqe||t?.has(s)||bqe.test(s)||yqe.test(s))&&(!r||r&&!r.has(s))||(o[s]=e[i].trim().replace(/\s+/g," "))}return o},d7=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",WO=async({headers:e,body:t},r)=>{for(const o of Object.keys(e))if(o.toLowerCase()===qP)return e[o];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||d7(t)){const o=new r;return o.update(Bf(t)),Ci(await o.digest())}return xqe};class Tqe{format(t){const r=[];for(const s of Object.keys(t)){const a=cl(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}const o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0));let i=0;for(const s of r)o.set(s,i),i+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);const a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":const l=cl(t.value),c=new DataView(new ArrayBuffer(3+l.byteLength));c.setUint8(0,7),c.setUint16(1,l.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(l,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(Pqe.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!Oqe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(WW(t.value.replace(/\-/g,"")),1),f}}}var YV;(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"})(YV||(YV={}));const Oqe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let Pqe=class f7{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let o=7,i=Math.abs(Math.round(t));o>-1&&i>0;o--,i/=256)r[o]=i;return t<0&&ZV(r),new f7(r)}valueOf(){const t=this.bytes.slice(0),r=t[0]&128;return r&&ZV(t),parseInt(Ci(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function ZV(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const Eqe=(e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Iqe=(e,t={})=>{const{headers:r,query:o={}}=Br.clone(e);for(const i of Object.keys(r)){const s=i.toLowerCase();(s.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(o[i]=r[i],delete r[i])}return{...e,headers:r,query:o}},XV=e=>{e=Br.clone(e);for(const t of Object.keys(e.headers))pqe.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},kqe=({query:e={}})=>{const t=[],r={};for(const o of Object.keys(e)){if(o.toLowerCase()===hqe)continue;const i=su(o);t.push(i);const s=e[o];typeof s=="string"?r[i]=`${i}=${su(s)}`:Array.isArray(s)&&(r[i]=s.slice(0).reduce((a,l)=>a.concat([`${i}=${su(l)}`]),[]).sort().join("&"))}return t.sort().map(o=>r[o]).filter(o=>o).join("&")},Rqe=e=>Mqe(e).toISOString().replace(/\.\d{3}Z$/,"Z"),Mqe=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class Aqe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a=!0}){this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Rs(o),this.credentialProvider=Rs(r)}createCanonicalRequest(t,r,o){const i=Object.keys(r).sort();return`${t.method}
453
453
  ${this.getCanonicalPath(t)}
454
454
  ${kqe(t)}
455
455
  ${i.map(s=>`${s}:${r[s]}`).join(`
@@ -461,5 +461,5 @@ ${t}
461
461
  ${r}
462
462
  ${Ci(a)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const s of t.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const o=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return su(o).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const r=Rqe(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class UP extends Aqe{headerFormatter=new Tqe;constructor({applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a=!0}){super({applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a})}async presign(t,r={}){const{signingDate:o=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:l,hoistableHeaders:c,signingRegion:u,signingService:d}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const p=u??await this.regionProvider(),{longDate:h,shortDate:b}=this.formatDate(o);if(i>Cqe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=GO(b,p,d??this.service),y=Iqe(XV(t),{unhoistableHeaders:a,hoistableHeaders:c});f.sessionToken&&(y.query[a7]=f.sessionToken),y.query[lqe]=qO,y.query[cqe]=`${f.accessKeyId}/${g}`,y.query[i7]=h,y.query[dqe]=i.toString(10);const v=KV(y,s,l);return y.query[uqe]=this.getCanonicalHeaderList(v),y.query[s7]=await this.getSignature(h,g,this.getSigningKey(f,p,b,d),this.createCanonicalRequest(y,v,await WO(t,this.sha256))),y}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):t.message?this.signMessage(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:o=new Date,priorSignature:i,signingRegion:s,signingService:a}){const l=s??await this.regionProvider(),{shortDate:c,longDate:u}=this.formatDate(o),d=GO(c,l,a??this.service),f=await WO({headers:{},body:r},this.sha256),p=new this.sha256;p.update(t);const h=Ci(await p.digest()),b=[vqe,u,d,i,h,f].join(`
463
463
  `);return this.signString(b,{signingDate:o,signingRegion:l,signingService:a})}async signMessage(t,{signingDate:r=new Date,signingRegion:o,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:r,signingRegion:o,signingService:i,priorSignature:t.priorSignature}).then(a=>({message:t.message,signature:a}))}async signString(t,{signingDate:r=new Date,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),{shortDate:l}=this.formatDate(r),c=new this.sha256(await this.getSigningKey(s,a,l,i));return c.update(Bf(t)),Ci(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:o,unsignableHeaders:i,signingRegion:s,signingService:a}={}){const l=await this.credentialProvider();this.validateResolvedCredentials(l);const c=s??await this.regionProvider(),u=XV(t),{longDate:d,shortDate:f}=this.formatDate(r),p=GO(f,c,a??this.service);u.headers[c7]=d,l.sessionToken&&(u.headers[mqe]=l.sessionToken);const h=await WO(u,this.sha256);!Eqe(qP,u.headers)&&this.applyChecksum&&(u.headers[qP]=h);const b=KV(u,i,o),g=await this.getSignature(d,p,this.getSigningKey(l,c,f,a),this.createCanonicalRequest(u,b,h));return u.headers[l7]=`${qO} Credential=${l.accessKeyId}/${p}, SignedHeaders=${this.getCanonicalHeaderList(b)}, Signature=${g}`,u}async getSignature(t,r,o,i){const s=await this.createStringToSign(t,r,i,qO),a=new this.sha256(await o);return a.update(Bf(s)),Ci(await a.digest())}getSigningKey(t,r,o,i){return wqe(this.sha256,t,o,r,i||this.service)}}const p7=e=>{let t=e.credentials,r=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(u){u&&u!==t&&u!==o&&(r=!0),t=u;const d=Dqe(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),f=_qe(e,d);if(r&&!f.attributed){const p=typeof t=="object"&&t!==null;o=async h=>{const g=await f(h);return p&&(!g.$source||Object.keys(g.$source).length===0)?NHe(g,"CREDENTIALS_CODE","e"):g},o.memoized=f.memoized,o.configBound=f.configBound,o.attributed=!0}else o=f},get(){return o},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:s=e.systemClockOffset||0,sha256:a}=e;let l;return e.signer?l=hf(e.signer):e.regionInfoProvider?l=()=>hf(e.region)().then(async u=>[await e.regionInfoProvider(u,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},u]).then(([u,d])=>{const{signingRegion:f,signingService:p}=u;e.signingRegion=e.signingRegion||f||d,e.signingName=e.signingName||p||e.serviceId;const h={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:i},b=e.signerConstructor||UP;return new b(h)}):l=async u=>{u=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await hf(e.region)(),properties:{}},u);const d=u.signingRegion,f=u.signingName;e.signingRegion=e.signingRegion||d,e.signingName=e.signingName||f||e.serviceId;const p={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:i},h=e.signerConstructor||UP;return new h(p)},Object.assign(e,{systemClockOffset:s,signingEscapePath:i,signer:l})};function Dqe(e,{credentials:t,credentialDefaultProvider:r}){let o;return t?t?.memoized?o=t:o=iqe(t,oqe,o7):r?o=hf(r(Object.assign({},e,{parentClientConfig:e}))):o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},o.memoized=!0,o}function _qe(e,t){if(t.configBound)return t;const r=async o=>t({...o,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}const QV=typeof TextEncoder=="function"?new TextEncoder:null,h7=e=>{if(typeof e=="string"){if(QV)return QV.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const o=e.charCodeAt(r);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&r--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},$c=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const o of t)r.push(o);return r},Al=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,s0=()=>{let e=[],t=[],r=!1;const o=new Set,i=f=>f.sort((p,h)=>JV[h.step]-JV[p.step]||eH[h.priority||"normal"]-eH[p.priority||"normal"]),s=f=>{let p=!1;const h=b=>{const g=$c(b.name,b.aliases);if(g.includes(f)){p=!0;for(const y of g)o.delete(y);return!1}return!0};return e=e.filter(h),t=t.filter(h),p},a=f=>{let p=!1;const h=b=>{if(b.middleware===f){p=!0;for(const g of $c(b.name,b.aliases))o.delete(g);return!1}return!0};return e=e.filter(h),t=t.filter(h),p},l=f=>(e.forEach(p=>{f.add(p.middleware,{...p})}),t.forEach(p=>{f.addRelativeTo(p.middleware,{...p})}),f.identifyOnResolve?.(d.identifyOnResolve()),f),c=f=>{const p=[];return f.before.forEach(h=>{h.before.length===0&&h.after.length===0?p.push(h):p.push(...c(h))}),p.push(f),f.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?p.push(h):p.push(...c(h))}),p},u=(f=!1)=>{const p=[],h=[],b={};return e.forEach(y=>{const v={...y,before:[],after:[]};for(const C of $c(v.name,v.aliases))b[C]=v;p.push(v)}),t.forEach(y=>{const v={...y,before:[],after:[]};for(const C of $c(v.name,v.aliases))b[C]=v;h.push(v)}),h.forEach(y=>{if(y.toMiddleware){const v=b[y.toMiddleware];if(v===void 0){if(f)return;throw new Error(`${y.toMiddleware} is not found when adding ${Al(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&v.after.push(y),y.relation==="before"&&v.before.push(y)}}),i(p).map(c).reduce((y,v)=>(y.push(...v),y),[])},d={add:(f,p={})=>{const{name:h,override:b,aliases:g}=p,y={step:"initialize",priority:"normal",middleware:f,...p},v=$c(h,g);if(v.length>0){if(v.some(C=>o.has(C))){if(!b)throw new Error(`Duplicate middleware name '${Al(h,g)}'`);for(const C of v){const O=e.findIndex(P=>P.name===C||P.aliases?.some(k=>k===C));if(O===-1)continue;const T=e[O];if(T.step!==y.step||y.priority!==T.priority)throw new Error(`"${Al(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${Al(h,g)}" middleware with ${y.priority} priority in ${y.step} step.`);e.splice(O,1)}}for(const C of v)o.add(C)}e.push(y)},addRelativeTo:(f,p)=>{const{name:h,override:b,aliases:g}=p,y={middleware:f,...p},v=$c(h,g);if(v.length>0){if(v.some(C=>o.has(C))){if(!b)throw new Error(`Duplicate middleware name '${Al(h,g)}'`);for(const C of v){const O=t.findIndex(P=>P.name===C||P.aliases?.some(k=>k===C));if(O===-1)continue;const T=t[O];if(T.toMiddleware!==y.toMiddleware||T.relation!==y.relation)throw new Error(`"${Al(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${Al(h,g)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);t.splice(O,1)}}for(const C of v)o.add(C)}t.push(y)},clone:()=>l(s0()),use:f=>{f.applyToStack(d)},remove:f=>typeof f=="string"?s(f):a(f),removeByTag:f=>{let p=!1;const h=b=>{const{tags:g,name:y,aliases:v}=b;if(g&&g.includes(f)){const C=$c(y,v);for(const O of C)o.delete(O);return p=!0,!1}return!0};return e=e.filter(h),t=t.filter(h),p},concat:f=>{const p=l(s0());return p.use(f),p.identifyOnResolve(r||p.identifyOnResolve()||(f.identifyOnResolve?.()??!1)),p},applyToStack:l,identify:()=>u(!0).map(f=>{const p=f.step??f.relation+" "+f.toMiddleware;return Al(f.name,f.aliases)+" - "+p}),identifyOnResolve(f){return typeof f=="boolean"&&(r=f),r},resolve:(f,p)=>{for(const h of u().map(b=>b.middleware).reverse())f=h(f,p);return r&&console.log(d.identify()),f}};return d},JV={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},eH={high:3,normal:2,low:1};class m7{config;middlewareStack=s0();initConfig;handlers;constructor(t){this.config=t;const{protocol:r,protocolSettings:o}=t;o&&typeof r=="function"&&(t.protocol=new r(o))}send(t,r,o){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:o,a=i===void 0&&this.config.cacheMiddleware===!0;let l;if(a){this.handlers||(this.handlers=new WeakMap);const c=this.handlers;c.has(t.constructor)?l=c.get(t.constructor):(l=t.resolveMiddleware(this.middlewareStack,this.config,i),c.set(t.constructor,l))}else delete this.handlers,l=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)l(t).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return l(t).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const KO="***SensitiveInformation***";function GP(e,t){if(t==null)return t;const r=or.of(e);if(r.getMergedTraits().sensitive)return KO;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return KO}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return KO}else if(r.isStructSchema()&&typeof t=="object"){const o=t,i={};for(const[s,a]of r.structIterator())o[s]!=null&&(i[s]=GP(a,o[s]));return i}return t}class IC{middlewareStack=s0();schema;static classBuilder(){return new Nqe}resolveMiddlewareWithContext(t,r,o,{middlewareFn:i,clientName:s,commandName:a,inputFilterSensitiveLog:l,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:d,CommandCtor:f}){for(const y of i.bind(this)(f,t,r,o))this.middlewareStack.use(y);const p=t.concat(this.middlewareStack),{logger:h}=r,b={logger:h,clientName:s,commandName:a,inputFilterSensitiveLog:l,outputFilterSensitiveLog:c,[jP]:{commandInstance:this,...u},...d},{requestHandler:g}=r;return p.resolve(y=>g.handle(y.request,o||{}),b)}}class Nqe{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,r,o={}){return this._smithyContext={service:t,operation:r,...o},this}c(t={}){return this._additionalContext=t,this}n(t,r){return this._clientName=t,this._commandName=r,this}f(t=o=>o,r=o=>o){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=r,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let r;return r=class extends IC{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[o]){super(),this.input=o??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(o,i,s){const a=t._operationSchema,l=a?.[4]??a?.input,c=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(o,i,s,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(a?GP.bind(null,l):u=>u),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(a?GP.bind(null,c):u=>u),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Qc extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const r=t;return Qc.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const r=t;return this===Qc?Qc.isInstance(t):Qc.isInstance(t)?r.name&&this.name?this.prototype.isPrototypeOf(t)||r.name===this.name:this.prototype.isPrototypeOf(t):!1}}const tH=(e,t={})=>{Object.entries(t).filter(([,o])=>o!==void 0).forEach(([o,i])=>{(e[o]==null||e[o]==="")&&(e[o]=i)});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},g7=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{}}},Fqe=e=>{const t=[];for(const r in r0){const o=r0[r];e[o]!==void 0&&t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}return{addChecksumAlgorithm(r){t.push(r)},checksumAlgorithms(){return t}}},Lqe=e=>{const t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},$qe=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),jqe=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},b7=e=>Object.assign(Fqe(e),$qe(e)),y7=e=>Object.assign(Lqe(e),jqe(e)),v7=e=>{const t="#text";for(const r in e)e.hasOwnProperty(r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=v7(e[r]));return e};class kC{trace(){}debug(){}info(){}warn(){}error(){}}class x7{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,r){const o=r.getMemberSchemas(),i=Object.values(o).find(s=>!!s.getMergedTraits().httpPayload);if(i){const s=i.getMergedTraits().mediaType;return s||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!r.isUnitSchema()&&Object.values(o).find(a=>{const{httpQuery:l,httpQueryParams:c,httpHeader:u,httpLabel:d,httpPrefixHeaders:f}=a.getMergedTraits();return!l&&!c&&!u&&!d&&f===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,r,o,i,s,a){let l=r,c=t;t.includes("#")&&([l,c]=t.split("#"));const u={$metadata:s,$fault:o.statusCode<500?"client":"server"},d=ti.for(l);try{return{errorSchema:a?.(d,c)??d.getSchema(t),errorMetadata:u}}catch{i.message=i.message??i.Message??"UnknownError";const p=ti.for("smithy.ts.sdk.synthetic."+l),h=p.getBaseException();if(h){const b=p.getErrorCtor(h)??Error;throw this.decorateServiceException(Object.assign(new b({name:c}),u),i)}throw this.decorateServiceException(Object.assign(new Error(c),u),i)}}decorateServiceException(t,r={}){if(this.queryCompat){const o=t.Message??r.Message,i=tH(t,r);o&&(i.message=o),i.Error={...i.Error,Type:i.Error?.Type,Code:i.Error?.Code,Message:i.Error?.message??i.Error?.Message??o};const s=i.$metadata.requestId;return s&&(i.RequestId=s),i}return tH(t,r)}setQueryCompatError(t,r){const o=r.headers?.["x-amzn-query-error"];if(t!==void 0&&o!=null){const[i,s]=o.split(";"),a=Object.entries(t),l={Code:i,Type:s};Object.assign(t,l);for(const[c,u]of a)l[c==="message"?"Message":c]=u;delete l.__type,t.Error=l}}queryCompatOutput(t,r){t.Error&&(r.Error=t.Error),t.Type&&(r.Type=t.Type),t.Code&&(r.Code=t.Code)}findQueryCompatibleError(t,r){try{return t.getSchema(r)}catch{return t.find(i=>or.of(i).getMergedTraits().awsQueryError?.[0]===r)}}}class RC{serdeContext;setSerdeContext(t){this.serdeContext=t}}class S7{from;to;keys;constructor(t,r){this.from=t,this.to=r,this.keys=new Set(Object.keys(this.from).filter(o=>o!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,r=this.from[t];this.to.$unknown=[t,r]}}}function Bqe(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Vqe(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class WP{value;constructor(t){this.value=t}toString(){return Vqe(""+this.value)}}class Jo{name;children;attributes={};static of(t,r,o){const i=new Jo(t);return r!==void 0&&i.addChildNode(new WP(r)),o!==void 0&&i.withName(o),i}constructor(t,r=[]){this.name=t,this.children=r}withName(t){return this.name=t,this}addAttribute(t,r){return this.attributes[t]=r,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,r){return r!=null&&(this.attributes[t]=r),this}cc(t,r,o=r){if(t[r]!=null){const i=Jo.of(r,t[r]).withName(o);this.c(i)}}l(t,r,o,i){t[r]!=null&&i().map(a=>{a.withName(o),this.c(a)})}lc(t,r,o,i){if(t[r]!=null){const s=i(),a=new Jo(o);s.map(l=>{a.c(l)}),this.c(a)}}toString(){const t=!!this.children.length;let r=`<${this.name}`;const o=this.attributes;for(const i of Object.keys(o)){const s=o[i];s!=null&&(r+=` ${i}="${Bqe(""+s)}"`)}return r+=t?`>${this.children.map(i=>i.toString()).join("")}</${this.name}>`:"/>"}}let YO;function Hqe(e){YO||(YO=new DOMParser);const t=YO.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const r=o=>{if(o.nodeType===Node.TEXT_NODE&&o.textContent?.trim())return o.textContent;if(o.nodeType===Node.ELEMENT_NODE){const i=o;if(i.attributes.length===0&&i.childNodes.length===0)return"";const s={},a=Array.from(i.attributes);for(const c of a)s[`${c.name}`]=c.value;const l=Array.from(i.childNodes);for(const c of l){const u=r(c);if(u!=null){const d=c.nodeName;if(l.length===1&&a.length===0&&d==="#text")return u;s[d]?Array.isArray(s[d])?s[d].push(u):s[d]=[s[d],u]:s[d]=u}else if(l.length===1&&a.length===0)return i.textContent}return s}return null};return{[t.documentElement.nodeName]:r(t.documentElement)}}class zqe extends RC{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new n7(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,r,o){const i=or.of(t),s=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){const u={},d=Object.keys(s)[0];return s[d].isBlobSchema()?u[d]=r:u[d]=this.read(s[d],r),u}const l=(this.serdeContext?.utf8Encoder??zu)(r),c=this.parseXml(l);return this.readSchema(t,o?c[o]:c)}readSchema(t,r){const o=or.of(t);if(o.isUnitSchema())return;const i=o.getMergedTraits();if(o.isListSchema()&&!Array.isArray(r))return this.readSchema(o,[r]);if(r==null)return r;if(typeof r=="object"){const s=!!i.sparse,a=!!i.xmlFlattened;if(o.isListSchema()){const c=o.getValueSchema(),u=[],d=c.getMergedTraits().xmlName??"member",f=a?r:(r[0]??r)[d],p=Array.isArray(f)?f:[f];for(const h of p)(h!=null||s)&&u.push(this.readSchema(c,h));return u}const l={};if(o.isMapSchema()){const c=o.getKeySchema(),u=o.getValueSchema();let d;a?d=Array.isArray(r)?r:[r]:d=Array.isArray(r.entry)?r.entry:[r.entry];const f=c.getMergedTraits().xmlName??"key",p=u.getMergedTraits().xmlName??"value";for(const h of d){const b=h[f],g=h[p];(g!=null||s)&&(l[b]=this.readSchema(u,g))}return l}if(o.isStructSchema()){const c=o.isUnionSchema();let u;c&&(u=new S7(r,l));for(const[d,f]of o.structIterator()){const p=f.getMergedTraits(),h=p.httpPayload?p.xmlName??f.getName():f.getMemberTraits().xmlName??d;c&&u.mark(h),r[h]!=null&&(l[d]=this.readSchema(f,r[h]))}return c&&u.writeUnknown(),l}if(o.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${o.getName(!0)}`)}return o.isListSchema()?[]:o.isMapSchema()||o.isStructSchema()?{}:this.stringDeserializer.read(o,r)}parseXml(t){if(t.length){let r;try{r=Hqe(t)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:t}),a}const o="#text",i=Object.keys(r)[0],s=r[i];return s[o]&&(s[i]=s[o],delete s[o]),v7(s)}return{}}}const qqe=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};class Uqe extends RC{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,r){const o=or.of(t);if(o.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(o.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Tu)(r);else{this.buffer=this.writeStruct(o,r,void 0);const i=o.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(o.getName())}}flush(){if(this.byteBuffer!==void 0){const r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){const r=this.stringBuffer;return delete this.stringBuffer,r}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,r,o){const i=t.getMergedTraits(),s=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!s||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const a=Jo.of(s),[l,c]=this.getXmlnsAttribute(t,o);for(const[d,f]of t.structIterator()){const p=r[d];if(p!=null||f.isIdempotencyToken()){if(f.getMergedTraits().xmlAttribute){a.addAttribute(f.getMergedTraits().xmlName??d,this.writeSimple(f,p));continue}if(f.isListSchema())this.writeList(f,p,a,c);else if(f.isMapSchema())this.writeMap(f,p,a,c);else if(f.isStructSchema())a.addChildNode(this.writeStruct(f,p,c));else{const h=Jo.of(f.getMergedTraits().xmlName??f.getMemberName());this.writeSimpleInto(f,p,h,c),a.addChildNode(h)}}}const{$unknown:u}=r;if(u&&t.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){const[d,f]=u,p=Jo.of(d);if(typeof f!="string")if(r instanceof Jo||r instanceof WP)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,f,p,c),a.addChildNode(p)}return c&&a.addAttribute(l,c),a}writeList(t,r,o,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const s=t.getMergedTraits(),a=t.getValueSchema(),l=a.getMergedTraits(),c=!!l.sparse,u=!!s.xmlFlattened,[d,f]=this.getXmlnsAttribute(t,i),p=(h,b)=>{if(a.isListSchema())this.writeList(a,Array.isArray(b)?b:[b],h,f);else if(a.isMapSchema())this.writeMap(a,b,h,f);else if(a.isStructSchema()){const g=this.writeStruct(a,b,f);h.addChildNode(g.withName(u?s.xmlName??t.getMemberName():l.xmlName??"member"))}else{const g=Jo.of(u?s.xmlName??t.getMemberName():l.xmlName??"member");this.writeSimpleInto(a,b,g,f),h.addChildNode(g)}};if(u)for(const h of r)(c||h!=null)&&p(o,h);else{const h=Jo.of(s.xmlName??t.getMemberName());f&&h.addAttribute(d,f);for(const b of r)(c||b!=null)&&p(h,b);o.addChildNode(h)}}writeMap(t,r,o,i,s=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const a=t.getMergedTraits(),l=t.getKeySchema(),u=l.getMergedTraits().xmlName??"key",d=t.getValueSchema(),f=d.getMergedTraits(),p=f.xmlName??"value",h=!!f.sparse,b=!!a.xmlFlattened,[g,y]=this.getXmlnsAttribute(t,i),v=(C,O,T)=>{const P=Jo.of(u,O),[k,M]=this.getXmlnsAttribute(l,y);M&&P.addAttribute(k,M),C.addChildNode(P);let _=Jo.of(p);d.isListSchema()?this.writeList(d,T,_,y):d.isMapSchema()?this.writeMap(d,T,_,y,!0):d.isStructSchema()?_=this.writeStruct(d,T,y):this.writeSimpleInto(d,T,_,y),C.addChildNode(_)};if(b){for(const[C,O]of Object.entries(r))if(h||O!=null){const T=Jo.of(a.xmlName??t.getMemberName());v(T,C,O),o.addChildNode(T)}}else{let C;s||(C=Jo.of(a.xmlName??t.getMemberName()),y&&C.addAttribute(g,y),o.addChildNode(C));for(const[O,T]of Object.entries(r))if(h||T!=null){const P=Jo.of("entry");v(P,O,T),(s?o:C).addChildNode(P)}}}writeSimple(t,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const o=or.of(t);let i=null;if(r&&typeof r=="object")if(o.isBlobSchema())i=(this.serdeContext?.base64Encoder??oc)(r);else if(o.isTimestampSchema()&&r instanceof Date)switch(EC(o,this.settings)){case 5:i=r.toISOString().replace(".000Z","Z");break;case 6:i=i0(r);break;case 7:i=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),i=i0(r);break}else{if(o.isBigDecimalSchema()&&r)return r instanceof fg?r.string:String(r);throw o.isMapSchema()||o.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${o.getName(!0)}`)}if((o.isBooleanSchema()||o.isNumericSchema()||o.isBigIntegerSchema()||o.isBigDecimalSchema())&&(i=String(r)),o.isStringSchema()&&(r===void 0&&o.isIdempotencyToken()?i=OC():i=String(r)),i===null)throw new Error(`Unhandled schema-value pair ${o.getName(!0)}=${r}`);return i}writeSimpleInto(t,r,o,i){const s=this.writeSimple(t,r),a=or.of(t),l=new WP(s),[c,u]=this.getXmlnsAttribute(a,i);u&&o.addAttribute(c,u),o.addChildNode(l)}getXmlnsAttribute(t,r){const o=t.getMergedTraits(),[i,s]=o.xmlNamespace??[];return s&&s!==r?[i?`xmlns:${i}`:"xmlns",s]:[void 0,void 0]}}class Gqe extends RC{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new Uqe(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new zqe(this.settings);return t.setSerdeContext(this.serdeContext),t}}class Wqe extends Xze{codec;serializer;deserializer;mixin=new x7;constructor(t){super(t);const r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new Gqe(r),this.serializer=new eqe(this.codec.createSerializer(),r),this.deserializer=new Qze(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,r,o){const i=await super.serializeRequest(t,r,o),s=or.of(t.input);if(!i.headers["content-type"]){const a=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);a&&(i.headers["content-type"]=a)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(i.body='<?xml version="1.0" encoding="UTF-8"?>'+i.body),i}async deserializeResponse(t,r,o){return super.deserializeResponse(t,r,o)}async handleError(t,r,o,i,s){const a=qqe(o,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(const b of Object.keys(i.Error))i[b]=i.Error[b],b.toLowerCase()==="message"&&(i.message=i.Error[b]);i.RequestId&&!s.requestId&&(s.requestId=i.RequestId);const{errorSchema:l,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,o,i,s),u=or.of(l),d=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",f=ti.for(l[1]).getErrorCtor(l)??Error,p=new f(d);await this.deserializeHttpMessage(l,r,o,i);const h={};for(const[b,g]of u.structIterator()){const y=g.getMergedTraits().xmlName??b,v=i.Error?.[y]??i[y];h[b]=this.codec.createDeserializer().readSchema(g,v)}throw this.mixin.decorateServiceException(Object.assign(p,c,{$fault:u.getMergedTraits().error,message:d},h),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,r]of t.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}const KP=[Jn.CRC32,Jn.CRC32C,Jn.CRC64NVME,Jn.SHA1,Jn.SHA256],Kqe=[Jn.SHA256,Jn.SHA1,Jn.CRC32,Jn.CRC32C,Jn.CRC64NVME],Yqe=(e,{requestChecksumRequired:t,requestAlgorithmMember:r,requestChecksumCalculation:o})=>{if(!r)return o===jf.WHEN_SUPPORTED||t?BP:void 0;if(!e[r])return;const i=e[r];if(!KP.includes(i))throw new Error(`The checksum algorithm "${i}" is not supported by the client. Select one of ${KP}.`);return i},PM=e=>e===Jn.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,Zqe=(e,t)=>{const r=e.toLowerCase();for(const o of Object.keys(t))if(r===o.toLowerCase())return!0;return!1},Xqe=(e,t)=>{const r=e.toLowerCase();for(const o of Object.keys(t))if(o.toLowerCase().startsWith(r))return!0;return!1},C7=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!d7(e);function EM(e,t,r,o){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):i(d.value).then(l,c)}u((o=o.apply(e,t||[])).next())})}function IM(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(d){return c([u,d])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(o=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(d){u=[6,d],i=0}finally{o=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function w7(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}const Qqe=e=>new TextEncoder().encode(e);var Jqe=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Qqe;function ic(e){return e instanceof Uint8Array?e:typeof e=="string"?Jqe(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function dm(e){return typeof e=="string"?e.length===0:e.byteLength===0}function T7(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function O7(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}var e3e=(function(){function e(){this.crc32c=new nH}return e.prototype.update=function(t){dm(t)||this.crc32c.update(ic(t))},e.prototype.digest=function(){return EM(this,void 0,void 0,function(){return IM(this,function(t){return[2,T7(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new nH},e})(),nH=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var r,o;try{for(var i=w7(t),s=i.next();!s.done;s=i.next()){var a=s.value;this.checksum=this.checksum>>>8^n3e[(this.checksum^a)&255]}}catch(l){r={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),t3e=[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],n3e=O7(t3e);const r3e=()=>{const t=new Array(8);for(let r=0;r<8;r++){const o=new Array(512);for(let i=0;i<256;i++){let s=BigInt(i);for(let a=0;a<8*(r+1);a++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;o[i*2]=Number(s>>32n&0xffffffffn),o[i*2+1]=Number(s&0xffffffffn)}t[r]=new Uint32Array(o)}return t};let ZO,ph,YP,ZP,XP,QP,JP,eE,tE;const o3e=()=>{ZO||(ZO=r3e(),[ph,YP,ZP,XP,QP,JP,eE,tE]=ZO)};class i3e{c1=0;c2=0;constructor(){o3e(),this.reset()}update(t){const r=t.length;let o=0,i=this.c1,s=this.c2;for(;o+8<=r;){const a=((s^t[o++])&255)<<1,l=((s>>>8^t[o++])&255)<<1,c=((s>>>16^t[o++])&255)<<1,u=((s>>>24^t[o++])&255)<<1,d=((i^t[o++])&255)<<1,f=((i>>>8^t[o++])&255)<<1,p=((i>>>16^t[o++])&255)<<1,h=((i>>>24^t[o++])&255)<<1;i=tE[a]^eE[l]^JP[c]^QP[u]^XP[d]^ZP[f]^YP[p]^ph[h],s=tE[a+1]^eE[l+1]^JP[c+1]^QP[u+1]^XP[d+1]^ZP[f+1]^YP[p+1]^ph[h+1]}for(;o<r;){const a=((s^t[o])&255)<<1;s=(s>>>8|(i&255)<<24)>>>0,i=i>>>8^ph[a],s^=ph[a+1],o++}this.c1=i,this.c2=s}async digest(){const t=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([t>>>24,t>>>16&255,t>>>8&255,t&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}var s3e=(function(){function e(){this.crc32=new a0}return e.prototype.update=function(t){dm(t)||this.crc32.update(ic(t))},e.prototype.digest=function(){return EM(this,void 0,void 0,function(){return IM(this,function(t){return[2,T7(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new a0},e})(),a0=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var r,o;try{for(var i=w7(t),s=i.next();!s.done;s=i.next()){var a=s.value;this.checksum=this.checksum>>>8^l3e[(this.checksum^a)&255]}}catch(l){r={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),a3e=[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],l3e=O7(a3e);const c3e=()=>s3e,P7=(e,t)=>{switch(e){case Jn.MD5:return t.md5;case Jn.CRC32:return c3e();case Jn.CRC32C:return e3e;case Jn.CRC64NVME:return i3e;case Jn.SHA1:return t.sha1;case Jn.SHA256:return t.sha256;default:throw new Error(`Unsupported checksum algorithm: ${e}`)}},E7=(e,t)=>{const r=new e;return r.update(Bf(t||"")),r.digest()},u3e={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},d3e=(e,t)=>(r,o)=>async i=>{if(!Br.isInstance(i.request)||Xqe("x-amz-checksum-",i.request.headers))return r(i);const{request:s,input:a}=i,{body:l,headers:c}=s,{base64Encoder:u,streamHasher:d}=e,{requestChecksumRequired:f,requestAlgorithmMember:p}=t,h=await e.requestChecksumCalculation(),b=p?.name,g=p?.httpHeader;b&&!a[b]&&(h===jf.WHEN_SUPPORTED||f)&&(a[b]=BP,g&&(c[g]=BP));const y=Yqe(a,{requestChecksumRequired:f,requestAlgorithmMember:p?.name,requestChecksumCalculation:h});let v=l,C=c;if(y){switch(y){case Jn.CRC32:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Jn.CRC32C:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Jn.CRC64NVME:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Jn.SHA1:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Jn.SHA256:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const O=PM(y),T=P7(y,e);if(C7(l)){const{getAwsChunkedEncodingStream:P,bodyLengthChecker:k}=e;v=P(typeof e.requestStreamBufferSize=="number"&&e.requestStreamBufferSize>=8*1024?JHe(l,e.requestStreamBufferSize,o.logger):l,{base64Encoder:u,bodyLengthChecker:k,checksumLocationName:O,checksumAlgorithmFn:T,streamHasher:d}),C={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":O},delete C["content-length"]}else if(!Zqe(O,c)){const P=await E7(T,l);C={...c,[O]:u(P)}}}try{return await r({...i,request:{...s,headers:C,body:v}})}catch(O){if(O instanceof Error&&O.name==="InvalidChunkSizeError")try{O.message.endsWith(".")||(O.message+="."),O.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw O}},f3e={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},p3e=(e,t)=>(r,o)=>async i=>{const s=i.input,{requestValidationModeMember:a}=t,l=await e.requestChecksumCalculation(),c=await e.responseChecksumValidation();switch(l){case jf.WHEN_REQUIRED:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case jf.WHEN_SUPPORTED:Gr(o,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case $O.WHEN_REQUIRED:Gr(o,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case $O.WHEN_SUPPORTED:Gr(o,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return a&&!s[a]&&c===$O.WHEN_SUPPORTED&&(s[a]="ENABLED"),r(i)},I7=(e=[])=>{const t=[];for(const r of Kqe)!e.includes(r)||!KP.includes(r)||t.push(r);return t},h3e=e=>{const t=e.lastIndexOf("-");if(t!==-1){const r=e.slice(t+1);if(!r.startsWith("0")){const o=parseInt(r,10);if(!isNaN(o)&&o>=1&&o<=1e4)return!0}}return!1},m3e=async(e,{checksumAlgorithmFn:t,base64Encoder:r})=>r(await E7(t,e)),g3e=async(e,{config:t,responseAlgorithms:r,logger:o})=>{const i=I7(r),{body:s,headers:a}=e;for(const l of i){const c=PM(l),u=a[c];if(u){let d;try{d=P7(l,t)}catch(h){if(l===Jn.CRC64NVME){o?.warn(`Skipping ${Jn.CRC64NVME} checksum validation: ${h.message}`);continue}throw h}const{base64Encoder:f}=t;if(C7(s)){e.body=ZHe({expectedChecksum:u,checksumSourceLocation:c,checksum:new d,source:s,base64Encoder:f});return}const p=await m3e(s,{checksumAlgorithmFn:d,base64Encoder:f});if(p===u)break;throw new Error(`Checksum mismatch: expected "${p}" but received "${u}" in response header "${c}".`)}}},b3e={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},y3e=(e,t)=>(r,o)=>async i=>{if(!Br.isInstance(i.request))return r(i);const s=i.input,a=await r(i),l=a.response,{requestValidationModeMember:c,responseAlgorithms:u}=t;if(c&&s[c]==="ENABLED"){const{clientName:d,commandName:f}=o;if(d==="S3Client"&&f==="GetObjectCommand"&&I7(u).every(h=>{const b=PM(h),g=l.headers[b];return!g||h3e(g)}))return a;await g3e(l,{config:e,responseAlgorithms:u,logger:o.logger})}return a},v3e=(e,t)=>({applyToStack:r=>{r.add(d3e(e,t),u3e),r.addRelativeTo(p3e(e,t),f3e),r.addRelativeTo(y3e(e,t),b3e)}}),x3e=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:r,requestStreamBufferSize:o}=e;return Object.assign(e,{requestChecksumCalculation:Rs(t??DHe),responseChecksumValidation:Rs(r??_He),requestStreamBufferSize:Number(o??0)})};function S3e(e){return e}const C3e=e=>t=>async r=>{if(!Br.isInstance(r.request))return t(r);const{request:o}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!o.headers[":authority"])delete o.headers.host,o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"");else if(!o.headers.host){let s=o.hostname;o.port!=null&&(s+=`:${o.port}`),o.headers.host=s}return t(r)},w3e={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},k7=e=>({applyToStack:t=>{t.add(C3e(e),w3e)}}),T3e=()=>(e,t)=>async r=>{try{const o=await e(r),{clientName:i,commandName:s,logger:a,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=l,d=c??t.inputFilterSensitiveLog,f=u??t.outputFilterSensitiveLog,{$metadata:p,...h}=o.output;return a?.info?.({clientName:i,commandName:s,input:d(r.input),output:f(h),metadata:p}),o}catch(o){const{clientName:i,commandName:s,logger:a,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c}=l,u=c??t.inputFilterSensitiveLog;throw a?.error?.({clientName:i,commandName:s,input:u(r.input),error:o,metadata:o.$metadata}),o}},O3e={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},R7=e=>({applyToStack:t=>{t.add(T3e(),O3e)}}),P3e={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},E3e=()=>e=>async t=>e(t),M7=e=>({applyToStack:t=>{t.add(E3e(),P3e)}}),I3e="content-length",k3e="x-amz-decoded-content-length";function R3e(){return(e,t)=>async r=>{const{request:o}=r;if(Br.isInstance(o)&&!(I3e in o.headers)&&!(k3e in o.headers)){const i="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 kC)?t.logger.warn(i):console.warn(i)}return e({...r})}}const M3e={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},A3e=e=>({applyToStack:t=>{t.add(R3e(),M3e)}}),D3e=e=>(t,r)=>async o=>{const i=await e.region(),s=e.region;let a=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:s}));try{const l=await t(o);if(r.__s3RegionRedirect){a();const c=await e.region();if(i!==c)throw new Error("Region was not restored following S3 region redirect.")}return l}catch(l){throw a(),l}},_3e={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function N3e(e){return(t,r)=>async o=>{try{return await t(o)}catch(i){if(e.followRegionRedirects){const s=i?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",l=i?.$response?.headers?.["x-amz-bucket-region"];if(l&&(s===301||s===400&&(i?.name==="IllegalLocationConstraintException"||a))){try{const c=l;r.logger?.debug(`Redirecting from ${await e.region()} to ${c}`),r.__s3RegionRedirect=c}catch(c){throw new Error("Region redirect failed: "+c)}return t(o)}}throw i}}}const F3e={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},L3e=e=>({applyToStack:t=>{t.add(N3e(e),F3e),t.addRelativeTo(D3e(e),_3e)}});class kM{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const r=this.data[t];if(r)return r}set(t,r){return this.data[t]=r,r}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+kM.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const r in this.data){const o=this.data[r];if(!o.isRefreshing){const i=await o.identity;i.expiration&&i.expiration.getTime()<t&&delete this.data[r]}}}}class XO{_identity;isRefreshing;accessed;constructor(t,r=!1,o=Date.now()){this._identity=t,this.isRefreshing=r,this.accessed=o}get identity(){return this.accessed=Date.now(),this._identity}}class RM{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(t,r=new kM){this.createSessionFn=t,this.cache=r}async getS3ExpressIdentity(t,r){const o=r.Bucket,{cache:i}=this,s=i.get(o);return s?s.identity.then(a=>(a.expiration?.getTime()??0)<Date.now()?i.set(o,new XO(this.getIdentity(o))).identity:((a.expiration?.getTime()??0)<Date.now()+RM.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(o).then(u=>{i.set(o,new XO(Promise.resolve(u)))})),a)):i.set(o,new XO(this.getIdentity(o))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
464
- `+i)});const r=await this.createSessionFn(t);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}const $3e="Directory",j3e="S3Express",B3e="sigv4-s3express",nE="X-Amz-S3session-Token",rE=nE.toLowerCase();class V3e extends UP{async signWithCredentials(t,r,o){const i=rH(r);t.headers[rE]=r.sessionToken;const s=this;return oH(s,i),s.signRequest(t,o??{})}async presignWithCredentials(t,r,o){const i=rH(r);return delete t.headers[rE],t.headers[nE]=r.sessionToken,t.query=t.query??{},t.query[nE]=r.sessionToken,oH(this,i),this.presign(t,o)}}function rH(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function oH(e,t){const r=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),o=e.credentialProvider,i=()=>(clearTimeout(r),e.credentialProvider=o,Promise.resolve(t));e.credentialProvider=i}const H3e=e=>(t,r)=>async o=>{if(r.endpointV2){const i=r.endpointV2,s=i.properties?.authSchemes?.[0]?.name===B3e;if((i.properties?.backend===j3e||i.properties?.bucketType===$3e)&&(Gr(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){const l=o.input.Bucket;if(l){const c=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:l});r.s3ExpressIdentity=c,Br.isInstance(o.request)&&c.sessionToken&&(o.request.headers[rE]=c.sessionToken)}}}return t(o)},z3e={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},q3e=e=>({applyToStack:t=>{t.add(H3e(e),z3e)}}),U3e=async(e,t,r,o)=>{const i=await o.signWithCredentials(r,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},G3e=e=>t=>{throw t},W3e=(e,t)=>{},K3e=e=>(t,r)=>async o=>{if(!Br.isInstance(o.request))return t(o);const s=gl(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:l,signer:c}=s;let u;r.s3ExpressIdentity?u=await U3e(r.s3ExpressIdentity,a,o.request,await e.signer()):u=await c.sign(o.request,l,a);const d=await t({...o,request:u}).catch((c.errorHandler||G3e)(a));return(c.successHandler||W3e)(d.response,a),d},Y3e=e=>({applyToStack:t=>{t.addRelativeTo(K3e(e),zW)}}),Z3e=(e,{session:t})=>{const[r,o]=t,{forcePathStyle:i,useAccelerateEndpoint:s,disableMultiregionAccessPoints:a,followRegionRedirects:l,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:d}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:l??!1,s3ExpressIdentityProvider:c??new RM(async f=>r().send(new o({Bucket:f}))),bucketEndpoint:u??!1,expectContinueHeader:d??2097152})},X3e={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Q3e=3e3,J3e=e=>(t,r)=>async o=>{const i=await t(o),{response:s}=i;if(!wu.isInstance(s))return i;const{statusCode:a,body:l}=s;if(a<200||a>=300||!(typeof l?.stream=="function"||typeof l?.pipe=="function"||typeof l?.tee=="function"))return i;let u=l,d=l;l&&typeof l=="object"&&!(l instanceof Uint8Array)&&([u,d]=await uze(l)),s.body=d;const f=await e5e(u,{streamCollector:async h=>rze(h,Q3e)});typeof u?.destroy=="function"&&u.destroy();const p=e.utf8Encoder(f.subarray(f.length-16));if(f.length===0&&X3e[r.commandName]){const h=new Error("S3 aborted request");throw h.name="InternalError",h}return p&&p.endsWith("</Error>")&&(s.statusCode=400),i},e5e=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),t5e={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},A7=e=>({applyToStack:t=>{t.addRelativeTo(J3e(e),t5e)}}),n5e=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function r5e(e){return(t,r)=>async o=>{if(e.bucketEndpoint){const i=r.endpointV2;if(i){const s=o.input.Bucket;if(typeof s=="string")try{const a=new URL(s);r.endpointV2={...i,url:a}}catch(a){const l=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(l):r.logger?.warn?.(l),a}}}return t(o)}}const o5e={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function i5e({bucketEndpoint:e}){return t=>async r=>{const{input:{Bucket:o}}=r;if(!e&&typeof o=="string"&&!n5e(o)&&o.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${o}'`);throw i.name="InvalidBucketName",i}return t({...r})}}const s5e={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},a5e=e=>({applyToStack:t=>{t.add(i5e(e),s5e),t.addRelativeTo(r5e(e),o5e)}}),l5e=void 0;function c5e(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function D7(e){const t=hf(e.userAgentAppId??l5e),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{const o=await t();if(!c5e(o)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof o!="string"?i?.warn("userAgentAppId must be a string or undefined."):o.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return o}})}class _7{capacity;data=new Map;parameters=[];constructor({size:t,params:r}){this.capacity=t??50,r&&(this.parameters=r)}get(t,r){const o=this.hash(t);if(o===!1)return r();if(!this.data.has(o)){if(this.data.size>this.capacity+10){const i=this.data.keys();let s=0;for(;;){const{value:a,done:l}=i.next();if(this.data.delete(a),l||++s>10)break}}this.data.set(o,r())}return this.data.get(o)}size(){return this.data.size}hash(t){let r="";const{parameters:o}=this;if(o.length===0)return!1;for(const i of o){const s=String(t[i]??"");if(s.includes("|;"))return!1;r+=s+"|;"}return r}}const u5e=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),MM=e=>u5e.test(e)||e.startsWith("[")&&e.endsWith("]"),d5e=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pg=(e,t=!1)=>{if(!t)return d5e.test(e);const r=e.split(".");for(const o of r)if(!pg(o))return!1;return!0},fm={},pm="endpoints";function sc(e){return typeof e!="object"||e==null?e:"ref"in e?`$${sc(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(sc).join(", ")})`:JSON.stringify(e,null,2)}class Xi extends Error{constructor(t){super(t),this.name="EndpointError"}}const f5e=(e,t)=>e===t,p5e=e=>{const t=e.split("."),r=[];for(const o of t){const i=o.indexOf("[");if(i!==-1){if(o.indexOf("]")!==o.length-1)throw new Xi(`Path: '${e}' does not end with ']'`);const s=o.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Xi(`Invalid array index: '${s}' in path: '${e}'`);i!==0&&r.push(o.slice(0,i)),r.push(s)}else r.push(o)}return r},N7=(e,t)=>p5e(t).reduce((r,o)=>{if(typeof r!="object")throw new Xi(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(o)]:r[o]},e),h5e=e=>e!=null,m5e=e=>!e,QO={[cm.HTTP]:80,[cm.HTTPS]:443},g5e=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:p,port:h,protocol:b="",path:g="",query:y={}}=e,v=new URL(`${b}//${p}${h?`:${h}`:""}${g}`);return v.search=Object.entries(y).map(([C,O])=>`${C}=${O}`).join("&"),v}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:o,hostname:i,pathname:s,protocol:a,search:l}=t;if(l)return null;const c=a.slice(0,-1);if(!Object.values(cm).includes(c))return null;const u=MM(i),d=r.includes(`${o}:${QO[c]}`)||typeof e=="string"&&e.includes(`${o}:${QO[c]}`),f=`${o}${d?`:${QO[c]}`:""}`;return{scheme:c,authority:f,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}},b5e=(e,t)=>e===t,y5e=(e,t,r,o)=>t>=r||e.length<r?null:o?e.substring(e.length-r,e.length-t):e.substring(t,r),v5e=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),x5e={booleanEquals:f5e,getAttr:N7,isSet:h5e,isValidHostLabel:pg,not:m5e,parseURL:g5e,stringEquals:b5e,substring:y5e,uriEncode:v5e},F7=(e,t)=>{const r=[],o={...t.endpointParams,...t.referenceRecord};let i=0;for(;i<e.length;){const s=e.indexOf("{",i);if(s===-1){r.push(e.slice(i));break}r.push(e.slice(i,s));const a=e.indexOf("}",s);if(a===-1){r.push(e.slice(s));break}e[s+1]==="{"&&e[a+1]==="}"&&(r.push(e.slice(s+1,a)),i=a+2);const l=e.substring(s+1,a);if(l.includes("#")){const[c,u]=l.split("#");r.push(N7(o[c],u))}else r.push(o[l]);i=a+1}return r.join("")},S5e=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],MC=(e,t,r)=>{if(typeof e=="string")return F7(e,r);if(e.fn)return $7.callFunction(e,r);if(e.ref)return S5e(e,r);throw new Xi(`'${t}': ${String(e)} is not a string, function or reference.`)},L7=({fn:e,argv:t},r)=>{const o=t.map(s=>["boolean","number"].includes(typeof s)?s:$7.evaluateExpression(s,"arg",r)),i=e.split(".");return i[0]in fm&&i[1]!=null?fm[i[0]][i[1]](...o):x5e[e](...o)},$7={evaluateExpression:MC,callFunction:L7},C5e=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new Xi(`'${e}' is already defined in Reference Record.`);const o=L7(t,r);return r.logger?.debug?.(`${pm} evaluateCondition: ${sc(t)} = ${sc(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}},AM=(e=[],t)=>{const r={};for(const o of e){const{result:i,toAssign:s}=C5e(o,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!i)return{result:i};s&&(r[s.name]=s.value,t.logger?.debug?.(`${pm} assign: ${s.name} := ${sc(s.value)}`))}return{result:!0,referenceRecord:r}},w5e=(e,t)=>Object.entries(e).reduce((r,[o,i])=>({...r,[o]:i.map(s=>{const a=MC(s,"Header value entry",t);if(typeof a!="string")throw new Xi(`Header '${o}' value '${a}' is not a string`);return a})}),{}),j7=(e,t)=>Object.entries(e).reduce((r,[o,i])=>({...r,[o]:V7.getEndpointProperty(i,t)}),{}),B7=(e,t)=>{if(Array.isArray(e))return e.map(r=>B7(r,t));switch(typeof e){case"string":return F7(e,t);case"object":if(e===null)throw new Xi(`Unexpected endpoint property: ${e}`);return V7.getEndpointProperties(e,t);case"boolean":return e;default:throw new Xi(`Unexpected endpoint property type: ${typeof e}`)}},V7={getEndpointProperty:B7,getEndpointProperties:j7},T5e=(e,t)=>{const r=MC(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new Xi(`Endpoint URL must be a string, got ${typeof r}`)},O5e=(e,t)=>{const{conditions:r,endpoint:o}=e,{result:i,referenceRecord:s}=AM(r,t);if(!i)return;const a={...t,referenceRecord:{...t.referenceRecord,...s}},{url:l,properties:c,headers:u}=o;return t.logger?.debug?.(`${pm} Resolving endpoint from template: ${sc(o)}`),{...u!=null&&{headers:w5e(u,a)},...c!=null&&{properties:j7(c,a)},url:T5e(l,a)}},P5e=(e,t)=>{const{conditions:r,error:o}=e,{result:i,referenceRecord:s}=AM(r,t);if(i)throw new Xi(MC(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))},H7=(e,t)=>{for(const r of e)if(r.type==="endpoint"){const o=O5e(r,t);if(o)return o}else if(r.type==="error")P5e(r,t);else if(r.type==="tree"){const o=z7.evaluateTreeRule(r,t);if(o)return o}else throw new Xi(`Unknown endpoint rule: ${r}`);throw new Xi("Rules evaluation failed")},E5e=(e,t)=>{const{conditions:r,rules:o}=e,{result:i,referenceRecord:s}=AM(r,t);if(i)return z7.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...s}})},z7={evaluateRules:H7,evaluateTreeRule:E5e},q7=(e,t)=>{const{endpointParams:r,logger:o}=t,{parameters:i,rules:s}=e;t.logger?.debug?.(`${pm} Initial EndpointParams: ${sc(r)}`);const a=Object.entries(i).filter(([,u])=>u.default!=null).map(([u,d])=>[u,d.default]);if(a.length>0)for(const[u,d]of a)r[u]=r[u]??d;const l=Object.entries(i).filter(([,u])=>u.required).map(([u])=>u);for(const u of l)if(r[u]==null)throw new Xi(`Missing required parameter: '${u}'`);const c=H7(s,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${pm} Resolved endpoint: ${sc(c)}`),c},U7=(e,t=!1)=>{if(t){for(const r of e.split("."))if(!U7(r))return!1;return!0}return!(!pg(e)||e.length<3||e.length>63||e!==e.toLowerCase()||MM(e))},iH=":",I5e="/",k5e=e=>{const t=e.split(iH);if(t.length<6)return null;const[r,o,i,s,a,...l]=t;if(r!=="arn"||o===""||i===""||l.join(iH)==="")return null;const c=l.map(u=>u.split(I5e)).flat();return{partition:o,service:i,region:s,accountId:a,resourceId:c}},R5e=[{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)"}}}],M5e={partitions:R5e};let A5e=M5e;const D5e=e=>{const{partitions:t}=A5e;for(const o of t){const{regions:i,outputs:s}=o;for(const[a,l]of Object.entries(i))if(a===e)return{...s,...l}}for(const o of t){const{regionRegex:i,outputs:s}=o;if(new RegExp(i).test(e))return{...s}}const r=t.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},G7={isVirtualHostableS3Bucket:U7,parseArn:k5e,partition:D5e};fm.aws=G7;function _5e(e){const t={};if(e=e.replace(/^\?/,""),e)for(const r of e.split("&")){let[o,i=null]=r.split("=");o=decodeURIComponent(o),i&&(i=decodeURIComponent(i)),o in t?Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]:t[o]=i}return t}const hm=e=>{if(typeof e=="string")return hm(new URL(e));const{hostname:t,pathname:r,port:o,protocol:i,search:s}=e;let a;return s&&(a=_5e(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:i,path:r,query:a}},N5e=/\d{12}\.ddb/;async function F5e(e,t,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Gr(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const s=await t.retryStrategy();typeof s.acquireInitialRetryToken=="function"?s.constructor?.name?.includes("Adaptive")?Gr(e,"RETRY_MODE_ADAPTIVE","F"):Gr(e,"RETRY_MODE_STANDARD","E"):Gr(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const s=e.endpointV2;switch(String(s?.url?.hostname).match(N5e)&&Gr(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Gr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Gr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Gr(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const s=i;s.accountId&&Gr(e,"RESOLVED_ACCOUNT_ID","T");for(const[a,l]of Object.entries(s.$source??{}))Gr(e,a,l)}}const sH="user-agent",JO="x-amz-user-agent",aH=" ",e1="/",L5e=/[^!$%&'*+\-.^_`|~\w]/g,$5e=/[^!$%&'*+\-.^_`|~\w#]/g,lH="-",j5e=1024;function B5e(e){let t="";for(const r in e){const o=e[r];if(t.length+o.length+1<=j5e){t.length?t+=","+o:t+=o;continue}break}return t}const V5e=e=>(t,r)=>async o=>{const{request:i}=o;if(!Br.isInstance(i))return t(o);const{headers:s}=i,a=r?.userAgent?.map(Ev)||[],l=(await e.defaultUserAgentProvider()).map(Ev);await F5e(r,e,o);const c=r;l.push(`m/${B5e(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const u=e?.customUserAgent?.map(Ev)||[],d=await e.userAgentAppId();d&&l.push(Ev(["app",`${d}`]));const f=[].concat([...l,...a,...u]).join(aH),p=[...l.filter(h=>h.startsWith("aws-sdk-")),...u].join(aH);return e.runtime!=="browser"?(p&&(s[JO]=s[JO]?`${s[sH]} ${p}`:p),s[sH]=f):s[JO]=f,t({...o,request:i})},Ev=e=>{const t=e[0].split(e1).map(a=>a.replace(L5e,lH)).join(e1),r=e[1]?.replace($5e,lH),o=t.indexOf(e1),i=t.substring(0,o);let s=t.substring(o+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},H5e={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},W7=e=>({applyToStack:t=>{t.add(V5e(e),H5e)}}),K7=!1,Y7=!1,cH=new Set,z5e=(e,t=pg)=>{if(!cH.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else cH.add(e)},Z7=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),q5e=e=>Z7(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,X7=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const o=typeof t=="function"?await t():t,i=q5e(o);return z5e(i),i},useFipsEndpoint:async()=>{const o=typeof t=="string"?t:await t();return Z7(o)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})},U5e=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),uH="content-length";function G5e(e){return t=>async r=>{const o=r.request;if(Br.isInstance(o)){const{body:i,headers:s}=o;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(uH)===-1)try{const a=e(i);o.headers={...o.headers,[uH]:String(a)}}catch{}}return t({...r,request:o})}}const W5e={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Q7=e=>({applyToStack:t=>{t.add(G5e(e.bodyLengthChecker),W5e)}}),K5e=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),J5e(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Q5e(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},Y5e=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Z5e=/(\d+\.){3}\d+/,X5e=/\.\./,Q5e=e=>Y5e.test(e)&&!Z5e.test(e)&&!X5e.test(e),J5e=e=>{const[t,r,o,,,i]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,a=!!(s&&r&&o&&i);if(s&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},e4e=(e,t,r,o=!1)=>{const i=async()=>{let s;return o?s=r.clientContextParams?.[e]??r[e]??r[t]:s=r[e]??r[t],typeof s=="function"?s():s};return e==="credentialScope"||t==="CredentialScope"?async()=>{const s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;const s=await i();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){const{protocol:a,hostname:l,port:c,path:u}=s;return`${a}//${l}${c?":"+c:""}${u}`}}return s}:i},J7=async e=>{},eK=e=>typeof e=="object"?"url"in e?hm(e.url):e:hm(e),t4e=async(e,t,r,o)=>{if(!r.isCustomEndpoint){let a;r.serviceConfiguredEndpoint?a=await r.serviceConfiguredEndpoint():a=await J7(r.serviceId),a&&(r.endpoint=()=>Promise.resolve(eK(a)),r.isCustomEndpoint=!0)}const i=await tK(e,t,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,o)},tK=async(e,t,r)=>{const o={},i=t?.getEndpointParameterInstructions?.()||{};for(const[s,a]of Object.entries(i))switch(a.type){case"staticContextParams":o[s]=a.value;break;case"contextParams":o[s]=e[a.name];break;case"clientContextParams":case"builtInParams":o[s]=await e4e(a.name,s,r,a.type!=="builtInParams")();break;case"operationContextParams":o[s]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(o,r),String(r.serviceId).toLowerCase()==="s3"&&await K5e(o),o},n4e=({config:e,instructions:t})=>(r,o)=>async i=>{e.isCustomEndpoint&&tqe(o,"ENDPOINT_OVERRIDE","N");const s=await t4e(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;const a=o.authSchemes?.[0];if(a){o.signing_region=a.signingRegion,o.signing_service=a.signingName;const c=gl(o)?.selectedHttpAuthScheme?.httpAuthOption;c&&(c.signingProperties=Object.assign(c.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return r({...i})},r4e={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:HHe.name},DM=(e,t)=>({applyToStack:r=>{r.addRelativeTo(n4e({config:e,instructions:t}),r4e)}}),nK=e=>{const t=e.tls??!0,{endpoint:r,useDualstackEndpoint:o,useFipsEndpoint:i}=e,s=r!=null?async()=>eK(await Rs(r)()):void 0,l=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!r,useDualstackEndpoint:Rs(o??!1),useFipsEndpoint:Rs(i??!1)});let c;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!c&&(c=J7(e.serviceId)),c),l};var Vf;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Vf||(Vf={}));const mm=3,rK=Vf.STANDARD,o4e=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],i4e=["TimeoutError","RequestTimeout","RequestTimeoutException"],s4e=[500,502,503,504],a4e=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],l4e=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],c4e=e=>e?.$retryable!==void 0,u4e=e=>e.$metadata?.clockSkewCorrected,d4e=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},oK=e=>e.$metadata?.httpStatusCode===429||o4e.includes(e.name)||e.$retryable?.throttling==!0,_M=(e,t=0)=>c4e(e)||u4e(e)||i4e.includes(e.name)||a4e.includes(e?.code||"")||l4e.includes(e?.code||"")||s4e.includes(e.$metadata?.httpStatusCode||0)||d4e(e)||e.cause!==void 0&&t<=10&&_M(e.cause,t+1),f4e=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!_M(e)}return!1};class NM{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(o=>NM.setTimeoutFn(o,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),oK(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const o=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(o*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}}const oE=100,iK=20*1e3,p4e=500,dH=500,h4e=5,m4e=10,g4e=1,b4e="amz-sdk-invocation-id",y4e="amz-sdk-request",v4e=()=>{let e=oE;return{computeNextBackoffDelay:o=>Math.floor(Math.min(iK,Math.random()*2**o*e)),setDelayBase:o=>{e=o}}},fH=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(iK,e),getRetryCost:()=>r});class sK{maxAttempts;mode=Vf.STANDARD;capacity=dH;retryBackoffStrategy=v4e();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return fH({retryDelay:oE,retryCount:0})}async refreshRetryTokenForRetry(t,r){const o=await this.getMaxAttempts();if(this.shouldRetry(t,r,o)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?p4e:oE);const s=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),a=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,l=this.getCapacityCost(i);return this.capacity-=l,fH({retryDelay:a,retryCount:t.getRetryCount()+1,retryCost:l})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(dH,this.capacity+(t.getRetryCost()??g4e))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${mm}`),mm}}shouldRetry(t,r,o){return t.getRetryCount()+1<o&&this.capacity>=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(t){return t==="TRANSIENT"?m4e:h4e}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class x4e{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Vf.ADAPTIVE;constructor(t,r){this.maxAttemptsProvider=t;const{rateLimiter:o}=r??{};this.rateLimiter=o??new NM,this.standardRetryStrategy=new sK(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(t,r)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const S4e=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),aK=e=>{const{retryStrategy:t,retryMode:r,maxAttempts:o}=e,i=Rs(o??mm);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Rs(r)()===Vf.ADAPTIVE?new x4e(i):new sK(i))})},C4e=e=>e?.body instanceof ReadableStream,w4e=e=>(t,r)=>async o=>{let i=await e.retryStrategy();const s=await e.maxAttempts();if(T4e(i)){i=i;let a=await i.acquireInitialRetryToken(r.partition_id),l=new Error,c=0,u=0;const{request:d}=o,f=Br.isInstance(d);for(f&&(d.headers[b4e]=OC());;)try{f&&(d.headers[y4e]=`attempt=${c+1}; max=${s}`);const{response:p,output:h}=await t(o);return i.recordSuccess(a),h.$metadata.attempts=c+1,h.$metadata.totalRetryDelay=u,{response:p,output:h}}catch(p){const h=O4e(p);if(l=S4e(p),f&&C4e(d))throw(r.logger instanceof kC?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{a=await i.refreshRetryTokenForRetry(a,h)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=c+1,l.$metadata.totalRetryDelay=u,l}c=a.getRetryCount();const b=a.getRetryDelay();u+=b,await new Promise(g=>setTimeout(g,b))}}else return i=i,i?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,o)},T4e=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",O4e=e=>{const t={error:e,errorType:P4e(e)},r=I4e(e.$response);return r&&(t.retryAfterHint=r),t},P4e=e=>oK(e)?"THROTTLING":_M(e)?"TRANSIENT":f4e(e)?"SERVER_ERROR":"CLIENT_ERROR",E4e={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},lK=e=>({applyToStack:t=>{t.add(w4e(e),E4e)}}),I4e=e=>{if(!wu.isInstance(e))return;const t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;const r=e.headers[t],o=Number(r);return Number.isNaN(o)?new Date(r):new Date(o*1e3)};class cK{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new V3e(t),this.signerOptions=t}async sign(t,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(t,r):this.sigv4Signer.sign(t,r)}async signWithCredentials(t,r,o={}){if(o.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,r,o)}async presign(t,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,r)}async presignWithCredentials(t,r,o={}){if(o.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,r,o)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const FM="required",ue="type",Be="rules",be="conditions",ke="fn",Re="argv",Et="ref",tn="assign",dt="url",ft="properties",Ja="backend",go="authSchemes",Wr="disableDoubleEncoding",Kr="signingName",Eo="signingRegion",pt="headers",LM="signingRegionSet",k4e=6,R4e=!1,ua=!0,qi="isSet",jr="booleanEquals",xt="error",l0="aws.partition",wn="stringEquals",wr="getAttr",Or="name",Qn="substring",pH="bucketSuffix",$M="parseURL",Ye="endpoint",Ve="tree",c0="aws.isVirtualHostableS3Bucket",u0="{url#scheme}://{Bucket}.{url#authority}{url#path}",Ca="not",hH="accessPointSuffix",Jv="{url#scheme}://{url#authority}{url#path}",uK="hardwareType",dK="regionPrefix",mH="bucketAliasSuffix",iE="outpostId",qu="isValidHostLabel",jM="sigv4a",gm="s3-outposts",Hf="s3",fK="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",pK="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",gH="https://{Bucket}.s3.{partitionResult#dnsSuffix}",hK="aws.parseArn",mK="bucketArn",gK="arnType",d0="",BM="s3-object-lambda",bK="accesspoint",VM="accessPointName",bH="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",yH="mrapPartition",vH="outpostType",xH="arnPrefix",yK="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",SH="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",CH="https://s3.{partitionResult#dnsSuffix}",Fd={[FM]:!1,[ue]:"string"},Ld={[FM]:!0,default:!1,[ue]:"boolean"},Xp={[FM]:!1,[ue]:"boolean"},gs={[ke]:jr,[Re]:[{[Et]:"Accelerate"},!0]},rr={[ke]:jr,[Re]:[{[Et]:"UseFIPS"},!0]},Yn={[ke]:jr,[Re]:[{[Et]:"UseDualStack"},!0]},Lr={[ke]:qi,[Re]:[{[Et]:"Endpoint"}]},vK={[ke]:l0,[Re]:[{[Et]:"Region"}],[tn]:"partitionResult"},wH={[ke]:wn,[Re]:[{[ke]:wr,[Re]:[{[Et]:"partitionResult"},Or]},"aws-cn"]},Mh={[ke]:qi,[Re]:[{[Et]:"Bucket"}]},xn={[Et]:"Bucket"},TH={[be]:[gs],[xt]:"S3Express does not support S3 Accelerate.",[ue]:xt},OH={[be]:[Lr,{[ke]:$M,[Re]:[{[Et]:"Endpoint"}],[tn]:"url"}],[Be]:[{[be]:[{[ke]:qi,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"}]},{[ke]:jr,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"},!0]}],[Be]:[{[be]:[{[ke]:jr,[Re]:[{[ke]:wr,[Re]:[{[Et]:"url"},"isIp"]},!0]}],[Be]:[{[be]:[{[ke]:"uriEncode",[Re]:[xn],[tn]:"uri_encoded_bucket"}],[Be]:[{[Ye]:{[dt]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:c0,[Re]:[xn,!1]}],[Be]:[{[Ye]:{[dt]:u0,[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve},{[xt]:"S3Express bucket name is not a valid virtual hostable name.",[ue]:xt}],[ue]:Ve},{[be]:[{[ke]:jr,[Re]:[{[ke]:wr,[Re]:[{[Et]:"url"},"isIp"]},!0]}],[Be]:[{[be]:[{[ke]:"uriEncode",[Re]:[xn],[tn]:"uri_encoded_bucket"}],[Be]:[{[Ye]:{[dt]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:c0,[Re]:[xn,!1]}],[Be]:[{[Ye]:{[dt]:u0,[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve},{[xt]:"S3Express bucket name is not a valid virtual hostable name.",[ue]:xt}],[ue]:Ve},Xo={[ke]:$M,[Re]:[{[Et]:"Endpoint"}],[tn]:"url"},t1={[ke]:jr,[Re]:[{[ke]:wr,[Re]:[{[Et]:"url"},"isIp"]},!0]},xK={[Et]:"url"},SK={[ke]:"uriEncode",[Re]:[xn],[tn]:"uri_encoded_bucket"},ji={[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:"s3express",[Eo]:"{Region}"}]},qt={},CK={[ke]:c0,[Re]:[xn,!1]},PH={[xt]:"S3Express bucket name is not a valid virtual hostable name.",[ue]:xt},EH={[ke]:qi,[Re]:[{[Et]:"UseS3ExpressControlEndpoint"}]},IH={[ke]:jr,[Re]:[{[Et]:"UseS3ExpressControlEndpoint"},!0]},Qt={[ke]:Ca,[Re]:[Lr]},hn={[ke]:jr,[Re]:[{[Et]:"UseDualStack"},!1]},an={[ke]:jr,[Re]:[{[Et]:"UseFIPS"},!1]},Iv={[xt]:"Unrecognized S3Express bucket name format.",[ue]:xt},kH={[ke]:Ca,[Re]:[Mh]},RH={[Et]:uK},MH={[be]:[Qt],[xt]:"Expected a endpoint to be specified but no endpoint was found",[ue]:xt},kv={[go]:[{[Wr]:!0,[Or]:jM,[Kr]:gm,[LM]:["*"]},{[Wr]:!0,[Or]:"sigv4",[Kr]:gm,[Eo]:"{Region}"}]},n1={[ke]:jr,[Re]:[{[Et]:"ForcePathStyle"},!1]},M4e={[Et]:"ForcePathStyle"},Ur={[ke]:jr,[Re]:[{[Et]:"Accelerate"},!1]},to={[ke]:wn,[Re]:[{[Et]:"Region"},"aws-global"]},fo={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"us-east-1"}]},bn={[ke]:Ca,[Re]:[to]},po={[ke]:jr,[Re]:[{[Et]:"UseGlobalEndpoint"},!0]},AH={[dt]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:{[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"{Region}"}]},[pt]:{}},Yr={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"{Region}"}]},ho={[ke]:jr,[Re]:[{[Et]:"UseGlobalEndpoint"},!1]},DH={[dt]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},_H={[dt]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},NH={[dt]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},r1={[ke]:jr,[Re]:[{[ke]:wr,[Re]:[xK,"isIp"]},!1]},o1={[dt]:fK,[ft]:Yr,[pt]:{}},sE={[dt]:u0,[ft]:Yr,[pt]:{}},FH={[Ye]:sE,[ue]:Ye},i1={[dt]:pK,[ft]:Yr,[pt]:{}},LH={[dt]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},Rv={[xt]:"Invalid region: region was not a valid DNS name.",[ue]:xt},Ti={[Et]:mK},wK={[Et]:gK},s1={[ke]:wr,[Re]:[Ti,"service"]},HM={[Et]:VM},$H={[be]:[Yn],[xt]:"S3 Object Lambda does not support Dual-stack",[ue]:xt},jH={[be]:[gs],[xt]:"S3 Object Lambda does not support S3 Accelerate",[ue]:xt},BH={[be]:[{[ke]:qi,[Re]:[{[Et]:"DisableAccessPoints"}]},{[ke]:jr,[Re]:[{[Et]:"DisableAccessPoints"},!0]}],[xt]:"Access points are not supported for this operation",[ue]:xt},a1={[be]:[{[ke]:qi,[Re]:[{[Et]:"UseArnRegion"}]},{[ke]:jr,[Re]:[{[Et]:"UseArnRegion"},!1]},{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]},"{Region}"]}]}],[xt]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[ue]:xt},TK={[ke]:wr,[Re]:[{[Et]:"bucketPartition"},Or]},OK={[ke]:wr,[Re]:[Ti,"accountId"]},l1={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:BM,[Eo]:"{bucketArn#region}"}]},VH={[xt]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[ue]:xt},c1={[xt]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[ue]:xt},u1={[xt]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[ue]:xt},d1={[xt]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[ue]:xt},HH={[xt]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[ue]:xt},zH={[xt]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[ue]:xt},Qp={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"{bucketArn#region}"}]},qH={[go]:[{[Wr]:!0,[Or]:jM,[Kr]:gm,[LM]:["*"]},{[Wr]:!0,[Or]:"sigv4",[Kr]:gm,[Eo]:"{bucketArn#region}"}]},UH={[ke]:hK,[Re]:[xn]},GH={[dt]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},WH={[dt]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},KH={[dt]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},f1={[dt]:yK,[ft]:Yr,[pt]:{}},YH={[dt]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},ZH={[Et]:"UseObjectLambdaEndpoint"},p1={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:BM,[Eo]:"{Region}"}]},XH={[dt]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},QH={[dt]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},JH={[dt]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},h1={[dt]:Jv,[ft]:Yr,[pt]:{}},ez={[dt]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},m1=[{[Et]:"Region"}],A4e=[{[Et]:"Endpoint"}],D4e=[xn],g1=[gs],$d=[Lr,Xo],tz=[{[ke]:qi,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"}]},{[ke]:jr,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"},!0]}],_4e=[SK],b1=[CK],hs=[vK],y1=[rr,Yn],Ah=[rr,hn],Dh=[an,Yn],_h=[an,hn],nz=[{[ke]:Qn,[Re]:[xn,6,14,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,14,16,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],da=[{[be]:[rr,Yn],[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye},{[be]:Ah,[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye},{[be]:Dh,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye},{[be]:_h,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye}],rz=[{[ke]:Qn,[Re]:[xn,6,15,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,15,17,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],oz=[{[ke]:Qn,[Re]:[xn,6,19,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,19,21,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],iz=[{[ke]:Qn,[Re]:[xn,6,20,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,20,22,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],sz=[{[ke]:Qn,[Re]:[xn,6,26,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,26,28,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],fa=[{[be]:[rr,Yn],[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye},{[be]:Ah,[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye},{[be]:Dh,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye},{[be]:_h,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],az=[xn,0,7,!0],lz=[{[ke]:Qn,[Re]:[xn,7,15,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,15,17,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],cz=[{[ke]:Qn,[Re]:[xn,7,16,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,16,18,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],uz=[{[ke]:Qn,[Re]:[xn,7,20,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,20,22,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],dz=[{[ke]:Qn,[Re]:[xn,7,21,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,21,23,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],fz=[{[ke]:Qn,[Re]:[xn,7,27,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,27,29,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],N4e=[Mh],pz=[{[ke]:qu,[Re]:[{[Et]:iE},!1]}],hz=[{[ke]:wn,[Re]:[{[Et]:dK},"beta"]}],F4e=["*"],mz=[{[ke]:qu,[Re]:[{[Et]:"Region"},!1]}],Dl=[{[ke]:wn,[Re]:[{[Et]:"Region"},"us-east-1"]}],v1=[{[ke]:wn,[Re]:[wK,bK]}],gz=[{[ke]:wr,[Re]:[Ti,"resourceId[1]"],[tn]:VM},{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[HM,d0]}]}],L4e=[Ti,"resourceId[1]"],bz=[Yn],x1=[{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]},d0]}]}],yz=[{[ke]:Ca,[Re]:[{[ke]:qi,[Re]:[{[ke]:wr,[Re]:[Ti,"resourceId[2]"]}]}]}],$4e=[Ti,"resourceId[2]"],S1=[{[ke]:l0,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]}],[tn]:"bucketPartition"}],vz=[{[ke]:wn,[Re]:[TK,{[ke]:wr,[Re]:[{[Et]:"partitionResult"},Or]}]}],C1=[{[ke]:qu,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]},!0]}],w1=[{[ke]:qu,[Re]:[OK,!1]}],xz=[{[ke]:qu,[Re]:[HM,!1]}],Mv=[rr],Sz=[{[ke]:qu,[Re]:[{[Et]:"Region"},!0]}],j4e={parameters:{Bucket:Fd,Region:Fd,UseFIPS:Ld,UseDualStack:Ld,Endpoint:Fd,ForcePathStyle:Ld,Accelerate:Ld,UseGlobalEndpoint:Ld,UseObjectLambdaEndpoint:Xp,Key:Fd,Prefix:Fd,CopySource:Fd,DisableAccessPoints:Xp,DisableMultiRegionAccessPoints:Ld,UseArnRegion:Xp,UseS3ExpressControlEndpoint:Xp,DisableS3ExpressSessionAuth:Xp},[Be]:[{[be]:[{[ke]:qi,[Re]:m1}],[Be]:[{[be]:[gs,rr],error:"Accelerate cannot be used with FIPS",[ue]:xt},{[be]:[Yn,Lr],error:"Cannot set dual-stack in combination with a custom endpoint.",[ue]:xt},{[be]:[Lr,rr],error:"A custom endpoint cannot be combined with FIPS",[ue]:xt},{[be]:[Lr,gs],error:"A custom endpoint cannot be combined with S3 Accelerate",[ue]:xt},{[be]:[rr,vK,wH],error:"Partition does not support FIPS",[ue]:xt},{[be]:[Mh,{[ke]:Qn,[Re]:[xn,0,k4e,ua],[tn]:pH},{[ke]:wn,[Re]:[{[Et]:pH},"--x-s3"]}],[Be]:[TH,OH,{[be]:[EH,IH],[Be]:[{[be]:hs,[Be]:[{[be]:[SK,Qt],[Be]:[{[be]:y1,endpoint:{[dt]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Ah,endpoint:{[dt]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Dh,endpoint:{[dt]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:_h,endpoint:{[dt]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye}],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{[be]:b1,[Be]:[{[be]:hs,[Be]:[{[be]:tz,[Be]:[{[be]:nz,[Be]:da,[ue]:Ve},{[be]:rz,[Be]:da,[ue]:Ve},{[be]:oz,[Be]:da,[ue]:Ve},{[be]:iz,[Be]:da,[ue]:Ve},{[be]:sz,[Be]:da,[ue]:Ve},Iv],[ue]:Ve},{[be]:nz,[Be]:fa,[ue]:Ve},{[be]:rz,[Be]:fa,[ue]:Ve},{[be]:oz,[Be]:fa,[ue]:Ve},{[be]:iz,[Be]:fa,[ue]:Ve},{[be]:sz,[Be]:fa,[ue]:Ve},Iv],[ue]:Ve}],[ue]:Ve},PH],[ue]:Ve},{[be]:[Mh,{[ke]:Qn,[Re]:az,[tn]:hH},{[ke]:wn,[Re]:[{[Et]:hH},"--xa-s3"]}],[Be]:[TH,OH,{[be]:b1,[Be]:[{[be]:hs,[Be]:[{[be]:tz,[Be]:[{[be]:lz,[Be]:da,[ue]:Ve},{[be]:cz,[Be]:da,[ue]:Ve},{[be]:uz,[Be]:da,[ue]:Ve},{[be]:dz,[Be]:da,[ue]:Ve},{[be]:fz,[Be]:da,[ue]:Ve},Iv],[ue]:Ve},{[be]:lz,[Be]:fa,[ue]:Ve},{[be]:cz,[Be]:fa,[ue]:Ve},{[be]:uz,[Be]:fa,[ue]:Ve},{[be]:dz,[Be]:fa,[ue]:Ve},{[be]:fz,[Be]:fa,[ue]:Ve},Iv],[ue]:Ve}],[ue]:Ve},PH],[ue]:Ve},{[be]:[kH,EH,IH],[Be]:[{[be]:hs,[Be]:[{[be]:$d,endpoint:{[dt]:Jv,[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:y1,endpoint:{[dt]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Ah,endpoint:{[dt]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Dh,endpoint:{[dt]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:_h,endpoint:{[dt]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye}],[ue]:Ve}],[ue]:Ve},{[be]:[Mh,{[ke]:Qn,[Re]:[xn,49,50,ua],[tn]:uK},{[ke]:Qn,[Re]:[xn,8,12,ua],[tn]:dK},{[ke]:Qn,[Re]:az,[tn]:mH},{[ke]:Qn,[Re]:[xn,32,49,ua],[tn]:iE},{[ke]:l0,[Re]:m1,[tn]:"regionPartition"},{[ke]:wn,[Re]:[{[Et]:mH},"--op-s3"]}],[Be]:[{[be]:pz,[Be]:[{[be]:b1,[Be]:[{[be]:[{[ke]:wn,[Re]:[RH,"e"]}],[Be]:[{[be]:hz,[Be]:[MH,{[be]:$d,endpoint:{[dt]:"https://{Bucket}.ec2.{url#authority}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{endpoint:{[dt]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{[be]:[{[ke]:wn,[Re]:[RH,"o"]}],[Be]:[{[be]:hz,[Be]:[MH,{[be]:$d,endpoint:{[dt]:"https://{Bucket}.op-{outpostId}.{url#authority}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{endpoint:{[dt]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[ue]:xt}],[ue]:Ve},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[ue]:xt}],[ue]:Ve},{[be]:N4e,[Be]:[{[be]:[Lr,{[ke]:Ca,[Re]:[{[ke]:qi,[Re]:[{[ke]:$M,[Re]:A4e}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[ue]:xt},{[be]:[n1,CK],[Be]:[{[be]:hs,[Be]:[{[be]:mz,[Be]:[{[be]:[gs,wH],error:"S3 Accelerate cannot be used in this region",[ue]:xt},{[be]:[Yn,rr,Ur,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,rr,Ur,Qt,bn,po],[Be]:[{endpoint:AH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,rr,Ur,Qt,bn,ho],endpoint:AH,[ue]:Ye},{[be]:[hn,rr,Ur,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,rr,Ur,Qt,bn,po],[Be]:[{endpoint:DH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,rr,Ur,Qt,bn,ho],endpoint:DH,[ue]:Ye},{[be]:[Yn,an,gs,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,an,gs,Qt,bn,po],[Be]:[{endpoint:_H,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,an,gs,Qt,bn,ho],endpoint:_H,[ue]:Ye},{[be]:[Yn,an,Ur,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,an,Ur,Qt,bn,po],[Be]:[{endpoint:NH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,an,Ur,Qt,bn,ho],endpoint:NH,[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,t1,to],endpoint:{[dt]:fK,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,r1,to],endpoint:{[dt]:u0,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,t1,bn,po],[Be]:[{[be]:Dl,endpoint:o1,[ue]:Ye},{endpoint:o1,[ue]:Ye}],[ue]:Ve},{[be]:[hn,an,Ur,Lr,Xo,r1,bn,po],[Be]:[{[be]:Dl,endpoint:sE,[ue]:Ye},FH],[ue]:Ve},{[be]:[hn,an,Ur,Lr,Xo,t1,bn,ho],endpoint:o1,[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,r1,bn,ho],endpoint:sE,[ue]:Ye},{[be]:[hn,an,gs,Qt,to],endpoint:{[dt]:pK,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,gs,Qt,bn,po],[Be]:[{[be]:Dl,endpoint:i1,[ue]:Ye},{endpoint:i1,[ue]:Ye}],[ue]:Ve},{[be]:[hn,an,gs,Qt,bn,ho],endpoint:i1,[ue]:Ye},{[be]:[hn,an,Ur,Qt,to],endpoint:{[dt]:gH,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,Ur,Qt,bn,po],[Be]:[{[be]:Dl,endpoint:{[dt]:gH,[ft]:Yr,[pt]:qt},[ue]:Ye},{endpoint:LH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,an,Ur,Qt,bn,ho],endpoint:LH,[ue]:Ye}],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve},{[be]:[Lr,Xo,{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[xK,"scheme"]},"http"]},{[ke]:c0,[Re]:[xn,ua]},n1,an,hn,Ur],[Be]:[{[be]:hs,[Be]:[{[be]:mz,[Be]:[FH],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve},{[be]:[n1,{[ke]:hK,[Re]:D4e,[tn]:mK}],[Be]:[{[be]:[{[ke]:wr,[Re]:[Ti,"resourceId[0]"],[tn]:gK},{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[wK,d0]}]}],[Be]:[{[be]:[{[ke]:wn,[Re]:[s1,BM]}],[Be]:[{[be]:v1,[Be]:[{[be]:gz,[Be]:[$H,jH,{[be]:x1,[Be]:[BH,{[be]:yz,[Be]:[a1,{[be]:S1,[Be]:[{[be]:hs,[Be]:[{[be]:vz,[Be]:[{[be]:C1,[Be]:[{[be]:[{[ke]:wn,[Re]:[OK,d0]}],error:"Invalid ARN: Missing account id",[ue]:xt},{[be]:w1,[Be]:[{[be]:xz,[Be]:[{[be]:$d,endpoint:{[dt]:bH,[ft]:l1,[pt]:qt},[ue]:Ye},{[be]:Mv,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:l1,[pt]:qt},[ue]:Ye},{endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:l1,[pt]:qt},[ue]:Ye}],[ue]:Ve},VH],[ue]:Ve},c1],[ue]:Ve},u1],[ue]:Ve},d1],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},HH],[ue]:Ve},{error:"Invalid ARN: bucket ARN is missing a region",[ue]:xt}],[ue]:Ve},zH],[ue]:Ve},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[ue]:xt}],[ue]:Ve},{[be]:v1,[Be]:[{[be]:gz,[Be]:[{[be]:x1,[Be]:[{[be]:v1,[Be]:[{[be]:x1,[Be]:[BH,{[be]:yz,[Be]:[a1,{[be]:S1,[Be]:[{[be]:hs,[Be]:[{[be]:[{[ke]:wn,[Re]:[TK,"{partitionResult#name}"]}],[Be]:[{[be]:C1,[Be]:[{[be]:[{[ke]:wn,[Re]:[s1,Hf]}],[Be]:[{[be]:w1,[Be]:[{[be]:xz,[Be]:[{[be]:g1,error:"Access Points do not support S3 Accelerate",[ue]:xt},{[be]:y1,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:Ah,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:Dh,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:[an,hn,Lr,Xo],endpoint:{[dt]:bH,[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:_h,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye}],[ue]:Ve},VH],[ue]:Ve},c1],[ue]:Ve},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[ue]:xt}],[ue]:Ve},u1],[ue]:Ve},d1],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},HH],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:qu,[Re]:[HM,ua]}],[Be]:[{[be]:bz,error:"S3 MRAP does not support dual-stack",[ue]:xt},{[be]:Mv,error:"S3 MRAP does not support FIPS",[ue]:xt},{[be]:g1,error:"S3 MRAP does not support S3 Accelerate",[ue]:xt},{[be]:[{[ke]:jr,[Re]:[{[Et]:"DisableMultiRegionAccessPoints"},ua]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[ue]:xt},{[be]:[{[ke]:l0,[Re]:m1,[tn]:yH}],[Be]:[{[be]:[{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[{[Et]:yH},Or]},{[ke]:wr,[Re]:[Ti,"partition"]}]}],[Be]:[{endpoint:{[dt]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[ft]:{[go]:[{[Wr]:ua,name:jM,[Kr]:Hf,[LM]:F4e}]},[pt]:qt},[ue]:Ye}],[ue]:Ve},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[ue]:xt}],[ue]:Ve}],[ue]:Ve},{error:"Invalid Access Point Name",[ue]:xt}],[ue]:Ve},zH],[ue]:Ve},{[be]:[{[ke]:wn,[Re]:[s1,gm]}],[Be]:[{[be]:bz,error:"S3 Outposts does not support Dual-stack",[ue]:xt},{[be]:Mv,error:"S3 Outposts does not support FIPS",[ue]:xt},{[be]:g1,error:"S3 Outposts does not support S3 Accelerate",[ue]:xt},{[be]:[{[ke]:qi,[Re]:[{[ke]:wr,[Re]:[Ti,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[ue]:xt},{[be]:[{[ke]:wr,[Re]:L4e,[tn]:iE}],[Be]:[{[be]:pz,[Be]:[a1,{[be]:S1,[Be]:[{[be]:hs,[Be]:[{[be]:vz,[Be]:[{[be]:C1,[Be]:[{[be]:w1,[Be]:[{[be]:[{[ke]:wr,[Re]:$4e,[tn]:vH}],[Be]:[{[be]:[{[ke]:wr,[Re]:[Ti,"resourceId[3]"],[tn]:VM}],[Be]:[{[be]:[{[ke]:wn,[Re]:[{[Et]:vH},bK]}],[Be]:[{[be]:$d,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[ft]:qH,[pt]:qt},[ue]:Ye},{endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:qH,[pt]:qt},[ue]:Ye}],[ue]:Ve},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: expected an access point name",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: Expected a 4-component resource",[ue]:xt}],[ue]:Ve},c1],[ue]:Ve},u1],[ue]:Ve},d1],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: The Outpost Id was not set",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: No ARN type specified",[ue]:xt}],[ue]:Ve},{[be]:[{[ke]:Qn,[Re]:[xn,0,4,R4e],[tn]:xH},{[ke]:wn,[Re]:[{[Et]:xH},"arn:"]},{[ke]:Ca,[Re]:[{[ke]:qi,[Re]:[UH]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[ue]:xt},{[be]:[{[ke]:jr,[Re]:[M4e,ua]},UH],error:"Path-style addressing cannot be used with ARN buckets",[ue]:xt},{[be]:_4e,[Be]:[{[be]:hs,[Be]:[{[be]:[Ur],[Be]:[{[be]:[Yn,Qt,rr,to],endpoint:{[dt]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,Qt,rr,bn,po],[Be]:[{endpoint:GH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,Qt,rr,bn,ho],endpoint:GH,[ue]:Ye},{[be]:[hn,Qt,rr,to],endpoint:{[dt]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,Qt,rr,bn,po],[Be]:[{endpoint:WH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,Qt,rr,bn,ho],endpoint:WH,[ue]:Ye},{[be]:[Yn,Qt,an,to],endpoint:{[dt]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,Qt,an,bn,po],[Be]:[{endpoint:KH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,Qt,an,bn,ho],endpoint:KH,[ue]:Ye},{[be]:[hn,Lr,Xo,an,to],endpoint:{[dt]:yK,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,Lr,Xo,an,bn,po],[Be]:[{[be]:Dl,endpoint:f1,[ue]:Ye},{endpoint:f1,[ue]:Ye}],[ue]:Ve},{[be]:[hn,Lr,Xo,an,bn,ho],endpoint:f1,[ue]:Ye},{[be]:[hn,Qt,an,to],endpoint:{[dt]:SH,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,Qt,an,bn,po],[Be]:[{[be]:Dl,endpoint:{[dt]:SH,[ft]:Yr,[pt]:qt},[ue]:Ye},{endpoint:YH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,Qt,an,bn,ho],endpoint:YH,[ue]:Ye}],[ue]:Ve},{error:"Path-style addressing cannot be used with S3 Accelerate",[ue]:xt}],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:qi,[Re]:[ZH]},{[ke]:jr,[Re]:[ZH,ua]}],[Be]:[{[be]:hs,[Be]:[{[be]:Sz,[Be]:[$H,jH,{[be]:$d,endpoint:{[dt]:Jv,[ft]:p1,[pt]:qt},[ue]:Ye},{[be]:Mv,endpoint:{[dt]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:p1,[pt]:qt},[ue]:Ye},{endpoint:{[dt]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[ft]:p1,[pt]:qt},[ue]:Ye}],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve},{[be]:[kH],[Be]:[{[be]:hs,[Be]:[{[be]:Sz,[Be]:[{[be]:[rr,Yn,Qt,to],endpoint:{[dt]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[rr,Yn,Qt,bn,po],[Be]:[{endpoint:XH,[ue]:Ye}],[ue]:Ve},{[be]:[rr,Yn,Qt,bn,ho],endpoint:XH,[ue]:Ye},{[be]:[rr,hn,Qt,to],endpoint:{[dt]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[rr,hn,Qt,bn,po],[Be]:[{endpoint:QH,[ue]:Ye}],[ue]:Ve},{[be]:[rr,hn,Qt,bn,ho],endpoint:QH,[ue]:Ye},{[be]:[an,Yn,Qt,to],endpoint:{[dt]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[an,Yn,Qt,bn,po],[Be]:[{endpoint:JH,[ue]:Ye}],[ue]:Ve},{[be]:[an,Yn,Qt,bn,ho],endpoint:JH,[ue]:Ye},{[be]:[an,hn,Lr,Xo,to],endpoint:{[dt]:Jv,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[an,hn,Lr,Xo,bn,po],[Be]:[{[be]:Dl,endpoint:h1,[ue]:Ye},{endpoint:h1,[ue]:Ye}],[ue]:Ve},{[be]:[an,hn,Lr,Xo,bn,ho],endpoint:h1,[ue]:Ye},{[be]:[an,hn,Qt,to],endpoint:{[dt]:CH,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[an,hn,Qt,bn,po],[Be]:[{[be]:Dl,endpoint:{[dt]:CH,[ft]:Yr,[pt]:qt},[ue]:Ye},{endpoint:ez,[ue]:Ye}],[ue]:Ve},{[be]:[an,hn,Qt,bn,ho],endpoint:ez,[ue]:Ye}],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{error:"A region must be set when sending requests to S3.",[ue]:xt}]},B4e=j4e,V4e=new _7({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),PK=(e,t={})=>V4e.get(e,()=>q7(B4e,{endpointParams:e,logger:t.logger}));fm.aws=G7;const H4e=e=>async(t,r,o)=>{if(!o)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,r,o),s=gl(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);const a=await tK(o,{getEndpointParameterInstructions:s},t);return Object.assign(i,a)},z4e=async(e,t,r)=>({operation:gl(t).operation,region:await Rs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),q4e=H4e(z4e);function EK(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function IK(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}const U4e=(e,t,r)=>i=>{const a=e(i).properties?.authSchemes;if(!a)return t(i);const l=[];for(const c of a){const{name:u,properties:d={},...f}=c,p=u.toLowerCase();u!==p&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${p}'`);let h;if(p==="sigv4a"){h="aws.auth#sigv4a";const y=a.find(v=>{const C=v.name.toLowerCase();return C!=="sigv4a"&&C.startsWith("sigv4")});if(cK.sigv4aDependency()==="none"&&y)continue}else if(p.startsWith("sigv4"))h="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${p}'`);const b=r[h];if(!b)throw new Error(`Could not find HttpAuthOption create function for '${h}'`);const g=b(i);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...f,...d},l.push(g)}return l},G4e=e=>{const t=[];switch(e.operation){default:t.push(EK(e)),t.push(IK(e))}return t},W4e=U4e(PK,G4e,{"aws.auth#sigv4":EK,"aws.auth#sigv4a":IK}),K4e=e=>{const t=p7(e),r=aqe(t);return Object.assign(r,{authSchemePreference:Rs(e.authSchemePreference??[])})},Y4e=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??{}}),kK={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class xo extends Qc{constructor(t){super(t),Object.setPrototypeOf(this,xo.prototype)}}class zM extends xo{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,zM.prototype)}}class qM extends xo{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,qM.prototype)}}class UM extends xo{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,UM.prototype)}}class GM extends xo{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,GM.prototype)}}class WM extends xo{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,WM.prototype)}}class KM extends xo{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,KM.prototype)}}class YM extends xo{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,YM.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class ZM extends xo{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,ZM.prototype)}}class XM extends xo{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,XM.prototype)}}class QM extends xo{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,QM.prototype)}}class JM extends xo{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,JM.prototype)}}class eA extends xo{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,eA.prototype)}}class tA extends xo{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,tA.prototype)}}class nA extends xo{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,nA.prototype)}}class rA extends xo{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,rA.prototype)}}const Z4e="ACL",X4e="AccessDenied",Cz="AccessKeyId",Q4e="AccessTier",RK="Bucket",J4e="BucketAlreadyExists",eUe="BucketAlreadyOwnedByYou",AC="BucketKeyEnabled",tUe="Body",nUe="ChecksumAlgorithm",rUe="CacheControl",MK="ChecksumCRC32",AK="ChecksumCRC32C",DK="ChecksumCRC64NVME",oUe="Cache-Control",iUe="Content-Disposition",sUe="ContentDisposition",aUe="Content-Encoding",lUe="ContentEncoding",cUe="ContentLanguage",uUe="Content-Language",dUe="Content-Length",fUe="ContentLength",pUe="Content-MD5",hUe="ContentMD5",_K="ChecksumSHA1",NK="ChecksumSHA256",mUe="CreateSessionOutput",gUe="CreateSessionResult",bUe="CreateSessionRequest",yUe="CreateSession",vUe="ChecksumType",xUe="Content-Type",SUe="ContentType",wz="Credentials",aE="Expiration",CUe="ExpectedBucketOwner",wUe="EncryptionTypeMismatch",Tz="ETag",Oz="Expires",TUe="GrantFullControl",OUe="GrantRead",PUe="GrantReadACP",EUe="GrantWriteACP",IUe="IfMatch",kUe="If-Match",RUe="IfNoneMatch",MUe="If-None-Match",AUe="InvalidObjectState",DUe="IdempotencyParameterMismatch",_Ue="InvalidRequest",NUe="InvalidWriteOffset",FUe="Key",LUe="Metadata",$Ue="NotFound",jUe="NoSuchBucket",BUe="NoSuchKey",VUe="NoSuchUpload",HUe="ObjectAlreadyInActiveTierError",zUe="ObjectLockLegalHoldStatus",qUe="ObjectLockMode",UUe="ObjectLockRetainUntilDate",GUe="ObjectNotInActiveTierError",WUe="PutObject",KUe="PutObjectOutput",YUe="PutObjectRequest",ZUe="RequestCharged",XUe="RequestPayer",Pz="SecretAccessKey",QUe="StreamingBlob",FK="StorageClass",JUe="SessionCredentialValue",e9e="SessionCredentials",t9e="SessionMode",DC="ServerSideEncryption",LK="SSECustomerAlgorithm",$K="SSECustomerKey",jK="SSECustomerKeyMD5",hg="SSEKMSEncryptionContext",mg="SSEKMSKeyId",Ez="SessionToken",n9e="Size",r9e="TooManyParts",o9e="Tagging",i9e="VersionId",s9e="WriteOffsetBytes",a9e="WebsiteRedirectLocation",di="client",fi="error",BK="http",l9e="httpChecksum",Ii="httpError",Pt="httpHeader",c9e="httpPrefixHeaders",VK="smithy.ts.sdk.synthetic.com.amazonaws.s3",u9e="streaming",ef="xmlName",d9e="x-amz-acl",HK="x-amz-checksum-crc32",zK="x-amz-checksum-crc32c",qK="x-amz-checksum-crc64nvme",UK="x-amz-checksum-sha1",GK="x-amz-checksum-sha256",f9e="x-amz-create-session-mode",p9e="x-amz-checksum-type",h9e="x-amz-expiration",m9e="x-amz-expected-bucket-owner",g9e="x-amz-grant-full-control",b9e="x-amz-grant-read",y9e="x-amz-grant-read-acp",v9e="x-amz-grant-write-acp",x9e="x-amz-meta-",S9e="x-amz-object-lock-legal-hold",C9e="x-amz-object-lock-mode",w9e="x-amz-object-lock-retain-until-date",T9e="x-amz-object-size",O9e="x-amz-request-charged",P9e="x-amz-request-payer",E9e="x-amz-storage-class",I9e="x-amz-sdk-checksum-algorithm",_C="x-amz-server-side-encryption",NC="x-amz-server-side-encryption-aws-kms-key-id",FC="x-amz-server-side-encryption-bucket-key-enabled",LC="x-amz-server-side-encryption-context",WK="x-amz-server-side-encryption-customer-algorithm",k9e="x-amz-server-side-encryption-customer-key",KK="x-amz-server-side-encryption-customer-key-MD5",R9e="x-amz-tagging",M9e="x-amz-version-id",A9e="x-amz-write-offset-bytes",D9e="x-amz-website-redirect-location",Zn="com.amazonaws.s3",YK=ti.for(VK);var _9e=[-3,VK,"S3ServiceException",0,[],[]];YK.registerError(_9e,xo);const Go=ti.for(Zn);var N9e=[-3,Zn,X4e,{[fi]:di,[Ii]:403},[],[]];Go.registerError(N9e,qM);var F9e=[-3,Zn,J4e,{[fi]:di,[Ii]:409},[],[]];Go.registerError(F9e,GM);var L9e=[-3,Zn,eUe,{[fi]:di,[Ii]:409},[],[]];Go.registerError(L9e,WM);var $9e=[-3,Zn,wUe,{[fi]:di,[Ii]:400},[],[]];Go.registerError($9e,QM);var j9e=[-3,Zn,DUe,{[fi]:di,[Ii]:400},[],[]];Go.registerError(j9e,nA);var B9e=[-3,Zn,AUe,{[fi]:di,[Ii]:403},[FK,Q4e],[0,0]];Go.registerError(B9e,YM);var V9e=[-3,Zn,_Ue,{[fi]:di,[Ii]:400},[],[]];Go.registerError(V9e,JM);var H9e=[-3,Zn,NUe,{[fi]:di,[Ii]:400},[],[]];Go.registerError(H9e,eA);var z9e=[-3,Zn,jUe,{[fi]:di,[Ii]:404},[],[]];Go.registerError(z9e,KM);var q9e=[-3,Zn,BUe,{[fi]:di,[Ii]:404},[],[]];Go.registerError(q9e,ZM);var U9e=[-3,Zn,VUe,{[fi]:di,[Ii]:404},[],[]];Go.registerError(U9e,zM);var G9e=[-3,Zn,$Ue,{[fi]:di},[],[]];Go.registerError(G9e,XM);var W9e=[-3,Zn,HUe,{[fi]:di,[Ii]:403},[],[]];Go.registerError(W9e,rA);var K9e=[-3,Zn,GUe,{[fi]:di,[Ii]:403},[],[]];Go.registerError(K9e,UM);var Y9e=[-3,Zn,r9e,{[fi]:di,[Ii]:400},[],[]];Go.registerError(Y9e,tA);const Z9e=[YK,Go];var Iz=[0,Zn,JUe,8,0],X9e=[0,Zn,$K,8,0],$C=[0,Zn,hg,8,0],jC=[0,Zn,mg,8,0],Q9e=[0,Zn,QUe,{[u9e]:1},42],J9e=[3,Zn,mUe,{[ef]:gUe},[wz,DC,mg,hg,AC],[[()=>r6e,{[ef]:wz}],[0,{[Pt]:_C}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}]],1],e6e=[3,Zn,bUe,0,[RK,t9e,DC,mg,hg,AC],[[0,1],[0,{[Pt]:f9e}],[0,{[Pt]:_C}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}]],1],t6e=[3,Zn,KUe,0,[aE,Tz,MK,AK,DK,_K,NK,vUe,DC,i9e,LK,jK,mg,hg,AC,n9e,ZUe],[[0,{[Pt]:h9e}],[0,{[Pt]:Tz}],[0,{[Pt]:HK}],[0,{[Pt]:zK}],[0,{[Pt]:qK}],[0,{[Pt]:UK}],[0,{[Pt]:GK}],[0,{[Pt]:p9e}],[0,{[Pt]:_C}],[0,{[Pt]:M9e}],[0,{[Pt]:WK}],[0,{[Pt]:KK}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}],[1,{[Pt]:T9e}],[0,{[Pt]:O9e}]]],n6e=[3,Zn,YUe,0,[RK,FUe,Z4e,tUe,rUe,sUe,lUe,cUe,fUe,hUe,SUe,nUe,MK,AK,DK,_K,NK,Oz,IUe,RUe,TUe,OUe,PUe,EUe,s9e,LUe,DC,FK,a9e,LK,$K,jK,mg,hg,AC,XUe,o9e,qUe,UUe,zUe,CUe],[[0,1],[0,1],[0,{[Pt]:d9e}],[()=>Q9e,16],[0,{[Pt]:oUe}],[0,{[Pt]:iUe}],[0,{[Pt]:aUe}],[0,{[Pt]:uUe}],[1,{[Pt]:dUe}],[0,{[Pt]:pUe}],[0,{[Pt]:xUe}],[0,{[Pt]:I9e}],[0,{[Pt]:HK}],[0,{[Pt]:zK}],[0,{[Pt]:qK}],[0,{[Pt]:UK}],[0,{[Pt]:GK}],[4,{[Pt]:Oz}],[0,{[Pt]:kUe}],[0,{[Pt]:MUe}],[0,{[Pt]:g9e}],[0,{[Pt]:b9e}],[0,{[Pt]:y9e}],[0,{[Pt]:v9e}],[1,{[Pt]:A9e}],[128,{[c9e]:x9e}],[0,{[Pt]:_C}],[0,{[Pt]:E9e}],[0,{[Pt]:D9e}],[0,{[Pt]:WK}],[()=>X9e,{[Pt]:k9e}],[0,{[Pt]:KK}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}],[0,{[Pt]:P9e}],[0,{[Pt]:R9e}],[0,{[Pt]:C9e}],[5,{[Pt]:w9e}],[0,{[Pt]:S9e}],[0,{[Pt]:m9e}]],2],r6e=[3,Zn,e9e,0,[Cz,Pz,Ez,aE],[[0,{[ef]:Cz}],[()=>Iz,{[ef]:Pz}],[()=>Iz,{[ef]:Ez}],[4,{[ef]:aE}]],4],o6e=[9,Zn,yUe,{[BK]:["GET","/?session",200]},()=>e6e,()=>J9e],i6e=[9,Zn,WUe,{[l9e]:"-",[BK]:["PUT","/{Key+}?x-id=PutObject",200]},()=>n6e,()=>t6e];class s6e extends IC.classBuilder().ep({...kK,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,r,o,i){return[DM(o,t.getEndpointParameterInstructions()),A7(o)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(o6e).build(){}const a6e="3.996.0",l6e={version:a6e},c6e=e=>new TextEncoder().encode(e);function kz(e){return typeof e=="string"?e.length===0:e.byteLength===0}var ZK={name:"SHA-1"},Rz={name:"HMAC",hash:ZK},u6e=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);const d6e={};function Jl(){return typeof window<"u"?window:typeof self<"u"?self:d6e}var f6e=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(r,o){Jl().crypto.subtle.importKey("raw",Mz(t),Rz,!1,["sign"]).then(r,o)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!kz(t)){var r=Mz(t),o=new Uint8Array(this.toHash.byteLength+r.byteLength);o.set(this.toHash,0),o.set(r,this.toHash.byteLength),this.toHash=o}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(r){return Jl().crypto.subtle.sign(Rz,r,t.toHash).then(function(o){return new Uint8Array(o)})}):kz(this.toHash)?Promise.resolve(u6e):Promise.resolve().then(function(){return Jl().crypto.subtle.digest(ZK,t.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function Mz(e){return typeof e=="string"?c6e(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var p6e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function XK(e){if(h6e(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return m6e(t)}return!1}function h6e(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function m6e(e){return e&&p6e.every(function(t){return typeof e[t]=="function"})}var g6e=(function(){function e(t){if(XK(Jl()))this.hash=new f6e(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,r){this.hash.update(ic(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})(),QK={name:"SHA-256"},Az={name:"HMAC",hash:QK},b6e=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),y6e=(function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!dm(t)){var r=ic(t),o=new Uint8Array(this.toHash.byteLength+r.byteLength);o.set(this.toHash,0),o.set(r,this.toHash.byteLength),this.toHash=o}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(r){return Jl().crypto.subtle.sign(Az,r,t.toHash).then(function(o){return new Uint8Array(o)})}):dm(this.toHash)?Promise.resolve(b6e):Promise.resolve().then(function(){return Jl().crypto.subtle.digest(QK,t.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(r,o){Jl().crypto.subtle.importKey("raw",ic(t.secret),Az,!1,["sign"]).then(r,o)}),this.key.catch(function(){}))},e})(),ys=64,v6e=32,x6e=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]),S6e=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],C6e=Math.pow(2,53)-1,ex=(function(){function e(){this.state=Int32Array.from(S6e),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,o=t.byteLength;if(this.bytesHashed+=o,this.bytesHashed*8>C6e)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=t[r++],o--,this.bufferLength===ys&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(r.setUint8(this.bufferLength++,128),o%ys>=ys-8){for(var i=this.bufferLength;i<ys;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<ys-8;i++)r.setUint8(i,0);r.setUint32(ys-8,Math.floor(t/4294967296),!0),r.setUint32(ys-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(v6e),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,o=t.state,i=o[0],s=o[1],a=o[2],l=o[3],c=o[4],u=o[5],d=o[6],f=o[7],p=0;p<ys;p++){if(p<16)this.temp[p]=(r[p*4]&255)<<24|(r[p*4+1]&255)<<16|(r[p*4+2]&255)<<8|r[p*4+3]&255;else{var h=this.temp[p-2],b=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=this.temp[p-15];var g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[p]=(b+this.temp[p-7]|0)+(g+this.temp[p-16]|0)}var y=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&d)|0)+(f+(x6e[p]+this.temp[p]|0)|0)|0,v=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&a^s&a)|0;f=d,d=u,u=c,c=l+y|0,l=a,a=s,s=i,i=y+v|0}o[0]+=i,o[1]+=s,o[2]+=a,o[3]+=l,o[4]+=c,o[5]+=u,o[6]+=d,o[7]+=f},e})(),w6e=(function(){function e(t){this.secret=t,this.hash=new ex,this.reset()}return e.prototype.update=function(t){if(!(dm(t)||this.error))try{this.hash.update(ic(t))}catch(r){this.error=r}},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 EM(this,void 0,void 0,function(){return IM(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new ex,this.secret){this.outer=new ex;var t=T6e(this.secret),r=new Uint8Array(ys);r.set(t);for(var o=0;o<ys;o++)t[o]^=54,r[o]^=92;this.hash.update(t),this.outer.update(r);for(var o=0;o<t.byteLength;o++)t[o]=0}},e})();function T6e(e){var t=ic(e);if(t.byteLength>ys){var r=new ex;r.update(t),t=r.digest()}var o=new Uint8Array(ys);return o.set(t),o}var JK=(function(){function e(t){XK(Jl())?this.hash=new y6e(t):this.hash=new w6e(t)}return e.prototype.update=function(t,r){this.hash.update(ic(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const eY=({serviceId:e,clientVersion:t})=>async r=>{const o=typeof window<"u"?window.navigator:void 0,i=o?.userAgent??"",s=o?.userAgentData?.platform??Dz.os(i)??"other",a=void 0,l=o?.userAgentData?.brands??[],c=l[l.length-1],u=c?.brand??Dz.browser(i)??"unknown",d=c?.version??"unknown",f=[["aws-sdk-js",t],["ua","2.1"],[`os/${s}`,a],["lang/js"],["md/browser",`${u}_${d}`]];e&&f.push([`api/${e}`,t]);const p=await r?.userAgentAppId?.();return p&&f.push([`app/${p}`]),f},Dz={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"}};class Nh{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let o=7,i=Math.abs(Math.round(t));o>-1&&i>0;o--,i/=256)r[o]=i;return t<0&&_z(r),new Nh(r)}valueOf(){const t=this.bytes.slice(0),r=t[0]&128;return r&&_z(t),parseInt(Ci(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function _z(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class O6e{toUtf8;fromUtf8;constructor(t,r){this.toUtf8=t,this.fromUtf8=r}format(t){const r=[];for(const s of Object.keys(t)){const a=this.fromUtf8(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}const o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0));let i=0;for(const s of r)o.set(s,i),i+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);const a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":const l=this.fromUtf8(t.value),c=new DataView(new ArrayBuffer(3+l.byteLength));c.setUint8(0,7),c.setUint16(1,l.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(l,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(Nh.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!_6e.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(WW(t.value.replace(/\-/g,"")),1),f}}parse(t){const r={};let o=0;for(;o<t.byteLength;){const i=t.getUint8(o++),s=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+o,i));switch(o+=i,t.getUint8(o++)){case 0:r[s]={type:Fz,value:!0};break;case 1:r[s]={type:Fz,value:!1};break;case 2:r[s]={type:P6e,value:t.getInt8(o++)};break;case 3:r[s]={type:E6e,value:t.getInt16(o,!1)},o+=2;break;case 4:r[s]={type:I6e,value:t.getInt32(o,!1)},o+=4;break;case 5:r[s]={type:k6e,value:new Nh(new Uint8Array(t.buffer,t.byteOffset+o,8))},o+=8;break;case 6:const a=t.getUint16(o,!1);o+=2,r[s]={type:R6e,value:new Uint8Array(t.buffer,t.byteOffset+o,a)},o+=a;break;case 7:const l=t.getUint16(o,!1);o+=2,r[s]={type:M6e,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+o,l))},o+=l;break;case 8:r[s]={type:A6e,value:new Date(new Nh(new Uint8Array(t.buffer,t.byteOffset+o,8)).valueOf())},o+=8;break;case 9:const c=new Uint8Array(t.buffer,t.byteOffset+o,16);o+=16,r[s]={type:D6e,value:`${Ci(c.subarray(0,4))}-${Ci(c.subarray(4,6))}-${Ci(c.subarray(6,8))}-${Ci(c.subarray(8,10))}-${Ci(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}}var Nz;(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"})(Nz||(Nz={}));const Fz="boolean",P6e="byte",E6e="short",I6e="integer",k6e="long",R6e="binary",M6e="string",A6e="timestamp",D6e="uuid",_6e=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,tY=4,Fl=tY*2,zc=4,N6e=Fl+zc*2;function F6e({byteLength:e,byteOffset:t,buffer:r}){if(e<N6e)throw new Error("Provided message too short to accommodate event stream message overhead");const o=new DataView(r,t,e),i=o.getUint32(0,!1);if(e!==i)throw new Error("Reported message length does not match received message length");const s=o.getUint32(tY,!1),a=o.getUint32(Fl,!1),l=o.getUint32(e-zc,!1),c=new a0().update(new Uint8Array(r,t,Fl));if(a!==c.digest())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+Fl,e-(Fl+zc))),l!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${l}`);return{headers:new DataView(r,t+Fl+zc,s),body:new Uint8Array(r,t+Fl+zc+s,i-s-(Fl+zc+zc))}}class L6e{headerMarshaller;messageBuffer;isEndOfStream;constructor(t,r){this.headerMarshaller=new O6e(t,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){const t=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return r}}}getAvailableMessages(){const t=this.messageBuffer;this.messageBuffer=[];const r=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return r}}}encode({headers:t,body:r}){const o=this.headerMarshaller.format(t),i=o.byteLength+r.byteLength+16,s=new Uint8Array(i),a=new DataView(s.buffer,s.byteOffset,s.byteLength),l=new a0;return a.setUint32(0,i,!1),a.setUint32(4,o.byteLength,!1),a.setUint32(8,l.update(s.subarray(0,8)).digest(),!1),s.set(o,12),s.set(r,o.byteLength+12),a.setUint32(i-4,l.update(s.subarray(8,i-4)).digest(),!1),s}decode(t){const{headers:r,body:o}=F6e(t);return{headers:this.headerMarshaller.parse(r),body:o}}formatHeaders(t){return this.headerMarshaller.format(t)}}class $6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream)yield this.options.decoder.decode(t)}}class j6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}}class B6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream){const r=await this.options.deserializer(t);r!==void 0&&(yield r)}}}class V6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream)yield this.options.serializer(t)}}function H6e(e){let t=0,r=0,o=null,i=null;const s=l=>{if(typeof l!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+l);t=l,r=4,o=new Uint8Array(l),new DataView(o.buffer).setUint32(0,l,!1)},a=async function*(){const l=e[Symbol.asyncIterator]();for(;;){const{value:c,done:u}=await l.next();if(u){if(t)if(t===r)yield o;else throw new Error("Truncated event message received.");else return;return}const d=c.length;let f=0;for(;f<d;){if(!o){const h=d-f;i||(i=new Uint8Array(4));const b=Math.min(4-r,h);if(i.set(c.slice(f,f+b),r),r+=b,f+=b,r<4)break;s(new DataView(i.buffer).getUint32(0,!1)),i=null}const p=Math.min(t-r,d-f);o.set(c.slice(f,f+p),r),r+=p,f+=p,t&&t===r&&(yield o,o=null,t=0,r=0)}}};return{[Symbol.asyncIterator]:a}}function z6e(e,t){return async function(r){const{value:o}=r.headers[":message-type"];if(o==="error"){const i=new Error(r.headers[":error-message"].value||"UnknownError");throw i.name=r.headers[":error-code"].value,i}else if(o==="exception"){const i=r.headers[":exception-type"].value,s={[i]:r},a=await e(s);if(a.$unknown){const l=new Error(t(r.body));throw l.name=i,l}throw a[i]}else if(o==="event"){const i={[r.headers[":event-type"].value]:r},s=await e(i);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}let q6e=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new L6e(t,r),this.utfEncoder=t}deserialize(t,r){const o=H6e(t);return new B6e({messageStream:new $6e({inputStream:o,decoder:this.eventStreamCodec}),deserializer:z6e(r,this.utfEncoder)})}serialize(t,r){return new j6e({messageStream:new V6e({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};const U6e=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)return;yield o}}finally{t.releaseLock()}}}),G6e=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){const{done:o,value:i}=await t.next();if(o)return r.close();r.enqueue(i)}})};class W6e{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:r}){this.universalMarshaller=new q6e({utf8Decoder:r,utf8Encoder:t})}deserialize(t,r){const o=K6e(t)?U6e(t):t;return this.universalMarshaller.deserialize(o,r)}serialize(t,r){const o=this.universalMarshaller.serialize(t,r);return typeof ReadableStream=="function"?G6e(o):o}}const K6e=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,Y6e=e=>new W6e(e);async function Z6e(e,t,r=1024*1024){const o=e.size;let i=0;for(;i<o;){const s=e.slice(i,Math.min(o,i+r));t(new Uint8Array(await s.arrayBuffer())),i+=s.size}}const X6e=async function(t,r){const o=new t;return await Z6e(r,i=>{o.update(i)}),o.digest()},nY=e=>()=>Promise.reject(e),_l=64,Q6e=16,J6e=[1732584193,4023233417,2562383102,271733878];class eGe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(tGe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const r=nGe(t);let o=0,{byteLength:i}=r;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,r[o++]),i--,this.bufferLength===_l&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:r,bufferLength:o,bytesHashed:i}=this,s=i*8;if(r.setUint8(this.bufferLength++,128),o%_l>=_l-8){for(let a=this.bufferLength;a<_l;a++)r.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(let a=this.bufferLength;a<_l-8;a++)r.setUint8(a,0);r.setUint32(_l-8,s>>>0,!0),r.setUint32(_l-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(Q6e));for(let r=0;r<4;r++)t.setUint32(r*4,this.state[r],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:r}=this;let o=r[0],i=r[1],s=r[2],a=r[3];o=Do(o,i,s,a,t.getUint32(0,!0),7,3614090360),a=Do(a,o,i,s,t.getUint32(4,!0),12,3905402710),s=Do(s,a,o,i,t.getUint32(8,!0),17,606105819),i=Do(i,s,a,o,t.getUint32(12,!0),22,3250441966),o=Do(o,i,s,a,t.getUint32(16,!0),7,4118548399),a=Do(a,o,i,s,t.getUint32(20,!0),12,1200080426),s=Do(s,a,o,i,t.getUint32(24,!0),17,2821735955),i=Do(i,s,a,o,t.getUint32(28,!0),22,4249261313),o=Do(o,i,s,a,t.getUint32(32,!0),7,1770035416),a=Do(a,o,i,s,t.getUint32(36,!0),12,2336552879),s=Do(s,a,o,i,t.getUint32(40,!0),17,4294925233),i=Do(i,s,a,o,t.getUint32(44,!0),22,2304563134),o=Do(o,i,s,a,t.getUint32(48,!0),7,1804603682),a=Do(a,o,i,s,t.getUint32(52,!0),12,4254626195),s=Do(s,a,o,i,t.getUint32(56,!0),17,2792965006),i=Do(i,s,a,o,t.getUint32(60,!0),22,1236535329),o=_o(o,i,s,a,t.getUint32(4,!0),5,4129170786),a=_o(a,o,i,s,t.getUint32(24,!0),9,3225465664),s=_o(s,a,o,i,t.getUint32(44,!0),14,643717713),i=_o(i,s,a,o,t.getUint32(0,!0),20,3921069994),o=_o(o,i,s,a,t.getUint32(20,!0),5,3593408605),a=_o(a,o,i,s,t.getUint32(40,!0),9,38016083),s=_o(s,a,o,i,t.getUint32(60,!0),14,3634488961),i=_o(i,s,a,o,t.getUint32(16,!0),20,3889429448),o=_o(o,i,s,a,t.getUint32(36,!0),5,568446438),a=_o(a,o,i,s,t.getUint32(56,!0),9,3275163606),s=_o(s,a,o,i,t.getUint32(12,!0),14,4107603335),i=_o(i,s,a,o,t.getUint32(32,!0),20,1163531501),o=_o(o,i,s,a,t.getUint32(52,!0),5,2850285829),a=_o(a,o,i,s,t.getUint32(8,!0),9,4243563512),s=_o(s,a,o,i,t.getUint32(28,!0),14,1735328473),i=_o(i,s,a,o,t.getUint32(48,!0),20,2368359562),o=No(o,i,s,a,t.getUint32(20,!0),4,4294588738),a=No(a,o,i,s,t.getUint32(32,!0),11,2272392833),s=No(s,a,o,i,t.getUint32(44,!0),16,1839030562),i=No(i,s,a,o,t.getUint32(56,!0),23,4259657740),o=No(o,i,s,a,t.getUint32(4,!0),4,2763975236),a=No(a,o,i,s,t.getUint32(16,!0),11,1272893353),s=No(s,a,o,i,t.getUint32(28,!0),16,4139469664),i=No(i,s,a,o,t.getUint32(40,!0),23,3200236656),o=No(o,i,s,a,t.getUint32(52,!0),4,681279174),a=No(a,o,i,s,t.getUint32(0,!0),11,3936430074),s=No(s,a,o,i,t.getUint32(12,!0),16,3572445317),i=No(i,s,a,o,t.getUint32(24,!0),23,76029189),o=No(o,i,s,a,t.getUint32(36,!0),4,3654602809),a=No(a,o,i,s,t.getUint32(48,!0),11,3873151461),s=No(s,a,o,i,t.getUint32(60,!0),16,530742520),i=No(i,s,a,o,t.getUint32(8,!0),23,3299628645),o=Fo(o,i,s,a,t.getUint32(0,!0),6,4096336452),a=Fo(a,o,i,s,t.getUint32(28,!0),10,1126891415),s=Fo(s,a,o,i,t.getUint32(56,!0),15,2878612391),i=Fo(i,s,a,o,t.getUint32(20,!0),21,4237533241),o=Fo(o,i,s,a,t.getUint32(48,!0),6,1700485571),a=Fo(a,o,i,s,t.getUint32(12,!0),10,2399980690),s=Fo(s,a,o,i,t.getUint32(40,!0),15,4293915773),i=Fo(i,s,a,o,t.getUint32(4,!0),21,2240044497),o=Fo(o,i,s,a,t.getUint32(32,!0),6,1873313359),a=Fo(a,o,i,s,t.getUint32(60,!0),10,4264355552),s=Fo(s,a,o,i,t.getUint32(24,!0),15,2734768916),i=Fo(i,s,a,o,t.getUint32(52,!0),21,1309151649),o=Fo(o,i,s,a,t.getUint32(16,!0),6,4149444226),a=Fo(a,o,i,s,t.getUint32(44,!0),10,3174756917),s=Fo(s,a,o,i,t.getUint32(8,!0),15,718787259),i=Fo(i,s,a,o,t.getUint32(36,!0),21,3951481745),r[0]=o+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=s+r[2]&4294967295,r[3]=a+r[3]&4294967295}reset(){this.state=Uint32Array.from(J6e),this.buffer=new DataView(new ArrayBuffer(_l)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function BC(e,t,r,o,i,s){return t=(t+e&4294967295)+(o+s&4294967295)&4294967295,(t<<i|t>>>32-i)+r&4294967295}function Do(e,t,r,o,i,s,a){return BC(t&r|~t&o,e,t,i,s,a)}function _o(e,t,r,o,i,s,a){return BC(t&o|r&~o,e,t,i,s,a)}function No(e,t,r,o,i,s,a){return BC(t^r^o,e,t,i,s,a)}function Fo(e,t,r,o,i,s,a){return BC(r^(t|~o),e,t,i,s,a)}function tGe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function nGe(e){return typeof e=="string"?cl(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const rGe=["in-region","cross-region","mobile","standard","legacy"],rY=({defaultsMode:e}={})=>sqe(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(oGe()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${rGe.join(", ")}, got ${t}`)}}),oGe=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:r,downlink:o}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(r)>100||Number(o)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},iGe=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Tu,base64Encoder:e?.base64Encoder??oc,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??PK,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??nze,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??W4e,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new vM},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new LHe}],logger:e?.logger??new kC,protocol:e?.protocol??Wqe,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Z9e,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??KW,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??cK,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??hm,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??cl,utf8Encoder:e?.utf8Encoder??zu}),sGe=e=>{const t=rY(e),r=()=>t().then(g7),o=iGe(e);return{...o,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??h7,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??eY({serviceId:o.serviceId,clientVersion:l6e.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??Y6e,maxAttempts:e?.maxAttempts??mm,md5:e?.md5??eGe,region:e?.region??nY("Region is missing"),requestHandler:wC.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||rK),sha1:e?.sha1??g6e,sha256:e?.sha256??JK,streamCollector:e?.streamCollector??xM,streamHasher:e?.streamHasher??X6e,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(K7)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Y7))}},oY=e=>({setRegion(t){e.region=t},region(){return e.region}}),iY=e=>({region:e.region()}),aGe=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(i){const s=t.findIndex(a=>a.schemeId===i.schemeId);s===-1?t.push(i):t.splice(s,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){o=i},credentials(){return o}}},lGe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cGe=(e,t)=>{const r=Object.assign(oY(e),b7(e),jW(e),aGe(e));return t.forEach(o=>o.configure(r)),Object.assign(e,iY(r),y7(r),BW(r),lGe(r))};class uGe extends m7{config;constructor(...[t]){const r=sGe(t||{});super(r),this.initConfig=r;const o=Y4e(r),i=D7(o),s=x3e(i),a=aK(s),l=X7(a),c=l,u=nK(c),d=U5e(u),f=K4e(d),p=Z3e(f,{session:[()=>this,s6e]}),h=cGe(p,t?.extensions||[]);this.config=h,this.middlewareStack.use(ZW(this.config)),this.middlewareStack.use(W7(this.config)),this.middlewareStack.use(lK(this.config)),this.middlewareStack.use(Q7(this.config)),this.middlewareStack.use(k7(this.config)),this.middlewareStack.use(R7(this.config)),this.middlewareStack.use(M7(this.config)),this.middlewareStack.use(HW(this.config,{httpAuthSchemeParametersProvider:q4e,identityProviderConfigProvider:async b=>new r7({"aws.auth#sigv4":b.credentials,"aws.auth#sigv4a":b.credentials})})),this.middlewareStack.use(qW(this.config)),this.middlewareStack.use(a5e(this.config)),this.middlewareStack.use(AHe(this.config)),this.middlewareStack.use(L3e(this.config)),this.middlewareStack.use(q3e(this.config)),this.middlewareStack.use(Y3e(this.config))}destroy(){super.destroy()}}function dGe(e){return t=>async r=>{const o={...r.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const s of i){const a=o[s.target];if(a){let l;typeof a=="string"?hGe(a,e)?l=e.base64Decoder(a):(l=e.utf8Decoder(a),o[s.target]=e.base64Encoder(l)):(l=ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(a),o[s.target]=e.base64Encoder(l));const c=new e.md5;c.update(l),o[s.hash]=e.base64Encoder(await c.digest())}}return t({...r,input:o})}}const fGe={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},pGe=e=>({applyToStack:t=>{t.add(dGe(e),fGe)}});function hGe(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}}class mGe extends IC.classBuilder().ep({...kK,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,r,o,i){return[DM(o,t.getEndpointParameterInstructions()),v3e(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),A3e(),A7(o),pGe(o)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(i6e).build(){}function sY(e){return Promise.all(Object.keys(e).reduce((t,r)=>{const o=e[r];return typeof o=="string"?t.push([r,o]):t.push(o().then(i=>[r,i])),t},[])).then(t=>t.reduce((r,[o,i])=>(r[o]=i,r),{}))}function gGe(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:r,CognitoIdentityClient:o}=await Promise.resolve().then(()=>require("./loadCognitoIdentity-DCtzm2FL.js")),i=u=>e.clientConfig?.[u]??e.parentClientConfig?.[u]??t?.callerClientConfig?.[u],{Credentials:{AccessKeyId:s=bGe(e.logger),Expiration:a,SecretKey:l=vGe(e.logger),SessionToken:c}=yGe(e.logger)}=await(e.client??new o(Object.assign({},e.clientConfig??{},{region:i("region"),profile:i("profile"),userAgentAppId:i("userAgentAppId")}))).send(new r({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await sY(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:s,secretAccessKey:l,sessionToken:c,expiration:a}}}function bGe(e){throw new fp("Response from Amazon Cognito contained no access key ID",{logger:e})}function yGe(e){throw new fp("Response from Amazon Cognito contained no credentials",{logger:e})}function vGe(e){throw new fp("Response from Amazon Cognito contained no secret key",{logger:e})}const T1="IdentityIds";class xGe{dbName;constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",r=>{const o=r.get(t);return new Promise(i=>{o.onerror=()=>i(null),o.onsuccess=()=>i(o.result?o.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",r=>{const o=r.delete(t);return new Promise((i,s)=>{o.onerror=()=>s(o.error),o.onsuccess=()=>i()})})}setItem(t,r){return this.withObjectStore("readwrite",o=>{const i=o.put({id:t,value:r});return new Promise((s,a)=>{i.onerror=()=>a(i.error),i.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((r,o)=>{t.onsuccess=()=>{r(t.result)},t.onerror=()=>{o(t.error)},t.onblocked=()=>{o(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const i=t.result;i.onerror=()=>{o(new Error("Failed to create object store"))},i.createObjectStore(T1,{keyPath:"id"})}})}withObjectStore(t,r){return this.getDb().then(o=>{const i=o.transaction(T1,t);return i.oncomplete=()=>o.close(),new Promise((s,a)=>{i.onerror=()=>a(i.error),s(r(i.objectStore(T1)))}).catch(s=>{throw o.close(),s})})}}class SGe{store;constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,r){this.store[t]=r}}const CGe=new SGe;function wGe(){return typeof self=="object"&&self.indexedDB?new xGe:typeof window=="object"&&window.localStorage?window.localStorage:CGe}function TGe({accountId:e,cache:t=wGe(),client:r,clientConfig:o,customRoleArn:i,identityPoolId:s,logins:a,userIdentifier:l=!a||Object.keys(a).length===0?"ANONYMOUS":void 0,logger:c,parentClientConfig:u}){c?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const d=l?`aws:cognito-identity-credentials:${s}:${l}`:void 0;let f=async p=>{const{GetIdCommand:h,CognitoIdentityClient:b}=await Promise.resolve().then(()=>require("./loadCognitoIdentity-DCtzm2FL.js")),g=C=>o?.[C]??u?.[C]??p?.callerClientConfig?.[C],y=r??new b(Object.assign({},o??{},{region:g("region"),profile:g("profile"),userAgentAppId:g("userAgentAppId")}));let v=d&&await t.getItem(d);if(!v){const{IdentityId:C=OGe(c)}=await y.send(new h({AccountId:e,IdentityPoolId:s,Logins:a?await sY(a):void 0}));v=C,d&&Promise.resolve(t.setItem(d,v)).catch(()=>{})}return f=gGe({client:y,customRoleArn:i,logins:a,identityId:v}),f(p)};return p=>f(p).catch(async h=>{throw d&&Promise.resolve(t.removeItem(d)).catch(()=>{}),h})}function OGe(e){throw new fp("Response from Amazon Cognito contained no identity ID",{logger:e})}const PGe=e=>TGe({...e});function EGe(e){const t=e.split(","),r=t[0].match(/:(.*?);/)[1],o=atob(t[1]);let i=o.length;const s=new Uint8Array(i);for(;i--;)s[i]=o.charCodeAt(i);return new Blob([s],{type:r})}async function IGe(e,t,r,o,i,s=""){if(!i||!r||!o)return console.warn("Missing AWS Config (Pool ID, Bucket, or Region). Returning data URL as fallback."),e;try{const a=new uGe({region:o,credentials:PGe({clientConfig:{region:o},identityPoolId:i}),requestChecksumCalculation:"WHEN_REQUIRED",forcePathStyle:!0}),l=EGe(e);let c=s.trim();c&&!c.endsWith("/")&&(c+="/");const u=c?`${c}${t}`:`signatures/${t}`,d=new mGe({Bucket:r,Key:u,Body:l,ContentType:l.type});return await a.send(d),`https://${r}/${u}`}catch(a){throw console.error("Error uploading to S3:",a),a}}function kGe({attributes:e={},rules:t={},onChange:r}){const{id:o="",MuiAttributes:i={},label:s="Signature",bucket:a="",region:l="",identityPoolId:c="",path:u="",disabled:d=!1,CanvasProps:f={}}=e,p=Ue.useRef(null),h=Ue.useRef(null),[b,g]=Ue.useState(!1),[y,v]=Ue.useState(e.value||null),[C,O]=Ue.useState(400),[T,P]=Ue.useState(!1),k=t?.validation?.some(A=>A.rule==="mandatory")||!1,M=f?.style?.height||150;Ue.useEffect(()=>{const A=h.current;if(!A)return;const F=new ResizeObserver(I=>{const N=I[0]?.contentRect?.width;N&&N>0&&O(Math.floor(N))});return F.observe(A),()=>F.disconnect()},[]),Ue.useEffect(()=>{e.value&&p.current&&p.current.fromDataURL(e.value,{width:C,height:M})},[e.value,C,M]);const _=()=>{p.current&&p.current.clear(),v(null),P(!1),r&&r({id:o,value:""})},D=async()=>{if(!p.current||p.current.isEmpty())return;g(!0);const A=p.current.getTrimmedCanvas().toDataURL("image/png"),F=`${o}-${Date.now()}.png`;try{const I=await IGe(A,F,a,l,c,u);v(I),P(!0),r&&r({id:o,value:I})}catch(I){console.error("Signature upload failed",I)}finally{g(!1)}};return w.jsxs(ht.Box,{sx:{width:"100%",...i.sx},children:[w.jsxs(ht.Typography,{variant:"subtitle2",gutterBottom:!0,sx:{display:"flex"},children:[s,k&&w.jsx(ht.Box,{component:"span",sx:{color:"error.main",ml:.5},children:"*"})]}),w.jsx(ht.Box,{ref:h,sx:{border:"1px solid",borderColor:"divider",borderRadius:1,overflow:"hidden",bgcolor:"background.paper"},children:w.jsx(CC,{ref:p,penColor:"black",canvasProps:{className:"sigCanvas",width:C,height:M,style:{display:"block",pointerEvents:d?"none":"auto",...f?.style,width:"100%",height:M}},backgroundColor:"transparent"})}),w.jsxs(ht.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",mt:1},children:[w.jsx(ht.Button,{variant:"outlined",color:"secondary",onClick:_,size:"small",disabled:d||b,children:"Clear"}),w.jsx(ht.Button,{variant:"contained",color:"primary",onClick:D,size:"small",disabled:d||b||y!==null,startIcon:b?w.jsx(ht.CircularProgress,{size:16,color:"inherit"}):null,children:y?"Saved":"Save"}),T&&y&&w.jsx(ht.Typography,{variant:"caption",color:"success.main",children:"Signature Saved!"})]})]})}function RGe({attributes:e={},patch:t,onChange:r}){const{MuiAttributes:o={},label:i="Group",subFields:s=[]}=e,a=Ue.useMemo(()=>SC(),[]);return w.jsxs(ht.Paper,{elevation:1,sx:{p:2,mb:2,...o.sx},...o,children:[w.jsx(ht.Typography,{variant:"subtitle1",gutterBottom:!0,sx:{fontWeight:600},children:i}),w.jsx(ht.Box,{children:w.jsx(pp,{guid:a,data:s,patch:t,onChange:r})})]})}function MGe({attributes:e={},patch:t,onChange:r}){const{MuiAttributes:o={},label:i="Accordion",subFields:s=[]}=e,a=Ue.useMemo(()=>SC(),[]);return w.jsxs(ht.Accordion,{...o,children:[w.jsx(ht.AccordionSummary,{expandIcon:w.jsx(ht.Icon,{children:"expand_more"}),children:w.jsx(ht.Typography,{children:i})}),w.jsx(ht.AccordionDetails,{children:w.jsx(pp,{guid:a,data:s,patch:t,onChange:r})})]})}function AGe(e){const{children:t,value:r,index:o,...i}=e;return w.jsx("div",{role:"tabpanel",hidden:r!==o,id:`simple-tabpanel-${o}`,"aria-labelledby":`simple-tab-${o}`,...i,children:r===o&&w.jsx(ht.Box,{sx:{p:3},children:t})})}function DGe({attributes:e={},patch:t,onChange:r}){const{MuiAttributes:o={},tabs:i=[]}=e,[s,a]=Ue.useState(0),l=Ue.useMemo(()=>i.map(()=>SC()),[i.length]),c=(u,d)=>{a(d)};return w.jsxs(ht.Box,{sx:{width:"100%"},children:[w.jsx(ht.Box,{sx:{borderBottom:1,borderColor:"divider"},children:w.jsx(ht.Tabs,{value:s,onChange:c,...o,children:i.map((u,d)=>w.jsx(ht.Tab,{label:u.label},d))})}),i.map((u,d)=>w.jsx(AGe,{value:s,index:d,children:w.jsx(pp,{guid:l[d],data:u.subFields||[],patch:t,onChange:r})},d))]})}function _Ge({attributes:e={},rules:t={},onChange:r}){const{MuiAttributes:o={},id:i="",options:s=[],label:a="Combo Box"}=e,[l,c]=Ue.useState(e.value||null),[u,d]=Ue.useState(!1),[f,p]=Ue.useState("");Ue.useEffect(()=>{e.value&&c(e.value)},[]),oa(()=>{c(e.value)},[e.value]);const h=v=>{let C=!0,O="";if(t?.validation){for(const T of t.validation)if(T.rule==="mandatory"&&!v){C=!1,O=T.message||"Required";break}}return{isValid:C,message:O}},b=(v,C)=>{c(C);const O=h(C);d(!O.isValid),p(O.message),r&&r({id:i,value:C})},g=()=>{const v=h(l);d(!v.isValid),p(v.message)},y=t?.validation?.some(v=>v.rule==="mandatory")||!1;return w.jsx(hS,{disablePortal:!0,id:i,options:s,value:l,onChange:b,fullWidth:!0,renderInput:v=>w.jsx(dl,{...v,label:a,required:y,error:u,helperText:f,onBlur:g}),...o})}function NGe(e){return Je("MuiImageList",e)}Ze("MuiImageList",["root","masonry","quilted","standard","woven"]);const oA=S.createContext({});process.env.NODE_ENV!=="production"&&(oA.displayName="ImageListContext");const FGe=e=>{const{classes:t,variant:r}=e;return Ie({root:["root",r]},NGe,t)},LGe=ie("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),aY=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiImageList"}),{children:i,className:s,cols:a=2,component:l="ul",rowHeight:c="auto",gap:u=4,style:d,variant:f="standard",...p}=o,h=S.useMemo(()=>({rowHeight:c,gap:u,variant:f}),[c,u,f]),b=f==="masonry"?{columnCount:a,columnGap:u,...d}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:u,...d},g={...o,component:l,gap:u,rowHeight:c,variant:f},y=FGe(g);return w.jsx(LGe,{as:l,className:Te(y.root,y[f],s),ref:r,style:b,ownerState:g,...p,children:w.jsx(oA.Provider,{value:h,children:i})})});process.env.NODE_ENV!=="production"&&(aY.propTypes={children:n.node.isRequired,classes:n.object,className:n.string,cols:el,component:n.elementType,gap:n.number,rowHeight:n.oneOfType([n.oneOf(["auto"]),n.number]),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["masonry","quilted","standard","woven"]),n.string])});function $Ge(e){return Je("MuiImageListItem",e)}const O1=Ze("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),jGe=e=>{const{classes:t,variant:r}=e;return Ie({root:["root",r],img:["img"]},$Ge,t)},BGe=ie("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${O1.img}`]:t.img},t.root,t[r.variant]]}})({display:"block",position:"relative",[`& .${O1.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${O1.img}`]:{height:"auto",flexGrow:1}}}]}),lY=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiImageListItem"}),{children:i,className:s,cols:a=1,component:l="li",rows:c=1,style:u,...d}=o,{rowHeight:f="auto",gap:p,variant:h}=S.useContext(oA);let b="auto";h==="woven"?b=void 0:f!=="auto"&&(b=f*c+p*(c-1));const g={...o,cols:a,component:l,gap:p,rowHeight:f,rows:c,variant:h},y=jGe(g);return w.jsx(BGe,{as:l,className:Te(y.root,y[h],s),ref:r,style:{height:b,gridColumnEnd:h!=="masonry"?`span ${a}`:void 0,gridRowEnd:h!=="masonry"?`span ${c}`:void 0,marginBottom:h==="masonry"?p:void 0,breakInside:h==="masonry"?"avoid":void 0,...u},ownerState:g,...d,children:S.Children.map(i,v=>S.isValidElement(v)?(process.env.NODE_ENV!=="production"&&Tm.isFragment(v)&&console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
464
+ `+i)});const r=await this.createSessionFn(t);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}const $3e="Directory",j3e="S3Express",B3e="sigv4-s3express",nE="X-Amz-S3session-Token",rE=nE.toLowerCase();class V3e extends UP{async signWithCredentials(t,r,o){const i=rH(r);t.headers[rE]=r.sessionToken;const s=this;return oH(s,i),s.signRequest(t,o??{})}async presignWithCredentials(t,r,o){const i=rH(r);return delete t.headers[rE],t.headers[nE]=r.sessionToken,t.query=t.query??{},t.query[nE]=r.sessionToken,oH(this,i),this.presign(t,o)}}function rH(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function oH(e,t){const r=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),o=e.credentialProvider,i=()=>(clearTimeout(r),e.credentialProvider=o,Promise.resolve(t));e.credentialProvider=i}const H3e=e=>(t,r)=>async o=>{if(r.endpointV2){const i=r.endpointV2,s=i.properties?.authSchemes?.[0]?.name===B3e;if((i.properties?.backend===j3e||i.properties?.bucketType===$3e)&&(Gr(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){const l=o.input.Bucket;if(l){const c=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:l});r.s3ExpressIdentity=c,Br.isInstance(o.request)&&c.sessionToken&&(o.request.headers[rE]=c.sessionToken)}}}return t(o)},z3e={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},q3e=e=>({applyToStack:t=>{t.add(H3e(e),z3e)}}),U3e=async(e,t,r,o)=>{const i=await o.signWithCredentials(r,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},G3e=e=>t=>{throw t},W3e=(e,t)=>{},K3e=e=>(t,r)=>async o=>{if(!Br.isInstance(o.request))return t(o);const s=gl(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:l,signer:c}=s;let u;r.s3ExpressIdentity?u=await U3e(r.s3ExpressIdentity,a,o.request,await e.signer()):u=await c.sign(o.request,l,a);const d=await t({...o,request:u}).catch((c.errorHandler||G3e)(a));return(c.successHandler||W3e)(d.response,a),d},Y3e=e=>({applyToStack:t=>{t.addRelativeTo(K3e(e),zW)}}),Z3e=(e,{session:t})=>{const[r,o]=t,{forcePathStyle:i,useAccelerateEndpoint:s,disableMultiregionAccessPoints:a,followRegionRedirects:l,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:d}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:l??!1,s3ExpressIdentityProvider:c??new RM(async f=>r().send(new o({Bucket:f}))),bucketEndpoint:u??!1,expectContinueHeader:d??2097152})},X3e={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Q3e=3e3,J3e=e=>(t,r)=>async o=>{const i=await t(o),{response:s}=i;if(!wu.isInstance(s))return i;const{statusCode:a,body:l}=s;if(a<200||a>=300||!(typeof l?.stream=="function"||typeof l?.pipe=="function"||typeof l?.tee=="function"))return i;let u=l,d=l;l&&typeof l=="object"&&!(l instanceof Uint8Array)&&([u,d]=await uze(l)),s.body=d;const f=await e5e(u,{streamCollector:async h=>rze(h,Q3e)});typeof u?.destroy=="function"&&u.destroy();const p=e.utf8Encoder(f.subarray(f.length-16));if(f.length===0&&X3e[r.commandName]){const h=new Error("S3 aborted request");throw h.name="InternalError",h}return p&&p.endsWith("</Error>")&&(s.statusCode=400),i},e5e=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),t5e={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},A7=e=>({applyToStack:t=>{t.addRelativeTo(J3e(e),t5e)}}),n5e=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function r5e(e){return(t,r)=>async o=>{if(e.bucketEndpoint){const i=r.endpointV2;if(i){const s=o.input.Bucket;if(typeof s=="string")try{const a=new URL(s);r.endpointV2={...i,url:a}}catch(a){const l=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(l):r.logger?.warn?.(l),a}}}return t(o)}}const o5e={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function i5e({bucketEndpoint:e}){return t=>async r=>{const{input:{Bucket:o}}=r;if(!e&&typeof o=="string"&&!n5e(o)&&o.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${o}'`);throw i.name="InvalidBucketName",i}return t({...r})}}const s5e={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},a5e=e=>({applyToStack:t=>{t.add(i5e(e),s5e),t.addRelativeTo(r5e(e),o5e)}}),l5e=void 0;function c5e(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function D7(e){const t=hf(e.userAgentAppId??l5e),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{const o=await t();if(!c5e(o)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof o!="string"?i?.warn("userAgentAppId must be a string or undefined."):o.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return o}})}class _7{capacity;data=new Map;parameters=[];constructor({size:t,params:r}){this.capacity=t??50,r&&(this.parameters=r)}get(t,r){const o=this.hash(t);if(o===!1)return r();if(!this.data.has(o)){if(this.data.size>this.capacity+10){const i=this.data.keys();let s=0;for(;;){const{value:a,done:l}=i.next();if(this.data.delete(a),l||++s>10)break}}this.data.set(o,r())}return this.data.get(o)}size(){return this.data.size}hash(t){let r="";const{parameters:o}=this;if(o.length===0)return!1;for(const i of o){const s=String(t[i]??"");if(s.includes("|;"))return!1;r+=s+"|;"}return r}}const u5e=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),MM=e=>u5e.test(e)||e.startsWith("[")&&e.endsWith("]"),d5e=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pg=(e,t=!1)=>{if(!t)return d5e.test(e);const r=e.split(".");for(const o of r)if(!pg(o))return!1;return!0},fm={},pm="endpoints";function sc(e){return typeof e!="object"||e==null?e:"ref"in e?`$${sc(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(sc).join(", ")})`:JSON.stringify(e,null,2)}class Xi extends Error{constructor(t){super(t),this.name="EndpointError"}}const f5e=(e,t)=>e===t,p5e=e=>{const t=e.split("."),r=[];for(const o of t){const i=o.indexOf("[");if(i!==-1){if(o.indexOf("]")!==o.length-1)throw new Xi(`Path: '${e}' does not end with ']'`);const s=o.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Xi(`Invalid array index: '${s}' in path: '${e}'`);i!==0&&r.push(o.slice(0,i)),r.push(s)}else r.push(o)}return r},N7=(e,t)=>p5e(t).reduce((r,o)=>{if(typeof r!="object")throw new Xi(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(o)]:r[o]},e),h5e=e=>e!=null,m5e=e=>!e,QO={[cm.HTTP]:80,[cm.HTTPS]:443},g5e=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:p,port:h,protocol:b="",path:g="",query:y={}}=e,v=new URL(`${b}//${p}${h?`:${h}`:""}${g}`);return v.search=Object.entries(y).map(([C,O])=>`${C}=${O}`).join("&"),v}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:o,hostname:i,pathname:s,protocol:a,search:l}=t;if(l)return null;const c=a.slice(0,-1);if(!Object.values(cm).includes(c))return null;const u=MM(i),d=r.includes(`${o}:${QO[c]}`)||typeof e=="string"&&e.includes(`${o}:${QO[c]}`),f=`${o}${d?`:${QO[c]}`:""}`;return{scheme:c,authority:f,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}},b5e=(e,t)=>e===t,y5e=(e,t,r,o)=>t>=r||e.length<r?null:o?e.substring(e.length-r,e.length-t):e.substring(t,r),v5e=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),x5e={booleanEquals:f5e,getAttr:N7,isSet:h5e,isValidHostLabel:pg,not:m5e,parseURL:g5e,stringEquals:b5e,substring:y5e,uriEncode:v5e},F7=(e,t)=>{const r=[],o={...t.endpointParams,...t.referenceRecord};let i=0;for(;i<e.length;){const s=e.indexOf("{",i);if(s===-1){r.push(e.slice(i));break}r.push(e.slice(i,s));const a=e.indexOf("}",s);if(a===-1){r.push(e.slice(s));break}e[s+1]==="{"&&e[a+1]==="}"&&(r.push(e.slice(s+1,a)),i=a+2);const l=e.substring(s+1,a);if(l.includes("#")){const[c,u]=l.split("#");r.push(N7(o[c],u))}else r.push(o[l]);i=a+1}return r.join("")},S5e=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],MC=(e,t,r)=>{if(typeof e=="string")return F7(e,r);if(e.fn)return $7.callFunction(e,r);if(e.ref)return S5e(e,r);throw new Xi(`'${t}': ${String(e)} is not a string, function or reference.`)},L7=({fn:e,argv:t},r)=>{const o=t.map(s=>["boolean","number"].includes(typeof s)?s:$7.evaluateExpression(s,"arg",r)),i=e.split(".");return i[0]in fm&&i[1]!=null?fm[i[0]][i[1]](...o):x5e[e](...o)},$7={evaluateExpression:MC,callFunction:L7},C5e=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new Xi(`'${e}' is already defined in Reference Record.`);const o=L7(t,r);return r.logger?.debug?.(`${pm} evaluateCondition: ${sc(t)} = ${sc(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}},AM=(e=[],t)=>{const r={};for(const o of e){const{result:i,toAssign:s}=C5e(o,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!i)return{result:i};s&&(r[s.name]=s.value,t.logger?.debug?.(`${pm} assign: ${s.name} := ${sc(s.value)}`))}return{result:!0,referenceRecord:r}},w5e=(e,t)=>Object.entries(e).reduce((r,[o,i])=>({...r,[o]:i.map(s=>{const a=MC(s,"Header value entry",t);if(typeof a!="string")throw new Xi(`Header '${o}' value '${a}' is not a string`);return a})}),{}),j7=(e,t)=>Object.entries(e).reduce((r,[o,i])=>({...r,[o]:V7.getEndpointProperty(i,t)}),{}),B7=(e,t)=>{if(Array.isArray(e))return e.map(r=>B7(r,t));switch(typeof e){case"string":return F7(e,t);case"object":if(e===null)throw new Xi(`Unexpected endpoint property: ${e}`);return V7.getEndpointProperties(e,t);case"boolean":return e;default:throw new Xi(`Unexpected endpoint property type: ${typeof e}`)}},V7={getEndpointProperty:B7,getEndpointProperties:j7},T5e=(e,t)=>{const r=MC(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new Xi(`Endpoint URL must be a string, got ${typeof r}`)},O5e=(e,t)=>{const{conditions:r,endpoint:o}=e,{result:i,referenceRecord:s}=AM(r,t);if(!i)return;const a={...t,referenceRecord:{...t.referenceRecord,...s}},{url:l,properties:c,headers:u}=o;return t.logger?.debug?.(`${pm} Resolving endpoint from template: ${sc(o)}`),{...u!=null&&{headers:w5e(u,a)},...c!=null&&{properties:j7(c,a)},url:T5e(l,a)}},P5e=(e,t)=>{const{conditions:r,error:o}=e,{result:i,referenceRecord:s}=AM(r,t);if(i)throw new Xi(MC(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))},H7=(e,t)=>{for(const r of e)if(r.type==="endpoint"){const o=O5e(r,t);if(o)return o}else if(r.type==="error")P5e(r,t);else if(r.type==="tree"){const o=z7.evaluateTreeRule(r,t);if(o)return o}else throw new Xi(`Unknown endpoint rule: ${r}`);throw new Xi("Rules evaluation failed")},E5e=(e,t)=>{const{conditions:r,rules:o}=e,{result:i,referenceRecord:s}=AM(r,t);if(i)return z7.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...s}})},z7={evaluateRules:H7,evaluateTreeRule:E5e},q7=(e,t)=>{const{endpointParams:r,logger:o}=t,{parameters:i,rules:s}=e;t.logger?.debug?.(`${pm} Initial EndpointParams: ${sc(r)}`);const a=Object.entries(i).filter(([,u])=>u.default!=null).map(([u,d])=>[u,d.default]);if(a.length>0)for(const[u,d]of a)r[u]=r[u]??d;const l=Object.entries(i).filter(([,u])=>u.required).map(([u])=>u);for(const u of l)if(r[u]==null)throw new Xi(`Missing required parameter: '${u}'`);const c=H7(s,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${pm} Resolved endpoint: ${sc(c)}`),c},U7=(e,t=!1)=>{if(t){for(const r of e.split("."))if(!U7(r))return!1;return!0}return!(!pg(e)||e.length<3||e.length>63||e!==e.toLowerCase()||MM(e))},iH=":",I5e="/",k5e=e=>{const t=e.split(iH);if(t.length<6)return null;const[r,o,i,s,a,...l]=t;if(r!=="arn"||o===""||i===""||l.join(iH)==="")return null;const c=l.map(u=>u.split(I5e)).flat();return{partition:o,service:i,region:s,accountId:a,resourceId:c}},R5e=[{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)"}}}],M5e={partitions:R5e};let A5e=M5e;const D5e=e=>{const{partitions:t}=A5e;for(const o of t){const{regions:i,outputs:s}=o;for(const[a,l]of Object.entries(i))if(a===e)return{...s,...l}}for(const o of t){const{regionRegex:i,outputs:s}=o;if(new RegExp(i).test(e))return{...s}}const r=t.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},G7={isVirtualHostableS3Bucket:U7,parseArn:k5e,partition:D5e};fm.aws=G7;function _5e(e){const t={};if(e=e.replace(/^\?/,""),e)for(const r of e.split("&")){let[o,i=null]=r.split("=");o=decodeURIComponent(o),i&&(i=decodeURIComponent(i)),o in t?Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]:t[o]=i}return t}const hm=e=>{if(typeof e=="string")return hm(new URL(e));const{hostname:t,pathname:r,port:o,protocol:i,search:s}=e;let a;return s&&(a=_5e(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:i,path:r,query:a}},N5e=/\d{12}\.ddb/;async function F5e(e,t,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Gr(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const s=await t.retryStrategy();typeof s.acquireInitialRetryToken=="function"?s.constructor?.name?.includes("Adaptive")?Gr(e,"RETRY_MODE_ADAPTIVE","F"):Gr(e,"RETRY_MODE_STANDARD","E"):Gr(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const s=e.endpointV2;switch(String(s?.url?.hostname).match(N5e)&&Gr(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Gr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Gr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Gr(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const s=i;s.accountId&&Gr(e,"RESOLVED_ACCOUNT_ID","T");for(const[a,l]of Object.entries(s.$source??{}))Gr(e,a,l)}}const sH="user-agent",JO="x-amz-user-agent",aH=" ",e1="/",L5e=/[^!$%&'*+\-.^_`|~\w]/g,$5e=/[^!$%&'*+\-.^_`|~\w#]/g,lH="-",j5e=1024;function B5e(e){let t="";for(const r in e){const o=e[r];if(t.length+o.length+1<=j5e){t.length?t+=","+o:t+=o;continue}break}return t}const V5e=e=>(t,r)=>async o=>{const{request:i}=o;if(!Br.isInstance(i))return t(o);const{headers:s}=i,a=r?.userAgent?.map(Ev)||[],l=(await e.defaultUserAgentProvider()).map(Ev);await F5e(r,e,o);const c=r;l.push(`m/${B5e(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const u=e?.customUserAgent?.map(Ev)||[],d=await e.userAgentAppId();d&&l.push(Ev(["app",`${d}`]));const f=[].concat([...l,...a,...u]).join(aH),p=[...l.filter(h=>h.startsWith("aws-sdk-")),...u].join(aH);return e.runtime!=="browser"?(p&&(s[JO]=s[JO]?`${s[sH]} ${p}`:p),s[sH]=f):s[JO]=f,t({...o,request:i})},Ev=e=>{const t=e[0].split(e1).map(a=>a.replace(L5e,lH)).join(e1),r=e[1]?.replace($5e,lH),o=t.indexOf(e1),i=t.substring(0,o);let s=t.substring(o+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},H5e={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},W7=e=>({applyToStack:t=>{t.add(V5e(e),H5e)}}),K7=!1,Y7=!1,cH=new Set,z5e=(e,t=pg)=>{if(!cH.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else cH.add(e)},Z7=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),q5e=e=>Z7(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,X7=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const o=typeof t=="function"?await t():t,i=q5e(o);return z5e(i),i},useFipsEndpoint:async()=>{const o=typeof t=="string"?t:await t();return Z7(o)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})},U5e=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),uH="content-length";function G5e(e){return t=>async r=>{const o=r.request;if(Br.isInstance(o)){const{body:i,headers:s}=o;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(uH)===-1)try{const a=e(i);o.headers={...o.headers,[uH]:String(a)}}catch{}}return t({...r,request:o})}}const W5e={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Q7=e=>({applyToStack:t=>{t.add(G5e(e.bodyLengthChecker),W5e)}}),K5e=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),J5e(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Q5e(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},Y5e=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Z5e=/(\d+\.){3}\d+/,X5e=/\.\./,Q5e=e=>Y5e.test(e)&&!Z5e.test(e)&&!X5e.test(e),J5e=e=>{const[t,r,o,,,i]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,a=!!(s&&r&&o&&i);if(s&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},e4e=(e,t,r,o=!1)=>{const i=async()=>{let s;return o?s=r.clientContextParams?.[e]??r[e]??r[t]:s=r[e]??r[t],typeof s=="function"?s():s};return e==="credentialScope"||t==="CredentialScope"?async()=>{const s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;const s=await i();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){const{protocol:a,hostname:l,port:c,path:u}=s;return`${a}//${l}${c?":"+c:""}${u}`}}return s}:i},J7=async e=>{},eK=e=>typeof e=="object"?"url"in e?hm(e.url):e:hm(e),t4e=async(e,t,r,o)=>{if(!r.isCustomEndpoint){let a;r.serviceConfiguredEndpoint?a=await r.serviceConfiguredEndpoint():a=await J7(r.serviceId),a&&(r.endpoint=()=>Promise.resolve(eK(a)),r.isCustomEndpoint=!0)}const i=await tK(e,t,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,o)},tK=async(e,t,r)=>{const o={},i=t?.getEndpointParameterInstructions?.()||{};for(const[s,a]of Object.entries(i))switch(a.type){case"staticContextParams":o[s]=a.value;break;case"contextParams":o[s]=e[a.name];break;case"clientContextParams":case"builtInParams":o[s]=await e4e(a.name,s,r,a.type!=="builtInParams")();break;case"operationContextParams":o[s]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(o,r),String(r.serviceId).toLowerCase()==="s3"&&await K5e(o),o},n4e=({config:e,instructions:t})=>(r,o)=>async i=>{e.isCustomEndpoint&&tqe(o,"ENDPOINT_OVERRIDE","N");const s=await t4e(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;const a=o.authSchemes?.[0];if(a){o.signing_region=a.signingRegion,o.signing_service=a.signingName;const c=gl(o)?.selectedHttpAuthScheme?.httpAuthOption;c&&(c.signingProperties=Object.assign(c.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return r({...i})},r4e={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:HHe.name},DM=(e,t)=>({applyToStack:r=>{r.addRelativeTo(n4e({config:e,instructions:t}),r4e)}}),nK=e=>{const t=e.tls??!0,{endpoint:r,useDualstackEndpoint:o,useFipsEndpoint:i}=e,s=r!=null?async()=>eK(await Rs(r)()):void 0,l=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!r,useDualstackEndpoint:Rs(o??!1),useFipsEndpoint:Rs(i??!1)});let c;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!c&&(c=J7(e.serviceId)),c),l};var Vf;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Vf||(Vf={}));const mm=3,rK=Vf.STANDARD,o4e=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],i4e=["TimeoutError","RequestTimeout","RequestTimeoutException"],s4e=[500,502,503,504],a4e=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],l4e=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],c4e=e=>e?.$retryable!==void 0,u4e=e=>e.$metadata?.clockSkewCorrected,d4e=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},oK=e=>e.$metadata?.httpStatusCode===429||o4e.includes(e.name)||e.$retryable?.throttling==!0,_M=(e,t=0)=>c4e(e)||u4e(e)||i4e.includes(e.name)||a4e.includes(e?.code||"")||l4e.includes(e?.code||"")||s4e.includes(e.$metadata?.httpStatusCode||0)||d4e(e)||e.cause!==void 0&&t<=10&&_M(e.cause,t+1),f4e=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!_M(e)}return!1};class NM{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(o=>NM.setTimeoutFn(o,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),oK(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const o=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(o*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}}const oE=100,iK=20*1e3,p4e=500,dH=500,h4e=5,m4e=10,g4e=1,b4e="amz-sdk-invocation-id",y4e="amz-sdk-request",v4e=()=>{let e=oE;return{computeNextBackoffDelay:o=>Math.floor(Math.min(iK,Math.random()*2**o*e)),setDelayBase:o=>{e=o}}},fH=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(iK,e),getRetryCost:()=>r});class sK{maxAttempts;mode=Vf.STANDARD;capacity=dH;retryBackoffStrategy=v4e();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return fH({retryDelay:oE,retryCount:0})}async refreshRetryTokenForRetry(t,r){const o=await this.getMaxAttempts();if(this.shouldRetry(t,r,o)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?p4e:oE);const s=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),a=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,l=this.getCapacityCost(i);return this.capacity-=l,fH({retryDelay:a,retryCount:t.getRetryCount()+1,retryCost:l})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(dH,this.capacity+(t.getRetryCost()??g4e))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${mm}`),mm}}shouldRetry(t,r,o){return t.getRetryCount()+1<o&&this.capacity>=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(t){return t==="TRANSIENT"?m4e:h4e}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class x4e{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Vf.ADAPTIVE;constructor(t,r){this.maxAttemptsProvider=t;const{rateLimiter:o}=r??{};this.rateLimiter=o??new NM,this.standardRetryStrategy=new sK(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(t,r)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const S4e=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),aK=e=>{const{retryStrategy:t,retryMode:r,maxAttempts:o}=e,i=Rs(o??mm);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Rs(r)()===Vf.ADAPTIVE?new x4e(i):new sK(i))})},C4e=e=>e?.body instanceof ReadableStream,w4e=e=>(t,r)=>async o=>{let i=await e.retryStrategy();const s=await e.maxAttempts();if(T4e(i)){i=i;let a=await i.acquireInitialRetryToken(r.partition_id),l=new Error,c=0,u=0;const{request:d}=o,f=Br.isInstance(d);for(f&&(d.headers[b4e]=OC());;)try{f&&(d.headers[y4e]=`attempt=${c+1}; max=${s}`);const{response:p,output:h}=await t(o);return i.recordSuccess(a),h.$metadata.attempts=c+1,h.$metadata.totalRetryDelay=u,{response:p,output:h}}catch(p){const h=O4e(p);if(l=S4e(p),f&&C4e(d))throw(r.logger instanceof kC?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{a=await i.refreshRetryTokenForRetry(a,h)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=c+1,l.$metadata.totalRetryDelay=u,l}c=a.getRetryCount();const b=a.getRetryDelay();u+=b,await new Promise(g=>setTimeout(g,b))}}else return i=i,i?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,o)},T4e=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",O4e=e=>{const t={error:e,errorType:P4e(e)},r=I4e(e.$response);return r&&(t.retryAfterHint=r),t},P4e=e=>oK(e)?"THROTTLING":_M(e)?"TRANSIENT":f4e(e)?"SERVER_ERROR":"CLIENT_ERROR",E4e={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},lK=e=>({applyToStack:t=>{t.add(w4e(e),E4e)}}),I4e=e=>{if(!wu.isInstance(e))return;const t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;const r=e.headers[t],o=Number(r);return Number.isNaN(o)?new Date(r):new Date(o*1e3)};class cK{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new V3e(t),this.signerOptions=t}async sign(t,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(t,r):this.sigv4Signer.sign(t,r)}async signWithCredentials(t,r,o={}){if(o.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,r,o)}async presign(t,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,r)}async presignWithCredentials(t,r,o={}){if(o.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,r,o)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const FM="required",ue="type",Be="rules",be="conditions",ke="fn",Re="argv",Et="ref",tn="assign",dt="url",ft="properties",Ja="backend",go="authSchemes",Wr="disableDoubleEncoding",Kr="signingName",Eo="signingRegion",pt="headers",LM="signingRegionSet",k4e=6,R4e=!1,ua=!0,qi="isSet",jr="booleanEquals",xt="error",l0="aws.partition",wn="stringEquals",wr="getAttr",Or="name",Qn="substring",pH="bucketSuffix",$M="parseURL",Ye="endpoint",Ve="tree",c0="aws.isVirtualHostableS3Bucket",u0="{url#scheme}://{Bucket}.{url#authority}{url#path}",Ca="not",hH="accessPointSuffix",Jv="{url#scheme}://{url#authority}{url#path}",uK="hardwareType",dK="regionPrefix",mH="bucketAliasSuffix",iE="outpostId",qu="isValidHostLabel",jM="sigv4a",gm="s3-outposts",Hf="s3",fK="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",pK="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",gH="https://{Bucket}.s3.{partitionResult#dnsSuffix}",hK="aws.parseArn",mK="bucketArn",gK="arnType",d0="",BM="s3-object-lambda",bK="accesspoint",VM="accessPointName",bH="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",yH="mrapPartition",vH="outpostType",xH="arnPrefix",yK="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",SH="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",CH="https://s3.{partitionResult#dnsSuffix}",Fd={[FM]:!1,[ue]:"string"},Ld={[FM]:!0,default:!1,[ue]:"boolean"},Xp={[FM]:!1,[ue]:"boolean"},gs={[ke]:jr,[Re]:[{[Et]:"Accelerate"},!0]},rr={[ke]:jr,[Re]:[{[Et]:"UseFIPS"},!0]},Yn={[ke]:jr,[Re]:[{[Et]:"UseDualStack"},!0]},Lr={[ke]:qi,[Re]:[{[Et]:"Endpoint"}]},vK={[ke]:l0,[Re]:[{[Et]:"Region"}],[tn]:"partitionResult"},wH={[ke]:wn,[Re]:[{[ke]:wr,[Re]:[{[Et]:"partitionResult"},Or]},"aws-cn"]},Mh={[ke]:qi,[Re]:[{[Et]:"Bucket"}]},xn={[Et]:"Bucket"},TH={[be]:[gs],[xt]:"S3Express does not support S3 Accelerate.",[ue]:xt},OH={[be]:[Lr,{[ke]:$M,[Re]:[{[Et]:"Endpoint"}],[tn]:"url"}],[Be]:[{[be]:[{[ke]:qi,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"}]},{[ke]:jr,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"},!0]}],[Be]:[{[be]:[{[ke]:jr,[Re]:[{[ke]:wr,[Re]:[{[Et]:"url"},"isIp"]},!0]}],[Be]:[{[be]:[{[ke]:"uriEncode",[Re]:[xn],[tn]:"uri_encoded_bucket"}],[Be]:[{[Ye]:{[dt]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:c0,[Re]:[xn,!1]}],[Be]:[{[Ye]:{[dt]:u0,[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve},{[xt]:"S3Express bucket name is not a valid virtual hostable name.",[ue]:xt}],[ue]:Ve},{[be]:[{[ke]:jr,[Re]:[{[ke]:wr,[Re]:[{[Et]:"url"},"isIp"]},!0]}],[Be]:[{[be]:[{[ke]:"uriEncode",[Re]:[xn],[tn]:"uri_encoded_bucket"}],[Be]:[{[Ye]:{[dt]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:c0,[Re]:[xn,!1]}],[Be]:[{[Ye]:{[dt]:u0,[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],[ue]:Ve},{[xt]:"S3Express bucket name is not a valid virtual hostable name.",[ue]:xt}],[ue]:Ve},Xo={[ke]:$M,[Re]:[{[Et]:"Endpoint"}],[tn]:"url"},t1={[ke]:jr,[Re]:[{[ke]:wr,[Re]:[{[Et]:"url"},"isIp"]},!0]},xK={[Et]:"url"},SK={[ke]:"uriEncode",[Re]:[xn],[tn]:"uri_encoded_bucket"},ji={[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:"s3express",[Eo]:"{Region}"}]},qt={},CK={[ke]:c0,[Re]:[xn,!1]},PH={[xt]:"S3Express bucket name is not a valid virtual hostable name.",[ue]:xt},EH={[ke]:qi,[Re]:[{[Et]:"UseS3ExpressControlEndpoint"}]},IH={[ke]:jr,[Re]:[{[Et]:"UseS3ExpressControlEndpoint"},!0]},Qt={[ke]:Ca,[Re]:[Lr]},hn={[ke]:jr,[Re]:[{[Et]:"UseDualStack"},!1]},an={[ke]:jr,[Re]:[{[Et]:"UseFIPS"},!1]},Iv={[xt]:"Unrecognized S3Express bucket name format.",[ue]:xt},kH={[ke]:Ca,[Re]:[Mh]},RH={[Et]:uK},MH={[be]:[Qt],[xt]:"Expected a endpoint to be specified but no endpoint was found",[ue]:xt},kv={[go]:[{[Wr]:!0,[Or]:jM,[Kr]:gm,[LM]:["*"]},{[Wr]:!0,[Or]:"sigv4",[Kr]:gm,[Eo]:"{Region}"}]},n1={[ke]:jr,[Re]:[{[Et]:"ForcePathStyle"},!1]},M4e={[Et]:"ForcePathStyle"},Ur={[ke]:jr,[Re]:[{[Et]:"Accelerate"},!1]},to={[ke]:wn,[Re]:[{[Et]:"Region"},"aws-global"]},fo={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"us-east-1"}]},bn={[ke]:Ca,[Re]:[to]},po={[ke]:jr,[Re]:[{[Et]:"UseGlobalEndpoint"},!0]},AH={[dt]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:{[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"{Region}"}]},[pt]:{}},Yr={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"{Region}"}]},ho={[ke]:jr,[Re]:[{[Et]:"UseGlobalEndpoint"},!1]},DH={[dt]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},_H={[dt]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},NH={[dt]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},r1={[ke]:jr,[Re]:[{[ke]:wr,[Re]:[xK,"isIp"]},!1]},o1={[dt]:fK,[ft]:Yr,[pt]:{}},sE={[dt]:u0,[ft]:Yr,[pt]:{}},FH={[Ye]:sE,[ue]:Ye},i1={[dt]:pK,[ft]:Yr,[pt]:{}},LH={[dt]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},Rv={[xt]:"Invalid region: region was not a valid DNS name.",[ue]:xt},Ti={[Et]:mK},wK={[Et]:gK},s1={[ke]:wr,[Re]:[Ti,"service"]},HM={[Et]:VM},$H={[be]:[Yn],[xt]:"S3 Object Lambda does not support Dual-stack",[ue]:xt},jH={[be]:[gs],[xt]:"S3 Object Lambda does not support S3 Accelerate",[ue]:xt},BH={[be]:[{[ke]:qi,[Re]:[{[Et]:"DisableAccessPoints"}]},{[ke]:jr,[Re]:[{[Et]:"DisableAccessPoints"},!0]}],[xt]:"Access points are not supported for this operation",[ue]:xt},a1={[be]:[{[ke]:qi,[Re]:[{[Et]:"UseArnRegion"}]},{[ke]:jr,[Re]:[{[Et]:"UseArnRegion"},!1]},{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]},"{Region}"]}]}],[xt]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[ue]:xt},TK={[ke]:wr,[Re]:[{[Et]:"bucketPartition"},Or]},OK={[ke]:wr,[Re]:[Ti,"accountId"]},l1={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:BM,[Eo]:"{bucketArn#region}"}]},VH={[xt]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[ue]:xt},c1={[xt]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[ue]:xt},u1={[xt]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[ue]:xt},d1={[xt]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[ue]:xt},HH={[xt]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[ue]:xt},zH={[xt]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[ue]:xt},Qp={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:Hf,[Eo]:"{bucketArn#region}"}]},qH={[go]:[{[Wr]:!0,[Or]:jM,[Kr]:gm,[LM]:["*"]},{[Wr]:!0,[Or]:"sigv4",[Kr]:gm,[Eo]:"{bucketArn#region}"}]},UH={[ke]:hK,[Re]:[xn]},GH={[dt]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},WH={[dt]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},KH={[dt]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},f1={[dt]:yK,[ft]:Yr,[pt]:{}},YH={[dt]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:Yr,[pt]:{}},ZH={[Et]:"UseObjectLambdaEndpoint"},p1={[go]:[{[Wr]:!0,[Or]:"sigv4",[Kr]:BM,[Eo]:"{Region}"}]},XH={[dt]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},QH={[dt]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},JH={[dt]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},h1={[dt]:Jv,[ft]:Yr,[pt]:{}},ez={[dt]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[ft]:Yr,[pt]:{}},m1=[{[Et]:"Region"}],A4e=[{[Et]:"Endpoint"}],D4e=[xn],g1=[gs],$d=[Lr,Xo],tz=[{[ke]:qi,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"}]},{[ke]:jr,[Re]:[{[Et]:"DisableS3ExpressSessionAuth"},!0]}],_4e=[SK],b1=[CK],hs=[vK],y1=[rr,Yn],Ah=[rr,hn],Dh=[an,Yn],_h=[an,hn],nz=[{[ke]:Qn,[Re]:[xn,6,14,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,14,16,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],da=[{[be]:[rr,Yn],[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye},{[be]:Ah,[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye},{[be]:Dh,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye},{[be]:_h,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:{}},[ue]:Ye}],rz=[{[ke]:Qn,[Re]:[xn,6,15,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,15,17,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],oz=[{[ke]:Qn,[Re]:[xn,6,19,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,19,21,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],iz=[{[ke]:Qn,[Re]:[xn,6,20,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,20,22,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],sz=[{[ke]:Qn,[Re]:[xn,6,26,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,26,28,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],fa=[{[be]:[rr,Yn],[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye},{[be]:Ah,[Ye]:{[dt]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye},{[be]:Dh,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye},{[be]:_h,[Ye]:{[dt]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[ft]:{[Ja]:"S3Express",[go]:[{[Wr]:!0,[Or]:"sigv4-s3express",[Kr]:"s3express",[Eo]:"{Region}"}]},[pt]:{}},[ue]:Ye}],az=[xn,0,7,!0],lz=[{[ke]:Qn,[Re]:[xn,7,15,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,15,17,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],cz=[{[ke]:Qn,[Re]:[xn,7,16,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,16,18,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],uz=[{[ke]:Qn,[Re]:[xn,7,20,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,20,22,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],dz=[{[ke]:Qn,[Re]:[xn,7,21,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,21,23,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],fz=[{[ke]:Qn,[Re]:[xn,7,27,!0],[tn]:"s3expressAvailabilityZoneId"},{[ke]:Qn,[Re]:[xn,27,29,!0],[tn]:"s3expressAvailabilityZoneDelim"},{[ke]:wn,[Re]:[{[Et]:"s3expressAvailabilityZoneDelim"},"--"]}],N4e=[Mh],pz=[{[ke]:qu,[Re]:[{[Et]:iE},!1]}],hz=[{[ke]:wn,[Re]:[{[Et]:dK},"beta"]}],F4e=["*"],mz=[{[ke]:qu,[Re]:[{[Et]:"Region"},!1]}],Dl=[{[ke]:wn,[Re]:[{[Et]:"Region"},"us-east-1"]}],v1=[{[ke]:wn,[Re]:[wK,bK]}],gz=[{[ke]:wr,[Re]:[Ti,"resourceId[1]"],[tn]:VM},{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[HM,d0]}]}],L4e=[Ti,"resourceId[1]"],bz=[Yn],x1=[{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]},d0]}]}],yz=[{[ke]:Ca,[Re]:[{[ke]:qi,[Re]:[{[ke]:wr,[Re]:[Ti,"resourceId[2]"]}]}]}],$4e=[Ti,"resourceId[2]"],S1=[{[ke]:l0,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]}],[tn]:"bucketPartition"}],vz=[{[ke]:wn,[Re]:[TK,{[ke]:wr,[Re]:[{[Et]:"partitionResult"},Or]}]}],C1=[{[ke]:qu,[Re]:[{[ke]:wr,[Re]:[Ti,"region"]},!0]}],w1=[{[ke]:qu,[Re]:[OK,!1]}],xz=[{[ke]:qu,[Re]:[HM,!1]}],Mv=[rr],Sz=[{[ke]:qu,[Re]:[{[Et]:"Region"},!0]}],j4e={parameters:{Bucket:Fd,Region:Fd,UseFIPS:Ld,UseDualStack:Ld,Endpoint:Fd,ForcePathStyle:Ld,Accelerate:Ld,UseGlobalEndpoint:Ld,UseObjectLambdaEndpoint:Xp,Key:Fd,Prefix:Fd,CopySource:Fd,DisableAccessPoints:Xp,DisableMultiRegionAccessPoints:Ld,UseArnRegion:Xp,UseS3ExpressControlEndpoint:Xp,DisableS3ExpressSessionAuth:Xp},[Be]:[{[be]:[{[ke]:qi,[Re]:m1}],[Be]:[{[be]:[gs,rr],error:"Accelerate cannot be used with FIPS",[ue]:xt},{[be]:[Yn,Lr],error:"Cannot set dual-stack in combination with a custom endpoint.",[ue]:xt},{[be]:[Lr,rr],error:"A custom endpoint cannot be combined with FIPS",[ue]:xt},{[be]:[Lr,gs],error:"A custom endpoint cannot be combined with S3 Accelerate",[ue]:xt},{[be]:[rr,vK,wH],error:"Partition does not support FIPS",[ue]:xt},{[be]:[Mh,{[ke]:Qn,[Re]:[xn,0,k4e,ua],[tn]:pH},{[ke]:wn,[Re]:[{[Et]:pH},"--x-s3"]}],[Be]:[TH,OH,{[be]:[EH,IH],[Be]:[{[be]:hs,[Be]:[{[be]:[SK,Qt],[Be]:[{[be]:y1,endpoint:{[dt]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Ah,endpoint:{[dt]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Dh,endpoint:{[dt]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:_h,endpoint:{[dt]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:ji,[pt]:qt},[ue]:Ye}],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{[be]:b1,[Be]:[{[be]:hs,[Be]:[{[be]:tz,[Be]:[{[be]:nz,[Be]:da,[ue]:Ve},{[be]:rz,[Be]:da,[ue]:Ve},{[be]:oz,[Be]:da,[ue]:Ve},{[be]:iz,[Be]:da,[ue]:Ve},{[be]:sz,[Be]:da,[ue]:Ve},Iv],[ue]:Ve},{[be]:nz,[Be]:fa,[ue]:Ve},{[be]:rz,[Be]:fa,[ue]:Ve},{[be]:oz,[Be]:fa,[ue]:Ve},{[be]:iz,[Be]:fa,[ue]:Ve},{[be]:sz,[Be]:fa,[ue]:Ve},Iv],[ue]:Ve}],[ue]:Ve},PH],[ue]:Ve},{[be]:[Mh,{[ke]:Qn,[Re]:az,[tn]:hH},{[ke]:wn,[Re]:[{[Et]:hH},"--xa-s3"]}],[Be]:[TH,OH,{[be]:b1,[Be]:[{[be]:hs,[Be]:[{[be]:tz,[Be]:[{[be]:lz,[Be]:da,[ue]:Ve},{[be]:cz,[Be]:da,[ue]:Ve},{[be]:uz,[Be]:da,[ue]:Ve},{[be]:dz,[Be]:da,[ue]:Ve},{[be]:fz,[Be]:da,[ue]:Ve},Iv],[ue]:Ve},{[be]:lz,[Be]:fa,[ue]:Ve},{[be]:cz,[Be]:fa,[ue]:Ve},{[be]:uz,[Be]:fa,[ue]:Ve},{[be]:dz,[Be]:fa,[ue]:Ve},{[be]:fz,[Be]:fa,[ue]:Ve},Iv],[ue]:Ve}],[ue]:Ve},PH],[ue]:Ve},{[be]:[kH,EH,IH],[Be]:[{[be]:hs,[Be]:[{[be]:$d,endpoint:{[dt]:Jv,[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:y1,endpoint:{[dt]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Ah,endpoint:{[dt]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:Dh,endpoint:{[dt]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye},{[be]:_h,endpoint:{[dt]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[ft]:ji,[pt]:qt},[ue]:Ye}],[ue]:Ve}],[ue]:Ve},{[be]:[Mh,{[ke]:Qn,[Re]:[xn,49,50,ua],[tn]:uK},{[ke]:Qn,[Re]:[xn,8,12,ua],[tn]:dK},{[ke]:Qn,[Re]:az,[tn]:mH},{[ke]:Qn,[Re]:[xn,32,49,ua],[tn]:iE},{[ke]:l0,[Re]:m1,[tn]:"regionPartition"},{[ke]:wn,[Re]:[{[Et]:mH},"--op-s3"]}],[Be]:[{[be]:pz,[Be]:[{[be]:b1,[Be]:[{[be]:[{[ke]:wn,[Re]:[RH,"e"]}],[Be]:[{[be]:hz,[Be]:[MH,{[be]:$d,endpoint:{[dt]:"https://{Bucket}.ec2.{url#authority}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{endpoint:{[dt]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{[be]:[{[ke]:wn,[Re]:[RH,"o"]}],[Be]:[{[be]:hz,[Be]:[MH,{[be]:$d,endpoint:{[dt]:"https://{Bucket}.op-{outpostId}.{url#authority}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{endpoint:{[dt]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[ft]:kv,[pt]:qt},[ue]:Ye}],[ue]:Ve},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[ue]:xt}],[ue]:Ve},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[ue]:xt}],[ue]:Ve},{[be]:N4e,[Be]:[{[be]:[Lr,{[ke]:Ca,[Re]:[{[ke]:qi,[Re]:[{[ke]:$M,[Re]:A4e}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[ue]:xt},{[be]:[n1,CK],[Be]:[{[be]:hs,[Be]:[{[be]:mz,[Be]:[{[be]:[gs,wH],error:"S3 Accelerate cannot be used in this region",[ue]:xt},{[be]:[Yn,rr,Ur,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,rr,Ur,Qt,bn,po],[Be]:[{endpoint:AH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,rr,Ur,Qt,bn,ho],endpoint:AH,[ue]:Ye},{[be]:[hn,rr,Ur,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,rr,Ur,Qt,bn,po],[Be]:[{endpoint:DH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,rr,Ur,Qt,bn,ho],endpoint:DH,[ue]:Ye},{[be]:[Yn,an,gs,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,an,gs,Qt,bn,po],[Be]:[{endpoint:_H,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,an,gs,Qt,bn,ho],endpoint:_H,[ue]:Ye},{[be]:[Yn,an,Ur,Qt,to],endpoint:{[dt]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,an,Ur,Qt,bn,po],[Be]:[{endpoint:NH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,an,Ur,Qt,bn,ho],endpoint:NH,[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,t1,to],endpoint:{[dt]:fK,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,r1,to],endpoint:{[dt]:u0,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,t1,bn,po],[Be]:[{[be]:Dl,endpoint:o1,[ue]:Ye},{endpoint:o1,[ue]:Ye}],[ue]:Ve},{[be]:[hn,an,Ur,Lr,Xo,r1,bn,po],[Be]:[{[be]:Dl,endpoint:sE,[ue]:Ye},FH],[ue]:Ve},{[be]:[hn,an,Ur,Lr,Xo,t1,bn,ho],endpoint:o1,[ue]:Ye},{[be]:[hn,an,Ur,Lr,Xo,r1,bn,ho],endpoint:sE,[ue]:Ye},{[be]:[hn,an,gs,Qt,to],endpoint:{[dt]:pK,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,gs,Qt,bn,po],[Be]:[{[be]:Dl,endpoint:i1,[ue]:Ye},{endpoint:i1,[ue]:Ye}],[ue]:Ve},{[be]:[hn,an,gs,Qt,bn,ho],endpoint:i1,[ue]:Ye},{[be]:[hn,an,Ur,Qt,to],endpoint:{[dt]:gH,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,an,Ur,Qt,bn,po],[Be]:[{[be]:Dl,endpoint:{[dt]:gH,[ft]:Yr,[pt]:qt},[ue]:Ye},{endpoint:LH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,an,Ur,Qt,bn,ho],endpoint:LH,[ue]:Ye}],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve},{[be]:[Lr,Xo,{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[xK,"scheme"]},"http"]},{[ke]:c0,[Re]:[xn,ua]},n1,an,hn,Ur],[Be]:[{[be]:hs,[Be]:[{[be]:mz,[Be]:[FH],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve},{[be]:[n1,{[ke]:hK,[Re]:D4e,[tn]:mK}],[Be]:[{[be]:[{[ke]:wr,[Re]:[Ti,"resourceId[0]"],[tn]:gK},{[ke]:Ca,[Re]:[{[ke]:wn,[Re]:[wK,d0]}]}],[Be]:[{[be]:[{[ke]:wn,[Re]:[s1,BM]}],[Be]:[{[be]:v1,[Be]:[{[be]:gz,[Be]:[$H,jH,{[be]:x1,[Be]:[BH,{[be]:yz,[Be]:[a1,{[be]:S1,[Be]:[{[be]:hs,[Be]:[{[be]:vz,[Be]:[{[be]:C1,[Be]:[{[be]:[{[ke]:wn,[Re]:[OK,d0]}],error:"Invalid ARN: Missing account id",[ue]:xt},{[be]:w1,[Be]:[{[be]:xz,[Be]:[{[be]:$d,endpoint:{[dt]:bH,[ft]:l1,[pt]:qt},[ue]:Ye},{[be]:Mv,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:l1,[pt]:qt},[ue]:Ye},{endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:l1,[pt]:qt},[ue]:Ye}],[ue]:Ve},VH],[ue]:Ve},c1],[ue]:Ve},u1],[ue]:Ve},d1],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},HH],[ue]:Ve},{error:"Invalid ARN: bucket ARN is missing a region",[ue]:xt}],[ue]:Ve},zH],[ue]:Ve},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[ue]:xt}],[ue]:Ve},{[be]:v1,[Be]:[{[be]:gz,[Be]:[{[be]:x1,[Be]:[{[be]:v1,[Be]:[{[be]:x1,[Be]:[BH,{[be]:yz,[Be]:[a1,{[be]:S1,[Be]:[{[be]:hs,[Be]:[{[be]:[{[ke]:wn,[Re]:[TK,"{partitionResult#name}"]}],[Be]:[{[be]:C1,[Be]:[{[be]:[{[ke]:wn,[Re]:[s1,Hf]}],[Be]:[{[be]:w1,[Be]:[{[be]:xz,[Be]:[{[be]:g1,error:"Access Points do not support S3 Accelerate",[ue]:xt},{[be]:y1,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:Ah,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:Dh,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:[an,hn,Lr,Xo],endpoint:{[dt]:bH,[ft]:Qp,[pt]:qt},[ue]:Ye},{[be]:_h,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:Qp,[pt]:qt},[ue]:Ye}],[ue]:Ve},VH],[ue]:Ve},c1],[ue]:Ve},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[ue]:xt}],[ue]:Ve},u1],[ue]:Ve},d1],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},HH],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:qu,[Re]:[HM,ua]}],[Be]:[{[be]:bz,error:"S3 MRAP does not support dual-stack",[ue]:xt},{[be]:Mv,error:"S3 MRAP does not support FIPS",[ue]:xt},{[be]:g1,error:"S3 MRAP does not support S3 Accelerate",[ue]:xt},{[be]:[{[ke]:jr,[Re]:[{[Et]:"DisableMultiRegionAccessPoints"},ua]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[ue]:xt},{[be]:[{[ke]:l0,[Re]:m1,[tn]:yH}],[Be]:[{[be]:[{[ke]:wn,[Re]:[{[ke]:wr,[Re]:[{[Et]:yH},Or]},{[ke]:wr,[Re]:[Ti,"partition"]}]}],[Be]:[{endpoint:{[dt]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[ft]:{[go]:[{[Wr]:ua,name:jM,[Kr]:Hf,[LM]:F4e}]},[pt]:qt},[ue]:Ye}],[ue]:Ve},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[ue]:xt}],[ue]:Ve}],[ue]:Ve},{error:"Invalid Access Point Name",[ue]:xt}],[ue]:Ve},zH],[ue]:Ve},{[be]:[{[ke]:wn,[Re]:[s1,gm]}],[Be]:[{[be]:bz,error:"S3 Outposts does not support Dual-stack",[ue]:xt},{[be]:Mv,error:"S3 Outposts does not support FIPS",[ue]:xt},{[be]:g1,error:"S3 Outposts does not support S3 Accelerate",[ue]:xt},{[be]:[{[ke]:qi,[Re]:[{[ke]:wr,[Re]:[Ti,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[ue]:xt},{[be]:[{[ke]:wr,[Re]:L4e,[tn]:iE}],[Be]:[{[be]:pz,[Be]:[a1,{[be]:S1,[Be]:[{[be]:hs,[Be]:[{[be]:vz,[Be]:[{[be]:C1,[Be]:[{[be]:w1,[Be]:[{[be]:[{[ke]:wr,[Re]:$4e,[tn]:vH}],[Be]:[{[be]:[{[ke]:wr,[Re]:[Ti,"resourceId[3]"],[tn]:VM}],[Be]:[{[be]:[{[ke]:wn,[Re]:[{[Et]:vH},bK]}],[Be]:[{[be]:$d,endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[ft]:qH,[pt]:qt},[ue]:Ye},{endpoint:{[dt]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ft]:qH,[pt]:qt},[ue]:Ye}],[ue]:Ve},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: expected an access point name",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: Expected a 4-component resource",[ue]:xt}],[ue]:Ve},c1],[ue]:Ve},u1],[ue]:Ve},d1],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: The Outpost Id was not set",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[ue]:xt}],[ue]:Ve},{error:"Invalid ARN: No ARN type specified",[ue]:xt}],[ue]:Ve},{[be]:[{[ke]:Qn,[Re]:[xn,0,4,R4e],[tn]:xH},{[ke]:wn,[Re]:[{[Et]:xH},"arn:"]},{[ke]:Ca,[Re]:[{[ke]:qi,[Re]:[UH]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[ue]:xt},{[be]:[{[ke]:jr,[Re]:[M4e,ua]},UH],error:"Path-style addressing cannot be used with ARN buckets",[ue]:xt},{[be]:_4e,[Be]:[{[be]:hs,[Be]:[{[be]:[Ur],[Be]:[{[be]:[Yn,Qt,rr,to],endpoint:{[dt]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,Qt,rr,bn,po],[Be]:[{endpoint:GH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,Qt,rr,bn,ho],endpoint:GH,[ue]:Ye},{[be]:[hn,Qt,rr,to],endpoint:{[dt]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,Qt,rr,bn,po],[Be]:[{endpoint:WH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,Qt,rr,bn,ho],endpoint:WH,[ue]:Ye},{[be]:[Yn,Qt,an,to],endpoint:{[dt]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[Yn,Qt,an,bn,po],[Be]:[{endpoint:KH,[ue]:Ye}],[ue]:Ve},{[be]:[Yn,Qt,an,bn,ho],endpoint:KH,[ue]:Ye},{[be]:[hn,Lr,Xo,an,to],endpoint:{[dt]:yK,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,Lr,Xo,an,bn,po],[Be]:[{[be]:Dl,endpoint:f1,[ue]:Ye},{endpoint:f1,[ue]:Ye}],[ue]:Ve},{[be]:[hn,Lr,Xo,an,bn,ho],endpoint:f1,[ue]:Ye},{[be]:[hn,Qt,an,to],endpoint:{[dt]:SH,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[hn,Qt,an,bn,po],[Be]:[{[be]:Dl,endpoint:{[dt]:SH,[ft]:Yr,[pt]:qt},[ue]:Ye},{endpoint:YH,[ue]:Ye}],[ue]:Ve},{[be]:[hn,Qt,an,bn,ho],endpoint:YH,[ue]:Ye}],[ue]:Ve},{error:"Path-style addressing cannot be used with S3 Accelerate",[ue]:xt}],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{[be]:[{[ke]:qi,[Re]:[ZH]},{[ke]:jr,[Re]:[ZH,ua]}],[Be]:[{[be]:hs,[Be]:[{[be]:Sz,[Be]:[$H,jH,{[be]:$d,endpoint:{[dt]:Jv,[ft]:p1,[pt]:qt},[ue]:Ye},{[be]:Mv,endpoint:{[dt]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[ft]:p1,[pt]:qt},[ue]:Ye},{endpoint:{[dt]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[ft]:p1,[pt]:qt},[ue]:Ye}],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve},{[be]:[kH],[Be]:[{[be]:hs,[Be]:[{[be]:Sz,[Be]:[{[be]:[rr,Yn,Qt,to],endpoint:{[dt]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[rr,Yn,Qt,bn,po],[Be]:[{endpoint:XH,[ue]:Ye}],[ue]:Ve},{[be]:[rr,Yn,Qt,bn,ho],endpoint:XH,[ue]:Ye},{[be]:[rr,hn,Qt,to],endpoint:{[dt]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[rr,hn,Qt,bn,po],[Be]:[{endpoint:QH,[ue]:Ye}],[ue]:Ve},{[be]:[rr,hn,Qt,bn,ho],endpoint:QH,[ue]:Ye},{[be]:[an,Yn,Qt,to],endpoint:{[dt]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[an,Yn,Qt,bn,po],[Be]:[{endpoint:JH,[ue]:Ye}],[ue]:Ve},{[be]:[an,Yn,Qt,bn,ho],endpoint:JH,[ue]:Ye},{[be]:[an,hn,Lr,Xo,to],endpoint:{[dt]:Jv,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[an,hn,Lr,Xo,bn,po],[Be]:[{[be]:Dl,endpoint:h1,[ue]:Ye},{endpoint:h1,[ue]:Ye}],[ue]:Ve},{[be]:[an,hn,Lr,Xo,bn,ho],endpoint:h1,[ue]:Ye},{[be]:[an,hn,Qt,to],endpoint:{[dt]:CH,[ft]:fo,[pt]:qt},[ue]:Ye},{[be]:[an,hn,Qt,bn,po],[Be]:[{[be]:Dl,endpoint:{[dt]:CH,[ft]:Yr,[pt]:qt},[ue]:Ye},{endpoint:ez,[ue]:Ye}],[ue]:Ve},{[be]:[an,hn,Qt,bn,ho],endpoint:ez,[ue]:Ye}],[ue]:Ve},Rv],[ue]:Ve}],[ue]:Ve}],[ue]:Ve},{error:"A region must be set when sending requests to S3.",[ue]:xt}]},B4e=j4e,V4e=new _7({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),PK=(e,t={})=>V4e.get(e,()=>q7(B4e,{endpointParams:e,logger:t.logger}));fm.aws=G7;const H4e=e=>async(t,r,o)=>{if(!o)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,r,o),s=gl(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);const a=await tK(o,{getEndpointParameterInstructions:s},t);return Object.assign(i,a)},z4e=async(e,t,r)=>({operation:gl(t).operation,region:await Rs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),q4e=H4e(z4e);function EK(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function IK(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}const U4e=(e,t,r)=>i=>{const a=e(i).properties?.authSchemes;if(!a)return t(i);const l=[];for(const c of a){const{name:u,properties:d={},...f}=c,p=u.toLowerCase();u!==p&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${p}'`);let h;if(p==="sigv4a"){h="aws.auth#sigv4a";const y=a.find(v=>{const C=v.name.toLowerCase();return C!=="sigv4a"&&C.startsWith("sigv4")});if(cK.sigv4aDependency()==="none"&&y)continue}else if(p.startsWith("sigv4"))h="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${p}'`);const b=r[h];if(!b)throw new Error(`Could not find HttpAuthOption create function for '${h}'`);const g=b(i);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...f,...d},l.push(g)}return l},G4e=e=>{const t=[];switch(e.operation){default:t.push(EK(e)),t.push(IK(e))}return t},W4e=U4e(PK,G4e,{"aws.auth#sigv4":EK,"aws.auth#sigv4a":IK}),K4e=e=>{const t=p7(e),r=aqe(t);return Object.assign(r,{authSchemePreference:Rs(e.authSchemePreference??[])})},Y4e=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??{}}),kK={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class xo extends Qc{constructor(t){super(t),Object.setPrototypeOf(this,xo.prototype)}}class zM extends xo{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,zM.prototype)}}class qM extends xo{name="AccessDenied";$fault="client";constructor(t){super({name:"AccessDenied",$fault:"client",...t}),Object.setPrototypeOf(this,qM.prototype)}}class UM extends xo{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,UM.prototype)}}class GM extends xo{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,GM.prototype)}}class WM extends xo{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,WM.prototype)}}class KM extends xo{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,KM.prototype)}}class YM extends xo{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,YM.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class ZM extends xo{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,ZM.prototype)}}class XM extends xo{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,XM.prototype)}}class QM extends xo{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,QM.prototype)}}class JM extends xo{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,JM.prototype)}}class eA extends xo{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,eA.prototype)}}class tA extends xo{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,tA.prototype)}}class nA extends xo{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,nA.prototype)}}class rA extends xo{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,rA.prototype)}}const Z4e="ACL",X4e="AccessDenied",Cz="AccessKeyId",Q4e="AccessTier",RK="Bucket",J4e="BucketAlreadyExists",eUe="BucketAlreadyOwnedByYou",AC="BucketKeyEnabled",tUe="Body",nUe="ChecksumAlgorithm",rUe="CacheControl",MK="ChecksumCRC32",AK="ChecksumCRC32C",DK="ChecksumCRC64NVME",oUe="Cache-Control",iUe="Content-Disposition",sUe="ContentDisposition",aUe="Content-Encoding",lUe="ContentEncoding",cUe="ContentLanguage",uUe="Content-Language",dUe="Content-Length",fUe="ContentLength",pUe="Content-MD5",hUe="ContentMD5",_K="ChecksumSHA1",NK="ChecksumSHA256",mUe="CreateSessionOutput",gUe="CreateSessionResult",bUe="CreateSessionRequest",yUe="CreateSession",vUe="ChecksumType",xUe="Content-Type",SUe="ContentType",wz="Credentials",aE="Expiration",CUe="ExpectedBucketOwner",wUe="EncryptionTypeMismatch",Tz="ETag",Oz="Expires",TUe="GrantFullControl",OUe="GrantRead",PUe="GrantReadACP",EUe="GrantWriteACP",IUe="IfMatch",kUe="If-Match",RUe="IfNoneMatch",MUe="If-None-Match",AUe="InvalidObjectState",DUe="IdempotencyParameterMismatch",_Ue="InvalidRequest",NUe="InvalidWriteOffset",FUe="Key",LUe="Metadata",$Ue="NotFound",jUe="NoSuchBucket",BUe="NoSuchKey",VUe="NoSuchUpload",HUe="ObjectAlreadyInActiveTierError",zUe="ObjectLockLegalHoldStatus",qUe="ObjectLockMode",UUe="ObjectLockRetainUntilDate",GUe="ObjectNotInActiveTierError",WUe="PutObject",KUe="PutObjectOutput",YUe="PutObjectRequest",ZUe="RequestCharged",XUe="RequestPayer",Pz="SecretAccessKey",QUe="StreamingBlob",FK="StorageClass",JUe="SessionCredentialValue",e9e="SessionCredentials",t9e="SessionMode",DC="ServerSideEncryption",LK="SSECustomerAlgorithm",$K="SSECustomerKey",jK="SSECustomerKeyMD5",hg="SSEKMSEncryptionContext",mg="SSEKMSKeyId",Ez="SessionToken",n9e="Size",r9e="TooManyParts",o9e="Tagging",i9e="VersionId",s9e="WriteOffsetBytes",a9e="WebsiteRedirectLocation",di="client",fi="error",BK="http",l9e="httpChecksum",Ii="httpError",Pt="httpHeader",c9e="httpPrefixHeaders",VK="smithy.ts.sdk.synthetic.com.amazonaws.s3",u9e="streaming",ef="xmlName",d9e="x-amz-acl",HK="x-amz-checksum-crc32",zK="x-amz-checksum-crc32c",qK="x-amz-checksum-crc64nvme",UK="x-amz-checksum-sha1",GK="x-amz-checksum-sha256",f9e="x-amz-create-session-mode",p9e="x-amz-checksum-type",h9e="x-amz-expiration",m9e="x-amz-expected-bucket-owner",g9e="x-amz-grant-full-control",b9e="x-amz-grant-read",y9e="x-amz-grant-read-acp",v9e="x-amz-grant-write-acp",x9e="x-amz-meta-",S9e="x-amz-object-lock-legal-hold",C9e="x-amz-object-lock-mode",w9e="x-amz-object-lock-retain-until-date",T9e="x-amz-object-size",O9e="x-amz-request-charged",P9e="x-amz-request-payer",E9e="x-amz-storage-class",I9e="x-amz-sdk-checksum-algorithm",_C="x-amz-server-side-encryption",NC="x-amz-server-side-encryption-aws-kms-key-id",FC="x-amz-server-side-encryption-bucket-key-enabled",LC="x-amz-server-side-encryption-context",WK="x-amz-server-side-encryption-customer-algorithm",k9e="x-amz-server-side-encryption-customer-key",KK="x-amz-server-side-encryption-customer-key-MD5",R9e="x-amz-tagging",M9e="x-amz-version-id",A9e="x-amz-write-offset-bytes",D9e="x-amz-website-redirect-location",Zn="com.amazonaws.s3",YK=ti.for(VK);var _9e=[-3,VK,"S3ServiceException",0,[],[]];YK.registerError(_9e,xo);const Go=ti.for(Zn);var N9e=[-3,Zn,X4e,{[fi]:di,[Ii]:403},[],[]];Go.registerError(N9e,qM);var F9e=[-3,Zn,J4e,{[fi]:di,[Ii]:409},[],[]];Go.registerError(F9e,GM);var L9e=[-3,Zn,eUe,{[fi]:di,[Ii]:409},[],[]];Go.registerError(L9e,WM);var $9e=[-3,Zn,wUe,{[fi]:di,[Ii]:400},[],[]];Go.registerError($9e,QM);var j9e=[-3,Zn,DUe,{[fi]:di,[Ii]:400},[],[]];Go.registerError(j9e,nA);var B9e=[-3,Zn,AUe,{[fi]:di,[Ii]:403},[FK,Q4e],[0,0]];Go.registerError(B9e,YM);var V9e=[-3,Zn,_Ue,{[fi]:di,[Ii]:400},[],[]];Go.registerError(V9e,JM);var H9e=[-3,Zn,NUe,{[fi]:di,[Ii]:400},[],[]];Go.registerError(H9e,eA);var z9e=[-3,Zn,jUe,{[fi]:di,[Ii]:404},[],[]];Go.registerError(z9e,KM);var q9e=[-3,Zn,BUe,{[fi]:di,[Ii]:404},[],[]];Go.registerError(q9e,ZM);var U9e=[-3,Zn,VUe,{[fi]:di,[Ii]:404},[],[]];Go.registerError(U9e,zM);var G9e=[-3,Zn,$Ue,{[fi]:di},[],[]];Go.registerError(G9e,XM);var W9e=[-3,Zn,HUe,{[fi]:di,[Ii]:403},[],[]];Go.registerError(W9e,rA);var K9e=[-3,Zn,GUe,{[fi]:di,[Ii]:403},[],[]];Go.registerError(K9e,UM);var Y9e=[-3,Zn,r9e,{[fi]:di,[Ii]:400},[],[]];Go.registerError(Y9e,tA);const Z9e=[YK,Go];var Iz=[0,Zn,JUe,8,0],X9e=[0,Zn,$K,8,0],$C=[0,Zn,hg,8,0],jC=[0,Zn,mg,8,0],Q9e=[0,Zn,QUe,{[u9e]:1},42],J9e=[3,Zn,mUe,{[ef]:gUe},[wz,DC,mg,hg,AC],[[()=>r6e,{[ef]:wz}],[0,{[Pt]:_C}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}]],1],e6e=[3,Zn,bUe,0,[RK,t9e,DC,mg,hg,AC],[[0,1],[0,{[Pt]:f9e}],[0,{[Pt]:_C}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}]],1],t6e=[3,Zn,KUe,0,[aE,Tz,MK,AK,DK,_K,NK,vUe,DC,i9e,LK,jK,mg,hg,AC,n9e,ZUe],[[0,{[Pt]:h9e}],[0,{[Pt]:Tz}],[0,{[Pt]:HK}],[0,{[Pt]:zK}],[0,{[Pt]:qK}],[0,{[Pt]:UK}],[0,{[Pt]:GK}],[0,{[Pt]:p9e}],[0,{[Pt]:_C}],[0,{[Pt]:M9e}],[0,{[Pt]:WK}],[0,{[Pt]:KK}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}],[1,{[Pt]:T9e}],[0,{[Pt]:O9e}]]],n6e=[3,Zn,YUe,0,[RK,FUe,Z4e,tUe,rUe,sUe,lUe,cUe,fUe,hUe,SUe,nUe,MK,AK,DK,_K,NK,Oz,IUe,RUe,TUe,OUe,PUe,EUe,s9e,LUe,DC,FK,a9e,LK,$K,jK,mg,hg,AC,XUe,o9e,qUe,UUe,zUe,CUe],[[0,1],[0,1],[0,{[Pt]:d9e}],[()=>Q9e,16],[0,{[Pt]:oUe}],[0,{[Pt]:iUe}],[0,{[Pt]:aUe}],[0,{[Pt]:uUe}],[1,{[Pt]:dUe}],[0,{[Pt]:pUe}],[0,{[Pt]:xUe}],[0,{[Pt]:I9e}],[0,{[Pt]:HK}],[0,{[Pt]:zK}],[0,{[Pt]:qK}],[0,{[Pt]:UK}],[0,{[Pt]:GK}],[4,{[Pt]:Oz}],[0,{[Pt]:kUe}],[0,{[Pt]:MUe}],[0,{[Pt]:g9e}],[0,{[Pt]:b9e}],[0,{[Pt]:y9e}],[0,{[Pt]:v9e}],[1,{[Pt]:A9e}],[128,{[c9e]:x9e}],[0,{[Pt]:_C}],[0,{[Pt]:E9e}],[0,{[Pt]:D9e}],[0,{[Pt]:WK}],[()=>X9e,{[Pt]:k9e}],[0,{[Pt]:KK}],[()=>jC,{[Pt]:NC}],[()=>$C,{[Pt]:LC}],[2,{[Pt]:FC}],[0,{[Pt]:P9e}],[0,{[Pt]:R9e}],[0,{[Pt]:C9e}],[5,{[Pt]:w9e}],[0,{[Pt]:S9e}],[0,{[Pt]:m9e}]],2],r6e=[3,Zn,e9e,0,[Cz,Pz,Ez,aE],[[0,{[ef]:Cz}],[()=>Iz,{[ef]:Pz}],[()=>Iz,{[ef]:Ez}],[4,{[ef]:aE}]],4],o6e=[9,Zn,yUe,{[BK]:["GET","/?session",200]},()=>e6e,()=>J9e],i6e=[9,Zn,WUe,{[l9e]:"-",[BK]:["PUT","/{Key+}?x-id=PutObject",200]},()=>n6e,()=>t6e];class s6e extends IC.classBuilder().ep({...kK,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,r,o,i){return[DM(o,t.getEndpointParameterInstructions()),A7(o)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(o6e).build(){}const a6e="3.996.0",l6e={version:a6e},c6e=e=>new TextEncoder().encode(e);function kz(e){return typeof e=="string"?e.length===0:e.byteLength===0}var ZK={name:"SHA-1"},Rz={name:"HMAC",hash:ZK},u6e=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);const d6e={};function Jl(){return typeof window<"u"?window:typeof self<"u"?self:d6e}var f6e=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(r,o){Jl().crypto.subtle.importKey("raw",Mz(t),Rz,!1,["sign"]).then(r,o)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!kz(t)){var r=Mz(t),o=new Uint8Array(this.toHash.byteLength+r.byteLength);o.set(this.toHash,0),o.set(r,this.toHash.byteLength),this.toHash=o}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(r){return Jl().crypto.subtle.sign(Rz,r,t.toHash).then(function(o){return new Uint8Array(o)})}):kz(this.toHash)?Promise.resolve(u6e):Promise.resolve().then(function(){return Jl().crypto.subtle.digest(ZK,t.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function Mz(e){return typeof e=="string"?c6e(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var p6e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function XK(e){if(h6e(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return m6e(t)}return!1}function h6e(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function m6e(e){return e&&p6e.every(function(t){return typeof e[t]=="function"})}var g6e=(function(){function e(t){if(XK(Jl()))this.hash=new f6e(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,r){this.hash.update(ic(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})(),QK={name:"SHA-256"},Az={name:"HMAC",hash:QK},b6e=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),y6e=(function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!dm(t)){var r=ic(t),o=new Uint8Array(this.toHash.byteLength+r.byteLength);o.set(this.toHash,0),o.set(r,this.toHash.byteLength),this.toHash=o}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(r){return Jl().crypto.subtle.sign(Az,r,t.toHash).then(function(o){return new Uint8Array(o)})}):dm(this.toHash)?Promise.resolve(b6e):Promise.resolve().then(function(){return Jl().crypto.subtle.digest(QK,t.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(r,o){Jl().crypto.subtle.importKey("raw",ic(t.secret),Az,!1,["sign"]).then(r,o)}),this.key.catch(function(){}))},e})(),ys=64,v6e=32,x6e=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]),S6e=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],C6e=Math.pow(2,53)-1,ex=(function(){function e(){this.state=Int32Array.from(S6e),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,o=t.byteLength;if(this.bytesHashed+=o,this.bytesHashed*8>C6e)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=t[r++],o--,this.bufferLength===ys&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(r.setUint8(this.bufferLength++,128),o%ys>=ys-8){for(var i=this.bufferLength;i<ys;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<ys-8;i++)r.setUint8(i,0);r.setUint32(ys-8,Math.floor(t/4294967296),!0),r.setUint32(ys-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(v6e),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,o=t.state,i=o[0],s=o[1],a=o[2],l=o[3],c=o[4],u=o[5],d=o[6],f=o[7],p=0;p<ys;p++){if(p<16)this.temp[p]=(r[p*4]&255)<<24|(r[p*4+1]&255)<<16|(r[p*4+2]&255)<<8|r[p*4+3]&255;else{var h=this.temp[p-2],b=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=this.temp[p-15];var g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[p]=(b+this.temp[p-7]|0)+(g+this.temp[p-16]|0)}var y=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&d)|0)+(f+(x6e[p]+this.temp[p]|0)|0)|0,v=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&a^s&a)|0;f=d,d=u,u=c,c=l+y|0,l=a,a=s,s=i,i=y+v|0}o[0]+=i,o[1]+=s,o[2]+=a,o[3]+=l,o[4]+=c,o[5]+=u,o[6]+=d,o[7]+=f},e})(),w6e=(function(){function e(t){this.secret=t,this.hash=new ex,this.reset()}return e.prototype.update=function(t){if(!(dm(t)||this.error))try{this.hash.update(ic(t))}catch(r){this.error=r}},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 EM(this,void 0,void 0,function(){return IM(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new ex,this.secret){this.outer=new ex;var t=T6e(this.secret),r=new Uint8Array(ys);r.set(t);for(var o=0;o<ys;o++)t[o]^=54,r[o]^=92;this.hash.update(t),this.outer.update(r);for(var o=0;o<t.byteLength;o++)t[o]=0}},e})();function T6e(e){var t=ic(e);if(t.byteLength>ys){var r=new ex;r.update(t),t=r.digest()}var o=new Uint8Array(ys);return o.set(t),o}var JK=(function(){function e(t){XK(Jl())?this.hash=new y6e(t):this.hash=new w6e(t)}return e.prototype.update=function(t,r){this.hash.update(ic(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const eY=({serviceId:e,clientVersion:t})=>async r=>{const o=typeof window<"u"?window.navigator:void 0,i=o?.userAgent??"",s=o?.userAgentData?.platform??Dz.os(i)??"other",a=void 0,l=o?.userAgentData?.brands??[],c=l[l.length-1],u=c?.brand??Dz.browser(i)??"unknown",d=c?.version??"unknown",f=[["aws-sdk-js",t],["ua","2.1"],[`os/${s}`,a],["lang/js"],["md/browser",`${u}_${d}`]];e&&f.push([`api/${e}`,t]);const p=await r?.userAgentAppId?.();return p&&f.push([`app/${p}`]),f},Dz={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"}};class Nh{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let o=7,i=Math.abs(Math.round(t));o>-1&&i>0;o--,i/=256)r[o]=i;return t<0&&_z(r),new Nh(r)}valueOf(){const t=this.bytes.slice(0),r=t[0]&128;return r&&_z(t),parseInt(Ci(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function _z(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class O6e{toUtf8;fromUtf8;constructor(t,r){this.toUtf8=t,this.fromUtf8=r}format(t){const r=[];for(const s of Object.keys(t)){const a=this.fromUtf8(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}const o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0));let i=0;for(const s of r)o.set(s,i),i+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);const a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":const l=this.fromUtf8(t.value),c=new DataView(new ArrayBuffer(3+l.byteLength));c.setUint8(0,7),c.setUint16(1,l.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(l,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(Nh.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!_6e.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(WW(t.value.replace(/\-/g,"")),1),f}}parse(t){const r={};let o=0;for(;o<t.byteLength;){const i=t.getUint8(o++),s=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+o,i));switch(o+=i,t.getUint8(o++)){case 0:r[s]={type:Fz,value:!0};break;case 1:r[s]={type:Fz,value:!1};break;case 2:r[s]={type:P6e,value:t.getInt8(o++)};break;case 3:r[s]={type:E6e,value:t.getInt16(o,!1)},o+=2;break;case 4:r[s]={type:I6e,value:t.getInt32(o,!1)},o+=4;break;case 5:r[s]={type:k6e,value:new Nh(new Uint8Array(t.buffer,t.byteOffset+o,8))},o+=8;break;case 6:const a=t.getUint16(o,!1);o+=2,r[s]={type:R6e,value:new Uint8Array(t.buffer,t.byteOffset+o,a)},o+=a;break;case 7:const l=t.getUint16(o,!1);o+=2,r[s]={type:M6e,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+o,l))},o+=l;break;case 8:r[s]={type:A6e,value:new Date(new Nh(new Uint8Array(t.buffer,t.byteOffset+o,8)).valueOf())},o+=8;break;case 9:const c=new Uint8Array(t.buffer,t.byteOffset+o,16);o+=16,r[s]={type:D6e,value:`${Ci(c.subarray(0,4))}-${Ci(c.subarray(4,6))}-${Ci(c.subarray(6,8))}-${Ci(c.subarray(8,10))}-${Ci(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}}var Nz;(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"})(Nz||(Nz={}));const Fz="boolean",P6e="byte",E6e="short",I6e="integer",k6e="long",R6e="binary",M6e="string",A6e="timestamp",D6e="uuid",_6e=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,tY=4,Fl=tY*2,zc=4,N6e=Fl+zc*2;function F6e({byteLength:e,byteOffset:t,buffer:r}){if(e<N6e)throw new Error("Provided message too short to accommodate event stream message overhead");const o=new DataView(r,t,e),i=o.getUint32(0,!1);if(e!==i)throw new Error("Reported message length does not match received message length");const s=o.getUint32(tY,!1),a=o.getUint32(Fl,!1),l=o.getUint32(e-zc,!1),c=new a0().update(new Uint8Array(r,t,Fl));if(a!==c.digest())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+Fl,e-(Fl+zc))),l!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${l}`);return{headers:new DataView(r,t+Fl+zc,s),body:new Uint8Array(r,t+Fl+zc+s,i-s-(Fl+zc+zc))}}class L6e{headerMarshaller;messageBuffer;isEndOfStream;constructor(t,r){this.headerMarshaller=new O6e(t,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){const t=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return r}}}getAvailableMessages(){const t=this.messageBuffer;this.messageBuffer=[];const r=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return r}}}encode({headers:t,body:r}){const o=this.headerMarshaller.format(t),i=o.byteLength+r.byteLength+16,s=new Uint8Array(i),a=new DataView(s.buffer,s.byteOffset,s.byteLength),l=new a0;return a.setUint32(0,i,!1),a.setUint32(4,o.byteLength,!1),a.setUint32(8,l.update(s.subarray(0,8)).digest(),!1),s.set(o,12),s.set(r,o.byteLength+12),a.setUint32(i-4,l.update(s.subarray(8,i-4)).digest(),!1),s}decode(t){const{headers:r,body:o}=F6e(t);return{headers:this.headerMarshaller.parse(r),body:o}}formatHeaders(t){return this.headerMarshaller.format(t)}}class $6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream)yield this.options.decoder.decode(t)}}class j6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}}class B6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream){const r=await this.options.deserializer(t);r!==void 0&&(yield r)}}}class V6e{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream)yield this.options.serializer(t)}}function H6e(e){let t=0,r=0,o=null,i=null;const s=l=>{if(typeof l!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+l);t=l,r=4,o=new Uint8Array(l),new DataView(o.buffer).setUint32(0,l,!1)},a=async function*(){const l=e[Symbol.asyncIterator]();for(;;){const{value:c,done:u}=await l.next();if(u){if(t)if(t===r)yield o;else throw new Error("Truncated event message received.");else return;return}const d=c.length;let f=0;for(;f<d;){if(!o){const h=d-f;i||(i=new Uint8Array(4));const b=Math.min(4-r,h);if(i.set(c.slice(f,f+b),r),r+=b,f+=b,r<4)break;s(new DataView(i.buffer).getUint32(0,!1)),i=null}const p=Math.min(t-r,d-f);o.set(c.slice(f,f+p),r),r+=p,f+=p,t&&t===r&&(yield o,o=null,t=0,r=0)}}};return{[Symbol.asyncIterator]:a}}function z6e(e,t){return async function(r){const{value:o}=r.headers[":message-type"];if(o==="error"){const i=new Error(r.headers[":error-message"].value||"UnknownError");throw i.name=r.headers[":error-code"].value,i}else if(o==="exception"){const i=r.headers[":exception-type"].value,s={[i]:r},a=await e(s);if(a.$unknown){const l=new Error(t(r.body));throw l.name=i,l}throw a[i]}else if(o==="event"){const i={[r.headers[":event-type"].value]:r},s=await e(i);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}let q6e=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new L6e(t,r),this.utfEncoder=t}deserialize(t,r){const o=H6e(t);return new B6e({messageStream:new $6e({inputStream:o,decoder:this.eventStreamCodec}),deserializer:z6e(r,this.utfEncoder)})}serialize(t,r){return new j6e({messageStream:new V6e({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};const U6e=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)return;yield o}}finally{t.releaseLock()}}}),G6e=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){const{done:o,value:i}=await t.next();if(o)return r.close();r.enqueue(i)}})};class W6e{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:r}){this.universalMarshaller=new q6e({utf8Decoder:r,utf8Encoder:t})}deserialize(t,r){const o=K6e(t)?U6e(t):t;return this.universalMarshaller.deserialize(o,r)}serialize(t,r){const o=this.universalMarshaller.serialize(t,r);return typeof ReadableStream=="function"?G6e(o):o}}const K6e=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,Y6e=e=>new W6e(e);async function Z6e(e,t,r=1024*1024){const o=e.size;let i=0;for(;i<o;){const s=e.slice(i,Math.min(o,i+r));t(new Uint8Array(await s.arrayBuffer())),i+=s.size}}const X6e=async function(t,r){const o=new t;return await Z6e(r,i=>{o.update(i)}),o.digest()},nY=e=>()=>Promise.reject(e),_l=64,Q6e=16,J6e=[1732584193,4023233417,2562383102,271733878];class eGe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(tGe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const r=nGe(t);let o=0,{byteLength:i}=r;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,r[o++]),i--,this.bufferLength===_l&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:r,bufferLength:o,bytesHashed:i}=this,s=i*8;if(r.setUint8(this.bufferLength++,128),o%_l>=_l-8){for(let a=this.bufferLength;a<_l;a++)r.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(let a=this.bufferLength;a<_l-8;a++)r.setUint8(a,0);r.setUint32(_l-8,s>>>0,!0),r.setUint32(_l-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(Q6e));for(let r=0;r<4;r++)t.setUint32(r*4,this.state[r],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:r}=this;let o=r[0],i=r[1],s=r[2],a=r[3];o=Do(o,i,s,a,t.getUint32(0,!0),7,3614090360),a=Do(a,o,i,s,t.getUint32(4,!0),12,3905402710),s=Do(s,a,o,i,t.getUint32(8,!0),17,606105819),i=Do(i,s,a,o,t.getUint32(12,!0),22,3250441966),o=Do(o,i,s,a,t.getUint32(16,!0),7,4118548399),a=Do(a,o,i,s,t.getUint32(20,!0),12,1200080426),s=Do(s,a,o,i,t.getUint32(24,!0),17,2821735955),i=Do(i,s,a,o,t.getUint32(28,!0),22,4249261313),o=Do(o,i,s,a,t.getUint32(32,!0),7,1770035416),a=Do(a,o,i,s,t.getUint32(36,!0),12,2336552879),s=Do(s,a,o,i,t.getUint32(40,!0),17,4294925233),i=Do(i,s,a,o,t.getUint32(44,!0),22,2304563134),o=Do(o,i,s,a,t.getUint32(48,!0),7,1804603682),a=Do(a,o,i,s,t.getUint32(52,!0),12,4254626195),s=Do(s,a,o,i,t.getUint32(56,!0),17,2792965006),i=Do(i,s,a,o,t.getUint32(60,!0),22,1236535329),o=_o(o,i,s,a,t.getUint32(4,!0),5,4129170786),a=_o(a,o,i,s,t.getUint32(24,!0),9,3225465664),s=_o(s,a,o,i,t.getUint32(44,!0),14,643717713),i=_o(i,s,a,o,t.getUint32(0,!0),20,3921069994),o=_o(o,i,s,a,t.getUint32(20,!0),5,3593408605),a=_o(a,o,i,s,t.getUint32(40,!0),9,38016083),s=_o(s,a,o,i,t.getUint32(60,!0),14,3634488961),i=_o(i,s,a,o,t.getUint32(16,!0),20,3889429448),o=_o(o,i,s,a,t.getUint32(36,!0),5,568446438),a=_o(a,o,i,s,t.getUint32(56,!0),9,3275163606),s=_o(s,a,o,i,t.getUint32(12,!0),14,4107603335),i=_o(i,s,a,o,t.getUint32(32,!0),20,1163531501),o=_o(o,i,s,a,t.getUint32(52,!0),5,2850285829),a=_o(a,o,i,s,t.getUint32(8,!0),9,4243563512),s=_o(s,a,o,i,t.getUint32(28,!0),14,1735328473),i=_o(i,s,a,o,t.getUint32(48,!0),20,2368359562),o=No(o,i,s,a,t.getUint32(20,!0),4,4294588738),a=No(a,o,i,s,t.getUint32(32,!0),11,2272392833),s=No(s,a,o,i,t.getUint32(44,!0),16,1839030562),i=No(i,s,a,o,t.getUint32(56,!0),23,4259657740),o=No(o,i,s,a,t.getUint32(4,!0),4,2763975236),a=No(a,o,i,s,t.getUint32(16,!0),11,1272893353),s=No(s,a,o,i,t.getUint32(28,!0),16,4139469664),i=No(i,s,a,o,t.getUint32(40,!0),23,3200236656),o=No(o,i,s,a,t.getUint32(52,!0),4,681279174),a=No(a,o,i,s,t.getUint32(0,!0),11,3936430074),s=No(s,a,o,i,t.getUint32(12,!0),16,3572445317),i=No(i,s,a,o,t.getUint32(24,!0),23,76029189),o=No(o,i,s,a,t.getUint32(36,!0),4,3654602809),a=No(a,o,i,s,t.getUint32(48,!0),11,3873151461),s=No(s,a,o,i,t.getUint32(60,!0),16,530742520),i=No(i,s,a,o,t.getUint32(8,!0),23,3299628645),o=Fo(o,i,s,a,t.getUint32(0,!0),6,4096336452),a=Fo(a,o,i,s,t.getUint32(28,!0),10,1126891415),s=Fo(s,a,o,i,t.getUint32(56,!0),15,2878612391),i=Fo(i,s,a,o,t.getUint32(20,!0),21,4237533241),o=Fo(o,i,s,a,t.getUint32(48,!0),6,1700485571),a=Fo(a,o,i,s,t.getUint32(12,!0),10,2399980690),s=Fo(s,a,o,i,t.getUint32(40,!0),15,4293915773),i=Fo(i,s,a,o,t.getUint32(4,!0),21,2240044497),o=Fo(o,i,s,a,t.getUint32(32,!0),6,1873313359),a=Fo(a,o,i,s,t.getUint32(60,!0),10,4264355552),s=Fo(s,a,o,i,t.getUint32(24,!0),15,2734768916),i=Fo(i,s,a,o,t.getUint32(52,!0),21,1309151649),o=Fo(o,i,s,a,t.getUint32(16,!0),6,4149444226),a=Fo(a,o,i,s,t.getUint32(44,!0),10,3174756917),s=Fo(s,a,o,i,t.getUint32(8,!0),15,718787259),i=Fo(i,s,a,o,t.getUint32(36,!0),21,3951481745),r[0]=o+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=s+r[2]&4294967295,r[3]=a+r[3]&4294967295}reset(){this.state=Uint32Array.from(J6e),this.buffer=new DataView(new ArrayBuffer(_l)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function BC(e,t,r,o,i,s){return t=(t+e&4294967295)+(o+s&4294967295)&4294967295,(t<<i|t>>>32-i)+r&4294967295}function Do(e,t,r,o,i,s,a){return BC(t&r|~t&o,e,t,i,s,a)}function _o(e,t,r,o,i,s,a){return BC(t&o|r&~o,e,t,i,s,a)}function No(e,t,r,o,i,s,a){return BC(t^r^o,e,t,i,s,a)}function Fo(e,t,r,o,i,s,a){return BC(r^(t|~o),e,t,i,s,a)}function tGe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function nGe(e){return typeof e=="string"?cl(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const rGe=["in-region","cross-region","mobile","standard","legacy"],rY=({defaultsMode:e}={})=>sqe(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(oGe()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${rGe.join(", ")}, got ${t}`)}}),oGe=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:r,downlink:o}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(r)>100||Number(o)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},iGe=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Tu,base64Encoder:e?.base64Encoder??oc,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??PK,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??nze,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??W4e,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new vM},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new LHe}],logger:e?.logger??new kC,protocol:e?.protocol??Wqe,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Z9e,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??KW,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??cK,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??hm,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??cl,utf8Encoder:e?.utf8Encoder??zu}),sGe=e=>{const t=rY(e),r=()=>t().then(g7),o=iGe(e);return{...o,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??h7,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??eY({serviceId:o.serviceId,clientVersion:l6e.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??Y6e,maxAttempts:e?.maxAttempts??mm,md5:e?.md5??eGe,region:e?.region??nY("Region is missing"),requestHandler:wC.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||rK),sha1:e?.sha1??g6e,sha256:e?.sha256??JK,streamCollector:e?.streamCollector??xM,streamHasher:e?.streamHasher??X6e,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(K7)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Y7))}},oY=e=>({setRegion(t){e.region=t},region(){return e.region}}),iY=e=>({region:e.region()}),aGe=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(i){const s=t.findIndex(a=>a.schemeId===i.schemeId);s===-1?t.push(i):t.splice(s,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){o=i},credentials(){return o}}},lGe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cGe=(e,t)=>{const r=Object.assign(oY(e),b7(e),jW(e),aGe(e));return t.forEach(o=>o.configure(r)),Object.assign(e,iY(r),y7(r),BW(r),lGe(r))};class uGe extends m7{config;constructor(...[t]){const r=sGe(t||{});super(r),this.initConfig=r;const o=Y4e(r),i=D7(o),s=x3e(i),a=aK(s),l=X7(a),c=l,u=nK(c),d=U5e(u),f=K4e(d),p=Z3e(f,{session:[()=>this,s6e]}),h=cGe(p,t?.extensions||[]);this.config=h,this.middlewareStack.use(ZW(this.config)),this.middlewareStack.use(W7(this.config)),this.middlewareStack.use(lK(this.config)),this.middlewareStack.use(Q7(this.config)),this.middlewareStack.use(k7(this.config)),this.middlewareStack.use(R7(this.config)),this.middlewareStack.use(M7(this.config)),this.middlewareStack.use(HW(this.config,{httpAuthSchemeParametersProvider:q4e,identityProviderConfigProvider:async b=>new r7({"aws.auth#sigv4":b.credentials,"aws.auth#sigv4a":b.credentials})})),this.middlewareStack.use(qW(this.config)),this.middlewareStack.use(a5e(this.config)),this.middlewareStack.use(AHe(this.config)),this.middlewareStack.use(L3e(this.config)),this.middlewareStack.use(q3e(this.config)),this.middlewareStack.use(Y3e(this.config))}destroy(){super.destroy()}}function dGe(e){return t=>async r=>{const o={...r.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const s of i){const a=o[s.target];if(a){let l;typeof a=="string"?hGe(a,e)?l=e.base64Decoder(a):(l=e.utf8Decoder(a),o[s.target]=e.base64Encoder(l)):(l=ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(a),o[s.target]=e.base64Encoder(l));const c=new e.md5;c.update(l),o[s.hash]=e.base64Encoder(await c.digest())}}return t({...r,input:o})}}const fGe={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},pGe=e=>({applyToStack:t=>{t.add(dGe(e),fGe)}});function hGe(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}}class mGe extends IC.classBuilder().ep({...kK,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,r,o,i){return[DM(o,t.getEndpointParameterInstructions()),v3e(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),A3e(),A7(o),pGe(o)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(i6e).build(){}function sY(e){return Promise.all(Object.keys(e).reduce((t,r)=>{const o=e[r];return typeof o=="string"?t.push([r,o]):t.push(o().then(i=>[r,i])),t},[])).then(t=>t.reduce((r,[o,i])=>(r[o]=i,r),{}))}function gGe(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:r,CognitoIdentityClient:o}=await Promise.resolve().then(()=>require("./loadCognitoIdentity-C7OrZZXK.js")),i=u=>e.clientConfig?.[u]??e.parentClientConfig?.[u]??t?.callerClientConfig?.[u],{Credentials:{AccessKeyId:s=bGe(e.logger),Expiration:a,SecretKey:l=vGe(e.logger),SessionToken:c}=yGe(e.logger)}=await(e.client??new o(Object.assign({},e.clientConfig??{},{region:i("region"),profile:i("profile"),userAgentAppId:i("userAgentAppId")}))).send(new r({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await sY(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:s,secretAccessKey:l,sessionToken:c,expiration:a}}}function bGe(e){throw new fp("Response from Amazon Cognito contained no access key ID",{logger:e})}function yGe(e){throw new fp("Response from Amazon Cognito contained no credentials",{logger:e})}function vGe(e){throw new fp("Response from Amazon Cognito contained no secret key",{logger:e})}const T1="IdentityIds";class xGe{dbName;constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",r=>{const o=r.get(t);return new Promise(i=>{o.onerror=()=>i(null),o.onsuccess=()=>i(o.result?o.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",r=>{const o=r.delete(t);return new Promise((i,s)=>{o.onerror=()=>s(o.error),o.onsuccess=()=>i()})})}setItem(t,r){return this.withObjectStore("readwrite",o=>{const i=o.put({id:t,value:r});return new Promise((s,a)=>{i.onerror=()=>a(i.error),i.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((r,o)=>{t.onsuccess=()=>{r(t.result)},t.onerror=()=>{o(t.error)},t.onblocked=()=>{o(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const i=t.result;i.onerror=()=>{o(new Error("Failed to create object store"))},i.createObjectStore(T1,{keyPath:"id"})}})}withObjectStore(t,r){return this.getDb().then(o=>{const i=o.transaction(T1,t);return i.oncomplete=()=>o.close(),new Promise((s,a)=>{i.onerror=()=>a(i.error),s(r(i.objectStore(T1)))}).catch(s=>{throw o.close(),s})})}}class SGe{store;constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,r){this.store[t]=r}}const CGe=new SGe;function wGe(){return typeof self=="object"&&self.indexedDB?new xGe:typeof window=="object"&&window.localStorage?window.localStorage:CGe}function TGe({accountId:e,cache:t=wGe(),client:r,clientConfig:o,customRoleArn:i,identityPoolId:s,logins:a,userIdentifier:l=!a||Object.keys(a).length===0?"ANONYMOUS":void 0,logger:c,parentClientConfig:u}){c?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const d=l?`aws:cognito-identity-credentials:${s}:${l}`:void 0;let f=async p=>{const{GetIdCommand:h,CognitoIdentityClient:b}=await Promise.resolve().then(()=>require("./loadCognitoIdentity-C7OrZZXK.js")),g=C=>o?.[C]??u?.[C]??p?.callerClientConfig?.[C],y=r??new b(Object.assign({},o??{},{region:g("region"),profile:g("profile"),userAgentAppId:g("userAgentAppId")}));let v=d&&await t.getItem(d);if(!v){const{IdentityId:C=OGe(c)}=await y.send(new h({AccountId:e,IdentityPoolId:s,Logins:a?await sY(a):void 0}));v=C,d&&Promise.resolve(t.setItem(d,v)).catch(()=>{})}return f=gGe({client:y,customRoleArn:i,logins:a,identityId:v}),f(p)};return p=>f(p).catch(async h=>{throw d&&Promise.resolve(t.removeItem(d)).catch(()=>{}),h})}function OGe(e){throw new fp("Response from Amazon Cognito contained no identity ID",{logger:e})}const PGe=e=>TGe({...e});function EGe(e){const t=e.split(","),r=t[0].match(/:(.*?);/)[1],o=atob(t[1]);let i=o.length;const s=new Uint8Array(i);for(;i--;)s[i]=o.charCodeAt(i);return new Blob([s],{type:r})}async function IGe(e,t,r,o,i,s=""){if(!i||!r||!o)return console.warn("Missing AWS Config (Pool ID, Bucket, or Region). Returning data URL as fallback."),e;try{const a=new uGe({region:o,credentials:PGe({clientConfig:{region:o},identityPoolId:i}),requestChecksumCalculation:"WHEN_REQUIRED",forcePathStyle:!0}),l=EGe(e);let c=s.trim();c&&!c.endsWith("/")&&(c+="/");const u=c?`${c}${t}`:`signatures/${t}`,d=new mGe({Bucket:r,Key:u,Body:l,ContentType:l.type});return await a.send(d),`https://${r}/${u}`}catch(a){throw console.error("Error uploading to S3:",a),a}}function kGe({attributes:e={},rules:t={},onChange:r}){const{id:o="",MuiAttributes:i={},label:s="Signature",bucket:a="",region:l="",identityPoolId:c="",path:u="",disabled:d=!1,CanvasProps:f={}}=e,p=Ue.useRef(null),h=Ue.useRef(null),[b,g]=Ue.useState(!1),[y,v]=Ue.useState(e.value||null),[C,O]=Ue.useState(400),[T,P]=Ue.useState(!1),k=t?.validation?.some(A=>A.rule==="mandatory")||!1,M=f?.style?.height||150;Ue.useEffect(()=>{const A=h.current;if(!A)return;const F=new ResizeObserver(I=>{const N=I[0]?.contentRect?.width;N&&N>0&&O(Math.floor(N))});return F.observe(A),()=>F.disconnect()},[]),Ue.useEffect(()=>{e.value&&p.current&&p.current.fromDataURL(e.value,{width:C,height:M})},[e.value,C,M]);const _=()=>{p.current&&p.current.clear(),v(null),P(!1),r&&r({id:o,value:""})},D=async()=>{if(!p.current||p.current.isEmpty())return;g(!0);const A=p.current.getTrimmedCanvas().toDataURL("image/png"),F=`${o}-${Date.now()}.png`;try{const I=await IGe(A,F,a,l,c,u);v(I),P(!0),r&&r({id:o,value:I})}catch(I){console.error("Signature upload failed",I)}finally{g(!1)}};return w.jsxs(ht.Box,{sx:{width:"100%",...i.sx},children:[w.jsxs(ht.Typography,{variant:"subtitle2",gutterBottom:!0,sx:{display:"flex"},children:[s,k&&w.jsx(ht.Box,{component:"span",sx:{color:"error.main",ml:.5},children:"*"})]}),w.jsx(ht.Box,{ref:h,sx:{border:"1px solid",borderColor:"divider",borderRadius:1,overflow:"hidden",bgcolor:"background.paper"},children:w.jsx(CC,{ref:p,penColor:"black",canvasProps:{className:"sigCanvas",width:C,height:M,style:{display:"block",pointerEvents:d?"none":"auto",...f?.style,width:"100%",height:M}},backgroundColor:"transparent"})}),w.jsxs(ht.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",mt:1},children:[w.jsx(ht.Button,{variant:"outlined",color:"secondary",onClick:_,size:"small",disabled:d||b,children:"Clear"}),w.jsx(ht.Button,{variant:"contained",color:"primary",onClick:D,size:"small",disabled:d||b||y!==null,startIcon:b?w.jsx(ht.CircularProgress,{size:16,color:"inherit"}):null,children:y?"Saved":"Save"}),T&&y&&w.jsx(ht.Typography,{variant:"caption",color:"success.main",children:"Signature Saved!"})]})]})}function RGe({attributes:e={},patch:t,onChange:r}){const{MuiAttributes:o={},label:i="Group",subFields:s=[]}=e,a=Ue.useMemo(()=>SC(),[]);return w.jsxs(ht.Paper,{elevation:1,sx:{p:2,mb:2,...o.sx},...o,children:[w.jsx(ht.Typography,{variant:"subtitle1",gutterBottom:!0,sx:{fontWeight:600},children:i}),w.jsx(ht.Box,{children:w.jsx(pp,{guid:a,data:s,patch:t,onChange:r})})]})}function MGe({attributes:e={},patch:t,onChange:r}){const{MuiAttributes:o={},label:i="Accordion",subFields:s=[]}=e,a=Ue.useMemo(()=>SC(),[]);return w.jsxs(ht.Accordion,{...o,children:[w.jsx(ht.AccordionSummary,{expandIcon:w.jsx(ht.Icon,{children:"expand_more"}),children:w.jsx(ht.Typography,{children:i})}),w.jsx(ht.AccordionDetails,{children:w.jsx(pp,{guid:a,data:s,patch:t,onChange:r})})]})}function AGe(e){const{children:t,value:r,index:o,...i}=e;return w.jsx("div",{role:"tabpanel",hidden:r!==o,id:`simple-tabpanel-${o}`,"aria-labelledby":`simple-tab-${o}`,...i,children:r===o&&w.jsx(ht.Box,{sx:{p:3},children:t})})}function DGe({attributes:e={},patch:t,onChange:r}){const{MuiAttributes:o={},tabs:i=[]}=e,[s,a]=Ue.useState(0),l=Ue.useMemo(()=>i.map(()=>SC()),[i.length]),c=(u,d)=>{a(d)};return w.jsxs(ht.Box,{sx:{width:"100%"},children:[w.jsx(ht.Box,{sx:{borderBottom:1,borderColor:"divider"},children:w.jsx(ht.Tabs,{value:s,onChange:c,...o,children:i.map((u,d)=>w.jsx(ht.Tab,{label:u.label},d))})}),i.map((u,d)=>w.jsx(AGe,{value:s,index:d,children:w.jsx(pp,{guid:l[d],data:u.subFields||[],patch:t,onChange:r})},d))]})}function _Ge({attributes:e={},rules:t={},onChange:r}){const{MuiAttributes:o={},id:i="",options:s=[],label:a="Combo Box"}=e,[l,c]=Ue.useState(e.value||null),[u,d]=Ue.useState(!1),[f,p]=Ue.useState("");Ue.useEffect(()=>{e.value&&c(e.value)},[]),oa(()=>{c(e.value)},[e.value]);const h=v=>{let C=!0,O="";if(t?.validation){for(const T of t.validation)if(T.rule==="mandatory"&&!v){C=!1,O=T.message||"Required";break}}return{isValid:C,message:O}},b=(v,C)=>{c(C);const O=h(C);d(!O.isValid),p(O.message),r&&r({id:i,value:C})},g=()=>{const v=h(l);d(!v.isValid),p(v.message)},y=t?.validation?.some(v=>v.rule==="mandatory")||!1;return w.jsx(hS,{disablePortal:!0,id:i,options:s,value:l,onChange:b,fullWidth:!0,renderInput:v=>w.jsx(dl,{...v,label:a,required:y,error:u,helperText:f,onBlur:g}),...o})}function NGe(e){return Je("MuiImageList",e)}Ze("MuiImageList",["root","masonry","quilted","standard","woven"]);const oA=S.createContext({});process.env.NODE_ENV!=="production"&&(oA.displayName="ImageListContext");const FGe=e=>{const{classes:t,variant:r}=e;return Ie({root:["root",r]},NGe,t)},LGe=ie("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),aY=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiImageList"}),{children:i,className:s,cols:a=2,component:l="ul",rowHeight:c="auto",gap:u=4,style:d,variant:f="standard",...p}=o,h=S.useMemo(()=>({rowHeight:c,gap:u,variant:f}),[c,u,f]),b=f==="masonry"?{columnCount:a,columnGap:u,...d}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:u,...d},g={...o,component:l,gap:u,rowHeight:c,variant:f},y=FGe(g);return w.jsx(LGe,{as:l,className:Te(y.root,y[f],s),ref:r,style:b,ownerState:g,...p,children:w.jsx(oA.Provider,{value:h,children:i})})});process.env.NODE_ENV!=="production"&&(aY.propTypes={children:n.node.isRequired,classes:n.object,className:n.string,cols:el,component:n.elementType,gap:n.number,rowHeight:n.oneOfType([n.oneOf(["auto"]),n.number]),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["masonry","quilted","standard","woven"]),n.string])});function $Ge(e){return Je("MuiImageListItem",e)}const O1=Ze("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),jGe=e=>{const{classes:t,variant:r}=e;return Ie({root:["root",r],img:["img"]},$Ge,t)},BGe=ie("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${O1.img}`]:t.img},t.root,t[r.variant]]}})({display:"block",position:"relative",[`& .${O1.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${O1.img}`]:{height:"auto",flexGrow:1}}}]}),lY=S.forwardRef(function(t,r){const o=Dt({props:t,name:"MuiImageListItem"}),{children:i,className:s,cols:a=1,component:l="li",rows:c=1,style:u,...d}=o,{rowHeight:f="auto",gap:p,variant:h}=S.useContext(oA);let b="auto";h==="woven"?b=void 0:f!=="auto"&&(b=f*c+p*(c-1));const g={...o,cols:a,component:l,gap:p,rowHeight:f,rows:c,variant:h},y=jGe(g);return w.jsx(BGe,{as:l,className:Te(y.root,y[h],s),ref:r,style:{height:b,gridColumnEnd:h!=="masonry"?`span ${a}`:void 0,gridRowEnd:h!=="masonry"?`span ${c}`:void 0,marginBottom:h==="masonry"?p:void 0,breakInside:h==="masonry"?"avoid":void 0,...u},ownerState:g,...d,children:S.Children.map(i,v=>S.isValidElement(v)?(process.env.NODE_ENV!=="production"&&Tm.isFragment(v)&&console.error(["MUI: The ImageListItem component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
465
465
  `)),v.type==="img"||nf(v,["Image"])?S.cloneElement(v,{className:Te(y.img,v.props.className)}):v):null)})});process.env.NODE_ENV!=="production"&&(lY.propTypes={children:n.node,classes:n.object,className:n.string,cols:el,component:n.elementType,rows:el,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function VGe({attributes:e={}}){const{MuiAttributes:t={},items:r=[],width:o=500,height:i=450,cols:s=3,rowHeight:a=164}=e;return w.jsx(aY,{sx:{width:o,height:i},cols:s,rowHeight:a,...t,children:r.map(l=>w.jsx(lY,{children:w.jsx("img",{srcSet:`${l.img}?w=${a}&h=${a}&fit=crop&auto=format&dpr=2 2x`,src:`${l.img}?w=${a}&h=${a}&fit=crop&auto=format`,alt:l.title,loading:"lazy"})},l.img))})}function HGe({attributes:e={},rules:t={}}){const{label:r="",value:o="",MuiAttributes:i={},url:s="",target:a="_blank",displayText:l=""}=e,c=t?.validation?.some(f=>f.rule==="mandatory")||!1,u=s||o||"#",d=l||r||u;return w.jsxs(ht.Box,{sx:{width:"100%"},...i.container,children:[r&&l&&w.jsxs(ht.Typography,{variant:"subtitle2",gutterBottom:!0,sx:{display:"flex"},...i.displayText,children:[r,c&&w.jsx(ht.Box,{component:"span",sx:{color:"error.main",ml:.5},children:"*"})]}),w.jsx(ht.Link,{href:u,target:a,rel:a==="_blank"?"noopener noreferrer":void 0,...i.link,children:d})]})}function zGe({attributes:e={},rules:t={},onChange:r}){const{id:o="",MuiAttributes:i={},InputProps:s={},format:a="",buttonText:l="Update Location",buttonIcon:c="location_on",buttonDisplay:u="both",MuiButtonAttributes:d={},disabled:f=!1}=e,[p,h]=Ue.useState({value:e.value!==void 0?e.value:"",helperText:i.helperText||"",error:!1});Ue.useEffect(()=>{e.value!==void 0&&e.value!==p.value&&h(I=>({...I,value:e.value}))},[e.value]);const b=I=>a?yE(I).format(a):I,g=I=>{const{validation:N}=t;if(N)for(let j=0;j<N.length;j+=1){const H=N[j];if(!Uh[H.rule](I,H.value))return{isValid:!1,message:H.message}}return{isValid:!0,message:""}},y=I=>{const{value:N}=I.target,j=g(N);h({value:N,helperText:j.message,error:!j.isValid})},v=I=>{const{value:N}=I.target,j=b(N),H=g(j);h({value:j,helperText:H.message,error:!H.isValid}),typeof r=="function"&&r({id:o,value:j})},C=()=>{r&&r({id:o,value:p.value,option:"location_update_request"})},O=()=>{const I=u,N=w.jsx(ht.Icon,{children:c});switch(I){case"icon":return N;case"text":return w.jsx(w.Fragment,{children:l});default:return w.jsxs(w.Fragment,{children:[N,w.jsx(uf,{component:"span",sx:{ml:.5},children:l})]})}},T=t?.validation?.some(I=>I.rule==="mandatory")||!1,P=!!i?.slotProps,k={...i};let M,_;if(P){const I=i.slotProps&&i.slotProps.input||{};_={...i.slotProps||{},input:{...I}},delete k.slotProps}else M={...i.inputProps||{}},delete k.inputProps;const D=i.variant||"outlined",A=i.size||"medium",F=A==="small"?D==="outlined"?40:48:56;return w.jsxs(uf,{sx:{display:"flex",gap:1,alignItems:"flex-start",width:"100%"},children:[w.jsx(uf,{sx:{flex:1,minWidth:0},children:w.jsx(dl,{fullWidth:!0,...k,required:T,inputProps:P?void 0:M,slotProps:P?_:void 0,InputProps:PI(s),onChange:y,onBlur:v,value:p.value,error:p.error,helperText:p.helperText,disabled:f})}),w.jsx(xs,{variant:"outlined",color:"primary",size:A==="small"?"small":"medium",onClick:C,disabled:f,...d,sx:{whiteSpace:"nowrap",minWidth:"auto",height:F,flexShrink:0,...d?.sx},children:O()})]})}const iA={Typography:Pie,TextField:lye,Table:Qke,DateTime:ORe,DateTimePicker:PRe,TimePicker:ERe,Select:ARe,CheckBox:DRe,Switch:NRe,Radio:tMe,Stepper:sMe,Bar:IBe,Line:cVe,Pie:MVe,MixChart:AVe,Divider:DVe,Chip:_Ve,List:NVe,NumberField:aHe,MultiTextbox:lHe,LineItemList:uHe,FormRepeater:gHe,Signature:kGe,Group:RGe,Accordion:MGe,Tabs:DGe,AutoComplete:_Ge,ImgList:VGe,Hyperlink:HGe,LocationField:zGe};function cY(e){const{map:t}=e;if(!t)return w.jsx("div",{});const r=iA[t];return r?w.jsx(r,{...e}):w.jsx("div",{})}const qGe={MUI:{map:uE}},Si={},uY=e=>e?Si[e]:Si,UGe=e=>{const t=Object.keys(Si);e?delete Si[e]:t.forEach(r=>delete Si[r])},GGe=e=>e?.filter(t=>t?.rules?.validation?.some(r=>r.rule==="mandatory")),WGe=(e,t)=>GGe(e)?.reduce((o,i)=>(i?.rules?.validation?.forEach(s=>{const a=i?.id||i?.props?.id;if(!a)return;const l=Si[t]?.[a]?.toString();l&&Uh[s.rule](l,s.value)||o.push({...s,id:i.id})}),o),[]),KGe={};function pp({data:e=[],patch:t=KGe,guid:r,formRef:o,onSubmit:i,onChange:s,onStepChange:a,MuiGridAttributes:l={spacing:2},activeStep:c=0,onFieldClick:u,onFieldDoubleClick:d,onFieldContextMenu:f}){const[p,h]=Ue.useState(t),[b,g]=Ue.useState(0),y=qGe.MUI,v=Ue.useMemo(()=>Ege(P5(e,p,r,Si)),[p,e,r]);Ue.useEffect(()=>{P1(Si[r])&&(Si[r]=t)},[]),oa(()=>{h({...t})},[t]);const C=Ue.useCallback(({id:k,value:M,option:_})=>{Si[r]||(Si[r]={}),Si[r][k]=M,g(D=>D+1),typeof s=="function"&&s({id:k,value:M,option:_})},[r,s]),O=Ue.useCallback((k,M,_)=>{if(typeof k=="function"){const D=WGe(M,_);k(Si,D,M,_)}},[]),T=(k,M,_)=>{typeof a=="function"&&a(k,M,_)},P=(k,M)=>{const{type:_="",style:D={},className:A="",visible:F=!1,rules:I={},subforms:N=[]}=k,j=k.props||{},H=k.layout||{},$=k?.id||j?.id,B=y.map[_]||{},{options:q={}}=B,U=$?Si[r]?.[$]:void 0,V=N.find(L=>Array.isArray(U)?U.includes(L.conditionValue):L.conditionValue===U);return w.jsxs(ht.Grid,{style:{...D,cursor:u?"pointer":"default",position:"relative",transition:"background-color 0.2s, box-shadow 0.2s",borderRadius:4},...H,className:`${A} ${F?"show":"hidden"}`,onClick:L=>{},onDoubleClick:L=>{d&&(L.stopPropagation(),d(k))},onContextMenu:L=>{f&&(L.preventDefault(),L.stopPropagation(),f(L,k))},children:[w.jsx(cY,{map:B.map,option:q.type||"",control:k,attributes:j,rules:I,onChange:C,onStepUpdate:T,currentStep:c,patch:t},`dynamic-comp-${$||M}`),V&&V.data&&w.jsx(ht.Box,{sx:{mt:2,pl:2,borderLeft:"2px solid",borderColor:"divider",width:"100%"},children:w.jsx(pp,{guid:`${r}-subform-${$}`,data:V.data,patch:t,onChange:C,MuiGridAttributes:{spacing:1}})})]},$||`layout-comp-${M}`)};return w.jsxs(w.Fragment,{children:[w.jsx(ht.Grid,{container:!0,...l,children:v.wrows.map((k,M)=>w.jsx(Ue.Fragment,{children:k.map(P)},`row-${M}`))},`layout-grid-${r}`),v.worows.length>0&&w.jsx(ht.Grid,{container:!0,...l,children:v.worows.map((k,M)=>P(k,M))},`layout-grid-worows-${r}`),w.jsx("button",{"aria-label":"button",type:"button",ref:o||null,onClick:()=>O(i,e,r),style:{display:"none"}})]})}exports.AwsSdkSigV4Signer=vM;exports.ClearFormData=UGe;exports.Client=m7;exports.Command=IC;exports.Controls=iA;exports.DEFAULT_MAX_ATTEMPTS=mm;exports.DEFAULT_RETRY_MODE=rK;exports.DEFAULT_USE_DUALSTACK_ENDPOINT=K7;exports.DEFAULT_USE_FIPS_ENDPOINT=Y7;exports.DefaultIdentityProviderConfig=r7;exports.DynamicComponent=cY;exports.EndpointCache=_7;exports.FetchHttpHandler=wC;exports.FormData=uY;exports.FormGenerator=pp;exports.HttpProtocol=t7;exports.HttpRequest=Br;exports.LazyJsonString=Qa;exports.NoOpLogger=kC;exports.NormalizedSchema=or;exports.NumericValue=fg;exports.ProtocolLib=x7;exports.SerdeContextConfig=RC;exports.ServiceException=Qc;exports.Sha256=JK;exports.TypeRegistry=ti;exports.UnionSerde=S7;exports.calculateBodyLength=h7;exports.collectBody=fh;exports.createDefaultUserAgentProvider=eY;exports.customEndpointFunctions=fm;exports.dateToUtcString=i0;exports.deref=Xv;exports.determineTimestampFormat=EC;exports.fromBase64=Tu;exports.fromUtf8=cl;exports.getAwsRegionExtensionConfiguration=oY;exports.getContentLengthPlugin=Q7;exports.getDefaultExtensionConfiguration=b7;exports.getEndpointPlugin=DM;exports.getHostHeaderPlugin=k7;exports.getHttpAuthSchemeEndpointRuleSetPlugin=HW;exports.getHttpHandlerExtensionConfiguration=jW;exports.getHttpSigningPlugin=qW;exports.getLoggerPlugin=R7;exports.getRecursionDetectionPlugin=M7;exports.getRetryPlugin=lK;exports.getSchemaSerdePlugin=ZW;exports.getSmithyContext=gl;exports.getUserAgentPlugin=W7;exports.invalidProvider=nY;exports.isIpAddress=MM;exports.isValidHostLabel=pg;exports.loadConfigsForDefaultMode=g7;exports.mui=uE;exports.normalizeProvider=Rs;exports.parseEpochTimestamp=Aze;exports.parseRfc3339DateTimeWithOffset=Eze;exports.parseRfc7231DateTime=Mze;exports.parseUrl=hm;exports.resolveAwsRegionExtensionConfiguration=iY;exports.resolveAwsSdkSigV4Config=p7;exports.resolveDefaultRuntimeConfig=y7;exports.resolveDefaultsModeConfig=rY;exports.resolveEndpoint=q7;exports.resolveEndpointConfig=nK;exports.resolveHostHeaderConfig=S3e;exports.resolveHttpHandlerRuntimeConfig=BW;exports.resolveRegionConfig=X7;exports.resolveRetryConfig=aK;exports.resolveUserAgentConfig=D7;exports.streamCollector=xM;exports.toBase64=oc;exports.toUtf8=zu;exports.v4=OC;