@verifiedinc-public/shared-ui-elements 5.17.0 → 5.17.1

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.
@@ -3,6 +3,7 @@ export interface OneClickChartData {
3
3
  uuid: string;
4
4
  name?: string;
5
5
  color?: string;
6
+ integrationType?: string;
6
7
  chartData: Array<{
7
8
  date: string;
8
9
  oneClickSuccess: number;
@@ -13,6 +13,7 @@ interface SeriesChartData {
13
13
  uuid: string;
14
14
  name?: string;
15
15
  color?: string;
16
+ integrationType?: string;
16
17
  chartData: ChartDataPoint[];
17
18
  }
18
19
  interface SeriesPercentageChartProps {
@@ -5,11 +5,7 @@ type CustomPayload = {
5
5
  value: string;
6
6
  color: string;
7
7
  dataKey: string;
8
- payload: {
9
- latestData?: Record<string, number>;
10
- uuid?: string;
11
- integrationType?: string;
12
- };
8
+ integrationType?: string;
13
9
  };
14
10
  interface SeriesPercentageChartLegendProps extends Omit<LegendProps, 'payload'> {
15
11
  showUuid?: boolean;
@@ -1 +1 @@
1
- "use strict";import{B as a,i as s,E as e,L as r,j as i,M as t,g as C,O as h,P as n,R as o,e as S,d as m,S as g,a as p,b as c,k as d,c as l,f as O,h as b,m as k}from"../../shared/SignupBigNumbers-Dhlkn8Tm.mjs";export{a as BigNumber,s as EmptyChartSection,e as ErrorCodesChart,r as LoadingChartSection,i as MetricLastUpdated,t as MonthlySignupsOverviewTable,C as OneClickOverTimeChart,h as OneClickPercentageChart,n as PieChart,o as ReasonCodesChart,S as RiskScoreBarChart,m as RiskScorePieChart,g as SeriesChart,p as SeriesChartLegend,c as SeriesPercentageChart,d as SignupBigNumbers,l as SimpleBarChart,O as SimpleLegend,b as mapMonthlySignupsOverviewTableData,k as mapTimeSeriesData};
1
+ "use strict";import{B as a,i as s,E as e,L as r,j as i,M as t,g as C,O as h,P as n,R as o,e as S,d as m,S as g,a as p,b as c,k as d,c as l,f as O,h as b,m as k}from"../../shared/SignupBigNumbers-BRtnxvpN.mjs";export{a as BigNumber,s as EmptyChartSection,e as ErrorCodesChart,r as LoadingChartSection,i as MetricLastUpdated,t as MonthlySignupsOverviewTable,C as OneClickOverTimeChart,h as OneClickPercentageChart,n as PieChart,o as ReasonCodesChart,S as RiskScoreBarChart,m as RiskScorePieChart,g as SeriesChart,p as SeriesChartLegend,c as SeriesPercentageChart,d as SignupBigNumbers,l as SimpleBarChart,O as SimpleLegend,b as mapMonthlySignupsOverviewTableData,k as mapTimeSeriesData};
@@ -1 +1 @@
1
- "use strict";import{A as a,c as s,m as e,B as r,o as t,n,C as i,D as o,f as p,E as c,k as d,F as m,I as u,b as h,L as C,O as l,h as S,j as g,e as P,P as B,Q as k,R as I,S as b,d as O,l as T,T as y,g as L,a as f,V as R,i as v,t as E,u as D}from"../shared/index-CUFvyPMP.mjs";import{a as N,b as F,P as A,S as M}from"../shared/PageSectionHeader-DdpDhBZG.mjs";import{B as V,C as w,i as x,E as W,L as j,j as H,M as Q,g as q,O as z,P as U,R as G,e as J,d as K,S as X,a as Y,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"../shared/SignupBigNumbers-Dhlkn8Tm.mjs";import{SnackbarProvider as na}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,V as BigNumber,t as BrandFilterInput,n as Button,i as CredentialRequestsEditor,w as CustomAlertComponent,o as DateInput,p as DateRangeInput,c as EmailInput,x as EmptyChartSection,W as ErrorCodesChart,d as ExactBirthdayBanner,m as FullWidthAlert,u as Image,h as LegalLink,C as LinkButton,j as LoadingChartSection,H as MetricLastUpdated,Q as MonthlySignupsOverviewTable,l as OTPInput,S as OneClickForm,q as OneClickOverTimeChart,z as OneClickPercentageChart,g as OneClickPoweredByVerified,N as PageHeader,F as PageSectionHeader,A as Paragraph,P as PhoneInput,U as PieChart,B as PrivacyPolicyNotice,k as QRCodeDisplay,G as ReasonCodesChart,I as ResendPhoneBanner,J as RiskScoreBarChart,K as RiskScorePieChart,b as SSNInput,M as SectionHeader,O as SelectInput,X as SeriesChart,Y as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,na as SnackbarProvider,T as TestPhoneNumbersBanner,y as TextButton,L as TimezoneInput,f as Typography,R as VerifiedImage,v as VerifiedIncLogo,sa as When,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,E as toOption,D as useBrandFilterInput,ta as useSnackbar};
1
+ "use strict";import{A as a,c as s,m as e,B as r,o as t,n,C as i,D as o,f as p,E as c,k as d,F as m,I as u,b as h,L as C,O as l,h as S,j as g,e as P,P as B,Q as k,R as I,S as b,d as O,l as T,T as y,g as L,a as f,V as R,i as v,t as E,u as D}from"../shared/index-BGAPCAhn.mjs";import{a as N,b as F,P as A,S as M}from"../shared/PageSectionHeader-DdpDhBZG.mjs";import{B as V,C as w,i as x,E as W,L as j,j as H,M as Q,g as q,O as z,P as U,R as G,e as J,d as K,S as X,a as Y,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"../shared/SignupBigNumbers-BRtnxvpN.mjs";import{SnackbarProvider as na}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,V as BigNumber,t as BrandFilterInput,n as Button,i as CredentialRequestsEditor,w as CustomAlertComponent,o as DateInput,p as DateRangeInput,c as EmailInput,x as EmptyChartSection,W as ErrorCodesChart,d as ExactBirthdayBanner,m as FullWidthAlert,u as Image,h as LegalLink,C as LinkButton,j as LoadingChartSection,H as MetricLastUpdated,Q as MonthlySignupsOverviewTable,l as OTPInput,S as OneClickForm,q as OneClickOverTimeChart,z as OneClickPercentageChart,g as OneClickPoweredByVerified,N as PageHeader,F as PageSectionHeader,A as Paragraph,P as PhoneInput,U as PieChart,B as PrivacyPolicyNotice,k as QRCodeDisplay,G as ReasonCodesChart,I as ResendPhoneBanner,J as RiskScoreBarChart,K as RiskScorePieChart,b as SSNInput,M as SectionHeader,O as SelectInput,X as SeriesChart,Y as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,na as SnackbarProvider,T as TestPhoneNumbersBanner,y as TextButton,L as TimezoneInput,f as Typography,R as VerifiedImage,v as VerifiedIncLogo,sa as When,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,E as toOption,D as useBrandFilterInput,ta as useSnackbar};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use strict";import{A as a,c as s,m as e,B as r,o as t,n as o,C as i,D as n,f as m,E as l,k as u,F as p,I as c,b as d,L as h,O as S,h as C,j as g,e as f,P as k,Q as P,R as b,S as y,d as B,l as D,T,g as O,a as v,V as I,i as R,t as w,u as N}from"./shared/index-CUFvyPMP.mjs";import{a as L,b as M,P as E,S as Y}from"./shared/PageSectionHeader-DdpDhBZG.mjs";import{B as A,C as F,i as z,E as V,L as W,j as x,M as G,g as j,O as U,P as H,R as Q,e as q,d as J,S as K,a as X,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"./shared/SignupBigNumbers-Dhlkn8Tm.mjs";import{b as oa,k as ia,a as na,i as ma,u as la,j as ua,d as pa,c as ca,e as da,f as ha,g as Sa,h as Ca}from"./shared/useDebounceCallback-CO7X29ng.mjs";import{u as ga,a as fa}from"./shared/usePrevious-DG_IMu2h.mjs";import{a as ka,b as Pa,u as ba}from"./shared/useOnClickOutside-DgJxDzLx.mjs";import{u as ya}from"./shared/useCounter-BV32zXDQ.mjs";import{u as Ba}from"./shared/useResizeObserver-D434c1uN.mjs";import{b as Da,a as Ta,x as Oa,m as va,e as Ia,d as Ra,q as wa,v as Na,h as La,j as Ma,g as Ea,p as Ya,u as Aa,n as Fa,c as za,l as Va,o as Wa,s as xa,f as Ga,i as ja,r as Ua,A as Ha,t as Qa,z as qa,k as Ja,w as Ka,y as Xa}from"./shared/shadows-DLu0KeAU.mjs";import{wrapPromise as Za}from"./utils/wrapPromise/index.mjs";import{f as _a,b as $a,a as as,c as ss,u as es}from"./shared/uuidColor-LRbEKYAZ.mjs";import{c as rs,g as ts,a as os,p as is,s as ns,v as ms}from"./shared/phone-eqP--V9t.mjs";import{masks as ls}from"./utils/masks/index.mjs";import{o as us}from"./shared/omitProperty-DZYdN2vK.mjs";import{s as ps}from"./shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as cs,toSentenceCase as ds}from"./utils/string/index.mjs";import{k as hs}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{M as Ss,S as Cs,U as gs,d as fs,e as ks,f as Ps,g as bs,a as ys,s as Bs}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Ds}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as Ts}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,A as BigNumber,t as BrandFilterInput,o as Button,i as CredentialRequestsEditor,F as CustomAlertComponent,n as DateInput,m as DateRangeInput,l as EmailInput,z as EmptyChartSection,V as ErrorCodesChart,u as ExactBirthdayBanner,p as FullWidthAlert,c as Image,d as LegalLink,h as LinkButton,W as LoadingChartSection,Ss as MaskedAndUnmaskedSSNSchema,x as MetricLastUpdated,G as MonthlySignupsOverviewTable,S as OTPInput,C as OneClickForm,j as OneClickOverTimeChart,U as OneClickPercentageChart,g as OneClickPoweredByVerified,L as PageHeader,M as PageSectionHeader,E as Paragraph,f as PhoneInput,H as PieChart,k as PrivacyPolicyNotice,P as QRCodeDisplay,Q as ReasonCodesChart,b as ResendPhoneBanner,q as RiskScoreBarChart,J as RiskScorePieChart,y as SSNInput,Cs as SSNSchema,Y as SectionHeader,B as SelectInput,K as SeriesChart,X as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,Ts as SnackbarProvider,D as TestPhoneNumbersBanner,T as TextButton,O as TimezoneInput,v as Typography,gs as USDateSchema,I as VerifiedImage,R as VerifiedIncLogo,sa as When,Da as black,Ta as blue,Oa as colors,rs as countries,va as dangerContrast,Ia as darkBlue,Ra as darkGreen,wa as darkGrey,Na as darkGreyContrast,La as darkRed,Ma as darkYellow,fs as descriptionSchema,ks as emailSchema,Ps as fieldSchema,_a as formatDateMMDDYYYY,$a as formatDateMMYY,as as formatDateToTimestamp,ss as formatExtendedDate,bs as getDateSchemaWithPastValidation,ts as getPhoneData,os as getPhoneDataByFieldName,ys as getUnixSchema,Ea as green,Ya as grey,Aa as greyContrast,Fa as infoContrast,hs as kebabCaseToPretty,za as lightBlue,Va as lightGreen,Wa as lightGrey,xa as lightGreyContrast,Ga as lightRed,ja as lightYellow,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,ls as masks,us as omitProperties,is as parseToPhoneNational,Ds as phoneSchema,Ua as red,Ha as shadows,ns as sortByCountryName,ps as ssnFormatter,Bs as stateSchema,Qa as textDisabled,qa as theme,cs as toCapitalize,w as toOption,ds as toSentenceCase,N as useBrandFilterInput,oa as useCallbackRef,ga as useCopyToClipboard,ya as useCounter,ia as useDebounceCallback,ka as useDebounceValue,na as useDisclosure,ma as useIntersectionObserver,la as useLocalStorage,ua as useNavigatorOnline,Pa as useOnClickOutside,fa as usePrevious,ba as useQRCode,Ba as useResizeObserver,pa as useScript,ca as useSearchParams,ta as useSnackbar,da as useThrottle,ha as useToggle,Sa as useWindowScroll,Ca as useWindowSize,es as uuidToHashedColor,ms as validatePhone,Ja as warningContrast,Ka as white,Za as wrapPromise,Xa as yellow};
1
+ "use strict";import{A as a,c as s,m as e,B as r,o as t,n as o,C as i,D as n,f as m,E as l,k as u,F as p,I as c,b as d,L as h,O as S,h as C,j as g,e as f,P as k,Q as P,R as b,S as y,d as B,l as D,T,g as O,a as v,V as I,i as R,t as w,u as N}from"./shared/index-BGAPCAhn.mjs";import{a as L,b as M,P as E,S as Y}from"./shared/PageSectionHeader-DdpDhBZG.mjs";import{B as A,C as F,i as z,E as V,L as W,j as x,M as G,g as j,O as U,P as H,R as Q,e as q,d as J,S as K,a as X,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"./shared/SignupBigNumbers-BRtnxvpN.mjs";import{b as oa,k as ia,a as na,i as ma,u as la,j as ua,d as pa,c as ca,e as da,f as ha,g as Sa,h as Ca}from"./shared/useDebounceCallback-CO7X29ng.mjs";import{u as ga,a as fa}from"./shared/usePrevious-DG_IMu2h.mjs";import{a as ka,b as Pa,u as ba}from"./shared/useOnClickOutside-DgJxDzLx.mjs";import{u as ya}from"./shared/useCounter-BV32zXDQ.mjs";import{u as Ba}from"./shared/useResizeObserver-D434c1uN.mjs";import{b as Da,a as Ta,x as Oa,m as va,e as Ia,d as Ra,q as wa,v as Na,h as La,j as Ma,g as Ea,p as Ya,u as Aa,n as Fa,c as za,l as Va,o as Wa,s as xa,f as Ga,i as ja,r as Ua,A as Ha,t as Qa,z as qa,k as Ja,w as Ka,y as Xa}from"./shared/shadows-DLu0KeAU.mjs";import{wrapPromise as Za}from"./utils/wrapPromise/index.mjs";import{f as _a,b as $a,a as as,c as ss,u as es}from"./shared/uuidColor-LRbEKYAZ.mjs";import{c as rs,g as ts,a as os,p as is,s as ns,v as ms}from"./shared/phone-eqP--V9t.mjs";import{masks as ls}from"./utils/masks/index.mjs";import{o as us}from"./shared/omitProperty-DZYdN2vK.mjs";import{s as ps}from"./shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as cs,toSentenceCase as ds}from"./utils/string/index.mjs";import{k as hs}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{M as Ss,S as Cs,U as gs,d as fs,e as ks,f as Ps,g as bs,a as ys,s as Bs}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Ds}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as Ts}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,A as BigNumber,t as BrandFilterInput,o as Button,i as CredentialRequestsEditor,F as CustomAlertComponent,n as DateInput,m as DateRangeInput,l as EmailInput,z as EmptyChartSection,V as ErrorCodesChart,u as ExactBirthdayBanner,p as FullWidthAlert,c as Image,d as LegalLink,h as LinkButton,W as LoadingChartSection,Ss as MaskedAndUnmaskedSSNSchema,x as MetricLastUpdated,G as MonthlySignupsOverviewTable,S as OTPInput,C as OneClickForm,j as OneClickOverTimeChart,U as OneClickPercentageChart,g as OneClickPoweredByVerified,L as PageHeader,M as PageSectionHeader,E as Paragraph,f as PhoneInput,H as PieChart,k as PrivacyPolicyNotice,P as QRCodeDisplay,Q as ReasonCodesChart,b as ResendPhoneBanner,q as RiskScoreBarChart,J as RiskScorePieChart,y as SSNInput,Cs as SSNSchema,Y as SectionHeader,B as SelectInput,K as SeriesChart,X as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,Ts as SnackbarProvider,D as TestPhoneNumbersBanner,T as TextButton,O as TimezoneInput,v as Typography,gs as USDateSchema,I as VerifiedImage,R as VerifiedIncLogo,sa as When,Da as black,Ta as blue,Oa as colors,rs as countries,va as dangerContrast,Ia as darkBlue,Ra as darkGreen,wa as darkGrey,Na as darkGreyContrast,La as darkRed,Ma as darkYellow,fs as descriptionSchema,ks as emailSchema,Ps as fieldSchema,_a as formatDateMMDDYYYY,$a as formatDateMMYY,as as formatDateToTimestamp,ss as formatExtendedDate,bs as getDateSchemaWithPastValidation,ts as getPhoneData,os as getPhoneDataByFieldName,ys as getUnixSchema,Ea as green,Ya as grey,Aa as greyContrast,Fa as infoContrast,hs as kebabCaseToPretty,za as lightBlue,Va as lightGreen,Wa as lightGrey,xa as lightGreyContrast,Ga as lightRed,ja as lightYellow,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,ls as masks,us as omitProperties,is as parseToPhoneNational,Ds as phoneSchema,Ua as red,Ha as shadows,ns as sortByCountryName,ps as ssnFormatter,Bs as stateSchema,Qa as textDisabled,qa as theme,cs as toCapitalize,w as toOption,ds as toSentenceCase,N as useBrandFilterInput,oa as useCallbackRef,ga as useCopyToClipboard,ya as useCounter,ia as useDebounceCallback,ka as useDebounceValue,na as useDisclosure,ma as useIntersectionObserver,la as useLocalStorage,ua as useNavigatorOnline,Pa as useOnClickOutside,fa as usePrevious,ba as useQRCode,Ba as useResizeObserver,pa as useScript,ca as useSearchParams,ta as useSnackbar,da as useThrottle,ha as useToggle,Sa as useWindowScroll,Ca as useWindowSize,es as uuidToHashedColor,ms as validatePhone,Ja as warningContrast,Ka as white,Za as wrapPromise,Xa as yellow};
@@ -0,0 +1,2 @@
1
+ "use strict";import{j as l}from"./jsx-runtime-DHlBLioN.mjs";import{Alert as No,Box as Te,IconButton as $r,Stack as Ce,Typography as fe,useTheme as Oe,Paper as Er,TableContainer as _o,Table as Mo,TableHead as Io,TableRow as Tr,TableCell as de,TableBody as Ro}from"@mui/material";import*as Ae from"react";import{forwardRef as Do,useCallback as Lt,useMemo as Vt,createElement as Po,useState as mt,useRef as Fo,useEffect as Cr}from"react";import{ResponsiveContainer as yt,LineChart as Ar,CartesianGrid as zt,XAxis as Ut,YAxis as Gt,Label as Lo,Tooltip as Wt,Legend as Bt,Line as Nr,ComposedChart as Vo,ReferenceLine as _r,ReferenceArea as Mr,Bar as zo,Sector as Ir,PieChart as Uo,Pie as Go,Cell as Wo}from"recharts";import Rr,{Decimal as Kt}from"decimal.js";import{b as Dr,c as Pr,u as Bo,_ as Ko}from"./uuidColor-LRbEKYAZ.mjs";import{AnimatePresence as Fr}from"framer-motion";import{a as Yt,u as Lr}from"./usePrevious-DG_IMu2h.mjs";import"qrcode";import{g as Yo,e as Ne}from"./_baseGetTag-B6tQMIzM.mjs";import{a as Vr,C as zr}from"./motions-BBPeWBPV.mjs";import qo from"@emotion/styled";import{CacheProvider as Ho,Global as Zo,ThemeContext as Ur,css as Jo,keyframes as Qo}from"@emotion/react";import{k as Gr}from"./formatKebabToPretty-Du43TgPC.mjs";import{Close as Xo}from"@mui/icons-material";import{SnackbarContent as ea,closeSnackbar as Wr,enqueueSnackbar as ta}from"notistack";import{u as ra}from"./useCounter-BV32zXDQ.mjs";function me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}var Br={exports:{}},Kr={exports:{}},U={},Yr;function na(){if(Yr)return U;Yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function j(m){if(typeof m=="object"&&m!==null){var k=m.$$typeof;switch(k){case t:switch(m=m.type,m){case f:case c:case n:case a:case o:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case p:case y:case b:case i:return m;default:return k}}case r:return k}}}function F(m){return j(m)===c}return U.AsyncMode=f,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=p,U.Fragment=n,U.Lazy=y,U.Memo=b,U.Portal=r,U.Profiler=a,U.StrictMode=o,U.Suspense=h,U.isAsyncMode=function(m){return F(m)||j(m)===f},U.isConcurrentMode=F,U.isContextConsumer=function(m){return j(m)===s},U.isContextProvider=function(m){return j(m)===i},U.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},U.isForwardRef=function(m){return j(m)===p},U.isFragment=function(m){return j(m)===n},U.isLazy=function(m){return j(m)===y},U.isMemo=function(m){return j(m)===b},U.isPortal=function(m){return j(m)===r},U.isProfiler=function(m){return j(m)===a},U.isStrictMode=function(m){return j(m)===o},U.isSuspense=function(m){return j(m)===h},U.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===h||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===i||m.$$typeof===s||m.$$typeof===p||m.$$typeof===d||m.$$typeof===x||m.$$typeof===O||m.$$typeof===g)},U.typeOf=j,U}var oa={},qr;function _l(){return qr||(qr=1),oa}var Hr;function aa(){return Hr||(Hr=1,Kr.exports=na()),Kr.exports}var qt,Zr;function ia(){if(Zr)return qt;Zr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var f=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(f.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qt=o()?Object.assign:function(a,i){for(var s,f=n(a),c,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var h in s)t.call(s,h)&&(f[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)r.call(s,c[u])&&(f[c[u]]=s[c[u]])}}return f},qt}var Ht,Jr;function Qr(){if(Jr)return Ht;Jr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ht=e,Ht}var Xr,en;function sa(){return en||(en=1,Xr=Function.call.bind(Object.prototype.hasOwnProperty)),Xr}var Zt,tn;function ca(){if(tn)return Zt;tn=1;var e=function(){};if(0)var t,r,n;function o(a,i,s,f,c){if(0){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function")var u}catch(y){}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r))var b}}}return o.resetWarningCache=function(){},Zt=o,Zt}var Jt,rn;function Ml(){if(rn)return Jt;rn=1;var e=aa(),t=ia(),r=Qr(),n=sa(),o=ca(),a=function(){};function i(){return null}return Jt=function(s,f){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(v){var w=v&&(c&&v[c]||v[p]);if(typeof w=="function")return w}var u="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:O(),arrayOf:j,element:F(),elementType:m(),instanceOf:k,node:Q(),objectOf:B,oneOf:$,oneOfType:re,shape:E,exact:z};function y(v,w){return v===w?v!==0||1/v===1/w:v!==v&&w!==w}function g(v,w){this.message=v,this.data=w&&typeof w=="object"?w:{},this.stack=""}g.prototype=Error.prototype;function d(v){if(0)var w,I;function _(R,N,M,P,D,T,Y){if(P=P||u,T=T||M,Y!==r){if(f){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(0)var dt}return N[M]==null?R?N[M]===null?new g("The "+D+" `"+T+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+D+" `"+T+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:v(N,M,P,D,T)}var A=_.bind(null,!1);return A.isRequired=_.bind(null,!0),A}function x(v){function w(I,_,A,R,N,M){var P=I[_],D=K(P);if(D!==v){var T=X(P);return new g("Invalid "+R+" `"+N+"` of type "+("`"+T+"` supplied to `"+A+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return d(w)}function O(){return d(i)}function j(v){function w(I,_,A,R,N){if(typeof v!="function")return new g("Property `"+N+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var M=I[_];if(!Array.isArray(M)){var P=K(M);return new g("Invalid "+R+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected an array."))}for(var D=0;D<M.length;D++){var T=v(M,D,A,R,N+"["+D+"]",r);if(T instanceof Error)return T}return null}return d(w)}function F(){function v(w,I,_,A,R){var N=w[I];if(!s(N)){var M=K(N);return new g("Invalid "+A+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return d(v)}function m(){function v(w,I,_,A,R){var N=w[I];if(!e.isValidElementType(N)){var M=K(N);return new g("Invalid "+A+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return d(v)}function k(v){function w(I,_,A,R,N){if(!(I[_]instanceof v)){var M=v.name||u,P=Se(I[_]);return new g("Invalid "+R+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected ")+("instance of `"+M+"`."))}return null}return d(w)}function $(v){if(!Array.isArray(v))return i;function w(I,_,A,R,N){for(var M=I[_],P=0;P<v.length;P++)if(y(M,v[P]))return null;var D=JSON.stringify(v,function(T,Y){var W=X(Y);return W==="symbol"?String(Y):Y});return new g("Invalid "+R+" `"+N+"` of value `"+String(M)+"` "+("supplied to `"+A+"`, expected one of "+D+"."))}return d(w)}function B(v){function w(I,_,A,R,N){if(typeof v!="function")return new g("Property `"+N+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected an object."));for(var D in M)if(n(M,D)){var T=v(M,D,A,R,N+"."+D,r);if(T instanceof Error)return T}return null}return d(w)}function re(v){if(!Array.isArray(v))return i;for(var w=0;w<v.length;w++){var I=v[w];if(typeof I!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(I)+" at index "+w+"."),i}function _(A,R,N,M,P){for(var D=[],T=0;T<v.length;T++){var Y=v[T],W=Y(A,R,N,M,P,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&D.push(W.data.expectedType)}var dt=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new g("Invalid "+M+" `"+P+"` supplied to "+("`"+N+"`"+dt+"."))}return d(_)}function Q(){function v(w,I,_,A,R){return H(w[I])?null:new g("Invalid "+A+" `"+R+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return d(v)}function S(v,w,I,_,A){return new g((v||"React class")+": "+w+" type `"+I+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function E(v){function w(I,_,A,R,N){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+N+"` of type `"+P+"` "+("supplied to `"+A+"`, expected `object`."));for(var D in v){var T=v[D];if(typeof T!="function")return S(A,R,N,D,X(T));var Y=T(M,D,A,R,N+"."+D,r);if(Y)return Y}return null}return d(w)}function z(v){function w(I,_,A,R,N){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+N+"` of type `"+P+"` "+("supplied to `"+A+"`, expected `object`."));var D=t({},I[_],v);for(var T in D){var Y=v[T];if(n(v,T)&&typeof Y!="function")return S(A,R,N,T,X(Y));if(!Y)return new g("Invalid "+R+" `"+N+"` key `"+T+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[_],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(v),null," "));var W=Y(M,T,A,R,N+"."+T,r);if(W)return W}return null}return d(w)}function H(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(H);if(v===null||s(v))return!0;var w=h(v);if(w){var I=w.call(v),_;if(w!==v.entries){for(;!(_=I.next()).done;)if(!H(_.value))return!1}else for(;!(_=I.next()).done;){var A=_.value;if(A&&!H(A[1]))return!1}}else return!1;return!0;default:return!1}}function oe(v,w){return v==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function K(v){var w=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":oe(w,v)?"symbol":w}function X(v){if(typeof v>"u"||v===null)return""+v;var w=K(v);if(w==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return w}function Ie(v){var w=X(v);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function Se(v){return!v.constructor||!v.constructor.name?u:v.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Jt}var Qt,nn;function la(){if(nn)return Qt;nn=1;var e=Qr();function t(){}function r(){}return r.resetWarningCache=t,Qt=function(){function n(i,s,f,c,p,h){if(h!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Qt}if(0)var Il,Rl;else Br.exports=la()();var ua=Br.exports;const pa=Yo(ua);function on(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=on(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function an(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=on(e))&&(n&&(n+=" "),n+=t);return n}function Xt(e,t){const r=C({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=C({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=C({},a),Object.keys(o).forEach(i=>{r[n][i]=Xt(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function sn(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}var ee={},cn={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(cn);var ln=cn.exports;function De(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const fa=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),da=Ne(fa);function ma(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ya=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ha=Ne(ya);var un=ln;Object.defineProperty(ee,"__esModule",{value:!0});var ga=ee.alpha=gn;ee.blend=Ta,ee.colorChannel=void 0;var pn=ee.darken=tr;ee.decomposeColor=ye,ee.emphasize=bn;var ba=ee.getContrastRatio=Oa;ee.getLuminance=ht,ee.hexToRgb=mn,ee.hslToRgb=hn;var fn=ee.lighten=rr;ee.private_safeAlpha=ja,ee.private_safeColorChannel=void 0,ee.private_safeDarken=ka,ee.private_safeEmphasize=Ea,ee.private_safeLighten=$a,ee.recomposeColor=Pe,ee.rgbToHex=Sa;var dn=un(da),va=un(ha);function er(e,t=0,r=1){return(0,va.default)(e,t,r)}function mn(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xa(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ye(e){if(e.type)return e;if(e.charAt(0)==="#")return ye(mn(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,dn.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,dn.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const yn=e=>{const t=ye(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ee.colorChannel=yn;const wa=(e,t)=>{try{return yn(e)}catch{return e}};ee.private_safeColorChannel=wa;function Pe(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Sa(e){if(e.indexOf("#")===0)return e;const{values:t}=ye(e);return`#${t.map((r,n)=>xa(n===3?Math.round(255*r):r)).join("")}`}function hn(e){e=ye(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,p=(c+r/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let s="rgb";const f=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",f.push(t[3])),Pe({type:s,values:f})}function ht(e){e=ye(e);let t=e.type==="hsl"||e.type==="hsla"?ye(hn(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Oa(e,t){const r=ht(e),n=ht(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function gn(e,t){return e=ye(e),t=er(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pe(e)}function ja(e,t,r){try{return gn(e,t)}catch{return e}}function tr(e,t){if(e=ye(e),t=er(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Pe(e)}function ka(e,t,r){try{return tr(e,t)}catch{return e}}function rr(e,t){if(e=ye(e),t=er(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Pe(e)}function $a(e,t,r){try{return rr(e,t)}catch{return e}}function bn(e,t=.15){return ht(e)>.5?tr(e,t):rr(e,t)}function Ea(e,t,r){try{return bn(e,t)}catch{return e}}function Ta(e,t,r,n=1){const o=(f,c)=>Math.round((f**(1/n)*(1-r)+c**(1/n)*r)**n),a=ye(e),i=ye(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Pe({type:"rgb",values:s})}var He={},vn={exports:{}},xn;function Ca(){return xn||(xn=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vn)),vn.exports}var wn={exports:{}},Sn;function Aa(){return Sn||(Sn=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wn)),wn.exports}function Na(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function _a(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ma=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_a(this));var n=this.tags[this.tags.length-1];if(0)var o;if(this.isSpeedy){var a=Na(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),se="-ms-",gt="-moz-",L="-webkit-",On="comm",nr="rule",or="decl",Ia="@import",jn="@keyframes",Ra="@layer",Da=Math.abs,bt=String.fromCharCode,Pa=Object.assign;function Fa(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function kn(e){return e.trim()}function La(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function ar(e,t){return e.indexOf(t)}function ae(e,t){return e.charCodeAt(t)|0}function Ze(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function ir(e){return e.length}function vt(e,t){return t.push(e),e}function Va(e,t){return e.map(t).join("")}var xt=1,Fe=1,$n=0,ce=0,ne=0,Le="";function wt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:xt,column:Fe,length:i,return:""}}function Je(e,t){return Pa(wt("",null,null,"",null,null,0),e,{length:-e.length},t)}function za(){return ne}function Ua(){return ne=ce>0?ae(Le,--ce):0,Fe--,ne===10&&(Fe=1,xt--),ne}function ue(){return ne=ce<$n?ae(Le,ce++):0,Fe++,ne===10&&(Fe=1,xt++),ne}function we(){return ae(Le,ce)}function St(){return ce}function Qe(e,t){return Ze(Le,e,t)}function Xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function En(e){return xt=Fe=1,$n=xe(Le=e),ce=0,[]}function Tn(e){return Le="",e}function Ot(e){return kn(Qe(ce-1,sr(e===91?e+2:e===40?e+1:e)))}function Ga(e){for(;(ne=we())&&ne<33;)ue();return Xe(e)>2||Xe(ne)>3?"":" "}function Wa(e,t){for(;--t&&ue()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Qe(e,St()+(t<6&&we()==32&&ue()==32))}function sr(e){for(;ue();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&sr(ne);break;case 40:e===41&&sr(e);break;case 92:ue();break}return ce}function Ba(e,t){for(;ue()&&e+ne!==57&&!(e+ne===84&&we()===47););return"/*"+Qe(t,ce-1)+"*"+bt(e===47?e:ue())}function Ka(e){for(;!Xe(we());)ue();return Qe(e,ce)}function Ya(e){return Tn(jt("",null,null,null,[""],e=En(e),0,[0],e))}function jt(e,t,r,n,o,a,i,s,f){for(var c=0,p=0,h=i,u=0,b=0,y=0,g=1,d=1,x=1,O=0,j="",F=o,m=a,k=n,$=j;d;)switch(y=O,O=ue()){case 40:if(y!=108&&ae($,h-1)==58){ar($+=V(Ot(O),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=Ot(O);break;case 9:case 10:case 13:case 32:$+=Ga(y);break;case 92:$+=Wa(St()-1,7);continue;case 47:switch(we()){case 42:case 47:vt(qa(Ba(ue(),St()),t,r),f);break;default:$+="/"}break;case 123*g:s[c++]=xe($)*x;case 125*g:case 59:case 0:switch(O){case 0:case 125:d=0;case 59+p:x==-1&&($=V($,/\f/g,"")),b>0&&xe($)-h&&vt(b>32?An($+";",n,r,h-1):An(V($," ","")+";",n,r,h-2),f);break;case 59:$+=";";default:if(vt(k=Cn($,t,r,c,p,o,s,j,F=[],m=[],h),a),O===123)if(p===0)jt($,t,k,k,F,a,h,s,m);else switch(u===99&&ae($,3)===110?100:u){case 100:case 108:case 109:case 115:jt(e,k,k,n&&vt(Cn(e,k,k,0,0,o,s,j,o,F=[],h),m),o,m,h,s,n?F:m);break;default:jt($,k,k,k,[""],m,0,s,m)}}c=p=b=0,g=x=1,j=$="",h=i;break;case 58:h=1+xe($),b=y;default:if(g<1){if(O==123)--g;else if(O==125&&g++==0&&Ua()==125)continue}switch($+=bt(O),O*g){case 38:x=p>0?1:($+="\f",-1);break;case 44:s[c++]=(xe($)-1)*x,x=1;break;case 64:we()===45&&($+=Ot(ue())),u=we(),p=h=xe(j=$+=Ka(St())),O++;break;case 45:y===45&&xe($)==2&&(g=0)}}return a}function Cn(e,t,r,n,o,a,i,s,f,c,p){for(var h=o-1,u=o===0?a:[""],b=ir(u),y=0,g=0,d=0;y<n;++y)for(var x=0,O=Ze(e,h+1,h=Da(g=i[y])),j=e;x<b;++x)(j=kn(g>0?u[x]+" "+O:V(O,/&\f/g,u[x])))&&(f[d++]=j);return wt(e,t,r,o===0?nr:s,f,c,p)}function qa(e,t,r){return wt(e,t,r,On,bt(za()),Ze(e,2,-2),0)}function An(e,t,r,n){return wt(e,t,r,or,Ze(e,0,n),Ze(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=ir(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ha(e,t,r,n){switch(e.type){case Ra:if(e.children.length)break;case Ia:case or:return e.return=e.return||e.value;case On:return"";case jn:return e.return=e.value+"{"+Ve(e.children,n)+"}";case nr:e.value=e.props.join(",")}return xe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Za(e){var t=ir(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function Ja(e){return function(t){t.root||(t=t.return)&&e(t)}}var Qa=function(e,t,r){for(var n=0,o=0;n=o,o=we(),n===38&&o===12&&(t[r]=1),!Xe(o);)ue();return Qe(e,ce)},Xa=function(e,t){var r=-1,n=44;do switch(Xe(n)){case 0:n===38&&we()===12&&(t[r]=1),e[r]+=Qa(ce-1,t,r);break;case 2:e[r]+=Ot(n);break;case 4:if(n===44){e[++r]=we()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=bt(n)}while(n=ue());return e},ei=function(e,t){return Tn(Xa(En(e),t))},Nn=new WeakMap,ti=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Nn.get(r))&&!n){Nn.set(e,!0);for(var o=[],a=ei(t,o),i=r.props,s=0,f=0;s<a.length;s++)for(var c=0;c<i.length;c++,f++)e.props[f]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ri=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},ni="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",oi=function(e){return e.type==="comm"&&e.children.indexOf(ni)>-1},Dl=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!t.parent,i=a?t.parent.children:n,s=i.length-1;s>=0;s--){var f=i[s];if(f.line<t.line)break;if(f.column<t.column){if(oi(f))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},_n=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ai=function(e,t){for(var r=e-1;r>=0;r--)if(!_n(t[r]))return!0;return!1},Mn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Pl=function(e,t,r){_n(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Mn(e)):ai(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Mn(e)))};function In(e,t){switch(Fa(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+gt+e+se+e+e;case 6828:case 4268:return L+e+se+e+e;case 6165:return L+e+se+"flex-"+e+e;case 5187:return L+e+V(e,/(\w+).+(:[^]+)/,L+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return L+e+se+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return L+e+se+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+se+V(e,"shrink","negative")+e;case 5292:return L+e+se+V(e,"basis","preferred-size")+e;case 6060:return L+"box-"+V(e,"-grow","")+L+e+se+V(e,"grow","positive")+e;case 4554:return L+V(e,/([^-])(transform)/g,"$1"+L+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+gt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ar(e,"stretch")?In(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,xe(e)-3-(~ar(e,"!important")&&10))){case 107:return V(e,":",":"+L)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(ae(e,14)===45?"inline-":"")+"box$3$1"+L+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+se+e+e}return e}var ii=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case or:e.return=In(e.value,e.length);break;case jn:return Ve([Je(e,{value:V(e.value,"@","@"+L)})],n);case nr:if(e.length)return Va(e.props,function(o){switch(La(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([Je(e,{props:[V(o,/:(read-\w+)/,":"+gt+"$1")]})],n);case"::placeholder":return Ve([Je(e,{props:[V(o,/:(plac\w+)/,":"+L+"input-$1")]}),Je(e,{props:[V(o,/:(plac\w+)/,":"+gt+"$1")]}),Je(e,{props:[V(o,/:(plac\w+)/,se+"input-$1")]})],n)}return""})}},si=[ii],ci=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||si,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),d=1;d<g.length;d++)o[g[d]]=!0;i.push(y)});var s,f=[ti,ri];{var c,p=[Ha,Ja(function(y){c.insert(y)})],h=Za(f.concat(n,p)),u=function(y){return Ve(Ya(y),h)};s=function(y,g,d,x){c=d,u(y?y+"{"+g.styles+"}":g.styles),x&&(b.inserted[g.name]=!0)}}var b={key:t,sheet:new Ma({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return b.sheet.hydrate(i),b};let cr;typeof document=="object"&&(cr=ci({key:"css",prepend:!0}));function li(e){const{injectFirst:t,children:r}=e;return t&&cr?l.jsx(Ho,{value:cr,children:r}):r}function ui(e){return e==null||Object.keys(e).length===0}function Rn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(ui(o)?r:o):t;return l.jsx(Zo,{styles:n})}function Dn(e,t){return qo(e,t)}const Pn=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},pi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Rn,StyledEngineProvider:li,ThemeContext:Ur,css:Jo,default:Dn,internal_processStyles:Pn,keyframes:Qo},Symbol.toStringTag,{value:"Module"})),fi=Ne(pi);function je(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fn(e){if(!je(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Fn(e[r])}),t}function ve(e,t,r={clone:!0}){const n=r.clone?C({},e):e;return je(e)&&je(t)&&Object.keys(t).forEach(o=>{je(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&je(e[o])?n[o]=ve(e[o],t[o],r):r.clone?n[o]=je(t[o])?Fn(t[o]):t[o]:n[o]=t[o]}),n}const di=Object.freeze(Object.defineProperty({__proto__:null,default:ve,isPlainObject:je},Symbol.toStringTag,{value:"Module"})),mi=Ne(di);function kt(e){if(typeof e!="string")throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yi=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"})),hi=Ne(yi);var Ln={exports:{}},G={},Vn;function gi(){if(Vn)return G;Vn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case r:case o:case n:case c:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case f:case u:case h:case a:return d;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=a,G.Element=e,G.ForwardRef=f,G.Fragment=r,G.Lazy=u,G.Memo=h,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=c,G.SuspenseList=p,G.isAsyncMode=function(){return!1},G.isConcurrentMode=function(){return!1},G.isContextConsumer=function(d){return g(d)===i},G.isContextProvider=function(d){return g(d)===a},G.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},G.isForwardRef=function(d){return g(d)===f},G.isFragment=function(d){return g(d)===r},G.isLazy=function(d){return g(d)===u},G.isMemo=function(d){return g(d)===h},G.isPortal=function(d){return g(d)===t},G.isProfiler=function(d){return g(d)===o},G.isStrictMode=function(d){return g(d)===n},G.isSuspense=function(d){return g(d)===c},G.isSuspenseList=function(d){return g(d)===p},G.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===c||d===p||d===b||typeof d=="object"&&d!==null&&(d.$$typeof===u||d.$$typeof===h||d.$$typeof===a||d.$$typeof===i||d.$$typeof===f||d.$$typeof===y||d.getModuleId!==void 0)},G.typeOf=g,G}var bi={},zn;function Fl(){return zn||(zn=1),bi}Ln.exports=gi();var lr=Ln.exports;const vi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Un(e){const t=`${e}`.match(vi);return t&&t[1]||""}function Gn(e,t=""){return e.displayName||e.name||Un(e)||t}function Wn(e,t,r){const n=Gn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function xi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Gn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lr.ForwardRef:return Wn(e,e.render,"ForwardRef");case lr.Memo:return Wn(e,e.type,"memo");default:return}}}const wi=Object.freeze(Object.defineProperty({__proto__:null,default:xi,getFunctionName:Un},Symbol.toStringTag,{value:"Module"})),Si=Ne(wi),Oi=["values","unit","step"],ji=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>C({},r,{[n.key]:n.val}),{})};function Bn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=me(e,Oi),a=ji(t),i=Object.keys(a);function s(u){return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r})`}function f(u){return`@media (max-width:${(typeof t[u]=="number"?t[u]:u)-n/100}${r})`}function c(u,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function p(u){return i.indexOf(u)+1<i.length?c(u,i[i.indexOf(u)+1]):s(u)}function h(u){const b=i.indexOf(u);return b===0?s(i[1]):b===i.length-1?f(i[b]):c(u,i[i.indexOf(u)+1]).replace("@media","@media not all and")}return C({keys:i,values:a,up:s,down:f,between:c,only:p,not:h,unit:r},o)}const ki={borderRadius:4},Ll={};function et(e,t){return t?ve(e,t,{clone:!1}):e}const ur={xs:0,sm:600,md:900,lg:1200,xl:1536},Kn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ur[e]}px)`};function ke(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Kn;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||Kn;return Object.keys(t).reduce((a,i)=>{if(Object.keys(o.values||ur).indexOf(i)!==-1){const s=o.up(i);a[s]=r(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return r(t)}function $i(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{}))||{}}function Ei(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function $t(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Et(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=$t(e,r)||n,t&&(o=t(o,n,e)),o}function te(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],f=i.theme,c=$t(f,n)||{};return ke(i,s,p=>{let h=Et(c,o,p);return p===h&&typeof p=="string"&&(h=Et(c,o,`${t}${p==="default"?"":kt(p)}`,p)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function Ti(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ci={m:"margin",p:"padding"},Ai={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ni=Ti(e=>{if(e.length>2)if(Yn[e])e=Yn[e];else return[e];const[t,r]=e.split(""),n=Ci[t],o=Ai[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),pr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vl=[...pr,...fr];function tt(e,t,r,n){var o;const a=(o=$t(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function qn(e){return tt(e,"spacing",8,"spacing")}function rt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function _i(e,t){return r=>e.reduce((n,o)=>(n[o]=rt(t,r),n),{})}function Mi(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ni(r),a=_i(o,n),i=e[r];return ke(e,i,a)}function Hn(e,t){const r=qn(e.theme);return Object.keys(e).map(n=>Mi(e,t,n,r)).reduce(et,{})}function Z(e){return Hn(e,pr)}Z.propTypes={},Z.filterProps=pr;function J(e){return Hn(e,fr)}J.propTypes={},J.filterProps=fr;function Ii(e=8){if(e.mui)return e;const t=qn({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Tt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?et(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function he(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Ri=ge("border",he),Di=ge("borderTop",he),Pi=ge("borderRight",he),Fi=ge("borderBottom",he),Li=ge("borderLeft",he),Vi=ge("borderColor"),zi=ge("borderTopColor"),Ui=ge("borderRightColor"),Gi=ge("borderBottomColor"),Wi=ge("borderLeftColor"),Bi=ge("outline",he),Ki=ge("outlineColor"),Ct=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=tt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:rt(t,n)});return ke(e,e.borderRadius,r)}return null};Ct.propTypes={},Ct.filterProps=["borderRadius"],Tt(Ri,Di,Pi,Fi,Li,Vi,zi,Ui,Gi,Wi,Ct,Bi,Ki);const At=e=>{if(e.gap!==void 0&&e.gap!==null){const t=tt(e.theme,"spacing",8,"gap"),r=n=>({gap:rt(t,n)});return ke(e,e.gap,r)}return null};At.propTypes={},At.filterProps=["gap"];const Nt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=tt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:rt(t,n)});return ke(e,e.columnGap,r)}return null};Nt.propTypes={},Nt.filterProps=["columnGap"];const _t=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=tt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:rt(t,n)});return ke(e,e.rowGap,r)}return null};_t.propTypes={},_t.filterProps=["rowGap"];const Yi=te({prop:"gridColumn"}),qi=te({prop:"gridRow"}),Hi=te({prop:"gridAutoFlow"}),Zi=te({prop:"gridAutoColumns"}),Ji=te({prop:"gridAutoRows"}),Qi=te({prop:"gridTemplateColumns"}),Xi=te({prop:"gridTemplateRows"}),es=te({prop:"gridTemplateAreas"}),ts=te({prop:"gridArea"});Tt(At,Nt,_t,Yi,qi,Hi,Zi,Ji,Qi,Xi,es,ts);function ze(e,t){return t==="grey"?t:e}const rs=te({prop:"color",themeKey:"palette",transform:ze}),ns=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ze}),os=te({prop:"backgroundColor",themeKey:"palette",transform:ze});Tt(rs,ns,os);function pe(e){return e<=1&&e!==0?`${e*100}%`:e}const as=te({prop:"width",transform:pe}),dr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ur[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pe(r)}};return ke(e,e.maxWidth,t)}return null};dr.filterProps=["maxWidth"];const is=te({prop:"minWidth",transform:pe}),ss=te({prop:"height",transform:pe}),cs=te({prop:"maxHeight",transform:pe}),ls=te({prop:"minHeight",transform:pe});te({prop:"size",cssProperty:"width",transform:pe}),te({prop:"size",cssProperty:"height",transform:pe});const us=te({prop:"boxSizing"});Tt(as,dr,is,ss,cs,ls,us);const nt={border:{themeKey:"borders",transform:he},borderTop:{themeKey:"borders",transform:he},borderRight:{themeKey:"borders",transform:he},borderBottom:{themeKey:"borders",transform:he},borderLeft:{themeKey:"borders",transform:he},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:he},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ct},color:{themeKey:"palette",transform:ze},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ze},backgroundColor:{themeKey:"palette",transform:ze},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:At},rowGap:{style:_t},columnGap:{style:Nt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pe},maxWidth:{style:dr},minWidth:{transform:pe},height:{transform:pe},maxHeight:{transform:pe},minHeight:{transform:pe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ps(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function fs(e,t){return typeof e=="function"?e(t):e}function Zn(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:f=r,themeKey:c,transform:p,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const u=$t(o,c)||{};return h?h(i):ke(i,n,b=>{let y=Et(u,p,b);return b===y&&typeof b=="string"&&(y=Et(u,p,`${r}${b==="default"?"":kt(b)}`,b)),f===!1?y:{[f]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nt;function s(f){let c=f;if(typeof f=="function")c=f(a);else if(typeof f!="object")return f;if(!c)return null;const p=$i(a.breakpoints),h=Object.keys(p);let u=p;return Object.keys(c).forEach(b=>{const y=fs(c[b],a);if(y!=null)if(typeof y=="object")if(i[b])u=et(u,e(b,y,a,i));else{const g=ke({theme:a},y,d=>({[b]:d}));ps(g,y)?u[b]=t({sx:y,theme:a}):u=et(u,g)}else u=et(u,e(b,y,a,i))}),Ei(h,u)}return Array.isArray(o)?o.map(s):s(o)}return t}const ot=Zn();ot.filterProps=["sx"];function Jn(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const ds=["breakpoints","palette","spacing","shape"];function at(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=me(e,ds),s=Bn(r),f=Ii(o);let c=ve({breakpoints:s,direction:"ltr",components:{},palette:C({mode:"light"},n),spacing:f,shape:C({},ki,a)},i);return c.applyStyles=Jn,c=t.reduce((p,h)=>ve(p,h),c),c.unstable_sxConfig=C({},nt,i?.unstable_sxConfig),c.unstable_sx=function(p){return ot({sx:p,theme:this})},c}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:at,private_createBreakpoints:Bn,unstable_applyStyles:Jn},Symbol.toStringTag,{value:"Module"})),ys=Ne(ms),hs=["sx"],gs=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nt;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function mr(e){const{sx:t}=e,r=me(e,hs),{systemProps:n,otherProps:o}=gs(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return je(s)?C({},n,s):n}:a=C({},n,t),C({},o,{sx:a})}const bs=Object.freeze(Object.defineProperty({__proto__:null,default:ot,extendSxProp:mr,unstable_createStyleFunctionSx:Zn,unstable_defaultSxConfig:nt},Symbol.toStringTag,{value:"Module"})),vs=Ne(bs);var Ue=ln;Object.defineProperty(He,"__esModule",{value:!0});var xs=He.default=Ms;He.shouldForwardProp=Mt,He.systemDefaultTheme=void 0;var be=Ue(Ca()),yr=Ue(Aa()),Qn=Es(fi),ws=mi,zl=Ue(hi),Ul=Ue(Si),Ss=Ue(ys),Os=Ue(vs);const js=["ownerState"],ks=["variants"],$s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xn=function(n){return n?r:t})(e)}function Es(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Ts(e){return Object.keys(e).length===0}function Cs(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const As=He.systemDefaultTheme=(0,Ss.default)(),Ns=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function It({defaultTheme:e,theme:t,themeId:r}){return Ts(t)?e:t[r]||t}function _s(e){return e?(t,r)=>r[e]:null}function Rt(e,t){let{ownerState:r}=t,n=(0,yr.default)(t,js);const o=typeof e=="function"?e((0,be.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Rt(a,(0,be.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=(0,yr.default)(o,ks);return a.forEach(s=>{let f=!0;typeof s.props=="function"?f=s.props((0,be.default)({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(f=!1)}),f&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style((0,be.default)({ownerState:r},n,r)):s.style))}),i}return o}function Ms(e={}){const{themeId:t,defaultTheme:r=As,rootShouldForwardProp:n=Mt,slotShouldForwardProp:o=Mt}=e,a=i=>(0,Os.default)((0,be.default)({},i,{theme:It((0,be.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Qn.internal_processStyles)(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:f,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:u=_s(Ns(c))}=s,b=(0,yr.default)(s,$s),y=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=Mt;c==="Root"||c==="root"?x=n:c?x=o:Cs(i)&&(x=void 0);const O=(0,Qn.default)(i,(0,be.default)({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||(0,ws.isPlainObject)(m)?k=>Rt(m,(0,be.default)({},k,{theme:It({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];f&&u&&B.push(S=>{const E=It((0,be.default)({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[f]||!E.components[f].styleOverrides)return null;const z=E.components[f].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Rt(K,(0,be.default)({},S,{theme:E}))}),u(S,H)}),f&&!y&&B.push(S=>{var E;const z=It((0,be.default)({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[f])==null?void 0:E.variants;return Rt({variants:H},(0,be.default)({},S,{theme:z}))}),g||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const S=new Array(re).fill("");$=[...m,...S],$.raw=[...m.raw,...S]}const Q=O($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return O.withConfig&&(F.withConfig=O.withConfig),F}}const eo=e=>e,Is=()=>{let e=eo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eo}}},Rs=Is(),Ds={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function to(e,t,r="Mui"){const n=Ds[t];return n?`${r}-${n}`:`${Rs.generate(e)}-${t}`}function Ps(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const it={black:"#000",white:"#fff"},Fs={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ge={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},We={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},st={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Be={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ke={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ye={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ls=["mode","contrastThreshold","tonalOffset"],ro={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:it.white,default:it.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hr={text:{primary:it.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:it.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function no(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fn(e.main,o):t==="dark"&&(e.dark=pn(e.main,a)))}function Vs(e="light"){return e==="dark"?{main:Be[200],light:Be[50],dark:Be[400]}:{main:Be[700],light:Be[400],dark:Be[800]}}function zs(e="light"){return e==="dark"?{main:Ge[200],light:Ge[50],dark:Ge[400]}:{main:Ge[500],light:Ge[300],dark:Ge[700]}}function Us(e="light"){return e==="dark"?{main:We[500],light:We[300],dark:We[700]}:{main:We[700],light:We[400],dark:We[800]}}function Gs(e="light"){return e==="dark"?{main:Ke[400],light:Ke[300],dark:Ke[700]}:{main:Ke[700],light:Ke[500],dark:Ke[900]}}function Ws(e="light"){return e==="dark"?{main:Ye[400],light:Ye[300],dark:Ye[700]}:{main:Ye[800],light:Ye[500],dark:Ye[900]}}function Bs(e="light"){return e==="dark"?{main:st[400],light:st[300],dark:st[700]}:{main:"#ed6c02",light:st[500],dark:st[900]}}function Ks(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=me(e,Ls),a=e.primary||Vs(t),i=e.secondary||zs(t),s=e.error||Us(t),f=e.info||Gs(t),c=e.success||Ws(t),p=e.warning||Bs(t);function h(y){return ba(y,hr.text.primary)>=r?hr.text.primary:ro.text.primary}const u=({color:y,name:g,mainShade:d=500,lightShade:x=300,darkShade:O=700})=>{if(y=C({},y),!y.main&&y[d]&&(y.main=y[d]),!y.hasOwnProperty("main"))throw new Error(De(11,g?` (${g})`:"",d));if(typeof y.main!="string")throw new Error(De(12,g?` (${g})`:"",JSON.stringify(y.main)));return no(y,"light",x,n),no(y,"dark",O,n),y.contrastText||(y.contrastText=h(y.main)),y},b={dark:hr,light:ro};return ve(C({common:C({},it),mode:t,primary:u({color:a,name:"primary"}),secondary:u({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:u({color:s,name:"error"}),warning:u({color:p,name:"warning"}),info:u({color:f,name:"info"}),success:u({color:c,name:"success"}),grey:Fs,contrastThreshold:r,getContrastText:h,augmentColor:u,tonalOffset:n},b[t]),o)}const Ys=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function qs(e){return Math.round(e*1e5)/1e5}const oo={textTransform:"uppercase"},ao='"Roboto", "Helvetica", "Arial", sans-serif';function Hs(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ao,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:f=700,htmlFontSize:c=16,allVariants:p,pxToRem:h}=r,u=me(r,Ys),b=o/14,y=h||(x=>`${x/c*b}rem`),g=(x,O,j,F,m)=>C({fontFamily:n,fontWeight:x,fontSize:y(O),lineHeight:j},n===ao?{letterSpacing:`${qs(F/O)}em`}:{},m,p),d={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,oo),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,oo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ve(C({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:f},d),u,{clone:!1})}const Zs=.2,Js=.14,Qs=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Js})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qs})`].join(",")}const Xs=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],ec=["duration","easing","delay"],tc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},rc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function io(e){return`${Math.round(e)}ms`}function nc(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function oc(e){const t=C({},tc,e.easing),r=C({},rc,e.duration);return C({getAutoHeightDuration:nc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,f=me(o,ec);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:io(a)} ${i} ${typeof s=="string"?s:io(s)}`).join(",")}},e,{easing:t,duration:r})}const ac={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ic=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function sc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=me(e,ic);if(e.vars)throw new Error(De(18));const s=Ks(n),f=at(e);let c=ve(f,{mixins:Ps(f.breakpoints,r),palette:s,shadows:Xs.slice(),typography:Hs(s,a),transitions:oc(o),zIndex:C({},ac)});return c=ve(c,i),c=t.reduce((p,h)=>ve(p,h),c),c.unstable_sxConfig=C({},nt,i?.unstable_sxConfig),c.unstable_sx=function(p){return ot({sx:p,theme:this})},c}const gr=sc(),br="$$material";function so(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>so(e)&&e!=="classes",lo=xs({themeId:br,defaultTheme:gr,rootShouldForwardProp:co});function cc(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Xt(t.components[r].defaultProps,n)}function lc(e){return Object.keys(e).length===0}function uc(e=null){const t=Ae.useContext(Ur);return!t||lc(t)?e:t}const pc=at();function vr(e=pc){return uc(e)}function uo({props:e,name:t,defaultTheme:r,themeId:n}){let o=vr(r);return n&&(o=o[n]||o),cc({theme:o,name:t,props:e})}function po({props:e,name:t}){return uo({props:e,name:t,defaultTheme:gr,themeId:br})}const fc=["ownerState"],dc=["variants"],mc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yc(e){return Object.keys(e).length===0}function hc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gc=at(),bc=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Dt({defaultTheme:e,theme:t,themeId:r}){return yc(t)?e:t[r]||t}function vc(e){return e?(t,r)=>r[e]:null}function Pt(e,t){let{ownerState:r}=t,n=me(t,fc);const o=typeof e=="function"?e(C({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Pt(a,C({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=me(o,dc);return a.forEach(s=>{let f=!0;typeof s.props=="function"?f=s.props(C({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(f=!1)}),f&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(C({ownerState:r},n,r)):s.style))}),i}return o}function xc(e={}){const{themeId:t,defaultTheme:r=gc,rootShouldForwardProp:n=xr,slotShouldForwardProp:o=xr}=e,a=i=>ot(C({},i,{theme:Dt(C({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Pn(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:f,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:u=vc(bc(c))}=s,b=me(s,mc),y=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=xr;c==="Root"||c==="root"?x=n:c?x=o:hc(i)&&(x=void 0);const O=Dn(i,C({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||je(m)?k=>Pt(m,C({},k,{theme:Dt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];f&&u&&B.push(S=>{const E=Dt(C({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[f]||!E.components[f].styleOverrides)return null;const z=E.components[f].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Pt(K,C({},S,{theme:E}))}),u(S,H)}),f&&!y&&B.push(S=>{var E;const z=Dt(C({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[f])==null?void 0:E.variants;return Pt({variants:H},C({},S,{theme:z}))}),g||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const S=new Array(re).fill("");$=[...m,...S],$.raw=[...m.raw,...S]}const Q=O($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return O.withConfig&&(F.withConfig=O.withConfig),F}}const wc=xc();function fo(e,t){var r,n;return Ae.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}const Sc=(e,t)=>e.filter(r=>t.includes(r)),qe=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{r((i,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,s):i[e.up(e.keys[a])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Sc(e.keys,Object.keys(t))).forEach(o=>{if(e.keys.indexOf(o)!==-1){const a=t[o];a!==void 0&&r((i,s)=>{n===o?Object.assign(i,s):i[e.up(o)]=s},a)}}):(typeof t=="number"||typeof t=="string")&&r((o,a)=>{Object.assign(o,a)},t)};function $e(e){return e?`Level${e}`:""}function ct(e){return e.unstable_level>0&&e.container}function mo(e){return function(t){return`var(--Grid-${t}Spacing${$e(e.unstable_level)})`}}function wr(e){return function(t){return e.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${$e(e.unstable_level-1)})`}}function Sr(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${$e(e.unstable_level-1)})`}const Oc=({theme:e,ownerState:t})=>{const r=mo(t),n={};return qe(e.breakpoints,t.gridSize,(o,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Sr(t)}${ct(t)?` + ${r("column")}`:""})`}),o(n,i)}),n},jc=({theme:e,ownerState:t})=>{const r={};return qe(e.breakpoints,t.gridOffset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Sr(t)})`}),n(r,a)}),r},kc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=ct(t)?{[`--Grid-columns${$e(t.unstable_level)}`]:Sr(t)}:{"--Grid-columns":12};return qe(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${$e(t.unstable_level)}`]:o})}),r},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=wr(t),n=ct(t)?{[`--Grid-rowSpacing${$e(t.unstable_level)}`]:r("row")}:{};return qe(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${$e(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Ec=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=wr(t),n=ct(t)?{[`--Grid-columnSpacing${$e(t.unstable_level)}`]:r("column")}:{};return qe(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${$e(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Tc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return qe(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},Cc=({ownerState:e})=>{const t=mo(e),r=wr(e);return C({minWidth:0,boxSizing:"border-box"},e.container&&C({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||ct(e))&&C({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Ac=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},Nc=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},_c=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Mc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ic=at(),Rc=wc("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Dc(e){return uo({props:e,name:"MuiGrid",defaultTheme:Ic})}function Pc(e={}){const{createStyledComponent:t=Rc,useThemeProps:r=Dc,componentName:n="MuiGrid"}=e,o=Ae.createContext(void 0),a=(f,c)=>{const{container:p,direction:h,spacing:u,wrap:b,gridSize:y}=f,g={root:["root",p&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,..._c(h),...Ac(y),...p?Nc(u,c.breakpoints.keys[0]):[]]};return sn(g,d=>to(n,d),{})},i=t(kc,Ec,$c,Oc,Tc,Cc,jc),s=Ae.forwardRef(function(f,c){var p,h,u,b,y,g,d,x;const O=vr(),j=r(f),F=mr(j),m=Ae.useContext(o),{className:k,children:$,columns:B=12,container:re=!1,component:Q="div",direction:S="row",wrap:E="wrap",spacing:z=0,rowSpacing:H=z,columnSpacing:oe=z,disableEqualOverflow:K,unstable_level:X=0}=F,Ie=me(F,Mc);let Se=K;X&&K!==void 0&&(Se=f.disableEqualOverflow);const v={},w={},I={};Object.entries(Ie).forEach(([T,Y])=>{O.breakpoints.values[T]!==void 0?v[T]=Y:O.breakpoints.values[T.replace("Offset","")]!==void 0?w[T.replace("Offset","")]=Y:I[T]=Y});const _=(p=f.columns)!=null?p:X?void 0:B,A=(h=f.spacing)!=null?h:X?void 0:z,R=(u=(b=f.rowSpacing)!=null?b:f.spacing)!=null?u:X?void 0:H,N=(y=(g=f.columnSpacing)!=null?g:f.spacing)!=null?y:X?void 0:oe,M=C({},F,{level:X,columns:_,container:re,direction:S,wrap:E,spacing:A,rowSpacing:R,columnSpacing:N,gridSize:v,gridOffset:w,disableEqualOverflow:(d=(x=Se)!=null?x:m)!=null?d:!1,parentDisableEqualOverflow:m}),P=a(M,O);let D=l.jsx(i,C({ref:c,as:Q,ownerState:M,className:an(P.root,k)},I,{children:Ae.Children.map($,T=>{if(Ae.isValidElement(T)&&fo(T,["Grid"])){var Y;return Ae.cloneElement(T,{unstable_level:(Y=T.props.unstable_level)!=null?Y:X+1})}return T})}));return Se!==void 0&&Se!==(m??!1)&&(D=l.jsx(o.Provider,{value:Se,children:D})),D});return s.muiName="Grid",s}function Or({value:e,children:t}){return e?typeof t=="function"?l.jsx(l.Fragment,{children:t(e)}):l.jsx(l.Fragment,{children:t}):null}const yo={},lt={};function ut(e,t){try{const r=(yo[e]||(yo[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in lt?lt[r]:ho(r,r.split(":"))}catch{if(e in lt)return lt[e];const r=e?.match(Fc);return r?ho(e,r.slice(1)):NaN}}const Fc=/([+-]\d\d):?(\d\d)?/;function ho(e,t){const r=+t[0],n=+(t[1]||0);return lt[e]=r>0?r*60+n:r*60-n}class Ee extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ut(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),bo(this),jr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new Ee(...r,t):new Ee(Date.now(),t)}withTimeZone(t){return new Ee(+this,t)}getTimezoneOffset(){return-ut(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),jr(this),+this}[Symbol.for("constructDateFrom")](t){return new Ee(+new Date(t),this.timeZone)}}const go=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!go.test(e))return;const t=e.replace(go,"$1UTC");Ee.prototype[t]&&(e.startsWith("get")?Ee.prototype[e]=function(){return this.internal[t]()}:(Ee.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Lc(this),+this},Ee.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),jr(this),+this}))});function jr(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Lc(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bo(e)}function bo(e){const t=ut(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),o=-new Date(+r).getTimezoneOffset(),a=n-o,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=n-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const f=ut(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-f,p=f!==t,h=c-s;if(p&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const u=ut(e.timeZone,e),b=f-u;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}const Vc=e=>{let t=new Date(Number(e));if(!e){const a=new Date;t=new Date(a.getFullYear(),a.getMonth(),a.getDate())}const r=String(t.getDate()).padStart(2,"0"),n=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return[n,r,o].join("/")},zc=(e,t)=>new Date(Number(e)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...t}),pt=Pc({createStyledComponent:lo("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>po({props:e,name:"MuiGrid2"})});function kr(){return{enqueueSnackbar:(e,t="success",r)=>{ta(e,{severity:t,variant:"customAlertComponent",persist:!0,...r})},closeSnackbar:Wr}}const Uc=Do(({id:e,message:t,severity:r,alertAction:n,sx:o,showCloseIcon:a=!0,persist:i,hideIconVariant:s,autoHideDuration:f,anchorOrigin:c,iconVariant:p,...h},u)=>l.jsx(ea,{ref:u,...h,children:l.jsx(No,{severity:r,action:l.jsxs(Te,{ml:1,children:[l.jsx(Or,{value:n,children:l.jsx($r,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),l.jsx(Or,{value:!n&&a,children:l.jsx($r,{size:"small",onClick:()=>{Wr(e)},color:"inherit",children:l.jsx(Xo,{})})})]}),sx:{alignItems:"center",width:"320px",...o},children:t})}));function Gc({entry:e,payload:t,showUuid:r=!0}){const n=Lt(u=>{var b,y,g;return(g=(y=(b=u.payload)==null?void 0:b.data)==null?void 0:y.reduce)==null?void 0:g.call(y,(d,x)=>d+x.value,0)},[]),o=Lt(u=>{const b=new Kt(n(u)||0),y=t?.reduce((x,O)=>x+n(O),0)||0,g=new Kt(y),d=Number(b.div(g).times(100).toFixed(2,Kt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=Vt(()=>n(e),[e,n]),i=Yt(a),s=Vt(()=>Number(o(e)),[e,o]),f=Yt(s),c=Lt(u=>Math.floor(u).toLocaleString(),[]),p=Lr({type:"text/plain"}),h=kr();return l.jsxs(Vr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Te,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Ce,{children:[l.jsxs(fe,{component:"p",variant:"caption",children:[l.jsx(Ce,{component:"span",display:"inline-flex",mr:.5,children:l.jsx(zr,{from:i??0,to:a,map:c,children:"0"})}),l.jsxs(Ce,{component:"span",direction:"row",display:"inline-flex",children:["(",l.jsx(zr,{from:f??0,to:s,map:c,children:"0"}),"%)"]})]}),l.jsx(fe,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(fe,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&l.jsxs(fe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{p.copy(e.payload.uuid).catch(()=>{}),h.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function vo(e){const{payload:t}=e;return l.jsx(pt,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Fr,{children:t?.map(r=>l.jsx(pt,{children:l.jsx(Gc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.payload.uuid}-${r.value}`))})})}function xo(e){const t=Oe();return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(yt,{children:l.jsxs(Ar,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(zt,{vertical:!1}),l.jsx(Ut,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Dr(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Gt,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&l.jsx(Lo,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),l.jsx(Wt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Pr(r,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:r=>-Number(r?.value??0)}),l.jsx(Bt,{content:l.jsx(vo,{showUuid:e.showUuid})}),e.data.map(r=>Po(Nr,{uuid:r.uuid,integrationType:r.integrationType,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}function Wc({entry:e,showUuid:t=!0}){const r=Lr({type:"text/plain"}),n=kr();return l.jsxs(Vr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Te,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Ce,{children:[l.jsx(fe,{variant:"body1",children:e.value}),e.integrationType&&l.jsx(fe,{variant:"body2",children:e.integrationType}),t&&e.uuid&&l.jsxs(fe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{e.uuid&&(r.copy(e.uuid).catch(()=>{}),n.enqueueSnackbar("UUID copied to clipboard","success"))},children:[e.uuid.slice(0,5),"..."]})]})]})}function Bc(e){const{payload:t}=e;return l.jsx(pt,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Fr,{children:t?.map(r=>l.jsx(pt,{children:l.jsx(Wc,{entry:r,showUuid:e.showUuid})},`item-${r.uuid}-${r.value}`))})})}const Kc=(e,t)=>{const r=new Map;return e.forEach(n=>{n.chartData.forEach(o=>{const a=new Date(o.date).getTime().toString();if(!r.has(a)){const s={date:a};r.set(a,s)}const i=r.get(a);t.forEach(({key:s})=>{var f;const c=`${n.uuid}_${s}`,p=o[s],h=(f=t.find(b=>b.isTotal))==null?void 0:f.key,u=typeof p=="string"?p.trim()===""?0:parseInt(p,10):typeof p=="number"?p:0;if(i[`${c}_absolute`]=u,s!==h){const b=o[h??""];let y;b===0?y=100:y=b>0?parseFloat(new Rr(u.toString()).div(b).mul(100).toFixed(2,Rr.ROUND_DOWN)):0,i[c]=y}else i[c]=100})})}),Array.from(r.values()).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function wo(e){const t=Oe(),r=Vt(()=>e.data?Kc(e.data,e.keyValues):[],[e.data,e.keyValues]);return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(yt,{width:"100%",height:"100%",children:l.jsxs(Ar,{data:r,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(zt,{strokeDasharray:"3 3"}),l.jsx(Ut,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Dr(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Gt,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(0)}%`}),l.jsx(Wt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Pr(n,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:n=>-Number(n?.value??0),formatter:(n,o)=>{const a=typeof n=="number"?n.toFixed(1):n;return[`${o}: ${a}%`]}}),l.jsx(Bt,{content:n=>{var o;const{height:a,width:i,...s}=n,f=r[r.length-1];Object.entries(f).forEach(([p,h])=>{});const c=new Map;return e.data.forEach(p=>{e.keyValues.filter(h=>!h.isTotal&&h.key==="oneClickSuccess").forEach(h=>{const u=`${p.uuid}_${h.key}`;c.set(u,p.uuid),c.set(`${u}_integrationType`,p.integrationType??"")})}),l.jsx(Bc,{...s,payload:(o=n.payload)==null?void 0:o.map(p=>({uuid:c.get(p.dataKey)??"",value:p.value,color:p.color??t.palette.primary.main,integrationType:c.get(`${p.dataKey}_integrationType`),dataKey:p.dataKey}))})}}),e.data.map(n=>e.keyValues.filter(o=>!o.isTotal&&o.key==="oneClickSuccess").map(o=>l.jsx(Nr,{type:"monotone",dataKey:`${n.uuid}_${o.key}`,name:n.name??n.uuid,stroke:n.color??t.palette.primary.main,strokeWidth:2,dot:!1},`${n.uuid}_${o.key}`)))]})})})}function ft(e){const t=Yt(e.value),{ref:r}=ra({from:t??0,to:e.value,duration:1,map:e.map});return l.jsx(Er,{sx:{p:3,flex:1,...e.sx},children:l.jsxs(Ce,{spacing:1,alignItems:"center",children:[l.jsx(fe,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),l.jsx(fe,{color:"text.secondary",children:e.label})]})})}const So={margin:{top:5,right:30,left:20,bottom:5}},Yc={tickLine:!1,fontSize:12,tickMargin:12},qc={textAnchor:"end",tickLine:!1};function Ft({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:f}){const c=Oe(),p=u=>!u.isFront,h=u=>!!u.isFront;return l.jsx(Te,{sx:{width:"100%",height:"100%",...f},children:l.jsx(yt,{children:l.jsxs(Vo,{data:e,...So,children:[l.jsx(zt,{strokeDasharray:"3 3",vertical:!1}),l.jsx(Ut,{...Yc,...r}),l.jsx(Gt,{...qc,...n}),l.jsx(Wt,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(p).map((u,b)=>l.jsx(_r,{...u},u.label??b)),s?.filter(p).map((u,b)=>l.jsx(Mr,{...u},u.label??b)),t.map(u=>l.jsx(zo,{name:u.key,dataKey:u.dataKey,fill:u.color,stackId:"stack",isAnimationActive:!1,...a},u.key)),i?.filter(h).map((u,b)=>l.jsx(_r,{...u},u.label??b)),s?.filter(h).map((u,b)=>l.jsx(Mr,{...u},u.label??b))]})})})}const le={ALLOW:{MIN:0,MAX:400,NAME:"Allow",LABEL:"0-400"},FLAG:{MIN:401,MAX:600,NAME:"Flag",LABEL:"401-600"},BLOCK:{MIN:601,MAX:1e3,NAME:"Block",LABEL:"601-1000"}},Oo={ERR001:"Generic error code",OCE001:"1-Click error code",OCE002:"Unsupported phone number",OCE003:"Either phone or email is required",OCE004:"User not found",OCE005:"Credential requests are missing",OCE006:"User identifier is missing",OCE007:"Missing mandatory credentials",OCE008:"Invalid/expired verification code",OCE009:"Verification code required",OCE010:"Missing fields to autofill",OCE011:"Additional information required",OCE012:"BirthDate or SSN4 mismatch",OCE013:"No credentials found",OCE014:"1-Click request expired",OCE015:"1-Click not found",OCE016:"Conflict request for phone number",OCE017:"Risk score too high",OCE018:"Maximum code attempts exceeded",OCE019:"Maximum input attempts exceeded"},Re=()=>({regularChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500},smallChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:300}});function jo(e){return l.jsx(fe,{variant:"h6",fontWeight:"900",...e})}function ko(e){return l.jsx(fe,{variant:"h6",fontWeight:"400",...e})}function _e(){const e=Re();return l.jsxs(Ce,{sx:e.smallChartWrapper,children:[l.jsx(jo,{children:"No data available for the selected period and brands"}),l.jsx(ko,{children:"Please select a different period or brand"})]})}function Me(){const e=Re();return l.jsxs(Ce,{sx:e.smallChartWrapper,children:[l.jsx(jo,{children:"Loading..."}),l.jsx(ko,{children:"Preparing your chart data"})]})}function Hc({data:e,threshold:t=120,isLoading:r,isFetching:n,isSuccess:o,sx:a}){const i=Oe(),s=Re(),f=Object.entries(e??{}).map(([p,h])=>({key:p,[p]:h})),c=f.map(({key:p})=>({key:p,dataKey:p,color:i.palette.error.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(Ft,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:f,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>`${Oo[p]?`${Oo[p]}`:""}`}})}function Zc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,sx:a}){const i=Oe(),s=Re(),f=Object.entries(e??{}).map(([p,h])=>({key:p,[p]:h})),c=f.map(({key:p})=>({key:p,dataKey:p,color:i.palette.warning.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(Ft,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:f,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>"Total"}})}function $o({payload:e=[],hiddenItems:t,onToggle:r,legendLabel:n}){return l.jsx(Te,{sx:{display:"flex",justifyContent:"center",gap:"20px",paddingTop:"20px"},children:e.map((o,a)=>{const i=t.has(o.payload.name);return l.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",opacity:i?.4:1},onClick:()=>{r?.(o.payload)},children:[l.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:o.color,marginRight:"8px",borderRadius:"2px"}}),l.jsx("span",{style:{color:o.color},children:n?`${n}: ${o.value}`:o.value})]},`legend-${a}`)})})}const Jc=e=>{const t=Math.PI/180,{cx:r,cy:n,midAngle:o,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f,fill:c,payload:p,percent:h,value:u,valueText:b,valuePercentage:y,needleVisible:g,customText:d,allActive:x}=e,O=Math.sin(-t*o),j=Math.cos(-t*o),F=r+(i+5)*j,m=n+(i+5)*O,k=r+(i+15)*j,$=n+(i+15)*O,B=k+(j>=0?1:-1)*22,re=$,Q=j>=0?"start":"end",S=u.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),E=()=>g||x?null:l.jsx("text",{x:r,y:n,dy:8,textAnchor:"middle",fill:"#333",fontSize:14,children:p.name});return l.jsxs("g",{children:[E(),l.jsx(Ir,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f,fill:c}),l.jsx(Ir,{cx:r,cy:n,startAngle:s,endAngle:f,innerRadius:i+2,outerRadius:i+6,fill:c}),l.jsx("path",{d:`M${F},${m}L${k},${$}L${B},${re}`,stroke:c,fill:"none"}),l.jsx("circle",{cx:B,cy:re,r:2,fill:c,stroke:"none"}),l.jsx("text",{x:B+(j>=0?1:-1)*12,y:re,textAnchor:Q,fill:"#333",fontSize:12,children:d||(b?`${b} ${S}`:S)}),y&&l.jsxs("text",{x:B+(j>=0?1:-1)*12,y:re,dy:16,textAnchor:Q,fill:"#999",fontSize:11,children:[`${(h*100).toFixed(2)}%`," (",S,")"]})]})},Qc=e=>{const{value:t,data:r,color:n,innerRadius:o,outerRadius:a,boxDimensions:i,legendDimensions:s,valueText:f}=e,c=Math.PI/180;let p=0;r.forEach(E=>{p+=E.value});const h=i?i.width/2:150,u=(i?i.height/2:200)-s.height/2,b=180*(1-Math.max(0,Math.min(1,t/p))),y=(Number(o)+2*Number(a))/3,g=Math.sin(-c*b),d=Math.cos(-c*b),x=5,O=h-x,j=u,F=O+x*g,m=j-x*d,k=O-x*g,$=j+x*d,B=O+y*d,re=j+y*g,Q=t.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),S=f??Q;return l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:O,cy:j,r:x,fill:n,stroke:"none",style:{pointerEvents:"none"}},"needle-circle"),l.jsx("path",{d:`M${F} ${m}L${k} ${$} L${B} ${re} L${F} ${m}`,stroke:"none",fill:n,style:{pointerEvents:"none"}},"needle-path"),l.jsx("text",{x:O+x,y:j+26,textAnchor:"middle",fill:"#333",fontSize:12,children:S},"needle-value")]})},Xc=(e,t)=>({Allow:t.palette.success.main,Flag:t.palette.warning.main,Block:t.palette.error.main})[e]??t.palette.primary.main;function Eo({data:e,sx:t,legendLabel:r,legendToggle:n=!1,valueText:o="",valuePercentage:a=!0,pie:i,needleVisible:s=!1,needleValue:f,needleColor:c="#aaa",allActive:p=!1}){const{innerRadius:h=60,outerRadius:u=100}=i??{},b=Oe(),[y,g]=mt(void 0),[d,x]=mt(new Set),O=Fo(null),[j,F]=mt(null),[m,k]=mt(null),$=(S,E)=>{p||g(E)},B=()=>{p||g(void 0)},re=S=>{n&&S&&x(E=>{const z=new Set(E);return z.has(S.name)?z.delete(S.name):z.size<e.length-1&&z.add(S.name),z})},Q=e.map((S,E)=>({...S,index:E,value:d.has(S.name)?0:S.value}));return Cr(()=>{const S=O.current;if(!S)return;const E=new ResizeObserver(H=>{var oe;const K=(oe=H[0])==null?void 0:oe.contentRect;K&&F(K)});E.observe(S);const z=S.getBoundingClientRect();return F(z),()=>{E.disconnect()}},[]),Cr(()=>{var S;const E=(S=O.current)==null?void 0:S.querySelector(".recharts-legend-wrapper");if(!E){const oe=setInterval(()=>{var K;const X=(K=O.current)==null?void 0:K.querySelector(".recharts-legend-wrapper");if(X){const Ie=X.getBoundingClientRect();k(Ie),clearInterval(oe)}},100);return()=>{clearInterval(oe)}}const z=new ResizeObserver(oe=>{var K;const X=(K=oe[0])==null?void 0:K.contentRect;X&&k(X)});z.observe(E);const H=E.getBoundingClientRect();return k(H),()=>{z.disconnect()}},[]),l.jsx(Te,{ref:O,sx:{width:"100%",height:"100%","& g":{outline:"none"},...t},children:l.jsx(yt,{children:l.jsxs(Uo,{...So,children:[l.jsx(Go,{data:Q,nameKey:"name",dataKey:"value",innerRadius:h,outerRadius:u,activeIndex:p?Q.filter(S=>S.value>0).map(S=>S.index):y,activeShape:S=>Jc({...S,valueText:o,valuePercentage:a,needleVisible:s,allActive:p}),paddingAngle:0,onMouseEnter:$,onMouseLeave:B,...i,children:Q.map(S=>l.jsx(Wo,{fill:S.color??Xc(S.name,b),opacity:d.has(S.name)?.5:1,stroke:"none"},S.name))}),l.jsx(Bt,{content:l.jsx($o,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&f!==void 0&&j&&m&&Qc({data:Q,value:f,color:c,innerRadius:h,outerRadius:u,boxDimensions:j,legendDimensions:m,valueText:o})]})})})}function el({data:e,score:t=200,legendLabel:r,isLoading:n,isFetching:o,isSuccess:a,sx:i}){const s=Oe(),f=Re();if(n)return l.jsx(Me,{});if(!e||e.length<=0||!a)return l.jsx(_e,{});const c=[{name:le.ALLOW.NAME,customText:le.ALLOW.LABEL,value:e[0].value,color:s.palette.primary.main},{name:le.FLAG.NAME,customText:le.FLAG.LABEL,value:e[1].value,color:s.palette.warning.main},{name:le.BLOCK.NAME,customText:le.BLOCK.LABEL,value:e[2].value,color:s.palette.error.main}];return l.jsx(Eo,{data:c,legendToggle:!0,needleValue:t,legendLabel:r,allActive:!0,sx:{...f.smallChartWrapper,opacity:o?.4:1,...i}})}function tl({data:e,isLoading:t,isFetching:r,isSuccess:n,sx:o}){const a=Oe(),i=Re(),s=(c=>{const p={};return c.forEach(h=>{Object.entries(h).forEach(([u,b])=>{const y=parseInt(u);y<=1e3&&(p[y]=(p[y]||0)+b)})}),Array.from({length:1001},(h,u)=>({key:u.toString(),value:p[u]||0}))})(e),f=[{key:"Risk Score",dataKey:"value",color:a.palette.error.main}];return t?l.jsx(Me,{}):!e||Object.keys(e).length===0||!n?l.jsx(_e,{}):l.jsx(Ft,{data:s,series:f,sx:{...i.smallChartWrapper,opacity:r?.4:1,...o},yAxis:{label:{value:"Count",angle:-90,position:"insideLeft"},domain:[0,"dataMax + 10"]},xAxis:{domain:[0,"dataMax"],interval:"preserveStartEnd"},tooltip:{labelFormatter:()=>"Risk Score",formatter:(c,p,h)=>[c,h.payload.key]},referenceAreas:[{x1:le.ALLOW.MIN,x2:le.ALLOW.MAX,fill:"#ffffff00",isFront:!1,label:le.ALLOW.NAME},{x1:le.FLAG.MIN,x2:le.FLAG.MAX,fill:a.palette.warning.light,isFront:!1,label:le.FLAG.NAME},{x1:le.BLOCK.MIN,fill:a.palette.error.light,isFront:!1,label:le.BLOCK.NAME}]})}function rl({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o,sx:a}){var i,s;Oe();const f=Re(),c={oneClickCreated:{key:"oneClickCreated",name:"Started",isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished"}};return t?l.jsx(Me,{}):!e.length||!((s=(i=e[0])==null?void 0:i.chartData)!=null&&s.length)||!n?l.jsx(_e,{}):l.jsx(wo,{data:e,keyValues:Object.values(c),filter:o,sx:{...f.smallChartWrapper,opacity:r?.4:1,...a}})}const nl={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function ol({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o}){return t?l.jsx(Me,{}):!e.length||!n?l.jsx(_e,{}):l.jsx(xo,{label:"Uniques",data:e,filter:o,sx:{...nl.chartWrapper,opacity:r?.4:1}})}function al(e){const{brands:t,data:r,keyValue:n}=e,o=t.flatMap(({_raw:a})=>{var i;const s=r?.find(c=>c.brandUuid===a.brandUuid),f=(s?.interval??[]).map(c=>({date:+new Date(c.date),value:Number(c[n]||0)})).filter(c=>e.filterOutZeroValues?c.value>0:!0);return{uuid:a.brandUuid,name:a.brandName,integrationType:Gr(a.integrationType),color:((i=a.additionalData)==null?void 0:i.primaryColor)??Bo(a.brandUuid),chartData:f}});return Ko.chain(o).sortBy(a=>a.name).toArray().value()}const il=({data:e,brands:t})=>e.flatMap(r=>{const n=t.find(o=>o.brandUuid===r.brandUuid);return!n||!r.interval?[]:r.interval.map(o=>({month:o.date,brandUuid:r.brandUuid,brand:n.brandName,integrationType:Gr(n.integrationType),total:o.oneClickCreated,finished:o.oneClickSuccess,totalCost:o.totalCost}))}),sl=({data:e,isLoading:t,showTotalCost:r=!0})=>t?l.jsx(Me,{}):e!=null&&e.length?l.jsx(_o,{component:Er,children:l.jsxs(Mo,{children:[l.jsx(Io,{children:l.jsxs(Tr,{children:[l.jsx(de,{children:"Month"}),l.jsx(de,{children:"Brand"}),l.jsx(de,{children:"Integration Type"}),l.jsx(de,{align:"right",children:"Started"}),l.jsx(de,{align:"right",children:"Finished"}),r&&l.jsx(de,{align:"right",children:"Total Cost"})]})}),l.jsx(Ro,{children:e.map(n=>l.jsxs(Tr,{children:[l.jsx(de,{children:new Date(n.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:"UTC"})}),l.jsx(de,{children:n.brand}),l.jsx(de,{children:n.integrationType}),l.jsx(de,{align:"right",children:n.total}),l.jsx(de,{align:"right",children:n.finished}),r&&l.jsx(de,{align:"right",children:n.totalCost??"-"})]},`${n.brandUuid}-${n.month}`))})]})}):l.jsx(_e,{});function cl({lastUpdated:e}){return l.jsxs(fe,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",zc(e??Date.now(),{hour12:!1}),"."]})}const To=e=>new Intl.NumberFormat("en-US").format(Number(e.toFixed(0))),ll=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),ul=e=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),Co={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function pl(e){if(!(e!=null&&e.length))return Co;const t=e.reduce((a,i)=>a+(i.overall.oneClickCreated||0),0),r=e.reduce((a,i)=>a+(i.overall.oneClickSuccess||0),0),n=e.reduce((a,i)=>{const s=i.overall.totalCost?Number(i.overall.totalCost.replace("$","").replace(/,/g,"")):0;return a+s},0),o=r/t;return{totalSignups:t,totalSuccess:r,totalCost:n,successRate:isNaN(o)?0:o}}function fl({chartData:e,isLoading:t=!0,hideTotalCost:r=!1}){const n=t?Co:pl(e);return l.jsxs(Ce,{direction:"row",spacing:3,children:[l.jsx(ft,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:To}),l.jsx(ft,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:To}),!r&&l.jsx(ft,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:ll}),l.jsx(ft,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:ul})]})}export{gr as A,ft as B,Uc as C,pn as D,Hc as E,fn as F,Rn as G,De as H,ve as I,fo as J,lr as K,Me as L,sl as M,so as N,rl as O,Eo as P,Vc as Q,Zc as R,xo as S,br as T,pt as U,Or as W,me as _,vo as a,wo as b,Ft as c,el as d,tl as e,$o as f,ol as g,il as h,_e as i,cl as j,fl as k,pa as l,al as m,C as n,vr as o,to as p,an as q,po as r,lo as s,sn as t,kr as u,co as v,kt as w,ga as x,Xt as y,mr as z};
@@ -1,4 +1,4 @@
1
- "use strict";var v5=Object.defineProperty,x5=(t,r,n)=>r in t?v5(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,G=(t,r,n)=>x5(t,typeof r!="symbol"?r+"":r,n);import{j as o}from"./jsx-runtime-DHlBLioN.mjs";import*as v from"react";import P,{Children as y5,isValidElement as k2,cloneElement as g6,forwardRef as j3,createContext as e2,useEffect as D1,useContext as t2,useMemo as i1,useState as p1,useRef as F1,useCallback as O3,useLayoutEffect as K4,createElement as M5,Component as E1,createRef as N3,useImperativeHandle as w5,useReducer as k5,memo as b6,Fragment as U4}from"react";import{Typography as z1,Box as V,Tooltip as j5,IconButton as v6,Stack as n1,Autocomplete as x6,TextField as V1,Radio as S5,Chip as T5,RadioGroup as k7,Dialog as _5,DialogTitle as P5,DialogContent as A5,DialogActions as D5,useTheme as U3,Paper as Q4,Accordion as Z5,AccordionSummary as E5,AccordionDetails as R5,Link as O5,Alert as N5,InputAdornment as j7,Button as X4,Menu as z5,MenuItem as J4,FormControl as e8,InputBase as I5,Popper as F5,FormHelperText as G5,Checkbox as t8,Skeleton as V5,AlertTitle as B5,Backdrop as W5,CircularProgress as Y5}from"@mui/material";import{useForm as n8,FormProvider as r8,useController as Q3,useFormContext as y6,useFieldArray as $5,appendErrors as q5}from"react-hook-form";import{d as j2,b as a8,a as H5,u as K5}from"./useOnClickOutside-DgJxDzLx.mjs";import{o as U5}from"./omitProperty-DZYdN2vK.mjs";import{Code as Q5,Delete as X5,ChevronLeft as J5,Menu as ee,CheckCircle as te,Close as S7,Add as ne,CalendarToday as re,KeyboardArrowDown as ae,Image as oe,LocationOn as ie,Edit as Ce}from"@mui/icons-material";import{useDrag as se,useDrop as le,DndProvider as ce}from"react-dnd";import{HTML5Backend as de}from"react-dnd-html5-backend";import{_ as A1}from"./uuidColor-LRbEKYAZ.mjs";import{l as M6,_ as H,n as j,o as o8,G as ue,p as b1,q as B,s as Y,r as M1,t as w1,v as p3,w as K,x as z3,y as pe,z as he,A as i8,T as C8,D as s8,F as l8,H as c8,I as T7,J as _7,N as fe,Q as me,U as P7,u as Le}from"./SignupBigNumbers-Dhlkn8Tm.mjs";import{a as d8}from"./usePrevious-DG_IMu2h.mjs";import{g as u8}from"./_baseGetTag-B6tQMIzM.mjs";import{c as p8,s as ge,a as h8,t as f8,_ as be,p as ve}from"./phone-eqP--V9t.mjs";import{useQuery as xe,QueryClient as ye,QueryClientProvider as Me}from"@tanstack/react-query";import{produce as w6}from"immer";import{validateFieldsNatively as we,toNestErrors as ke}from"@hookform/resolvers";import*as Z1 from"zod";import je,{isValidPhoneNumber as Se}from"libphonenumber-js";import{p as Te}from"./phone.schema-XBbyizhq.mjs";import{IMaskInput as m8}from"react-imask";import*as L8 from"react-dom";import n2 from"react-dom";import"qrcode";import"framer-motion";import{masks as g8}from"../utils/masks/index.mjs";import _e from"@mona-health/react-input-mask";import{wrapPromise as A7}from"../utils/wrapPromise/index.mjs";import{keyframes as D7}from"@emotion/react";const Tp=M6.oneOfType([M6.func,M6.object]);function Z7(t,r){return()=>null}function Pe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function Ae(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!Pe(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const _p=Z7(M6.elementType,Ae);function E7(t,r){typeof t=="function"?t(r):t&&(t.current=r)}function B1(...t){return v.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(n=>{E7(n,r)})},t)}const X3=typeof window<"u"?v.useLayoutEffect:v.useEffect;function k6(t){const r=v.useRef(t);return X3(()=>{r.current=t}),v.useRef((...n)=>(0,r.current)(...n)).current}const b8={};function De(t,r){const n=v.useRef(b8);return n.current===b8&&(n.current=t(r)),n}const Ze=[];function Ee(t){v.useEffect(t,Ze)}class w7{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new w7}start(r,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},r)}}function v8(){const t=De(w7.create).current;return Ee(t.disposeEffect),t}let S2=!0,R7=!1;const Re=new w7,Oe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ne(t){const{type:r,tagName:n}=t;return!!(n==="INPUT"&&Oe[r]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function ze(t){t.metaKey||t.altKey||t.ctrlKey||(S2=!0)}function O7(){S2=!1}function Ie(){this.visibilityState==="hidden"&&R7&&(S2=!0)}function Fe(t){t.addEventListener("keydown",ze,!0),t.addEventListener("mousedown",O7,!0),t.addEventListener("pointerdown",O7,!0),t.addEventListener("touchstart",O7,!0),t.addEventListener("visibilitychange",Ie,!0)}function Ge(t){const{target:r}=t;try{return r.matches(":focus-visible")}catch{}return S2||Ne(r)}function Ve(){const t=v.useCallback(a=>{a!=null&&Fe(a.ownerDocument)},[]),r=v.useRef(!1);function n(){return r.current?(R7=!0,Re.start(100,()=>{R7=!1}),r.current=!1,!0):!1}function e(a){return Ge(a)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:e,onBlur:n,ref:t}}function N7(t,r){return N7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},N7(t,r)}function x8(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,N7(t,r)}const y8={disabled:!1};var Pp=null;const T2=P.createContext(null);var Be=function(t){return t.scrollTop},r2="unmounted",J3="exited",e6="entering",j6="entered",z7="exiting",h3=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=a,s=C&&!C.isMounting?e.enter:e.appear,l;return i.appearStatus=null,e.in?s?(l=J3,i.appearStatus=e6):l=j6:e.unmountOnExit||e.mountOnEnter?l=r2:l=J3,i.state={status:l},i.nextCallback=null,i}r.getDerivedStateFromProps=function(e,a){var i=e.in;return i&&a.status===r2?{status:J3}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var a=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==e6&&i!==j6&&(a=e6):(i===e6||i===j6)&&(a=z7)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,a,i,C;return a=i=C=e,e!=null&&typeof e!="number"&&(a=e.exit,i=e.enter,C=e.appear!==void 0?e.appear:i),{exit:a,enter:i,appear:C}},n.updateStatus=function(e,a){if(e===void 0&&(e=!1),a!==null)if(this.cancelNextCallback(),a===e6){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this);i&&Be(i)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===J3&&this.setState({status:r2})},n.performEnter=function(e){var a=this,i=this.props.enter,C=this.context?this.context.isMounting:e,s=this.props.nodeRef?[C]:[n2.findDOMNode(this),C],l=s[0],c=s[1],d=this.getTimeouts(),u=C?d.appear:d.enter;if(!e&&!i||y8.disabled){this.safeSetState({status:j6},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:e6},function(){a.props.onEntering(l,c),a.onTransitionEnd(u,function(){a.safeSetState({status:j6},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var e=this,a=this.props.exit,i=this.getTimeouts(),C=this.props.nodeRef?void 0:n2.findDOMNode(this);if(!a||y8.disabled){this.safeSetState({status:J3},function(){e.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:z7},function(){e.props.onExiting(C),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:J3},function(){e.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,a){a=this.setNextCallback(a),this.setState(e,a)},n.setNextCallback=function(e){var a=this,i=!0;return this.nextCallback=function(C){i&&(i=!1,a.nextCallback=null,e(C))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(e,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this),C=e==null&&!this.props.addEndListener;if(!i||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===r2)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var C=H(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return P.createElement(T2.Provider,{value:null},typeof i=="function"?i(e,C):P.cloneElement(P.Children.only(i),C))},r}(P.Component);h3.contextType=T2,h3.propTypes={};function S6(){}h3.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S6,onEntering:S6,onEntered:S6,onExit:S6,onExiting:S6,onExited:S6},h3.UNMOUNTED=r2,h3.EXITED=J3,h3.ENTERING=e6,h3.ENTERED=j6,h3.EXITING=z7;function We(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I7(t,r){var n=function(a){return r&&k2(a)?r(a):a},e=Object.create(null);return t&&y5.map(t,function(a){return a}).forEach(function(a){e[a.key]=n(a)}),e}function Ye(t,r){t=t||{},r=r||{};function n(d){return d in r?r[d]:t[d]}var e=Object.create(null),a=[];for(var i in t)i in r?a.length&&(e[i]=a,a=[]):a.push(i);var C,s={};for(var l in r){if(e[l])for(C=0;C<e[l].length;C++){var c=e[l][C];s[e[l][C]]=n(c)}s[l]=n(l)}for(C=0;C<a.length;C++)s[a[C]]=n(a[C]);return s}function t6(t,r,n){return n[r]!=null?n[r]:t.props[r]}function $e(t,r){return I7(t.children,function(n){return g6(n,{onExited:r.bind(null,n),in:!0,appear:t6(n,"appear",t),enter:t6(n,"enter",t),exit:t6(n,"exit",t)})})}function qe(t,r,n){var e=I7(t.children),a=Ye(r,e);return Object.keys(a).forEach(function(i){var C=a[i];if(k2(C)){var s=i in r,l=i in e,c=r[i],d=k2(c)&&!c.props.in;l&&(!s||d)?a[i]=g6(C,{onExited:n.bind(null,C),in:!0,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}):!l&&s&&!d?a[i]=g6(C,{in:!1}):l&&s&&k2(c)&&(a[i]=g6(C,{onExited:n.bind(null,C),in:c.props.in,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}))}}),a}var He=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},Ke={component:"div",childFactory:function(t){return t}},F7=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=i.handleExited.bind(We(i));return i.state={contextValue:{isMounting:!0},handleExited:C,firstRender:!0},i}var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,a){var i=a.children,C=a.handleExited,s=a.firstRender;return{children:s?$e(e,C):qe(e,i,C),firstRender:!1}},n.handleExited=function(e,a){var i=I7(this.props.children);e.key in i||(e.props.onExited&&e.props.onExited(a),this.mounted&&this.setState(function(C){var s=j({},C.children);return delete s[e.key],{children:s}}))},n.render=function(){var e=this.props,a=e.component,i=e.childFactory,C=H(e,["component","childFactory"]),s=this.state.contextValue,l=He(this.state.children).map(i);return delete C.appear,delete C.enter,delete C.exit,a===null?P.createElement(T2.Provider,{value:s},l):P.createElement(T2.Provider,{value:s},P.createElement(a,C,l))},r}(P.Component);F7.propTypes={},F7.defaultProps=Ke;function Ue({styles:t,themeId:r,defaultTheme:n={}}){const e=o8(n),a=typeof t=="function"?t(r&&e[r]||e):t;return o.jsx(ue,{styles:a})}function v1(t,r,n="Mui"){const e={};return r.forEach(a=>{e[a]=b1(t,a,n)}),e}function Qe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function M8(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;const l=i.type;return typeof l=="function"&&!Qe(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xe=Z7(M6.element,M8);Xe.isRequired=Z7(M6.element.isRequired,M8);const Ap="exact-prop: \u200B";function Dp(t){return t}function Zp(t,r,n,e,a){return null}function w8(...t){return t.reduce((r,n)=>n==null?r:function(...e){r.apply(this,e),n.apply(this,e)},()=>{})}function k8(t,r=166){let n;function e(...a){const i=()=>{t.apply(this,a)};clearTimeout(n),n=setTimeout(i,r)}return e.clear=()=>{clearTimeout(n)},e}function U1(t){return t&&t.ownerDocument||document}function n6(t){return U1(t).defaultView||window}let j8=0;function Je(t){const[r,n]=v.useState(t),e=t||r;return v.useEffect(()=>{r==null&&(j8+=1,n(`mui-${j8}`))},[r]),e}const S8=v.useId;function T8(t){if(S8!==void 0){const r=S8();return t??r}return Je(t)}function _8({controlled:t,default:r,name:n,state:e="value"}){const{current:a}=v.useRef(t!==void 0),[i,C]=v.useState(r),s=a?t:i,l=v.useCallback(c=>{a||C(c)},[]);return[s,l]}function P8(t){const r=t.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}function et(t){const r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":Number.isFinite(t)?t!==Math.floor(t)?"float":"number":"Infinity";case"object":return t===null?"null":t.constructor.name;default:return r}}function tt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const nt=Number.isInteger||tt;function A8(t,r,n,e){const a=t[r];if(a==null||!nt(a)){const i=et(a);return new RangeError(`Invalid ${e} \`${r}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rt(t,r,...n){return t[r]===void 0?null:A8(t,r,...n)}function G7(){return null}rt.isRequired=A8,G7.isRequired=G7;const Ep=G7,at=v.createContext(),ot=()=>v.useContext(at)??!1;function it(t){const{className:r,classes:n,pulsate:e=!1,rippleX:a,rippleY:i,rippleSize:C,in:s,onExited:l,timeout:c}=t,[d,u]=v.useState(!1),p=B(r,n.ripple,n.rippleVisible,e&&n.ripplePulsate),h={width:C,height:C,top:-(C/2)+i,left:-(C/2)+a},m=B(n.child,d&&n.childLeaving,e&&n.childPulsate);return!s&&!d&&u(!0),v.useEffect(()=>{if(!s&&l!=null){const L=setTimeout(l,c);return()=>{clearTimeout(L)}}},[l,s,c]),o.jsx("span",{className:p,style:h,children:o.jsx("span",{className:m})})}const n3=v1("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ct=["center","classes","className"];let _2=t=>t,D8,Z8,E8,R8;const V7=550,st=80,lt=D7(D8||(D8=_2`
1
+ "use strict";var v5=Object.defineProperty,x5=(t,r,n)=>r in t?v5(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,G=(t,r,n)=>x5(t,typeof r!="symbol"?r+"":r,n);import{j as o}from"./jsx-runtime-DHlBLioN.mjs";import*as v from"react";import P,{Children as y5,isValidElement as k2,cloneElement as g6,forwardRef as j3,createContext as e2,useEffect as D1,useContext as t2,useMemo as i1,useState as p1,useRef as F1,useCallback as O3,useLayoutEffect as K4,createElement as M5,Component as E1,createRef as N3,useImperativeHandle as w5,useReducer as k5,memo as b6,Fragment as U4}from"react";import{Typography as z1,Box as V,Tooltip as j5,IconButton as v6,Stack as n1,Autocomplete as x6,TextField as V1,Radio as S5,Chip as T5,RadioGroup as k7,Dialog as _5,DialogTitle as P5,DialogContent as A5,DialogActions as D5,useTheme as U3,Paper as Q4,Accordion as Z5,AccordionSummary as E5,AccordionDetails as R5,Link as O5,Alert as N5,InputAdornment as j7,Button as X4,Menu as z5,MenuItem as J4,FormControl as e8,InputBase as I5,Popper as F5,FormHelperText as G5,Checkbox as t8,Skeleton as V5,AlertTitle as B5,Backdrop as W5,CircularProgress as Y5}from"@mui/material";import{useForm as n8,FormProvider as r8,useController as Q3,useFormContext as y6,useFieldArray as $5,appendErrors as q5}from"react-hook-form";import{d as j2,b as a8,a as H5,u as K5}from"./useOnClickOutside-DgJxDzLx.mjs";import{o as U5}from"./omitProperty-DZYdN2vK.mjs";import{Code as Q5,Delete as X5,ChevronLeft as J5,Menu as ee,CheckCircle as te,Close as S7,Add as ne,CalendarToday as re,KeyboardArrowDown as ae,Image as oe,LocationOn as ie,Edit as Ce}from"@mui/icons-material";import{useDrag as se,useDrop as le,DndProvider as ce}from"react-dnd";import{HTML5Backend as de}from"react-dnd-html5-backend";import{_ as A1}from"./uuidColor-LRbEKYAZ.mjs";import{l as M6,_ as H,n as j,o as o8,G as ue,p as b1,q as B,s as Y,r as M1,t as w1,v as p3,w as K,x as z3,y as pe,z as he,A as i8,T as C8,D as s8,F as l8,H as c8,I as T7,J as _7,N as fe,Q as me,U as P7,u as Le}from"./SignupBigNumbers-BRtnxvpN.mjs";import{a as d8}from"./usePrevious-DG_IMu2h.mjs";import{g as u8}from"./_baseGetTag-B6tQMIzM.mjs";import{c as p8,s as ge,a as h8,t as f8,_ as be,p as ve}from"./phone-eqP--V9t.mjs";import{useQuery as xe,QueryClient as ye,QueryClientProvider as Me}from"@tanstack/react-query";import{produce as w6}from"immer";import{validateFieldsNatively as we,toNestErrors as ke}from"@hookform/resolvers";import*as Z1 from"zod";import je,{isValidPhoneNumber as Se}from"libphonenumber-js";import{p as Te}from"./phone.schema-XBbyizhq.mjs";import{IMaskInput as m8}from"react-imask";import*as L8 from"react-dom";import n2 from"react-dom";import"qrcode";import"framer-motion";import{masks as g8}from"../utils/masks/index.mjs";import _e from"@mona-health/react-input-mask";import{wrapPromise as A7}from"../utils/wrapPromise/index.mjs";import{keyframes as D7}from"@emotion/react";const Tp=M6.oneOfType([M6.func,M6.object]);function Z7(t,r){return()=>null}function Pe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function Ae(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!Pe(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const _p=Z7(M6.elementType,Ae);function E7(t,r){typeof t=="function"?t(r):t&&(t.current=r)}function B1(...t){return v.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(n=>{E7(n,r)})},t)}const X3=typeof window<"u"?v.useLayoutEffect:v.useEffect;function k6(t){const r=v.useRef(t);return X3(()=>{r.current=t}),v.useRef((...n)=>(0,r.current)(...n)).current}const b8={};function De(t,r){const n=v.useRef(b8);return n.current===b8&&(n.current=t(r)),n}const Ze=[];function Ee(t){v.useEffect(t,Ze)}class w7{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new w7}start(r,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},r)}}function v8(){const t=De(w7.create).current;return Ee(t.disposeEffect),t}let S2=!0,R7=!1;const Re=new w7,Oe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ne(t){const{type:r,tagName:n}=t;return!!(n==="INPUT"&&Oe[r]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function ze(t){t.metaKey||t.altKey||t.ctrlKey||(S2=!0)}function O7(){S2=!1}function Ie(){this.visibilityState==="hidden"&&R7&&(S2=!0)}function Fe(t){t.addEventListener("keydown",ze,!0),t.addEventListener("mousedown",O7,!0),t.addEventListener("pointerdown",O7,!0),t.addEventListener("touchstart",O7,!0),t.addEventListener("visibilitychange",Ie,!0)}function Ge(t){const{target:r}=t;try{return r.matches(":focus-visible")}catch{}return S2||Ne(r)}function Ve(){const t=v.useCallback(a=>{a!=null&&Fe(a.ownerDocument)},[]),r=v.useRef(!1);function n(){return r.current?(R7=!0,Re.start(100,()=>{R7=!1}),r.current=!1,!0):!1}function e(a){return Ge(a)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:e,onBlur:n,ref:t}}function N7(t,r){return N7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},N7(t,r)}function x8(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,N7(t,r)}const y8={disabled:!1};var Pp=null;const T2=P.createContext(null);var Be=function(t){return t.scrollTop},r2="unmounted",J3="exited",e6="entering",j6="entered",z7="exiting",h3=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=a,s=C&&!C.isMounting?e.enter:e.appear,l;return i.appearStatus=null,e.in?s?(l=J3,i.appearStatus=e6):l=j6:e.unmountOnExit||e.mountOnEnter?l=r2:l=J3,i.state={status:l},i.nextCallback=null,i}r.getDerivedStateFromProps=function(e,a){var i=e.in;return i&&a.status===r2?{status:J3}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var a=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==e6&&i!==j6&&(a=e6):(i===e6||i===j6)&&(a=z7)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,a,i,C;return a=i=C=e,e!=null&&typeof e!="number"&&(a=e.exit,i=e.enter,C=e.appear!==void 0?e.appear:i),{exit:a,enter:i,appear:C}},n.updateStatus=function(e,a){if(e===void 0&&(e=!1),a!==null)if(this.cancelNextCallback(),a===e6){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this);i&&Be(i)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===J3&&this.setState({status:r2})},n.performEnter=function(e){var a=this,i=this.props.enter,C=this.context?this.context.isMounting:e,s=this.props.nodeRef?[C]:[n2.findDOMNode(this),C],l=s[0],c=s[1],d=this.getTimeouts(),u=C?d.appear:d.enter;if(!e&&!i||y8.disabled){this.safeSetState({status:j6},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:e6},function(){a.props.onEntering(l,c),a.onTransitionEnd(u,function(){a.safeSetState({status:j6},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var e=this,a=this.props.exit,i=this.getTimeouts(),C=this.props.nodeRef?void 0:n2.findDOMNode(this);if(!a||y8.disabled){this.safeSetState({status:J3},function(){e.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:z7},function(){e.props.onExiting(C),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:J3},function(){e.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,a){a=this.setNextCallback(a),this.setState(e,a)},n.setNextCallback=function(e){var a=this,i=!0;return this.nextCallback=function(C){i&&(i=!1,a.nextCallback=null,e(C))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(e,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this),C=e==null&&!this.props.addEndListener;if(!i||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===r2)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var C=H(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return P.createElement(T2.Provider,{value:null},typeof i=="function"?i(e,C):P.cloneElement(P.Children.only(i),C))},r}(P.Component);h3.contextType=T2,h3.propTypes={};function S6(){}h3.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S6,onEntering:S6,onEntered:S6,onExit:S6,onExiting:S6,onExited:S6},h3.UNMOUNTED=r2,h3.EXITED=J3,h3.ENTERING=e6,h3.ENTERED=j6,h3.EXITING=z7;function We(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I7(t,r){var n=function(a){return r&&k2(a)?r(a):a},e=Object.create(null);return t&&y5.map(t,function(a){return a}).forEach(function(a){e[a.key]=n(a)}),e}function Ye(t,r){t=t||{},r=r||{};function n(d){return d in r?r[d]:t[d]}var e=Object.create(null),a=[];for(var i in t)i in r?a.length&&(e[i]=a,a=[]):a.push(i);var C,s={};for(var l in r){if(e[l])for(C=0;C<e[l].length;C++){var c=e[l][C];s[e[l][C]]=n(c)}s[l]=n(l)}for(C=0;C<a.length;C++)s[a[C]]=n(a[C]);return s}function t6(t,r,n){return n[r]!=null?n[r]:t.props[r]}function $e(t,r){return I7(t.children,function(n){return g6(n,{onExited:r.bind(null,n),in:!0,appear:t6(n,"appear",t),enter:t6(n,"enter",t),exit:t6(n,"exit",t)})})}function qe(t,r,n){var e=I7(t.children),a=Ye(r,e);return Object.keys(a).forEach(function(i){var C=a[i];if(k2(C)){var s=i in r,l=i in e,c=r[i],d=k2(c)&&!c.props.in;l&&(!s||d)?a[i]=g6(C,{onExited:n.bind(null,C),in:!0,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}):!l&&s&&!d?a[i]=g6(C,{in:!1}):l&&s&&k2(c)&&(a[i]=g6(C,{onExited:n.bind(null,C),in:c.props.in,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}))}}),a}var He=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},Ke={component:"div",childFactory:function(t){return t}},F7=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=i.handleExited.bind(We(i));return i.state={contextValue:{isMounting:!0},handleExited:C,firstRender:!0},i}var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,a){var i=a.children,C=a.handleExited,s=a.firstRender;return{children:s?$e(e,C):qe(e,i,C),firstRender:!1}},n.handleExited=function(e,a){var i=I7(this.props.children);e.key in i||(e.props.onExited&&e.props.onExited(a),this.mounted&&this.setState(function(C){var s=j({},C.children);return delete s[e.key],{children:s}}))},n.render=function(){var e=this.props,a=e.component,i=e.childFactory,C=H(e,["component","childFactory"]),s=this.state.contextValue,l=He(this.state.children).map(i);return delete C.appear,delete C.enter,delete C.exit,a===null?P.createElement(T2.Provider,{value:s},l):P.createElement(T2.Provider,{value:s},P.createElement(a,C,l))},r}(P.Component);F7.propTypes={},F7.defaultProps=Ke;function Ue({styles:t,themeId:r,defaultTheme:n={}}){const e=o8(n),a=typeof t=="function"?t(r&&e[r]||e):t;return o.jsx(ue,{styles:a})}function v1(t,r,n="Mui"){const e={};return r.forEach(a=>{e[a]=b1(t,a,n)}),e}function Qe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function M8(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;const l=i.type;return typeof l=="function"&&!Qe(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xe=Z7(M6.element,M8);Xe.isRequired=Z7(M6.element.isRequired,M8);const Ap="exact-prop: \u200B";function Dp(t){return t}function Zp(t,r,n,e,a){return null}function w8(...t){return t.reduce((r,n)=>n==null?r:function(...e){r.apply(this,e),n.apply(this,e)},()=>{})}function k8(t,r=166){let n;function e(...a){const i=()=>{t.apply(this,a)};clearTimeout(n),n=setTimeout(i,r)}return e.clear=()=>{clearTimeout(n)},e}function U1(t){return t&&t.ownerDocument||document}function n6(t){return U1(t).defaultView||window}let j8=0;function Je(t){const[r,n]=v.useState(t),e=t||r;return v.useEffect(()=>{r==null&&(j8+=1,n(`mui-${j8}`))},[r]),e}const S8=v.useId;function T8(t){if(S8!==void 0){const r=S8();return t??r}return Je(t)}function _8({controlled:t,default:r,name:n,state:e="value"}){const{current:a}=v.useRef(t!==void 0),[i,C]=v.useState(r),s=a?t:i,l=v.useCallback(c=>{a||C(c)},[]);return[s,l]}function P8(t){const r=t.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}function et(t){const r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":Number.isFinite(t)?t!==Math.floor(t)?"float":"number":"Infinity";case"object":return t===null?"null":t.constructor.name;default:return r}}function tt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const nt=Number.isInteger||tt;function A8(t,r,n,e){const a=t[r];if(a==null||!nt(a)){const i=et(a);return new RangeError(`Invalid ${e} \`${r}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rt(t,r,...n){return t[r]===void 0?null:A8(t,r,...n)}function G7(){return null}rt.isRequired=A8,G7.isRequired=G7;const Ep=G7,at=v.createContext(),ot=()=>v.useContext(at)??!1;function it(t){const{className:r,classes:n,pulsate:e=!1,rippleX:a,rippleY:i,rippleSize:C,in:s,onExited:l,timeout:c}=t,[d,u]=v.useState(!1),p=B(r,n.ripple,n.rippleVisible,e&&n.ripplePulsate),h={width:C,height:C,top:-(C/2)+i,left:-(C/2)+a},m=B(n.child,d&&n.childLeaving,e&&n.childPulsate);return!s&&!d&&u(!0),v.useEffect(()=>{if(!s&&l!=null){const L=setTimeout(l,c);return()=>{clearTimeout(L)}}},[l,s,c]),o.jsx("span",{className:p,style:h,children:o.jsx("span",{className:m})})}const n3=v1("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ct=["center","classes","className"];let _2=t=>t,D8,Z8,E8,R8;const V7=550,st=80,lt=D7(D8||(D8=_2`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "5.17.0",
3
+ "version": "5.17.1",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -1,2 +0,0 @@
1
- "use strict";import{j as l}from"./jsx-runtime-DHlBLioN.mjs";import{Alert as Ao,Box as Te,IconButton as Er,Stack as Oe,Typography as ue,useTheme as je,Paper as Cr,TableContainer as _o,Table as Mo,TableHead as Io,TableRow as Tr,TableCell as de,TableBody as Ro}from"@mui/material";import*as Ne from"react";import{forwardRef as Do,useCallback as He,useMemo as ht,createElement as Po,useState as yt,useRef as Fo,useEffect as Nr}from"react";import{ResponsiveContainer as gt,LineChart as Ar,CartesianGrid as Ut,XAxis as Gt,YAxis as Wt,Label as Lo,Tooltip as Bt,Legend as Kt,Line as _r,ComposedChart as Vo,ReferenceLine as Mr,ReferenceArea as Ir,Bar as zo,Sector as Rr,PieChart as Uo,Pie as Go,Cell as Wo}from"recharts";import Dr,{Decimal as Yt}from"decimal.js";import{b as Pr,c as Fr,u as Bo,_ as Ko}from"./uuidColor-LRbEKYAZ.mjs";import{AnimatePresence as Lr}from"framer-motion";import{a as bt,u as Vr}from"./usePrevious-DG_IMu2h.mjs";import"qrcode";import{g as Yo,e as Ae}from"./_baseGetTag-B6tQMIzM.mjs";import{a as zr,C as qt}from"./motions-BBPeWBPV.mjs";import qo from"@emotion/styled";import{CacheProvider as Ho,Global as Zo,ThemeContext as Ur,css as Jo,keyframes as Qo}from"@emotion/react";import{k as Gr}from"./formatKebabToPretty-Du43TgPC.mjs";import{Close as Xo}from"@mui/icons-material";import{SnackbarContent as ea,closeSnackbar as Wr,enqueueSnackbar as ta}from"notistack";import{u as ra}from"./useCounter-BV32zXDQ.mjs";function me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(null,arguments)}var Br={exports:{}},Kr={exports:{}},U={},Yr;function na(){if(Yr)return U;Yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function j(m){if(typeof m=="object"&&m!==null){var k=m.$$typeof;switch(k){case t:switch(m=m.type,m){case p:case c:case n:case a:case o:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case f:case y:case b:case i:return m;default:return k}}case r:return k}}}function F(m){return j(m)===c}return U.AsyncMode=p,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=f,U.Fragment=n,U.Lazy=y,U.Memo=b,U.Portal=r,U.Profiler=a,U.StrictMode=o,U.Suspense=h,U.isAsyncMode=function(m){return F(m)||j(m)===p},U.isConcurrentMode=F,U.isContextConsumer=function(m){return j(m)===s},U.isContextProvider=function(m){return j(m)===i},U.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},U.isForwardRef=function(m){return j(m)===f},U.isFragment=function(m){return j(m)===n},U.isLazy=function(m){return j(m)===y},U.isMemo=function(m){return j(m)===b},U.isPortal=function(m){return j(m)===r},U.isProfiler=function(m){return j(m)===a},U.isStrictMode=function(m){return j(m)===o},U.isSuspense=function(m){return j(m)===h},U.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===h||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===i||m.$$typeof===s||m.$$typeof===f||m.$$typeof===d||m.$$typeof===x||m.$$typeof===O||m.$$typeof===g)},U.typeOf=j,U}var oa={},qr;function _l(){return qr||(qr=1),oa}var Hr;function aa(){return Hr||(Hr=1,Kr.exports=na()),Kr.exports}var Ht,Zr;function ia(){if(Zr)return Ht;Zr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var p=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(p.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ht=o()?Object.assign:function(a,i){for(var s,p=n(a),c,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var h in s)t.call(s,h)&&(p[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)r.call(s,c[u])&&(p[c[u]]=s[c[u]])}}return p},Ht}var Zt,Jr;function Qr(){if(Jr)return Zt;Jr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zt=e,Zt}var Xr,en;function sa(){return en||(en=1,Xr=Function.call.bind(Object.prototype.hasOwnProperty)),Xr}var Jt,tn;function ca(){if(tn)return Jt;tn=1;var e=function(){};if(0)var t,r,n;function o(a,i,s,p,c){if(0){for(var f in a)if(n(a,f)){var h;try{if(typeof a[f]!="function")var u}catch(y){}if(h&&!(h instanceof Error)&&e((p||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r))var b}}}return o.resetWarningCache=function(){},Jt=o,Jt}var Qt,rn;function Ml(){if(rn)return Qt;rn=1;var e=aa(),t=ia(),r=Qr(),n=sa(),o=ca(),a=function(){};function i(){return null}return Qt=function(s,p){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(v){var w=v&&(c&&v[c]||v[f]);if(typeof w=="function")return w}var u="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:O(),arrayOf:j,element:F(),elementType:m(),instanceOf:k,node:Q(),objectOf:B,oneOf:$,oneOfType:re,shape:E,exact:z};function y(v,w){return v===w?v!==0||1/v===1/w:v!==v&&w!==w}function g(v,w){this.message=v,this.data=w&&typeof w=="object"?w:{},this.stack=""}g.prototype=Error.prototype;function d(v){if(0)var w,I;function _(R,A,M,P,D,C,Y){if(P=P||u,C=C||M,Y!==r){if(p){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(0)var mt}return A[M]==null?R?A[M]===null?new g("The "+D+" `"+C+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+D+" `"+C+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:v(A,M,P,D,C)}var N=_.bind(null,!1);return N.isRequired=_.bind(null,!0),N}function x(v){function w(I,_,N,R,A,M){var P=I[_],D=K(P);if(D!==v){var C=X(P);return new g("Invalid "+R+" `"+A+"` of type "+("`"+C+"` supplied to `"+N+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return d(w)}function O(){return d(i)}function j(v){function w(I,_,N,R,A){if(typeof v!="function")return new g("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var M=I[_];if(!Array.isArray(M)){var P=K(M);return new g("Invalid "+R+" `"+A+"` of type "+("`"+P+"` supplied to `"+N+"`, expected an array."))}for(var D=0;D<M.length;D++){var C=v(M,D,N,R,A+"["+D+"]",r);if(C instanceof Error)return C}return null}return d(w)}function F(){function v(w,I,_,N,R){var A=w[I];if(!s(A)){var M=K(A);return new g("Invalid "+N+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return d(v)}function m(){function v(w,I,_,N,R){var A=w[I];if(!e.isValidElementType(A)){var M=K(A);return new g("Invalid "+N+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return d(v)}function k(v){function w(I,_,N,R,A){if(!(I[_]instanceof v)){var M=v.name||u,P=Se(I[_]);return new g("Invalid "+R+" `"+A+"` of type "+("`"+P+"` supplied to `"+N+"`, expected ")+("instance of `"+M+"`."))}return null}return d(w)}function $(v){if(!Array.isArray(v))return i;function w(I,_,N,R,A){for(var M=I[_],P=0;P<v.length;P++)if(y(M,v[P]))return null;var D=JSON.stringify(v,function(C,Y){var W=X(Y);return W==="symbol"?String(Y):Y});return new g("Invalid "+R+" `"+A+"` of value `"+String(M)+"` "+("supplied to `"+N+"`, expected one of "+D+"."))}return d(w)}function B(v){function w(I,_,N,R,A){if(typeof v!="function")return new g("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+A+"` of type "+("`"+P+"` supplied to `"+N+"`, expected an object."));for(var D in M)if(n(M,D)){var C=v(M,D,N,R,A+"."+D,r);if(C instanceof Error)return C}return null}return d(w)}function re(v){if(!Array.isArray(v))return i;for(var w=0;w<v.length;w++){var I=v[w];if(typeof I!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(I)+" at index "+w+"."),i}function _(N,R,A,M,P){for(var D=[],C=0;C<v.length;C++){var Y=v[C],W=Y(N,R,A,M,P,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&D.push(W.data.expectedType)}var mt=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new g("Invalid "+M+" `"+P+"` supplied to "+("`"+A+"`"+mt+"."))}return d(_)}function Q(){function v(w,I,_,N,R){return H(w[I])?null:new g("Invalid "+N+" `"+R+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return d(v)}function S(v,w,I,_,N){return new g((v||"React class")+": "+w+" type `"+I+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function E(v){function w(I,_,N,R,A){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+A+"` of type `"+P+"` "+("supplied to `"+N+"`, expected `object`."));for(var D in v){var C=v[D];if(typeof C!="function")return S(N,R,A,D,X(C));var Y=C(M,D,N,R,A+"."+D,r);if(Y)return Y}return null}return d(w)}function z(v){function w(I,_,N,R,A){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+A+"` of type `"+P+"` "+("supplied to `"+N+"`, expected `object`."));var D=t({},I[_],v);for(var C in D){var Y=v[C];if(n(v,C)&&typeof Y!="function")return S(N,R,A,C,X(Y));if(!Y)return new g("Invalid "+R+" `"+A+"` key `"+C+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(I[_],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(v),null," "));var W=Y(M,C,N,R,A+"."+C,r);if(W)return W}return null}return d(w)}function H(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(H);if(v===null||s(v))return!0;var w=h(v);if(w){var I=w.call(v),_;if(w!==v.entries){for(;!(_=I.next()).done;)if(!H(_.value))return!1}else for(;!(_=I.next()).done;){var N=_.value;if(N&&!H(N[1]))return!1}}else return!1;return!0;default:return!1}}function oe(v,w){return v==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function K(v){var w=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":oe(w,v)?"symbol":w}function X(v){if(typeof v>"u"||v===null)return""+v;var w=K(v);if(w==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return w}function Ie(v){var w=X(v);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function Se(v){return!v.constructor||!v.constructor.name?u:v.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Qt}var Xt,nn;function la(){if(nn)return Xt;nn=1;var e=Qr();function t(){}function r(){}return r.resetWarningCache=t,Xt=function(){function n(i,s,p,c,f,h){if(h!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Xt}if(0)var Il,Rl;else Br.exports=la()();var ua=Br.exports;const pa=Yo(ua);function on(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=on(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function an(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=on(e))&&(n&&(n+=" "),n+=t);return n}function er(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=T({},a),Object.keys(o).forEach(i=>{r[n][i]=er(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function sn(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}var ee={},cn={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(cn);var ln=cn.exports;function De(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const fa=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),da=Ae(fa);function ma(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ha=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ya=Ae(ha);var un=ln;Object.defineProperty(ee,"__esModule",{value:!0});var ga=ee.alpha=gn;ee.blend=Ca,ee.colorChannel=void 0;var pn=ee.darken=rr;ee.decomposeColor=he,ee.emphasize=bn;var ba=ee.getContrastRatio=Oa;ee.getLuminance=vt,ee.hexToRgb=mn,ee.hslToRgb=yn;var fn=ee.lighten=nr;ee.private_safeAlpha=ja,ee.private_safeColorChannel=void 0,ee.private_safeDarken=ka,ee.private_safeEmphasize=Ea,ee.private_safeLighten=$a,ee.recomposeColor=Pe,ee.rgbToHex=Sa;var dn=un(da),va=un(ya);function tr(e,t=0,r=1){return(0,va.default)(e,t,r)}function mn(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xa(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function he(e){if(e.type)return e;if(e.charAt(0)==="#")return he(mn(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,dn.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,dn.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const hn=e=>{const t=he(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ee.colorChannel=hn;const wa=(e,t)=>{try{return hn(e)}catch{return e}};ee.private_safeColorChannel=wa;function Pe(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Sa(e){if(e.indexOf("#")===0)return e;const{values:t}=he(e);return`#${t.map((r,n)=>xa(n===3?Math.round(255*r):r)).join("")}`}function yn(e){e=he(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,f=(c+r/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const p=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",p.push(t[3])),Pe({type:s,values:p})}function vt(e){e=he(e);let t=e.type==="hsl"||e.type==="hsla"?he(yn(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Oa(e,t){const r=vt(e),n=vt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function gn(e,t){return e=he(e),t=tr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pe(e)}function ja(e,t,r){try{return gn(e,t)}catch{return e}}function rr(e,t){if(e=he(e),t=tr(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Pe(e)}function ka(e,t,r){try{return rr(e,t)}catch{return e}}function nr(e,t){if(e=he(e),t=tr(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Pe(e)}function $a(e,t,r){try{return nr(e,t)}catch{return e}}function bn(e,t=.15){return vt(e)>.5?rr(e,t):nr(e,t)}function Ea(e,t,r){try{return bn(e,t)}catch{return e}}function Ca(e,t,r,n=1){const o=(p,c)=>Math.round((p**(1/n)*(1-r)+c**(1/n)*r)**n),a=he(e),i=he(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Pe({type:"rgb",values:s})}var Ze={},vn={exports:{}},xn;function Ta(){return xn||(xn=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vn)),vn.exports}var wn={exports:{}},Sn;function Na(){return Sn||(Sn=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wn)),wn.exports}function Aa(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function _a(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ma=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_a(this));var n=this.tags[this.tags.length-1];if(0)var o;if(this.isSpeedy){var a=Aa(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),se="-ms-",xt="-moz-",L="-webkit-",On="comm",or="rule",ar="decl",Ia="@import",jn="@keyframes",Ra="@layer",Da=Math.abs,wt=String.fromCharCode,Pa=Object.assign;function Fa(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function kn(e){return e.trim()}function La(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function ir(e,t){return e.indexOf(t)}function ae(e,t){return e.charCodeAt(t)|0}function Je(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function sr(e){return e.length}function St(e,t){return t.push(e),e}function Va(e,t){return e.map(t).join("")}var Ot=1,Fe=1,$n=0,ce=0,ne=0,Le="";function jt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ot,column:Fe,length:i,return:""}}function Qe(e,t){return Pa(jt("",null,null,"",null,null,0),e,{length:-e.length},t)}function za(){return ne}function Ua(){return ne=ce>0?ae(Le,--ce):0,Fe--,ne===10&&(Fe=1,Ot--),ne}function pe(){return ne=ce<$n?ae(Le,ce++):0,Fe++,ne===10&&(Fe=1,Ot++),ne}function we(){return ae(Le,ce)}function kt(){return ce}function Xe(e,t){return Je(Le,e,t)}function et(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function En(e){return Ot=Fe=1,$n=xe(Le=e),ce=0,[]}function Cn(e){return Le="",e}function $t(e){return kn(Xe(ce-1,cr(e===91?e+2:e===40?e+1:e)))}function Ga(e){for(;(ne=we())&&ne<33;)pe();return et(e)>2||et(ne)>3?"":" "}function Wa(e,t){for(;--t&&pe()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Xe(e,kt()+(t<6&&we()==32&&pe()==32))}function cr(e){for(;pe();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&cr(ne);break;case 40:e===41&&cr(e);break;case 92:pe();break}return ce}function Ba(e,t){for(;pe()&&e+ne!==57&&!(e+ne===84&&we()===47););return"/*"+Xe(t,ce-1)+"*"+wt(e===47?e:pe())}function Ka(e){for(;!et(we());)pe();return Xe(e,ce)}function Ya(e){return Cn(Et("",null,null,null,[""],e=En(e),0,[0],e))}function Et(e,t,r,n,o,a,i,s,p){for(var c=0,f=0,h=i,u=0,b=0,y=0,g=1,d=1,x=1,O=0,j="",F=o,m=a,k=n,$=j;d;)switch(y=O,O=pe()){case 40:if(y!=108&&ae($,h-1)==58){ir($+=V($t(O),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=$t(O);break;case 9:case 10:case 13:case 32:$+=Ga(y);break;case 92:$+=Wa(kt()-1,7);continue;case 47:switch(we()){case 42:case 47:St(qa(Ba(pe(),kt()),t,r),p);break;default:$+="/"}break;case 123*g:s[c++]=xe($)*x;case 125*g:case 59:case 0:switch(O){case 0:case 125:d=0;case 59+f:x==-1&&($=V($,/\f/g,"")),b>0&&xe($)-h&&St(b>32?Nn($+";",n,r,h-1):Nn(V($," ","")+";",n,r,h-2),p);break;case 59:$+=";";default:if(St(k=Tn($,t,r,c,f,o,s,j,F=[],m=[],h),a),O===123)if(f===0)Et($,t,k,k,F,a,h,s,m);else switch(u===99&&ae($,3)===110?100:u){case 100:case 108:case 109:case 115:Et(e,k,k,n&&St(Tn(e,k,k,0,0,o,s,j,o,F=[],h),m),o,m,h,s,n?F:m);break;default:Et($,k,k,k,[""],m,0,s,m)}}c=f=b=0,g=x=1,j=$="",h=i;break;case 58:h=1+xe($),b=y;default:if(g<1){if(O==123)--g;else if(O==125&&g++==0&&Ua()==125)continue}switch($+=wt(O),O*g){case 38:x=f>0?1:($+="\f",-1);break;case 44:s[c++]=(xe($)-1)*x,x=1;break;case 64:we()===45&&($+=$t(pe())),u=we(),f=h=xe(j=$+=Ka(kt())),O++;break;case 45:y===45&&xe($)==2&&(g=0)}}return a}function Tn(e,t,r,n,o,a,i,s,p,c,f){for(var h=o-1,u=o===0?a:[""],b=sr(u),y=0,g=0,d=0;y<n;++y)for(var x=0,O=Je(e,h+1,h=Da(g=i[y])),j=e;x<b;++x)(j=kn(g>0?u[x]+" "+O:V(O,/&\f/g,u[x])))&&(p[d++]=j);return jt(e,t,r,o===0?or:s,p,c,f)}function qa(e,t,r){return jt(e,t,r,On,wt(za()),Je(e,2,-2),0)}function Nn(e,t,r,n){return jt(e,t,r,ar,Je(e,0,n),Je(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=sr(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ha(e,t,r,n){switch(e.type){case Ra:if(e.children.length)break;case Ia:case ar:return e.return=e.return||e.value;case On:return"";case jn:return e.return=e.value+"{"+Ve(e.children,n)+"}";case or:e.value=e.props.join(",")}return xe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Za(e){var t=sr(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function Ja(e){return function(t){t.root||(t=t.return)&&e(t)}}var Qa=function(e,t,r){for(var n=0,o=0;n=o,o=we(),n===38&&o===12&&(t[r]=1),!et(o);)pe();return Xe(e,ce)},Xa=function(e,t){var r=-1,n=44;do switch(et(n)){case 0:n===38&&we()===12&&(t[r]=1),e[r]+=Qa(ce-1,t,r);break;case 2:e[r]+=$t(n);break;case 4:if(n===44){e[++r]=we()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=wt(n)}while(n=pe());return e},ei=function(e,t){return Cn(Xa(En(e),t))},An=new WeakMap,ti=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!An.get(r))&&!n){An.set(e,!0);for(var o=[],a=ei(t,o),i=r.props,s=0,p=0;s<a.length;s++)for(var c=0;c<i.length;c++,p++)e.props[p]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ri=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},ni="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",oi=function(e){return e.type==="comm"&&e.children.indexOf(ni)>-1},Dl=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!t.parent,i=a?t.parent.children:n,s=i.length-1;s>=0;s--){var p=i[s];if(p.line<t.line)break;if(p.column<t.column){if(oi(p))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},_n=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ai=function(e,t){for(var r=e-1;r>=0;r--)if(!_n(t[r]))return!0;return!1},Mn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Pl=function(e,t,r){_n(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Mn(e)):ai(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Mn(e)))};function In(e,t){switch(Fa(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+xt+e+se+e+e;case 6828:case 4268:return L+e+se+e+e;case 6165:return L+e+se+"flex-"+e+e;case 5187:return L+e+V(e,/(\w+).+(:[^]+)/,L+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return L+e+se+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return L+e+se+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+se+V(e,"shrink","negative")+e;case 5292:return L+e+se+V(e,"basis","preferred-size")+e;case 6060:return L+"box-"+V(e,"-grow","")+L+e+se+V(e,"grow","positive")+e;case 4554:return L+V(e,/([^-])(transform)/g,"$1"+L+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+xt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ir(e,"stretch")?In(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,xe(e)-3-(~ir(e,"!important")&&10))){case 107:return V(e,":",":"+L)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(ae(e,14)===45?"inline-":"")+"box$3$1"+L+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+se+e+e}return e}var ii=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=In(e.value,e.length);break;case jn:return Ve([Qe(e,{value:V(e.value,"@","@"+L)})],n);case or:if(e.length)return Va(e.props,function(o){switch(La(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([Qe(e,{props:[V(o,/:(read-\w+)/,":"+xt+"$1")]})],n);case"::placeholder":return Ve([Qe(e,{props:[V(o,/:(plac\w+)/,":"+L+"input-$1")]}),Qe(e,{props:[V(o,/:(plac\w+)/,":"+xt+"$1")]}),Qe(e,{props:[V(o,/:(plac\w+)/,se+"input-$1")]})],n)}return""})}},si=[ii],ci=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||si,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),d=1;d<g.length;d++)o[g[d]]=!0;i.push(y)});var s,p=[ti,ri];{var c,f=[Ha,Ja(function(y){c.insert(y)})],h=Za(p.concat(n,f)),u=function(y){return Ve(Ya(y),h)};s=function(y,g,d,x){c=d,u(y?y+"{"+g.styles+"}":g.styles),x&&(b.inserted[g.name]=!0)}}var b={key:t,sheet:new Ma({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return b.sheet.hydrate(i),b};let lr;typeof document=="object"&&(lr=ci({key:"css",prepend:!0}));function li(e){const{injectFirst:t,children:r}=e;return t&&lr?l.jsx(Ho,{value:lr,children:r}):r}function ui(e){return e==null||Object.keys(e).length===0}function Rn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(ui(o)?r:o):t;return l.jsx(Zo,{styles:n})}function Dn(e,t){return qo(e,t)}const Pn=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},pi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Rn,StyledEngineProvider:li,ThemeContext:Ur,css:Jo,default:Dn,internal_processStyles:Pn,keyframes:Qo},Symbol.toStringTag,{value:"Module"})),fi=Ae(pi);function ke(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fn(e){if(!ke(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Fn(e[r])}),t}function ve(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return ke(e)&&ke(t)&&Object.keys(t).forEach(o=>{ke(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ke(e[o])?n[o]=ve(e[o],t[o],r):r.clone?n[o]=ke(t[o])?Fn(t[o]):t[o]:n[o]=t[o]}),n}const di=Object.freeze(Object.defineProperty({__proto__:null,default:ve,isPlainObject:ke},Symbol.toStringTag,{value:"Module"})),mi=Ae(di);function Ct(e){if(typeof e!="string")throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}const hi=Object.freeze(Object.defineProperty({__proto__:null,default:Ct},Symbol.toStringTag,{value:"Module"})),yi=Ae(hi);var Ln={exports:{}},G={},Vn;function gi(){if(Vn)return G;Vn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case r:case o:case n:case c:case f:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case p:case u:case h:case a:return d;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=a,G.Element=e,G.ForwardRef=p,G.Fragment=r,G.Lazy=u,G.Memo=h,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=c,G.SuspenseList=f,G.isAsyncMode=function(){return!1},G.isConcurrentMode=function(){return!1},G.isContextConsumer=function(d){return g(d)===i},G.isContextProvider=function(d){return g(d)===a},G.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},G.isForwardRef=function(d){return g(d)===p},G.isFragment=function(d){return g(d)===r},G.isLazy=function(d){return g(d)===u},G.isMemo=function(d){return g(d)===h},G.isPortal=function(d){return g(d)===t},G.isProfiler=function(d){return g(d)===o},G.isStrictMode=function(d){return g(d)===n},G.isSuspense=function(d){return g(d)===c},G.isSuspenseList=function(d){return g(d)===f},G.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===c||d===f||d===b||typeof d=="object"&&d!==null&&(d.$$typeof===u||d.$$typeof===h||d.$$typeof===a||d.$$typeof===i||d.$$typeof===p||d.$$typeof===y||d.getModuleId!==void 0)},G.typeOf=g,G}var bi={},zn;function Fl(){return zn||(zn=1),bi}Ln.exports=gi();var ur=Ln.exports;const vi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Un(e){const t=`${e}`.match(vi);return t&&t[1]||""}function Gn(e,t=""){return e.displayName||e.name||Un(e)||t}function Wn(e,t,r){const n=Gn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function xi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Gn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ur.ForwardRef:return Wn(e,e.render,"ForwardRef");case ur.Memo:return Wn(e,e.type,"memo");default:return}}}const wi=Object.freeze(Object.defineProperty({__proto__:null,default:xi,getFunctionName:Un},Symbol.toStringTag,{value:"Module"})),Si=Ae(wi),Oi=["values","unit","step"],ji=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function Bn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=me(e,Oi),a=ji(t),i=Object.keys(a);function s(u){return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r})`}function p(u){return`@media (max-width:${(typeof t[u]=="number"?t[u]:u)-n/100}${r})`}function c(u,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function f(u){return i.indexOf(u)+1<i.length?c(u,i[i.indexOf(u)+1]):s(u)}function h(u){const b=i.indexOf(u);return b===0?s(i[1]):b===i.length-1?p(i[b]):c(u,i[i.indexOf(u)+1]).replace("@media","@media not all and")}return T({keys:i,values:a,up:s,down:p,between:c,only:f,not:h,unit:r},o)}const ki={borderRadius:4},Ll={};function tt(e,t){return t?ve(e,t,{clone:!1}):e}const pr={xs:0,sm:600,md:900,lg:1200,xl:1536},Kn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pr[e]}px)`};function $e(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Kn;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||Kn;return Object.keys(t).reduce((a,i)=>{if(Object.keys(o.values||pr).indexOf(i)!==-1){const s=o.up(i);a[s]=r(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return r(t)}function $i(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{}))||{}}function Ei(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Tt(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Nt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Tt(e,r)||n,t&&(o=t(o,n,e)),o}function te(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],p=i.theme,c=Tt(p,n)||{};return $e(i,s,f=>{let h=Nt(c,o,f);return f===h&&typeof f=="string"&&(h=Nt(c,o,`${t}${f==="default"?"":Ct(f)}`,f)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function Ci(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ti={m:"margin",p:"padding"},Ni={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ai=Ci(e=>{if(e.length>2)if(Yn[e])e=Yn[e];else return[e];const[t,r]=e.split(""),n=Ti[t],o=Ni[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),fr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vl=[...fr,...dr];function rt(e,t,r,n){var o;const a=(o=Tt(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function qn(e){return rt(e,"spacing",8,"spacing")}function nt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function _i(e,t){return r=>e.reduce((n,o)=>(n[o]=nt(t,r),n),{})}function Mi(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ai(r),a=_i(o,n),i=e[r];return $e(e,i,a)}function Hn(e,t){const r=qn(e.theme);return Object.keys(e).map(n=>Mi(e,t,n,r)).reduce(tt,{})}function Z(e){return Hn(e,fr)}Z.propTypes={},Z.filterProps=fr;function J(e){return Hn(e,dr)}J.propTypes={},J.filterProps=dr;function Ii(e=8){if(e.mui)return e;const t=qn({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function At(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?tt(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ye(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Ri=ge("border",ye),Di=ge("borderTop",ye),Pi=ge("borderRight",ye),Fi=ge("borderBottom",ye),Li=ge("borderLeft",ye),Vi=ge("borderColor"),zi=ge("borderTopColor"),Ui=ge("borderRightColor"),Gi=ge("borderBottomColor"),Wi=ge("borderLeftColor"),Bi=ge("outline",ye),Ki=ge("outlineColor"),_t=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:nt(t,n)});return $e(e,e.borderRadius,r)}return null};_t.propTypes={},_t.filterProps=["borderRadius"],At(Ri,Di,Pi,Fi,Li,Vi,zi,Ui,Gi,Wi,_t,Bi,Ki);const Mt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rt(e.theme,"spacing",8,"gap"),r=n=>({gap:nt(t,n)});return $e(e,e.gap,r)}return null};Mt.propTypes={},Mt.filterProps=["gap"];const It=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:nt(t,n)});return $e(e,e.columnGap,r)}return null};It.propTypes={},It.filterProps=["columnGap"];const Rt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:nt(t,n)});return $e(e,e.rowGap,r)}return null};Rt.propTypes={},Rt.filterProps=["rowGap"];const Yi=te({prop:"gridColumn"}),qi=te({prop:"gridRow"}),Hi=te({prop:"gridAutoFlow"}),Zi=te({prop:"gridAutoColumns"}),Ji=te({prop:"gridAutoRows"}),Qi=te({prop:"gridTemplateColumns"}),Xi=te({prop:"gridTemplateRows"}),es=te({prop:"gridTemplateAreas"}),ts=te({prop:"gridArea"});At(Mt,It,Rt,Yi,qi,Hi,Zi,Ji,Qi,Xi,es,ts);function ze(e,t){return t==="grey"?t:e}const rs=te({prop:"color",themeKey:"palette",transform:ze}),ns=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ze}),os=te({prop:"backgroundColor",themeKey:"palette",transform:ze});At(rs,ns,os);function fe(e){return e<=1&&e!==0?`${e*100}%`:e}const as=te({prop:"width",transform:fe}),mr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||pr[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:fe(r)}};return $e(e,e.maxWidth,t)}return null};mr.filterProps=["maxWidth"];const is=te({prop:"minWidth",transform:fe}),ss=te({prop:"height",transform:fe}),cs=te({prop:"maxHeight",transform:fe}),ls=te({prop:"minHeight",transform:fe});te({prop:"size",cssProperty:"width",transform:fe}),te({prop:"size",cssProperty:"height",transform:fe});const us=te({prop:"boxSizing"});At(as,mr,is,ss,cs,ls,us);const ot={border:{themeKey:"borders",transform:ye},borderTop:{themeKey:"borders",transform:ye},borderRight:{themeKey:"borders",transform:ye},borderBottom:{themeKey:"borders",transform:ye},borderLeft:{themeKey:"borders",transform:ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_t},color:{themeKey:"palette",transform:ze},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ze},backgroundColor:{themeKey:"palette",transform:ze},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Mt},rowGap:{style:Rt},columnGap:{style:It},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fe},maxWidth:{style:mr},minWidth:{transform:fe},height:{transform:fe},maxHeight:{transform:fe},minHeight:{transform:fe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ps(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function fs(e,t){return typeof e=="function"?e(t):e}function Zn(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:p=r,themeKey:c,transform:f,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const u=Tt(o,c)||{};return h?h(i):$e(i,n,b=>{let y=Nt(u,f,b);return b===y&&typeof b=="string"&&(y=Nt(u,f,`${r}${b==="default"?"":Ct(b)}`,b)),p===!1?y:{[p]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:ot;function s(p){let c=p;if(typeof p=="function")c=p(a);else if(typeof p!="object")return p;if(!c)return null;const f=$i(a.breakpoints),h=Object.keys(f);let u=f;return Object.keys(c).forEach(b=>{const y=fs(c[b],a);if(y!=null)if(typeof y=="object")if(i[b])u=tt(u,e(b,y,a,i));else{const g=$e({theme:a},y,d=>({[b]:d}));ps(g,y)?u[b]=t({sx:y,theme:a}):u=tt(u,g)}else u=tt(u,e(b,y,a,i))}),Ei(h,u)}return Array.isArray(o)?o.map(s):s(o)}return t}const at=Zn();at.filterProps=["sx"];function Jn(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const ds=["breakpoints","palette","spacing","shape"];function it(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=me(e,ds),s=Bn(r),p=Ii(o);let c=ve({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:p,shape:T({},ki,a)},i);return c.applyStyles=Jn,c=t.reduce((f,h)=>ve(f,h),c),c.unstable_sxConfig=T({},ot,i?.unstable_sxConfig),c.unstable_sx=function(f){return at({sx:f,theme:this})},c}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:it,private_createBreakpoints:Bn,unstable_applyStyles:Jn},Symbol.toStringTag,{value:"Module"})),hs=Ae(ms),ys=["sx"],gs=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ot;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function hr(e){const{sx:t}=e,r=me(e,ys),{systemProps:n,otherProps:o}=gs(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return ke(s)?T({},n,s):n}:a=T({},n,t),T({},o,{sx:a})}const bs=Object.freeze(Object.defineProperty({__proto__:null,default:at,extendSxProp:hr,unstable_createStyleFunctionSx:Zn,unstable_defaultSxConfig:ot},Symbol.toStringTag,{value:"Module"})),vs=Ae(bs);var Ue=ln;Object.defineProperty(Ze,"__esModule",{value:!0});var xs=Ze.default=Ms;Ze.shouldForwardProp=Dt,Ze.systemDefaultTheme=void 0;var be=Ue(Ta()),yr=Ue(Na()),Qn=Es(fi),ws=mi,zl=Ue(yi),Ul=Ue(Si),Ss=Ue(hs),Os=Ue(vs);const js=["ownerState"],ks=["variants"],$s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xn=function(n){return n?r:t})(e)}function Es(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Cs(e){return Object.keys(e).length===0}function Ts(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Dt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ns=Ze.systemDefaultTheme=(0,Ss.default)(),As=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Pt({defaultTheme:e,theme:t,themeId:r}){return Cs(t)?e:t[r]||t}function _s(e){return e?(t,r)=>r[e]:null}function Ft(e,t){let{ownerState:r}=t,n=(0,yr.default)(t,js);const o=typeof e=="function"?e((0,be.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Ft(a,(0,be.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=(0,yr.default)(o,ks);return a.forEach(s=>{let p=!0;typeof s.props=="function"?p=s.props((0,be.default)({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(p=!1)}),p&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style((0,be.default)({ownerState:r},n,r)):s.style))}),i}return o}function Ms(e={}){const{themeId:t,defaultTheme:r=Ns,rootShouldForwardProp:n=Dt,slotShouldForwardProp:o=Dt}=e,a=i=>(0,Os.default)((0,be.default)({},i,{theme:Pt((0,be.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Qn.internal_processStyles)(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:p,slot:c,skipVariantsResolver:f,skipSx:h,overridesResolver:u=_s(As(c))}=s,b=(0,yr.default)(s,$s),y=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=Dt;c==="Root"||c==="root"?x=n:c?x=o:Ts(i)&&(x=void 0);const O=(0,Qn.default)(i,(0,be.default)({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||(0,ws.isPlainObject)(m)?k=>Ft(m,(0,be.default)({},k,{theme:Pt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];p&&u&&B.push(S=>{const E=Pt((0,be.default)({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[p]||!E.components[p].styleOverrides)return null;const z=E.components[p].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Ft(K,(0,be.default)({},S,{theme:E}))}),u(S,H)}),p&&!y&&B.push(S=>{var E;const z=Pt((0,be.default)({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[p])==null?void 0:E.variants;return Ft({variants:H},(0,be.default)({},S,{theme:z}))}),g||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const S=new Array(re).fill("");$=[...m,...S],$.raw=[...m.raw,...S]}const Q=O($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return O.withConfig&&(F.withConfig=O.withConfig),F}}const eo=e=>e,Is=()=>{let e=eo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eo}}},Rs=Is(),Ds={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function to(e,t,r="Mui"){const n=Ds[t];return n?`${r}-${n}`:`${Rs.generate(e)}-${t}`}function Ps(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const st={black:"#000",white:"#fff"},Fs={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ge={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},We={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ct={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Be={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ke={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ye={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ls=["mode","contrastThreshold","tonalOffset"],ro={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:st.white,default:st.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},gr={text:{primary:st.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:st.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function no(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fn(e.main,o):t==="dark"&&(e.dark=pn(e.main,a)))}function Vs(e="light"){return e==="dark"?{main:Be[200],light:Be[50],dark:Be[400]}:{main:Be[700],light:Be[400],dark:Be[800]}}function zs(e="light"){return e==="dark"?{main:Ge[200],light:Ge[50],dark:Ge[400]}:{main:Ge[500],light:Ge[300],dark:Ge[700]}}function Us(e="light"){return e==="dark"?{main:We[500],light:We[300],dark:We[700]}:{main:We[700],light:We[400],dark:We[800]}}function Gs(e="light"){return e==="dark"?{main:Ke[400],light:Ke[300],dark:Ke[700]}:{main:Ke[700],light:Ke[500],dark:Ke[900]}}function Ws(e="light"){return e==="dark"?{main:Ye[400],light:Ye[300],dark:Ye[700]}:{main:Ye[800],light:Ye[500],dark:Ye[900]}}function Bs(e="light"){return e==="dark"?{main:ct[400],light:ct[300],dark:ct[700]}:{main:"#ed6c02",light:ct[500],dark:ct[900]}}function Ks(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=me(e,Ls),a=e.primary||Vs(t),i=e.secondary||zs(t),s=e.error||Us(t),p=e.info||Gs(t),c=e.success||Ws(t),f=e.warning||Bs(t);function h(y){return ba(y,gr.text.primary)>=r?gr.text.primary:ro.text.primary}const u=({color:y,name:g,mainShade:d=500,lightShade:x=300,darkShade:O=700})=>{if(y=T({},y),!y.main&&y[d]&&(y.main=y[d]),!y.hasOwnProperty("main"))throw new Error(De(11,g?` (${g})`:"",d));if(typeof y.main!="string")throw new Error(De(12,g?` (${g})`:"",JSON.stringify(y.main)));return no(y,"light",x,n),no(y,"dark",O,n),y.contrastText||(y.contrastText=h(y.main)),y},b={dark:gr,light:ro};return ve(T({common:T({},st),mode:t,primary:u({color:a,name:"primary"}),secondary:u({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:u({color:s,name:"error"}),warning:u({color:f,name:"warning"}),info:u({color:p,name:"info"}),success:u({color:c,name:"success"}),grey:Fs,contrastThreshold:r,getContrastText:h,augmentColor:u,tonalOffset:n},b[t]),o)}const Ys=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function qs(e){return Math.round(e*1e5)/1e5}const oo={textTransform:"uppercase"},ao='"Roboto", "Helvetica", "Arial", sans-serif';function Hs(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ao,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:p=700,htmlFontSize:c=16,allVariants:f,pxToRem:h}=r,u=me(r,Ys),b=o/14,y=h||(x=>`${x/c*b}rem`),g=(x,O,j,F,m)=>T({fontFamily:n,fontWeight:x,fontSize:y(O),lineHeight:j},n===ao?{letterSpacing:`${qs(F/O)}em`}:{},m,f),d={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,oo),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,oo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ve(T({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:p},d),u,{clone:!1})}const Zs=.2,Js=.14,Qs=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Js})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qs})`].join(",")}const Xs=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],ec=["duration","easing","delay"],tc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},rc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function io(e){return`${Math.round(e)}ms`}function nc(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function oc(e){const t=T({},tc,e.easing),r=T({},rc,e.duration);return T({getAutoHeightDuration:nc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,p=me(o,ec);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:io(a)} ${i} ${typeof s=="string"?s:io(s)}`).join(",")}},e,{easing:t,duration:r})}const ac={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ic=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function sc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=me(e,ic);if(e.vars)throw new Error(De(18));const s=Ks(n),p=it(e);let c=ve(p,{mixins:Ps(p.breakpoints,r),palette:s,shadows:Xs.slice(),typography:Hs(s,a),transitions:oc(o),zIndex:T({},ac)});return c=ve(c,i),c=t.reduce((f,h)=>ve(f,h),c),c.unstable_sxConfig=T({},ot,i?.unstable_sxConfig),c.unstable_sx=function(f){return at({sx:f,theme:this})},c}const br=sc(),vr="$$material";function so(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>so(e)&&e!=="classes",lo=xs({themeId:vr,defaultTheme:br,rootShouldForwardProp:co});function cc(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:er(t.components[r].defaultProps,n)}function lc(e){return Object.keys(e).length===0}function uc(e=null){const t=Ne.useContext(Ur);return!t||lc(t)?e:t}const pc=it();function xr(e=pc){return uc(e)}function uo({props:e,name:t,defaultTheme:r,themeId:n}){let o=xr(r);return n&&(o=o[n]||o),cc({theme:o,name:t,props:e})}function po({props:e,name:t}){return uo({props:e,name:t,defaultTheme:br,themeId:vr})}const fc=["ownerState"],dc=["variants"],mc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hc(e){return Object.keys(e).length===0}function yc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function wr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gc=it(),bc=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lt({defaultTheme:e,theme:t,themeId:r}){return hc(t)?e:t[r]||t}function vc(e){return e?(t,r)=>r[e]:null}function Vt(e,t){let{ownerState:r}=t,n=me(t,fc);const o=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Vt(a,T({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=me(o,dc);return a.forEach(s=>{let p=!0;typeof s.props=="function"?p=s.props(T({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(p=!1)}),p&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(T({ownerState:r},n,r)):s.style))}),i}return o}function xc(e={}){const{themeId:t,defaultTheme:r=gc,rootShouldForwardProp:n=wr,slotShouldForwardProp:o=wr}=e,a=i=>at(T({},i,{theme:Lt(T({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Pn(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:p,slot:c,skipVariantsResolver:f,skipSx:h,overridesResolver:u=vc(bc(c))}=s,b=me(s,mc),y=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=wr;c==="Root"||c==="root"?x=n:c?x=o:yc(i)&&(x=void 0);const O=Dn(i,T({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||ke(m)?k=>Vt(m,T({},k,{theme:Lt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];p&&u&&B.push(S=>{const E=Lt(T({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[p]||!E.components[p].styleOverrides)return null;const z=E.components[p].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Vt(K,T({},S,{theme:E}))}),u(S,H)}),p&&!y&&B.push(S=>{var E;const z=Lt(T({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[p])==null?void 0:E.variants;return Vt({variants:H},T({},S,{theme:z}))}),g||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const S=new Array(re).fill("");$=[...m,...S],$.raw=[...m.raw,...S]}const Q=O($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return O.withConfig&&(F.withConfig=O.withConfig),F}}const wc=xc();function fo(e,t){var r,n;return Ne.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}const Sc=(e,t)=>e.filter(r=>t.includes(r)),qe=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{r((i,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,s):i[e.up(e.keys[a])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Sc(e.keys,Object.keys(t))).forEach(o=>{if(e.keys.indexOf(o)!==-1){const a=t[o];a!==void 0&&r((i,s)=>{n===o?Object.assign(i,s):i[e.up(o)]=s},a)}}):(typeof t=="number"||typeof t=="string")&&r((o,a)=>{Object.assign(o,a)},t)};function Ee(e){return e?`Level${e}`:""}function lt(e){return e.unstable_level>0&&e.container}function mo(e){return function(t){return`var(--Grid-${t}Spacing${Ee(e.unstable_level)})`}}function Sr(e){return function(t){return e.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${Ee(e.unstable_level-1)})`}}function Or(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Ee(e.unstable_level-1)})`}const Oc=({theme:e,ownerState:t})=>{const r=mo(t),n={};return qe(e.breakpoints,t.gridSize,(o,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Or(t)}${lt(t)?` + ${r("column")}`:""})`}),o(n,i)}),n},jc=({theme:e,ownerState:t})=>{const r={};return qe(e.breakpoints,t.gridOffset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Or(t)})`}),n(r,a)}),r},kc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=lt(t)?{[`--Grid-columns${Ee(t.unstable_level)}`]:Or(t)}:{"--Grid-columns":12};return qe(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${Ee(t.unstable_level)}`]:o})}),r},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Sr(t),n=lt(t)?{[`--Grid-rowSpacing${Ee(t.unstable_level)}`]:r("row")}:{};return qe(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${Ee(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Ec=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Sr(t),n=lt(t)?{[`--Grid-columnSpacing${Ee(t.unstable_level)}`]:r("column")}:{};return qe(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${Ee(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Cc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return qe(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},Tc=({ownerState:e})=>{const t=mo(e),r=Sr(e);return T({minWidth:0,boxSizing:"border-box"},e.container&&T({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||lt(e))&&T({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Nc=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},Ac=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},_c=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Mc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ic=it(),Rc=wc("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Dc(e){return uo({props:e,name:"MuiGrid",defaultTheme:Ic})}function Pc(e={}){const{createStyledComponent:t=Rc,useThemeProps:r=Dc,componentName:n="MuiGrid"}=e,o=Ne.createContext(void 0),a=(p,c)=>{const{container:f,direction:h,spacing:u,wrap:b,gridSize:y}=p,g={root:["root",f&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,..._c(h),...Nc(y),...f?Ac(u,c.breakpoints.keys[0]):[]]};return sn(g,d=>to(n,d),{})},i=t(kc,Ec,$c,Oc,Cc,Tc,jc),s=Ne.forwardRef(function(p,c){var f,h,u,b,y,g,d,x;const O=xr(),j=r(p),F=hr(j),m=Ne.useContext(o),{className:k,children:$,columns:B=12,container:re=!1,component:Q="div",direction:S="row",wrap:E="wrap",spacing:z=0,rowSpacing:H=z,columnSpacing:oe=z,disableEqualOverflow:K,unstable_level:X=0}=F,Ie=me(F,Mc);let Se=K;X&&K!==void 0&&(Se=p.disableEqualOverflow);const v={},w={},I={};Object.entries(Ie).forEach(([C,Y])=>{O.breakpoints.values[C]!==void 0?v[C]=Y:O.breakpoints.values[C.replace("Offset","")]!==void 0?w[C.replace("Offset","")]=Y:I[C]=Y});const _=(f=p.columns)!=null?f:X?void 0:B,N=(h=p.spacing)!=null?h:X?void 0:z,R=(u=(b=p.rowSpacing)!=null?b:p.spacing)!=null?u:X?void 0:H,A=(y=(g=p.columnSpacing)!=null?g:p.spacing)!=null?y:X?void 0:oe,M=T({},F,{level:X,columns:_,container:re,direction:S,wrap:E,spacing:N,rowSpacing:R,columnSpacing:A,gridSize:v,gridOffset:w,disableEqualOverflow:(d=(x=Se)!=null?x:m)!=null?d:!1,parentDisableEqualOverflow:m}),P=a(M,O);let D=l.jsx(i,T({ref:c,as:Q,ownerState:M,className:an(P.root,k)},I,{children:Ne.Children.map($,C=>{if(Ne.isValidElement(C)&&fo(C,["Grid"])){var Y;return Ne.cloneElement(C,{unstable_level:(Y=C.props.unstable_level)!=null?Y:X+1})}return C})}));return Se!==void 0&&Se!==(m??!1)&&(D=l.jsx(o.Provider,{value:Se,children:D})),D});return s.muiName="Grid",s}function jr({value:e,children:t}){return e?typeof t=="function"?l.jsx(l.Fragment,{children:t(e)}):l.jsx(l.Fragment,{children:t}):null}const ho={},ut={};function pt(e,t){try{const r=(ho[e]||(ho[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in ut?ut[r]:yo(r,r.split(":"))}catch{if(e in ut)return ut[e];const r=e?.match(Fc);return r?yo(e,r.slice(1)):NaN}}const Fc=/([+-]\d\d):?(\d\d)?/;function yo(e,t){const r=+t[0],n=+(t[1]||0);return ut[e]=r>0?r*60+n:r*60-n}class Ce extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(pt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),bo(this),kr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new Ce(...r,t):new Ce(Date.now(),t)}withTimeZone(t){return new Ce(+this,t)}getTimezoneOffset(){return-pt(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),kr(this),+this}[Symbol.for("constructDateFrom")](t){return new Ce(+new Date(t),this.timeZone)}}const go=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!go.test(e))return;const t=e.replace(go,"$1UTC");Ce.prototype[t]&&(e.startsWith("get")?Ce.prototype[e]=function(){return this.internal[t]()}:(Ce.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Lc(this),+this},Ce.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),kr(this),+this}))});function kr(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Lc(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bo(e)}function bo(e){const t=pt(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),o=-new Date(+r).getTimezoneOffset(),a=n-o,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=n-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const p=pt(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-p,f=p!==t,h=c-s;if(f&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const u=pt(e.timeZone,e),b=p-u;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}const Vc=e=>{let t=new Date(Number(e));if(!e){const a=new Date;t=new Date(a.getFullYear(),a.getMonth(),a.getDate())}const r=String(t.getDate()).padStart(2,"0"),n=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return[n,r,o].join("/")},zc=(e,t)=>new Date(Number(e)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...t}),ft=Pc({createStyledComponent:lo("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>po({props:e,name:"MuiGrid2"})});function $r(){return{enqueueSnackbar:(e,t="success",r)=>{ta(e,{severity:t,variant:"customAlertComponent",persist:!0,...r})},closeSnackbar:Wr}}const Uc=Do(({id:e,message:t,severity:r,alertAction:n,sx:o,showCloseIcon:a=!0,persist:i,hideIconVariant:s,autoHideDuration:p,anchorOrigin:c,iconVariant:f,...h},u)=>l.jsx(ea,{ref:u,...h,children:l.jsx(Ao,{severity:r,action:l.jsxs(Te,{ml:1,children:[l.jsx(jr,{value:n,children:l.jsx(Er,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),l.jsx(jr,{value:!n&&a,children:l.jsx(Er,{size:"small",onClick:()=>{Wr(e)},color:"inherit",children:l.jsx(Xo,{})})})]}),sx:{alignItems:"center",width:"320px",...o},children:t})}));function Gc({entry:e,payload:t,showUuid:r=!0}){const n=He(u=>{var b,y,g;return(g=(y=(b=u.payload)==null?void 0:b.data)==null?void 0:y.reduce)==null?void 0:g.call(y,(d,x)=>d+x.value,0)},[]),o=He(u=>{const b=new Yt(n(u)||0),y=t?.reduce((x,O)=>x+n(O),0)||0,g=new Yt(y),d=Number(b.div(g).times(100).toFixed(2,Yt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=ht(()=>n(e),[e,n]),i=bt(a),s=ht(()=>Number(o(e)),[e,o]),p=bt(s),c=He(u=>Math.floor(u).toLocaleString(),[]),f=Vr({type:"text/plain"}),h=$r();return l.jsxs(zr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Te,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Oe,{children:[l.jsxs(ue,{component:"p",variant:"caption",children:[l.jsx(Oe,{component:"span",display:"inline-flex",mr:.5,children:l.jsx(qt,{from:i??0,to:a,map:c,children:"0"})}),l.jsxs(Oe,{component:"span",direction:"row",display:"inline-flex",children:["(",l.jsx(qt,{from:p??0,to:s,map:c,children:"0"}),"%)"]})]}),l.jsx(ue,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(ue,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&l.jsxs(ue,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{f.copy(e.payload.uuid).catch(()=>{}),h.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function vo(e){const{payload:t}=e;return l.jsx(ft,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Lr,{children:t?.map(r=>l.jsx(ft,{children:l.jsx(Gc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.payload.uuid}-${r.value}`))})})}function xo(e){const t=je();return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(gt,{children:l.jsxs(Ar,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(Ut,{vertical:!1}),l.jsx(Gt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Pr(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Wt,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&l.jsx(Lo,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),l.jsx(Bt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Fr(r,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:r=>-Number(r?.value??0)}),l.jsx(Kt,{content:l.jsx(vo,{showUuid:e.showUuid})}),e.data.map(r=>Po(_r,{uuid:r.uuid,integrationType:r.integrationType,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}function Wc({entry:e,showUuid:t=!0}){const r=He(p=>{const c=p.payload.latestData;return c&&p.dataKey?c[p.dataKey]??0:0},[]),n=ht(()=>r(e),[e,r]),o=bt(n),a=He(p=>p.toFixed(1),[]),i=Vr({type:"text/plain"}),s=$r();return l.jsxs(zr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Te,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Oe,{children:[l.jsx(ue,{component:"p",variant:"caption",children:l.jsxs(Oe,{component:"span",direction:"row",display:"inline-flex",children:[l.jsx(qt,{from:o??0,to:n,map:a,children:"0"}),"%"]})}),l.jsx(ue,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(ue,{variant:"body2",children:e.payload.integrationType}),t&&e.payload.uuid&&l.jsxs(ue,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{e.payload.uuid&&(i.copy(e.payload.uuid).catch(()=>{}),s.enqueueSnackbar("UUID copied to clipboard","success"))},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function Bc(e){const{payload:t}=e;return l.jsx(ft,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Lr,{children:t?.map(r=>l.jsx(ft,{children:l.jsx(Wc,{entry:r,showUuid:e.showUuid})},`item-${r.payload.uuid}-${r.value}`))})})}const Kc=(e,t)=>{const r=new Map;return e.forEach(n=>{n.chartData.forEach(o=>{const a=new Date(o.date).getTime().toString();if(!r.has(a)){const s={date:a};r.set(a,s)}const i=r.get(a);t.forEach(({key:s})=>{var p;const c=`${n.uuid}_${s}`,f=o[s],h=(p=t.find(b=>b.isTotal))==null?void 0:p.key,u=typeof f=="string"?f.trim()===""?0:parseInt(f,10):typeof f=="number"?f:0;if(i[`${c}_absolute`]=u,s!==h){const b=o[h||""];let y;b===0?y=100:y=b>0?parseFloat(new Dr(u.toString()).div(b).mul(100).toFixed(2,Dr.ROUND_DOWN)):0,i[c]=y}else i[c]=100})})}),Array.from(r.values()).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function wo(e){const t=je(),r=ht(()=>e.data?Kc(e.data,e.keyValues):[],[e.data,e.keyValues]);return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(gt,{width:"100%",height:"100%",children:l.jsxs(Ar,{data:r,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(Ut,{strokeDasharray:"3 3"}),l.jsx(Gt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Pr(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Wt,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(0)}%`}),l.jsx(Bt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Fr(n,{timeZone:e.filter.timezone,hour12:!1}),formatter:(n,o)=>{const a=typeof n=="number"?n.toFixed(1):n;return[`${o}: ${a}%`]}}),l.jsx(Kt,{content:n=>{var o;const{height:a,width:i,...s}=n,p=r[r.length-1],c={};Object.entries(p).forEach(([h,u])=>{h!=="date"&&typeof u=="number"&&(c[h]=u)});const f=new Map;return e.data.forEach(h=>{e.keyValues.filter(u=>!u.isTotal&&u.key==="oneClickSuccess").forEach(u=>{const b=`${h.uuid}_${u.key}`;f.set(b,h.uuid)})}),l.jsx(Bc,{...s,payload:(o=n.payload)==null?void 0:o.map(h=>({uuid:f.get(h.dataKey)||"",value:h.value,color:h.color||t.palette.primary.main,dataKey:h.dataKey,payload:{...h.payload,latestData:c,uuid:f.get(h.dataKey)}}))})}}),e.data.map(n=>e.keyValues.filter(o=>!o.isTotal&&o.key==="oneClickSuccess").map(o=>l.jsx(_r,{type:"monotone",dataKey:`${n.uuid}_${o.key}`,name:n.name||n.uuid,stroke:n.color||t.palette.primary.main,strokeWidth:2,dot:!1},`${n.uuid}_${o.key}`)))]})})})}function dt(e){const t=bt(e.value),{ref:r}=ra({from:t??0,to:e.value,duration:1,map:e.map});return l.jsx(Cr,{sx:{p:3,flex:1,...e.sx},children:l.jsxs(Oe,{spacing:1,alignItems:"center",children:[l.jsx(ue,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),l.jsx(ue,{color:"text.secondary",children:e.label})]})})}const So={margin:{top:5,right:30,left:20,bottom:5}},Yc={tickLine:!1,fontSize:12,tickMargin:12},qc={textAnchor:"end",tickLine:!1};function zt({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:p}){const c=je(),f=u=>!u.isFront,h=u=>!!u.isFront;return l.jsx(Te,{sx:{width:"100%",height:"100%",...p},children:l.jsx(gt,{children:l.jsxs(Vo,{data:e,...So,children:[l.jsx(Ut,{strokeDasharray:"3 3",vertical:!1}),l.jsx(Gt,{...Yc,...r}),l.jsx(Wt,{...qc,...n}),l.jsx(Bt,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(f).map((u,b)=>l.jsx(Mr,{...u},u.label??b)),s?.filter(f).map((u,b)=>l.jsx(Ir,{...u},u.label??b)),t.map(u=>l.jsx(zo,{name:u.key,dataKey:u.dataKey,fill:u.color,stackId:"stack",isAnimationActive:!1,...a},u.key)),i?.filter(h).map((u,b)=>l.jsx(Mr,{...u},u.label??b)),s?.filter(h).map((u,b)=>l.jsx(Ir,{...u},u.label??b))]})})})}const le={ALLOW:{MIN:0,MAX:400,NAME:"Allow",LABEL:"0-400"},FLAG:{MIN:401,MAX:600,NAME:"Flag",LABEL:"401-600"},BLOCK:{MIN:601,MAX:1e3,NAME:"Block",LABEL:"601-1000"}},Oo={ERR001:"Generic error code",OCE001:"1-Click error code",OCE002:"Unsupported phone number",OCE003:"Either phone or email is required",OCE004:"User not found",OCE005:"Credential requests are missing",OCE006:"User identifier is missing",OCE007:"Missing mandatory credentials",OCE008:"Invalid/expired verification code",OCE009:"Verification code required",OCE010:"Missing fields to autofill",OCE011:"Additional information required",OCE012:"BirthDate or SSN4 mismatch",OCE013:"No credentials found",OCE014:"1-Click request expired",OCE015:"1-Click not found",OCE016:"Conflict request for phone number",OCE017:"Risk score too high",OCE018:"Maximum code attempts exceeded",OCE019:"Maximum input attempts exceeded"},Re=()=>({regularChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500},smallChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:300}});function jo(e){return l.jsx(ue,{variant:"h6",fontWeight:"900",...e})}function ko(e){return l.jsx(ue,{variant:"h6",fontWeight:"400",...e})}function _e(){const e=Re();return l.jsxs(Oe,{sx:e.smallChartWrapper,children:[l.jsx(jo,{children:"No data available for the selected period and brands"}),l.jsx(ko,{children:"Please select a different period or brand"})]})}function Me(){const e=Re();return l.jsxs(Oe,{sx:e.smallChartWrapper,children:[l.jsx(jo,{children:"Loading..."}),l.jsx(ko,{children:"Preparing your chart data"})]})}function Hc({data:e,threshold:t=120,isLoading:r,isFetching:n,isSuccess:o,sx:a}){const i=je(),s=Re(),p=Object.entries(e??{}).map(([f,h])=>({key:f,[f]:h})),c=p.map(({key:f})=>({key:f,dataKey:f,color:i.palette.error.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(zt,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:p,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:f=>`${Oo[f]?`${Oo[f]}`:""}`}})}function Zc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,sx:a}){const i=je(),s=Re(),p=Object.entries(e??{}).map(([f,h])=>({key:f,[f]:h})),c=p.map(({key:f})=>({key:f,dataKey:f,color:i.palette.warning.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(zt,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:p,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:f=>"Total"}})}function $o({payload:e=[],hiddenItems:t,onToggle:r,legendLabel:n}){return l.jsx(Te,{sx:{display:"flex",justifyContent:"center",gap:"20px",paddingTop:"20px"},children:e.map((o,a)=>{const i=t.has(o.payload.name);return l.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",opacity:i?.4:1},onClick:()=>{r?.(o.payload)},children:[l.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:o.color,marginRight:"8px",borderRadius:"2px"}}),l.jsx("span",{style:{color:o.color},children:n?`${n}: ${o.value}`:o.value})]},`legend-${a}`)})})}const Jc=e=>{const t=Math.PI/180,{cx:r,cy:n,midAngle:o,innerRadius:a,outerRadius:i,startAngle:s,endAngle:p,fill:c,payload:f,percent:h,value:u,valueText:b,valuePercentage:y,needleVisible:g,customText:d,allActive:x}=e,O=Math.sin(-t*o),j=Math.cos(-t*o),F=r+(i+5)*j,m=n+(i+5)*O,k=r+(i+15)*j,$=n+(i+15)*O,B=k+(j>=0?1:-1)*22,re=$,Q=j>=0?"start":"end",S=u.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),E=()=>g||x?null:l.jsx("text",{x:r,y:n,dy:8,textAnchor:"middle",fill:"#333",fontSize:14,children:f.name});return l.jsxs("g",{children:[E(),l.jsx(Rr,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:p,fill:c}),l.jsx(Rr,{cx:r,cy:n,startAngle:s,endAngle:p,innerRadius:i+2,outerRadius:i+6,fill:c}),l.jsx("path",{d:`M${F},${m}L${k},${$}L${B},${re}`,stroke:c,fill:"none"}),l.jsx("circle",{cx:B,cy:re,r:2,fill:c,stroke:"none"}),l.jsx("text",{x:B+(j>=0?1:-1)*12,y:re,textAnchor:Q,fill:"#333",fontSize:12,children:d||(b?`${b} ${S}`:S)}),y&&l.jsxs("text",{x:B+(j>=0?1:-1)*12,y:re,dy:16,textAnchor:Q,fill:"#999",fontSize:11,children:[`${(h*100).toFixed(2)}%`," (",S,")"]})]})},Qc=e=>{const{value:t,data:r,color:n,innerRadius:o,outerRadius:a,boxDimensions:i,legendDimensions:s,valueText:p}=e,c=Math.PI/180;let f=0;r.forEach(E=>{f+=E.value});const h=i?i.width/2:150,u=(i?i.height/2:200)-s.height/2,b=180*(1-Math.max(0,Math.min(1,t/f))),y=(Number(o)+2*Number(a))/3,g=Math.sin(-c*b),d=Math.cos(-c*b),x=5,O=h-x,j=u,F=O+x*g,m=j-x*d,k=O-x*g,$=j+x*d,B=O+y*d,re=j+y*g,Q=t.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),S=p??Q;return l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:O,cy:j,r:x,fill:n,stroke:"none",style:{pointerEvents:"none"}},"needle-circle"),l.jsx("path",{d:`M${F} ${m}L${k} ${$} L${B} ${re} L${F} ${m}`,stroke:"none",fill:n,style:{pointerEvents:"none"}},"needle-path"),l.jsx("text",{x:O+x,y:j+26,textAnchor:"middle",fill:"#333",fontSize:12,children:S},"needle-value")]})},Xc=(e,t)=>({Allow:t.palette.success.main,Flag:t.palette.warning.main,Block:t.palette.error.main})[e]??t.palette.primary.main;function Eo({data:e,sx:t,legendLabel:r,legendToggle:n=!1,valueText:o="",valuePercentage:a=!0,pie:i,needleVisible:s=!1,needleValue:p,needleColor:c="#aaa",allActive:f=!1}){const{innerRadius:h=60,outerRadius:u=100}=i??{},b=je(),[y,g]=yt(void 0),[d,x]=yt(new Set),O=Fo(null),[j,F]=yt(null),[m,k]=yt(null),$=(S,E)=>{f||g(E)},B=()=>{f||g(void 0)},re=S=>{n&&S&&x(E=>{const z=new Set(E);return z.has(S.name)?z.delete(S.name):z.size<e.length-1&&z.add(S.name),z})},Q=e.map((S,E)=>({...S,index:E,value:d.has(S.name)?0:S.value}));return Nr(()=>{const S=O.current;if(!S)return;const E=new ResizeObserver(H=>{var oe;const K=(oe=H[0])==null?void 0:oe.contentRect;K&&F(K)});E.observe(S);const z=S.getBoundingClientRect();return F(z),()=>{E.disconnect()}},[]),Nr(()=>{var S;const E=(S=O.current)==null?void 0:S.querySelector(".recharts-legend-wrapper");if(!E){const oe=setInterval(()=>{var K;const X=(K=O.current)==null?void 0:K.querySelector(".recharts-legend-wrapper");if(X){const Ie=X.getBoundingClientRect();k(Ie),clearInterval(oe)}},100);return()=>{clearInterval(oe)}}const z=new ResizeObserver(oe=>{var K;const X=(K=oe[0])==null?void 0:K.contentRect;X&&k(X)});z.observe(E);const H=E.getBoundingClientRect();return k(H),()=>{z.disconnect()}},[]),l.jsx(Te,{ref:O,sx:{width:"100%",height:"100%","& g":{outline:"none"},...t},children:l.jsx(gt,{children:l.jsxs(Uo,{...So,children:[l.jsx(Go,{data:Q,nameKey:"name",dataKey:"value",innerRadius:h,outerRadius:u,activeIndex:f?Q.filter(S=>S.value>0).map(S=>S.index):y,activeShape:S=>Jc({...S,valueText:o,valuePercentage:a,needleVisible:s,allActive:f}),paddingAngle:0,onMouseEnter:$,onMouseLeave:B,...i,children:Q.map(S=>l.jsx(Wo,{fill:S.color??Xc(S.name,b),opacity:d.has(S.name)?.5:1,stroke:"none"},S.name))}),l.jsx(Kt,{content:l.jsx($o,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&p!==void 0&&j&&m&&Qc({data:Q,value:p,color:c,innerRadius:h,outerRadius:u,boxDimensions:j,legendDimensions:m,valueText:o})]})})})}function el({data:e,score:t=200,legendLabel:r,isLoading:n,isFetching:o,isSuccess:a,sx:i}){const s=je(),p=Re();if(n)return l.jsx(Me,{});if(!e||e.length<=0||!a)return l.jsx(_e,{});const c=[{name:le.ALLOW.NAME,customText:le.ALLOW.LABEL,value:e[0].value,color:s.palette.primary.main},{name:le.FLAG.NAME,customText:le.FLAG.LABEL,value:e[1].value,color:s.palette.warning.main},{name:le.BLOCK.NAME,customText:le.BLOCK.LABEL,value:e[2].value,color:s.palette.error.main}];return l.jsx(Eo,{data:c,legendToggle:!0,needleValue:t,legendLabel:r,allActive:!0,sx:{...p.smallChartWrapper,opacity:o?.4:1,...i}})}function tl({data:e,isLoading:t,isFetching:r,isSuccess:n,sx:o}){const a=je(),i=Re(),s=(c=>{const f={};return c.forEach(h=>{Object.entries(h).forEach(([u,b])=>{const y=parseInt(u);y<=1e3&&(f[y]=(f[y]||0)+b)})}),Array.from({length:1001},(h,u)=>({key:u.toString(),value:f[u]||0}))})(e),p=[{key:"Risk Score",dataKey:"value",color:a.palette.error.main}];return t?l.jsx(Me,{}):!e||Object.keys(e).length===0||!n?l.jsx(_e,{}):l.jsx(zt,{data:s,series:p,sx:{...i.smallChartWrapper,opacity:r?.4:1,...o},yAxis:{label:{value:"Count",angle:-90,position:"insideLeft"},domain:[0,"dataMax + 10"]},xAxis:{domain:[0,"dataMax"],interval:"preserveStartEnd"},tooltip:{labelFormatter:()=>"Risk Score",formatter:(c,f,h)=>[c,h.payload.key]},referenceAreas:[{x1:le.ALLOW.MIN,x2:le.ALLOW.MAX,fill:"#ffffff00",isFront:!1,label:le.ALLOW.NAME},{x1:le.FLAG.MIN,x2:le.FLAG.MAX,fill:a.palette.warning.light,isFront:!1,label:le.FLAG.NAME},{x1:le.BLOCK.MIN,fill:a.palette.error.light,isFront:!1,label:le.BLOCK.NAME}]})}function rl({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o,sx:a}){var i,s;je();const p=Re(),c={oneClickCreated:{key:"oneClickCreated",name:"Started",isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished"}};return t?l.jsx(Me,{}):!e.length||!((s=(i=e[0])==null?void 0:i.chartData)!=null&&s.length)||!n?l.jsx(_e,{}):l.jsx(wo,{data:e,keyValues:Object.values(c),filter:o,sx:{...p.smallChartWrapper,opacity:r?.4:1,...a}})}const nl={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function ol({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o}){return t?l.jsx(Me,{}):!e.length||!n?l.jsx(_e,{}):l.jsx(xo,{label:"Uniques",data:e,filter:o,sx:{...nl.chartWrapper,opacity:r?.4:1}})}function al(e){const{brands:t,data:r,keyValue:n}=e,o=t.flatMap(({_raw:a})=>{var i;const s=r?.find(c=>c.brandUuid===a.brandUuid),p=(s?.interval??[]).map(c=>({date:+new Date(c.date),value:Number(c[n]||0)})).filter(c=>e.filterOutZeroValues?c.value>0:!0);return{uuid:a.brandUuid,name:a.brandName,integrationType:Gr(a.integrationType),color:((i=a.additionalData)==null?void 0:i.primaryColor)??Bo(a.brandUuid),chartData:p}});return Ko.chain(o).sortBy(a=>a.name).toArray().value()}const il=({data:e,brands:t})=>e.flatMap(r=>{const n=t.find(o=>o.brandUuid===r.brandUuid);return!n||!r.interval?[]:r.interval.map(o=>({month:o.date,brandUuid:r.brandUuid,brand:n.brandName,integrationType:Gr(n.integrationType),total:o.oneClickCreated,finished:o.oneClickSuccess,totalCost:o.totalCost}))}),sl=({data:e,isLoading:t,showTotalCost:r=!0})=>t?l.jsx(Me,{}):e!=null&&e.length?l.jsx(_o,{component:Cr,children:l.jsxs(Mo,{children:[l.jsx(Io,{children:l.jsxs(Tr,{children:[l.jsx(de,{children:"Month"}),l.jsx(de,{children:"Brand"}),l.jsx(de,{children:"Integration Type"}),l.jsx(de,{align:"right",children:"Started"}),l.jsx(de,{align:"right",children:"Finished"}),r&&l.jsx(de,{align:"right",children:"Total Cost"})]})}),l.jsx(Ro,{children:e.map(n=>l.jsxs(Tr,{children:[l.jsx(de,{children:new Date(n.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:"UTC"})}),l.jsx(de,{children:n.brand}),l.jsx(de,{children:n.integrationType}),l.jsx(de,{align:"right",children:n.total}),l.jsx(de,{align:"right",children:n.finished}),r&&l.jsx(de,{align:"right",children:n.totalCost??"-"})]},`${n.brandUuid}-${n.month}`))})]})}):l.jsx(_e,{});function cl({lastUpdated:e}){return l.jsxs(ue,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",zc(e??Date.now(),{hour12:!1}),"."]})}const Co=e=>new Intl.NumberFormat("en-US").format(Number(e.toFixed(0))),ll=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),ul=e=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),To={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function pl(e){if(!(e!=null&&e.length))return To;const t=e.reduce((a,i)=>a+(i.overall.oneClickCreated||0),0),r=e.reduce((a,i)=>a+(i.overall.oneClickSuccess||0),0),n=e.reduce((a,i)=>{const s=i.overall.totalCost?Number(i.overall.totalCost.replace("$","").replace(/,/g,"")):0;return a+s},0),o=r/t;return{totalSignups:t,totalSuccess:r,totalCost:n,successRate:isNaN(o)?0:o}}function fl({chartData:e,isLoading:t=!0,hideTotalCost:r=!1}){const n=t?To:pl(e);return l.jsxs(Oe,{direction:"row",spacing:3,children:[l.jsx(dt,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:Co}),l.jsx(dt,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:Co}),!r&&l.jsx(dt,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:ll}),l.jsx(dt,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:ul})]})}export{br as A,dt as B,Uc as C,pn as D,Hc as E,fn as F,Rn as G,De as H,ve as I,fo as J,ur as K,Me as L,sl as M,so as N,rl as O,Eo as P,Vc as Q,Zc as R,xo as S,vr as T,ft as U,jr as W,me as _,vo as a,wo as b,zt as c,el as d,tl as e,$o as f,ol as g,il as h,_e as i,cl as j,fl as k,pa as l,al as m,T as n,xr as o,to as p,an as q,po as r,lo as s,sn as t,$r as u,co as v,Ct as w,ga as x,er as y,hr as z};