@verifiedinc-public/shared-ui-elements 5.1.4 → 5.1.5
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.
@@ -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-
|
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-C4-CKp97.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,l as e,B as r,n as t,m as n,C as i,D as o,f as p,E as c,j as m,F as u,I as d,b as h,L as C,O as S,h as l,e as g,P,Q as B,R as I,S as k,d as b,k as T,T as L,g as O,a as y,V as R,i as f,t as v,u as E}from"../shared/index-
|
1
|
+
"use strict";import{A as a,c as s,l as e,B as r,n as t,m as n,C as i,D as o,f as p,E as c,j as m,F as u,I as d,b as h,L as C,O as S,h as l,e as g,P,Q as B,R as I,S as k,d as b,k as T,T as L,g as O,a as y,V as R,i as f,t as v,u as E}from"../shared/index-BOXxEQ46.mjs";import{a as D,b as A,P as F,S as N}from"../shared/PageSectionHeader-DdpDhBZG.mjs";import{B as M,C as x,i as H,E as W,L as j,j as w,M as Q,g as V,O as q,P as z,R as U,e as G,d as J,S as K,a as X,b as Y,k as Z,c as _,f as $,W as aa,h as sa,m as ea,u as ra}from"../shared/SignupBigNumbers-C4-CKp97.mjs";import{SnackbarProvider as ta}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,M as BigNumber,t as BrandFilterInput,n as Button,i as CredentialRequestsEditor,x as CustomAlertComponent,o as DateInput,p as DateRangeInput,c as EmailInput,H as EmptyChartSection,W as ErrorCodesChart,m as ExactBirthdayBanner,u as FullWidthAlert,d as Image,h as LegalLink,C as LinkButton,j as LoadingChartSection,w as MetricLastUpdated,Q as MonthlySignupsOverviewTable,S as OTPInput,l as OneClickForm,V as OneClickOverTimeChart,q as OneClickPercentageChart,D as PageHeader,A as PageSectionHeader,F as Paragraph,g as PhoneInput,z as PieChart,P as PrivacyPolicyNotice,B as QRCodeDisplay,U as ReasonCodesChart,I as ResendPhoneBanner,G as RiskScoreBarChart,J as RiskScorePieChart,k as SSNInput,N as SectionHeader,b as SelectInput,K as SeriesChart,X as SeriesChartLegend,Y as SeriesPercentageChart,Z as SignupBigNumbers,_ as SimpleBarChart,$ as SimpleLegend,ta as SnackbarProvider,T as TestPhoneNumbersBanner,L as TextButton,O as TimezoneInput,y as Typography,R as VerifiedImage,f as VerifiedIncLogo,aa as When,sa as mapMonthlySignupsOverviewTableData,ea as mapTimeSeriesData,v as toOption,E as useBrandFilterInput,ra as useSnackbar};
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,c as s,l as e,B as r,n as t,m as o,C as i,D as n,f as m,E as u,j as l,F as p,I as c,b as d,L as h,O as S,h as g,e as C,P as f,Q as k,R as P,S as b,d as y,k as B,T as D,g as T,a as v,V as I,i as O,t as R,u as w}from"./shared/index-
|
1
|
+
"use strict";import{A as a,c as s,l as e,B as r,n as t,m as o,C as i,D as n,f as m,E as u,j as l,F as p,I as c,b as d,L as h,O as S,h as g,e as C,P as f,Q as k,R as P,S as b,d as y,k as B,T as D,g as T,a as v,V as I,i as O,t as R,u as w}from"./shared/index-BOXxEQ46.mjs";import{a as N,b as L,P as M,S as E}from"./shared/PageSectionHeader-DdpDhBZG.mjs";import{B as Y,C as F,i as z,E as G,L as x,j as A,M as V,g as W,O as U,P as H,R as j,e as Q,d as q,S as J,a as K,b as X,k as Z,c as _,f as $,W as aa,h as sa,m as ea,u as ra}from"./shared/SignupBigNumbers-C4-CKp97.mjs";import{b as ta,d as oa,a as ia,j as na,u as ma,k as ua,e as la,c as pa,f as ca,g as da,h as ha,i as Sa}from"./shared/useNavigatorOnline-LJuH4983.mjs";import{u as ga,a as Ca}from"./shared/useCopyToClipboard-_Ur9Q8Gv.mjs";import{a as fa,u as ka}from"./shared/useOnClickOutside-P5GTcgh8.mjs";import{u as Pa}from"./shared/useCounter-BV32zXDQ.mjs";import{u as ba}from"./shared/useResizeObserver-D434c1uN.mjs";import{b as ya,a as Ba,v as Da,e as Ta,d as va,p as Ia,u as Oa,h as Ra,j as wa,g as Na,o as La,s as Ma,m as Ea,c as Ya,l as Fa,n as za,q as Ga,f as xa,i as Aa,r as Va,z as Wa,t as Ua,x as Ha,k as ja,w as Qa,y as qa}from"./shared/shadows-Dhd7FrwF.mjs";import{wrapPromise as Ja}from"./utils/wrapPromise/index.mjs";import{f as Ka,b as Xa,a as Za,c as _a,u as $a}from"./shared/uuidColor-CQNs37so.mjs";import{c as as,g as ss,a as es,p as rs,s as ts,v as os}from"./shared/phone-D5XIxT7-.mjs";import{masks as is}from"./utils/masks/index.mjs";import{o as ns}from"./shared/omitProperty-CA_SIosy.mjs";import{s as ms}from"./shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as us,toSentenceCase as ls}from"./utils/string/index.mjs";import{k as ps}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{M as cs,S as ds,U as hs,d as Ss,e as gs,f as Cs,g as fs,a as ks,s as Ps}from"./shared/unix.schema-CMYTtXco.mjs";import{p as bs}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as ys}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,Y as BigNumber,t as BrandFilterInput,o as Button,i as CredentialRequestsEditor,F as CustomAlertComponent,n as DateInput,m as DateRangeInput,u as EmailInput,z as EmptyChartSection,G as ErrorCodesChart,l as ExactBirthdayBanner,p as FullWidthAlert,c as Image,d as LegalLink,h as LinkButton,x as LoadingChartSection,cs as MaskedAndUnmaskedSSNSchema,A as MetricLastUpdated,V as MonthlySignupsOverviewTable,S as OTPInput,g as OneClickForm,W as OneClickOverTimeChart,U as OneClickPercentageChart,N as PageHeader,L as PageSectionHeader,M as Paragraph,C as PhoneInput,H as PieChart,f as PrivacyPolicyNotice,k as QRCodeDisplay,j as ReasonCodesChart,P as ResendPhoneBanner,Q as RiskScoreBarChart,q as RiskScorePieChart,b as SSNInput,ds as SSNSchema,E as SectionHeader,y as SelectInput,J as SeriesChart,K as SeriesChartLegend,X as SeriesPercentageChart,Z as SignupBigNumbers,_ as SimpleBarChart,$ as SimpleLegend,ys as SnackbarProvider,B as TestPhoneNumbersBanner,D as TextButton,T as TimezoneInput,v as Typography,hs as USDateSchema,I as VerifiedImage,O as VerifiedIncLogo,aa as When,ya as black,Ba as blue,Da as colors,as as countries,Ta as darkBlue,va as darkGreen,Ia as darkGrey,Oa as darkGreyContrast,Ra as darkRed,wa as darkYellow,Ss as descriptionSchema,gs as emailSchema,Cs as fieldSchema,Ka as formatDateMMDDYYYY,Xa as formatDateMMYY,Za as formatDateToTimestamp,_a as formatExtendedDate,fs as getDateSchemaWithPastValidation,ss as getPhoneData,es as getPhoneDataByFieldName,ks as getUnixSchema,Na as green,La as grey,Ma as greyContrast,Ea as infoContrast,ps as kebabCaseToPretty,Ya as lightBlue,Fa as lightGreen,za as lightGrey,Ga as lightGreyContrast,xa as lightRed,Aa as lightYellow,sa as mapMonthlySignupsOverviewTableData,ea as mapTimeSeriesData,is as masks,ns as omitProperties,rs as parseToPhoneNational,bs as phoneSchema,Va as red,Wa as shadows,ts as sortByCountryName,ms as ssnFormatter,Ps as stateSchema,Ua as textDisabled,Ha as theme,us as toCapitalize,R as toOption,ls as toSentenceCase,w as useBrandFilterInput,ta as useCallbackRef,ga as useCopyToClipboard,Pa as useCounter,oa as useDebounceValue,ia as useDisclosure,na as useIntersectionObserver,ma as useLocalStorage,ua as useNavigatorOnline,fa as useOnClickOutside,Ca as usePrevious,ka as useQRCode,ba as useResizeObserver,la as useScript,pa as useSearchParams,ra as useSnackbar,ca as useThrottle,da as useToggle,ha as useWindowScroll,Sa as useWindowSize,$a as uuidToHashedColor,os as validatePhone,ja as warningContrast,Qa as white,Ja as wrapPromise,qa as yellow};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
"use strict";import{j as u}from"./jsx-runtime-DHlBLioN.mjs";import{Alert as ko,Box as Ae,IconButton as jr,Stack as Pe,Typography as Oe,useTheme as we,Paper as kr,TableContainer as $o,Table as Co,TableHead as To,TableRow as $r,TableCell as fe,TableBody as Eo}from"@mui/material";import{ResponsiveContainer as pt,LineChart as _o,CartesianGrid as Vt,XAxis as zt,YAxis as Ft,Label as Lt,Tooltip as Ut,Legend as Cr,Line as No,AreaChart as Ao,Area as Po,ComposedChart as Ro,ReferenceLine as Tr,ReferenceArea as Er,Bar as Do,Sector as _r,PieChart as Mo,Pie as Io,Cell as Vo}from"recharts";import*as Ce from"react";import{forwardRef as zo,useCallback as Gt,useMemo as Kt,createElement as Fo,useState as dt,useRef as Lo,useEffect as Nr}from"react";import mt,{Decimal as Wt}from"decimal.js";import{b as Ar,c as Pr,u as Uo,_ as Go}from"./uuidColor-CQNs37so.mjs";import{AnimatePresence as Ko}from"framer-motion";import{a as Bt,u as Wo}from"./useCopyToClipboard-_Ur9Q8Gv.mjs";import"qrcode";import{a as Bo,C as Rr}from"./motions-BBPeWBPV.mjs";import{g as qo,a as Te}from"./_commonjsHelpers-BkfeUUK-.mjs";import Ho from"@emotion/styled";import{CacheProvider as Zo,Global as Yo,ThemeContext as Dr,css as Jo,keyframes as Qo}from"@emotion/react";import{k as Mr}from"./formatKebabToPretty-Du43TgPC.mjs";import{Close as Xo}from"@mui/icons-material";import{SnackbarContent as ea,closeSnackbar as Ir,enqueueSnackbar as ta}from"notistack";import{u as ra}from"./useCounter-BV32zXDQ.mjs";function pe(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 E(){return E=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},E.apply(null,arguments)}var Vr={exports:{}},zr={exports:{}},U={},Fr;function na(){if(Fr)return U;Fr=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=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 l:case c:case n:case a:case o:case g:return m;default:switch(m=m&&m.$$typeof,m){case s:case p:case h:case b:case i:return m;default:return k}}case r:return k}}}function V(m){return j(m)===c}return U.AsyncMode=l,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=p,U.Fragment=n,U.Lazy=h,U.Memo=b,U.Portal=r,U.Profiler=a,U.StrictMode=o,U.Suspense=g,U.isAsyncMode=function(m){return V(m)||j(m)===l},U.isConcurrentMode=V,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)===h},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)===g},U.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===g||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===b||m.$$typeof===i||m.$$typeof===s||m.$$typeof===p||m.$$typeof===d||m.$$typeof===x||m.$$typeof===S||m.$$typeof===y)},U.typeOf=j,U}var oa={},Lr;function _l(){return Lr||(Lr=1),oa}var Ur;function aa(){return Ur||(Ur=1,zr.exports=na()),zr.exports}var qt,Gr;function ia(){if(Gr)return qt;Gr=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 l=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(l.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,l=n(a),c,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var g in s)t.call(s,g)&&(l[g]=s[g]);if(e){c=e(s);for(var f=0;f<c.length;f++)r.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},qt}var Ht,Kr;function Wr(){if(Kr)return Ht;Kr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ht=e,Ht}var Br,qr;function sa(){return qr||(qr=1,Br=Function.call.bind(Object.prototype.hasOwnProperty)),Br}var Zt,Hr;function ca(){if(Hr)return Zt;Hr=1;var e=function(){};if(0)var t,r,n;function o(a,i,s,l,c){if(0){for(var p in a)if(n(a,p)){var g;try{if(typeof a[p]!="function")var f}catch(h){}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r))var b}}}return o.resetWarningCache=function(){},Zt=o,Zt}var Yt,Zr;function Nl(){if(Zr)return Yt;Zr=1;var e=aa(),t=ia(),r=Wr(),n=sa(),o=ca(),a=function(){};function i(){return null}return Yt=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(v){var O=v&&(c&&v[c]||v[p]);if(typeof O=="function")return O}var f="<<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:S(),arrayOf:j,element:V(),elementType:m(),instanceOf:k,node:Q(),objectOf:W,oneOf:$,oneOfType:re,shape:C,exact:L};function h(v,O){return v===O?v!==0||1/v===1/O:v!==v&&O!==O}function y(v,O){this.message=v,this.data=O&&typeof O=="object"?O:{},this.stack=""}y.prototype=Error.prototype;function d(v){if(0)var O,R;function A(D,N,P,I,M,T,q){if(I=I||f,T=T||P,q!==r){if(l){var K=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 K.name="Invariant Violation",K}else if(0)var ft}return N[P]==null?D?N[P]===null?new y("The "+M+" `"+T+"` is marked as required "+("in `"+I+"`, but its value is `null`.")):new y("The "+M+" `"+T+"` is marked as required in "+("`"+I+"`, but its value is `undefined`.")):null:v(N,P,I,M,T)}var _=A.bind(null,!1);return _.isRequired=A.bind(null,!0),_}function x(v){function O(R,A,_,D,N,P){var I=R[A],M=B(I);if(M!==v){var T=X(I);return new y("Invalid "+D+" `"+N+"` of type "+("`"+T+"` supplied to `"+_+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return d(O)}function S(){return d(i)}function j(v){function O(R,A,_,D,N){if(typeof v!="function")return new y("Property `"+N+"` of component `"+_+"` has invalid PropType notation inside arrayOf.");var P=R[A];if(!Array.isArray(P)){var I=B(P);return new y("Invalid "+D+" `"+N+"` of type "+("`"+I+"` supplied to `"+_+"`, expected an array."))}for(var M=0;M<P.length;M++){var T=v(P,M,_,D,N+"["+M+"]",r);if(T instanceof Error)return T}return null}return d(O)}function V(){function v(O,R,A,_,D){var N=O[R];if(!s(N)){var P=B(N);return new y("Invalid "+_+" `"+D+"` of type "+("`"+P+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return d(v)}function m(){function v(O,R,A,_,D){var N=O[R];if(!e.isValidElementType(N)){var P=B(N);return new y("Invalid "+_+" `"+D+"` of type "+("`"+P+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return d(v)}function k(v){function O(R,A,_,D,N){if(!(R[A]instanceof v)){var P=v.name||f,I=xe(R[A]);return new y("Invalid "+D+" `"+N+"` of type "+("`"+I+"` supplied to `"+_+"`, expected ")+("instance of `"+P+"`."))}return null}return d(O)}function $(v){if(!Array.isArray(v))return i;function O(R,A,_,D,N){for(var P=R[A],I=0;I<v.length;I++)if(h(P,v[I]))return null;var M=JSON.stringify(v,function(T,q){var K=X(q);return K==="symbol"?String(q):q});return new y("Invalid "+D+" `"+N+"` of value `"+String(P)+"` "+("supplied to `"+_+"`, expected one of "+M+"."))}return d(O)}function W(v){function O(R,A,_,D,N){if(typeof v!="function")return new y("Property `"+N+"` of component `"+_+"` has invalid PropType notation inside objectOf.");var P=R[A],I=B(P);if(I!=="object")return new y("Invalid "+D+" `"+N+"` of type "+("`"+I+"` supplied to `"+_+"`, expected an object."));for(var M in P)if(n(P,M)){var T=v(P,M,_,D,N+"."+M,r);if(T instanceof Error)return T}return null}return d(O)}function re(v){if(!Array.isArray(v))return i;for(var O=0;O<v.length;O++){var R=v[O];if(typeof R!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ne(R)+" at index "+O+"."),i}function A(_,D,N,P,I){for(var M=[],T=0;T<v.length;T++){var q=v[T],K=q(_,D,N,P,I,r);if(K==null)return null;K.data&&n(K.data,"expectedType")&&M.push(K.data.expectedType)}var ft=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new y("Invalid "+P+" `"+I+"` supplied to "+("`"+N+"`"+ft+"."))}return d(A)}function Q(){function v(O,R,A,_,D){return Z(O[R])?null:new y("Invalid "+_+" `"+D+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return d(v)}function w(v,O,R,A,_){return new y((v||"React class")+": "+O+" type `"+R+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_+"`.")}function C(v){function O(R,A,_,D,N){var P=R[A],I=B(P);if(I!=="object")return new y("Invalid "+D+" `"+N+"` of type `"+I+"` "+("supplied to `"+_+"`, expected `object`."));for(var M in v){var T=v[M];if(typeof T!="function")return w(_,D,N,M,X(T));var q=T(P,M,_,D,N+"."+M,r);if(q)return q}return null}return d(O)}function L(v){function O(R,A,_,D,N){var P=R[A],I=B(P);if(I!=="object")return new y("Invalid "+D+" `"+N+"` of type `"+I+"` "+("supplied to `"+_+"`, expected `object`."));var M=t({},R[A],v);for(var T in M){var q=v[T];if(n(v,T)&&typeof q!="function")return w(_,D,N,T,X(q));if(!q)return new y("Invalid "+D+" `"+N+"` key `"+T+"` supplied to `"+_+"`.\nBad object: "+JSON.stringify(R[A],null," ")+`
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var K=q(P,T,_,D,N+"."+T,r);if(K)return K}return null}return d(O)}function Z(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(Z);if(v===null||s(v))return!0;var O=g(v);if(O){var R=O.call(v),A;if(O!==v.entries){for(;!(A=R.next()).done;)if(!Z(A.value))return!1}else for(;!(A=R.next()).done;){var _=A.value;if(_&&!Z(_[1]))return!1}}else return!1;return!0;default:return!1}}function oe(v,O){return v==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function B(v){var O=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":oe(O,v)?"symbol":O}function X(v){if(typeof v>"u"||v===null)return""+v;var O=B(v);if(O==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return O}function Ne(v){var O=X(v);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function xe(v){return!v.constructor||!v.constructor.name?f:v.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Yt}var Jt,Yr;function la(){if(Yr)return Jt;Yr=1;var e=Wr();function t(){}function r(){}return r.resetWarningCache=t,Jt=function(){function n(i,s,l,c,p,g){if(g!==e){var f=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 f.name="Invariant Violation",f}}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},Jt}if(0)var Al,Pl;else Vr.exports=la()();var ua=Vr.exports;const fa=qo(ua);function Jr(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=Jr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Jr(e))&&(n&&(n+=" "),n+=t);return n}function Qt(e,t){const r=E({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=E({},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]=E({},a),Object.keys(o).forEach(i=>{r[n][i]=Qt(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Xr(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={},en={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})(en);var tn=en.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 pa=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),da=Te(pa);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=Te(ya);var rn=tn;Object.defineProperty(ee,"__esModule",{value:!0});var ga=ee.alpha=un;ee.blend=Ta,ee.colorChannel=void 0;var nn=ee.darken=er;ee.decomposeColor=de,ee.emphasize=fn;var ba=ee.getContrastRatio=Sa;ee.getLuminance=yt,ee.hexToRgb=sn,ee.hslToRgb=ln;var on=ee.lighten=tr;ee.private_safeAlpha=ja,ee.private_safeColorChannel=void 0,ee.private_safeDarken=ka,ee.private_safeEmphasize=Ca,ee.private_safeLighten=$a,ee.recomposeColor=Me,ee.rgbToHex=wa;var an=rn(da),va=rn(ha);function Xt(e,t=0,r=1){return(0,va.default)(e,t,r)}function sn(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 de(e){if(e.type)return e;if(e.charAt(0)==="#")return de(sn(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,an.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,an.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const cn=e=>{const t=de(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ee.colorChannel=cn;const Oa=(e,t)=>{try{return cn(e)}catch{return e}};ee.private_safeColorChannel=Oa;function Me(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 wa(e){if(e.indexOf("#")===0)return e;const{values:t}=de(e);return`#${t.map((r,n)=>xa(n===3?Math.round(255*r):r)).join("")}`}function ln(e){e=de(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 l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Me({type:s,values:l})}function yt(e){e=de(e);let t=e.type==="hsl"||e.type==="hsla"?de(ln(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 Sa(e,t){const r=yt(e),n=yt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function un(e,t){return e=de(e),t=Xt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Me(e)}function ja(e,t,r){try{return un(e,t)}catch{return e}}function er(e,t){if(e=de(e),t=Xt(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 Me(e)}function ka(e,t,r){try{return er(e,t)}catch{return e}}function tr(e,t){if(e=de(e),t=Xt(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 Me(e)}function $a(e,t,r){try{return tr(e,t)}catch{return e}}function fn(e,t=.15){return yt(e)>.5?er(e,t):tr(e,t)}function Ca(e,t,r){try{return fn(e,t)}catch{return e}}function Ta(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),a=de(e),i=de(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Me({type:"rgb",values:s})}var He={},pn={exports:{}},dn;function Ea(){return dn||(dn=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}(pn)),pn.exports}var mn={exports:{}},yn;function _a(){return yn||(yn=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}(mn)),mn.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 Aa(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 Pa=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(Aa(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-",ht="-moz-",z="-webkit-",hn="comm",rr="rule",nr="decl",Ra="@import",gn="@keyframes",Da="@layer",Ma=Math.abs,gt=String.fromCharCode,Ia=Object.assign;function Va(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 bn(e){return e.trim()}function za(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function or(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 be(e){return e.length}function ar(e){return e.length}function bt(e,t){return t.push(e),e}function Fa(e,t){return e.map(t).join("")}var vt=1,Ie=1,vn=0,ce=0,ne=0,Ve="";function xt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:vt,column:Ie,length:i,return:""}}function Ye(e,t){return Ia(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function La(){return ne}function Ua(){return ne=ce>0?ae(Ve,--ce):0,Ie--,ne===10&&(Ie=1,vt--),ne}function le(){return ne=ce<vn?ae(Ve,ce++):0,Ie++,ne===10&&(Ie=1,vt++),ne}function ve(){return ae(Ve,ce)}function Ot(){return ce}function Je(e,t){return Ze(Ve,e,t)}function Qe(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 xn(e){return vt=Ie=1,vn=be(Ve=e),ce=0,[]}function On(e){return Ve="",e}function wt(e){return bn(Je(ce-1,ir(e===91?e+2:e===40?e+1:e)))}function Ga(e){for(;(ne=ve())&&ne<33;)le();return Qe(e)>2||Qe(ne)>3?"":" "}function Ka(e,t){for(;--t&&le()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Je(e,Ot()+(t<6&&ve()==32&&le()==32))}function ir(e){for(;le();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&ir(ne);break;case 40:e===41&&ir(e);break;case 92:le();break}return ce}function Wa(e,t){for(;le()&&e+ne!==57&&!(e+ne===84&&ve()===47););return"/*"+Je(t,ce-1)+"*"+gt(e===47?e:le())}function Ba(e){for(;!Qe(ve());)le();return Je(e,ce)}function qa(e){return On(St("",null,null,null,[""],e=xn(e),0,[0],e))}function St(e,t,r,n,o,a,i,s,l){for(var c=0,p=0,g=i,f=0,b=0,h=0,y=1,d=1,x=1,S=0,j="",V=o,m=a,k=n,$=j;d;)switch(h=S,S=le()){case 40:if(h!=108&&ae($,g-1)==58){or($+=F(wt(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=wt(S);break;case 9:case 10:case 13:case 32:$+=Ga(h);break;case 92:$+=Ka(Ot()-1,7);continue;case 47:switch(ve()){case 42:case 47:bt(Ha(Wa(le(),Ot()),t,r),l);break;default:$+="/"}break;case 123*y:s[c++]=be($)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:d=0;case 59+p:x==-1&&($=F($,/\f/g,"")),b>0&&be($)-g&&bt(b>32?Sn($+";",n,r,g-1):Sn(F($," ","")+";",n,r,g-2),l);break;case 59:$+=";";default:if(bt(k=wn($,t,r,c,p,o,s,j,V=[],m=[],g),a),S===123)if(p===0)St($,t,k,k,V,a,g,s,m);else switch(f===99&&ae($,3)===110?100:f){case 100:case 108:case 109:case 115:St(e,k,k,n&&bt(wn(e,k,k,0,0,o,s,j,o,V=[],g),m),o,m,g,s,n?V:m);break;default:St($,k,k,k,[""],m,0,s,m)}}c=p=b=0,y=x=1,j=$="",g=i;break;case 58:g=1+be($),b=h;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&Ua()==125)continue}switch($+=gt(S),S*y){case 38:x=p>0?1:($+="\f",-1);break;case 44:s[c++]=(be($)-1)*x,x=1;break;case 64:ve()===45&&($+=wt(le())),f=ve(),p=g=be(j=$+=Ba(Ot())),S++;break;case 45:h===45&&be($)==2&&(y=0)}}return a}function wn(e,t,r,n,o,a,i,s,l,c,p){for(var g=o-1,f=o===0?a:[""],b=ar(f),h=0,y=0,d=0;h<n;++h)for(var x=0,S=Ze(e,g+1,g=Ma(y=i[h])),j=e;x<b;++x)(j=bn(y>0?f[x]+" "+S:F(S,/&\f/g,f[x])))&&(l[d++]=j);return xt(e,t,r,o===0?rr:s,l,c,p)}function Ha(e,t,r){return xt(e,t,r,hn,gt(La()),Ze(e,2,-2),0)}function Sn(e,t,r,n){return xt(e,t,r,nr,Ze(e,0,n),Ze(e,n+1,-1),n)}function ze(e,t){for(var r="",n=ar(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Za(e,t,r,n){switch(e.type){case Da:if(e.children.length)break;case Ra:case nr:return e.return=e.return||e.value;case hn:return"";case gn:return e.return=e.value+"{"+ze(e.children,n)+"}";case rr:e.value=e.props.join(",")}return be(r=ze(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ya(e){var t=ar(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=ve(),n===38&&o===12&&(t[r]=1),!Qe(o);)le();return Je(e,ce)},Xa=function(e,t){var r=-1,n=44;do switch(Qe(n)){case 0:n===38&&ve()===12&&(t[r]=1),e[r]+=Qa(ce-1,t,r);break;case 2:e[r]+=wt(n);break;case 4:if(n===44){e[++r]=ve()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=gt(n)}while(n=le());return e},ei=function(e,t){return On(Xa(xn(e),t))},jn=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&&!jn.get(r))&&!n){jn.set(e,!0);for(var o=[],a=ei(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=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},Rl=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 l=i[s];if(l.line<t.line)break;if(l.column<t.column){if(oi(l))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".')})}}}},kn=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(!kn(t[r]))return!0;return!1},$n=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Dl=function(e,t,r){kn(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."),$n(e)):ai(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),$n(e)))};function Cn(e,t){switch(Va(e,t)){case 5103:return z+"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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+ht+e+se+e+e;case 6828:case 4268:return z+e+se+e+e;case 6165:return z+e+se+"flex-"+e+e;case 5187:return z+e+F(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return z+e+se+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return z+e+se+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+se+F(e,"shrink","negative")+e;case 5292:return z+e+se+F(e,"basis","preferred-size")+e;case 6060:return z+"box-"+F(e,"-grow","")+z+e+se+F(e,"grow","positive")+e;case 4554:return z+F(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,z+"$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(be(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+ht+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~or(e,"stretch")?Cn(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,be(e)-3-(~or(e,"!important")&&10))){case 107:return F(e,":",":"+z)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(ae(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return z+e+se+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+se+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+se+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+se+e+e}return e}var ii=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=Cn(e.value,e.length);break;case gn:return ze([Ye(e,{value:F(e.value,"@","@"+z)})],n);case rr:if(e.length)return Fa(e.props,function(o){switch(za(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ze([Ye(e,{props:[F(o,/:(read-\w+)/,":"+ht+"$1")]})],n);case"::placeholder":return ze([Ye(e,{props:[F(o,/:(plac\w+)/,":"+z+"input-$1")]}),Ye(e,{props:[F(o,/:(plac\w+)/,":"+ht+"$1")]}),Ye(e,{props:[F(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(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.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(h){for(var y=h.getAttribute("data-emotion").split(" "),d=1;d<y.length;d++)o[y[d]]=!0;i.push(h)});var s,l=[ti,ri];{var c,p=[Za,Ja(function(h){c.insert(h)})],g=Ya(l.concat(n,p)),f=function(h){return ze(qa(h),g)};s=function(h,y,d,x){c=d,f(h?h+"{"+y.styles+"}":y.styles),x&&(b.inserted[y.name]=!0)}}var b={key:t,sheet:new Pa({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 sr;typeof document=="object"&&(sr=ci({key:"css",prepend:!0}));function li(e){const{injectFirst:t,children:r}=e;return t&&sr?u.jsx(Zo,{value:sr,children:r}):r}function ui(e){return e==null||Object.keys(e).length===0}function Tn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(ui(o)?r:o):t;return u.jsx(Yo,{styles:n})}function En(e,t){return Ho(e,t)}const _n=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Tn,StyledEngineProvider:li,ThemeContext:Dr,css:Jo,default:En,internal_processStyles:_n,keyframes:Qo},Symbol.toStringTag,{value:"Module"})),pi=Te(fi);function Se(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 Nn(e){if(!Se(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Nn(e[r])}),t}function ge(e,t,r={clone:!0}){const n=r.clone?E({},e):e;return Se(e)&&Se(t)&&Object.keys(t).forEach(o=>{Se(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Se(e[o])?n[o]=ge(e[o],t[o],r):r.clone?n[o]=Se(t[o])?Nn(t[o]):t[o]:n[o]=t[o]}),n}const di=Object.freeze(Object.defineProperty({__proto__:null,default:ge,isPlainObject:Se},Symbol.toStringTag,{value:"Module"})),mi=Te(di);function jt(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:jt},Symbol.toStringTag,{value:"Module"})),hi=Te(yi);var An={exports:{}},G={},Pn;function gi(){if(Pn)return G;Pn=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function y(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 l:case f:case g:case a:return d;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=a,G.Element=e,G.ForwardRef=l,G.Fragment=r,G.Lazy=f,G.Memo=g,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 y(d)===i},G.isContextProvider=function(d){return y(d)===a},G.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},G.isForwardRef=function(d){return y(d)===l},G.isFragment=function(d){return y(d)===r},G.isLazy=function(d){return y(d)===f},G.isMemo=function(d){return y(d)===g},G.isPortal=function(d){return y(d)===t},G.isProfiler=function(d){return y(d)===o},G.isStrictMode=function(d){return y(d)===n},G.isSuspense=function(d){return y(d)===c},G.isSuspenseList=function(d){return y(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===f||d.$$typeof===g||d.$$typeof===a||d.$$typeof===i||d.$$typeof===l||d.$$typeof===h||d.getModuleId!==void 0)},G.typeOf=y,G}var bi={},Rn;function Ml(){return Rn||(Rn=1),bi}An.exports=gi();var cr=An.exports;const vi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Dn(e){const t=`${e}`.match(vi);return t&&t[1]||""}function Mn(e,t=""){return e.displayName||e.name||Dn(e)||t}function In(e,t,r){const n=Mn(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 Mn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case cr.ForwardRef:return In(e,e.render,"ForwardRef");case cr.Memo:return In(e,e.type,"memo");default:return}}}const Oi=Object.freeze(Object.defineProperty({__proto__:null,default:xi,getFunctionName:Dn},Symbol.toStringTag,{value:"Module"})),wi=Te(Oi),Si=["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)=>E({},r,{[n.key]:n.val}),{})};function Vn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pe(e,Si),a=ji(t),i=Object.keys(a);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,b){const h=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[i[h]]=="number"?t[i[h]]:b)-n/100}${r})`}function p(f){return i.indexOf(f)+1<i.length?c(f,i[i.indexOf(f)+1]):s(f)}function g(f){const b=i.indexOf(f);return b===0?s(i[1]):b===i.length-1?l(i[b]):c(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return E({keys:i,values:a,up:s,down:l,between:c,only:p,not:g,unit:r},o)}const ki={borderRadius:4},Il={};function Xe(e,t){return t?ge(e,t,{clone:!1}):e}const lr={xs:0,sm:600,md:900,lg:1200,xl:1536},zn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lr[e]}px)`};function je(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||zn;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||zn;return Object.keys(t).reduce((a,i)=>{if(Object.keys(o.values||lr).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 Ci(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function kt(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 $t(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=kt(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],l=i.theme,c=kt(l,n)||{};return je(i,s,p=>{let g=$t(c,o,p);return p===g&&typeof p=="string"&&(g=$t(c,o,`${t}${p==="default"?"":jt(p)}`,p)),r===!1?g:{[r]:g}})};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 Ei={m:"margin",p:"padding"},_i={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ni=Ti(e=>{if(e.length>2)if(Fn[e])e=Fn[e];else return[e];const[t,r]=e.split(""),n=Ei[t],o=_i[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),ur=["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=[...ur,...fr];function et(e,t,r,n){var o;const a=(o=kt(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 Ln(e){return et(e,"spacing",8,"spacing")}function tt(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 Ai(e,t){return r=>e.reduce((n,o)=>(n[o]=tt(t,r),n),{})}function Pi(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ni(r),a=Ai(o,n),i=e[r];return je(e,i,a)}function Un(e,t){const r=Ln(e.theme);return Object.keys(e).map(n=>Pi(e,t,n,r)).reduce(Xe,{})}function Y(e){return Un(e,ur)}Y.propTypes={},Y.filterProps=ur;function J(e){return Un(e,fr)}J.propTypes={},J.filterProps=fr;function Ri(e=8){if(e.mui)return e;const t=Ln({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 Ct(...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]?Xe(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function me(e){return typeof e!="number"?e:`${e}px solid`}function ye(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Di=ye("border",me),Mi=ye("borderTop",me),Ii=ye("borderRight",me),Vi=ye("borderBottom",me),zi=ye("borderLeft",me),Fi=ye("borderColor"),Li=ye("borderTopColor"),Ui=ye("borderRightColor"),Gi=ye("borderBottomColor"),Ki=ye("borderLeftColor"),Wi=ye("outline",me),Bi=ye("outlineColor"),Tt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=et(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:tt(t,n)});return je(e,e.borderRadius,r)}return null};Tt.propTypes={},Tt.filterProps=["borderRadius"],Ct(Di,Mi,Ii,Vi,zi,Fi,Li,Ui,Gi,Ki,Tt,Wi,Bi);const Et=e=>{if(e.gap!==void 0&&e.gap!==null){const t=et(e.theme,"spacing",8,"gap"),r=n=>({gap:tt(t,n)});return je(e,e.gap,r)}return null};Et.propTypes={},Et.filterProps=["gap"];const _t=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=et(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:tt(t,n)});return je(e,e.columnGap,r)}return null};_t.propTypes={},_t.filterProps=["columnGap"];const Nt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=et(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:tt(t,n)});return je(e,e.rowGap,r)}return null};Nt.propTypes={},Nt.filterProps=["rowGap"];const qi=te({prop:"gridColumn"}),Hi=te({prop:"gridRow"}),Zi=te({prop:"gridAutoFlow"}),Yi=te({prop:"gridAutoColumns"}),Ji=te({prop:"gridAutoRows"}),Qi=te({prop:"gridTemplateColumns"}),Xi=te({prop:"gridTemplateRows"}),es=te({prop:"gridTemplateAreas"}),ts=te({prop:"gridArea"});Ct(Et,_t,Nt,qi,Hi,Zi,Yi,Ji,Qi,Xi,es,ts);function Fe(e,t){return t==="grey"?t:e}const rs=te({prop:"color",themeKey:"palette",transform:Fe}),ns=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fe}),os=te({prop:"backgroundColor",themeKey:"palette",transform:Fe});Ct(rs,ns,os);function ue(e){return e<=1&&e!==0?`${e*100}%`:e}const as=te({prop:"width",transform:ue}),pr=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])||lr[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:ue(r)}};return je(e,e.maxWidth,t)}return null};pr.filterProps=["maxWidth"];const is=te({prop:"minWidth",transform:ue}),ss=te({prop:"height",transform:ue}),cs=te({prop:"maxHeight",transform:ue}),ls=te({prop:"minHeight",transform:ue});te({prop:"size",cssProperty:"width",transform:ue}),te({prop:"size",cssProperty:"height",transform:ue});const us=te({prop:"boxSizing"});Ct(as,pr,is,ss,cs,ls,us);const rt={border:{themeKey:"borders",transform:me},borderTop:{themeKey:"borders",transform:me},borderRight:{themeKey:"borders",transform:me},borderBottom:{themeKey:"borders",transform:me},borderLeft:{themeKey:"borders",transform:me},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:me},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tt},color:{themeKey:"palette",transform:Fe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fe},backgroundColor:{themeKey:"palette",transform:Fe},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:Y},mt:{style:Y},mr:{style:Y},mb:{style:Y},ml:{style:Y},mx:{style:Y},my:{style:Y},margin:{style:Y},marginTop:{style:Y},marginRight:{style:Y},marginBottom:{style:Y},marginLeft:{style:Y},marginX:{style:Y},marginY:{style:Y},marginInline:{style:Y},marginInlineStart:{style:Y},marginInlineEnd:{style:Y},marginBlock:{style:Y},marginBlockStart:{style:Y},marginBlockEnd:{style:Y},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:Et},rowGap:{style:Nt},columnGap:{style:_t},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ue},maxWidth:{style:pr},minWidth:{transform:ue},height:{transform:ue},maxHeight:{transform:ue},minHeight:{transform:ue},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fs(...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 ps(e,t){return typeof e=="function"?e(t):e}function Gn(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:p,style:g}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=kt(o,c)||{};return g?g(i):je(i,n,b=>{let h=$t(f,p,b);return b===h&&typeof b=="string"&&(h=$t(f,p,`${r}${b==="default"?"":jt(b)}`,b)),l===!1?h:{[l]:h}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:rt;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const p=$i(a.breakpoints),g=Object.keys(p);let f=p;return Object.keys(c).forEach(b=>{const h=ps(c[b],a);if(h!=null)if(typeof h=="object")if(i[b])f=Xe(f,e(b,h,a,i));else{const y=je({theme:a},h,d=>({[b]:d}));fs(y,h)?f[b]=t({sx:h,theme:a}):f=Xe(f,y)}else f=Xe(f,e(b,h,a,i))}),Ci(g,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const nt=Gn();nt.filterProps=["sx"];function Kn(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 ot(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=pe(e,ds),s=Vn(r),l=Ri(o);let c=ge({breakpoints:s,direction:"ltr",components:{},palette:E({mode:"light"},n),spacing:l,shape:E({},ki,a)},i);return c.applyStyles=Kn,c=t.reduce((p,g)=>ge(p,g),c),c.unstable_sxConfig=E({},rt,i?.unstable_sxConfig),c.unstable_sx=function(p){return nt({sx:p,theme:this})},c}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:ot,private_createBreakpoints:Vn,unstable_applyStyles:Kn},Symbol.toStringTag,{value:"Module"})),ys=Te(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:rt;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function dr(e){const{sx:t}=e,r=pe(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 Se(s)?E({},n,s):n}:a=E({},n,t),E({},o,{sx:a})}const bs=Object.freeze(Object.defineProperty({__proto__:null,default:nt,extendSxProp:dr,unstable_createStyleFunctionSx:Gn,unstable_defaultSxConfig:rt},Symbol.toStringTag,{value:"Module"})),vs=Te(bs);var Le=tn;Object.defineProperty(He,"__esModule",{value:!0});var xs=He.default=Ps;He.shouldForwardProp=At,He.systemDefaultTheme=void 0;var he=Le(Ea()),mr=Le(_a()),Wn=Cs(pi),Os=mi,zl=Le(hi),Fl=Le(wi),ws=Le(ys),Ss=Le(vs);const js=["ownerState"],ks=["variants"],$s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Bn=function(n){return n?r:t})(e)}function Cs(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Bn(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 Es(e){return typeof e=="string"&&e.charCodeAt(0)>96}function At(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _s=He.systemDefaultTheme=(0,ws.default)(),Ns=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Pt({defaultTheme:e,theme:t,themeId:r}){return Ts(t)?e:t[r]||t}function As(e){return e?(t,r)=>r[e]:null}function Rt(e,t){let{ownerState:r}=t,n=(0,mr.default)(t,js);const o=typeof e=="function"?e((0,he.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Rt(a,(0,he.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=(0,mr.default)(o,ks);return a.forEach(s=>{let l=!0;typeof s.props=="function"?l=s.props((0,he.default)({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(l=!1)}),l&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style((0,he.default)({ownerState:r},n,r)):s.style))}),i}return o}function Ps(e={}){const{themeId:t,defaultTheme:r=_s,rootShouldForwardProp:n=At,slotShouldForwardProp:o=At}=e,a=i=>(0,Ss.default)((0,he.default)({},i,{theme:Pt((0,he.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Wn.internal_processStyles)(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:p,skipSx:g,overridesResolver:f=As(Ns(c))}=s,b=(0,mr.default)(s,$s),h=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,y=g||!1;let d,x=At;c==="Root"||c==="root"?x=n:c?x=o:Es(i)&&(x=void 0);const S=(0,Wn.default)(i,(0,he.default)({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||(0,Os.isPlainObject)(m)?k=>Rt(m,(0,he.default)({},k,{theme:Pt({theme:k.theme,defaultTheme:r,themeId:t})})):m,V=(m,...k)=>{let $=j(m);const W=k?k.map(j):[];l&&f&&W.push(w=>{const C=Pt((0,he.default)({},w,{defaultTheme:r,themeId:t}));if(!C.components||!C.components[l]||!C.components[l].styleOverrides)return null;const L=C.components[l].styleOverrides,Z={};return Object.entries(L).forEach(([oe,B])=>{Z[oe]=Rt(B,(0,he.default)({},w,{theme:C}))}),f(w,Z)}),l&&!h&&W.push(w=>{var C;const L=Pt((0,he.default)({},w,{defaultTheme:r,themeId:t})),Z=L==null||(C=L.components)==null||(C=C[l])==null?void 0:C.variants;return Rt({variants:Z},(0,he.default)({},w,{theme:L}))}),y||W.push(a);const re=W.length-k.length;if(Array.isArray(m)&&re>0){const w=new Array(re).fill("");$=[...m,...w],$.raw=[...m.raw,...w]}const Q=S($,...W);return i.muiName&&(Q.muiName=i.muiName),Q};return S.withConfig&&(V.withConfig=S.withConfig),V}}const qn=e=>e,Rs=()=>{let e=qn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qn}}},Ds=Rs(),Ms={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 Hn(e,t,r="Mui"){const n=Ms[t];return n?`${r}-${n}`:`${Ds.generate(e)}-${t}`}function Is(e,t){return E({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const at={black:"#000",white:"#fff"},Vs={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"},Ue={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"},Ge={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"},it={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"},Ke={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"},We={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"},Be={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"},zs=["mode","contrastThreshold","tonalOffset"],Zn={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:at.white,default:at.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}},yr={text:{primary:at.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:at.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 Yn(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=on(e.main,o):t==="dark"&&(e.dark=nn(e.main,a)))}function Fs(e="light"){return e==="dark"?{main:Ke[200],light:Ke[50],dark:Ke[400]}:{main:Ke[700],light:Ke[400],dark:Ke[800]}}function Ls(e="light"){return e==="dark"?{main:Ue[200],light:Ue[50],dark:Ue[400]}:{main:Ue[500],light:Ue[300],dark:Ue[700]}}function Us(e="light"){return e==="dark"?{main:Ge[500],light:Ge[300],dark:Ge[700]}:{main:Ge[700],light:Ge[400],dark:Ge[800]}}function Gs(e="light"){return e==="dark"?{main:We[400],light:We[300],dark:We[700]}:{main:We[700],light:We[500],dark:We[900]}}function Ks(e="light"){return e==="dark"?{main:Be[400],light:Be[300],dark:Be[700]}:{main:Be[800],light:Be[500],dark:Be[900]}}function Ws(e="light"){return e==="dark"?{main:it[400],light:it[300],dark:it[700]}:{main:"#ed6c02",light:it[500],dark:it[900]}}function Bs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pe(e,zs),a=e.primary||Fs(t),i=e.secondary||Ls(t),s=e.error||Us(t),l=e.info||Gs(t),c=e.success||Ks(t),p=e.warning||Ws(t);function g(h){return ba(h,yr.text.primary)>=r?yr.text.primary:Zn.text.primary}const f=({color:h,name:y,mainShade:d=500,lightShade:x=300,darkShade:S=700})=>{if(h=E({},h),!h.main&&h[d]&&(h.main=h[d]),!h.hasOwnProperty("main"))throw new Error(De(11,y?` (${y})`:"",d));if(typeof h.main!="string")throw new Error(De(12,y?` (${y})`:"",JSON.stringify(h.main)));return Yn(h,"light",x,n),Yn(h,"dark",S,n),h.contrastText||(h.contrastText=g(h.main)),h},b={dark:yr,light:Zn};return ge(E({common:E({},at),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:Vs,contrastThreshold:r,getContrastText:g,augmentColor:f,tonalOffset:n},b[t]),o)}const qs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Hs(e){return Math.round(e*1e5)/1e5}const Jn={textTransform:"uppercase"},Qn='"Roboto", "Helvetica", "Arial", sans-serif';function Zs(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Qn,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:p,pxToRem:g}=r,f=pe(r,qs),b=o/14,h=g||(x=>`${x/c*b}rem`),y=(x,S,j,V,m)=>E({fontFamily:n,fontWeight:x,fontSize:h(S),lineHeight:j},n===Qn?{letterSpacing:`${Hs(V/S)}em`}:{},m,p),d={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,Jn),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Jn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ge(E({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},d),f,{clone:!1})}const Ys=.2,Js=.14,Qs=.12;function H(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ys})`,`${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",H(0,2,1,-1,0,1,1,0,0,1,3,0),H(0,3,1,-2,0,2,2,0,0,1,5,0),H(0,3,3,-2,0,3,4,0,0,1,8,0),H(0,2,4,-1,0,4,5,0,0,1,10,0),H(0,3,5,-1,0,5,8,0,0,1,14,0),H(0,3,5,-1,0,6,10,0,0,1,18,0),H(0,4,5,-2,0,7,10,1,0,2,16,1),H(0,5,5,-3,0,8,10,1,0,3,14,2),H(0,5,6,-3,0,9,12,1,0,3,16,2),H(0,6,6,-3,0,10,14,1,0,4,18,3),H(0,6,7,-4,0,11,15,1,0,4,20,3),H(0,7,8,-4,0,12,17,2,0,5,22,4),H(0,7,8,-4,0,13,19,2,0,5,24,4),H(0,7,9,-4,0,14,21,2,0,5,26,4),H(0,8,9,-5,0,15,22,2,0,6,28,5),H(0,8,10,-5,0,16,24,2,0,6,30,5),H(0,8,11,-5,0,17,26,2,0,6,32,5),H(0,9,11,-5,0,18,28,2,0,7,34,6),H(0,9,12,-6,0,19,29,2,0,7,36,6),H(0,10,13,-6,0,20,31,3,0,8,38,7),H(0,10,13,-6,0,21,33,3,0,8,40,7),H(0,10,14,-6,0,22,35,3,0,8,42,7),H(0,11,14,-7,0,23,36,3,0,9,44,8),H(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 Xn(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=E({},tc,e.easing),r=E({},rc,e.duration);return E({getAutoHeightDuration:nc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,l=pe(o,ec);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:Xn(a)} ${i} ${typeof s=="string"?s:Xn(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=pe(e,ic);if(e.vars)throw new Error(De(18));const s=Bs(n),l=ot(e);let c=ge(l,{mixins:Is(l.breakpoints,r),palette:s,shadows:Xs.slice(),typography:Zs(s,a),transitions:oc(o),zIndex:E({},ac)});return c=ge(c,i),c=t.reduce((p,g)=>ge(p,g),c),c.unstable_sxConfig=E({},rt,i?.unstable_sxConfig),c.unstable_sx=function(p){return nt({sx:p,theme:this})},c}const hr=sc(),gr="$$material";function eo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const to=e=>eo(e)&&e!=="classes",ro=xs({themeId:gr,defaultTheme:hr,rootShouldForwardProp:to});function cc(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Qt(t.components[r].defaultProps,n)}function lc(e){return Object.keys(e).length===0}function uc(e=null){const t=Ce.useContext(Dr);return!t||lc(t)?e:t}const fc=ot();function br(e=fc){return uc(e)}function no({props:e,name:t,defaultTheme:r,themeId:n}){let o=br(r);return n&&(o=o[n]||o),cc({theme:o,name:t,props:e})}function oo({props:e,name:t}){return no({props:e,name:t,defaultTheme:hr,themeId:gr})}const pc=["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 vr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gc=ot(),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 Mt(e,t){let{ownerState:r}=t,n=pe(t,pc);const o=typeof e=="function"?e(E({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Mt(a,E({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=pe(o,dc);return a.forEach(s=>{let l=!0;typeof s.props=="function"?l=s.props(E({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(l=!1)}),l&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(E({ownerState:r},n,r)):s.style))}),i}return o}function xc(e={}){const{themeId:t,defaultTheme:r=gc,rootShouldForwardProp:n=vr,slotShouldForwardProp:o=vr}=e,a=i=>nt(E({},i,{theme:Dt(E({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{_n(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:p,skipSx:g,overridesResolver:f=vc(bc(c))}=s,b=pe(s,mc),h=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,y=g||!1;let d,x=vr;c==="Root"||c==="root"?x=n:c?x=o:hc(i)&&(x=void 0);const S=En(i,E({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||Se(m)?k=>Mt(m,E({},k,{theme:Dt({theme:k.theme,defaultTheme:r,themeId:t})})):m,V=(m,...k)=>{let $=j(m);const W=k?k.map(j):[];l&&f&&W.push(w=>{const C=Dt(E({},w,{defaultTheme:r,themeId:t}));if(!C.components||!C.components[l]||!C.components[l].styleOverrides)return null;const L=C.components[l].styleOverrides,Z={};return Object.entries(L).forEach(([oe,B])=>{Z[oe]=Mt(B,E({},w,{theme:C}))}),f(w,Z)}),l&&!h&&W.push(w=>{var C;const L=Dt(E({},w,{defaultTheme:r,themeId:t})),Z=L==null||(C=L.components)==null||(C=C[l])==null?void 0:C.variants;return Mt({variants:Z},E({},w,{theme:L}))}),y||W.push(a);const re=W.length-k.length;if(Array.isArray(m)&&re>0){const w=new Array(re).fill("");$=[...m,...w],$.raw=[...m.raw,...w]}const Q=S($,...W);return i.muiName&&(Q.muiName=i.muiName),Q};return S.withConfig&&(V.withConfig=S.withConfig),V}}const Oc=xc();function ao(e,t){var r,n;return Ce.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 wc=(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:wc(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 ke(e){return e?`Level${e}`:""}function st(e){return e.unstable_level>0&&e.container}function io(e){return function(t){return`var(--Grid-${t}Spacing${ke(e.unstable_level)})`}}function xr(e){return function(t){return e.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${ke(e.unstable_level-1)})`}}function Or(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${ke(e.unstable_level-1)})`}const Sc=({theme:e,ownerState:t})=>{const r=io(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)}${st(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=st(t)?{[`--Grid-columns${ke(t.unstable_level)}`]:Or(t)}:{"--Grid-columns":12};return qe(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${ke(t.unstable_level)}`]:o})}),r},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=xr(t),n=st(t)?{[`--Grid-rowSpacing${ke(t.unstable_level)}`]:r("row")}:{};return qe(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${ke(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=xr(t),n=st(t)?{[`--Grid-columnSpacing${ke(t.unstable_level)}`]:r("column")}:{};return qe(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${ke(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},Ec=({ownerState:e})=>{const t=io(e),r=xr(e);return E({minWidth:0,boxSizing:"border-box"},e.container&&E({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||st(e))&&E({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},_c=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[]},Ac=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Pc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Rc=ot(),Dc=Oc("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Mc(e){return no({props:e,name:"MuiGrid",defaultTheme:Rc})}function Ic(e={}){const{createStyledComponent:t=Dc,useThemeProps:r=Mc,componentName:n="MuiGrid"}=e,o=Ce.createContext(void 0),a=(l,c)=>{const{container:p,direction:g,spacing:f,wrap:b,gridSize:h}=l,y={root:["root",p&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...Ac(g),..._c(h),...p?Nc(f,c.breakpoints.keys[0]):[]]};return Xr(y,d=>Hn(n,d),{})},i=t(kc,Cc,$c,Sc,Tc,Ec,jc),s=Ce.forwardRef(function(l,c){var p,g,f,b,h,y,d,x;const S=br(),j=r(l),V=dr(j),m=Ce.useContext(o),{className:k,children:$,columns:W=12,container:re=!1,component:Q="div",direction:w="row",wrap:C="wrap",spacing:L=0,rowSpacing:Z=L,columnSpacing:oe=L,disableEqualOverflow:B,unstable_level:X=0}=V,Ne=pe(V,Pc);let xe=B;X&&B!==void 0&&(xe=l.disableEqualOverflow);const v={},O={},R={};Object.entries(Ne).forEach(([T,q])=>{S.breakpoints.values[T]!==void 0?v[T]=q:S.breakpoints.values[T.replace("Offset","")]!==void 0?O[T.replace("Offset","")]=q:R[T]=q});const A=(p=l.columns)!=null?p:X?void 0:W,_=(g=l.spacing)!=null?g:X?void 0:L,D=(f=(b=l.rowSpacing)!=null?b:l.spacing)!=null?f:X?void 0:Z,N=(h=(y=l.columnSpacing)!=null?y:l.spacing)!=null?h:X?void 0:oe,P=E({},V,{level:X,columns:A,container:re,direction:w,wrap:C,spacing:_,rowSpacing:D,columnSpacing:N,gridSize:v,gridOffset:O,disableEqualOverflow:(d=(x=xe)!=null?x:m)!=null?d:!1,parentDisableEqualOverflow:m}),I=a(P,S);let M=u.jsx(i,E({ref:c,as:Q,ownerState:P,className:Qr(I.root,k)},R,{children:Ce.Children.map($,T=>{if(Ce.isValidElement(T)&&ao(T,["Grid"])){var q;return Ce.cloneElement(T,{unstable_level:(q=T.props.unstable_level)!=null?q:X+1})}return T})}));return xe!==void 0&&xe!==(m??!1)&&(M=u.jsx(o.Provider,{value:xe,children:M})),M});return s.muiName="Grid",s}function wr({value:e,children:t}){return e?typeof t=="function"?u.jsx(u.Fragment,{children:t(e)}):u.jsx(u.Fragment,{children:t}):null}const so={},ct={};function lt(e,t){try{const r=(so[e]||(so[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in ct?ct[r]:co(r,r.split(":"))}catch{if(e in ct)return ct[e];const r=e?.match(Vc);return r?co(e,r.slice(1)):NaN}}const Vc=/([+-]\d\d):?(\d\d)?/;function co(e,t){const r=+t[0],n=+(t[1]||0);return ct[e]=r>0?r*60+n:r*60-n}class $e extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(lt(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)),uo(this),Sr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new $e(...r,t):new $e(Date.now(),t)}withTimeZone(t){return new $e(+this,t)}getTimezoneOffset(){return-lt(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Sr(this),+this}[Symbol.for("constructDateFrom")](t){return new $e(+new Date(t),this.timeZone)}}const lo=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!lo.test(e))return;const t=e.replace(lo,"$1UTC");$e.prototype[t]&&(e.startsWith("get")?$e.prototype[e]=function(){return this.internal[t]()}:($e.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),zc(this),+this},$e.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Sr(this),+this}))});function Sr(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function zc(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()),uo(e)}function uo(e){const t=lt(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 l=lt(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-l,p=l!==t,g=c-s;if(p&&g){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);const f=lt(e.timeZone,e),b=l-f;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}const Fc=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("/")},Lc=(e,t)=>new Date(Number(e)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...t});function fo(){return{enqueueSnackbar:(e,t="success",r)=>{ta(e,{severity:t,variant:"customAlertComponent",persist:!0,...r})},closeSnackbar:Ir}}const Uc=zo(({id:e,message:t,severity:r,alertAction:n,sx:o,showCloseIcon:a=!0,persist:i,hideIconVariant:s,autoHideDuration:l,anchorOrigin:c,iconVariant:p,...g},f)=>u.jsx(ea,{ref:f,...g,children:u.jsx(ko,{severity:r,action:u.jsxs(Ae,{ml:1,children:[u.jsx(wr,{value:n,children:u.jsx(jr,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),u.jsx(wr,{value:!n&&a,children:u.jsx(jr,{size:"small",onClick:()=>{Ir(e)},color:"inherit",children:u.jsx(Xo,{})})})]}),sx:{alignItems:"center",width:"320px",...o},children:t})})),po=Ic({createStyledComponent:ro("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>oo({props:e,name:"MuiGrid2"})});function Gc({entry:e,payload:t,showUuid:r=!0}){const n=Gt(f=>{var b,h,y;return(y=(h=(b=f.payload)==null?void 0:b.data)==null?void 0:h.reduce)==null?void 0:y.call(h,(d,x)=>d+x.value,0)},[]),o=Gt(f=>{const b=new Wt(n(f)||0),h=t?.reduce((x,S)=>x+n(S),0)||0,y=new Wt(h),d=Number(b.div(y).times(100).toFixed(2,Wt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=Kt(()=>n(e),[e,n]),i=Bt(a),s=Kt(()=>Number(o(e)),[e,o]),l=Bt(s),c=Gt(f=>Math.floor(f).toLocaleString(),[]),p=Wo({type:"text/plain"}),g=fo();return u.jsxs(Bo,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[u.jsx(Ae,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),u.jsxs(Pe,{children:[u.jsxs(Oe,{component:"p",variant:"caption",children:[u.jsx(Pe,{component:"span",display:"inline-flex",mr:.5,children:u.jsx(Rr,{from:i??0,to:a,map:c,children:"0"})}),u.jsxs(Pe,{component:"span",direction:"row",display:"inline-flex",children:["(",u.jsx(Rr,{from:l??0,to:s,map:c,children:"0"}),"%)"]})]}),u.jsx(Oe,{variant:"body1",children:e.value}),e.payload.integrationType&&u.jsx(Oe,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&u.jsxs(Oe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{p.copy(e.payload.uuid).catch(()=>{}),g.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function mo(e){const{payload:t}=e;return u.jsx(po,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:u.jsx(Ko,{children:t?.map(r=>u.jsx(po,{children:u.jsx(Gc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.value}`))})})}function yo(e){const t=we();return u.jsx(Ae,{sx:{width:"100%",height:"100%",...e.sx},children:u.jsx(pt,{children:u.jsxs(_o,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[u.jsx(Vt,{vertical:!1}),u.jsx(zt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Ar(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),u.jsx(Ft,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&u.jsx(Lt,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),u.jsx(Ut,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Pr(r,{timeZone:e.filter.timezone,hour12:!1})}),u.jsx(Cr,{content:u.jsx(mo,{showUuid:e.showUuid})}),e.data.map(r=>Fo(No,{uuid:r.uuid,integrationType:r.integrationType,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}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 i={date:a,total:0,diff:0,totalKey:"",originalTotal:0};t.forEach(({key:s})=>{i[s]=0,i[`${s}_absolute`]=0}),r.set(a,i)}t.forEach(({key:i})=>{const s=r.get(a),l=o[i],c=typeof l=="string"?l.trim()===""?0:parseInt(l,10):typeof l=="number"?l:0;s[`${i}_absolute`]=c,s[i]=0})})}),Array.from(r.values()).map(n=>{var o;const a=(o=t.find(l=>l.isTotal))==null?void 0:o.key,i=t.filter(l=>!l.isTotal).map(l=>l.key);if(!a||i.length===0)return n;const s=n[`${a}_absolute`];return n.originalTotal=s,n.total=s,n[a]=100,i.forEach(l=>{const c=n[`${l}_absolute`];let p;s===0?(p="100.00",n[l]=100):(p=s>0?new mt(c.toString()).div(s).mul(100).toFixed(2,mt.ROUND_DOWN):"0.00",n[l]=parseFloat(p))}),{...n,totalKey:a}}).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function ho(e){const t=we(),r=Kt(()=>e.data?Kc(e.data,e.keyValues):[],[e.data,e.keyValues]);return u.jsx(Ae,{sx:{width:"100%",height:"100%",...e.sx},children:u.jsx(pt,{width:"100%",height:"100%",children:u.jsxs(Ao,{data:r,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[u.jsx(Vt,{strokeDasharray:"3 3"}),u.jsx(zt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Ar(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),u.jsx(Ft,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(2)}%`}),u.jsx(Ut,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Pr(n,{timeZone:e.filter.timezone,hour12:!1}),formatter:(n,o,a)=>{const i=a.payload.totalKey,s=a.dataKey,l=s===i,c=a.payload[`${s}_absolute`],p=a.payload.originalTotal,g=l?null:p===0?"100.00":new mt(c.toString()).div(p).mul(100).toFixed(2,mt.ROUND_DOWN);return[g?`${c.toLocaleString()} (${g}%)`:`${c.toLocaleString()} (TOTAL)`,o]}}),e.keyValues.sort((n,o)=>n.isTotal?-1:o.isTotal?1:0).map(n=>u.jsx(Po,{type:"monotone",dataKey:n.key,name:n.name,stroke:n.color,fill:n.color,strokeWidth:2,fillOpacity:.6},n.key))]})})})}function ut(e){const t=Bt(e.value),{ref:r}=ra({from:t??0,to:e.value,duration:1,map:e.map});return u.jsx(kr,{sx:{p:3,flex:1,...e.sx},children:u.jsxs(Pe,{spacing:1,alignItems:"center",children:[u.jsx(Oe,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),u.jsx(Oe,{color:"text.secondary",children:e.label})]})})}const go={margin:{top:5,right:30,left:20,bottom:5}},Wc={tickLine:!1,fontSize:12,tickMargin:12},Bc={textAnchor:"end",tickLine:!1};function It({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:l}){const c=we(),p=f=>!f.isFront,g=f=>!!f.isFront;return u.jsx(Ae,{sx:{width:"100%",height:"100%",...l},children:u.jsx(pt,{children:u.jsxs(Ro,{data:e,...go,children:[u.jsx(Vt,{strokeDasharray:"3 3",vertical:!1}),u.jsx(zt,{...Wc,...r}),u.jsx(Ft,{...Bc,...n}),u.jsx(Ut,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(p).map((f,b)=>u.jsx(Tr,{...f},f.label??b)),s?.filter(p).map((f,b)=>u.jsx(Er,{...f},f.label??b)),t.map(f=>u.jsx(Do,{name:f.key,dataKey:f.dataKey,fill:f.color,stackId:"stack",isAnimationActive:!1,...a},f.key)),i?.filter(g).map((f,b)=>u.jsx(Tr,{...f},f.label??b)),s?.filter(g).map((f,b)=>u.jsx(Er,{...f},f.label??b))]})})})}const Re=()=>({regularChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500},smallChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:300}});function bo(e){return u.jsx(Oe,{variant:"h6",fontWeight:"900",...e})}function vo(e){return u.jsx(Oe,{variant:"h6",fontWeight:"400",...e})}function Ee(){const e=Re();return u.jsxs(Pe,{sx:e.smallChartWrapper,children:[u.jsx(bo,{children:"No data available for the selected period and brands"}),u.jsx(vo,{children:"Please select a different period or brand"})]})}function _e(){const e=Re();return u.jsxs(Pe,{sx:e.smallChartWrapper,children:[u.jsx(bo,{children:"Loading..."}),u.jsx(vo,{children:"Preparing your chart data"})]})}function qc({data:e,threshold:t=100,isLoading:r,isFetching:n,isSuccess:o,sx:a}){const i=we(),s=Re(),l=Object.entries(e??{}).map(([p,g])=>({key:p,[p]:g})),c=l.map(({key:p})=>({key:p,dataKey:p,color:i.palette.error.light}));return r?u.jsx(_e,{}):!e||Object.keys(e).length===0||!o?u.jsx(Ee,{}):u.jsx(It,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:l,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t}`]},tooltip:{labelFormatter:p=>"Total"},referenceLines:[{y:t,stroke:i.palette.error.dark,strokeDasharray:"3 3",label:u.jsx(Lt,{value:"Unhealthy threshold",position:"insideBottomRight"}),isFront:!0}]})}function Hc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,sx:a}){const i=we(),s=Re(),l=Object.entries(e??{}).map(([p,g])=>({key:p,[p]:g})),c=l.map(({key:p})=>({key:p,dataKey:p,color:i.palette.warning.light}));return r?u.jsx(_e,{}):!e||Object.keys(e).length===0||!o?u.jsx(Ee,{}):u.jsx(It,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:l,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t}`]},tooltip:{labelFormatter:p=>"Total"},referenceLines:[{y:t,stroke:i.palette.error.dark,strokeDasharray:"3 3",label:u.jsx(Lt,{value:"Unhealthy threshold",position:"insideBottomRight"}),isFront:!0}]})}function xo({payload:e=[],hiddenItems:t,onToggle:r,legendLabel:n}){return u.jsx(Ae,{sx:{display:"flex",justifyContent:"center",gap:"20px",paddingTop:"20px"},children:e.map((o,a)=>{const i=t.has(o.payload.name);return u.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",opacity:i?.4:1},onClick:()=>{r?.(o.payload)},children:[u.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:o.color,marginRight:"8px",borderRadius:"2px"}}),u.jsx("span",{style:{color:o.color},children:n?`${n}: ${o.value}`:o.value})]},`legend-${a}`)})})}const Zc=e=>{const t=Math.PI/180,{cx:r,cy:n,midAngle:o,innerRadius:a,outerRadius:i,startAngle:s,endAngle:l,fill:c,payload:p,percent:g,value:f,valueText:b,valuePercentage:h,needleVisible:y,customText:d,allActive:x}=e,S=Math.sin(-t*o),j=Math.cos(-t*o),V=r+(i+5)*j,m=n+(i+5)*S,k=r+(i+15)*j,$=n+(i+15)*S,W=k+(j>=0?1:-1)*22,re=$,Q=j>=0?"start":"end",w=f.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),C=()=>y||x?null:u.jsx("text",{x:r,y:n,dy:8,textAnchor:"middle",fill:"#333",fontSize:14,children:p.name});return u.jsxs("g",{children:[C(),u.jsx(_r,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:l,fill:c}),u.jsx(_r,{cx:r,cy:n,startAngle:s,endAngle:l,innerRadius:i+2,outerRadius:i+6,fill:c}),u.jsx("path",{d:`M${V},${m}L${k},${$}L${W},${re}`,stroke:c,fill:"none"}),u.jsx("circle",{cx:W,cy:re,r:2,fill:c,stroke:"none"}),u.jsx("text",{x:W+(j>=0?1:-1)*12,y:re,textAnchor:Q,fill:"#333",fontSize:12,children:d||(b?`${b} ${w}`:w)}),h&&u.jsxs("text",{x:W+(j>=0?1:-1)*12,y:re,dy:16,textAnchor:Q,fill:"#999",fontSize:11,children:[`${(g*100).toFixed(2)}%`," (",w,")"]})]})},Yc=e=>{const{value:t,data:r,color:n,innerRadius:o,outerRadius:a,boxDimensions:i,legendDimensions:s,valueText:l}=e,c=Math.PI/180;let p=0;r.forEach(C=>{p+=C.value});const g=i?i.width/2:150,f=(i?i.height/2:200)-s.height/2,b=180*(1-Math.max(0,Math.min(1,t/p))),h=(Number(o)+2*Number(a))/3,y=Math.sin(-c*b),d=Math.cos(-c*b),x=5,S=g-x,j=f,V=S+x*y,m=j-x*d,k=S-x*y,$=j+x*d,W=S+h*d,re=j+h*y,Q=t.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),w=l??Q;return u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:S,cy:j,r:x,fill:n,stroke:"none",style:{pointerEvents:"none"}},"needle-circle"),u.jsx("path",{d:`M${V} ${m}L${k} ${$} L${W} ${re} L${V} ${m}`,stroke:"none",fill:n,style:{pointerEvents:"none"}},"needle-path"),u.jsx("text",{x:S+x,y:j+26,textAnchor:"middle",fill:"#333",fontSize:12,children:w},"needle-value")]})},Jc=(e,t)=>({Allow:t.palette.success.main,Flag:t.palette.warning.main,Block:t.palette.error.main})[e]??t.palette.primary.main;function Oo({data:e,sx:t,legendLabel:r,legendToggle:n=!1,valueText:o="",valuePercentage:a=!0,pie:i,needleVisible:s=!1,needleValue:l,needleColor:c="#aaa",allActive:p=!1}){const{innerRadius:g=60,outerRadius:f=100}=i??{},b=we(),[h,y]=dt(void 0),[d,x]=dt(new Set),S=Lo(null),[j,V]=dt(null),[m,k]=dt(null),$=(w,C)=>{p||y(C)},W=()=>{p||y(void 0)},re=w=>{n&&w&&x(C=>{const L=new Set(C);return L.has(w.name)?L.delete(w.name):L.size<e.length-1&&L.add(w.name),L})},Q=e.map((w,C)=>({...w,index:C,value:d.has(w.name)?0:w.value}));return Nr(()=>{const w=S.current;if(!w)return;const C=new ResizeObserver(Z=>{var oe;const B=(oe=Z[0])==null?void 0:oe.contentRect;B&&V(B)});C.observe(w);const L=w.getBoundingClientRect();return V(L),()=>{C.disconnect()}},[]),Nr(()=>{var w;const C=(w=S.current)==null?void 0:w.querySelector(".recharts-legend-wrapper");if(!C){const oe=setInterval(()=>{var B;const X=(B=S.current)==null?void 0:B.querySelector(".recharts-legend-wrapper");if(X){const Ne=X.getBoundingClientRect();k(Ne),clearInterval(oe)}},100);return()=>{clearInterval(oe)}}const L=new ResizeObserver(oe=>{var B;const X=(B=oe[0])==null?void 0:B.contentRect;X&&k(X)});L.observe(C);const Z=C.getBoundingClientRect();return k(Z),()=>{L.disconnect()}},[]),u.jsx(Ae,{ref:S,sx:{width:"100%",height:"100%","& g":{outline:"none"},...t},children:u.jsx(pt,{children:u.jsxs(Mo,{...go,children:[u.jsx(Io,{data:Q,nameKey:"name",dataKey:"value",innerRadius:g,outerRadius:f,activeIndex:p?Q.filter(w=>w.value>0).map(w=>w.index):h,activeShape:w=>Zc({...w,valueText:o,valuePercentage:a,needleVisible:s,allActive:p}),paddingAngle:0,onMouseEnter:$,onMouseLeave:W,...i,children:Q.map(w=>u.jsx(Vo,{fill:w.color??Jc(w.name,b),opacity:d.has(w.name)?.5:1,stroke:"none"},w.name))}),u.jsx(Cr,{content:u.jsx(xo,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&l!==void 0&&j&&m&&Yc({data:Q,value:l,color:c,innerRadius:g,outerRadius:f,boxDimensions:j,legendDimensions:m,valueText:o})]})})})}function Qc({data:e,score:t=200,legendLabel:r,isLoading:n,isFetching:o,isSuccess:a,sx:i}){const s=we(),l=Re();if(n)return u.jsx(_e,{});if(!e||e.length<=0||!a)return u.jsx(Ee,{});const c=[{name:"Allow",customText:"0-299",value:e[0].value,color:s.palette.primary.main},{name:"Flag",customText:"300-599",value:e[1].value,color:s.palette.warning.main},{name:"Block",customText:"Over 600",value:e[2].value,color:s.palette.error.main}];return u.jsx(Oo,{data:c,legendToggle:!0,needleValue:t,legendLabel:r,allActive:!0,sx:{...l.smallChartWrapper,opacity:o?.4:1,...i}})}function Xc({data:e,isLoading:t,isFetching:r,isSuccess:n,sx:o}){const a=we(),i=Re(),s=(c=>{const p={};return c.forEach(g=>{Object.entries(g).forEach(([f,b])=>{const h=parseInt(f);h<=1e3&&(p[h]=(p[h]||0)+b)})}),Array.from({length:1001},(g,f)=>({key:f.toString(),value:p[f]||0}))})(e),l=[{key:"Risk Score",dataKey:"value",color:a.palette.error.main}];return t?u.jsx(_e,{}):!e||Object.keys(e).length===0||!n?u.jsx(Ee,{}):u.jsx(It,{data:s,series:l,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,g)=>[c,g.payload.key]},referenceAreas:[{x1:0,x2:299,fill:"#ffffff00",isFront:!1,label:"Allow"},{x1:300,x2:600,fill:a.palette.warning.light,isFront:!1,label:"Flag"},{x1:600,fill:a.palette.error.light,isFront:!1,label:"Block"}]})}function el({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o,sx:a}){var i,s;const l=we(),c=Re(),p={oneClickCreated:{key:"oneClickCreated",name:"Started",color:l.palette.neutral.main,isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished",color:l.palette.primary.main}};return t?u.jsx(_e,{}):!e.length||!((s=(i=e[0])==null?void 0:i.chartData)!=null&&s.length)||!n?u.jsx(Ee,{}):u.jsx(ho,{data:e,keyValues:Object.values(p),filter:o,sx:{...c.smallChartWrapper,opacity:r?.4:1,...a}})}const tl={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function rl({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o}){return t?u.jsx(_e,{}):!e.length||!n?u.jsx(Ee,{}):u.jsx(yo,{label:"Uniques",data:e,filter:o,sx:{...tl.chartWrapper,opacity:r?.4:1}})}function nl(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),l=(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:Mr(a.integrationType),color:((i=a.additionalData)==null?void 0:i.primaryColor)??Uo(a.brandUuid),chartData:l}});return Go.chain(o).sortBy(a=>a.name).toArray().value()}const ol=({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:new Date(o.date).toISOString(),brand:n.brandName,integrationType:Mr(n.integrationType),total:o.oneClickCreated,finished:o.oneClickSuccess,totalCost:o.totalCost}))}),al=({data:e,isLoading:t,showTotalCost:r=!0})=>t?u.jsx(_e,{}):e!=null&&e.length?u.jsx($o,{component:kr,children:u.jsxs(Co,{children:[u.jsx(To,{children:u.jsxs($r,{children:[u.jsx(fe,{children:"Month"}),u.jsx(fe,{children:"Brand"}),u.jsx(fe,{children:"Integration Type"}),u.jsx(fe,{align:"right",children:"Started"}),u.jsx(fe,{align:"right",children:"Finished"}),r&&u.jsx(fe,{align:"right",children:"Total Cost"})]})}),u.jsx(Eo,{children:e.map(n=>u.jsxs($r,{children:[u.jsx(fe,{children:new Date(n.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:"UTC"})}),u.jsx(fe,{children:n.brand}),u.jsx(fe,{children:n.integrationType}),u.jsx(fe,{align:"right",children:n.total}),u.jsx(fe,{align:"right",children:n.finished}),r&&u.jsx(fe,{align:"right",children:n.totalCost??"-"})]},`${n.brand}-${n.month}`))})]})}):u.jsx(Ee,{});function il({lastUpdated:e}){return u.jsxs(Oe,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",Lc(e??Date.now(),{hour12:!1}),"."]})}const wo=e=>new Intl.NumberFormat("en-US").format(Number(e.toFixed(0))),sl=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),cl=e=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),So={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function ll(e){if(!(e!=null&&e.length))return So;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 ul({chartData:e,isLoading:t=!0,hideTotalCost:r=!1}){const n=t?So:ll(e);return u.jsxs(Pe,{direction:"row",spacing:3,children:[u.jsx(ut,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:wo}),u.jsx(ut,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:wo}),!r&&u.jsx(ut,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:sl}),u.jsx(ut,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:cl})]})}export{hr as A,ut as B,Uc as C,nn as D,qc as E,on as F,Tn as G,De as H,ge as I,ao as J,cr as K,_e as L,al as M,eo as N,el as O,Oo as P,Fc as Q,Hc as R,yo as S,gr as T,wr as W,pe as _,mo as a,ho as b,It as c,Qc as d,Xc as e,xo as f,rl as g,ol as h,Ee as i,il as j,ul as k,fa as l,nl as m,E as n,br as o,Hn as p,Qr as q,oo as r,ro as s,Xr as t,fo as u,to as v,jt as w,ga as x,Qt as y,dr as z};
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var K=q(P,T,_,D,N+"."+T,r);if(K)return K}return null}return d(O)}function Z(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(Z);if(v===null||s(v))return!0;var O=g(v);if(O){var R=O.call(v),A;if(O!==v.entries){for(;!(A=R.next()).done;)if(!Z(A.value))return!1}else for(;!(A=R.next()).done;){var _=A.value;if(_&&!Z(_[1]))return!1}}else return!1;return!0;default:return!1}}function oe(v,O){return v==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function B(v){var O=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":oe(O,v)?"symbol":O}function X(v){if(typeof v>"u"||v===null)return""+v;var O=B(v);if(O==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return O}function Ne(v){var O=X(v);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function xe(v){return!v.constructor||!v.constructor.name?f:v.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Yt}var Jt,Yr;function la(){if(Yr)return Jt;Yr=1;var e=Wr();function t(){}function r(){}return r.resetWarningCache=t,Jt=function(){function n(i,s,l,c,p,g){if(g!==e){var f=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 f.name="Invariant Violation",f}}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},Jt}if(0)var Al,Pl;else Vr.exports=la()();var ua=Vr.exports;const fa=qo(ua);function Jr(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=Jr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Jr(e))&&(n&&(n+=" "),n+=t);return n}function Qt(e,t){const r=E({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=E({},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]=E({},a),Object.keys(o).forEach(i=>{r[n][i]=Qt(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Xr(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={},en={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})(en);var tn=en.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 pa=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),da=Te(pa);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=Te(ya);var rn=tn;Object.defineProperty(ee,"__esModule",{value:!0});var ga=ee.alpha=un;ee.blend=Ta,ee.colorChannel=void 0;var nn=ee.darken=er;ee.decomposeColor=de,ee.emphasize=fn;var ba=ee.getContrastRatio=Sa;ee.getLuminance=yt,ee.hexToRgb=sn,ee.hslToRgb=ln;var on=ee.lighten=tr;ee.private_safeAlpha=ja,ee.private_safeColorChannel=void 0,ee.private_safeDarken=ka,ee.private_safeEmphasize=Ca,ee.private_safeLighten=$a,ee.recomposeColor=Me,ee.rgbToHex=wa;var an=rn(da),va=rn(ha);function Xt(e,t=0,r=1){return(0,va.default)(e,t,r)}function sn(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 de(e){if(e.type)return e;if(e.charAt(0)==="#")return de(sn(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,an.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,an.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const cn=e=>{const t=de(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ee.colorChannel=cn;const Oa=(e,t)=>{try{return cn(e)}catch{return e}};ee.private_safeColorChannel=Oa;function Me(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 wa(e){if(e.indexOf("#")===0)return e;const{values:t}=de(e);return`#${t.map((r,n)=>xa(n===3?Math.round(255*r):r)).join("")}`}function ln(e){e=de(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 l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Me({type:s,values:l})}function yt(e){e=de(e);let t=e.type==="hsl"||e.type==="hsla"?de(ln(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 Sa(e,t){const r=yt(e),n=yt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function un(e,t){return e=de(e),t=Xt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Me(e)}function ja(e,t,r){try{return un(e,t)}catch{return e}}function er(e,t){if(e=de(e),t=Xt(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 Me(e)}function ka(e,t,r){try{return er(e,t)}catch{return e}}function tr(e,t){if(e=de(e),t=Xt(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 Me(e)}function $a(e,t,r){try{return tr(e,t)}catch{return e}}function fn(e,t=.15){return yt(e)>.5?er(e,t):tr(e,t)}function Ca(e,t,r){try{return fn(e,t)}catch{return e}}function Ta(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),a=de(e),i=de(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Me({type:"rgb",values:s})}var He={},pn={exports:{}},dn;function Ea(){return dn||(dn=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}(pn)),pn.exports}var mn={exports:{}},yn;function _a(){return yn||(yn=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}(mn)),mn.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 Aa(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 Pa=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(Aa(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-",ht="-moz-",z="-webkit-",hn="comm",rr="rule",nr="decl",Ra="@import",gn="@keyframes",Da="@layer",Ma=Math.abs,gt=String.fromCharCode,Ia=Object.assign;function Va(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 bn(e){return e.trim()}function za(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function or(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 be(e){return e.length}function ar(e){return e.length}function bt(e,t){return t.push(e),e}function Fa(e,t){return e.map(t).join("")}var vt=1,Ie=1,vn=0,ce=0,ne=0,Ve="";function xt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:vt,column:Ie,length:i,return:""}}function Ye(e,t){return Ia(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function La(){return ne}function Ua(){return ne=ce>0?ae(Ve,--ce):0,Ie--,ne===10&&(Ie=1,vt--),ne}function le(){return ne=ce<vn?ae(Ve,ce++):0,Ie++,ne===10&&(Ie=1,vt++),ne}function ve(){return ae(Ve,ce)}function Ot(){return ce}function Je(e,t){return Ze(Ve,e,t)}function Qe(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 xn(e){return vt=Ie=1,vn=be(Ve=e),ce=0,[]}function On(e){return Ve="",e}function wt(e){return bn(Je(ce-1,ir(e===91?e+2:e===40?e+1:e)))}function Ga(e){for(;(ne=ve())&&ne<33;)le();return Qe(e)>2||Qe(ne)>3?"":" "}function Ka(e,t){for(;--t&&le()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Je(e,Ot()+(t<6&&ve()==32&&le()==32))}function ir(e){for(;le();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&ir(ne);break;case 40:e===41&&ir(e);break;case 92:le();break}return ce}function Wa(e,t){for(;le()&&e+ne!==57&&!(e+ne===84&&ve()===47););return"/*"+Je(t,ce-1)+"*"+gt(e===47?e:le())}function Ba(e){for(;!Qe(ve());)le();return Je(e,ce)}function qa(e){return On(St("",null,null,null,[""],e=xn(e),0,[0],e))}function St(e,t,r,n,o,a,i,s,l){for(var c=0,p=0,g=i,f=0,b=0,h=0,y=1,d=1,x=1,S=0,j="",V=o,m=a,k=n,$=j;d;)switch(h=S,S=le()){case 40:if(h!=108&&ae($,g-1)==58){or($+=F(wt(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=wt(S);break;case 9:case 10:case 13:case 32:$+=Ga(h);break;case 92:$+=Ka(Ot()-1,7);continue;case 47:switch(ve()){case 42:case 47:bt(Ha(Wa(le(),Ot()),t,r),l);break;default:$+="/"}break;case 123*y:s[c++]=be($)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:d=0;case 59+p:x==-1&&($=F($,/\f/g,"")),b>0&&be($)-g&&bt(b>32?Sn($+";",n,r,g-1):Sn(F($," ","")+";",n,r,g-2),l);break;case 59:$+=";";default:if(bt(k=wn($,t,r,c,p,o,s,j,V=[],m=[],g),a),S===123)if(p===0)St($,t,k,k,V,a,g,s,m);else switch(f===99&&ae($,3)===110?100:f){case 100:case 108:case 109:case 115:St(e,k,k,n&&bt(wn(e,k,k,0,0,o,s,j,o,V=[],g),m),o,m,g,s,n?V:m);break;default:St($,k,k,k,[""],m,0,s,m)}}c=p=b=0,y=x=1,j=$="",g=i;break;case 58:g=1+be($),b=h;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&Ua()==125)continue}switch($+=gt(S),S*y){case 38:x=p>0?1:($+="\f",-1);break;case 44:s[c++]=(be($)-1)*x,x=1;break;case 64:ve()===45&&($+=wt(le())),f=ve(),p=g=be(j=$+=Ba(Ot())),S++;break;case 45:h===45&&be($)==2&&(y=0)}}return a}function wn(e,t,r,n,o,a,i,s,l,c,p){for(var g=o-1,f=o===0?a:[""],b=ar(f),h=0,y=0,d=0;h<n;++h)for(var x=0,S=Ze(e,g+1,g=Ma(y=i[h])),j=e;x<b;++x)(j=bn(y>0?f[x]+" "+S:F(S,/&\f/g,f[x])))&&(l[d++]=j);return xt(e,t,r,o===0?rr:s,l,c,p)}function Ha(e,t,r){return xt(e,t,r,hn,gt(La()),Ze(e,2,-2),0)}function Sn(e,t,r,n){return xt(e,t,r,nr,Ze(e,0,n),Ze(e,n+1,-1),n)}function ze(e,t){for(var r="",n=ar(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Za(e,t,r,n){switch(e.type){case Da:if(e.children.length)break;case Ra:case nr:return e.return=e.return||e.value;case hn:return"";case gn:return e.return=e.value+"{"+ze(e.children,n)+"}";case rr:e.value=e.props.join(",")}return be(r=ze(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ya(e){var t=ar(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=ve(),n===38&&o===12&&(t[r]=1),!Qe(o);)le();return Je(e,ce)},Xa=function(e,t){var r=-1,n=44;do switch(Qe(n)){case 0:n===38&&ve()===12&&(t[r]=1),e[r]+=Qa(ce-1,t,r);break;case 2:e[r]+=wt(n);break;case 4:if(n===44){e[++r]=ve()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=gt(n)}while(n=le());return e},ei=function(e,t){return On(Xa(xn(e),t))},jn=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&&!jn.get(r))&&!n){jn.set(e,!0);for(var o=[],a=ei(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=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},Rl=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 l=i[s];if(l.line<t.line)break;if(l.column<t.column){if(oi(l))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".')})}}}},kn=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(!kn(t[r]))return!0;return!1},$n=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Dl=function(e,t,r){kn(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."),$n(e)):ai(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),$n(e)))};function Cn(e,t){switch(Va(e,t)){case 5103:return z+"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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+ht+e+se+e+e;case 6828:case 4268:return z+e+se+e+e;case 6165:return z+e+se+"flex-"+e+e;case 5187:return z+e+F(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return z+e+se+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return z+e+se+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+se+F(e,"shrink","negative")+e;case 5292:return z+e+se+F(e,"basis","preferred-size")+e;case 6060:return z+"box-"+F(e,"-grow","")+z+e+se+F(e,"grow","positive")+e;case 4554:return z+F(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,z+"$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(be(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+ht+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~or(e,"stretch")?Cn(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,be(e)-3-(~or(e,"!important")&&10))){case 107:return F(e,":",":"+z)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(ae(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return z+e+se+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+se+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+se+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+se+e+e}return e}var ii=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=Cn(e.value,e.length);break;case gn:return ze([Ye(e,{value:F(e.value,"@","@"+z)})],n);case rr:if(e.length)return Fa(e.props,function(o){switch(za(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ze([Ye(e,{props:[F(o,/:(read-\w+)/,":"+ht+"$1")]})],n);case"::placeholder":return ze([Ye(e,{props:[F(o,/:(plac\w+)/,":"+z+"input-$1")]}),Ye(e,{props:[F(o,/:(plac\w+)/,":"+ht+"$1")]}),Ye(e,{props:[F(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(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.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(h){for(var y=h.getAttribute("data-emotion").split(" "),d=1;d<y.length;d++)o[y[d]]=!0;i.push(h)});var s,l=[ti,ri];{var c,p=[Za,Ja(function(h){c.insert(h)})],g=Ya(l.concat(n,p)),f=function(h){return ze(qa(h),g)};s=function(h,y,d,x){c=d,f(h?h+"{"+y.styles+"}":y.styles),x&&(b.inserted[y.name]=!0)}}var b={key:t,sheet:new Pa({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 sr;typeof document=="object"&&(sr=ci({key:"css",prepend:!0}));function li(e){const{injectFirst:t,children:r}=e;return t&&sr?u.jsx(Zo,{value:sr,children:r}):r}function ui(e){return e==null||Object.keys(e).length===0}function Tn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(ui(o)?r:o):t;return u.jsx(Yo,{styles:n})}function En(e,t){return Ho(e,t)}const _n=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Tn,StyledEngineProvider:li,ThemeContext:Dr,css:Jo,default:En,internal_processStyles:_n,keyframes:Qo},Symbol.toStringTag,{value:"Module"})),pi=Te(fi);function Se(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 Nn(e){if(!Se(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Nn(e[r])}),t}function ge(e,t,r={clone:!0}){const n=r.clone?E({},e):e;return Se(e)&&Se(t)&&Object.keys(t).forEach(o=>{Se(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Se(e[o])?n[o]=ge(e[o],t[o],r):r.clone?n[o]=Se(t[o])?Nn(t[o]):t[o]:n[o]=t[o]}),n}const di=Object.freeze(Object.defineProperty({__proto__:null,default:ge,isPlainObject:Se},Symbol.toStringTag,{value:"Module"})),mi=Te(di);function jt(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:jt},Symbol.toStringTag,{value:"Module"})),hi=Te(yi);var An={exports:{}},G={},Pn;function gi(){if(Pn)return G;Pn=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function y(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 l:case f:case g:case a:return d;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=a,G.Element=e,G.ForwardRef=l,G.Fragment=r,G.Lazy=f,G.Memo=g,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 y(d)===i},G.isContextProvider=function(d){return y(d)===a},G.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},G.isForwardRef=function(d){return y(d)===l},G.isFragment=function(d){return y(d)===r},G.isLazy=function(d){return y(d)===f},G.isMemo=function(d){return y(d)===g},G.isPortal=function(d){return y(d)===t},G.isProfiler=function(d){return y(d)===o},G.isStrictMode=function(d){return y(d)===n},G.isSuspense=function(d){return y(d)===c},G.isSuspenseList=function(d){return y(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===f||d.$$typeof===g||d.$$typeof===a||d.$$typeof===i||d.$$typeof===l||d.$$typeof===h||d.getModuleId!==void 0)},G.typeOf=y,G}var bi={},Rn;function Ml(){return Rn||(Rn=1),bi}An.exports=gi();var cr=An.exports;const vi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Dn(e){const t=`${e}`.match(vi);return t&&t[1]||""}function Mn(e,t=""){return e.displayName||e.name||Dn(e)||t}function In(e,t,r){const n=Mn(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 Mn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case cr.ForwardRef:return In(e,e.render,"ForwardRef");case cr.Memo:return In(e,e.type,"memo");default:return}}}const Oi=Object.freeze(Object.defineProperty({__proto__:null,default:xi,getFunctionName:Dn},Symbol.toStringTag,{value:"Module"})),wi=Te(Oi),Si=["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)=>E({},r,{[n.key]:n.val}),{})};function Vn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pe(e,Si),a=ji(t),i=Object.keys(a);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,b){const h=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[i[h]]=="number"?t[i[h]]:b)-n/100}${r})`}function p(f){return i.indexOf(f)+1<i.length?c(f,i[i.indexOf(f)+1]):s(f)}function g(f){const b=i.indexOf(f);return b===0?s(i[1]):b===i.length-1?l(i[b]):c(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return E({keys:i,values:a,up:s,down:l,between:c,only:p,not:g,unit:r},o)}const ki={borderRadius:4},Il={};function Xe(e,t){return t?ge(e,t,{clone:!1}):e}const lr={xs:0,sm:600,md:900,lg:1200,xl:1536},zn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lr[e]}px)`};function je(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||zn;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||zn;return Object.keys(t).reduce((a,i)=>{if(Object.keys(o.values||lr).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 Ci(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function kt(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 $t(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=kt(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],l=i.theme,c=kt(l,n)||{};return je(i,s,p=>{let g=$t(c,o,p);return p===g&&typeof p=="string"&&(g=$t(c,o,`${t}${p==="default"?"":jt(p)}`,p)),r===!1?g:{[r]:g}})};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 Ei={m:"margin",p:"padding"},_i={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ni=Ti(e=>{if(e.length>2)if(Fn[e])e=Fn[e];else return[e];const[t,r]=e.split(""),n=Ei[t],o=_i[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),ur=["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=[...ur,...fr];function et(e,t,r,n){var o;const a=(o=kt(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 Ln(e){return et(e,"spacing",8,"spacing")}function tt(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 Ai(e,t){return r=>e.reduce((n,o)=>(n[o]=tt(t,r),n),{})}function Pi(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ni(r),a=Ai(o,n),i=e[r];return je(e,i,a)}function Un(e,t){const r=Ln(e.theme);return Object.keys(e).map(n=>Pi(e,t,n,r)).reduce(Xe,{})}function Y(e){return Un(e,ur)}Y.propTypes={},Y.filterProps=ur;function J(e){return Un(e,fr)}J.propTypes={},J.filterProps=fr;function Ri(e=8){if(e.mui)return e;const t=Ln({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 Ct(...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]?Xe(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function me(e){return typeof e!="number"?e:`${e}px solid`}function ye(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Di=ye("border",me),Mi=ye("borderTop",me),Ii=ye("borderRight",me),Vi=ye("borderBottom",me),zi=ye("borderLeft",me),Fi=ye("borderColor"),Li=ye("borderTopColor"),Ui=ye("borderRightColor"),Gi=ye("borderBottomColor"),Ki=ye("borderLeftColor"),Wi=ye("outline",me),Bi=ye("outlineColor"),Tt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=et(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:tt(t,n)});return je(e,e.borderRadius,r)}return null};Tt.propTypes={},Tt.filterProps=["borderRadius"],Ct(Di,Mi,Ii,Vi,zi,Fi,Li,Ui,Gi,Ki,Tt,Wi,Bi);const Et=e=>{if(e.gap!==void 0&&e.gap!==null){const t=et(e.theme,"spacing",8,"gap"),r=n=>({gap:tt(t,n)});return je(e,e.gap,r)}return null};Et.propTypes={},Et.filterProps=["gap"];const _t=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=et(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:tt(t,n)});return je(e,e.columnGap,r)}return null};_t.propTypes={},_t.filterProps=["columnGap"];const Nt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=et(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:tt(t,n)});return je(e,e.rowGap,r)}return null};Nt.propTypes={},Nt.filterProps=["rowGap"];const qi=te({prop:"gridColumn"}),Hi=te({prop:"gridRow"}),Zi=te({prop:"gridAutoFlow"}),Yi=te({prop:"gridAutoColumns"}),Ji=te({prop:"gridAutoRows"}),Qi=te({prop:"gridTemplateColumns"}),Xi=te({prop:"gridTemplateRows"}),es=te({prop:"gridTemplateAreas"}),ts=te({prop:"gridArea"});Ct(Et,_t,Nt,qi,Hi,Zi,Yi,Ji,Qi,Xi,es,ts);function Fe(e,t){return t==="grey"?t:e}const rs=te({prop:"color",themeKey:"palette",transform:Fe}),ns=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fe}),os=te({prop:"backgroundColor",themeKey:"palette",transform:Fe});Ct(rs,ns,os);function ue(e){return e<=1&&e!==0?`${e*100}%`:e}const as=te({prop:"width",transform:ue}),pr=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])||lr[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:ue(r)}};return je(e,e.maxWidth,t)}return null};pr.filterProps=["maxWidth"];const is=te({prop:"minWidth",transform:ue}),ss=te({prop:"height",transform:ue}),cs=te({prop:"maxHeight",transform:ue}),ls=te({prop:"minHeight",transform:ue});te({prop:"size",cssProperty:"width",transform:ue}),te({prop:"size",cssProperty:"height",transform:ue});const us=te({prop:"boxSizing"});Ct(as,pr,is,ss,cs,ls,us);const rt={border:{themeKey:"borders",transform:me},borderTop:{themeKey:"borders",transform:me},borderRight:{themeKey:"borders",transform:me},borderBottom:{themeKey:"borders",transform:me},borderLeft:{themeKey:"borders",transform:me},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:me},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tt},color:{themeKey:"palette",transform:Fe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fe},backgroundColor:{themeKey:"palette",transform:Fe},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:Y},mt:{style:Y},mr:{style:Y},mb:{style:Y},ml:{style:Y},mx:{style:Y},my:{style:Y},margin:{style:Y},marginTop:{style:Y},marginRight:{style:Y},marginBottom:{style:Y},marginLeft:{style:Y},marginX:{style:Y},marginY:{style:Y},marginInline:{style:Y},marginInlineStart:{style:Y},marginInlineEnd:{style:Y},marginBlock:{style:Y},marginBlockStart:{style:Y},marginBlockEnd:{style:Y},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:Et},rowGap:{style:Nt},columnGap:{style:_t},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ue},maxWidth:{style:pr},minWidth:{transform:ue},height:{transform:ue},maxHeight:{transform:ue},minHeight:{transform:ue},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fs(...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 ps(e,t){return typeof e=="function"?e(t):e}function Gn(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:p,style:g}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=kt(o,c)||{};return g?g(i):je(i,n,b=>{let h=$t(f,p,b);return b===h&&typeof b=="string"&&(h=$t(f,p,`${r}${b==="default"?"":jt(b)}`,b)),l===!1?h:{[l]:h}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:rt;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const p=$i(a.breakpoints),g=Object.keys(p);let f=p;return Object.keys(c).forEach(b=>{const h=ps(c[b],a);if(h!=null)if(typeof h=="object")if(i[b])f=Xe(f,e(b,h,a,i));else{const y=je({theme:a},h,d=>({[b]:d}));fs(y,h)?f[b]=t({sx:h,theme:a}):f=Xe(f,y)}else f=Xe(f,e(b,h,a,i))}),Ci(g,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const nt=Gn();nt.filterProps=["sx"];function Kn(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 ot(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=pe(e,ds),s=Vn(r),l=Ri(o);let c=ge({breakpoints:s,direction:"ltr",components:{},palette:E({mode:"light"},n),spacing:l,shape:E({},ki,a)},i);return c.applyStyles=Kn,c=t.reduce((p,g)=>ge(p,g),c),c.unstable_sxConfig=E({},rt,i?.unstable_sxConfig),c.unstable_sx=function(p){return nt({sx:p,theme:this})},c}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:ot,private_createBreakpoints:Vn,unstable_applyStyles:Kn},Symbol.toStringTag,{value:"Module"})),ys=Te(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:rt;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function dr(e){const{sx:t}=e,r=pe(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 Se(s)?E({},n,s):n}:a=E({},n,t),E({},o,{sx:a})}const bs=Object.freeze(Object.defineProperty({__proto__:null,default:nt,extendSxProp:dr,unstable_createStyleFunctionSx:Gn,unstable_defaultSxConfig:rt},Symbol.toStringTag,{value:"Module"})),vs=Te(bs);var Le=tn;Object.defineProperty(He,"__esModule",{value:!0});var xs=He.default=Ps;He.shouldForwardProp=At,He.systemDefaultTheme=void 0;var he=Le(Ea()),mr=Le(_a()),Wn=Cs(pi),Os=mi,zl=Le(hi),Fl=Le(wi),ws=Le(ys),Ss=Le(vs);const js=["ownerState"],ks=["variants"],$s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Bn=function(n){return n?r:t})(e)}function Cs(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Bn(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 Es(e){return typeof e=="string"&&e.charCodeAt(0)>96}function At(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _s=He.systemDefaultTheme=(0,ws.default)(),Ns=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Pt({defaultTheme:e,theme:t,themeId:r}){return Ts(t)?e:t[r]||t}function As(e){return e?(t,r)=>r[e]:null}function Rt(e,t){let{ownerState:r}=t,n=(0,mr.default)(t,js);const o=typeof e=="function"?e((0,he.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Rt(a,(0,he.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=(0,mr.default)(o,ks);return a.forEach(s=>{let l=!0;typeof s.props=="function"?l=s.props((0,he.default)({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(l=!1)}),l&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style((0,he.default)({ownerState:r},n,r)):s.style))}),i}return o}function Ps(e={}){const{themeId:t,defaultTheme:r=_s,rootShouldForwardProp:n=At,slotShouldForwardProp:o=At}=e,a=i=>(0,Ss.default)((0,he.default)({},i,{theme:Pt((0,he.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Wn.internal_processStyles)(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:p,skipSx:g,overridesResolver:f=As(Ns(c))}=s,b=(0,mr.default)(s,$s),h=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,y=g||!1;let d,x=At;c==="Root"||c==="root"?x=n:c?x=o:Es(i)&&(x=void 0);const S=(0,Wn.default)(i,(0,he.default)({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||(0,Os.isPlainObject)(m)?k=>Rt(m,(0,he.default)({},k,{theme:Pt({theme:k.theme,defaultTheme:r,themeId:t})})):m,V=(m,...k)=>{let $=j(m);const W=k?k.map(j):[];l&&f&&W.push(w=>{const C=Pt((0,he.default)({},w,{defaultTheme:r,themeId:t}));if(!C.components||!C.components[l]||!C.components[l].styleOverrides)return null;const L=C.components[l].styleOverrides,Z={};return Object.entries(L).forEach(([oe,B])=>{Z[oe]=Rt(B,(0,he.default)({},w,{theme:C}))}),f(w,Z)}),l&&!h&&W.push(w=>{var C;const L=Pt((0,he.default)({},w,{defaultTheme:r,themeId:t})),Z=L==null||(C=L.components)==null||(C=C[l])==null?void 0:C.variants;return Rt({variants:Z},(0,he.default)({},w,{theme:L}))}),y||W.push(a);const re=W.length-k.length;if(Array.isArray(m)&&re>0){const w=new Array(re).fill("");$=[...m,...w],$.raw=[...m.raw,...w]}const Q=S($,...W);return i.muiName&&(Q.muiName=i.muiName),Q};return S.withConfig&&(V.withConfig=S.withConfig),V}}const qn=e=>e,Rs=()=>{let e=qn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qn}}},Ds=Rs(),Ms={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 Hn(e,t,r="Mui"){const n=Ms[t];return n?`${r}-${n}`:`${Ds.generate(e)}-${t}`}function Is(e,t){return E({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const at={black:"#000",white:"#fff"},Vs={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"},Ue={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"},Ge={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"},it={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"},Ke={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"},We={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"},Be={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"},zs=["mode","contrastThreshold","tonalOffset"],Zn={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:at.white,default:at.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}},yr={text:{primary:at.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:at.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 Yn(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=on(e.main,o):t==="dark"&&(e.dark=nn(e.main,a)))}function Fs(e="light"){return e==="dark"?{main:Ke[200],light:Ke[50],dark:Ke[400]}:{main:Ke[700],light:Ke[400],dark:Ke[800]}}function Ls(e="light"){return e==="dark"?{main:Ue[200],light:Ue[50],dark:Ue[400]}:{main:Ue[500],light:Ue[300],dark:Ue[700]}}function Us(e="light"){return e==="dark"?{main:Ge[500],light:Ge[300],dark:Ge[700]}:{main:Ge[700],light:Ge[400],dark:Ge[800]}}function Gs(e="light"){return e==="dark"?{main:We[400],light:We[300],dark:We[700]}:{main:We[700],light:We[500],dark:We[900]}}function Ks(e="light"){return e==="dark"?{main:Be[400],light:Be[300],dark:Be[700]}:{main:Be[800],light:Be[500],dark:Be[900]}}function Ws(e="light"){return e==="dark"?{main:it[400],light:it[300],dark:it[700]}:{main:"#ed6c02",light:it[500],dark:it[900]}}function Bs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pe(e,zs),a=e.primary||Fs(t),i=e.secondary||Ls(t),s=e.error||Us(t),l=e.info||Gs(t),c=e.success||Ks(t),p=e.warning||Ws(t);function g(h){return ba(h,yr.text.primary)>=r?yr.text.primary:Zn.text.primary}const f=({color:h,name:y,mainShade:d=500,lightShade:x=300,darkShade:S=700})=>{if(h=E({},h),!h.main&&h[d]&&(h.main=h[d]),!h.hasOwnProperty("main"))throw new Error(De(11,y?` (${y})`:"",d));if(typeof h.main!="string")throw new Error(De(12,y?` (${y})`:"",JSON.stringify(h.main)));return Yn(h,"light",x,n),Yn(h,"dark",S,n),h.contrastText||(h.contrastText=g(h.main)),h},b={dark:yr,light:Zn};return ge(E({common:E({},at),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:Vs,contrastThreshold:r,getContrastText:g,augmentColor:f,tonalOffset:n},b[t]),o)}const qs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Hs(e){return Math.round(e*1e5)/1e5}const Jn={textTransform:"uppercase"},Qn='"Roboto", "Helvetica", "Arial", sans-serif';function Zs(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Qn,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:p,pxToRem:g}=r,f=pe(r,qs),b=o/14,h=g||(x=>`${x/c*b}rem`),y=(x,S,j,V,m)=>E({fontFamily:n,fontWeight:x,fontSize:h(S),lineHeight:j},n===Qn?{letterSpacing:`${Hs(V/S)}em`}:{},m,p),d={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,Jn),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Jn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ge(E({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},d),f,{clone:!1})}const Ys=.2,Js=.14,Qs=.12;function H(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ys})`,`${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",H(0,2,1,-1,0,1,1,0,0,1,3,0),H(0,3,1,-2,0,2,2,0,0,1,5,0),H(0,3,3,-2,0,3,4,0,0,1,8,0),H(0,2,4,-1,0,4,5,0,0,1,10,0),H(0,3,5,-1,0,5,8,0,0,1,14,0),H(0,3,5,-1,0,6,10,0,0,1,18,0),H(0,4,5,-2,0,7,10,1,0,2,16,1),H(0,5,5,-3,0,8,10,1,0,3,14,2),H(0,5,6,-3,0,9,12,1,0,3,16,2),H(0,6,6,-3,0,10,14,1,0,4,18,3),H(0,6,7,-4,0,11,15,1,0,4,20,3),H(0,7,8,-4,0,12,17,2,0,5,22,4),H(0,7,8,-4,0,13,19,2,0,5,24,4),H(0,7,9,-4,0,14,21,2,0,5,26,4),H(0,8,9,-5,0,15,22,2,0,6,28,5),H(0,8,10,-5,0,16,24,2,0,6,30,5),H(0,8,11,-5,0,17,26,2,0,6,32,5),H(0,9,11,-5,0,18,28,2,0,7,34,6),H(0,9,12,-6,0,19,29,2,0,7,36,6),H(0,10,13,-6,0,20,31,3,0,8,38,7),H(0,10,13,-6,0,21,33,3,0,8,40,7),H(0,10,14,-6,0,22,35,3,0,8,42,7),H(0,11,14,-7,0,23,36,3,0,9,44,8),H(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 Xn(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=E({},tc,e.easing),r=E({},rc,e.duration);return E({getAutoHeightDuration:nc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,l=pe(o,ec);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:Xn(a)} ${i} ${typeof s=="string"?s:Xn(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=pe(e,ic);if(e.vars)throw new Error(De(18));const s=Bs(n),l=ot(e);let c=ge(l,{mixins:Is(l.breakpoints,r),palette:s,shadows:Xs.slice(),typography:Zs(s,a),transitions:oc(o),zIndex:E({},ac)});return c=ge(c,i),c=t.reduce((p,g)=>ge(p,g),c),c.unstable_sxConfig=E({},rt,i?.unstable_sxConfig),c.unstable_sx=function(p){return nt({sx:p,theme:this})},c}const hr=sc(),gr="$$material";function eo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const to=e=>eo(e)&&e!=="classes",ro=xs({themeId:gr,defaultTheme:hr,rootShouldForwardProp:to});function cc(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Qt(t.components[r].defaultProps,n)}function lc(e){return Object.keys(e).length===0}function uc(e=null){const t=Ce.useContext(Dr);return!t||lc(t)?e:t}const fc=ot();function br(e=fc){return uc(e)}function no({props:e,name:t,defaultTheme:r,themeId:n}){let o=br(r);return n&&(o=o[n]||o),cc({theme:o,name:t,props:e})}function oo({props:e,name:t}){return no({props:e,name:t,defaultTheme:hr,themeId:gr})}const pc=["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 vr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gc=ot(),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 Mt(e,t){let{ownerState:r}=t,n=pe(t,pc);const o=typeof e=="function"?e(E({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Mt(a,E({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=pe(o,dc);return a.forEach(s=>{let l=!0;typeof s.props=="function"?l=s.props(E({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(l=!1)}),l&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(E({ownerState:r},n,r)):s.style))}),i}return o}function xc(e={}){const{themeId:t,defaultTheme:r=gc,rootShouldForwardProp:n=vr,slotShouldForwardProp:o=vr}=e,a=i=>nt(E({},i,{theme:Dt(E({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{_n(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:p,skipSx:g,overridesResolver:f=vc(bc(c))}=s,b=pe(s,mc),h=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,y=g||!1;let d,x=vr;c==="Root"||c==="root"?x=n:c?x=o:hc(i)&&(x=void 0);const S=En(i,E({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||Se(m)?k=>Mt(m,E({},k,{theme:Dt({theme:k.theme,defaultTheme:r,themeId:t})})):m,V=(m,...k)=>{let $=j(m);const W=k?k.map(j):[];l&&f&&W.push(w=>{const C=Dt(E({},w,{defaultTheme:r,themeId:t}));if(!C.components||!C.components[l]||!C.components[l].styleOverrides)return null;const L=C.components[l].styleOverrides,Z={};return Object.entries(L).forEach(([oe,B])=>{Z[oe]=Mt(B,E({},w,{theme:C}))}),f(w,Z)}),l&&!h&&W.push(w=>{var C;const L=Dt(E({},w,{defaultTheme:r,themeId:t})),Z=L==null||(C=L.components)==null||(C=C[l])==null?void 0:C.variants;return Mt({variants:Z},E({},w,{theme:L}))}),y||W.push(a);const re=W.length-k.length;if(Array.isArray(m)&&re>0){const w=new Array(re).fill("");$=[...m,...w],$.raw=[...m.raw,...w]}const Q=S($,...W);return i.muiName&&(Q.muiName=i.muiName),Q};return S.withConfig&&(V.withConfig=S.withConfig),V}}const Oc=xc();function ao(e,t){var r,n;return Ce.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 wc=(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:wc(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 ke(e){return e?`Level${e}`:""}function st(e){return e.unstable_level>0&&e.container}function io(e){return function(t){return`var(--Grid-${t}Spacing${ke(e.unstable_level)})`}}function xr(e){return function(t){return e.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${ke(e.unstable_level-1)})`}}function Or(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${ke(e.unstable_level-1)})`}const Sc=({theme:e,ownerState:t})=>{const r=io(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)}${st(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=st(t)?{[`--Grid-columns${ke(t.unstable_level)}`]:Or(t)}:{"--Grid-columns":12};return qe(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${ke(t.unstable_level)}`]:o})}),r},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=xr(t),n=st(t)?{[`--Grid-rowSpacing${ke(t.unstable_level)}`]:r("row")}:{};return qe(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${ke(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=xr(t),n=st(t)?{[`--Grid-columnSpacing${ke(t.unstable_level)}`]:r("column")}:{};return qe(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${ke(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},Ec=({ownerState:e})=>{const t=io(e),r=xr(e);return E({minWidth:0,boxSizing:"border-box"},e.container&&E({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||st(e))&&E({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},_c=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[]},Ac=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Pc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Rc=ot(),Dc=Oc("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Mc(e){return no({props:e,name:"MuiGrid",defaultTheme:Rc})}function Ic(e={}){const{createStyledComponent:t=Dc,useThemeProps:r=Mc,componentName:n="MuiGrid"}=e,o=Ce.createContext(void 0),a=(l,c)=>{const{container:p,direction:g,spacing:f,wrap:b,gridSize:h}=l,y={root:["root",p&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...Ac(g),..._c(h),...p?Nc(f,c.breakpoints.keys[0]):[]]};return Xr(y,d=>Hn(n,d),{})},i=t(kc,Cc,$c,Sc,Tc,Ec,jc),s=Ce.forwardRef(function(l,c){var p,g,f,b,h,y,d,x;const S=br(),j=r(l),V=dr(j),m=Ce.useContext(o),{className:k,children:$,columns:W=12,container:re=!1,component:Q="div",direction:w="row",wrap:C="wrap",spacing:L=0,rowSpacing:Z=L,columnSpacing:oe=L,disableEqualOverflow:B,unstable_level:X=0}=V,Ne=pe(V,Pc);let xe=B;X&&B!==void 0&&(xe=l.disableEqualOverflow);const v={},O={},R={};Object.entries(Ne).forEach(([T,q])=>{S.breakpoints.values[T]!==void 0?v[T]=q:S.breakpoints.values[T.replace("Offset","")]!==void 0?O[T.replace("Offset","")]=q:R[T]=q});const A=(p=l.columns)!=null?p:X?void 0:W,_=(g=l.spacing)!=null?g:X?void 0:L,D=(f=(b=l.rowSpacing)!=null?b:l.spacing)!=null?f:X?void 0:Z,N=(h=(y=l.columnSpacing)!=null?y:l.spacing)!=null?h:X?void 0:oe,P=E({},V,{level:X,columns:A,container:re,direction:w,wrap:C,spacing:_,rowSpacing:D,columnSpacing:N,gridSize:v,gridOffset:O,disableEqualOverflow:(d=(x=xe)!=null?x:m)!=null?d:!1,parentDisableEqualOverflow:m}),I=a(P,S);let M=u.jsx(i,E({ref:c,as:Q,ownerState:P,className:Qr(I.root,k)},R,{children:Ce.Children.map($,T=>{if(Ce.isValidElement(T)&&ao(T,["Grid"])){var q;return Ce.cloneElement(T,{unstable_level:(q=T.props.unstable_level)!=null?q:X+1})}return T})}));return xe!==void 0&&xe!==(m??!1)&&(M=u.jsx(o.Provider,{value:xe,children:M})),M});return s.muiName="Grid",s}function wr({value:e,children:t}){return e?typeof t=="function"?u.jsx(u.Fragment,{children:t(e)}):u.jsx(u.Fragment,{children:t}):null}const so={},ct={};function lt(e,t){try{const r=(so[e]||(so[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in ct?ct[r]:co(r,r.split(":"))}catch{if(e in ct)return ct[e];const r=e?.match(Vc);return r?co(e,r.slice(1)):NaN}}const Vc=/([+-]\d\d):?(\d\d)?/;function co(e,t){const r=+t[0],n=+(t[1]||0);return ct[e]=r>0?r*60+n:r*60-n}class $e extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(lt(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)),uo(this),Sr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new $e(...r,t):new $e(Date.now(),t)}withTimeZone(t){return new $e(+this,t)}getTimezoneOffset(){return-lt(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Sr(this),+this}[Symbol.for("constructDateFrom")](t){return new $e(+new Date(t),this.timeZone)}}const lo=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!lo.test(e))return;const t=e.replace(lo,"$1UTC");$e.prototype[t]&&(e.startsWith("get")?$e.prototype[e]=function(){return this.internal[t]()}:($e.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),zc(this),+this},$e.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Sr(this),+this}))});function Sr(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function zc(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()),uo(e)}function uo(e){const t=lt(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 l=lt(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-l,p=l!==t,g=c-s;if(p&&g){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);const f=lt(e.timeZone,e),b=l-f;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}const Fc=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("/")},Lc=(e,t)=>new Date(Number(e)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...t});function fo(){return{enqueueSnackbar:(e,t="success",r)=>{ta(e,{severity:t,variant:"customAlertComponent",persist:!0,...r})},closeSnackbar:Ir}}const Uc=zo(({id:e,message:t,severity:r,alertAction:n,sx:o,showCloseIcon:a=!0,persist:i,hideIconVariant:s,autoHideDuration:l,anchorOrigin:c,iconVariant:p,...g},f)=>u.jsx(ea,{ref:f,...g,children:u.jsx(ko,{severity:r,action:u.jsxs(Ae,{ml:1,children:[u.jsx(wr,{value:n,children:u.jsx(jr,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),u.jsx(wr,{value:!n&&a,children:u.jsx(jr,{size:"small",onClick:()=>{Ir(e)},color:"inherit",children:u.jsx(Xo,{})})})]}),sx:{alignItems:"center",width:"320px",...o},children:t})})),po=Ic({createStyledComponent:ro("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>oo({props:e,name:"MuiGrid2"})});function Gc({entry:e,payload:t,showUuid:r=!0}){const n=Gt(f=>{var b,h,y;return(y=(h=(b=f.payload)==null?void 0:b.data)==null?void 0:h.reduce)==null?void 0:y.call(h,(d,x)=>d+x.value,0)},[]),o=Gt(f=>{const b=new Wt(n(f)||0),h=t?.reduce((x,S)=>x+n(S),0)||0,y=new Wt(h),d=Number(b.div(y).times(100).toFixed(2,Wt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=Kt(()=>n(e),[e,n]),i=Bt(a),s=Kt(()=>Number(o(e)),[e,o]),l=Bt(s),c=Gt(f=>Math.floor(f).toLocaleString(),[]),p=Wo({type:"text/plain"}),g=fo();return u.jsxs(Bo,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[u.jsx(Ae,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),u.jsxs(Pe,{children:[u.jsxs(Oe,{component:"p",variant:"caption",children:[u.jsx(Pe,{component:"span",display:"inline-flex",mr:.5,children:u.jsx(Rr,{from:i??0,to:a,map:c,children:"0"})}),u.jsxs(Pe,{component:"span",direction:"row",display:"inline-flex",children:["(",u.jsx(Rr,{from:l??0,to:s,map:c,children:"0"}),"%)"]})]}),u.jsx(Oe,{variant:"body1",children:e.value}),e.payload.integrationType&&u.jsx(Oe,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&u.jsxs(Oe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{p.copy(e.payload.uuid).catch(()=>{}),g.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function mo(e){const{payload:t}=e;return u.jsx(po,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:u.jsx(Ko,{children:t?.map(r=>u.jsx(po,{children:u.jsx(Gc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.value}`))})})}function yo(e){const t=we();return u.jsx(Ae,{sx:{width:"100%",height:"100%",...e.sx},children:u.jsx(pt,{children:u.jsxs(_o,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[u.jsx(Vt,{vertical:!1}),u.jsx(zt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Ar(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),u.jsx(Ft,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&u.jsx(Lt,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),u.jsx(Ut,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Pr(r,{timeZone:e.filter.timezone,hour12:!1})}),u.jsx(Cr,{content:u.jsx(mo,{showUuid:e.showUuid})}),e.data.map(r=>Fo(No,{uuid:r.uuid,integrationType:r.integrationType,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}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 i={date:a,total:0,diff:0,totalKey:"",originalTotal:0};t.forEach(({key:s})=>{i[s]=0,i[`${s}_absolute`]=0}),r.set(a,i)}t.forEach(({key:i})=>{const s=r.get(a),l=o[i],c=typeof l=="string"?l.trim()===""?0:parseInt(l,10):typeof l=="number"?l:0;s[`${i}_absolute`]=c,s[i]=0})})}),Array.from(r.values()).map(n=>{var o;const a=(o=t.find(l=>l.isTotal))==null?void 0:o.key,i=t.filter(l=>!l.isTotal).map(l=>l.key);if(!a||i.length===0)return n;const s=n[`${a}_absolute`];return n.originalTotal=s,n.total=s,n[a]=100,i.forEach(l=>{const c=n[`${l}_absolute`];let p;s===0?(p="100.00",n[l]=100):(p=s>0?new mt(c.toString()).div(s).mul(100).toFixed(2,mt.ROUND_DOWN):"0.00",n[l]=parseFloat(p))}),{...n,totalKey:a}}).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function ho(e){const t=we(),r=Kt(()=>e.data?Kc(e.data,e.keyValues):[],[e.data,e.keyValues]);return u.jsx(Ae,{sx:{width:"100%",height:"100%",...e.sx},children:u.jsx(pt,{width:"100%",height:"100%",children:u.jsxs(Ao,{data:r,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[u.jsx(Vt,{strokeDasharray:"3 3"}),u.jsx(zt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Ar(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),u.jsx(Ft,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(2)}%`}),u.jsx(Ut,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Pr(n,{timeZone:e.filter.timezone,hour12:!1}),formatter:(n,o,a)=>{const i=a.payload.totalKey,s=a.dataKey,l=s===i,c=a.payload[`${s}_absolute`],p=a.payload.originalTotal,g=l?null:p===0?"100.00":new mt(c.toString()).div(p).mul(100).toFixed(2,mt.ROUND_DOWN);return[g?`${c.toLocaleString()} (${g}%)`:`${c.toLocaleString()} (TOTAL)`,o]}}),e.keyValues.sort((n,o)=>n.isTotal?-1:o.isTotal?1:0).map(n=>u.jsx(Po,{type:"monotone",dataKey:n.key,name:n.name,stroke:n.color,fill:n.color,strokeWidth:2,fillOpacity:.6},n.key))]})})})}function ut(e){const t=Bt(e.value),{ref:r}=ra({from:t??0,to:e.value,duration:1,map:e.map});return u.jsx(kr,{sx:{p:3,flex:1,...e.sx},children:u.jsxs(Pe,{spacing:1,alignItems:"center",children:[u.jsx(Oe,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),u.jsx(Oe,{color:"text.secondary",children:e.label})]})})}const go={margin:{top:5,right:30,left:20,bottom:5}},Wc={tickLine:!1,fontSize:12,tickMargin:12},Bc={textAnchor:"end",tickLine:!1};function It({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:l}){const c=we(),p=f=>!f.isFront,g=f=>!!f.isFront;return u.jsx(Ae,{sx:{width:"100%",height:"100%",...l},children:u.jsx(pt,{children:u.jsxs(Ro,{data:e,...go,children:[u.jsx(Vt,{strokeDasharray:"3 3",vertical:!1}),u.jsx(zt,{...Wc,...r}),u.jsx(Ft,{...Bc,...n}),u.jsx(Ut,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(p).map((f,b)=>u.jsx(Tr,{...f},f.label??b)),s?.filter(p).map((f,b)=>u.jsx(Er,{...f},f.label??b)),t.map(f=>u.jsx(Do,{name:f.key,dataKey:f.dataKey,fill:f.color,stackId:"stack",isAnimationActive:!1,...a},f.key)),i?.filter(g).map((f,b)=>u.jsx(Tr,{...f},f.label??b)),s?.filter(g).map((f,b)=>u.jsx(Er,{...f},f.label??b))]})})})}const Re=()=>({regularChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500},smallChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:300}});function bo(e){return u.jsx(Oe,{variant:"h6",fontWeight:"900",...e})}function vo(e){return u.jsx(Oe,{variant:"h6",fontWeight:"400",...e})}function Ee(){const e=Re();return u.jsxs(Pe,{sx:e.smallChartWrapper,children:[u.jsx(bo,{children:"No data available for the selected period and brands"}),u.jsx(vo,{children:"Please select a different period or brand"})]})}function _e(){const e=Re();return u.jsxs(Pe,{sx:e.smallChartWrapper,children:[u.jsx(bo,{children:"Loading..."}),u.jsx(vo,{children:"Preparing your chart data"})]})}function qc({data:e,threshold:t=120,isLoading:r,isFetching:n,isSuccess:o,sx:a}){const i=we(),s=Re(),l=Object.entries(e??{}).map(([p,g])=>({key:p,[p]:g})),c=l.map(({key:p})=>({key:p,dataKey:p,color:i.palette.error.light}));return r?u.jsx(_e,{}):!e||Object.keys(e).length===0||!o?u.jsx(Ee,{}):u.jsx(It,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:l,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>"Total"},referenceLines:[{y:t,stroke:i.palette.error.dark,strokeDasharray:"3 3",label:u.jsx(Lt,{value:"Unhealthy threshold",position:"insideBottomRight"}),isFront:!0}]})}function Hc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,sx:a}){const i=we(),s=Re(),l=Object.entries(e??{}).map(([p,g])=>({key:p,[p]:g})),c=l.map(({key:p})=>({key:p,dataKey:p,color:i.palette.warning.light}));return r?u.jsx(_e,{}):!e||Object.keys(e).length===0||!o?u.jsx(Ee,{}):u.jsx(It,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:l,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>"Total"},referenceLines:[{y:t,stroke:i.palette.error.dark,strokeDasharray:"3 3",label:u.jsx(Lt,{value:"Unhealthy threshold",position:"insideBottomRight"}),isFront:!0}]})}function xo({payload:e=[],hiddenItems:t,onToggle:r,legendLabel:n}){return u.jsx(Ae,{sx:{display:"flex",justifyContent:"center",gap:"20px",paddingTop:"20px"},children:e.map((o,a)=>{const i=t.has(o.payload.name);return u.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",opacity:i?.4:1},onClick:()=>{r?.(o.payload)},children:[u.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:o.color,marginRight:"8px",borderRadius:"2px"}}),u.jsx("span",{style:{color:o.color},children:n?`${n}: ${o.value}`:o.value})]},`legend-${a}`)})})}const Zc=e=>{const t=Math.PI/180,{cx:r,cy:n,midAngle:o,innerRadius:a,outerRadius:i,startAngle:s,endAngle:l,fill:c,payload:p,percent:g,value:f,valueText:b,valuePercentage:h,needleVisible:y,customText:d,allActive:x}=e,S=Math.sin(-t*o),j=Math.cos(-t*o),V=r+(i+5)*j,m=n+(i+5)*S,k=r+(i+15)*j,$=n+(i+15)*S,W=k+(j>=0?1:-1)*22,re=$,Q=j>=0?"start":"end",w=f.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),C=()=>y||x?null:u.jsx("text",{x:r,y:n,dy:8,textAnchor:"middle",fill:"#333",fontSize:14,children:p.name});return u.jsxs("g",{children:[C(),u.jsx(_r,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:l,fill:c}),u.jsx(_r,{cx:r,cy:n,startAngle:s,endAngle:l,innerRadius:i+2,outerRadius:i+6,fill:c}),u.jsx("path",{d:`M${V},${m}L${k},${$}L${W},${re}`,stroke:c,fill:"none"}),u.jsx("circle",{cx:W,cy:re,r:2,fill:c,stroke:"none"}),u.jsx("text",{x:W+(j>=0?1:-1)*12,y:re,textAnchor:Q,fill:"#333",fontSize:12,children:d||(b?`${b} ${w}`:w)}),h&&u.jsxs("text",{x:W+(j>=0?1:-1)*12,y:re,dy:16,textAnchor:Q,fill:"#999",fontSize:11,children:[`${(g*100).toFixed(2)}%`," (",w,")"]})]})},Yc=e=>{const{value:t,data:r,color:n,innerRadius:o,outerRadius:a,boxDimensions:i,legendDimensions:s,valueText:l}=e,c=Math.PI/180;let p=0;r.forEach(C=>{p+=C.value});const g=i?i.width/2:150,f=(i?i.height/2:200)-s.height/2,b=180*(1-Math.max(0,Math.min(1,t/p))),h=(Number(o)+2*Number(a))/3,y=Math.sin(-c*b),d=Math.cos(-c*b),x=5,S=g-x,j=f,V=S+x*y,m=j-x*d,k=S-x*y,$=j+x*d,W=S+h*d,re=j+h*y,Q=t.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),w=l??Q;return u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:S,cy:j,r:x,fill:n,stroke:"none",style:{pointerEvents:"none"}},"needle-circle"),u.jsx("path",{d:`M${V} ${m}L${k} ${$} L${W} ${re} L${V} ${m}`,stroke:"none",fill:n,style:{pointerEvents:"none"}},"needle-path"),u.jsx("text",{x:S+x,y:j+26,textAnchor:"middle",fill:"#333",fontSize:12,children:w},"needle-value")]})},Jc=(e,t)=>({Allow:t.palette.success.main,Flag:t.palette.warning.main,Block:t.palette.error.main})[e]??t.palette.primary.main;function Oo({data:e,sx:t,legendLabel:r,legendToggle:n=!1,valueText:o="",valuePercentage:a=!0,pie:i,needleVisible:s=!1,needleValue:l,needleColor:c="#aaa",allActive:p=!1}){const{innerRadius:g=60,outerRadius:f=100}=i??{},b=we(),[h,y]=dt(void 0),[d,x]=dt(new Set),S=Lo(null),[j,V]=dt(null),[m,k]=dt(null),$=(w,C)=>{p||y(C)},W=()=>{p||y(void 0)},re=w=>{n&&w&&x(C=>{const L=new Set(C);return L.has(w.name)?L.delete(w.name):L.size<e.length-1&&L.add(w.name),L})},Q=e.map((w,C)=>({...w,index:C,value:d.has(w.name)?0:w.value}));return Nr(()=>{const w=S.current;if(!w)return;const C=new ResizeObserver(Z=>{var oe;const B=(oe=Z[0])==null?void 0:oe.contentRect;B&&V(B)});C.observe(w);const L=w.getBoundingClientRect();return V(L),()=>{C.disconnect()}},[]),Nr(()=>{var w;const C=(w=S.current)==null?void 0:w.querySelector(".recharts-legend-wrapper");if(!C){const oe=setInterval(()=>{var B;const X=(B=S.current)==null?void 0:B.querySelector(".recharts-legend-wrapper");if(X){const Ne=X.getBoundingClientRect();k(Ne),clearInterval(oe)}},100);return()=>{clearInterval(oe)}}const L=new ResizeObserver(oe=>{var B;const X=(B=oe[0])==null?void 0:B.contentRect;X&&k(X)});L.observe(C);const Z=C.getBoundingClientRect();return k(Z),()=>{L.disconnect()}},[]),u.jsx(Ae,{ref:S,sx:{width:"100%",height:"100%","& g":{outline:"none"},...t},children:u.jsx(pt,{children:u.jsxs(Mo,{...go,children:[u.jsx(Io,{data:Q,nameKey:"name",dataKey:"value",innerRadius:g,outerRadius:f,activeIndex:p?Q.filter(w=>w.value>0).map(w=>w.index):h,activeShape:w=>Zc({...w,valueText:o,valuePercentage:a,needleVisible:s,allActive:p}),paddingAngle:0,onMouseEnter:$,onMouseLeave:W,...i,children:Q.map(w=>u.jsx(Vo,{fill:w.color??Jc(w.name,b),opacity:d.has(w.name)?.5:1,stroke:"none"},w.name))}),u.jsx(Cr,{content:u.jsx(xo,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&l!==void 0&&j&&m&&Yc({data:Q,value:l,color:c,innerRadius:g,outerRadius:f,boxDimensions:j,legendDimensions:m,valueText:o})]})})})}function Qc({data:e,score:t=200,legendLabel:r,isLoading:n,isFetching:o,isSuccess:a,sx:i}){const s=we(),l=Re();if(n)return u.jsx(_e,{});if(!e||e.length<=0||!a)return u.jsx(Ee,{});const c=[{name:"Allow",customText:"0-299",value:e[0].value,color:s.palette.primary.main},{name:"Flag",customText:"300-599",value:e[1].value,color:s.palette.warning.main},{name:"Block",customText:"Over 600",value:e[2].value,color:s.palette.error.main}];return u.jsx(Oo,{data:c,legendToggle:!0,needleValue:t,legendLabel:r,allActive:!0,sx:{...l.smallChartWrapper,opacity:o?.4:1,...i}})}function Xc({data:e,isLoading:t,isFetching:r,isSuccess:n,sx:o}){const a=we(),i=Re(),s=(c=>{const p={};return c.forEach(g=>{Object.entries(g).forEach(([f,b])=>{const h=parseInt(f);h<=1e3&&(p[h]=(p[h]||0)+b)})}),Array.from({length:1001},(g,f)=>({key:f.toString(),value:p[f]||0}))})(e),l=[{key:"Risk Score",dataKey:"value",color:a.palette.error.main}];return t?u.jsx(_e,{}):!e||Object.keys(e).length===0||!n?u.jsx(Ee,{}):u.jsx(It,{data:s,series:l,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,g)=>[c,g.payload.key]},referenceAreas:[{x1:0,x2:299,fill:"#ffffff00",isFront:!1,label:"Allow"},{x1:300,x2:600,fill:a.palette.warning.light,isFront:!1,label:"Flag"},{x1:600,fill:a.palette.error.light,isFront:!1,label:"Block"}]})}function el({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o,sx:a}){var i,s;const l=we(),c=Re(),p={oneClickCreated:{key:"oneClickCreated",name:"Started",color:l.palette.neutral.main,isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished",color:l.palette.primary.main}};return t?u.jsx(_e,{}):!e.length||!((s=(i=e[0])==null?void 0:i.chartData)!=null&&s.length)||!n?u.jsx(Ee,{}):u.jsx(ho,{data:e,keyValues:Object.values(p),filter:o,sx:{...c.smallChartWrapper,opacity:r?.4:1,...a}})}const tl={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function rl({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o}){return t?u.jsx(_e,{}):!e.length||!n?u.jsx(Ee,{}):u.jsx(yo,{label:"Uniques",data:e,filter:o,sx:{...tl.chartWrapper,opacity:r?.4:1}})}function nl(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),l=(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:Mr(a.integrationType),color:((i=a.additionalData)==null?void 0:i.primaryColor)??Uo(a.brandUuid),chartData:l}});return Go.chain(o).sortBy(a=>a.name).toArray().value()}const ol=({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:new Date(o.date).toISOString(),brand:n.brandName,integrationType:Mr(n.integrationType),total:o.oneClickCreated,finished:o.oneClickSuccess,totalCost:o.totalCost}))}),al=({data:e,isLoading:t,showTotalCost:r=!0})=>t?u.jsx(_e,{}):e!=null&&e.length?u.jsx($o,{component:kr,children:u.jsxs(Co,{children:[u.jsx(To,{children:u.jsxs($r,{children:[u.jsx(fe,{children:"Month"}),u.jsx(fe,{children:"Brand"}),u.jsx(fe,{children:"Integration Type"}),u.jsx(fe,{align:"right",children:"Started"}),u.jsx(fe,{align:"right",children:"Finished"}),r&&u.jsx(fe,{align:"right",children:"Total Cost"})]})}),u.jsx(Eo,{children:e.map(n=>u.jsxs($r,{children:[u.jsx(fe,{children:new Date(n.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:"UTC"})}),u.jsx(fe,{children:n.brand}),u.jsx(fe,{children:n.integrationType}),u.jsx(fe,{align:"right",children:n.total}),u.jsx(fe,{align:"right",children:n.finished}),r&&u.jsx(fe,{align:"right",children:n.totalCost??"-"})]},`${n.brand}-${n.month}`))})]})}):u.jsx(Ee,{});function il({lastUpdated:e}){return u.jsxs(Oe,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",Lc(e??Date.now(),{hour12:!1}),"."]})}const wo=e=>new Intl.NumberFormat("en-US").format(Number(e.toFixed(0))),sl=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),cl=e=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),So={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function ll(e){if(!(e!=null&&e.length))return So;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 ul({chartData:e,isLoading:t=!0,hideTotalCost:r=!1}){const n=t?So:ll(e);return u.jsxs(Pe,{direction:"row",spacing:3,children:[u.jsx(ut,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:wo}),u.jsx(ut,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:wo}),!r&&u.jsx(ut,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:sl}),u.jsx(ut,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:cl})]})}export{hr as A,ut as B,Uc as C,nn as D,qc as E,on as F,Tn as G,De as H,ge as I,ao as J,cr as K,_e as L,al as M,eo as N,el as O,Oo as P,Fc as Q,Hc as R,yo as S,gr as T,wr as W,pe as _,mo as a,ho as b,It as c,Qc as d,Xc as e,xo as f,rl as g,ol as h,Ee as i,il as j,ul as k,fa as l,nl as m,E as n,br as o,Hn as p,Qr as q,oo as r,ro as s,Xr as t,fo as u,to as v,jt as w,ga as x,Qt as y,dr as z};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var Sc=Object.defineProperty,Dc=(t,n,r)=>n in t?Sc(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,B=(t,n,r)=>Dc(t,typeof n!="symbol"?n+"":n,r);import{j as c}from"./jsx-runtime-DHlBLioN.mjs";import*as w from"react";import D,{Children as Ec,isValidElement as kn,cloneElement as gr,forwardRef as St,createContext as $r,useEffect as ze,useContext as Hr,useMemo as be,useState as De,useRef as Be,useCallback as Ft,useLayoutEffect as Jo,useImperativeHandle as Ac,createElement as Pc,Component as Ie,createRef as Lt,useReducer as jc,Fragment as ei,memo as Zr}from"react";import{Typography as Ue,Box as V,Tooltip as Oc,IconButton as br,Stack as de,Autocomplete as Kr,TextField as Oe,Radio as Nc,Chip as Rc,RadioGroup as Ta,Dialog as zc,DialogTitle as Ic,DialogContent as Fc,DialogActions as Lc,useTheme as vr,Paper as ti,Accordion as ri,AccordionSummary as ni,AccordionDetails as ai,Link as Gc,Alert as Bc,InputAdornment as Cn,Button as oi,Menu as ii,MenuItem as _a,FormControl as si,InputBase as Wc,Popper as Yc,FormHelperText as Vc,Skeleton as qc,Checkbox as $c,AlertTitle as Hc,Backdrop as Zc,CircularProgress as Kc}from"@mui/material";import{useForm as li,FormProvider as ci,useController as Qt,useFormContext as Mn,useFieldArray as Uc,appendErrors as Qc}from"react-hook-form";import{o as Xc}from"./omitProperty-CA_SIosy.mjs";import{Code as Jc,Delete as ed,ChevronLeft as di,Menu as td,CheckCircle as rd,Close as Sa,Add as ui,KeyboardArrowDown as pi,ExpandMore as nd,Image as ad}from"@mui/icons-material";import{useDrag as od,useDrop as id,DndProvider as sd}from"react-dnd";import{HTML5Backend as ld}from"react-dnd-html5-backend";import{_ as Pe}from"./uuidColor-CQNs37so.mjs";import{l as yr,_ as Z,n as T,o as hi,G as cd,p as ve,q as W,s as q,r as ke,t as Ce,v as ht,w as K,x as Gt,y as dd,z as ud,A as mi,T as fi,D as gi,F as bi,H as vi,I as Da,J as Ea,N as pd,Q as hd,u as md}from"./SignupBigNumbers-Dc829pF-.mjs";import{masks as yi}from"../utils/masks/index.mjs";import xi from"@mona-health/react-input-mask";import{a as fd}from"./useCopyToClipboard-_Ur9Q8Gv.mjs";import{_ as gd,i as bd,t as vd,c as wi,s as yd,a as ki,b as Ci,f as xd,d as wd,p as kd}from"./phone-D5XIxT7-.mjs";import{p as Cd}from"./phone.schema-XBbyizhq.mjs";import{IMaskInput as Mi}from"react-imask";import*as Ti from"react-dom";import Ur from"react-dom";import{g as Aa}from"./_commonjsHelpers-BkfeUUK-.mjs";import"qrcode";import"framer-motion";import{a as Md,u as Td}from"./useOnClickOutside-P5GTcgh8.mjs";import{useQuery as _d,QueryClient as Sd,QueryClientProvider as Dd}from"@tanstack/react-query";import{produce as Qr}from"immer";import{validateFieldsNatively as Ed,toNestErrors as Ad}from"@hookform/resolvers";import*as Ne from"zod";import Pd,{isValidPhoneNumber as jd}from"libphonenumber-js";import{keyframes as Pa}from"@emotion/react";const o3=yr.oneOfType([yr.func,yr.object]);function ja(t,n){return()=>null}function Od(t){const{prototype:n={}}=t;return!!n.isReactComponent}function Nd(t,n,r,e,a){const o=t[n],i=a||n;if(o==null||typeof window>"u")return null;let s;return typeof o=="function"&&!Od(o)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${e} \`${i}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const i3=ja(yr.elementType,Nd);function Oa(t,n){typeof t=="function"?t(n):t&&(t.current=n)}function Ye(...t){return w.useMemo(()=>t.every(n=>n==null)?null:n=>{t.forEach(r=>{Oa(r,n)})},t)}const Xt=typeof window<"u"?w.useLayoutEffect:w.useEffect;function xr(t){const n=w.useRef(t);return Xt(()=>{n.current=t}),w.useRef((...r)=>(0,n.current)(...r)).current}const _i={};function Rd(t,n){const r=w.useRef(_i);return r.current===_i&&(r.current=t(n)),r}const zd=[];function Id(t){w.useEffect(t,zd)}class Ma{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ma}start(n,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},n)}}function Si(){const t=Rd(Ma.create).current;return Id(t.disposeEffect),t}let Tn=!0,Na=!1;const Fd=new Ma,Ld={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 Gd(t){const{type:n,tagName:r}=t;return!!(r==="INPUT"&&Ld[n]&&!t.readOnly||r==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function Bd(t){t.metaKey||t.altKey||t.ctrlKey||(Tn=!0)}function Ra(){Tn=!1}function Wd(){this.visibilityState==="hidden"&&Na&&(Tn=!0)}function Yd(t){t.addEventListener("keydown",Bd,!0),t.addEventListener("mousedown",Ra,!0),t.addEventListener("pointerdown",Ra,!0),t.addEventListener("touchstart",Ra,!0),t.addEventListener("visibilitychange",Wd,!0)}function Vd(t){const{target:n}=t;try{return n.matches(":focus-visible")}catch{}return Tn||Gd(n)}function qd(){const t=w.useCallback(a=>{a!=null&&Yd(a.ownerDocument)},[]),n=w.useRef(!1);function r(){return n.current?(Na=!0,Fd.start(100,()=>{Na=!1}),n.current=!1,!0):!1}function e(a){return Vd(a)?(n.current=!0,!0):!1}return{isFocusVisibleRef:n,onFocus:e,onBlur:r,ref:t}}function za(t,n){return za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},za(t,n)}function Di(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,za(t,n)}const Ei={disabled:!1};var s3=null;const _n=D.createContext(null);var $d=function(t){return t.scrollTop},Xr="unmounted",Jt="exited",er="entering",wr="entered",Ia="exiting",mt=function(t){Di(n,t);function n(e,a){var o;o=t.call(this,e,a)||this;var i=a,s=i&&!i.isMounting?e.enter:e.appear,l;return o.appearStatus=null,e.in?s?(l=Jt,o.appearStatus=er):l=wr:e.unmountOnExit||e.mountOnEnter?l=Xr:l=Jt,o.state={status:l},o.nextCallback=null,o}n.getDerivedStateFromProps=function(e,a){var o=e.in;return o&&a.status===Xr?{status:Jt}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var a=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==er&&o!==wr&&(a=er):(o===er||o===wr)&&(a=Ia)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,a,o,i;return a=o=i=e,e!=null&&typeof e!="number"&&(a=e.exit,o=e.enter,i=e.appear!==void 0?e.appear:o),{exit:a,enter:o,appear:i}},r.updateStatus=function(e,a){if(e===void 0&&(e=!1),a!==null)if(this.cancelNextCallback(),a===er){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ur.findDOMNode(this);o&&$d(o)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jt&&this.setState({status:Xr})},r.performEnter=function(e){var a=this,o=this.props.enter,i=this.context?this.context.isMounting:e,s=this.props.nodeRef?[i]:[Ur.findDOMNode(this),i],l=s[0],d=s[1],u=this.getTimeouts(),p=i?u.appear:u.enter;if(!e&&!o||Ei.disabled){this.safeSetState({status:wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:er},function(){a.props.onEntering(l,d),a.onTransitionEnd(p,function(){a.safeSetState({status:wr},function(){a.props.onEntered(l,d)})})})},r.performExit=function(){var e=this,a=this.props.exit,o=this.getTimeouts(),i=this.props.nodeRef?void 0:Ur.findDOMNode(this);if(!a||Ei.disabled){this.safeSetState({status:Jt},function(){e.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Ia},function(){e.props.onExiting(i),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:Jt},function(){e.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,a){a=this.setNextCallback(a),this.setState(e,a)},r.setNextCallback=function(e){var a=this,o=!0;return this.nextCallback=function(i){o&&(o=!1,a.nextCallback=null,e(i))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(e,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Ur.findDOMNode(this),i=e==null&&!this.props.addEndListener;if(!o||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=s[0],d=s[1];this.props.addEndListener(l,d)}e!=null&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===Xr)return null;var a=this.props,o=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 i=Z(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(_n.Provider,{value:null},typeof o=="function"?o(e,i):D.cloneElement(D.Children.only(o),i))},n}(D.Component);mt.contextType=_n,mt.propTypes={};function kr(){}mt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kr,onEntering:kr,onEntered:kr,onExit:kr,onExiting:kr,onExited:kr},mt.UNMOUNTED=Xr,mt.EXITED=Jt,mt.ENTERING=er,mt.ENTERED=wr,mt.EXITING=Ia;function Hd(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fa(t,n){var r=function(a){return n&&kn(a)?n(a):a},e=Object.create(null);return t&&Ec.map(t,function(a){return a}).forEach(function(a){e[a.key]=r(a)}),e}function Zd(t,n){t=t||{},n=n||{};function r(u){return u in n?n[u]:t[u]}var e=Object.create(null),a=[];for(var o in t)o in n?a.length&&(e[o]=a,a=[]):a.push(o);var i,s={};for(var l in n){if(e[l])for(i=0;i<e[l].length;i++){var d=e[l][i];s[e[l][i]]=r(d)}s[l]=r(l)}for(i=0;i<a.length;i++)s[a[i]]=r(a[i]);return s}function tr(t,n,r){return r[n]!=null?r[n]:t.props[n]}function Kd(t,n){return Fa(t.children,function(r){return gr(r,{onExited:n.bind(null,r),in:!0,appear:tr(r,"appear",t),enter:tr(r,"enter",t),exit:tr(r,"exit",t)})})}function Ud(t,n,r){var e=Fa(t.children),a=Zd(n,e);return Object.keys(a).forEach(function(o){var i=a[o];if(kn(i)){var s=o in n,l=o in e,d=n[o],u=kn(d)&&!d.props.in;l&&(!s||u)?a[o]=gr(i,{onExited:r.bind(null,i),in:!0,exit:tr(i,"exit",t),enter:tr(i,"enter",t)}):!l&&s&&!u?a[o]=gr(i,{in:!1}):l&&s&&kn(d)&&(a[o]=gr(i,{onExited:r.bind(null,i),in:d.props.in,exit:tr(i,"exit",t),enter:tr(i,"enter",t)}))}}),a}var Qd=Object.values||function(t){return Object.keys(t).map(function(n){return t[n]})},Xd={component:"div",childFactory:function(t){return t}},La=function(t){Di(n,t);function n(e,a){var o;o=t.call(this,e,a)||this;var i=o.handleExited.bind(Hd(o));return o.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},o}var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,a){var o=a.children,i=a.handleExited,s=a.firstRender;return{children:s?Kd(e,i):Ud(e,o,i),firstRender:!1}},r.handleExited=function(e,a){var o=Fa(this.props.children);e.key in o||(e.props.onExited&&e.props.onExited(a),this.mounted&&this.setState(function(i){var s=T({},i.children);return delete s[e.key],{children:s}}))},r.render=function(){var e=this.props,a=e.component,o=e.childFactory,i=Z(e,["component","childFactory"]),s=this.state.contextValue,l=Qd(this.state.children).map(o);return delete i.appear,delete i.enter,delete i.exit,a===null?D.createElement(_n.Provider,{value:s},l):D.createElement(_n.Provider,{value:s},D.createElement(a,i,l))},n}(D.Component);La.propTypes={},La.defaultProps=Xd;function Jd({styles:t,themeId:n,defaultTheme:r={}}){const e=hi(r),a=typeof t=="function"?t(n&&e[n]||e):t;return c.jsx(cd,{styles:a})}function ye(t,n,r="Mui"){const e={};return n.forEach(a=>{e[a]=ve(t,a,r)}),e}function eu(t){const{prototype:n={}}=t;return!!n.isReactComponent}function Ai(t,n,r,e,a){const o=t[n],i=a||n;if(o==null||typeof window>"u")return null;let s;const l=o.type;return typeof l=="function"&&!eu(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${e} \`${i}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const tu=ja(yr.element,Ai);tu.isRequired=ja(yr.element.isRequired,Ai);const l3="exact-prop: \u200B";function c3(t){return t}function d3(t,n,r,e,a){return null}function Pi(...t){return t.reduce((n,r)=>r==null?n:function(...e){n.apply(this,e),r.apply(this,e)},()=>{})}function ji(t,n=166){let r;function e(...a){const o=()=>{t.apply(this,a)};clearTimeout(r),r=setTimeout(o,n)}return e.clear=()=>{clearTimeout(r)},e}function Qe(t){return t&&t.ownerDocument||document}function rr(t){return Qe(t).defaultView||window}let Oi=0;function ru(t){const[n,r]=w.useState(t),e=t||n;return w.useEffect(()=>{n==null&&(Oi+=1,r(`mui-${Oi}`))},[n]),e}const Ni=w.useId;function Ri(t){if(Ni!==void 0){const n=Ni();return t??n}return ru(t)}function zi({controlled:t,default:n,name:r,state:e="value"}){const{current:a}=w.useRef(t!==void 0),[o,i]=w.useState(n),s=a?t:o,l=w.useCallback(d=>{a||i(d)},[]);return[s,l]}function Ii(t){const n=t.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}function nu(t){const n=typeof t;switch(n){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 n}}function au(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const ou=Number.isInteger||au;function Fi(t,n,r,e){const a=t[n];if(a==null||!ou(a)){const o=nu(a);return new RangeError(`Invalid ${e} \`${n}\` of type \`${o}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function iu(t,n,...r){return t[n]===void 0?null:Fi(t,n,...r)}function Ga(){return null}iu.isRequired=Fi,Ga.isRequired=Ga;const u3=Ga,su=w.createContext(),lu=()=>w.useContext(su)??!1;function cu(t){const{className:n,classes:r,pulsate:e=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:l,timeout:d}=t,[u,p]=w.useState(!1),h=W(n,r.ripple,r.rippleVisible,e&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},f=W(r.child,u&&r.childLeaving,e&&r.childPulsate);return!s&&!u&&p(!0),w.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,d);return()=>{clearTimeout(b)}}},[l,s,d]),c.jsx("span",{className:h,style:m,children:c.jsx("span",{className:f})})}const nt=ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),du=["center","classes","className"];let Sn=t=>t,Li,Gi,Bi,Wi;const Ba=550,uu=80,pu=Pa(Li||(Li=Sn`
|
1
|
+
"use strict";var Sc=Object.defineProperty,Dc=(t,n,r)=>n in t?Sc(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,B=(t,n,r)=>Dc(t,typeof n!="symbol"?n+"":n,r);import{j as c}from"./jsx-runtime-DHlBLioN.mjs";import*as w from"react";import D,{Children as Ec,isValidElement as kn,cloneElement as gr,forwardRef as St,createContext as $r,useEffect as ze,useContext as Hr,useMemo as be,useState as De,useRef as Be,useCallback as Ft,useLayoutEffect as Jo,useImperativeHandle as Ac,createElement as Pc,Component as Ie,createRef as Lt,useReducer as jc,Fragment as ei,memo as Zr}from"react";import{Typography as Ue,Box as V,Tooltip as Oc,IconButton as br,Stack as de,Autocomplete as Kr,TextField as Oe,Radio as Nc,Chip as Rc,RadioGroup as Ta,Dialog as zc,DialogTitle as Ic,DialogContent as Fc,DialogActions as Lc,useTheme as vr,Paper as ti,Accordion as ri,AccordionSummary as ni,AccordionDetails as ai,Link as Gc,Alert as Bc,InputAdornment as Cn,Button as oi,Menu as ii,MenuItem as _a,FormControl as si,InputBase as Wc,Popper as Yc,FormHelperText as Vc,Skeleton as qc,Checkbox as $c,AlertTitle as Hc,Backdrop as Zc,CircularProgress as Kc}from"@mui/material";import{useForm as li,FormProvider as ci,useController as Qt,useFormContext as Mn,useFieldArray as Uc,appendErrors as Qc}from"react-hook-form";import{o as Xc}from"./omitProperty-CA_SIosy.mjs";import{Code as Jc,Delete as ed,ChevronLeft as di,Menu as td,CheckCircle as rd,Close as Sa,Add as ui,KeyboardArrowDown as pi,ExpandMore as nd,Image as ad}from"@mui/icons-material";import{useDrag as od,useDrop as id,DndProvider as sd}from"react-dnd";import{HTML5Backend as ld}from"react-dnd-html5-backend";import{_ as Pe}from"./uuidColor-CQNs37so.mjs";import{l as yr,_ as Z,n as T,o as hi,G as cd,p as ve,q as W,s as q,r as ke,t as Ce,v as ht,w as K,x as Gt,y as dd,z as ud,A as mi,T as fi,D as gi,F as bi,H as vi,I as Da,J as Ea,N as pd,Q as hd,u as md}from"./SignupBigNumbers-C4-CKp97.mjs";import{masks as yi}from"../utils/masks/index.mjs";import xi from"@mona-health/react-input-mask";import{a as fd}from"./useCopyToClipboard-_Ur9Q8Gv.mjs";import{_ as gd,i as bd,t as vd,c as wi,s as yd,a as ki,b as Ci,f as xd,d as wd,p as kd}from"./phone-D5XIxT7-.mjs";import{p as Cd}from"./phone.schema-XBbyizhq.mjs";import{IMaskInput as Mi}from"react-imask";import*as Ti from"react-dom";import Ur from"react-dom";import{g as Aa}from"./_commonjsHelpers-BkfeUUK-.mjs";import"qrcode";import"framer-motion";import{a as Md,u as Td}from"./useOnClickOutside-P5GTcgh8.mjs";import{useQuery as _d,QueryClient as Sd,QueryClientProvider as Dd}from"@tanstack/react-query";import{produce as Qr}from"immer";import{validateFieldsNatively as Ed,toNestErrors as Ad}from"@hookform/resolvers";import*as Ne from"zod";import Pd,{isValidPhoneNumber as jd}from"libphonenumber-js";import{keyframes as Pa}from"@emotion/react";const o3=yr.oneOfType([yr.func,yr.object]);function ja(t,n){return()=>null}function Od(t){const{prototype:n={}}=t;return!!n.isReactComponent}function Nd(t,n,r,e,a){const o=t[n],i=a||n;if(o==null||typeof window>"u")return null;let s;return typeof o=="function"&&!Od(o)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${e} \`${i}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const i3=ja(yr.elementType,Nd);function Oa(t,n){typeof t=="function"?t(n):t&&(t.current=n)}function Ye(...t){return w.useMemo(()=>t.every(n=>n==null)?null:n=>{t.forEach(r=>{Oa(r,n)})},t)}const Xt=typeof window<"u"?w.useLayoutEffect:w.useEffect;function xr(t){const n=w.useRef(t);return Xt(()=>{n.current=t}),w.useRef((...r)=>(0,n.current)(...r)).current}const _i={};function Rd(t,n){const r=w.useRef(_i);return r.current===_i&&(r.current=t(n)),r}const zd=[];function Id(t){w.useEffect(t,zd)}class Ma{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ma}start(n,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},n)}}function Si(){const t=Rd(Ma.create).current;return Id(t.disposeEffect),t}let Tn=!0,Na=!1;const Fd=new Ma,Ld={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 Gd(t){const{type:n,tagName:r}=t;return!!(r==="INPUT"&&Ld[n]&&!t.readOnly||r==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function Bd(t){t.metaKey||t.altKey||t.ctrlKey||(Tn=!0)}function Ra(){Tn=!1}function Wd(){this.visibilityState==="hidden"&&Na&&(Tn=!0)}function Yd(t){t.addEventListener("keydown",Bd,!0),t.addEventListener("mousedown",Ra,!0),t.addEventListener("pointerdown",Ra,!0),t.addEventListener("touchstart",Ra,!0),t.addEventListener("visibilitychange",Wd,!0)}function Vd(t){const{target:n}=t;try{return n.matches(":focus-visible")}catch{}return Tn||Gd(n)}function qd(){const t=w.useCallback(a=>{a!=null&&Yd(a.ownerDocument)},[]),n=w.useRef(!1);function r(){return n.current?(Na=!0,Fd.start(100,()=>{Na=!1}),n.current=!1,!0):!1}function e(a){return Vd(a)?(n.current=!0,!0):!1}return{isFocusVisibleRef:n,onFocus:e,onBlur:r,ref:t}}function za(t,n){return za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},za(t,n)}function Di(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,za(t,n)}const Ei={disabled:!1};var s3=null;const _n=D.createContext(null);var $d=function(t){return t.scrollTop},Xr="unmounted",Jt="exited",er="entering",wr="entered",Ia="exiting",mt=function(t){Di(n,t);function n(e,a){var o;o=t.call(this,e,a)||this;var i=a,s=i&&!i.isMounting?e.enter:e.appear,l;return o.appearStatus=null,e.in?s?(l=Jt,o.appearStatus=er):l=wr:e.unmountOnExit||e.mountOnEnter?l=Xr:l=Jt,o.state={status:l},o.nextCallback=null,o}n.getDerivedStateFromProps=function(e,a){var o=e.in;return o&&a.status===Xr?{status:Jt}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var a=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==er&&o!==wr&&(a=er):(o===er||o===wr)&&(a=Ia)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,a,o,i;return a=o=i=e,e!=null&&typeof e!="number"&&(a=e.exit,o=e.enter,i=e.appear!==void 0?e.appear:o),{exit:a,enter:o,appear:i}},r.updateStatus=function(e,a){if(e===void 0&&(e=!1),a!==null)if(this.cancelNextCallback(),a===er){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ur.findDOMNode(this);o&&$d(o)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jt&&this.setState({status:Xr})},r.performEnter=function(e){var a=this,o=this.props.enter,i=this.context?this.context.isMounting:e,s=this.props.nodeRef?[i]:[Ur.findDOMNode(this),i],l=s[0],d=s[1],u=this.getTimeouts(),p=i?u.appear:u.enter;if(!e&&!o||Ei.disabled){this.safeSetState({status:wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:er},function(){a.props.onEntering(l,d),a.onTransitionEnd(p,function(){a.safeSetState({status:wr},function(){a.props.onEntered(l,d)})})})},r.performExit=function(){var e=this,a=this.props.exit,o=this.getTimeouts(),i=this.props.nodeRef?void 0:Ur.findDOMNode(this);if(!a||Ei.disabled){this.safeSetState({status:Jt},function(){e.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Ia},function(){e.props.onExiting(i),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:Jt},function(){e.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,a){a=this.setNextCallback(a),this.setState(e,a)},r.setNextCallback=function(e){var a=this,o=!0;return this.nextCallback=function(i){o&&(o=!1,a.nextCallback=null,e(i))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(e,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Ur.findDOMNode(this),i=e==null&&!this.props.addEndListener;if(!o||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=s[0],d=s[1];this.props.addEndListener(l,d)}e!=null&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===Xr)return null;var a=this.props,o=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 i=Z(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(_n.Provider,{value:null},typeof o=="function"?o(e,i):D.cloneElement(D.Children.only(o),i))},n}(D.Component);mt.contextType=_n,mt.propTypes={};function kr(){}mt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kr,onEntering:kr,onEntered:kr,onExit:kr,onExiting:kr,onExited:kr},mt.UNMOUNTED=Xr,mt.EXITED=Jt,mt.ENTERING=er,mt.ENTERED=wr,mt.EXITING=Ia;function Hd(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fa(t,n){var r=function(a){return n&&kn(a)?n(a):a},e=Object.create(null);return t&&Ec.map(t,function(a){return a}).forEach(function(a){e[a.key]=r(a)}),e}function Zd(t,n){t=t||{},n=n||{};function r(u){return u in n?n[u]:t[u]}var e=Object.create(null),a=[];for(var o in t)o in n?a.length&&(e[o]=a,a=[]):a.push(o);var i,s={};for(var l in n){if(e[l])for(i=0;i<e[l].length;i++){var d=e[l][i];s[e[l][i]]=r(d)}s[l]=r(l)}for(i=0;i<a.length;i++)s[a[i]]=r(a[i]);return s}function tr(t,n,r){return r[n]!=null?r[n]:t.props[n]}function Kd(t,n){return Fa(t.children,function(r){return gr(r,{onExited:n.bind(null,r),in:!0,appear:tr(r,"appear",t),enter:tr(r,"enter",t),exit:tr(r,"exit",t)})})}function Ud(t,n,r){var e=Fa(t.children),a=Zd(n,e);return Object.keys(a).forEach(function(o){var i=a[o];if(kn(i)){var s=o in n,l=o in e,d=n[o],u=kn(d)&&!d.props.in;l&&(!s||u)?a[o]=gr(i,{onExited:r.bind(null,i),in:!0,exit:tr(i,"exit",t),enter:tr(i,"enter",t)}):!l&&s&&!u?a[o]=gr(i,{in:!1}):l&&s&&kn(d)&&(a[o]=gr(i,{onExited:r.bind(null,i),in:d.props.in,exit:tr(i,"exit",t),enter:tr(i,"enter",t)}))}}),a}var Qd=Object.values||function(t){return Object.keys(t).map(function(n){return t[n]})},Xd={component:"div",childFactory:function(t){return t}},La=function(t){Di(n,t);function n(e,a){var o;o=t.call(this,e,a)||this;var i=o.handleExited.bind(Hd(o));return o.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},o}var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,a){var o=a.children,i=a.handleExited,s=a.firstRender;return{children:s?Kd(e,i):Ud(e,o,i),firstRender:!1}},r.handleExited=function(e,a){var o=Fa(this.props.children);e.key in o||(e.props.onExited&&e.props.onExited(a),this.mounted&&this.setState(function(i){var s=T({},i.children);return delete s[e.key],{children:s}}))},r.render=function(){var e=this.props,a=e.component,o=e.childFactory,i=Z(e,["component","childFactory"]),s=this.state.contextValue,l=Qd(this.state.children).map(o);return delete i.appear,delete i.enter,delete i.exit,a===null?D.createElement(_n.Provider,{value:s},l):D.createElement(_n.Provider,{value:s},D.createElement(a,i,l))},n}(D.Component);La.propTypes={},La.defaultProps=Xd;function Jd({styles:t,themeId:n,defaultTheme:r={}}){const e=hi(r),a=typeof t=="function"?t(n&&e[n]||e):t;return c.jsx(cd,{styles:a})}function ye(t,n,r="Mui"){const e={};return n.forEach(a=>{e[a]=ve(t,a,r)}),e}function eu(t){const{prototype:n={}}=t;return!!n.isReactComponent}function Ai(t,n,r,e,a){const o=t[n],i=a||n;if(o==null||typeof window>"u")return null;let s;const l=o.type;return typeof l=="function"&&!eu(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${e} \`${i}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const tu=ja(yr.element,Ai);tu.isRequired=ja(yr.element.isRequired,Ai);const l3="exact-prop: \u200B";function c3(t){return t}function d3(t,n,r,e,a){return null}function Pi(...t){return t.reduce((n,r)=>r==null?n:function(...e){n.apply(this,e),r.apply(this,e)},()=>{})}function ji(t,n=166){let r;function e(...a){const o=()=>{t.apply(this,a)};clearTimeout(r),r=setTimeout(o,n)}return e.clear=()=>{clearTimeout(r)},e}function Qe(t){return t&&t.ownerDocument||document}function rr(t){return Qe(t).defaultView||window}let Oi=0;function ru(t){const[n,r]=w.useState(t),e=t||n;return w.useEffect(()=>{n==null&&(Oi+=1,r(`mui-${Oi}`))},[n]),e}const Ni=w.useId;function Ri(t){if(Ni!==void 0){const n=Ni();return t??n}return ru(t)}function zi({controlled:t,default:n,name:r,state:e="value"}){const{current:a}=w.useRef(t!==void 0),[o,i]=w.useState(n),s=a?t:o,l=w.useCallback(d=>{a||i(d)},[]);return[s,l]}function Ii(t){const n=t.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}function nu(t){const n=typeof t;switch(n){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 n}}function au(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const ou=Number.isInteger||au;function Fi(t,n,r,e){const a=t[n];if(a==null||!ou(a)){const o=nu(a);return new RangeError(`Invalid ${e} \`${n}\` of type \`${o}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function iu(t,n,...r){return t[n]===void 0?null:Fi(t,n,...r)}function Ga(){return null}iu.isRequired=Fi,Ga.isRequired=Ga;const u3=Ga,su=w.createContext(),lu=()=>w.useContext(su)??!1;function cu(t){const{className:n,classes:r,pulsate:e=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:l,timeout:d}=t,[u,p]=w.useState(!1),h=W(n,r.ripple,r.rippleVisible,e&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},f=W(r.child,u&&r.childLeaving,e&&r.childPulsate);return!s&&!u&&p(!0),w.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,d);return()=>{clearTimeout(b)}}},[l,s,d]),c.jsx("span",{className:h,style:m,children:c.jsx("span",{className:f})})}const nt=ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),du=["center","classes","className"];let Sn=t=>t,Li,Gi,Bi,Wi;const Ba=550,uu=80,pu=Pa(Li||(Li=Sn`
|
2
2
|
0% {
|
3
3
|
transform: scale(0);
|
4
4
|
opacity: 0.1;
|