@opengov/form-renderer 0.0.10 → 0.0.12
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.
- package/dist/lib.js +1 -1
- package/dist/lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -5316,7 +5316,7 @@ const Vu = yn([/* @__PURE__ */ B.jsx("path", {
|
|
|
5316
5316
|
function Fd({ children: e, internal: r, required: t, helpText: n }) {
|
|
5317
5317
|
return /* @__PURE__ */ B.jsxs(Vt, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
5318
5318
|
r && /* @__PURE__ */ B.jsx($n, { placement: "top", title: "This field is hidden from the public.", sx: { cursor: "default" }, children: /* @__PURE__ */ B.jsx(Vu, { fontSize: "small", htmlColor: wt.foundations.colors.gray600 }) }),
|
|
5319
|
-
/* @__PURE__ */ B.jsxs(Da, { variant: "h4", children: [
|
|
5319
|
+
/* @__PURE__ */ B.jsxs(Da, { variant: "h4", color: "black", children: [
|
|
5320
5320
|
e,
|
|
5321
5321
|
t && "*"
|
|
5322
5322
|
] }),
|
package/dist/lib.umd.cjs
CHANGED
|
@@ -100,6 +100,6 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
100
100
|
|
|
101
101
|
export default theme;`}function rn(e={},...r){const{breakpoints:t,mixins:n={},spacing:a,palette:o={},transitions:i={},typography:s={},shape:u,...f}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":st(20));const d=tn(o),h=xa(e);let m=Ye(h,{mixins:kc(h.breakpoints,n),palette:d,shadows:Ac.slice(),typography:_c(d,s),transitions:Fc(i),zIndex:{...jc}});if(m=Ye(m,f),m=r.reduce((w,v)=>Ye(w,v),m),process.env.NODE_ENV!=="production"){const w=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(p,y)=>{let T;for(T in p){const C=p[T];if(w.includes(T)&&Object.keys(C).length>0){if(process.env.NODE_ENV!=="production"){const E=er("",T);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:C}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
102
102
|
`))}p[T]={}}}};Object.keys(m.components).forEach(p=>{const y=m.components[p].styleOverrides;y&&p.startsWith("Mui")&&v(y,p)})}return m.unstable_sxConfig={...fr,...f==null?void 0:f.unstable_sxConfig},m.unstable_sx=function(v){return yt({sx:v,theme:this})},m.toRuntimeSource=Na,m}function Wc(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const Lc=[...Array(25)].map((e,r)=>{if(r===0)return"none";const t=Wc(r);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function Fa(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ja(e){return e==="dark"?Lc:[]}function Bc(e){const{palette:r={mode:"light"},opacity:t,overlays:n,...a}=e,o=tn(r);return{palette:o,opacity:{...Fa(o.mode),...t},overlays:n||ja(o.mode),...a}}function Hc(e){var r;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((r=e[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const qc=e=>[...[...Array(25)].map((r,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Vc=e=>(r,t)=>{const n=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const i={};return qc(e.cssVarPrefix).forEach(s=>{i[s]=t[s],delete t[s]}),o==="media"?{[n]:t,"@media (prefers-color-scheme: dark)":{[n]:i}}:o?{[o.replace("%s",r)]:i,[`${n}, ${o.replace("%s",r)}`]:t}:{[n]:{...t,...i}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(r))}`}else if(r){if(o==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[n]:t}};if(o)return o.replace("%s",String(r))}return n};function zc(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function b(e,r,t){!e[r]&&t&&(e[r]=t)}function Bt(e){return!e||!e.startsWith("hsl")?e:Ca(e)}function nt(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Yt(Bt(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
103
|
-
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Uc(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xe=e=>{try{return e()}catch{}},Gc=(e="mui")=>hc(e);function nn(e,r,t,n){if(!r)return;r=r===!0?{}:r;const a=n==="dark"?"dark":"light";if(!t){e[n]=Bc({...r,palette:{mode:a,...r==null?void 0:r.palette}});return}const{palette:o,...i}=rn({...t,palette:{mode:a,...r==null?void 0:r.palette}});return e[n]={...r,palette:o,opacity:{...Fa(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||ja(a)},i}function Qc(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=Hc,colorSchemeSelector:s=t.light&&t.dark?"media":void 0,rootSelector:u=":root",...f}=e,d=Object.keys(t)[0],h=n||(t.light&&d!=="light"?"light":d),m=Gc(o),{[h]:w,light:v,dark:p,...y}=t,T={...y};let C=w;if((h==="dark"&&!("dark"in t)||h==="light"&&!("light"in t))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:st(21,h));const E=nn(T,C,f,h);v&&!T.light&&nn(T,v,void 0,"light"),p&&!T.dark&&nn(T,p,void 0,"dark");let O={defaultColorScheme:h,...E,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:u,getCssVar:m,colorSchemes:T,font:{...Oc(E.typography),...E.font},spacing:Uc(f.spacing)};Object.keys(O.colorSchemes).forEach(j=>{const c=O.colorSchemes[j].palette,P=Y=>{const W=Y.split("-"),z=W[1],ae=W[2];return m(Y,c[z][ae])};if(c.mode==="light"&&(b(c.common,"background","#fff"),b(c.common,"onBackground","#000")),c.mode==="dark"&&(b(c.common,"background","#000"),b(c.common,"onBackground","#fff")),zc(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){b(c.Alert,"errorColor",he(c.error.light,.6)),b(c.Alert,"infoColor",he(c.info.light,.6)),b(c.Alert,"successColor",he(c.success.light,.6)),b(c.Alert,"warningColor",he(c.warning.light,.6)),b(c.Alert,"errorFilledBg",P("palette-error-main")),b(c.Alert,"infoFilledBg",P("palette-info-main")),b(c.Alert,"successFilledBg",P("palette-success-main")),b(c.Alert,"warningFilledBg",P("palette-warning-main")),b(c.Alert,"errorFilledColor",Xe(()=>c.getContrastText(c.error.main))),b(c.Alert,"infoFilledColor",Xe(()=>c.getContrastText(c.info.main))),b(c.Alert,"successFilledColor",Xe(()=>c.getContrastText(c.success.main))),b(c.Alert,"warningFilledColor",Xe(()=>c.getContrastText(c.warning.main))),b(c.Alert,"errorStandardBg",me(c.error.light,.9)),b(c.Alert,"infoStandardBg",me(c.info.light,.9)),b(c.Alert,"successStandardBg",me(c.success.light,.9)),b(c.Alert,"warningStandardBg",me(c.warning.light,.9)),b(c.Alert,"errorIconColor",P("palette-error-main")),b(c.Alert,"infoIconColor",P("palette-info-main")),b(c.Alert,"successIconColor",P("palette-success-main")),b(c.Alert,"warningIconColor",P("palette-warning-main")),b(c.AppBar,"defaultBg",P("palette-grey-100")),b(c.Avatar,"defaultBg",P("palette-grey-400")),b(c.Button,"inheritContainedBg",P("palette-grey-300")),b(c.Button,"inheritContainedHoverBg",P("palette-grey-A100")),b(c.Chip,"defaultBorder",P("palette-grey-400")),b(c.Chip,"defaultAvatarColor",P("palette-grey-700")),b(c.Chip,"defaultIconColor",P("palette-grey-700")),b(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),b(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),b(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),b(c.LinearProgress,"primaryBg",me(c.primary.main,.62)),b(c.LinearProgress,"secondaryBg",me(c.secondary.main,.62)),b(c.LinearProgress,"errorBg",me(c.error.main,.62)),b(c.LinearProgress,"infoBg",me(c.info.main,.62)),b(c.LinearProgress,"successBg",me(c.success.main,.62)),b(c.LinearProgress,"warningBg",me(c.warning.main,.62)),b(c.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),b(c.Slider,"primaryTrack",me(c.primary.main,.62)),b(c.Slider,"secondaryTrack",me(c.secondary.main,.62)),b(c.Slider,"errorTrack",me(c.error.main,.62)),b(c.Slider,"infoTrack",me(c.info.main,.62)),b(c.Slider,"successTrack",me(c.success.main,.62)),b(c.Slider,"warningTrack",me(c.warning.main,.62));const Y=Er(c.background.default,.8);b(c.SnackbarContent,"bg",Y),b(c.SnackbarContent,"color",Xe(()=>c.getContrastText(Y))),b(c.SpeedDialAction,"fabHoverBg",Er(c.background.paper,.15)),b(c.StepConnector,"border",P("palette-grey-400")),b(c.StepContent,"border",P("palette-grey-400")),b(c.Switch,"defaultColor",P("palette-common-white")),b(c.Switch,"defaultDisabledColor",P("palette-grey-100")),b(c.Switch,"primaryDisabledColor",me(c.primary.main,.62)),b(c.Switch,"secondaryDisabledColor",me(c.secondary.main,.62)),b(c.Switch,"errorDisabledColor",me(c.error.main,.62)),b(c.Switch,"infoDisabledColor",me(c.info.main,.62)),b(c.Switch,"successDisabledColor",me(c.success.main,.62)),b(c.Switch,"warningDisabledColor",me(c.warning.main,.62)),b(c.TableCell,"border",me(Tr(c.divider,1),.88)),b(c.Tooltip,"bg",Tr(c.grey[700],.92))}if(c.mode==="dark"){b(c.Alert,"errorColor",me(c.error.light,.6)),b(c.Alert,"infoColor",me(c.info.light,.6)),b(c.Alert,"successColor",me(c.success.light,.6)),b(c.Alert,"warningColor",me(c.warning.light,.6)),b(c.Alert,"errorFilledBg",P("palette-error-dark")),b(c.Alert,"infoFilledBg",P("palette-info-dark")),b(c.Alert,"successFilledBg",P("palette-success-dark")),b(c.Alert,"warningFilledBg",P("palette-warning-dark")),b(c.Alert,"errorFilledColor",Xe(()=>c.getContrastText(c.error.dark))),b(c.Alert,"infoFilledColor",Xe(()=>c.getContrastText(c.info.dark))),b(c.Alert,"successFilledColor",Xe(()=>c.getContrastText(c.success.dark))),b(c.Alert,"warningFilledColor",Xe(()=>c.getContrastText(c.warning.dark))),b(c.Alert,"errorStandardBg",he(c.error.light,.9)),b(c.Alert,"infoStandardBg",he(c.info.light,.9)),b(c.Alert,"successStandardBg",he(c.success.light,.9)),b(c.Alert,"warningStandardBg",he(c.warning.light,.9)),b(c.Alert,"errorIconColor",P("palette-error-main")),b(c.Alert,"infoIconColor",P("palette-info-main")),b(c.Alert,"successIconColor",P("palette-success-main")),b(c.Alert,"warningIconColor",P("palette-warning-main")),b(c.AppBar,"defaultBg",P("palette-grey-900")),b(c.AppBar,"darkBg",P("palette-background-paper")),b(c.AppBar,"darkColor",P("palette-text-primary")),b(c.Avatar,"defaultBg",P("palette-grey-600")),b(c.Button,"inheritContainedBg",P("palette-grey-800")),b(c.Button,"inheritContainedHoverBg",P("palette-grey-700")),b(c.Chip,"defaultBorder",P("palette-grey-700")),b(c.Chip,"defaultAvatarColor",P("palette-grey-300")),b(c.Chip,"defaultIconColor",P("palette-grey-300")),b(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),b(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),b(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),b(c.LinearProgress,"primaryBg",he(c.primary.main,.5)),b(c.LinearProgress,"secondaryBg",he(c.secondary.main,.5)),b(c.LinearProgress,"errorBg",he(c.error.main,.5)),b(c.LinearProgress,"infoBg",he(c.info.main,.5)),b(c.LinearProgress,"successBg",he(c.success.main,.5)),b(c.LinearProgress,"warningBg",he(c.warning.main,.5)),b(c.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),b(c.Slider,"primaryTrack",he(c.primary.main,.5)),b(c.Slider,"secondaryTrack",he(c.secondary.main,.5)),b(c.Slider,"errorTrack",he(c.error.main,.5)),b(c.Slider,"infoTrack",he(c.info.main,.5)),b(c.Slider,"successTrack",he(c.success.main,.5)),b(c.Slider,"warningTrack",he(c.warning.main,.5));const Y=Er(c.background.default,.98);b(c.SnackbarContent,"bg",Y),b(c.SnackbarContent,"color",Xe(()=>c.getContrastText(Y))),b(c.SpeedDialAction,"fabHoverBg",Er(c.background.paper,.15)),b(c.StepConnector,"border",P("palette-grey-600")),b(c.StepContent,"border",P("palette-grey-600")),b(c.Switch,"defaultColor",P("palette-grey-300")),b(c.Switch,"defaultDisabledColor",P("palette-grey-600")),b(c.Switch,"primaryDisabledColor",he(c.primary.main,.55)),b(c.Switch,"secondaryDisabledColor",he(c.secondary.main,.55)),b(c.Switch,"errorDisabledColor",he(c.error.main,.55)),b(c.Switch,"infoDisabledColor",he(c.info.main,.55)),b(c.Switch,"successDisabledColor",he(c.success.main,.55)),b(c.Switch,"warningDisabledColor",he(c.warning.main,.55)),b(c.TableCell,"border",he(Tr(c.divider,1),.68)),b(c.Tooltip,"bg",Tr(c.grey[700],.92))}nt(c.background,"default"),nt(c.background,"paper"),nt(c.common,"background"),nt(c.common,"onBackground"),nt(c,"divider"),Object.keys(c).forEach(Y=>{const W=c[Y];W&&typeof W=="object"&&(W.main&&b(c[Y],"mainChannel",Yt(Bt(W.main))),W.light&&b(c[Y],"lightChannel",Yt(Bt(W.light))),W.dark&&b(c[Y],"darkChannel",Yt(Bt(W.dark))),W.contrastText&&b(c[Y],"contrastTextChannel",Yt(Bt(W.contrastText))),Y==="text"&&(nt(c[Y],"primary"),nt(c[Y],"secondary")),Y==="action"&&(W.active&&nt(c[Y],"active"),W.selected&&nt(c[Y],"selected")))})}),O=r.reduce((j,c)=>Ye(j,c),O);const g={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:Vc(O)},{vars:F,generateThemeVars:$,generateStyleSheets:R}=yc(O,g);return O.vars=F,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([j,c])=>{O[j]=c}),O.generateThemeVars=$,O.generateStyleSheets=R,O.generateSpacing=function(){return wa(f.spacing,Yr(this))},O.getColorSchemeSelector=gc(s),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...fr,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(c){return yt({sx:c,theme:this})},O.toRuntimeSource=Na,O}function Ya(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:tn({...t===!0?{}:t.palette,mode:r})})}function Xc(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:a=t?void 0:{light:!0},defaultColorScheme:o=t==null?void 0:t.mode,...i}=e,s=o||"light",u=a==null?void 0:a[s],f={...a,...t?{[s]:{...typeof u!="boolean"&&u,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return rn(e,...r);let d=t;"palette"in e||f[s]&&(f[s]!==!0?d=f[s].palette:s==="dark"&&(d={mode:"dark"}));const h=rn({...e,palette:d},...r);return h.defaultColorScheme=s,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},Ya(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},Ya(h,"light",f.light)),h}return!t&&!("light"in f)&&s==="light"&&(f.light=!0),Qc({...i,colorSchemes:f,defaultColorScheme:s,...typeof n!="boolean"&&n},...r)}const Kc=Xc(),Jc="$$material";function Zc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wa=ec({themeId:Jc,defaultTheme:Kc,rootShouldForwardProp:e=>Zc(e)&&e!=="classes"}),eu=dc;process.env.NODE_ENV!=="production"&&(A.node,A.object.isRequired);function La(e){return fc(e)}function tu(e){return er("MuiSvgIcon",e)}zn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ru=e=>{const{color:r,fontSize:t,classes:n}=e,a={root:["root",r!=="inherit"&&`color${tt(r)}`,`fontSize${tt(t)}`]};return qn(a,tu,n)},nu=Wa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${tt(t.color)}`],r[`fontSize${tt(t.fontSize)}`]]}})(eu(({theme:e})=>{var r,t,n,a,o,i,s,u,f,d,h,m,w,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(r=e.transitions)==null?void 0:r.create)==null?void 0:a.call(r,"fill",{duration:(n=(t=(e.vars??e).transitions)==null?void 0:t.duration)==null?void 0:n.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,T;return{props:{color:p},style:{color:(T=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(v=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ht=de.forwardRef(function(r,t){const n=La({props:r,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24",...w}=n,v=de.isValidElement(a)&&a.type==="svg",p={...n,color:i,component:s,fontSize:u,instanceFontSize:r.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:v},y={};d||(y.viewBox=m);const T=ru(p);return L.jsxs(nu,{as:s,className:Gn(T.root,o),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:t,...y,...w,...v&&a.props,ownerState:p,children:[v?a.props.children:a,h?L.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Ht.propTypes={children:A.node,classes:A.object,className:A.string,color:A.oneOfType([A.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),A.string]),component:A.elementType,fontSize:A.oneOfType([A.oneOf(["inherit","large","medium","small"]),A.string]),htmlColor:A.string,inheritViewBox:A.bool,shapeRendering:A.string,sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),titleAccess:A.string,viewBox:A.string}),Ht&&(Ht.muiName="SvgIcon");function an(e,r){function t(n,a){return L.jsx(Ht,{"data-testid":`${r}Icon`,ref:a,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=Ht.muiName,de.memo(de.forwardRef(t))}const au=an(L.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5.97 4.06L14.09 6l1.41 1.41L16.91 6l1.06 1.06-1.41 1.41 1.41 1.41-1.06 1.06-1.41-1.4-1.41 1.41-1.06-1.06 1.41-1.41zm-6.78.66h5v1.5h-5zM11.5 16h-2v2H8v-2H6v-1.5h2v-2h1.5v2h2zm6.5 1.25h-5v-1.5h5zm0-2.5h-5v-1.5h5z"}),"Calculate");function ou({name:e,label:r,sx:t={}}){const{control:n}=it.useFormContext(),o={...Jt(),...t};return L.jsx(it.Controller,{name:e,control:n,render:({field:i})=>L.jsxs(fe.FormControl,{sx:{marginY:.5,...o},children:[L.jsx(fe.FormLabel,{sx:{fontWeight:500,color:mt.capitalDesignTokens.foundations.colors.gray1000},children:r}),L.jsxs(fe.Typography,{sx:{display:"flex",flexDirection:"row",gap:.5,marginTop:.5},children:[L.jsx(au,{sx:{color:mt.capitalDesignTokens.foundations.colors.gray500}}),L.jsx("span",{children:i.value||0})]})]})})}function iu({name:e,label:r,options:t,sx:n={},disabled:a,rules:o={},...i}){const{field:s,fieldState:{error:u}}=it.useController({name:e,rules:o}),d={...Jt(),...n};return L.jsx(fe.Box,{sx:d,children:L.jsxs(fe.FormControl,{fullWidth:!0,error:!!u,disabled:a,children:[L.jsx(fe.FormLabel,{id:`${e}-label`,sx:{fontWeight:500,color:mt.capitalDesignTokens.foundations.colors.gray1000,marginBottom:1},children:r}),L.jsx(fe.Select,{labelId:`${e}-label`,id:`${e}-select`,...s,...i,displayEmpty:!0,variant:"outlined",fullWidth:!0,children:t.map(h=>L.jsx(fe.MenuItem,{value:h.key,children:h.displayValue},h.key))}),u&&L.jsx(fe.FormHelperText,{children:u.message})]})})}const su=an([L.jsx("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),L.jsx("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings"),cu=an(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");function uu({children:e,internal:r,required:t,helpText:n}){return L.jsxs(fe.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[r&&L.jsx(fe.Tooltip,{placement:"top",title:"This field is hidden from the public.",sx:{cursor:"default"},children:L.jsx(su,{fontSize:"small",htmlColor:mt.capitalDesignTokens.foundations.colors.gray600})}),L.jsxs(fe.Typography,{variant:"h4",children:[e,t&&"*"]}),n&&n!==""&&L.jsx(fe.Tooltip,{placement:"top",title:n,sx:{cursor:"default"},children:L.jsx(cu,{fontSize:"small",htmlColor:mt.capitalDesignTokens.foundations.colors.gray600})})]})}function Ba(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ha(e,r=!1){return e&&(Ba(e.value)&&e.value!==""||r&&Ba(e.defaultValue)&&e.defaultValue!=="")}function lu(e){return e.startAdornment}const qa=de.createContext(void 0);process.env.NODE_ENV!=="production"&&(qa.displayName="FormControlContext");function fu(e){return er("MuiFormControl",e)}zn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const du=e=>{const{classes:r,margin:t,fullWidth:n}=e,a={root:["root",t!=="none"&&`margin${tt(t)}`,n&&"fullWidth"]};return qn(a,fu,r)},hu=Wa("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},r)=>({...r.root,...r[`margin${tt(e.margin)}`],...e.fullWidth&&r.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Va=de.forwardRef(function(r,t){const n=La({props:r,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:f=!1,focused:d,fullWidth:h=!1,hiddenLabel:m=!1,margin:w="none",required:v=!1,size:p="medium",variant:y="outlined",...T}=n,C={...n,color:i,component:s,disabled:u,error:f,fullWidth:h,hiddenLabel:m,margin:w,required:v,size:p,variant:y},E=du(C),[O,g]=de.useState(()=>{let z=!1;return a&&de.Children.forEach(a,ae=>{if(!Fr(ae,["Input","Select"]))return;const ve=Fr(ae,["Select"])?ae.props.input:ae;ve&&lu(ve.props)&&(z=!0)}),z}),[F,$]=de.useState(()=>{let z=!1;return a&&de.Children.forEach(a,ae=>{Fr(ae,["Input","Select"])&&(Ha(ae.props,!0)||Ha(ae.props.inputProps,!0))&&(z=!0)}),z}),[R,j]=de.useState(!1);u&&R&&j(!1);const c=d!==void 0&&!u?d:R;let P;const Y=de.useRef(!1);process.env.NODE_ENV!=="production"&&(P=()=>(Y.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
103
|
+
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Uc(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xe=e=>{try{return e()}catch{}},Gc=(e="mui")=>hc(e);function nn(e,r,t,n){if(!r)return;r=r===!0?{}:r;const a=n==="dark"?"dark":"light";if(!t){e[n]=Bc({...r,palette:{mode:a,...r==null?void 0:r.palette}});return}const{palette:o,...i}=rn({...t,palette:{mode:a,...r==null?void 0:r.palette}});return e[n]={...r,palette:o,opacity:{...Fa(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||ja(a)},i}function Qc(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=Hc,colorSchemeSelector:s=t.light&&t.dark?"media":void 0,rootSelector:u=":root",...f}=e,d=Object.keys(t)[0],h=n||(t.light&&d!=="light"?"light":d),m=Gc(o),{[h]:w,light:v,dark:p,...y}=t,T={...y};let C=w;if((h==="dark"&&!("dark"in t)||h==="light"&&!("light"in t))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:st(21,h));const E=nn(T,C,f,h);v&&!T.light&&nn(T,v,void 0,"light"),p&&!T.dark&&nn(T,p,void 0,"dark");let O={defaultColorScheme:h,...E,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:u,getCssVar:m,colorSchemes:T,font:{...Oc(E.typography),...E.font},spacing:Uc(f.spacing)};Object.keys(O.colorSchemes).forEach(j=>{const c=O.colorSchemes[j].palette,P=Y=>{const W=Y.split("-"),z=W[1],ae=W[2];return m(Y,c[z][ae])};if(c.mode==="light"&&(b(c.common,"background","#fff"),b(c.common,"onBackground","#000")),c.mode==="dark"&&(b(c.common,"background","#000"),b(c.common,"onBackground","#fff")),zc(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){b(c.Alert,"errorColor",he(c.error.light,.6)),b(c.Alert,"infoColor",he(c.info.light,.6)),b(c.Alert,"successColor",he(c.success.light,.6)),b(c.Alert,"warningColor",he(c.warning.light,.6)),b(c.Alert,"errorFilledBg",P("palette-error-main")),b(c.Alert,"infoFilledBg",P("palette-info-main")),b(c.Alert,"successFilledBg",P("palette-success-main")),b(c.Alert,"warningFilledBg",P("palette-warning-main")),b(c.Alert,"errorFilledColor",Xe(()=>c.getContrastText(c.error.main))),b(c.Alert,"infoFilledColor",Xe(()=>c.getContrastText(c.info.main))),b(c.Alert,"successFilledColor",Xe(()=>c.getContrastText(c.success.main))),b(c.Alert,"warningFilledColor",Xe(()=>c.getContrastText(c.warning.main))),b(c.Alert,"errorStandardBg",me(c.error.light,.9)),b(c.Alert,"infoStandardBg",me(c.info.light,.9)),b(c.Alert,"successStandardBg",me(c.success.light,.9)),b(c.Alert,"warningStandardBg",me(c.warning.light,.9)),b(c.Alert,"errorIconColor",P("palette-error-main")),b(c.Alert,"infoIconColor",P("palette-info-main")),b(c.Alert,"successIconColor",P("palette-success-main")),b(c.Alert,"warningIconColor",P("palette-warning-main")),b(c.AppBar,"defaultBg",P("palette-grey-100")),b(c.Avatar,"defaultBg",P("palette-grey-400")),b(c.Button,"inheritContainedBg",P("palette-grey-300")),b(c.Button,"inheritContainedHoverBg",P("palette-grey-A100")),b(c.Chip,"defaultBorder",P("palette-grey-400")),b(c.Chip,"defaultAvatarColor",P("palette-grey-700")),b(c.Chip,"defaultIconColor",P("palette-grey-700")),b(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),b(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),b(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),b(c.LinearProgress,"primaryBg",me(c.primary.main,.62)),b(c.LinearProgress,"secondaryBg",me(c.secondary.main,.62)),b(c.LinearProgress,"errorBg",me(c.error.main,.62)),b(c.LinearProgress,"infoBg",me(c.info.main,.62)),b(c.LinearProgress,"successBg",me(c.success.main,.62)),b(c.LinearProgress,"warningBg",me(c.warning.main,.62)),b(c.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),b(c.Slider,"primaryTrack",me(c.primary.main,.62)),b(c.Slider,"secondaryTrack",me(c.secondary.main,.62)),b(c.Slider,"errorTrack",me(c.error.main,.62)),b(c.Slider,"infoTrack",me(c.info.main,.62)),b(c.Slider,"successTrack",me(c.success.main,.62)),b(c.Slider,"warningTrack",me(c.warning.main,.62));const Y=Er(c.background.default,.8);b(c.SnackbarContent,"bg",Y),b(c.SnackbarContent,"color",Xe(()=>c.getContrastText(Y))),b(c.SpeedDialAction,"fabHoverBg",Er(c.background.paper,.15)),b(c.StepConnector,"border",P("palette-grey-400")),b(c.StepContent,"border",P("palette-grey-400")),b(c.Switch,"defaultColor",P("palette-common-white")),b(c.Switch,"defaultDisabledColor",P("palette-grey-100")),b(c.Switch,"primaryDisabledColor",me(c.primary.main,.62)),b(c.Switch,"secondaryDisabledColor",me(c.secondary.main,.62)),b(c.Switch,"errorDisabledColor",me(c.error.main,.62)),b(c.Switch,"infoDisabledColor",me(c.info.main,.62)),b(c.Switch,"successDisabledColor",me(c.success.main,.62)),b(c.Switch,"warningDisabledColor",me(c.warning.main,.62)),b(c.TableCell,"border",me(Tr(c.divider,1),.88)),b(c.Tooltip,"bg",Tr(c.grey[700],.92))}if(c.mode==="dark"){b(c.Alert,"errorColor",me(c.error.light,.6)),b(c.Alert,"infoColor",me(c.info.light,.6)),b(c.Alert,"successColor",me(c.success.light,.6)),b(c.Alert,"warningColor",me(c.warning.light,.6)),b(c.Alert,"errorFilledBg",P("palette-error-dark")),b(c.Alert,"infoFilledBg",P("palette-info-dark")),b(c.Alert,"successFilledBg",P("palette-success-dark")),b(c.Alert,"warningFilledBg",P("palette-warning-dark")),b(c.Alert,"errorFilledColor",Xe(()=>c.getContrastText(c.error.dark))),b(c.Alert,"infoFilledColor",Xe(()=>c.getContrastText(c.info.dark))),b(c.Alert,"successFilledColor",Xe(()=>c.getContrastText(c.success.dark))),b(c.Alert,"warningFilledColor",Xe(()=>c.getContrastText(c.warning.dark))),b(c.Alert,"errorStandardBg",he(c.error.light,.9)),b(c.Alert,"infoStandardBg",he(c.info.light,.9)),b(c.Alert,"successStandardBg",he(c.success.light,.9)),b(c.Alert,"warningStandardBg",he(c.warning.light,.9)),b(c.Alert,"errorIconColor",P("palette-error-main")),b(c.Alert,"infoIconColor",P("palette-info-main")),b(c.Alert,"successIconColor",P("palette-success-main")),b(c.Alert,"warningIconColor",P("palette-warning-main")),b(c.AppBar,"defaultBg",P("palette-grey-900")),b(c.AppBar,"darkBg",P("palette-background-paper")),b(c.AppBar,"darkColor",P("palette-text-primary")),b(c.Avatar,"defaultBg",P("palette-grey-600")),b(c.Button,"inheritContainedBg",P("palette-grey-800")),b(c.Button,"inheritContainedHoverBg",P("palette-grey-700")),b(c.Chip,"defaultBorder",P("palette-grey-700")),b(c.Chip,"defaultAvatarColor",P("palette-grey-300")),b(c.Chip,"defaultIconColor",P("palette-grey-300")),b(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),b(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),b(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),b(c.LinearProgress,"primaryBg",he(c.primary.main,.5)),b(c.LinearProgress,"secondaryBg",he(c.secondary.main,.5)),b(c.LinearProgress,"errorBg",he(c.error.main,.5)),b(c.LinearProgress,"infoBg",he(c.info.main,.5)),b(c.LinearProgress,"successBg",he(c.success.main,.5)),b(c.LinearProgress,"warningBg",he(c.warning.main,.5)),b(c.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),b(c.Slider,"primaryTrack",he(c.primary.main,.5)),b(c.Slider,"secondaryTrack",he(c.secondary.main,.5)),b(c.Slider,"errorTrack",he(c.error.main,.5)),b(c.Slider,"infoTrack",he(c.info.main,.5)),b(c.Slider,"successTrack",he(c.success.main,.5)),b(c.Slider,"warningTrack",he(c.warning.main,.5));const Y=Er(c.background.default,.98);b(c.SnackbarContent,"bg",Y),b(c.SnackbarContent,"color",Xe(()=>c.getContrastText(Y))),b(c.SpeedDialAction,"fabHoverBg",Er(c.background.paper,.15)),b(c.StepConnector,"border",P("palette-grey-600")),b(c.StepContent,"border",P("palette-grey-600")),b(c.Switch,"defaultColor",P("palette-grey-300")),b(c.Switch,"defaultDisabledColor",P("palette-grey-600")),b(c.Switch,"primaryDisabledColor",he(c.primary.main,.55)),b(c.Switch,"secondaryDisabledColor",he(c.secondary.main,.55)),b(c.Switch,"errorDisabledColor",he(c.error.main,.55)),b(c.Switch,"infoDisabledColor",he(c.info.main,.55)),b(c.Switch,"successDisabledColor",he(c.success.main,.55)),b(c.Switch,"warningDisabledColor",he(c.warning.main,.55)),b(c.TableCell,"border",he(Tr(c.divider,1),.68)),b(c.Tooltip,"bg",Tr(c.grey[700],.92))}nt(c.background,"default"),nt(c.background,"paper"),nt(c.common,"background"),nt(c.common,"onBackground"),nt(c,"divider"),Object.keys(c).forEach(Y=>{const W=c[Y];W&&typeof W=="object"&&(W.main&&b(c[Y],"mainChannel",Yt(Bt(W.main))),W.light&&b(c[Y],"lightChannel",Yt(Bt(W.light))),W.dark&&b(c[Y],"darkChannel",Yt(Bt(W.dark))),W.contrastText&&b(c[Y],"contrastTextChannel",Yt(Bt(W.contrastText))),Y==="text"&&(nt(c[Y],"primary"),nt(c[Y],"secondary")),Y==="action"&&(W.active&&nt(c[Y],"active"),W.selected&&nt(c[Y],"selected")))})}),O=r.reduce((j,c)=>Ye(j,c),O);const g={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:Vc(O)},{vars:F,generateThemeVars:$,generateStyleSheets:R}=yc(O,g);return O.vars=F,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([j,c])=>{O[j]=c}),O.generateThemeVars=$,O.generateStyleSheets=R,O.generateSpacing=function(){return wa(f.spacing,Yr(this))},O.getColorSchemeSelector=gc(s),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...fr,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(c){return yt({sx:c,theme:this})},O.toRuntimeSource=Na,O}function Ya(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:tn({...t===!0?{}:t.palette,mode:r})})}function Xc(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:a=t?void 0:{light:!0},defaultColorScheme:o=t==null?void 0:t.mode,...i}=e,s=o||"light",u=a==null?void 0:a[s],f={...a,...t?{[s]:{...typeof u!="boolean"&&u,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return rn(e,...r);let d=t;"palette"in e||f[s]&&(f[s]!==!0?d=f[s].palette:s==="dark"&&(d={mode:"dark"}));const h=rn({...e,palette:d},...r);return h.defaultColorScheme=s,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},Ya(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},Ya(h,"light",f.light)),h}return!t&&!("light"in f)&&s==="light"&&(f.light=!0),Qc({...i,colorSchemes:f,defaultColorScheme:s,...typeof n!="boolean"&&n},...r)}const Kc=Xc(),Jc="$$material";function Zc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wa=ec({themeId:Jc,defaultTheme:Kc,rootShouldForwardProp:e=>Zc(e)&&e!=="classes"}),eu=dc;process.env.NODE_ENV!=="production"&&(A.node,A.object.isRequired);function La(e){return fc(e)}function tu(e){return er("MuiSvgIcon",e)}zn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ru=e=>{const{color:r,fontSize:t,classes:n}=e,a={root:["root",r!=="inherit"&&`color${tt(r)}`,`fontSize${tt(t)}`]};return qn(a,tu,n)},nu=Wa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${tt(t.color)}`],r[`fontSize${tt(t.fontSize)}`]]}})(eu(({theme:e})=>{var r,t,n,a,o,i,s,u,f,d,h,m,w,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(r=e.transitions)==null?void 0:r.create)==null?void 0:a.call(r,"fill",{duration:(n=(t=(e.vars??e).transitions)==null?void 0:t.duration)==null?void 0:n.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,T;return{props:{color:p},style:{color:(T=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(v=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ht=de.forwardRef(function(r,t){const n=La({props:r,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24",...w}=n,v=de.isValidElement(a)&&a.type==="svg",p={...n,color:i,component:s,fontSize:u,instanceFontSize:r.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:v},y={};d||(y.viewBox=m);const T=ru(p);return L.jsxs(nu,{as:s,className:Gn(T.root,o),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:t,...y,...w,...v&&a.props,ownerState:p,children:[v?a.props.children:a,h?L.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Ht.propTypes={children:A.node,classes:A.object,className:A.string,color:A.oneOfType([A.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),A.string]),component:A.elementType,fontSize:A.oneOfType([A.oneOf(["inherit","large","medium","small"]),A.string]),htmlColor:A.string,inheritViewBox:A.bool,shapeRendering:A.string,sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),titleAccess:A.string,viewBox:A.string}),Ht&&(Ht.muiName="SvgIcon");function an(e,r){function t(n,a){return L.jsx(Ht,{"data-testid":`${r}Icon`,ref:a,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=Ht.muiName,de.memo(de.forwardRef(t))}const au=an(L.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5.97 4.06L14.09 6l1.41 1.41L16.91 6l1.06 1.06-1.41 1.41 1.41 1.41-1.06 1.06-1.41-1.4-1.41 1.41-1.06-1.06 1.41-1.41zm-6.78.66h5v1.5h-5zM11.5 16h-2v2H8v-2H6v-1.5h2v-2h1.5v2h2zm6.5 1.25h-5v-1.5h5zm0-2.5h-5v-1.5h5z"}),"Calculate");function ou({name:e,label:r,sx:t={}}){const{control:n}=it.useFormContext(),o={...Jt(),...t};return L.jsx(it.Controller,{name:e,control:n,render:({field:i})=>L.jsxs(fe.FormControl,{sx:{marginY:.5,...o},children:[L.jsx(fe.FormLabel,{sx:{fontWeight:500,color:mt.capitalDesignTokens.foundations.colors.gray1000},children:r}),L.jsxs(fe.Typography,{sx:{display:"flex",flexDirection:"row",gap:.5,marginTop:.5},children:[L.jsx(au,{sx:{color:mt.capitalDesignTokens.foundations.colors.gray500}}),L.jsx("span",{children:i.value||0})]})]})})}function iu({name:e,label:r,options:t,sx:n={},disabled:a,rules:o={},...i}){const{field:s,fieldState:{error:u}}=it.useController({name:e,rules:o}),d={...Jt(),...n};return L.jsx(fe.Box,{sx:d,children:L.jsxs(fe.FormControl,{fullWidth:!0,error:!!u,disabled:a,children:[L.jsx(fe.FormLabel,{id:`${e}-label`,sx:{fontWeight:500,color:mt.capitalDesignTokens.foundations.colors.gray1000,marginBottom:1},children:r}),L.jsx(fe.Select,{labelId:`${e}-label`,id:`${e}-select`,...s,...i,displayEmpty:!0,variant:"outlined",fullWidth:!0,children:t.map(h=>L.jsx(fe.MenuItem,{value:h.key,children:h.displayValue},h.key))}),u&&L.jsx(fe.FormHelperText,{children:u.message})]})})}const su=an([L.jsx("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),L.jsx("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings"),cu=an(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");function uu({children:e,internal:r,required:t,helpText:n}){return L.jsxs(fe.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[r&&L.jsx(fe.Tooltip,{placement:"top",title:"This field is hidden from the public.",sx:{cursor:"default"},children:L.jsx(su,{fontSize:"small",htmlColor:mt.capitalDesignTokens.foundations.colors.gray600})}),L.jsxs(fe.Typography,{variant:"h4",color:"black",children:[e,t&&"*"]}),n&&n!==""&&L.jsx(fe.Tooltip,{placement:"top",title:n,sx:{cursor:"default"},children:L.jsx(cu,{fontSize:"small",htmlColor:mt.capitalDesignTokens.foundations.colors.gray600})})]})}function Ba(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ha(e,r=!1){return e&&(Ba(e.value)&&e.value!==""||r&&Ba(e.defaultValue)&&e.defaultValue!=="")}function lu(e){return e.startAdornment}const qa=de.createContext(void 0);process.env.NODE_ENV!=="production"&&(qa.displayName="FormControlContext");function fu(e){return er("MuiFormControl",e)}zn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const du=e=>{const{classes:r,margin:t,fullWidth:n}=e,a={root:["root",t!=="none"&&`margin${tt(t)}`,n&&"fullWidth"]};return qn(a,fu,r)},hu=Wa("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},r)=>({...r.root,...r[`margin${tt(e.margin)}`],...e.fullWidth&&r.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Va=de.forwardRef(function(r,t){const n=La({props:r,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:f=!1,focused:d,fullWidth:h=!1,hiddenLabel:m=!1,margin:w="none",required:v=!1,size:p="medium",variant:y="outlined",...T}=n,C={...n,color:i,component:s,disabled:u,error:f,fullWidth:h,hiddenLabel:m,margin:w,required:v,size:p,variant:y},E=du(C),[O,g]=de.useState(()=>{let z=!1;return a&&de.Children.forEach(a,ae=>{if(!Fr(ae,["Input","Select"]))return;const ve=Fr(ae,["Select"])?ae.props.input:ae;ve&&lu(ve.props)&&(z=!0)}),z}),[F,$]=de.useState(()=>{let z=!1;return a&&de.Children.forEach(a,ae=>{Fr(ae,["Input","Select"])&&(Ha(ae.props,!0)||Ha(ae.props.inputProps,!0))&&(z=!0)}),z}),[R,j]=de.useState(!1);u&&R&&j(!1);const c=d!==void 0&&!u?d:R;let P;const Y=de.useRef(!1);process.env.NODE_ENV!=="production"&&(P=()=>(Y.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
104
104
|
`)),Y.current=!0,()=>{Y.current=!1}));const W=de.useMemo(()=>({adornedStart:O,setAdornedStart:g,color:i,disabled:u,error:f,filled:F,focused:c,fullWidth:h,hiddenLabel:m,size:p,onBlur:()=>{j(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{j(!0)},registerEffect:P,required:v,variant:y}),[O,i,u,f,F,c,h,m,P,v,p,y]);return L.jsx(qa.Provider,{value:W,children:L.jsx(hu,{as:s,ownerState:C,className:Gn(E.root,o),ref:t,...T,children:a})})});process.env.NODE_ENV!=="production"&&(Va.propTypes={children:A.node,classes:A.object,className:A.string,color:A.oneOfType([A.oneOf(["primary","secondary","error","info","success","warning"]),A.string]),component:A.elementType,disabled:A.bool,error:A.bool,focused:A.bool,fullWidth:A.bool,hiddenLabel:A.bool,margin:A.oneOf(["dense","none","normal"]),required:A.bool,size:A.oneOfType([A.oneOf(["medium","small"]),A.string]),sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),variant:A.oneOf(["filled","outlined","standard"])});const za=6048e5,mu=864e5,Ua=6e4,Ga=36e5,pu=1e3,Qa=Symbol.for("constructDateFrom");function be(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Qa in e?e[Qa](r):e instanceof Date?new e.constructor(r):new Date(r)}function N(e,r){return be(r||e,e)}function qt(e,r,t){const n=N(e,t==null?void 0:t.in);return isNaN(r)?be((t==null?void 0:t.in)||e,NaN):(r&&n.setDate(n.getDate()+r),n)}function Xa(e,r,t){return be(e,+N(e)+r)}function yu(e,r,t){return Xa(e,r*1e3)}function gu(e,r,t){const n=N(e,t==null?void 0:t.in);return n.setTime(n.getTime()+r*Ua),n}function bu(e,r,t){return Xa(e,r*Ga)}function vu(e,r,t){return qt(e,r*7,t)}function Ka(e,r,t){const n=N(e,t==null?void 0:t.in);if(isNaN(r))return be(e,NaN);if(!r)return n;const a=n.getDate(),o=be(e,n.getTime());o.setMonth(n.getMonth()+r+1,0);const i=o.getDate();return a>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function wu(e,r,t){return Ka(e,r*12,t)}function Ja(e,r){const t=N(e,r==null?void 0:r.in);return t.setHours(23,59,59,999),t}let xu={};function ft(){return xu}function Tu(e,r){var s,u,f,d;const t=ft(),n=(r==null?void 0:r.weekStartsOn)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((d=(f=t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??0,a=N(e,r==null?void 0:r.in),o=a.getDay(),i=(o<n?-7:0)+6-(o-n);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function Za(e,r){const t=N(e,r==null?void 0:r.in),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const Eu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Su=(e,r,t)=>{let n;const a=Eu[e];return typeof a=="string"?n=a:r===1?n=a.one:n=a.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function on(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const Cu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ou={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ku={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pu={date:on({formats:Cu,defaultWidth:"full"}),time:on({formats:Ou,defaultWidth:"full"}),dateTime:on({formats:ku,defaultWidth:"full"})},_u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mu=(e,r,t,n)=>_u[e];function Vt(e){return(r,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=t!=null&&t.width?String(t.width):i;a=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=t!=null&&t.width?String(t.width):e.defaultWidth;a=e.values[s]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(r):r;return a[o]}}const Du={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ru={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Au={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},$u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Iu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Fu={ordinalNumber:(e,r)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Vt({values:Du,defaultWidth:"wide"}),quarter:Vt({values:Ru,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Vt({values:Au,defaultWidth:"wide"}),day:Vt({values:$u,defaultWidth:"wide"}),dayPeriod:Vt({values:Iu,defaultWidth:"wide",formattingValues:Nu,defaultFormattingWidth:"wide"})};function zt(e){return(r,t={})=>{const n=t.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=r.match(a);if(!o)return null;const i=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Yu(s,h=>h.test(i)):ju(s,h=>h.test(i));let f;f=e.valueCallback?e.valueCallback(u):u,f=t.valueCallback?t.valueCallback(f):f;const d=r.slice(i.length);return{value:f,rest:d}}}function ju(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function Yu(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function Wu(e){return(r,t={})=>{const n=r.match(e.matchPattern);if(!n)return null;const a=n[0],o=r.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;const s=r.slice(a.length);return{value:i,rest:s}}}const Lu=/^(\d+)(th|st|nd|rd)?/i,Bu=/\d+/i,Hu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qu={any:[/^b/i,/^(a|c)/i]},Vu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zu={any:[/1/i,/2/i,/3/i,/4/i]},Uu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ku={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ju={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zu={ordinalNumber:Wu({matchPattern:Lu,parsePattern:Bu,valueCallback:e=>parseInt(e,10)}),era:zt({matchPatterns:Hu,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),quarter:zt({matchPatterns:Vu,defaultMatchWidth:"wide",parsePatterns:zu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zt({matchPatterns:Uu,defaultMatchWidth:"wide",parsePatterns:Gu,defaultParseWidth:"any"}),day:zt({matchPatterns:Qu,defaultMatchWidth:"wide",parsePatterns:Xu,defaultParseWidth:"any"}),dayPeriod:zt({matchPatterns:Ku,defaultMatchWidth:"any",parsePatterns:Ju,defaultParseWidth:"any"})},sn={code:"en-US",formatDistance:Su,formatLong:Pu,formatRelative:Mu,localize:Fu,match:Zu,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Sr(e){const r=N(e),t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return t.setUTCFullYear(r.getFullYear()),+e-+t}function Ut(e,...r){const t=be.bind(null,r.find(n=>typeof n=="object"));return r.map(t)}function Gt(e,r){const t=N(e,r==null?void 0:r.in);return t.setHours(0,0,0,0),t}function el(e,r,t){const[n,a]=Ut(t==null?void 0:t.in,e,r),o=Gt(n),i=Gt(a),s=+o-Sr(o),u=+i-Sr(i);return Math.round((s-u)/mu)}function eo(e,r){const t=N(e,r==null?void 0:r.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function tl(e,r){const t=N(e,r==null?void 0:r.in);return el(t,eo(t))+1}function at(e,r){var s,u,f,d;const t=ft(),n=(r==null?void 0:r.weekStartsOn)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((d=(f=t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??0,a=N(e,r==null?void 0:r.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Ct(e,r){return at(e,{...r,weekStartsOn:1})}function to(e,r){const t=N(e,r==null?void 0:r.in),n=t.getFullYear(),a=be(t,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=Ct(a),i=be(t,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=Ct(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function rl(e,r){const t=to(e,r),n=be(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ct(n)}function ro(e,r){const t=N(e,r==null?void 0:r.in),n=+Ct(t)-+rl(t);return Math.round(n/za)+1}function cn(e,r){var d,h,m,w;const t=N(e,r==null?void 0:r.in),n=t.getFullYear(),a=ft(),o=(r==null?void 0:r.firstWeekContainsDate)??((h=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((w=(m=a.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,i=be((r==null?void 0:r.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const s=at(i,r),u=be((r==null?void 0:r.in)||e,0);u.setFullYear(n,0,o),u.setHours(0,0,0,0);const f=at(u,r);return+t>=+s?n+1:+t>=+f?n:n-1}function nl(e,r){var s,u,f,d;const t=ft(),n=(r==null?void 0:r.firstWeekContainsDate)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((d=(f=t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,a=cn(e,r),o=be((r==null?void 0:r.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),at(o,r)}function un(e,r){const t=N(e,r==null?void 0:r.in),n=+at(t,r)-+nl(t,r);return Math.round(n/za)+1}function le(e,r){const t=e<0?"-":"",n=Math.abs(e).toString().padStart(r,"0");return t+n}const lt={y(e,r){const t=e.getFullYear(),n=t>0?t:1-t;return le(r==="yy"?n%100:n,r.length)},M(e,r){const t=e.getMonth();return r==="M"?String(t+1):le(t+1,2)},d(e,r){return le(e.getDate(),r.length)},a(e,r){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,r){return le(e.getHours()%12||12,r.length)},H(e,r){return le(e.getHours(),r.length)},m(e,r){return le(e.getMinutes(),r.length)},s(e,r){return le(e.getSeconds(),r.length)},S(e,r){const t=r.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,t-3));return le(a,r.length)}},Ot={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},no={G:function(e,r,t){const n=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,r,t){if(r==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return t.ordinalNumber(a,{unit:"year"})}return lt.y(e,r)},Y:function(e,r,t,n){const a=cn(e,n),o=a>0?a:1-a;if(r==="YY"){const i=o%100;return le(i,2)}return r==="Yo"?t.ordinalNumber(o,{unit:"year"}):le(o,r.length)},R:function(e,r){const t=to(e);return le(t,r.length)},u:function(e,r){const t=e.getFullYear();return le(t,r.length)},Q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return le(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return le(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,r,t){const n=e.getMonth();switch(r){case"M":case"MM":return lt.M(e,r);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,r,t){const n=e.getMonth();switch(r){case"L":return String(n+1);case"LL":return le(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,r,t,n){const a=un(e,n);return r==="wo"?t.ordinalNumber(a,{unit:"week"}):le(a,r.length)},I:function(e,r,t){const n=ro(e);return r==="Io"?t.ordinalNumber(n,{unit:"week"}):le(n,r.length)},d:function(e,r,t){return r==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):lt.d(e,r)},D:function(e,r,t){const n=tl(e);return r==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):le(n,r.length)},E:function(e,r,t){const n=e.getDay();switch(r){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,r,t,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return le(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,t,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return le(o,r.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,t){const n=e.getDay(),a=n===0?7:n;switch(r){case"i":return String(a);case"ii":return le(a,r.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,r,t){const a=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,r,t){const n=e.getHours();let a;switch(n===12?a=Ot.noon:n===0?a=Ot.midnight:a=n/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,t){const n=e.getHours();let a;switch(n>=17?a=Ot.evening:n>=12?a=Ot.afternoon:n>=4?a=Ot.morning:a=Ot.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,t){if(r==="ho"){let n=e.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return lt.h(e,r)},H:function(e,r,t){return r==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):lt.H(e,r)},K:function(e,r,t){const n=e.getHours()%12;return r==="Ko"?t.ordinalNumber(n,{unit:"hour"}):le(n,r.length)},k:function(e,r,t){let n=e.getHours();return n===0&&(n=24),r==="ko"?t.ordinalNumber(n,{unit:"hour"}):le(n,r.length)},m:function(e,r,t){return r==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):lt.m(e,r)},s:function(e,r,t){return r==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):lt.s(e,r)},S:function(e,r){return lt.S(e,r)},X:function(e,r,t){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return oo(n);case"XXXX":case"XX":return dt(n);case"XXXXX":case"XXX":default:return dt(n,":")}},x:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"x":return oo(n);case"xxxx":case"xx":return dt(n);case"xxxxx":case"xxx":default:return dt(n,":")}},O:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+ao(n,":");case"OOOO":default:return"GMT"+dt(n,":")}},z:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+ao(n,":");case"zzzz":default:return"GMT"+dt(n,":")}},t:function(e,r,t){const n=Math.trunc(+e/1e3);return le(n,r.length)},T:function(e,r,t){return le(+e,r.length)}};function ao(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?t+String(a):t+String(a)+r+le(o,2)}function oo(e,r){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):dt(e,r)}function dt(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),a=le(Math.trunc(n/60),2),o=le(n%60,2);return t+a+r+o}const io=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},so=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Qt={p:so,P:(e,r)=>{const t=e.match(/(P+)(p+)?/)||[],n=t[1],a=t[2];if(!a)return io(e,r);let o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",io(n,r)).replace("{{time}}",so(a,r))}},al=/^D+$/,ol=/^Y+$/,il=["D","DD","YY","YYYY"];function co(e){return al.test(e)}function uo(e){return ol.test(e)}function ln(e,r,t){const n=sl(e,r,t);if(console.warn(n),il.includes(e))throw new RangeError(n)}function sl(e,r,t){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function cl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lo(e){return!(!cl(e)&&typeof e!="number"||isNaN(+N(e)))}const ul=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ll=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fl=/^'([^]*?)'?$/,dl=/''/g,hl=/[a-zA-Z]/;function ml(e,r,t){var d,h,m,w,v,p,y,T;const n=ft(),a=(t==null?void 0:t.locale)??n.locale??sn,o=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((w=(m=n.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((p=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((T=(y=n.locale)==null?void 0:y.options)==null?void 0:T.weekStartsOn)??0,s=N(e,t==null?void 0:t.in);if(!lo(s))throw new RangeError("Invalid time value");let u=r.match(ll).map(C=>{const E=C[0];if(E==="p"||E==="P"){const O=Qt[E];return O(C,a.formatLong)}return C}).join("").match(ul).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const E=C[0];if(E==="'")return{isToken:!1,value:pl(C)};if(no[E])return{isToken:!0,value:C};if(E.match(hl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:C}});a.localize.preprocessor&&(u=a.localize.preprocessor(s,u));const f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return u.map(C=>{if(!C.isToken)return C.value;const E=C.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&uo(E)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&co(E))&&ln(E,r,String(e));const O=no[E[0]];return O(s,E,a.localize,f)}).join("")}function pl(e){const r=e.match(fl);return r?r[1].replace(dl,"'"):e}function yl(e,r){return N(e,r==null?void 0:r.in).getDate()}function fo(e,r){const t=N(e,r==null?void 0:r.in),n=t.getFullYear(),a=t.getMonth(),o=be(t,0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}function gl(e,r){return N(e,r==null?void 0:r.in).getHours()}function bl(e,r){return N(e,r==null?void 0:r.in).getMinutes()}function vl(e,r){return N(e,r==null?void 0:r.in).getMonth()}function wl(e){return N(e).getSeconds()}function xl(e){return N(e).getMilliseconds()}function Tl(e,r){return N(e,r==null?void 0:r.in).getFullYear()}function fn(e,r){return+N(e)>+N(r)}function dn(e,r){return+N(e)<+N(r)}function El(e,r){return+N(e)==+N(r)}function Sl(e,r,t){const[n,a]=Ut(t==null?void 0:t.in,e,r);return+Gt(n)==+Gt(a)}function Cl(e,r,t){const[n,a]=Ut(t==null?void 0:t.in,e,r);return n.getFullYear()===a.getFullYear()}function Ol(e,r,t){const[n,a]=Ut(t==null?void 0:t.in,e,r);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function ho(e,r){const t=N(e,r==null?void 0:r.in);return t.setMinutes(0,0,0),t}function kl(e,r,t){const[n,a]=Ut(t==null?void 0:t.in,e,r);return+ho(n)==+ho(a)}function Pl(){return Object.assign({},ft())}function _l(e,r){const t=Ml(r)?new r(0):be(r,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function Ml(e){var r;return typeof e=="function"&&((r=e.prototype)==null?void 0:r.constructor)===e}const Dl=10;class mo{constructor(){M(this,"subPriority",0)}validate(r,t){return!0}}class Rl extends mo{constructor(r,t,n,a,o){super(),this.value=r,this.validateValue=t,this.setValue=n,this.priority=a,o&&(this.subPriority=o)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,n){return this.setValue(r,t,this.value,n)}}class Al extends mo{constructor(t,n){super();M(this,"priority",Dl);M(this,"subPriority",-1);this.context=t||(a=>be(n,a))}set(t,n){return n.timestampIsSet?t:be(t,_l(t,this.context))}}class ne{run(r,t,n,a){const o=this.parse(r,t,n,a);return o?{setter:new Rl(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,t,n){return!0}}class $l extends ne{constructor(){super(...arguments);M(this,"priority",140);M(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,n,a){return n.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}const Ce={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ke={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Oe(e,r){return e&&{value:r(e.value),rest:e.rest}}function we(e,r){const t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function Je(e,r){const t=r.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};const n=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,i=t[5]?parseInt(t[5],10):0;return{value:n*(a*Ga+o*Ua+i*pu),rest:r.slice(t[0].length)}}function po(e){return we(Ce.anyDigitsSigned,e)}function Ee(e,r){switch(e){case 1:return we(Ce.singleDigit,r);case 2:return we(Ce.twoDigits,r);case 3:return we(Ce.threeDigits,r);case 4:return we(Ce.fourDigits,r);default:return we(new RegExp("^\\d{1,"+e+"}"),r)}}function Cr(e,r){switch(e){case 1:return we(Ce.singleDigitSigned,r);case 2:return we(Ce.twoDigitsSigned,r);case 3:return we(Ce.threeDigitsSigned,r);case 4:return we(Ce.fourDigitsSigned,r);default:return we(new RegExp("^-?\\d{1,"+e+"}"),r)}}function hn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function yo(e,r){const t=r>0,n=t?r:1-r;let a;if(n<=50)a=e||100;else{const o=n+50,i=Math.trunc(o/100)*100,s=e>=o%100;a=e+i-(s?100:0)}return t?a:1-a}function go(e){return e%400===0||e%4===0&&e%100!==0}class Il extends ne{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return Oe(Ee(4,t),o);case"yo":return Oe(a.ordinalNumber(t,{unit:"year"}),o);default:return Oe(Ee(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=yo(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class Nl extends ne{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Oe(Ee(4,t),o);case"Yo":return Oe(a.ordinalNumber(t,{unit:"year"}),o);default:return Oe(Ee(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a,o){const i=cn(t,o);if(a.isTwoDigitYear){const u=yo(a.year,i);return t.setFullYear(u,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),at(t,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),at(t,o)}}class Fl extends ne{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Cr(n==="R"?4:n.length,t)}set(t,n,a){const o=be(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),Ct(o)}}class jl extends ne{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Cr(n==="u"?4:n.length,t)}set(t,n,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}class Yl extends ne{constructor(){super(...arguments);M(this,"priority",120);M(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"Q":case"QQ":return Ee(n.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class Wl extends ne{constructor(){super(...arguments);M(this,"priority",120);M(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"q":case"qq":return Ee(n.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class Ll extends ne{constructor(){super(...arguments);M(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);M(this,"priority",110)}parse(t,n,a){const o=i=>i-1;switch(n){case"M":return Oe(we(Ce.month,t),o);case"MM":return Oe(Ee(2,t),o);case"Mo":return Oe(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class Bl extends ne{constructor(){super(...arguments);M(this,"priority",110);M(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,a){const o=i=>i-1;switch(n){case"L":return Oe(we(Ce.month,t),o);case"LL":return Oe(Ee(2,t),o);case"Lo":return Oe(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}function Hl(e,r,t){const n=N(e,t==null?void 0:t.in),a=un(n,t)-r;return n.setDate(n.getDate()-a*7),N(n,t==null?void 0:t.in)}class ql extends ne{constructor(){super(...arguments);M(this,"priority",100);M(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,a){switch(n){case"w":return we(Ce.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return Ee(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a,o){return at(Hl(t,a,o),o)}}function Vl(e,r,t){const n=N(e,t==null?void 0:t.in),a=ro(n,t)-r;return n.setDate(n.getDate()-a*7),n}class zl extends ne{constructor(){super(...arguments);M(this,"priority",100);M(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,a){switch(n){case"I":return we(Ce.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return Ee(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a){return Ct(Vl(t,a))}}const Ul=[31,28,31,30,31,30,31,31,30,31,30,31],Gl=[31,29,31,30,31,30,31,31,30,31,30,31];class Ql extends ne{constructor(){super(...arguments);M(this,"priority",90);M(this,"subPriority",1);M(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"d":return we(Ce.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return Ee(n.length,t)}}validate(t,n){const a=t.getFullYear(),o=go(a),i=t.getMonth();return o?n>=1&&n<=Gl[i]:n>=1&&n<=Ul[i]}set(t,n,a){return t.setDate(a),t.setHours(0,0,0,0),t}}class Xl extends ne{constructor(){super(...arguments);M(this,"priority",90);M(this,"subpriority",1);M(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,a){switch(n){case"D":case"DD":return we(Ce.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return Ee(n.length,t)}}validate(t,n){const a=t.getFullYear();return go(a)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}}function mn(e,r,t){var h,m,w,v;const n=ft(),a=(t==null?void 0:t.weekStartsOn)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((v=(w=n.locale)==null?void 0:w.options)==null?void 0:v.weekStartsOn)??0,o=N(e,t==null?void 0:t.in),i=o.getDay(),u=(r%7+7)%7,f=7-a,d=r<0||r>6?r-(i+f)%7:(u+f)%7-(i+f)%7;return qt(o,d,t)}class Kl extends ne{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=mn(t,a,o),t.setHours(0,0,0,0),t}}class Jl extends ne{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,a,o){const i=s=>{const u=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return Oe(Ee(n.length,t),i);case"eo":return Oe(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=mn(t,a,o),t.setHours(0,0,0,0),t}}class Zl extends ne{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,a,o){const i=s=>{const u=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return Oe(Ee(n.length,t),i);case"co":return Oe(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=mn(t,a,o),t.setHours(0,0,0,0),t}}function ef(e,r){const t=N(e,r==null?void 0:r.in).getDay();return t===0?7:t}function tf(e,r,t){const n=N(e,t==null?void 0:t.in),a=ef(n,t),o=r-a;return qt(n,o,t)}class rf extends ne{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Ee(n.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return Oe(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Oe(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Oe(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Oe(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,a){return t=tf(t,a),t.setHours(0,0,0,0),t}}class nf extends ne{constructor(){super(...arguments);M(this,"priority",80);M(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(hn(a),0,0,0),t}}class af extends ne{constructor(){super(...arguments);M(this,"priority",80);M(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(hn(a),0,0,0),t}}class of extends ne{constructor(){super(...arguments);M(this,"priority",80);M(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(hn(a),0,0,0),t}}class sf extends ne{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,a){switch(n){case"h":return we(Ce.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return Ee(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}}class cf extends ne{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,a){switch(n){case"H":return we(Ce.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return Ee(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,a){return t.setHours(a,0,0,0),t}}class uf extends ne{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,a){switch(n){case"K":return we(Ce.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return Ee(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}}class lf extends ne{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,a){switch(n){case"k":return we(Ce.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return Ee(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}}class ff extends ne{constructor(){super(...arguments);M(this,"priority",60);M(this,"incompatibleTokens",["t","T"])}parse(t,n,a){switch(n){case"m":return we(Ce.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return Ee(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setMinutes(a,0,0),t}}class df extends ne{constructor(){super(...arguments);M(this,"priority",50);M(this,"incompatibleTokens",["t","T"])}parse(t,n,a){switch(n){case"s":return we(Ce.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return Ee(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setSeconds(a,0),t}}class hf extends ne{constructor(){super(...arguments);M(this,"priority",30);M(this,"incompatibleTokens",["t","T"])}parse(t,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Oe(Ee(n.length,t),a)}set(t,n,a){return t.setMilliseconds(a),t}}class mf extends ne{constructor(){super(...arguments);M(this,"priority",10);M(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return Je(Ke.basicOptionalMinutes,t);case"XX":return Je(Ke.basic,t);case"XXXX":return Je(Ke.basicOptionalSeconds,t);case"XXXXX":return Je(Ke.extendedOptionalSeconds,t);case"XXX":default:return Je(Ke.extended,t)}}set(t,n,a){return n.timestampIsSet?t:be(t,t.getTime()-Sr(t)-a)}}class pf extends ne{constructor(){super(...arguments);M(this,"priority",10);M(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return Je(Ke.basicOptionalMinutes,t);case"xx":return Je(Ke.basic,t);case"xxxx":return Je(Ke.basicOptionalSeconds,t);case"xxxxx":return Je(Ke.extendedOptionalSeconds,t);case"xxx":default:return Je(Ke.extended,t)}}set(t,n,a){return n.timestampIsSet?t:be(t,t.getTime()-Sr(t)-a)}}class yf extends ne{constructor(){super(...arguments);M(this,"priority",40);M(this,"incompatibleTokens","*")}parse(t){return po(t)}set(t,n,a){return[be(t,a*1e3),{timestampIsSet:!0}]}}class gf extends ne{constructor(){super(...arguments);M(this,"priority",20);M(this,"incompatibleTokens","*")}parse(t){return po(t)}set(t,n,a){return[be(t,a),{timestampIsSet:!0}]}}const bf={G:new $l,y:new Il,Y:new Nl,R:new Fl,u:new jl,Q:new Yl,q:new Wl,M:new Ll,L:new Bl,w:new ql,I:new zl,d:new Ql,D:new Xl,E:new Kl,e:new Jl,c:new Zl,i:new rf,a:new nf,b:new af,B:new of,h:new sf,H:new cf,K:new uf,k:new lf,m:new ff,s:new df,S:new hf,X:new mf,x:new pf,t:new yf,T:new gf},vf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xf=/^'([^]*?)'?$/,Tf=/''/g,Ef=/\S/,Sf=/[a-zA-Z]/;function Cf(e,r,t,n){var y,T,C,E,O,g,F,$;const a=()=>be((n==null?void 0:n.in)||t,NaN),o=Pl(),i=(n==null?void 0:n.locale)??o.locale??sn,s=(n==null?void 0:n.firstWeekContainsDate)??((T=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:T.firstWeekContainsDate)??o.firstWeekContainsDate??((E=(C=o.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)??1,u=(n==null?void 0:n.weekStartsOn)??((g=(O=n==null?void 0:n.locale)==null?void 0:O.options)==null?void 0:g.weekStartsOn)??o.weekStartsOn??(($=(F=o.locale)==null?void 0:F.options)==null?void 0:$.weekStartsOn)??0;if(!r)return e?a():N(t,n==null?void 0:n.in);const f={firstWeekContainsDate:s,weekStartsOn:u,locale:i},d=[new Al(n==null?void 0:n.in,t)],h=r.match(wf).map(R=>{const j=R[0];if(j in Qt){const c=Qt[j];return c(R,i.formatLong)}return R}).join("").match(vf),m=[];for(let R of h){!(n!=null&&n.useAdditionalWeekYearTokens)&&uo(R)&&ln(R,r,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&co(R)&&ln(R,r,e);const j=R[0],c=bf[j];if(c){const{incompatibleTokens:P}=c;if(Array.isArray(P)){const W=m.find(z=>P.includes(z.token)||z.token===j);if(W)throw new RangeError(`The format string mustn't contain \`${W.fullToken}\` and \`${R}\` at the same time`)}else if(c.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${R}\` and any other token at the same time`);m.push({token:j,fullToken:R});const Y=c.run(e,R,i.match,f);if(!Y)return a();d.push(Y.setter),e=Y.rest}else{if(j.match(Sf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");if(R==="''"?R="'":j==="'"&&(R=Of(R)),e.indexOf(R)===0)e=e.slice(R.length);else return a()}}if(e.length>0&&Ef.test(e))return a();const w=d.map(R=>R.priority).sort((R,j)=>j-R).filter((R,j,c)=>c.indexOf(R)===j).map(R=>d.filter(j=>j.priority===R).sort((j,c)=>c.subPriority-j.subPriority)).map(R=>R[0]);let v=N(t,n==null?void 0:n.in);if(isNaN(+v))return a();const p={};for(const R of w){if(!R.validate(v,f))return a();const j=R.set(v,p,f);Array.isArray(j)?(v=j[0],Object.assign(p,j[1])):v=j}return v}function Of(e){return e.match(xf)[1].replace(Tf,"'")}function kf(e,r,t){const n=N(e,t==null?void 0:t.in);return n.setDate(r),n}function Pf(e,r,t){const n=N(e,t==null?void 0:t.in);return n.setHours(r),n}function _f(e,r,t){const n=N(e,t==null?void 0:t.in);return n.setMinutes(r),n}function Mf(e,r,t){const n=N(e,t==null?void 0:t.in),a=n.getFullYear(),o=n.getDate(),i=be(e,0);i.setFullYear(a,r,15),i.setHours(0,0,0,0);const s=fo(i);return n.setMonth(r,Math.min(o,s)),n}function Df(e,r,t){const n=N(e,t==null?void 0:t.in);return n.setSeconds(r),n}function Rf(e,r,t){const n=N(e,t==null?void 0:t.in);return n.setMilliseconds(r),n}function Af(e,r,t){const n=N(e,t==null?void 0:t.in);return isNaN(+n)?be(e,NaN):(n.setFullYear(r),n)}function $f(e,r){const t=N(e,r==null?void 0:r.in);return t.setDate(1),t.setHours(0,0,0,0),t}function If(e,r){const t=N(e,r==null?void 0:r.in),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Nf(e,r,t){const n=+N(e,t==null?void 0:t.in),[a,o]=[+N(r.start,t==null?void 0:t.in),+N(r.end,t==null?void 0:t.in)].sort((i,s)=>i-s);return n>=a&&n<=o}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},pn.apply(null,arguments)}const Ff={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},jf={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class Yf{constructor(r){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Ff,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=i=>i,this.toJsDate=i=>i,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=i=>{const s=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return i.match(s).map(u=>{const f=u[0];if(f==="p"||f==="P"){const d=this.longFormatters[f];return d(u,this.locale.formatLong)}return u}).join("")},this.formatNumber=i=>i,this.getDayOfWeek=i=>i.getDay()+1;const{locale:t,formats:n,longFormatters:a,lib:o}=r;this.locale=t,this.formats=pn({},jf,n),this.longFormatters=a,this.lib=o||"date-fns"}}class Wf extends Yf{constructor({locale:r,formats:t}={}){if(process.env.NODE_ENV!=="production"){if(typeof qt!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFns` instead."].join(`
|
|
105
105
|
`));if(!Qt)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:r??sn,formats:t,longFormatters:Qt}),this.parse=(n,a)=>n===""?null:Cf(n,a,new Date,{locale:this.locale}),this.isValid=n=>n==null?!1:lo(n),this.format=(n,a)=>this.formatByString(n,this.formats[a]),this.formatByString=(n,a)=>ml(n,a,{locale:this.locale}),this.isEqual=(n,a)=>n===null&&a===null?!0:n===null||a===null?!1:El(n,a),this.isSameYear=(n,a)=>Cl(n,a),this.isSameMonth=(n,a)=>Ol(n,a),this.isSameDay=(n,a)=>Sl(n,a),this.isSameHour=(n,a)=>kl(n,a),this.isAfter=(n,a)=>fn(n,a),this.isAfterYear=(n,a)=>fn(n,Za(a)),this.isAfterDay=(n,a)=>fn(n,Ja(a)),this.isBefore=(n,a)=>dn(n,a),this.isBeforeYear=(n,a)=>dn(n,this.startOfYear(a)),this.isBeforeDay=(n,a)=>dn(n,this.startOfDay(a)),this.isWithinRange=(n,[a,o])=>Nf(n,{start:a,end:o}),this.startOfYear=n=>eo(n),this.startOfMonth=n=>$f(n),this.startOfWeek=n=>at(n,{locale:this.locale}),this.startOfDay=n=>Gt(n),this.endOfYear=n=>Za(n),this.endOfMonth=n=>If(n),this.endOfWeek=n=>Tu(n,{locale:this.locale}),this.endOfDay=n=>Ja(n),this.addYears=(n,a)=>wu(n,a),this.addMonths=(n,a)=>Ka(n,a),this.addWeeks=(n,a)=>vu(n,a),this.addDays=(n,a)=>qt(n,a),this.addHours=(n,a)=>bu(n,a),this.addMinutes=(n,a)=>gu(n,a),this.addSeconds=(n,a)=>yu(n,a),this.getYear=n=>Tl(n),this.getMonth=n=>vl(n),this.getDate=n=>yl(n),this.getHours=n=>gl(n),this.getMinutes=n=>bl(n),this.getSeconds=n=>wl(n),this.getMilliseconds=n=>xl(n),this.setYear=(n,a)=>Af(n,a),this.setMonth=(n,a)=>Mf(n,a),this.setDate=(n,a)=>kf(n,a),this.setHours=(n,a)=>Pf(n,a),this.setMinutes=(n,a)=>_f(n,a),this.setSeconds=(n,a)=>Df(n,a),this.setMilliseconds=(n,a)=>Rf(n,a),this.getDaysInMonth=n=>fo(n),this.getWeekArray=n=>{const a=this.startOfWeek(this.startOfMonth(n)),o=this.endOfWeek(this.endOfMonth(n));let i=0,s=a;const u=[];for(;this.isBefore(s,o);){const f=Math.floor(i/7);u[f]=u[f]||[],u[f].push(s),s=this.addDays(s,1),i+=1}return u},this.getWeekNumber=n=>un(n,{locale:this.locale}),this.getYearRange=([n,a])=>{const o=this.startOfYear(n),i=this.endOfYear(a),s=[];let u=o;for(;this.isBefore(u,i);)s.push(u),u=this.addYears(u,1);return s}}}function Lf({children:e,onSubmit:r,layout:t,sx:n}){return L.jsx(Tn.LocalizationProvider,{dateAdapter:Wf,adapterLocale:void 0,children:L.jsx($o,{layout:t,children:L.jsx(Va,{sx:n,children:L.jsx("form",{onSubmit:r,children:e})})})})}function Bf({children:e,onSubmit:r=()=>{},layout:t,formOptions:n={},sx:a}){const o=it.useForm(n);return L.jsx(it.FormProvider,{...o,children:L.jsx(Lf,{onSubmit:o.handleSubmit(r),layout:t,sx:a,children:e})})}function Hf(){return L.jsx("div",{children:"FormRenderer"})}ye.CalculatedNumberInput=ou,ye.Checkbox=Io,ye.DateInput=No,ye.FormFieldLabel=uu,ye.FormProvider=Bf,ye.NumberInput=Fo,ye.Select=iu,ye.TextInput=On,ye.default=Hf,Object.defineProperties(ye,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|