spry-apps-dropdown 2.0.3 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const $=require("react/jsx-runtime"),X=require("react"),H=require("@mui/material"),Nt=require("framer-motion"),Dr=require("@emotion/styled");require("@emotion/react");function Br(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const be=Br(X);function pr({apps:e,open:t,onClose:r,buttonRef:n,isLoading:o=!1,error:i=null,onRetry:c,excludeAppId:l}){const u=X.useRef(null),[f,g]=X.useState("64px"),m=()=>{const h=window.location.origin;return e.find(a=>a.url.startsWith(h))?.id},p=e.filter(h=>{if(l&&h.id===l)return!1;const a=m();return!(a&&h.id===a)});X.useLayoutEffect(()=>{if(t&&n?.current){const h=n.current.getBoundingClientRect();g(`${h.bottom+8}px`)}},[t,n]),X.useEffect(()=>{const h=a=>{u.current&&!u.current.contains(a.target)&&n?.current&&!n.current.contains(a.target)&&r()};return t&&document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[t,r,n]);const v=h=>{window.open(h,"_blank"),r()};return $.jsx(Nt.AnimatePresence,{children:t&&$.jsx(Nt.motion.div,{ref:u,initial:{opacity:0,scaleX:.6,scaleY:.6,y:-8},animate:{opacity:1,scaleX:1,scaleY:1,y:0},exit:{opacity:0,scaleX:.6,scaleY:.6,y:-8},transition:{duration:.18,ease:"easeOut"},style:{position:"absolute",top:f,right:"16px",zIndex:1e3,transformOrigin:"top right"},children:$.jsxs(H.Box,{sx:{bgcolor:"#E8F0FE",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",p:2,width:"320px",minHeight:"100px"},onClick:h=>h.stopPropagation(),children:[o&&p.length===0&&$.jsx(H.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px"},children:$.jsx(H.CircularProgress,{size:32})}),i&&p.length===0&&$.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100px",gap:1},children:[$.jsx(H.Typography,{sx:{fontSize:"0.875rem",color:"#ea4335",textAlign:"center"},children:"Failed to load apps"}),c&&$.jsx(H.Link,{component:"button",onClick:c,sx:{fontSize:"0.875rem",color:"#1a73e8",cursor:"pointer",textDecoration:"underline"},children:"Retry"})]}),p.length>0&&$.jsx(H.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:1},children:p.map(h=>$.jsxs(H.Link,{onClick:()=>v(h.url),sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100px",p:1.5,borderRadius:"12px",cursor:"pointer",textDecoration:"none",transition:"background-color 200ms","&:hover":{bgcolor:"#f1f3f4"}},title:h.description,children:[$.jsx(H.Box,{sx:{pb:1},children:h.iconUrl?$.jsx(H.Box,{component:"img",src:h.iconUrl,alt:h.name,sx:{width:"32px",height:"32px",objectFit:"contain"}}):$.jsx(H.Box,{sx:{width:"32px",height:"32px",borderRadius:"6px",bgcolor:h.color||"#4285f4",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem"},children:h.name.charAt(0)})}),$.jsx(H.Typography,{sx:{fontSize:"0.75rem",fontWeight:500,color:"#202124",textAlign:"center",lineHeight:1.2},children:h.name})]},h.id))})]})})})}const lt="spry_apps_cache",Lr=300*1e3,Fr=300*1e3;function mr(e,t={}){const{refetchInterval:r=Lr,cacheTime:n=Fr}=t,[o,i]=X.useState([]),[c,l]=X.useState(!0),[u,f]=X.useState(null),g=X.useRef(null),m=X.useRef(null),p=X.useCallback(()=>{try{const a=localStorage.getItem(lt);if(!a)return null;const S=JSON.parse(a);return Date.now()-S.timestamp<n?S.apps:(localStorage.removeItem(lt),null)}catch(a){return console.error("Error loading from cache:",a),null}},[n]),v=X.useCallback(a=>{try{const S={apps:a,timestamp:Date.now()};localStorage.setItem(lt,JSON.stringify(S))}catch(S){console.error("Error saving to cache:",S)}},[]),h=X.useCallback(async()=>{m.current&&m.current.abort(),m.current=new AbortController;try{l(!0),f(null);const a=await fetch(`${e}/api/apps`,{signal:m.current.signal,headers:{Accept:"application/json"}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);const S=await a.json();i(S.apps),v(S.apps),f(null)}catch(a){if(a instanceof Error&&a.name==="AbortError")return;const S=a instanceof Error?a.message:"Failed to fetch apps";f(S),console.error("Error fetching apps:",a);const E=p();E&&i(E)}finally{l(!1)}},[e,p,v]);return X.useEffect(()=>{const a=p();return a&&(i(a),l(!1)),h(),r>0&&(g.current=window.setInterval(()=>{h()},r)),()=>{g.current&&window.clearInterval(g.current),m.current&&m.current.abort()}},[e,r,n]),{apps:o,isLoading:c,error:u,refetch:h}}function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ve={exports:{}},Y={};var Mt;function zr(){if(Mt)return Y;Mt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function h(a){if(typeof a=="object"&&a!==null){var S=a.$$typeof;switch(S){case e:switch(a=a.type,a){case r:case o:case n:case u:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case c:case l:case m:case g:return a;case i:return a;default:return S}}case t:return S}}}return Y.ContextConsumer=i,Y.ContextProvider=c,Y.Element=e,Y.ForwardRef=l,Y.Fragment=r,Y.Lazy=m,Y.Memo=g,Y.Portal=t,Y.Profiler=o,Y.StrictMode=n,Y.Suspense=u,Y.SuspenseList=f,Y.isContextConsumer=function(a){return h(a)===i},Y.isContextProvider=function(a){return h(a)===c},Y.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},Y.isForwardRef=function(a){return h(a)===l},Y.isFragment=function(a){return h(a)===r},Y.isLazy=function(a){return h(a)===m},Y.isMemo=function(a){return h(a)===g},Y.isPortal=function(a){return h(a)===t},Y.isProfiler=function(a){return h(a)===o},Y.isStrictMode=function(a){return h(a)===n},Y.isSuspense=function(a){return h(a)===u},Y.isSuspenseList=function(a){return h(a)===f},Y.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===o||a===n||a===u||a===f||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===g||a.$$typeof===c||a.$$typeof===i||a.$$typeof===l||a.$$typeof===v||a.getModuleId!==void 0)},Y.typeOf=h,Y}var q={};var jt;function Wr(){return jt||(jt=1,process.env.NODE_ENV!=="production"&&(function(){function e(a){if(typeof a=="object"&&a!==null){var S=a.$$typeof;switch(S){case t:switch(a=a.type,a){case n:case i:case o:case f:case g:case v:return a;default:switch(a=a&&a.$$typeof,a){case l:case u:case p:case m:return a;case c:return a;default:return S}}case r:return S}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");q.ContextConsumer=c,q.ContextProvider=l,q.Element=t,q.ForwardRef=u,q.Fragment=n,q.Lazy=p,q.Memo=m,q.Portal=r,q.Profiler=i,q.StrictMode=o,q.Suspense=f,q.SuspenseList=g,q.isContextConsumer=function(a){return e(a)===c},q.isContextProvider=function(a){return e(a)===l},q.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},q.isForwardRef=function(a){return e(a)===u},q.isFragment=function(a){return e(a)===n},q.isLazy=function(a){return e(a)===p},q.isMemo=function(a){return e(a)===m},q.isPortal=function(a){return e(a)===r},q.isProfiler=function(a){return e(a)===i},q.isStrictMode=function(a){return e(a)===o},q.isSuspense=function(a){return e(a)===f},q.isSuspenseList=function(a){return e(a)===g},q.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===i||a===o||a===f||a===g||typeof a=="object"&&a!==null&&(a.$$typeof===p||a.$$typeof===m||a.$$typeof===l||a.$$typeof===c||a.$$typeof===u||a.$$typeof===h||a.getModuleId!==void 0)},q.typeOf=e})()),q}var Dt;function Ur(){return Dt||(Dt=1,process.env.NODE_ENV==="production"?Ve.exports=zr():Ve.exports=Wr()),Ve.exports}var He=Ur();function he(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 hr(e){if(be.isValidElement(e)||He.isValidElementType(e)||!he(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=hr(e[r])}),t}function ce(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return he(e)&&he(t)&&Object.keys(t).forEach(o=>{be.isValidElement(t[o])||He.isValidElementType(t[o])?n[o]=t[o]:he(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&he(e[o])?n[o]=ce(e[o],t[o],r):r.clone?n[o]=he(t[o])?hr(t[o]):t[o]:n[o]=t[o]}),n}var ze={exports:{}},We={exports:{}},V={};var Bt;function Yr(){if(Bt)return V;Bt=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,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function T(y){if(typeof y=="object"&&y!==null){var U=y.$$typeof;switch(U){case t:switch(y=y.type,y){case u:case f:case n:case i:case o:case m:return y;default:switch(y=y&&y.$$typeof,y){case l:case g:case h:case v:case c:return y;default:return U}}case r:return U}}}function w(y){return T(y)===f}return V.AsyncMode=u,V.ConcurrentMode=f,V.ContextConsumer=l,V.ContextProvider=c,V.Element=t,V.ForwardRef=g,V.Fragment=n,V.Lazy=h,V.Memo=v,V.Portal=r,V.Profiler=i,V.StrictMode=o,V.Suspense=m,V.isAsyncMode=function(y){return w(y)||T(y)===u},V.isConcurrentMode=w,V.isContextConsumer=function(y){return T(y)===l},V.isContextProvider=function(y){return T(y)===c},V.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},V.isForwardRef=function(y){return T(y)===g},V.isFragment=function(y){return T(y)===n},V.isLazy=function(y){return T(y)===h},V.isMemo=function(y){return T(y)===v},V.isPortal=function(y){return T(y)===r},V.isProfiler=function(y){return T(y)===i},V.isStrictMode=function(y){return T(y)===o},V.isSuspense=function(y){return T(y)===m},V.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===f||y===i||y===o||y===m||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===v||y.$$typeof===c||y.$$typeof===l||y.$$typeof===g||y.$$typeof===S||y.$$typeof===E||y.$$typeof===k||y.$$typeof===a)},V.typeOf=T,V}var z={};var Lt;function qr(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&(function(){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,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function T(C){return typeof C=="string"||typeof C=="function"||C===n||C===f||C===i||C===o||C===m||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===v||C.$$typeof===c||C.$$typeof===l||C.$$typeof===g||C.$$typeof===S||C.$$typeof===E||C.$$typeof===k||C.$$typeof===a)}function w(C){if(typeof C=="object"&&C!==null){var de=C.$$typeof;switch(de){case t:var Fe=C.type;switch(Fe){case u:case f:case n:case i:case o:case m:return Fe;default:var kt=Fe&&Fe.$$typeof;switch(kt){case l:case g:case h:case v:case c:return kt;default:return de}}case r:return de}}}var y=u,U=f,Z=l,Q=c,L=t,s=g,A=n,F=h,B=v,ie=r,ne=i,se=o,fe=m,Le=!1;function ct(C){return Le||(Le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(C)||w(C)===u}function b(C){return w(C)===f}function x(C){return w(C)===l}function I(C){return w(C)===c}function R(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function O(C){return w(C)===g}function N(C){return w(C)===n}function _(C){return w(C)===h}function P(C){return w(C)===v}function M(C){return w(C)===r}function W(C){return w(C)===i}function j(C){return w(C)===o}function oe(C){return w(C)===m}z.AsyncMode=y,z.ConcurrentMode=U,z.ContextConsumer=Z,z.ContextProvider=Q,z.Element=L,z.ForwardRef=s,z.Fragment=A,z.Lazy=F,z.Memo=B,z.Portal=ie,z.Profiler=ne,z.StrictMode=se,z.Suspense=fe,z.isAsyncMode=ct,z.isConcurrentMode=b,z.isContextConsumer=x,z.isContextProvider=I,z.isElement=R,z.isForwardRef=O,z.isFragment=N,z.isLazy=_,z.isMemo=P,z.isPortal=M,z.isProfiler=W,z.isStrictMode=j,z.isSuspense=oe,z.isValidElementType=T,z.typeOf=w})()),z}var Ft;function gr(){return Ft||(Ft=1,process.env.NODE_ENV==="production"?We.exports=Yr():We.exports=qr()),We.exports}var ut,Vt;function Hr(){if(Vt)return ut;Vt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(c).map(function(g){return c[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ut=o()?Object.assign:function(i,c){for(var l,u=n(i),f,g=1;g<arguments.length;g++){l=Object(arguments[g]);for(var m in l)t.call(l,m)&&(u[m]=l[m]);if(e){f=e(l);for(var p=0;p<f.length;p++)r.call(l,f[p])&&(u[f[p]]=l[f[p]])}}return u},ut}var ft,zt;function Tt(){if(zt)return ft;zt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ft=e,ft}var dt,Wt;function yr(){return Wt||(Wt=1,dt=Function.call.bind(Object.prototype.hasOwnProperty)),dt}var pt,Ut;function Gr(){if(Ut)return pt;Ut=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tt(),r={},n=yr();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,l,u,f){if(process.env.NODE_ENV!=="production"){for(var g in i)if(n(i,g)){var m;try{if(typeof i[g]!="function"){var p=Error((u||"React class")+": "+l+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=i[g](c,g,u,l,null,t)}catch(h){m=h}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var v=f?f():"";e("Failed "+l+" type: "+m.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},pt=o,pt}var mt,Yt;function Kr(){if(Yt)return mt;Yt=1;var e=gr(),t=Hr(),r=Tt(),n=yr(),o=Gr(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function c(){return null}return mt=function(l,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function m(b){var x=b&&(f&&b[f]||b[g]);if(typeof x=="function")return x}var p="<<anonymous>>",v={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:k(),arrayOf:T,element:w(),elementType:y(),instanceOf:U,node:s(),objectOf:Q,oneOf:Z,oneOfType:L,shape:F,exact:B};function h(b,x){return b===x?b!==0||1/b===1/x:b!==b&&x!==x}function a(b,x){this.message=b,this.data=x&&typeof x=="object"?x:{},this.stack=""}a.prototype=Error.prototype;function S(b){if(process.env.NODE_ENV!=="production")var x={},I=0;function R(N,_,P,M,W,j,oe){if(M=M||p,j=j||P,oe!==r){if(u){var C=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 C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=M+":"+P;!x[de]&&I<3&&(i("You are manually calling a React.PropTypes validation function for the `"+j+"` prop on `"+M+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),x[de]=!0,I++)}}return _[P]==null?N?_[P]===null?new a("The "+W+" `"+j+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new a("The "+W+" `"+j+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:b(_,P,M,W,j)}var O=R.bind(null,!1);return O.isRequired=R.bind(null,!0),O}function E(b){function x(I,R,O,N,_,P){var M=I[R],W=se(M);if(W!==b){var j=fe(M);return new a("Invalid "+N+" `"+_+"` of type "+("`"+j+"` supplied to `"+O+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return S(x)}function k(){return S(c)}function T(b){function x(I,R,O,N,_){if(typeof b!="function")return new a("Property `"+_+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var P=I[R];if(!Array.isArray(P)){var M=se(P);return new a("Invalid "+N+" `"+_+"` of type "+("`"+M+"` supplied to `"+O+"`, expected an array."))}for(var W=0;W<P.length;W++){var j=b(P,W,O,N,_+"["+W+"]",r);if(j instanceof Error)return j}return null}return S(x)}function w(){function b(x,I,R,O,N){var _=x[I];if(!l(_)){var P=se(_);return new a("Invalid "+O+" `"+N+"` of type "+("`"+P+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return S(b)}function y(){function b(x,I,R,O,N){var _=x[I];if(!e.isValidElementType(_)){var P=se(_);return new a("Invalid "+O+" `"+N+"` of type "+("`"+P+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return S(b)}function U(b){function x(I,R,O,N,_){if(!(I[R]instanceof b)){var P=b.name||p,M=ct(I[R]);return new a("Invalid "+N+" `"+_+"` of type "+("`"+M+"` supplied to `"+O+"`, expected ")+("instance of `"+P+"`."))}return null}return S(x)}function Z(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function x(I,R,O,N,_){for(var P=I[R],M=0;M<b.length;M++)if(h(P,b[M]))return null;var W=JSON.stringify(b,function(oe,C){var de=fe(C);return de==="symbol"?String(C):C});return new a("Invalid "+N+" `"+_+"` of value `"+String(P)+"` "+("supplied to `"+O+"`, expected one of "+W+"."))}return S(x)}function Q(b){function x(I,R,O,N,_){if(typeof b!="function")return new a("Property `"+_+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var P=I[R],M=se(P);if(M!=="object")return new a("Invalid "+N+" `"+_+"` of type "+("`"+M+"` supplied to `"+O+"`, expected an object."));for(var W in P)if(n(P,W)){var j=b(P,W,O,N,_+"."+W,r);if(j instanceof Error)return j}return null}return S(x)}function L(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var x=0;x<b.length;x++){var I=b[x];if(typeof I!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Le(I)+" at index "+x+"."),c}function R(O,N,_,P,M){for(var W=[],j=0;j<b.length;j++){var oe=b[j],C=oe(O,N,_,P,M,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&W.push(C.data.expectedType)}var de=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new a("Invalid "+P+" `"+M+"` supplied to "+("`"+_+"`"+de+"."))}return S(R)}function s(){function b(x,I,R,O,N){return ie(x[I])?null:new a("Invalid "+O+" `"+N+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return S(b)}function A(b,x,I,R,O){return new a((b||"React class")+": "+x+" type `"+I+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function F(b){function x(I,R,O,N,_){var P=I[R],M=se(P);if(M!=="object")return new a("Invalid "+N+" `"+_+"` of type `"+M+"` "+("supplied to `"+O+"`, expected `object`."));for(var W in b){var j=b[W];if(typeof j!="function")return A(O,N,_,W,fe(j));var oe=j(P,W,O,N,_+"."+W,r);if(oe)return oe}return null}return S(x)}function B(b){function x(I,R,O,N,_){var P=I[R],M=se(P);if(M!=="object")return new a("Invalid "+N+" `"+_+"` of type `"+M+"` "+("supplied to `"+O+"`, expected `object`."));var W=t({},I[R],b);for(var j in W){var oe=b[j];if(n(b,j)&&typeof oe!="function")return A(O,N,_,j,fe(oe));if(!oe)return new a("Invalid "+N+" `"+_+"` key `"+j+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(I[R],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(b),null," "));var C=oe(P,j,O,N,_+"."+j,r);if(C)return C}return null}return S(x)}function ie(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(ie);if(b===null||l(b))return!0;var x=m(b);if(x){var I=x.call(b),R;if(x!==b.entries){for(;!(R=I.next()).done;)if(!ie(R.value))return!1}else for(;!(R=I.next()).done;){var O=R.value;if(O&&!ie(O[1]))return!1}}else return!1;return!0;default:return!1}}function ne(b,x){return b==="symbol"?!0:x?x["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&x instanceof Symbol:!1}function se(b){var x=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":ne(x,b)?"symbol":x}function fe(b){if(typeof b>"u"||b===null)return""+b;var x=se(b);if(x==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return x}function Le(b){var x=fe(b);switch(x){case"array":case"object":return"an "+x;case"boolean":case"date":case"regexp":return"a "+x;default:return x}}function ct(b){return!b.constructor||!b.constructor.name?p:b.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},mt}var ht,qt;function Xr(){if(qt)return ht;qt=1;var e=Tt();function t(){}function r(){}return r.resetWarningCache=t,ht=function(){function n(c,l,u,f,g,m){if(m!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={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 i.PropTypes=i,i},ht}var Ht;function Jr(){if(Ht)return ze.exports;if(Ht=1,process.env.NODE_ENV!=="production"){var e=gr(),t=!0;ze.exports=Kr()(e.isElement,t)}else ze.exports=Xr()();return ze.exports}var Qr=Jr();const D=Vr(Qr);function ve(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function br(e,t=""){return e.displayName||e.name||t}function Gt(e,t,r){const n=br(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Zr(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return br(e,"Component");if(typeof e=="object")switch(e.$$typeof){case He.ForwardRef:return Gt(e,e.render,"ForwardRef");case He.Memo:return Gt(e,e.type,"memo");default:return}}}function Te(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ve(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ct(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],c=t[o];if(!c)r[o]=i||{};else if(!i)r[o]=c;else{r[o]={...c};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const u=l;r[o][u]=Ct(i[u],c[u])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function en(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let c="",l=!0;for(let u=0;u<i.length;u+=1){const f=i[u];f&&(c+=(l===!0?"":" ")+t(f),l=!1,r&&r[f]&&(c+=" "+r[f]))}n[o]=c}return n}const Kt=e=>e,tn=()=>{let e=Kt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kt}}},rn=tn(),nn={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 wt(e,t,r="Mui"){const n=nn[t];return n?`${r}-${n}`:`${rn.generate(e)}-${t}`}function on(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=wt(e,o,r)}),n}function sn(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function vr(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=vr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function an(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=vr(e))&&(n&&(n+=" "),n+=t);return n}function Me(e,t){return t?ce(e,t,{clone:!1}):e}const Ce=process.env.NODE_ENV!=="production"?D.oneOfType([D.number,D.string,D.object,D.array]):{};function Xt(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function cn(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ln(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
3
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ve(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function un(e){const t=(i,c)=>i.replace("@media",c?`@container ${c}`:"@container");function r(i,c){i.up=(...l)=>t(e.breakpoints.up(...l),c),i.down=(...l)=>t(e.breakpoints.down(...l),c),i.between=(...l)=>t(e.breakpoints.between(...l),c),i.only=(...l)=>t(e.breakpoints.only(...l),c),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),c);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Je={xs:0,sm:600,md:900,lg:1200,xl:1536},Jt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Je[e]}px)`},fn={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Je[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ge(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Jt;return t.reduce((c,l,u)=>(c[i.up(i.keys[u])]=r(t[u]),c),{})}if(typeof t=="object"){const i=n.breakpoints||Jt;return Object.keys(t).reduce((c,l)=>{if(cn(i.keys,l)){const u=ln(n.containerQueries?n:fn,l);u&&(c[u]=r(t[l],l))}else if(Object.keys(i.values||Je).includes(l)){const u=i.up(l);c[u]=r(t[l],l)}else{const u=l;c[u]=t[u]}return c},{})}return r(t)}function dn(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function Qt(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Qe(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ge(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qe(e,r)||n,t&&(o=t(o,n,e)),o}function re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=c=>{if(c[t]==null)return null;const l=c[t],u=c.theme,f=Qe(u,n)||{};return ge(c,l,m=>{let p=Ge(f,o,m);return m===p&&typeof m=="string"&&(p=Ge(f,o,`${t}${m==="default"?"":Te(m)}`,m)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ce}:{},i.filterProps=[t],i}function pn(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const mn={m:"margin",p:"padding"},hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gn=pn(e=>{if(e.length>2)if(Zt[e])e=Zt[e];else return[e];const[t,r]=e.split(""),n=mn[t],o=hn[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ze=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],et=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yn=[...Ze,...et];function De(e,t,r,n){const o=Qe(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const c=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(c)?c>o.length-1&&console.error([`MUI: The value provided (${c}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${c} > ${o.length-1}, you need to add the missing values.`].join(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("react/jsx-runtime"),T=require("react"),$=require("@mui/material"),sr=require("framer-motion"),Pn=require("@emotion/styled");require("@emotion/react");const Lt=require("@mui/icons-material"),Ge=require("oidc-client-ts");function Nn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ae=Nn(T);function Vr({apps:e,open:t,onClose:r,buttonRef:n,isLoading:o=!1,error:i=null,onRetry:s,excludeAppId:l}){const f=T.useRef(null),[u,h]=T.useState("64px"),d=()=>{const S=window.location.origin;return e.find(c=>c.url.startsWith(S))?.id},m=e.filter(S=>{if(l&&S.id===l)return!1;const c=d();return!(c&&S.id===c)});T.useLayoutEffect(()=>{if(t&&n?.current){const S=n.current.getBoundingClientRect();h(`${S.bottom+8}px`)}},[t,n]),T.useEffect(()=>{const S=c=>{f.current&&!f.current.contains(c.target)&&n?.current&&!n.current.contains(c.target)&&r()};return t&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[t,r,n]);const E=S=>{window.open(S,"_blank"),r()};return w.jsx(sr.AnimatePresence,{children:t&&w.jsx(sr.motion.div,{ref:f,initial:{opacity:0,scaleX:.6,scaleY:.6,y:-8},animate:{opacity:1,scaleX:1,scaleY:1,y:0},exit:{opacity:0,scaleX:.6,scaleY:.6,y:-8},transition:{duration:.18,ease:"easeOut"},style:{position:"absolute",top:u,right:"16px",zIndex:1e3,transformOrigin:"top right"},children:w.jsxs($.Box,{sx:{bgcolor:"#E8F0FE",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",p:2,width:"320px",minHeight:"100px"},onClick:S=>S.stopPropagation(),children:[o&&m.length===0&&w.jsx($.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px"},children:w.jsx($.CircularProgress,{size:32})}),i&&m.length===0&&w.jsxs($.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100px",gap:1},children:[w.jsx($.Typography,{sx:{fontSize:"0.875rem",color:"#ea4335",textAlign:"center"},children:"Failed to load apps"}),s&&w.jsx($.Link,{component:"button",onClick:s,sx:{fontSize:"0.875rem",color:"#1a73e8",cursor:"pointer",textDecoration:"underline"},children:"Retry"})]}),m.length>0&&w.jsx($.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:1},children:m.map(S=>w.jsxs($.Link,{onClick:()=>E(S.url),sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100px",p:1.5,borderRadius:"12px",cursor:"pointer",textDecoration:"none",transition:"background-color 200ms","&:hover":{bgcolor:"#f1f3f4"}},title:S.description,children:[w.jsx($.Box,{sx:{pb:1},children:S.iconUrl?w.jsx($.Box,{component:"img",src:S.iconUrl,alt:S.name,sx:{width:"32px",height:"32px",objectFit:"contain"}}):w.jsx($.Box,{sx:{width:"32px",height:"32px",borderRadius:"6px",bgcolor:S.color||"#4285f4",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem"},children:S.name.charAt(0)})}),w.jsx($.Typography,{sx:{fontSize:"0.75rem",fontWeight:500,color:"#202124",textAlign:"center",lineHeight:1.2},children:S.name})]},S.id))})]})})})}const xt="spry_apps_cache",Un=300*1e3,Dn=300*1e3;function Wr(e,t={}){const{refetchInterval:r=Un,cacheTime:n=Dn}=t,[o,i]=T.useState([]),[s,l]=T.useState(!0),[f,u]=T.useState(null),h=T.useRef(null),d=T.useRef(null),m=T.useCallback(()=>{try{const c=localStorage.getItem(xt);if(!c)return null;const v=JSON.parse(c);return Date.now()-v.timestamp<n?v.apps:(localStorage.removeItem(xt),null)}catch(c){return console.error("Error loading from cache:",c),null}},[n]),E=T.useCallback(c=>{try{const v={apps:c,timestamp:Date.now()};localStorage.setItem(xt,JSON.stringify(v))}catch(v){console.error("Error saving to cache:",v)}},[]),S=T.useCallback(async()=>{d.current&&d.current.abort(),d.current=new AbortController;try{l(!0),u(null);const c=await fetch(`${e}/api/apps`,{signal:d.current.signal,headers:{Accept:"application/json"}});if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);const v=await c.json();i(v.apps),E(v.apps),u(null)}catch(c){if(c instanceof Error&&c.name==="AbortError")return;const v=c instanceof Error?c.message:"Failed to fetch apps";u(v),console.error("Error fetching apps:",c);const C=m();C&&i(C)}finally{l(!1)}},[e,m,E]);return T.useEffect(()=>{const c=m();return c&&(i(c),l(!1)),S(),r>0&&(h.current=window.setInterval(()=>{S()},r)),()=>{h.current&&window.clearInterval(h.current),d.current&&d.current.abort()}},[e,r,n]),{apps:o,isLoading:s,error:f,refetch:S}}function Mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qe={exports:{}},H={};var ar;function jn(){if(ar)return H;ar=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function S(c){if(typeof c=="object"&&c!==null){var v=c.$$typeof;switch(v){case e:switch(c=c.type,c){case r:case o:case n:case f:case u:case m:return c;default:switch(c=c&&c.$$typeof,c){case s:case l:case d:case h:return c;case i:return c;default:return v}}case t:return v}}}return H.ContextConsumer=i,H.ContextProvider=s,H.Element=e,H.ForwardRef=l,H.Fragment=r,H.Lazy=d,H.Memo=h,H.Portal=t,H.Profiler=o,H.StrictMode=n,H.Suspense=f,H.SuspenseList=u,H.isContextConsumer=function(c){return S(c)===i},H.isContextProvider=function(c){return S(c)===s},H.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},H.isForwardRef=function(c){return S(c)===l},H.isFragment=function(c){return S(c)===r},H.isLazy=function(c){return S(c)===d},H.isMemo=function(c){return S(c)===h},H.isPortal=function(c){return S(c)===t},H.isProfiler=function(c){return S(c)===o},H.isStrictMode=function(c){return S(c)===n},H.isSuspense=function(c){return S(c)===f},H.isSuspenseList=function(c){return S(c)===u},H.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===o||c===n||c===f||c===u||typeof c=="object"&&c!==null&&(c.$$typeof===d||c.$$typeof===h||c.$$typeof===s||c.$$typeof===i||c.$$typeof===l||c.$$typeof===E||c.getModuleId!==void 0)},H.typeOf=S,H}var J={};var cr;function Ln(){return cr||(cr=1,process.env.NODE_ENV!=="production"&&(function(){function e(c){if(typeof c=="object"&&c!==null){var v=c.$$typeof;switch(v){case t:switch(c=c.type,c){case n:case i:case o:case u:case h:case E:return c;default:switch(c=c&&c.$$typeof,c){case l:case f:case m:case d:return c;case s:return c;default:return v}}case r:return v}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");J.ContextConsumer=s,J.ContextProvider=l,J.Element=t,J.ForwardRef=f,J.Fragment=n,J.Lazy=m,J.Memo=d,J.Portal=r,J.Profiler=i,J.StrictMode=o,J.Suspense=u,J.SuspenseList=h,J.isContextConsumer=function(c){return e(c)===s},J.isContextProvider=function(c){return e(c)===l},J.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===t},J.isForwardRef=function(c){return e(c)===f},J.isFragment=function(c){return e(c)===n},J.isLazy=function(c){return e(c)===m},J.isMemo=function(c){return e(c)===d},J.isPortal=function(c){return e(c)===r},J.isProfiler=function(c){return e(c)===i},J.isStrictMode=function(c){return e(c)===o},J.isSuspense=function(c){return e(c)===u},J.isSuspenseList=function(c){return e(c)===h},J.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===n||c===i||c===o||c===u||c===h||typeof c=="object"&&c!==null&&(c.$$typeof===m||c.$$typeof===d||c.$$typeof===l||c.$$typeof===s||c.$$typeof===f||c.$$typeof===S||c.getModuleId!==void 0)},J.typeOf=e})()),J}var lr;function Bn(){return lr||(lr=1,process.env.NODE_ENV==="production"?Qe.exports=jn():Qe.exports=Ln()),Qe.exports}var st=Bn();function be(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 Gr(e){if(Ae.isValidElement(e)||st.isValidElementType(e)||!be(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Gr(e[r])}),t}function ue(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return be(e)&&be(t)&&Object.keys(t).forEach(o=>{Ae.isValidElement(t[o])||st.isValidElementType(t[o])?n[o]=t[o]:be(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&be(e[o])?n[o]=ue(e[o],t[o],r):r.clone?n[o]=be(t[o])?Gr(t[o]):t[o]:n[o]=t[o]}),n}var Ze={exports:{}},et={exports:{}},Y={};var ur;function Fn(){if(ur)return Y;ur=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,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(p){if(typeof p=="object"&&p!==null){var R=p.$$typeof;switch(R){case t:switch(p=p.type,p){case f:case u:case n:case i:case o:case d:return p;default:switch(p=p&&p.$$typeof,p){case l:case h:case S:case E:case s:return p;default:return R}}case r:return R}}}function g(p){return y(p)===u}return Y.AsyncMode=f,Y.ConcurrentMode=u,Y.ContextConsumer=l,Y.ContextProvider=s,Y.Element=t,Y.ForwardRef=h,Y.Fragment=n,Y.Lazy=S,Y.Memo=E,Y.Portal=r,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=d,Y.isAsyncMode=function(p){return g(p)||y(p)===f},Y.isConcurrentMode=g,Y.isContextConsumer=function(p){return y(p)===l},Y.isContextProvider=function(p){return y(p)===s},Y.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Y.isForwardRef=function(p){return y(p)===h},Y.isFragment=function(p){return y(p)===n},Y.isLazy=function(p){return y(p)===S},Y.isMemo=function(p){return y(p)===E},Y.isPortal=function(p){return y(p)===r},Y.isProfiler=function(p){return y(p)===i},Y.isStrictMode=function(p){return y(p)===o},Y.isSuspense=function(p){return y(p)===d},Y.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===u||p===i||p===o||p===d||p===m||typeof p=="object"&&p!==null&&(p.$$typeof===S||p.$$typeof===E||p.$$typeof===s||p.$$typeof===l||p.$$typeof===h||p.$$typeof===v||p.$$typeof===C||p.$$typeof===x||p.$$typeof===c)},Y.typeOf=y,Y}var K={};var fr;function zn(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&(function(){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,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(_){return typeof _=="string"||typeof _=="function"||_===n||_===u||_===i||_===o||_===d||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===E||_.$$typeof===s||_.$$typeof===l||_.$$typeof===h||_.$$typeof===v||_.$$typeof===C||_.$$typeof===x||_.$$typeof===c)}function g(_){if(typeof _=="object"&&_!==null){var he=_.$$typeof;switch(he){case t:var Xe=_.type;switch(Xe){case f:case u:case n:case i:case o:case d:return Xe;default:var ir=Xe&&Xe.$$typeof;switch(ir){case l:case h:case S:case E:case s:return ir;default:return he}}case r:return he}}}var p=f,R=u,U=l,V=s,k=t,a=h,I=n,G=S,W=E,se=r,oe=i,ae=o,ge=d,Je=!1;function Ct(_){return Je||(Je=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(_)||g(_)===f}function A(_){return g(_)===u}function O(_){return g(_)===l}function j(_){return g(_)===s}function D(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function P(_){return g(_)===h}function L(_){return g(_)===n}function N(_){return g(_)===S}function M(_){return g(_)===E}function B(_){return g(_)===r}function q(_){return g(_)===i}function F(_){return g(_)===o}function ie(_){return g(_)===d}K.AsyncMode=p,K.ConcurrentMode=R,K.ContextConsumer=U,K.ContextProvider=V,K.Element=k,K.ForwardRef=a,K.Fragment=I,K.Lazy=G,K.Memo=W,K.Portal=se,K.Profiler=oe,K.StrictMode=ae,K.Suspense=ge,K.isAsyncMode=Ct,K.isConcurrentMode=A,K.isContextConsumer=O,K.isContextProvider=j,K.isElement=D,K.isForwardRef=P,K.isFragment=L,K.isLazy=N,K.isMemo=M,K.isPortal=B,K.isProfiler=q,K.isStrictMode=F,K.isSuspense=ie,K.isValidElementType=y,K.typeOf=g})()),K}var dr;function Yr(){return dr||(dr=1,process.env.NODE_ENV==="production"?et.exports=Fn():et.exports=zn()),et.exports}var Tt,pr;function Vn(){if(pr)return Tt;pr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var f=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(f.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(h){u[h]=h}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tt=o()?Object.assign:function(i,s){for(var l,f=n(i),u,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var d in l)t.call(l,d)&&(f[d]=l[d]);if(e){u=e(l);for(var m=0;m<u.length;m++)r.call(l,u[m])&&(f[u[m]]=l[u[m]])}}return f},Tt}var _t,mr;function Yt(){if(mr)return _t;mr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _t=e,_t}var Rt,gr;function Kr(){return gr||(gr=1,Rt=Function.call.bind(Object.prototype.hasOwnProperty)),Rt}var Ot,hr;function Wn(){if(hr)return Ot;hr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yt(),r={},n=Kr();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,f,u){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var d;try{if(typeof i[h]!="function"){var m=Error((f||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=i[h](s,h,f,l,null,t)}catch(S){d=S}if(d&&!(d instanceof Error)&&e((f||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var E=u?u():"";e("Failed "+l+" type: "+d.message+(E??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ot=o,Ot}var It,yr;function Gn(){if(yr)return It;yr=1;var e=Yr(),t=Vn(),r=Yt(),n=Kr(),o=Wn(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var f="Warning: "+l;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return It=function(l,f){var u=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(A){var O=A&&(u&&A[u]||A[h]);if(typeof O=="function")return O}var m="<<anonymous>>",E={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:x(),arrayOf:y,element:g(),elementType:p(),instanceOf:R,node:a(),objectOf:V,oneOf:U,oneOfType:k,shape:G,exact:W};function S(A,O){return A===O?A!==0||1/A===1/O:A!==A&&O!==O}function c(A,O){this.message=A,this.data=O&&typeof O=="object"?O:{},this.stack=""}c.prototype=Error.prototype;function v(A){if(process.env.NODE_ENV!=="production")var O={},j=0;function D(L,N,M,B,q,F,ie){if(B=B||m,F=F||M,ie!==r){if(f){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=B+":"+M;!O[he]&&j<3&&(i("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+B+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[he]=!0,j++)}}return N[M]==null?L?N[M]===null?new c("The "+q+" `"+F+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new c("The "+q+" `"+F+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:A(N,M,B,q,F)}var P=D.bind(null,!1);return P.isRequired=D.bind(null,!0),P}function C(A){function O(j,D,P,L,N,M){var B=j[D],q=ae(B);if(q!==A){var F=ge(B);return new c("Invalid "+L+" `"+N+"` of type "+("`"+F+"` supplied to `"+P+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return v(O)}function x(){return v(s)}function y(A){function O(j,D,P,L,N){if(typeof A!="function")return new c("Property `"+N+"` of component `"+P+"` has invalid PropType notation inside arrayOf.");var M=j[D];if(!Array.isArray(M)){var B=ae(M);return new c("Invalid "+L+" `"+N+"` of type "+("`"+B+"` supplied to `"+P+"`, expected an array."))}for(var q=0;q<M.length;q++){var F=A(M,q,P,L,N+"["+q+"]",r);if(F instanceof Error)return F}return null}return v(O)}function g(){function A(O,j,D,P,L){var N=O[j];if(!l(N)){var M=ae(N);return new c("Invalid "+P+" `"+L+"` of type "+("`"+M+"` supplied to `"+D+"`, expected a single ReactElement."))}return null}return v(A)}function p(){function A(O,j,D,P,L){var N=O[j];if(!e.isValidElementType(N)){var M=ae(N);return new c("Invalid "+P+" `"+L+"` of type "+("`"+M+"` supplied to `"+D+"`, expected a single ReactElement type."))}return null}return v(A)}function R(A){function O(j,D,P,L,N){if(!(j[D]instanceof A)){var M=A.name||m,B=Ct(j[D]);return new c("Invalid "+L+" `"+N+"` of type "+("`"+B+"` supplied to `"+P+"`, expected ")+("instance of `"+M+"`."))}return null}return v(O)}function U(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function O(j,D,P,L,N){for(var M=j[D],B=0;B<A.length;B++)if(S(M,A[B]))return null;var q=JSON.stringify(A,function(ie,_){var he=ge(_);return he==="symbol"?String(_):_});return new c("Invalid "+L+" `"+N+"` of value `"+String(M)+"` "+("supplied to `"+P+"`, expected one of "+q+"."))}return v(O)}function V(A){function O(j,D,P,L,N){if(typeof A!="function")return new c("Property `"+N+"` of component `"+P+"` has invalid PropType notation inside objectOf.");var M=j[D],B=ae(M);if(B!=="object")return new c("Invalid "+L+" `"+N+"` of type "+("`"+B+"` supplied to `"+P+"`, expected an object."));for(var q in M)if(n(M,q)){var F=A(M,q,P,L,N+"."+q,r);if(F instanceof Error)return F}return null}return v(O)}function k(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var O=0;O<A.length;O++){var j=A[O];if(typeof j!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Je(j)+" at index "+O+"."),s}function D(P,L,N,M,B){for(var q=[],F=0;F<A.length;F++){var ie=A[F],_=ie(P,L,N,M,B,r);if(_==null)return null;_.data&&n(_.data,"expectedType")&&q.push(_.data.expectedType)}var he=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new c("Invalid "+M+" `"+B+"` supplied to "+("`"+N+"`"+he+"."))}return v(D)}function a(){function A(O,j,D,P,L){return se(O[j])?null:new c("Invalid "+P+" `"+L+"` supplied to "+("`"+D+"`, expected a ReactNode."))}return v(A)}function I(A,O,j,D,P){return new c((A||"React class")+": "+O+" type `"+j+"."+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+P+"`.")}function G(A){function O(j,D,P,L,N){var M=j[D],B=ae(M);if(B!=="object")return new c("Invalid "+L+" `"+N+"` of type `"+B+"` "+("supplied to `"+P+"`, expected `object`."));for(var q in A){var F=A[q];if(typeof F!="function")return I(P,L,N,q,ge(F));var ie=F(M,q,P,L,N+"."+q,r);if(ie)return ie}return null}return v(O)}function W(A){function O(j,D,P,L,N){var M=j[D],B=ae(M);if(B!=="object")return new c("Invalid "+L+" `"+N+"` of type `"+B+"` "+("supplied to `"+P+"`, expected `object`."));var q=t({},j[D],A);for(var F in q){var ie=A[F];if(n(A,F)&&typeof ie!="function")return I(P,L,N,F,ge(ie));if(!ie)return new c("Invalid "+L+" `"+N+"` key `"+F+"` supplied to `"+P+"`.\nBad object: "+JSON.stringify(j[D],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var _=ie(M,F,P,L,N+"."+F,r);if(_)return _}return null}return v(O)}function se(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(se);if(A===null||l(A))return!0;var O=d(A);if(O){var j=O.call(A),D;if(O!==A.entries){for(;!(D=j.next()).done;)if(!se(D.value))return!1}else for(;!(D=j.next()).done;){var P=D.value;if(P&&!se(P[1]))return!1}}else return!1;return!0;default:return!1}}function oe(A,O){return A==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function ae(A){var O=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":oe(O,A)?"symbol":O}function ge(A){if(typeof A>"u"||A===null)return""+A;var O=ae(A);if(O==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return O}function Je(A){var O=ge(A);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function Ct(A){return!A.constructor||!A.constructor.name?m:A.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},It}var $t,Sr;function Yn(){if(Sr)return $t;Sr=1;var e=Yt();function t(){}function r(){}return r.resetWarningCache=t,$t=function(){function n(s,l,f,u,h,d){if(d!==e){var m=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 m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var i={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 i.PropTypes=i,i},$t}var br;function Kn(){if(br)return Ze.exports;if(br=1,process.env.NODE_ENV!=="production"){var e=Yr(),t=!0;Ze.exports=Gn()(e.isElement,t)}else Ze.exports=Yn()();return Ze.exports}var qn=Kn();const z=Mn(qn);function Ce(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function qr(e,t=""){return e.displayName||e.name||t}function vr(e,t,r){const n=qr(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Hn(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qr(e,"Component");if(typeof e=="object")switch(e.$$typeof){case st.ForwardRef:return vr(e,e.render,"ForwardRef");case st.Memo:return vr(e,e.type,"memo");default:return}}}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ce(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bt(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)r[o]=i||{};else if(!i)r[o]=s;else{r[o]={...s};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const f=l;r[o][f]=Bt(i[f],s[f])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function Jn(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let s="",l=!0;for(let f=0;f<i.length;f+=1){const u=i[f];u&&(s+=(l===!0?"":" ")+t(u),l=!1,r&&r[u]&&(s+=" "+r[u]))}n[o]=s}return n}const Er=e=>e,Xn=()=>{let e=Er;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Er}}},Qn=Xn(),Zn={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 Kt(e,t,r="Mui"){const n=Zn[t];return n?`${r}-${n}`:`${Qn.generate(e)}-${t}`}function eo(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Kt(e,o,r)}),n}function to(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Hr(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=Hr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ro(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Hr(e))&&(n&&(n+=" "),n+=t);return n}function We(e,t){return t?ue(e,t,{clone:!1}):e}const Te=process.env.NODE_ENV!=="production"?z.oneOfType([z.number,z.string,z.object,z.array]):{};function wr(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function no(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function oo(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
3
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ce(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function io(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function r(i,s){i.up=(...l)=>t(e.breakpoints.up(...l),s),i.down=(...l)=>t(e.breakpoints.down(...l),s),i.between=(...l)=>t(e.breakpoints.between(...l),s),i.only=(...l)=>t(e.breakpoints.only(...l),s),i.not=(...l)=>{const f=t(e.breakpoints.not(...l),s);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const ut={xs:0,sm:600,md:900,lg:1200,xl:1536},Ar={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ut[e]}px)`},so={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:ut[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ee(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Ar;return t.reduce((s,l,f)=>(s[i.up(i.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Ar;return Object.keys(t).reduce((s,l)=>{if(no(i.keys,l)){const f=oo(n.containerQueries?n:so,l);f&&(s[f]=r(t[l],l))}else if(Object.keys(i.values||ut).includes(l)){const f=i.up(l);s[f]=r(t[l],l)}else{const f=l;s[f]=t[f]}return s},{})}return r(t)}function ao(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function Cr(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function ft(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function at(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=ft(e,r)||n,t&&(o=t(o,n,e)),o}function re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],f=s.theme,u=ft(f,n)||{};return Ee(s,l,d=>{let m=at(u,o,d);return d===m&&typeof d=="string"&&(m=at(u,o,`${t}${d==="default"?"":Oe(d)}`,d)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Te}:{},i.filterProps=[t],i}function co(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const lo={m:"margin",p:"padding"},uo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fo=co(e=>{if(e.length>2)if(xr[e])e=xr[e];else return[e];const[t,r]=e.split(""),n=lo[t],o=uo[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),dt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],po=[...dt,...pt];function Ke(e,t,r,n){const o=ft(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
4
4
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
5
- `)));const l=o[c];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
6
- `)),()=>{})}function At(e){return De(e,"spacing",8,"spacing")}function Be(e,t){return typeof t=="string"||t==null?t:e(t)}function bn(e,t){return r=>e.reduce((n,o)=>(n[o]=Be(t,r),n),{})}function vn(e,t,r,n){if(!t.includes(r))return null;const o=gn(r),i=bn(o,n),c=e[r];return ge(e,c,i)}function Sr(e,t){const r=At(e.theme);return Object.keys(e).map(n=>vn(e,t,n,r)).reduce(Me,{})}function ee(e){return Sr(e,Ze)}ee.propTypes=process.env.NODE_ENV!=="production"?Ze.reduce((e,t)=>(e[t]=Ce,e),{}):{};ee.filterProps=Ze;function te(e){return Sr(e,et)}te.propTypes=process.env.NODE_ENV!=="production"?et.reduce((e,t)=>(e[t]=Ce,e),{}):{};te.filterProps=et;process.env.NODE_ENV!=="production"&&yn.reduce((e,t)=>(e[t]=Ce,e),{});function tt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Me(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function le(e){return typeof e!="number"?e:`${e}px solid`}function ue(e,t){return re({prop:e,themeKey:"borders",transform:t})}const Sn=ue("border",le),Cn=ue("borderTop",le),En=ue("borderRight",le),xn=ue("borderBottom",le),Tn=ue("borderLeft",le),wn=ue("borderColor"),An=ue("borderTopColor"),$n=ue("borderRightColor"),On=ue("borderBottomColor"),_n=ue("borderLeftColor"),Rn=ue("outline",le),Pn=ue("outlineColor"),rt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=De(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Be(t,n)});return ge(e,e.borderRadius,r)}return null};rt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ce}:{};rt.filterProps=["borderRadius"];tt(Sn,Cn,En,xn,Tn,wn,An,$n,On,_n,rt,Rn,Pn);const nt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=De(e.theme,"spacing",8,"gap"),r=n=>({gap:Be(t,n)});return ge(e,e.gap,r)}return null};nt.propTypes=process.env.NODE_ENV!=="production"?{gap:Ce}:{};nt.filterProps=["gap"];const ot=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=De(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Be(t,n)});return ge(e,e.columnGap,r)}return null};ot.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ce}:{};ot.filterProps=["columnGap"];const it=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=De(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Be(t,n)});return ge(e,e.rowGap,r)}return null};it.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ce}:{};it.filterProps=["rowGap"];const In=re({prop:"gridColumn"}),kn=re({prop:"gridRow"}),Nn=re({prop:"gridAutoFlow"}),Mn=re({prop:"gridAutoColumns"}),jn=re({prop:"gridAutoRows"}),Dn=re({prop:"gridTemplateColumns"}),Bn=re({prop:"gridTemplateRows"}),Ln=re({prop:"gridTemplateAreas"}),Fn=re({prop:"gridArea"});tt(nt,ot,it,In,kn,Nn,Mn,jn,Dn,Bn,Ln,Fn);function Re(e,t){return t==="grey"?t:e}const Vn=re({prop:"color",themeKey:"palette",transform:Re}),zn=re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Re}),Wn=re({prop:"backgroundColor",themeKey:"palette",transform:Re});tt(Vn,zn,Wn);function ae(e){return e<=1&&e!==0?`${e*100}%`:e}const Un=re({prop:"width",transform:ae}),$t=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Je[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ae(r)}};return ge(e,e.maxWidth,t)}return null};$t.filterProps=["maxWidth"];const Yn=re({prop:"minWidth",transform:ae}),qn=re({prop:"height",transform:ae}),Hn=re({prop:"maxHeight",transform:ae}),Gn=re({prop:"minHeight",transform:ae});re({prop:"size",cssProperty:"width",transform:ae});re({prop:"size",cssProperty:"height",transform:ae});const Kn=re({prop:"boxSizing"});tt(Un,$t,Yn,qn,Hn,Gn,Kn);const st={border:{themeKey:"borders",transform:le},borderTop:{themeKey:"borders",transform:le},borderRight:{themeKey:"borders",transform:le},borderBottom:{themeKey:"borders",transform:le},borderLeft:{themeKey:"borders",transform:le},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:le},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:rt},color:{themeKey:"palette",transform:Re},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Re},backgroundColor:{themeKey:"palette",transform:Re},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},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:nt},rowGap:{style:it},columnGap:{style:ot},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ae},maxWidth:{style:$t},minWidth:{transform:ae},height:{transform:ae},maxHeight:{transform:ae},minHeight:{transform:ae},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xn(...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 Jn(e,t){return typeof e=="function"?e(t):e}function Qn(){function e(r,n,o,i){const c={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:g,style:m}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const p=Qe(o,f)||{};return m?m(c):ge(c,n,h=>{let a=Ge(p,g,h);return h===a&&typeof h=="string"&&(a=Ge(p,g,`${r}${h==="default"?"":Te(h)}`,h)),u===!1?a:{[u]:a}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const c=o.unstable_sxConfig??st;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const g=dn(o.breakpoints),m=Object.keys(g);let p=g;return Object.keys(f).forEach(v=>{const h=Jn(f[v],o);if(h!=null)if(typeof h=="object")if(c[v])p=Me(p,e(v,h,o,c));else{const a=ge({theme:o},h,S=>({[v]:S}));Xn(a,h)?p[v]=t({sx:h,theme:o,nested:!0}):p=Me(p,a)}else p=Me(p,e(v,h,o,c))}),!i&&o.modularCssLayers?{"@layer sx":Xt(o,Qt(m,p))}:Xt(o,Qt(m,p))}return Array.isArray(n)?n.map(l):l(n)}return t}const Pe=Qn();Pe.filterProps=["sx"];function Zn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function to(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ro=/[A-Z]|^ms/g,no=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cr=function(t){return t.charCodeAt(1)===45},er=function(t){return t!=null&&typeof t!="boolean"},gt=to(function(e){return Cr(e)?e:e.replace(ro,"-$&").toLowerCase()}),tr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(no,function(n,o,i){return ye={name:o,styles:i,next:ye},o})}return eo[t]!==1&&!Cr(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ke(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ye={name:o.name,styles:o.styles,next:ye},o.name;var i=r;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)ye={name:c.name,styles:c.styles,next:ye},c=c.next;var l=i.styles+";";return l}return oo(e,t,r)}}var u=r;return u}function oo(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ke(e,t,r[o])+";";else for(var i in r){var c=r[i];if(typeof c!="object"){var l=c;er(l)&&(n+=gt(i)+":"+tr(i,l)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&t==null)for(var u=0;u<c.length;u++)er(c[u])&&(n+=gt(i)+":"+tr(i,c[u])+";");else{var f=Ke(e,t,c);switch(i){case"animation":case"animationName":{n+=gt(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var rr=/label:\s*([^\s;{]+)\s*(;|$)/g,ye;function io(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ye=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Ke(r,t,i);else{var c=i;o+=c[0]}for(var l=1;l<e.length;l++)if(o+=Ke(r,t,e[l]),n){var u=i;o+=u[l]}rr.lastIndex=0;for(var f="",g;(g=rr.exec(o))!==null;)f+="-"+g[1];var m=Zn(o)+f;return{name:m,styles:o,next:ye}}function so(e,t){const r=Dr(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
7
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function ao(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const nr=[];function xe(e){return nr[0]=e,io(nr)}const co=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)=>({...r,[n.key]:n.val}),{})};function lo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=co(t),c=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function f(p,v){const h=c.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(h!==-1&&typeof t[c[h]]=="number"?t[c[h]]:v)-n/100}${r})`}function g(p){return c.indexOf(p)+1<c.length?f(p,c[c.indexOf(p)+1]):l(p)}function m(p){const v=c.indexOf(p);return v===0?l(c[1]):v===c.length-1?u(c[v]):f(p,c[c.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:c,values:i,up:l,down:u,between:f,only:g,not:m,unit:r,...o}}const uo={borderRadius:4};function Er(e=8,t=At({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const c=t(i);return typeof c=="number"?`${c}px`:c}).join(" "));return r.mui=!0,r}function fo(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function xr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...c}=e,l=lo(r),u=Er(o);let f=ce({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...uo,...i}},c);return f=un(f),f.applyStyles=fo,f=t.reduce((g,m)=>ce(g,m),f),f.unstable_sxConfig={...st,...c?.unstable_sxConfig},f.unstable_sx=function(m){return Pe({sx:m,theme:this})},f}function Tr(e){const{variants:t,...r}=e,n={variants:t,style:xe(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=xe(o.style))}),n}const po=xr();function yt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ee(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function mo(e){return e?(t,r)=>r[e]:null}function ho(e,t,r){e.theme=vo(e.theme)?r:e.theme[t]||e.theme}function qe(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>qe(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Ee(n.style,r):n.style;else{const{variants:i,...c}=n;o=r?Ee(xe(c),r):c}return wr(e,n.variants,[o],r)}return n?.isProcessed?r?Ee(xe(n.style),r):n.style:r?Ee(xe(n),r):n}function wr(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const c=t[i];if(typeof c.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(o))continue}else for(const l in c.props)if(e[l]!==c.props[l]&&e.ownerState?.[l]!==c.props[l])continue e;typeof c.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Ee(xe(c.style(o)),n):c.style(o))):r.push(n?Ee(xe(c.style),n):c.style)}return r}function go(e={}){const{themeId:t,defaultTheme:r=po,rootShouldForwardProp:n=yt,slotShouldForwardProp:o=yt}=e;function i(l){ho(l,t,r)}return(l,u={})=>{ao(l,U=>U.filter(Z=>Z!==Pe));const{name:f,slot:g,skipVariantsResolver:m,skipSx:p,overridesResolver:v=mo(Ar(g)),...h}=u,a=f&&f.startsWith("Mui")||g?"components":"custom",S=m!==void 0?m:g&&g!=="Root"&&g!=="root"||!1,E=p||!1;let k=yt;g==="Root"||g==="root"?k=n:g?k=o:So(l)&&(k=void 0);const T=so(l,{shouldForwardProp:k,label:bo(f,g),...h}),w=U=>{if(U.__emotion_real===U)return U;if(typeof U=="function")return function(Q){return qe(Q,U,Q.theme.modularCssLayers?a:void 0)};if(he(U)){const Z=Tr(U);return function(L){return Z.variants?qe(L,Z,L.theme.modularCssLayers?a:void 0):L.theme.modularCssLayers?Ee(Z.style,a):Z.style}}return U},y=(...U)=>{const Z=[],Q=U.map(w),L=[];if(Z.push(i),f&&v&&L.push(function(B){const ne=B.theme.components?.[f]?.styleOverrides;if(!ne)return null;const se={};for(const fe in ne)se[fe]=qe(B,ne[fe],B.theme.modularCssLayers?"theme":void 0);return v(B,se)}),f&&!S&&L.push(function(B){const ne=B.theme?.components?.[f]?.variants;return ne?wr(B,ne,[],B.theme.modularCssLayers?"theme":void 0):null}),E||L.push(Pe),Array.isArray(Q[0])){const F=Q.shift(),B=new Array(Z.length).fill(""),ie=new Array(L.length).fill("");let ne;ne=[...B,...F,...ie],ne.raw=[...B,...F.raw,...ie],Z.unshift(ne)}const s=[...Z,...Q,...L],A=T(...s);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=yo(f,g,l)),A};return T.withConfig&&(y.withConfig=T.withConfig),y}}function yo(e,t,r){return e?`${e}${Te(t||"")}`:`Styled(${Zr(r)})`}function bo(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Ar(t||"Root")}`),r}function vo(e){for(const t in e)return!1;return!0}function So(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ar(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ot(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),sn(e,t,r)}function Co(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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 Se(e){if(e.type)return e;if(e.charAt(0)==="#")return Se(Co(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
8
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ve(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"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
9
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ve(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Eo=e=>{const t=Se(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ke=(e,t)=>{try{return Eo(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function at(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function $r(e){e=Se(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),c=(f,g=(f+r/30)%12)=>o-i*Math.max(Math.min(g-3,9-g,1),-1);let l="rgb";const u=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),at({type:l,values:u})}function Et(e){e=Se(e);let t=e.type==="hsl"||e.type==="hsla"?Se($r(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 or(e,t){const r=Et(e),n=Et(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function xo(e,t){return e=Se(e),t=Ot(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,at(e)}function Ue(e,t,r){try{return xo(e,t)}catch{return e}}function _t(e,t){if(e=Se(e),t=Ot(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return at(e)}function G(e,t,r){try{return _t(e,t)}catch{return e}}function Rt(e,t){if(e=Se(e),t=Ot(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return at(e)}function K(e,t,r){try{return Rt(e,t)}catch{return e}}function To(e,t=.15){return Et(e)>.5?_t(e,t):Rt(e,t)}function Ye(e,t,r){try{return To(e,t)}catch{return e}}const wo=be.createContext(void 0);process.env.NODE_ENV!=="production"&&(D.node,D.object);function Ao(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ct(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ct(o,n):n}function $o({props:e,name:t}){const r=be.useContext(wo);return Ao({props:e,name:t,theme:{components:r}})}const ir={theme:void 0};function Oo(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(ir.theme=o.theme,i=Tr(e(ir)),t=i,r=o.theme),i}}function _o(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const sr=(e,t,r,n=[])=>{let o=e;t.forEach((i,c)=>{c===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Ro=(e,t,r)=>{function n(o,i=[],c=[]){Object.entries(o).forEach(([l,u])=>{(!r||r&&!r([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...i,l],Array.isArray(u)?[...c,l]:c):t([...i,l],u,c))})}n(e)},Po=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function bt(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},c={};return Ro(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const g=`--${r?`${r}-`:""}${l.join("-")}`,m=Po(l,u);Object.assign(o,{[g]:m}),sr(i,l,`var(${g})`,f),sr(c,l,`var(${g}, ${m})`,f)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:c}}function Io(e,t={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:i={},components:c,defaultColorScheme:l="light",...u}=e,{vars:f,css:g,varsWithDefaults:m}=bt(u,t);let p=m;const v={},{[l]:h,...a}=i;if(Object.entries(a||{}).forEach(([T,w])=>{const{vars:y,css:U,varsWithDefaults:Z}=bt(w,t);p=ce(p,Z),v[T]={css:U,vars:y}}),h){const{css:T,vars:w,varsWithDefaults:y}=bt(h,t);p=ce(p,y),v[l]={css:T,vars:w}}function S(T,w){let y=o;if(o==="class"&&(y=".%s"),o==="data"&&(y="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(y=`[${o}="%s"]`),T){if(y==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${i[T]?.palette?.mode||T})`]:{":root":w}};if(y)return e.defaultColorScheme===T?`:root, ${y.replace("%s",String(T))}`:y.replace("%s",String(T))}return":root"}return{vars:p,generateThemeVars:()=>{let T={...f};return Object.entries(v).forEach(([,{vars:w}])=>{T=ce(T,w)}),T},generateStyleSheets:()=>{const T=[],w=e.defaultColorScheme||"light";function y(Q,L){Object.keys(L).length&&T.push(typeof Q=="string"?{[Q]:{...L}}:Q)}y(r(void 0,{...g}),g);const{[w]:U,...Z}=v;if(U){const{css:Q}=U,L=i[w]?.palette?.mode,s=!n&&L?{colorScheme:L,...Q}:{...Q};y(r(w,{...s}),s)}return Object.entries(Z).forEach(([Q,{css:L}])=>{const s=i[Q]?.palette?.mode,A=!n&&s?{colorScheme:s,...L}:{...L};y(r(Q,{...A}),A)}),T}}}function ko(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const je={black:"#000",white:"#fff"},No={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"},we={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ae={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ie={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},$e={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Oe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_e={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Or(){return{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:je.white,default:je.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}}}const Mo=Or();function _r(){return{text:{primary:je.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:je.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}}}const ar=_r();function cr(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Rt(e.main,o):t==="dark"&&(e.dark=_t(e.main,i)))}function jo(e="light"){return e==="dark"?{main:$e[200],light:$e[50],dark:$e[400]}:{main:$e[700],light:$e[400],dark:$e[800]}}function Do(e="light"){return e==="dark"?{main:we[200],light:we[50],dark:we[400]}:{main:we[500],light:we[300],dark:we[700]}}function Bo(e="light"){return e==="dark"?{main:Ae[500],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[400],dark:Ae[800]}}function Lo(e="light"){return e==="dark"?{main:Oe[400],light:Oe[300],dark:Oe[700]}:{main:Oe[700],light:Oe[500],dark:Oe[900]}}function Fo(e="light"){return e==="dark"?{main:_e[400],light:_e[300],dark:_e[700]}:{main:_e[800],light:_e[500],dark:_e[900]}}function Vo(e="light"){return e==="dark"?{main:Ie[400],light:Ie[300],dark:Ie[700]}:{main:"#ed6c02",light:Ie[500],dark:Ie[900]}}function Pt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||jo(t),c=e.secondary||Do(t),l=e.error||Bo(t),u=e.info||Lo(t),f=e.success||Fo(t),g=e.warning||Vo(t);function m(a){const S=or(a,ar.text.primary)>=r?ar.text.primary:Mo.text.primary;if(process.env.NODE_ENV!=="production"){const E=or(a,S);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${S} on ${a}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
10
- `))}return S}const p=({color:a,name:S,mainShade:E=500,lightShade:k=300,darkShade:T=700})=>{if(a={...a},!a.main&&a[E]&&(a.main=a[E]),!a.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
11
- The color object needs to have a \`main\` property or a \`${E}\` property.`:ve(11,S?` (${S})`:"",E));if(typeof a.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
12
- \`color.main\` should be a string, but \`${JSON.stringify(a.main)}\` was provided instead.
5
+ `)));const l=o[s];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
6
+ `)),()=>{})}function qt(e){return Ke(e,"spacing",8,"spacing")}function qe(e,t){return typeof t=="string"||t==null?t:e(t)}function mo(e,t){return r=>e.reduce((n,o)=>(n[o]=qe(t,r),n),{})}function go(e,t,r,n){if(!t.includes(r))return null;const o=fo(r),i=mo(o,n),s=e[r];return Ee(e,s,i)}function Jr(e,t){const r=qt(e.theme);return Object.keys(e).map(n=>go(e,t,n,r)).reduce(We,{})}function ee(e){return Jr(e,dt)}ee.propTypes=process.env.NODE_ENV!=="production"?dt.reduce((e,t)=>(e[t]=Te,e),{}):{};ee.filterProps=dt;function te(e){return Jr(e,pt)}te.propTypes=process.env.NODE_ENV!=="production"?pt.reduce((e,t)=>(e[t]=Te,e),{}):{};te.filterProps=pt;process.env.NODE_ENV!=="production"&&po.reduce((e,t)=>(e[t]=Te,e),{});function mt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?We(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function de(e){return typeof e!="number"?e:`${e}px solid`}function me(e,t){return re({prop:e,themeKey:"borders",transform:t})}const ho=me("border",de),yo=me("borderTop",de),So=me("borderRight",de),bo=me("borderBottom",de),vo=me("borderLeft",de),Eo=me("borderColor"),wo=me("borderTopColor"),Ao=me("borderRightColor"),Co=me("borderBottomColor"),xo=me("borderLeftColor"),To=me("outline",de),_o=me("outlineColor"),gt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ke(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:qe(t,n)});return Ee(e,e.borderRadius,r)}return null};gt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Te}:{};gt.filterProps=["borderRadius"];mt(ho,yo,So,bo,vo,Eo,wo,Ao,Co,xo,gt,To,_o);const ht=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ke(e.theme,"spacing",8,"gap"),r=n=>({gap:qe(t,n)});return Ee(e,e.gap,r)}return null};ht.propTypes=process.env.NODE_ENV!=="production"?{gap:Te}:{};ht.filterProps=["gap"];const yt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ke(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:qe(t,n)});return Ee(e,e.columnGap,r)}return null};yt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Te}:{};yt.filterProps=["columnGap"];const St=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ke(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:qe(t,n)});return Ee(e,e.rowGap,r)}return null};St.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Te}:{};St.filterProps=["rowGap"];const Ro=re({prop:"gridColumn"}),Oo=re({prop:"gridRow"}),Io=re({prop:"gridAutoFlow"}),$o=re({prop:"gridAutoColumns"}),ko=re({prop:"gridAutoRows"}),Po=re({prop:"gridTemplateColumns"}),No=re({prop:"gridTemplateRows"}),Uo=re({prop:"gridTemplateAreas"}),Do=re({prop:"gridArea"});mt(ht,yt,St,Ro,Oo,Io,$o,ko,Po,No,Uo,Do);function je(e,t){return t==="grey"?t:e}const Mo=re({prop:"color",themeKey:"palette",transform:je}),jo=re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:je}),Lo=re({prop:"backgroundColor",themeKey:"palette",transform:je});mt(Mo,jo,Lo);function le(e){return e<=1&&e!==0?`${e*100}%`:e}const Bo=re({prop:"width",transform:le}),Ht=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||ut[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:le(r)}};return Ee(e,e.maxWidth,t)}return null};Ht.filterProps=["maxWidth"];const Fo=re({prop:"minWidth",transform:le}),zo=re({prop:"height",transform:le}),Vo=re({prop:"maxHeight",transform:le}),Wo=re({prop:"minHeight",transform:le});re({prop:"size",cssProperty:"width",transform:le});re({prop:"size",cssProperty:"height",transform:le});const Go=re({prop:"boxSizing"});mt(Bo,Ht,Fo,zo,Vo,Wo,Go);const bt={border:{themeKey:"borders",transform:de},borderTop:{themeKey:"borders",transform:de},borderRight:{themeKey:"borders",transform:de},borderBottom:{themeKey:"borders",transform:de},borderLeft:{themeKey:"borders",transform:de},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:de},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gt},color:{themeKey:"palette",transform:je},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:je},backgroundColor:{themeKey:"palette",transform:je},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},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:ht},rowGap:{style:St},columnGap:{style:yt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:le},maxWidth:{style:Ht},minWidth:{transform:le},height:{transform:le},maxHeight:{transform:le},minHeight:{transform:le},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yo(...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 Ko(e,t){return typeof e=="function"?e(t):e}function qo(){function e(r,n,o,i){const s={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:f=r,themeKey:u,transform:h,style:d}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const m=ft(o,u)||{};return d?d(s):Ee(s,n,S=>{let c=at(m,h,S);return S===c&&typeof S=="string"&&(c=at(m,h,`${r}${S==="default"?"":Oe(S)}`,S)),f===!1?c:{[f]:c}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??bt;function l(f){let u=f;if(typeof f=="function")u=f(o);else if(typeof f!="object")return f;if(!u)return null;const h=ao(o.breakpoints),d=Object.keys(h);let m=h;return Object.keys(u).forEach(E=>{const S=Ko(u[E],o);if(S!=null)if(typeof S=="object")if(s[E])m=We(m,e(E,S,o,s));else{const c=Ee({theme:o},S,v=>({[E]:v}));Yo(c,S)?m[E]=t({sx:S,theme:o,nested:!0}):m=We(m,c)}else m=We(m,e(E,S,o,s))}),!i&&o.modularCssLayers?{"@layer sx":wr(o,Cr(d,m))}:wr(o,Cr(d,m))}return Array.isArray(n)?n.map(l):l(n)}return t}const Le=qo();Le.filterProps=["sx"];function Ho(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Jo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Xo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qo=/[A-Z]|^ms/g,Zo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xr=function(t){return t.charCodeAt(1)===45},Tr=function(t){return t!=null&&typeof t!="boolean"},kt=Xo(function(e){return Xr(e)?e:e.replace(Qo,"-$&").toLowerCase()}),_r=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zo,function(n,o,i){return we={name:o,styles:i,next:we},o})}return Jo[t]!==1&&!Xr(t)&&typeof r=="number"&&r!==0?r+"px":r};function ct(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return we={name:o.name,styles:o.styles,next:we},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)we={name:s.name,styles:s.styles,next:we},s=s.next;var l=i.styles+";";return l}return ei(e,t,r)}}var f=r;return f}function ei(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ct(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var l=s;Tr(l)&&(n+=kt(i)+":"+_r(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var f=0;f<s.length;f++)Tr(s[f])&&(n+=kt(i)+":"+_r(i,s[f])+";");else{var u=ct(e,t,s);switch(i){case"animation":case"animationName":{n+=kt(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var Rr=/label:\s*([^\s;{]+)\s*(;|$)/g,we;function ti(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";we=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=ct(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=ct(r,t,e[l]),n){var f=i;o+=f[l]}Rr.lastIndex=0;for(var u="",h;(h=Rr.exec(o))!==null;)u+="-"+h[1];var d=Ho(o)+u;return{name:d,styles:o,next:we}}function ri(e,t){const r=Pn(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
7
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function ni(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Or=[];function Re(e){return Or[0]=e,ti(Or)}const oi=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)=>({...r,[n.key]:n.val}),{})};function ii(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=oi(t),s=Object.keys(i);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function f(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function u(m,E){const S=s.indexOf(E);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:E)-n/100}${r})`}function h(m){return s.indexOf(m)+1<s.length?u(m,s[s.indexOf(m)+1]):l(m)}function d(m){const E=s.indexOf(m);return E===0?l(s[1]):E===s.length-1?f(s[E]):u(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:f,between:u,only:h,not:d,unit:r,...o}}const si={borderRadius:4};function Qr(e=8,t=qt({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function ai(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Zr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...s}=e,l=ii(r),f=Qr(o);let u=ue({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:f,shape:{...si,...i}},s);return u=io(u),u.applyStyles=ai,u=t.reduce((h,d)=>ue(h,d),u),u.unstable_sxConfig={...bt,...s?.unstable_sxConfig},u.unstable_sx=function(d){return Le({sx:d,theme:this})},u}function en(e){const{variants:t,...r}=e,n={variants:t,style:Re(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Re(o.style))}),n}const ci=Zr();function Pt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _e(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function li(e){return e?(t,r)=>r[e]:null}function ui(e,t,r){e.theme=mi(e.theme)?r:e.theme[t]||e.theme}function nt(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>nt(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?_e(n.style,r):n.style;else{const{variants:i,...s}=n;o=r?_e(Re(s),r):s}return tn(e,n.variants,[o],r)}return n?.isProcessed?r?_e(Re(n.style),r):n.style:r?_e(Re(n),r):n}function tn(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?_e(Re(s.style(o)),n):s.style(o))):r.push(n?_e(Re(s.style),n):s.style)}return r}function fi(e={}){const{themeId:t,defaultTheme:r=ci,rootShouldForwardProp:n=Pt,slotShouldForwardProp:o=Pt}=e;function i(l){ui(l,t,r)}return(l,f={})=>{ni(l,R=>R.filter(U=>U!==Le));const{name:u,slot:h,skipVariantsResolver:d,skipSx:m,overridesResolver:E=li(rn(h)),...S}=f,c=u&&u.startsWith("Mui")||h?"components":"custom",v=d!==void 0?d:h&&h!=="Root"&&h!=="root"||!1,C=m||!1;let x=Pt;h==="Root"||h==="root"?x=n:h?x=o:gi(l)&&(x=void 0);const y=ri(l,{shouldForwardProp:x,label:pi(u,h),...S}),g=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(V){return nt(V,R,V.theme.modularCssLayers?c:void 0)};if(be(R)){const U=en(R);return function(k){return U.variants?nt(k,U,k.theme.modularCssLayers?c:void 0):k.theme.modularCssLayers?_e(U.style,c):U.style}}return R},p=(...R)=>{const U=[],V=R.map(g),k=[];if(U.push(i),u&&E&&k.push(function(W){const oe=W.theme.components?.[u]?.styleOverrides;if(!oe)return null;const ae={};for(const ge in oe)ae[ge]=nt(W,oe[ge],W.theme.modularCssLayers?"theme":void 0);return E(W,ae)}),u&&!v&&k.push(function(W){const oe=W.theme?.components?.[u]?.variants;return oe?tn(W,oe,[],W.theme.modularCssLayers?"theme":void 0):null}),C||k.push(Le),Array.isArray(V[0])){const G=V.shift(),W=new Array(U.length).fill(""),se=new Array(k.length).fill("");let oe;oe=[...W,...G,...se],oe.raw=[...W,...G.raw,...se],U.unshift(oe)}const a=[...U,...V,...k],I=y(...a);return l.muiName&&(I.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=di(u,h,l)),I};return y.withConfig&&(p.withConfig=y.withConfig),p}}function di(e,t,r){return e?`${e}${Oe(t||"")}`:`Styled(${Hn(r)})`}function pi(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${rn(t||"Root")}`),r}function mi(e){for(const t in e)return!1;return!0}function gi(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Jt(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),to(e,t,r)}function hi(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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 xe(e){if(e.type)return e;if(e.charAt(0)==="#")return xe(hi(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
8
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ce(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"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
9
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ce(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const yi=e=>{const t=xe(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ze=(e,t)=>{try{return yi(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function vt(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nn(e){e=xe(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(u,h=(u+r/30)%12)=>o-i*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const f=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",f.push(t[3])),vt({type:l,values:f})}function Ft(e){e=xe(e);let t=e.type==="hsl"||e.type==="hsla"?xe(nn(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 Ir(e,t){const r=Ft(e),n=Ft(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Si(e,t){return e=xe(e),t=Jt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vt(e)}function tt(e,t,r){try{return Si(e,t)}catch{return e}}function Xt(e,t){if(e=xe(e),t=Jt(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vt(e)}function X(e,t,r){try{return Xt(e,t)}catch{return e}}function Qt(e,t){if(e=xe(e),t=Jt(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vt(e)}function Q(e,t,r){try{return Qt(e,t)}catch{return e}}function bi(e,t=.15){return Ft(e)>.5?Xt(e,t):Qt(e,t)}function rt(e,t,r){try{return bi(e,t)}catch{return e}}const vi=Ae.createContext(void 0);process.env.NODE_ENV!=="production"&&(z.node,z.object);function Ei(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Bt(o.defaultProps,n):!o.styleOverrides&&!o.variants?Bt(o,n):n}function wi({props:e,name:t}){const r=Ae.useContext(vi);return Ei({props:e,name:t,theme:{components:r}})}const $r={theme:void 0};function Ai(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&($r.theme=o.theme,i=en(e($r)),t=i,r=o.theme),i}}function Ci(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const kr=(e,t,r,n=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},xi=(e,t,r)=>{function n(o,i=[],s=[]){Object.entries(o).forEach(([l,f])=>{(!r||r&&!r([...i,l]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?n(f,[...i,l],Array.isArray(f)?[...s,l]:s):t([...i,l],f,s))})}n(e)},Ti=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Nt(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},s={};return xi(e,(l,f,u)=>{if((typeof f=="string"||typeof f=="number")&&(!n||!n(l,f))){const h=`--${r?`${r}-`:""}${l.join("-")}`,d=Ti(l,f);Object.assign(o,{[h]:d}),kr(i,l,`var(${h})`,u),kr(s,l,`var(${h}, ${d})`,u)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function _i(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...f}=e,{vars:u,css:h,varsWithDefaults:d}=Nt(f,t);let m=d;const E={},{[l]:S,...c}=i;if(Object.entries(c||{}).forEach(([y,g])=>{const{vars:p,css:R,varsWithDefaults:U}=Nt(g,t);m=ue(m,U),E[y]={css:R,vars:p}}),S){const{css:y,vars:g,varsWithDefaults:p}=Nt(S,t);m=ue(m,p),E[l]={css:y,vars:g}}function v(y,g){let p=o;if(o==="class"&&(p=".%s"),o==="data"&&(p="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(p=`[${o}="%s"]`),y){if(p==="media")return e.defaultColorScheme===y?":root":{[`@media (prefers-color-scheme: ${i[y]?.palette?.mode||y})`]:{":root":g}};if(p)return e.defaultColorScheme===y?`:root, ${p.replace("%s",String(y))}`:p.replace("%s",String(y))}return":root"}return{vars:m,generateThemeVars:()=>{let y={...u};return Object.entries(E).forEach(([,{vars:g}])=>{y=ue(y,g)}),y},generateStyleSheets:()=>{const y=[],g=e.defaultColorScheme||"light";function p(V,k){Object.keys(k).length&&y.push(typeof V=="string"?{[V]:{...k}}:V)}p(r(void 0,{...h}),h);const{[g]:R,...U}=E;if(R){const{css:V}=R,k=i[g]?.palette?.mode,a=!n&&k?{colorScheme:k,...V}:{...V};p(r(g,{...a}),a)}return Object.entries(U).forEach(([V,{css:k}])=>{const a=i[V]?.palette?.mode,I=!n&&a?{colorScheme:a,...k}:{...k};p(r(V,{...I}),I)}),y}}}function Ri(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Ye={black:"#000",white:"#fff"},Oi={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"},$e={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ke={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fe={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Pe={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ne={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ue={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function on(){return{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:Ye.white,default:Ye.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}}}const Ii=on();function sn(){return{text:{primary:Ye.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:Ye.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}}}const Pr=sn();function Nr(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qt(e.main,o):t==="dark"&&(e.dark=Xt(e.main,i)))}function $i(e="light"){return e==="dark"?{main:Pe[200],light:Pe[50],dark:Pe[400]}:{main:Pe[700],light:Pe[400],dark:Pe[800]}}function ki(e="light"){return e==="dark"?{main:$e[200],light:$e[50],dark:$e[400]}:{main:$e[500],light:$e[300],dark:$e[700]}}function Pi(e="light"){return e==="dark"?{main:ke[500],light:ke[300],dark:ke[700]}:{main:ke[700],light:ke[400],dark:ke[800]}}function Ni(e="light"){return e==="dark"?{main:Ne[400],light:Ne[300],dark:Ne[700]}:{main:Ne[700],light:Ne[500],dark:Ne[900]}}function Ui(e="light"){return e==="dark"?{main:Ue[400],light:Ue[300],dark:Ue[700]}:{main:Ue[800],light:Ue[500],dark:Ue[900]}}function Di(e="light"){return e==="dark"?{main:Fe[400],light:Fe[300],dark:Fe[700]}:{main:"#ed6c02",light:Fe[500],dark:Fe[900]}}function Zt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||$i(t),s=e.secondary||ki(t),l=e.error||Pi(t),f=e.info||Ni(t),u=e.success||Ui(t),h=e.warning||Di(t);function d(c){const v=Ir(c,Pr.text.primary)>=r?Pr.text.primary:Ii.text.primary;if(process.env.NODE_ENV!=="production"){const C=Ir(c,v);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${v} on ${c}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
10
+ `))}return v}const m=({color:c,name:v,mainShade:C=500,lightShade:x=300,darkShade:y=700})=>{if(c={...c},!c.main&&c[C]&&(c.main=c[C]),!c.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
11
+ The color object needs to have a \`main\` property or a \`${C}\` property.`:Ce(11,v?` (${v})`:"",C));if(typeof c.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
12
+ \`color.main\` should be a string, but \`${JSON.stringify(c.main)}\` was provided instead.
13
13
 
14
14
  Did you intend to use one of the following approaches?
15
15
 
@@ -21,15 +21,15 @@ const theme1 = createTheme({ palette: {
21
21
 
22
22
  const theme2 = createTheme({ palette: {
23
23
  primary: { main: green[500] },
24
- } });`:ve(12,S?` (${S})`:"",JSON.stringify(a.main)));return cr(a,"light",k,n),cr(a,"dark",T,n),a.contrastText||(a.contrastText=m(a.main)),a};let v;return t==="light"?v=Or():t==="dark"&&(v=_r()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ce({common:{...je},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:g,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:f,name:"success"}),grey:No,contrastThreshold:r,getContrastText:m,augmentColor:p,tonalOffset:n,...v},o)}function zo(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Wo(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Uo(e){return Math.round(e*1e5)/1e5}const lr={textTransform:"uppercase"},ur='"Roboto", "Helvetica", "Arial", sans-serif';function Yo(e,t){const{fontFamily:r=ur,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:c=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:g,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,v=g||(S=>`${S/u*p}rem`),h=(S,E,k,T,w)=>({fontFamily:r,fontWeight:S,fontSize:v(E),lineHeight:k,...r===ur?{letterSpacing:`${Uo(T/E)}em`}:{},...w,...f}),a={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(c,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(c,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(c,14,1.75,.4,lr),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,lr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ce({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:c,fontWeightBold:l,...a},m,{clone:!1})}const qo=.2,Ho=.14,Go=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qo})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ho})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Go})`].join(",")}const Ko=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],Xo={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)"},Jo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fr(e){return`${Math.round(e)}ms`}function Qo(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Zo(e){const t={...Xo,...e.easing},r={...Jo,...e.duration};return{getAutoHeightDuration:Qo,create:(o=["all"],i={})=>{const{duration:c=r.standard,easing:l=t.easeInOut,delay:u=0,...f}=i;if(process.env.NODE_ENV!=="production"){const g=p=>typeof p=="string",m=p=>!Number.isNaN(parseFloat(p));!g(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(c)&&!g(c)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`),g(l)||console.error('MUI: Argument "easing" must be a string.'),!m(u)&&!g(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
25
- `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof c=="string"?c:fr(c)} ${l} ${typeof u=="string"?u:fr(u)}`).join(",")},...e,easing:t,duration:r}}const ei={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ti(e){return he(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rr(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[c,l]=o[i];!ti(l)||c.startsWith("unstable_")?delete n[c]:he(l)&&(n[c]={...l},r(n[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
24
+ } });`:Ce(12,v?` (${v})`:"",JSON.stringify(c.main)));return Nr(c,"light",x,n),Nr(c,"dark",y,n),c.contrastText||(c.contrastText=d(c.main)),c};let E;return t==="light"?E=on():t==="dark"&&(E=sn()),process.env.NODE_ENV!=="production"&&(E||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ue({common:{...Ye},mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:f,name:"info"}),success:m({color:u,name:"success"}),grey:Oi,contrastThreshold:r,getContrastText:d,augmentColor:m,tonalOffset:n,...E},o)}function Mi(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function ji(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Li(e){return Math.round(e*1e5)/1e5}const Ur={textTransform:"uppercase"},Dr='"Roboto", "Helvetica", "Arial", sans-serif';function Bi(e,t){const{fontFamily:r=Dr,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:f=16,allVariants:u,pxToRem:h,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=n/14,E=h||(v=>`${v/f*m}rem`),S=(v,C,x,y,g)=>({fontFamily:r,fontWeight:v,fontSize:E(C),lineHeight:x,...r===Dr?{letterSpacing:`${Li(y/C)}em`}:{},...g,...u}),c={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(i,48,1.167,0),h4:S(i,34,1.235,.25),h5:S(i,24,1.334,0),h6:S(s,20,1.6,.15),subtitle1:S(i,16,1.75,.15),subtitle2:S(s,14,1.57,.1),body1:S(i,16,1.5,.15),body2:S(i,14,1.43,.15),button:S(s,14,1.75,.4,Ur),caption:S(i,12,1.66,.4),overline:S(i,12,2.66,1,Ur),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ue({htmlFontSize:f,pxToRem:E,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...c},d,{clone:!1})}const Fi=.2,zi=.14,Vi=.12;function Z(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fi})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zi})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vi})`].join(",")}const Wi=["none",Z(0,2,1,-1,0,1,1,0,0,1,3,0),Z(0,3,1,-2,0,2,2,0,0,1,5,0),Z(0,3,3,-2,0,3,4,0,0,1,8,0),Z(0,2,4,-1,0,4,5,0,0,1,10,0),Z(0,3,5,-1,0,5,8,0,0,1,14,0),Z(0,3,5,-1,0,6,10,0,0,1,18,0),Z(0,4,5,-2,0,7,10,1,0,2,16,1),Z(0,5,5,-3,0,8,10,1,0,3,14,2),Z(0,5,6,-3,0,9,12,1,0,3,16,2),Z(0,6,6,-3,0,10,14,1,0,4,18,3),Z(0,6,7,-4,0,11,15,1,0,4,20,3),Z(0,7,8,-4,0,12,17,2,0,5,22,4),Z(0,7,8,-4,0,13,19,2,0,5,24,4),Z(0,7,9,-4,0,14,21,2,0,5,26,4),Z(0,8,9,-5,0,15,22,2,0,6,28,5),Z(0,8,10,-5,0,16,24,2,0,6,30,5),Z(0,8,11,-5,0,17,26,2,0,6,32,5),Z(0,9,11,-5,0,18,28,2,0,7,34,6),Z(0,9,12,-6,0,19,29,2,0,7,36,6),Z(0,10,13,-6,0,20,31,3,0,8,38,7),Z(0,10,13,-6,0,21,33,3,0,8,40,7),Z(0,10,14,-6,0,22,35,3,0,8,42,7),Z(0,11,14,-7,0,23,36,3,0,9,44,8),Z(0,11,15,-7,0,24,38,3,0,9,46,8)],Gi={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)"},Yi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mr(e){return`${Math.round(e)}ms`}function Ki(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function qi(e){const t={...Gi,...e.easing},r={...Yi,...e.duration};return{getAutoHeightDuration:Ki,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:l=t.easeInOut,delay:f=0,...u}=i;if(process.env.NODE_ENV!=="production"){const h=m=>typeof m=="string",d=m=>!Number.isNaN(parseFloat(m));!h(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(s)&&!h(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),h(l)||console.error('MUI: Argument "easing" must be a string.'),!d(f)&&!h(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
25
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof s=="string"?s:Mr(s)} ${l} ${typeof f=="string"?f:Mr(f)}`).join(",")},...e,easing:t,duration:r}}const Hi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ji(e){return be(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function an(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[s,l]=o[i];!Ji(l)||s.startsWith("unstable_")?delete n[s]:be(l)&&(n[s]={...l},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
26
26
 
27
27
  const theme = ${JSON.stringify(t,null,2)};
28
28
 
29
29
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
30
30
  theme.transitions = createTransitions(theme.transitions || {});
31
31
 
32
- export default theme;`}function xt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:c={},typography:l={},shape:u,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ve(20));const g=Pt(i),m=xr(e);let p=ce(m,{mixins:Wo(m.breakpoints,n),palette:g,shadows:Ko.slice(),typography:Yo(g,l),transitions:Zo(c),zIndex:{...ei}});if(p=ce(p,f),p=t.reduce((v,h)=>ce(v,h),p),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(a,S)=>{let E;for(E in a){const k=a[E];if(v.includes(E)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const T=wt("",E);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(a,null,2),"",`Instead, you need to use the '&.${T}' syntax:`,JSON.stringify({root:{[`&.${T}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
- `))}a[E]={}}}};Object.keys(p.components).forEach(a=>{const S=p.components[a].styleOverrides;S&&a.startsWith("Mui")&&h(S,a)})}return p.unstable_sxConfig={...st,...f?.unstable_sxConfig},p.unstable_sx=function(h){return Pe({sx:h,theme:this})},p.toRuntimeSource=Rr,p}function ri(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const ni=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ri(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Pr(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ir(e){return e==="dark"?ni:[]}function oi(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=Pt(t);return{palette:i,opacity:{...Pr(i.mode),...r},overlays:n||Ir(i.mode),...o}}function ii(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const si=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ai=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return si(e.cssVarPrefix).forEach(l=>{c[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:c}}:i?{[i.replace("%s",t)]:c,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...c}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function ci(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function d(e,t,r){!e[t]&&r&&(e[t]=r)}function Ne(e){return typeof e!="string"||!e.startsWith("hsl")?e:$r(e)}function me(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ke(Ne(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
34
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function li(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const pe=e=>{try{return e()}catch{}},ui=(e="mui")=>_o(e);function vt(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=oi({...t,palette:{mode:o,...t?.palette}});return}const{palette:i,...c}=xt({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:i,opacity:{...Pr(o),...t?.opacity},overlays:t?.overlays||Ir(o)},c}function fi(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:c=ii,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=e,g=Object.keys(r)[0],m=n||(r.light&&g!=="light"?"light":g),p=ui(i),{[m]:v,light:h,dark:a,...S}=r,E={...S};let k=v;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:ve(21,m));const T=vt(E,k,f,m);h&&!E.light&&vt(E,h,void 0,"light"),a&&!E.dark&&vt(E,a,void 0,"dark");let w={defaultColorScheme:m,...T,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:E,font:{...zo(T.typography),...T.font},spacing:li(f.spacing)};Object.keys(w.colorSchemes).forEach(L=>{const s=w.colorSchemes[L].palette,A=F=>{const B=F.split("-"),ie=B[1],ne=B[2];return p(F,s[ie][ne])};if(s.mode==="light"&&(d(s.common,"background","#fff"),d(s.common,"onBackground","#000")),s.mode==="dark"&&(d(s.common,"background","#000"),d(s.common,"onBackground","#fff")),ci(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){d(s.Alert,"errorColor",G(s.error.light,.6)),d(s.Alert,"infoColor",G(s.info.light,.6)),d(s.Alert,"successColor",G(s.success.light,.6)),d(s.Alert,"warningColor",G(s.warning.light,.6)),d(s.Alert,"errorFilledBg",A("palette-error-main")),d(s.Alert,"infoFilledBg",A("palette-info-main")),d(s.Alert,"successFilledBg",A("palette-success-main")),d(s.Alert,"warningFilledBg",A("palette-warning-main")),d(s.Alert,"errorFilledColor",pe(()=>s.getContrastText(s.error.main))),d(s.Alert,"infoFilledColor",pe(()=>s.getContrastText(s.info.main))),d(s.Alert,"successFilledColor",pe(()=>s.getContrastText(s.success.main))),d(s.Alert,"warningFilledColor",pe(()=>s.getContrastText(s.warning.main))),d(s.Alert,"errorStandardBg",K(s.error.light,.9)),d(s.Alert,"infoStandardBg",K(s.info.light,.9)),d(s.Alert,"successStandardBg",K(s.success.light,.9)),d(s.Alert,"warningStandardBg",K(s.warning.light,.9)),d(s.Alert,"errorIconColor",A("palette-error-main")),d(s.Alert,"infoIconColor",A("palette-info-main")),d(s.Alert,"successIconColor",A("palette-success-main")),d(s.Alert,"warningIconColor",A("palette-warning-main")),d(s.AppBar,"defaultBg",A("palette-grey-100")),d(s.Avatar,"defaultBg",A("palette-grey-400")),d(s.Button,"inheritContainedBg",A("palette-grey-300")),d(s.Button,"inheritContainedHoverBg",A("palette-grey-A100")),d(s.Chip,"defaultBorder",A("palette-grey-400")),d(s.Chip,"defaultAvatarColor",A("palette-grey-700")),d(s.Chip,"defaultIconColor",A("palette-grey-700")),d(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),d(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),d(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),d(s.LinearProgress,"primaryBg",K(s.primary.main,.62)),d(s.LinearProgress,"secondaryBg",K(s.secondary.main,.62)),d(s.LinearProgress,"errorBg",K(s.error.main,.62)),d(s.LinearProgress,"infoBg",K(s.info.main,.62)),d(s.LinearProgress,"successBg",K(s.success.main,.62)),d(s.LinearProgress,"warningBg",K(s.warning.main,.62)),d(s.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),d(s.Slider,"primaryTrack",K(s.primary.main,.62)),d(s.Slider,"secondaryTrack",K(s.secondary.main,.62)),d(s.Slider,"errorTrack",K(s.error.main,.62)),d(s.Slider,"infoTrack",K(s.info.main,.62)),d(s.Slider,"successTrack",K(s.success.main,.62)),d(s.Slider,"warningTrack",K(s.warning.main,.62));const F=Ye(s.background.default,.8);d(s.SnackbarContent,"bg",F),d(s.SnackbarContent,"color",pe(()=>s.getContrastText(F))),d(s.SpeedDialAction,"fabHoverBg",Ye(s.background.paper,.15)),d(s.StepConnector,"border",A("palette-grey-400")),d(s.StepContent,"border",A("palette-grey-400")),d(s.Switch,"defaultColor",A("palette-common-white")),d(s.Switch,"defaultDisabledColor",A("palette-grey-100")),d(s.Switch,"primaryDisabledColor",K(s.primary.main,.62)),d(s.Switch,"secondaryDisabledColor",K(s.secondary.main,.62)),d(s.Switch,"errorDisabledColor",K(s.error.main,.62)),d(s.Switch,"infoDisabledColor",K(s.info.main,.62)),d(s.Switch,"successDisabledColor",K(s.success.main,.62)),d(s.Switch,"warningDisabledColor",K(s.warning.main,.62)),d(s.TableCell,"border",K(Ue(s.divider,1),.88)),d(s.Tooltip,"bg",Ue(s.grey[700],.92))}if(s.mode==="dark"){d(s.Alert,"errorColor",K(s.error.light,.6)),d(s.Alert,"infoColor",K(s.info.light,.6)),d(s.Alert,"successColor",K(s.success.light,.6)),d(s.Alert,"warningColor",K(s.warning.light,.6)),d(s.Alert,"errorFilledBg",A("palette-error-dark")),d(s.Alert,"infoFilledBg",A("palette-info-dark")),d(s.Alert,"successFilledBg",A("palette-success-dark")),d(s.Alert,"warningFilledBg",A("palette-warning-dark")),d(s.Alert,"errorFilledColor",pe(()=>s.getContrastText(s.error.dark))),d(s.Alert,"infoFilledColor",pe(()=>s.getContrastText(s.info.dark))),d(s.Alert,"successFilledColor",pe(()=>s.getContrastText(s.success.dark))),d(s.Alert,"warningFilledColor",pe(()=>s.getContrastText(s.warning.dark))),d(s.Alert,"errorStandardBg",G(s.error.light,.9)),d(s.Alert,"infoStandardBg",G(s.info.light,.9)),d(s.Alert,"successStandardBg",G(s.success.light,.9)),d(s.Alert,"warningStandardBg",G(s.warning.light,.9)),d(s.Alert,"errorIconColor",A("palette-error-main")),d(s.Alert,"infoIconColor",A("palette-info-main")),d(s.Alert,"successIconColor",A("palette-success-main")),d(s.Alert,"warningIconColor",A("palette-warning-main")),d(s.AppBar,"defaultBg",A("palette-grey-900")),d(s.AppBar,"darkBg",A("palette-background-paper")),d(s.AppBar,"darkColor",A("palette-text-primary")),d(s.Avatar,"defaultBg",A("palette-grey-600")),d(s.Button,"inheritContainedBg",A("palette-grey-800")),d(s.Button,"inheritContainedHoverBg",A("palette-grey-700")),d(s.Chip,"defaultBorder",A("palette-grey-700")),d(s.Chip,"defaultAvatarColor",A("palette-grey-300")),d(s.Chip,"defaultIconColor",A("palette-grey-300")),d(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),d(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),d(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),d(s.LinearProgress,"primaryBg",G(s.primary.main,.5)),d(s.LinearProgress,"secondaryBg",G(s.secondary.main,.5)),d(s.LinearProgress,"errorBg",G(s.error.main,.5)),d(s.LinearProgress,"infoBg",G(s.info.main,.5)),d(s.LinearProgress,"successBg",G(s.success.main,.5)),d(s.LinearProgress,"warningBg",G(s.warning.main,.5)),d(s.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),d(s.Slider,"primaryTrack",G(s.primary.main,.5)),d(s.Slider,"secondaryTrack",G(s.secondary.main,.5)),d(s.Slider,"errorTrack",G(s.error.main,.5)),d(s.Slider,"infoTrack",G(s.info.main,.5)),d(s.Slider,"successTrack",G(s.success.main,.5)),d(s.Slider,"warningTrack",G(s.warning.main,.5));const F=Ye(s.background.default,.98);d(s.SnackbarContent,"bg",F),d(s.SnackbarContent,"color",pe(()=>s.getContrastText(F))),d(s.SpeedDialAction,"fabHoverBg",Ye(s.background.paper,.15)),d(s.StepConnector,"border",A("palette-grey-600")),d(s.StepContent,"border",A("palette-grey-600")),d(s.Switch,"defaultColor",A("palette-grey-300")),d(s.Switch,"defaultDisabledColor",A("palette-grey-600")),d(s.Switch,"primaryDisabledColor",G(s.primary.main,.55)),d(s.Switch,"secondaryDisabledColor",G(s.secondary.main,.55)),d(s.Switch,"errorDisabledColor",G(s.error.main,.55)),d(s.Switch,"infoDisabledColor",G(s.info.main,.55)),d(s.Switch,"successDisabledColor",G(s.success.main,.55)),d(s.Switch,"warningDisabledColor",G(s.warning.main,.55)),d(s.TableCell,"border",G(Ue(s.divider,1),.68)),d(s.Tooltip,"bg",Ue(s.grey[700],.92))}me(s.background,"default"),me(s.background,"paper"),me(s.common,"background"),me(s.common,"onBackground"),me(s,"divider"),Object.keys(s).forEach(F=>{const B=s[F];F!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&d(s[F],"mainChannel",ke(Ne(B.main))),B.light&&d(s[F],"lightChannel",ke(Ne(B.light))),B.dark&&d(s[F],"darkChannel",ke(Ne(B.dark))),B.contrastText&&d(s[F],"contrastTextChannel",ke(Ne(B.contrastText))),F==="text"&&(me(s[F],"primary"),me(s[F],"secondary")),F==="action"&&(B.active&&me(s[F],"active"),B.selected&&me(s[F],"selected")))})}),w=t.reduce((L,s)=>ce(L,s),w);const y={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:ai(w)},{vars:U,generateThemeVars:Z,generateStyleSheets:Q}=Io(w,y);return w.vars=U,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([L,s])=>{w[L]=s}),w.generateThemeVars=Z,w.generateStyleSheets=Q,w.generateSpacing=function(){return Er(f.spacing,At(this))},w.getColorSchemeSelector=ko(l),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=c,w.unstable_sxConfig={...st,...f?.unstable_sxConfig},w.unstable_sx=function(s){return Pe({sx:s,theme:this})},w.toRuntimeSource=Rr,w}function dr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pt({...r===!0?{}:r.palette,mode:t})})}function di(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...c}=e,l=i||"light",u=o?.[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return xt(e,...t);let g=r;"palette"in e||f[l]&&(f[l]!==!0?g=f[l].palette:l==="dark"&&(g={mode:"dark"}));const m=xt({...e,palette:g},...t);return m.defaultColorScheme=l,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},dr(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},dr(m,"light",f.light)),m}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),fi({...c,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const pi=di(),mi="$$material";function hi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gi=e=>hi(e)&&e!=="classes",yi=go({themeId:mi,defaultTheme:pi,rootShouldForwardProp:gi}),bi=Oo;process.env.NODE_ENV!=="production"&&(D.node,D.object.isRequired);function vi(e){return $o(e)}function Si(e){return wt("MuiSvgIcon",e)}on("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ci=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(r)}`]};return en(o,Si,n)},Ei=yi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Te(r.color)}`],t[`fontSize${Te(r.fontSize)}`]]}})(bi(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Xe=be.forwardRef(function(t,r){const n=vi({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:c="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:g=!1,titleAccess:m,viewBox:p="0 0 24 24",...v}=n,h=be.isValidElement(o)&&o.type==="svg",a={...n,color:c,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:p,hasSvgAsChild:h},S={};g||(S.viewBox=p);const E=Ci(a);return $.jsxs(Ei,{as:l,className:an(E.root,i),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...S,...v,...h&&o.props,ownerState:a,children:[h?o.props.children:o,m?$.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Xe.propTypes={children:D.node,classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),D.string]),component:D.elementType,fontSize:D.oneOfType([D.oneOf(["inherit","large","medium","small"]),D.string]),htmlColor:D.string,inheritViewBox:D.bool,shapeRendering:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),titleAccess:D.string,viewBox:D.string});Xe.muiName="SvgIcon";function kr(e,t){function r(n,o){return $.jsx(Xe,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Xe.muiName,be.memo(be.forwardRef(r))}const xi=kr($.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");function Nr({profile:e,isLoading:t,onSignOut:r,onManageAccount:n}){const o="https://sprylogin.com/my-account/",[i,c]=X.useState(null),l=h=>{c(h.currentTarget)},u=()=>{c(null)},f=()=>{u(),r&&r()},g=()=>{u(),n?n():e?.manageAccountUrl?window.location.href=e.manageAccountUrl:window.location.href=o},m=!!i,p=()=>e?.firstName&&e?.lastName?`${e.firstName[0]}${e.lastName[0]}`.toUpperCase():e?.firstName?e.firstName[0].toUpperCase():e?.email?e.email[0].toUpperCase():"?",v=()=>e?.firstName&&e?.lastName?`${e.firstName} ${e.lastName}`:e?.firstName?e.firstName:e?.email?e.email.split("@")[0]:"User";return $.jsxs($.Fragment,{children:[$.jsx(H.IconButton,{onClick:l,sx:{p:.5,"&:hover":{backgroundColor:"rgba(60, 64, 67, 0.08)"}},disabled:t&&!e,children:t&&!e?$.jsx(H.CircularProgress,{size:32}):$.jsx(H.Avatar,{src:e?.avatar||void 0,sx:{width:32,height:32,bgcolor:"#1a73e8",fontSize:"0.875rem",fontWeight:500},children:p()})}),$.jsxs(H.Menu,{anchorEl:i,open:m,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{width:320,mt:1,overflow:"visible",boxShadow:"0 2px 10px rgba(0,0,0,0.2)",borderRadius:"8px"}}},children:[$.jsxs(H.Box,{sx:{px:2,py:2.5},children:[$.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",mb:2},children:[$.jsx(H.Avatar,{src:e?.avatar||void 0,sx:{width:64,height:64,bgcolor:"#1a73e8",fontSize:"1.5rem",fontWeight:500,mb:1.5},children:p()}),$.jsx(H.Typography,{variant:"subtitle1",sx:{fontWeight:500,color:"text.primary",textAlign:"center",mb:.5},children:v()}),$.jsx(H.Typography,{variant:"body2",sx:{color:"text.secondary",textAlign:"center",wordBreak:"break-all"},children:e?.email||"No email"})]}),$.jsx(H.Button,{variant:"outlined",fullWidth:!0,onClick:g,sx:{borderRadius:"20px",textTransform:"none",borderColor:"#dadce0",color:"#3c4043",fontWeight:500,fontSize:"0.875rem",py:.75,"&:hover":{backgroundColor:"rgba(66, 133, 244, 0.04)",borderColor:"#dadce0"}},children:"Manage your Account"})]}),$.jsx(H.Divider,{}),r&&$.jsxs(H.MenuItem,{onClick:f,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"rgba(60, 64, 67, 0.08)"}},children:[$.jsx(H.ListItemIcon,{sx:{minWidth:36},children:$.jsx(xi,{fontSize:"small",sx:{color:"#5f6368"}})}),$.jsx(H.Typography,{variant:"body2",sx:{color:"#3c4043"},children:"Sign out"})]})]})]})}const St="spry_profile_cache",Ti=300*1e3,wi=300*1e3;function Mr(e,t={}){const{refetchInterval:r=Ti,cacheTime:n=wi,getAuthToken:o,headers:i={}}=t,[c,l]=X.useState(null),[u,f]=X.useState(!0),[g,m]=X.useState(null),p=X.useRef(null),v=X.useRef(null),h=X.useCallback(()=>{try{const E=localStorage.getItem(St);if(!E)return null;const k=JSON.parse(E);return Date.now()-k.timestamp<n?k.profile:(localStorage.removeItem(St),null)}catch(E){return console.error("Error loading profile from cache:",E),null}},[n]),a=X.useCallback(E=>{try{const k={profile:E,timestamp:Date.now()};localStorage.setItem(St,JSON.stringify(k))}catch(k){console.error("Error saving profile to cache:",k)}},[]),S=X.useCallback(async()=>{v.current&&v.current.abort(),v.current=new AbortController;try{f(!0),m(null);let E=null;o&&(E=await Promise.resolve(o()));const k={Accept:"application/json",...i};E&&(k.Authorization=`Bearer ${E}`);const T=await fetch(`${e}/api/profile`,{signal:v.current.signal,headers:k});if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const w=await T.json();l(w),a(w),m(null)}catch(E){if(E instanceof Error&&E.name==="AbortError")return;const k=E instanceof Error?E.message:"Failed to fetch profile";m(k),console.error("Error fetching profile:",E);const T=h();T&&l(T)}finally{f(!1)}},[e,o,i,h,a]);return X.useEffect(()=>{const E=h();return E&&(l(E),f(!1)),S(),r>0&&(p.current=window.setInterval(()=>{S()},r)),()=>{p.current&&window.clearInterval(p.current),v.current&&v.current.abort()}},[e,r,n]),{profile:c,isLoading:u,error:g,refetch:S}}function jr({apiUrl:e,onSignOut:t,onManageAccount:r,...n}){const{profile:o,isLoading:i,error:c}=Mr(e,n);return c&&console.error("Error loading profile:",c),$.jsx(Nr,{profile:o,isLoading:i,onSignOut:t,onManageAccount:r})}const Ai=kr($.jsx("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps");function $i({apiUrl:e,profileApiUrl:t,onSignOut:r,getAuthToken:n,profileHeaders:o,showAppsDropdown:i=!0,showProfileMenu:c=!0,appsRefetchInterval:l=300*1e3,appsCacheTime:u=300*1e3,profileRefetchInterval:f=300*1e3,profileCacheTime:g=300*1e3}){const[m,p]=X.useState(!1),v=X.useRef(null),h=t||e;return $.jsxs(H.Stack,{direction:"row",spacing:1,alignItems:"center",children:[i&&$.jsxs($.Fragment,{children:[$.jsx(H.IconButton,{ref:v,onClick:()=>p(!m),sx:{color:"#5f6368","&:hover":{bgcolor:"rgba(60, 64, 67, 0.08)"}},"aria-label":"Google apps",children:$.jsx(Ai,{})}),$.jsx(It,{apiUrl:e,open:m,onClose:()=>p(!1),buttonRef:v,refetchInterval:l,cacheTime:u})]}),c&&$.jsx(jr,{apiUrl:h,onSignOut:r,refetchInterval:f,cacheTime:g,getAuthToken:n,headers:o})]})}function It({apiUrl:e,open:t,onClose:r,buttonRef:n,refetchInterval:o,cacheTime:i}){const{apps:c,isLoading:l,error:u,refetch:f}=mr(e,{refetchInterval:o,cacheTime:i});return $.jsx(pr,{apps:c,open:t,onClose:r,buttonRef:n,isLoading:l,error:u,onRetry:f})}exports.AppsDropdown=pr;exports.AppsDropdownConnected=It;exports.ProfileMenu=Nr;exports.ProfileMenuConnected=jr;exports.TopBar=$i;exports.default=It;exports.useAppsData=mr;exports.useProfileData=Mr;
32
+ export default theme;`}function zt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:l={},shape:f,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Ce(20));const h=Zt(i),d=Zr(e);let m=ue(d,{mixins:ji(d.breakpoints,n),palette:h,shadows:Wi.slice(),typography:Bi(h,l),transitions:qi(s),zIndex:{...Hi}});if(m=ue(m,u),m=t.reduce((E,S)=>ue(E,S),m),process.env.NODE_ENV!=="production"){const E=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],S=(c,v)=>{let C;for(C in c){const x=c[C];if(E.includes(C)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const y=Kt("",C);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(c,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
+ `))}c[C]={}}}};Object.keys(m.components).forEach(c=>{const v=m.components[c].styleOverrides;v&&c.startsWith("Mui")&&S(v,c)})}return m.unstable_sxConfig={...bt,...u?.unstable_sxConfig},m.unstable_sx=function(S){return Le({sx:S,theme:this})},m.toRuntimeSource=an,m}function Xi(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Qi=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Xi(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function cn(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ln(e){return e==="dark"?Qi:[]}function Zi(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=Zt(t);return{palette:i,opacity:{...cn(i.mode),...r},overlays:n||ln(i.mode),...o}}function es(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ts=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],rs=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return ts(e.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:i?{[i.replace("%s",t)]:s,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function ns(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function b(e,t,r){!e[t]&&r&&(e[t]=r)}function Ve(e){return typeof e!="string"||!e.startsWith("hsl")?e:nn(e)}function Se(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ze(Ve(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
34
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function os(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ye=e=>{try{return e()}catch{}},is=(e="mui")=>Ci(e);function Ut(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=Zi({...t,palette:{mode:o,...t?.palette}});return}const{palette:i,...s}=zt({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:i,opacity:{...cn(o),...t?.opacity},overlays:t?.overlays||ln(o)},s}function ss(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=es,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...u}=e,h=Object.keys(r)[0],d=n||(r.light&&h!=="light"?"light":h),m=is(i),{[d]:E,light:S,dark:c,...v}=r,C={...v};let x=E;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Ce(21,d));const y=Ut(C,x,u,d);S&&!C.light&&Ut(C,S,void 0,"light"),c&&!C.dark&&Ut(C,c,void 0,"dark");let g={defaultColorScheme:d,...y,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:f,getCssVar:m,colorSchemes:C,font:{...Mi(y.typography),...y.font},spacing:os(u.spacing)};Object.keys(g.colorSchemes).forEach(k=>{const a=g.colorSchemes[k].palette,I=G=>{const W=G.split("-"),se=W[1],oe=W[2];return m(G,a[se][oe])};if(a.mode==="light"&&(b(a.common,"background","#fff"),b(a.common,"onBackground","#000")),a.mode==="dark"&&(b(a.common,"background","#000"),b(a.common,"onBackground","#fff")),ns(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){b(a.Alert,"errorColor",X(a.error.light,.6)),b(a.Alert,"infoColor",X(a.info.light,.6)),b(a.Alert,"successColor",X(a.success.light,.6)),b(a.Alert,"warningColor",X(a.warning.light,.6)),b(a.Alert,"errorFilledBg",I("palette-error-main")),b(a.Alert,"infoFilledBg",I("palette-info-main")),b(a.Alert,"successFilledBg",I("palette-success-main")),b(a.Alert,"warningFilledBg",I("palette-warning-main")),b(a.Alert,"errorFilledColor",ye(()=>a.getContrastText(a.error.main))),b(a.Alert,"infoFilledColor",ye(()=>a.getContrastText(a.info.main))),b(a.Alert,"successFilledColor",ye(()=>a.getContrastText(a.success.main))),b(a.Alert,"warningFilledColor",ye(()=>a.getContrastText(a.warning.main))),b(a.Alert,"errorStandardBg",Q(a.error.light,.9)),b(a.Alert,"infoStandardBg",Q(a.info.light,.9)),b(a.Alert,"successStandardBg",Q(a.success.light,.9)),b(a.Alert,"warningStandardBg",Q(a.warning.light,.9)),b(a.Alert,"errorIconColor",I("palette-error-main")),b(a.Alert,"infoIconColor",I("palette-info-main")),b(a.Alert,"successIconColor",I("palette-success-main")),b(a.Alert,"warningIconColor",I("palette-warning-main")),b(a.AppBar,"defaultBg",I("palette-grey-100")),b(a.Avatar,"defaultBg",I("palette-grey-400")),b(a.Button,"inheritContainedBg",I("palette-grey-300")),b(a.Button,"inheritContainedHoverBg",I("palette-grey-A100")),b(a.Chip,"defaultBorder",I("palette-grey-400")),b(a.Chip,"defaultAvatarColor",I("palette-grey-700")),b(a.Chip,"defaultIconColor",I("palette-grey-700")),b(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),b(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),b(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),b(a.LinearProgress,"primaryBg",Q(a.primary.main,.62)),b(a.LinearProgress,"secondaryBg",Q(a.secondary.main,.62)),b(a.LinearProgress,"errorBg",Q(a.error.main,.62)),b(a.LinearProgress,"infoBg",Q(a.info.main,.62)),b(a.LinearProgress,"successBg",Q(a.success.main,.62)),b(a.LinearProgress,"warningBg",Q(a.warning.main,.62)),b(a.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),b(a.Slider,"primaryTrack",Q(a.primary.main,.62)),b(a.Slider,"secondaryTrack",Q(a.secondary.main,.62)),b(a.Slider,"errorTrack",Q(a.error.main,.62)),b(a.Slider,"infoTrack",Q(a.info.main,.62)),b(a.Slider,"successTrack",Q(a.success.main,.62)),b(a.Slider,"warningTrack",Q(a.warning.main,.62));const G=rt(a.background.default,.8);b(a.SnackbarContent,"bg",G),b(a.SnackbarContent,"color",ye(()=>a.getContrastText(G))),b(a.SpeedDialAction,"fabHoverBg",rt(a.background.paper,.15)),b(a.StepConnector,"border",I("palette-grey-400")),b(a.StepContent,"border",I("palette-grey-400")),b(a.Switch,"defaultColor",I("palette-common-white")),b(a.Switch,"defaultDisabledColor",I("palette-grey-100")),b(a.Switch,"primaryDisabledColor",Q(a.primary.main,.62)),b(a.Switch,"secondaryDisabledColor",Q(a.secondary.main,.62)),b(a.Switch,"errorDisabledColor",Q(a.error.main,.62)),b(a.Switch,"infoDisabledColor",Q(a.info.main,.62)),b(a.Switch,"successDisabledColor",Q(a.success.main,.62)),b(a.Switch,"warningDisabledColor",Q(a.warning.main,.62)),b(a.TableCell,"border",Q(tt(a.divider,1),.88)),b(a.Tooltip,"bg",tt(a.grey[700],.92))}if(a.mode==="dark"){b(a.Alert,"errorColor",Q(a.error.light,.6)),b(a.Alert,"infoColor",Q(a.info.light,.6)),b(a.Alert,"successColor",Q(a.success.light,.6)),b(a.Alert,"warningColor",Q(a.warning.light,.6)),b(a.Alert,"errorFilledBg",I("palette-error-dark")),b(a.Alert,"infoFilledBg",I("palette-info-dark")),b(a.Alert,"successFilledBg",I("palette-success-dark")),b(a.Alert,"warningFilledBg",I("palette-warning-dark")),b(a.Alert,"errorFilledColor",ye(()=>a.getContrastText(a.error.dark))),b(a.Alert,"infoFilledColor",ye(()=>a.getContrastText(a.info.dark))),b(a.Alert,"successFilledColor",ye(()=>a.getContrastText(a.success.dark))),b(a.Alert,"warningFilledColor",ye(()=>a.getContrastText(a.warning.dark))),b(a.Alert,"errorStandardBg",X(a.error.light,.9)),b(a.Alert,"infoStandardBg",X(a.info.light,.9)),b(a.Alert,"successStandardBg",X(a.success.light,.9)),b(a.Alert,"warningStandardBg",X(a.warning.light,.9)),b(a.Alert,"errorIconColor",I("palette-error-main")),b(a.Alert,"infoIconColor",I("palette-info-main")),b(a.Alert,"successIconColor",I("palette-success-main")),b(a.Alert,"warningIconColor",I("palette-warning-main")),b(a.AppBar,"defaultBg",I("palette-grey-900")),b(a.AppBar,"darkBg",I("palette-background-paper")),b(a.AppBar,"darkColor",I("palette-text-primary")),b(a.Avatar,"defaultBg",I("palette-grey-600")),b(a.Button,"inheritContainedBg",I("palette-grey-800")),b(a.Button,"inheritContainedHoverBg",I("palette-grey-700")),b(a.Chip,"defaultBorder",I("palette-grey-700")),b(a.Chip,"defaultAvatarColor",I("palette-grey-300")),b(a.Chip,"defaultIconColor",I("palette-grey-300")),b(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),b(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),b(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),b(a.LinearProgress,"primaryBg",X(a.primary.main,.5)),b(a.LinearProgress,"secondaryBg",X(a.secondary.main,.5)),b(a.LinearProgress,"errorBg",X(a.error.main,.5)),b(a.LinearProgress,"infoBg",X(a.info.main,.5)),b(a.LinearProgress,"successBg",X(a.success.main,.5)),b(a.LinearProgress,"warningBg",X(a.warning.main,.5)),b(a.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),b(a.Slider,"primaryTrack",X(a.primary.main,.5)),b(a.Slider,"secondaryTrack",X(a.secondary.main,.5)),b(a.Slider,"errorTrack",X(a.error.main,.5)),b(a.Slider,"infoTrack",X(a.info.main,.5)),b(a.Slider,"successTrack",X(a.success.main,.5)),b(a.Slider,"warningTrack",X(a.warning.main,.5));const G=rt(a.background.default,.98);b(a.SnackbarContent,"bg",G),b(a.SnackbarContent,"color",ye(()=>a.getContrastText(G))),b(a.SpeedDialAction,"fabHoverBg",rt(a.background.paper,.15)),b(a.StepConnector,"border",I("palette-grey-600")),b(a.StepContent,"border",I("palette-grey-600")),b(a.Switch,"defaultColor",I("palette-grey-300")),b(a.Switch,"defaultDisabledColor",I("palette-grey-600")),b(a.Switch,"primaryDisabledColor",X(a.primary.main,.55)),b(a.Switch,"secondaryDisabledColor",X(a.secondary.main,.55)),b(a.Switch,"errorDisabledColor",X(a.error.main,.55)),b(a.Switch,"infoDisabledColor",X(a.info.main,.55)),b(a.Switch,"successDisabledColor",X(a.success.main,.55)),b(a.Switch,"warningDisabledColor",X(a.warning.main,.55)),b(a.TableCell,"border",X(tt(a.divider,1),.68)),b(a.Tooltip,"bg",tt(a.grey[700],.92))}Se(a.background,"default"),Se(a.background,"paper"),Se(a.common,"background"),Se(a.common,"onBackground"),Se(a,"divider"),Object.keys(a).forEach(G=>{const W=a[G];G!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&b(a[G],"mainChannel",ze(Ve(W.main))),W.light&&b(a[G],"lightChannel",ze(Ve(W.light))),W.dark&&b(a[G],"darkChannel",ze(Ve(W.dark))),W.contrastText&&b(a[G],"contrastTextChannel",ze(Ve(W.contrastText))),G==="text"&&(Se(a[G],"primary"),Se(a[G],"secondary")),G==="action"&&(W.active&&Se(a[G],"active"),W.selected&&Se(a[G],"selected")))})}),g=t.reduce((k,a)=>ue(k,a),g);const p={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:rs(g)},{vars:R,generateThemeVars:U,generateStyleSheets:V}=_i(g,p);return g.vars=R,Object.entries(g.colorSchemes[g.defaultColorScheme]).forEach(([k,a])=>{g[k]=a}),g.generateThemeVars=U,g.generateStyleSheets=V,g.generateSpacing=function(){return Qr(u.spacing,qt(this))},g.getColorSchemeSelector=Ri(l),g.spacing=g.generateSpacing(),g.shouldSkipGeneratingVar=s,g.unstable_sxConfig={...bt,...u?.unstable_sxConfig},g.unstable_sx=function(a){return Le({sx:a,theme:this})},g.toRuntimeSource=an,g}function jr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Zt({...r===!0?{}:r.palette,mode:t})})}function as(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...s}=e,l=i||"light",f=o?.[l],u={...o,...r?{[l]:{...typeof f!="boolean"&&f,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return zt(e,...t);let h=r;"palette"in e||u[l]&&(u[l]!==!0?h=u[l].palette:l==="dark"&&(h={mode:"dark"}));const d=zt({...e,palette:h},...t);return d.defaultColorScheme=l,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},jr(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},jr(d,"light",u.light)),d}return!r&&!("light"in u)&&l==="light"&&(u.light=!0),ss({...s,colorSchemes:u,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const cs=as(),ls="$$material";function us(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fs=e=>us(e)&&e!=="classes",ds=fi({themeId:ls,defaultTheme:cs,rootShouldForwardProp:fs}),ps=Ai;process.env.NODE_ENV!=="production"&&(z.node,z.object.isRequired);function ms(e){return wi(e)}function gs(e){return Kt("MuiSvgIcon",e)}eo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hs=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Jn(o,gs,n)},ys=ds("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(ps(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),lt=Ae.forwardRef(function(t,r){const n=ms({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:f="medium",htmlColor:u,inheritViewBox:h=!1,titleAccess:d,viewBox:m="0 0 24 24",...E}=n,S=Ae.isValidElement(o)&&o.type==="svg",c={...n,color:s,component:l,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:S},v={};h||(v.viewBox=m);const C=hs(c);return w.jsxs(ys,{as:l,className:ro(C.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...E,...S&&o.props,ownerState:c,children:[S?o.props.children:o,d?w.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(lt.propTypes={children:z.node,classes:z.object,className:z.string,color:z.oneOfType([z.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),z.string]),component:z.elementType,fontSize:z.oneOfType([z.oneOf(["inherit","large","medium","small"]),z.string]),htmlColor:z.string,inheritViewBox:z.bool,shapeRendering:z.string,sx:z.oneOfType([z.arrayOf(z.oneOfType([z.func,z.object,z.bool])),z.func,z.object]),titleAccess:z.string,viewBox:z.string});lt.muiName="SvgIcon";function un(e,t){function r(n,o){return w.jsx(lt,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=lt.muiName,Ae.memo(Ae.forwardRef(r))}const Ss=un(w.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),fe={ACCOUNTS:"spry_accounts",BRIDGE_ACCOUNTS:"spry_accounts_shared_state",ADD_ACCOUNT_IN_PROGRESS:"spry_add_account_in_progress",RETURN_URL:"spry_return_url",TEMP_CURRENT_USER:"spry_temp_current_user"},He={ACCESS_TOKEN_BUFFER_SECONDS:60,REFRESH_TOKEN_BUFFER_SECONDS:300,STALE_CHECK_INTERVAL_MS:1e3},pe={INVALID_TOKEN:"Invalid or malformed token",TOKEN_DECODE_FAILED:"Failed to decode token",ACCOUNT_NOT_FOUND:"Account not found",SIGNIN_REDIRECT_FAILED:"Failed to initiate sign-in redirect",LOGOUT_FAILED:"Failed to logout from Keycloak, but account will be removed locally.",TOKEN_REFRESH_FAILED:"Failed to refresh token for account",SSO_CLEAR_FAILED:"Failed to clear SSO session. Please sign out first if prompted by Keycloak."},fn={LOCALSTORAGE_XSS_WARNING:"⚠️ Tokens stored in localStorage are vulnerable to XSS. Ensure CSP headers are configured.",ACCOUNT_MARKED_STALE:"Account refresh token expired. Click to re-authenticate.",NO_ACCOUNTS:"No additional accounts stored. Your primary auth remains active.",REDIRECT_IN_PROGRESS:"Redirecting to Keycloak for authentication..."},dn="https://sprylogin.com/apps-api/sync-bridge.html";function Be(e){try{const t=e.split(".");if(t.length!==3)return console.warn(pe.INVALID_TOKEN),null;const r=t[1];return JSON.parse(decodeURIComponent(atob(r).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(t){return console.warn(pe.TOKEN_DECODE_FAILED,t),null}}function Et(e,t=He.ACCESS_TOKEN_BUFFER_SECONDS){if(!e)return!0;const r=Be(e);if(!r||typeof r.exp!="number")return!0;const n=r.exp*1e3,o=Date.now(),i=t*1e3;return o>=n-i}function er(e,t=He.REFRESH_TOKEN_BUFFER_SECONDS){if(!e)return!0;const r=Be(e);if(!r||typeof r.exp!="number")return!0;const n=r.exp*1e3,o=Date.now(),i=t*1e3;return o>=n-i}function bs(e){if(!e)return null;const t=Be(e);return!t||typeof t.exp!="number"?null:t.exp*1e3}function vs(e){if(!e)return-1;const t=Be(e);if(!t||typeof t.exp!="number")return-1;const r=t.exp*1e3,n=Date.now(),o=r-n;return Math.max(0,o/1e3)}function Me(e){const t=e.profile||{},r=t.email||"unknown@example.com",n=t.given_name,o=t.name||n||r.split("@")[0],i=t.picture;return{email:r,name:o,avatar:i}}function pn(e){return!!(e.isStale||er(e.user.refresh_token)||!e.user.refresh_token&&Et(e.user.access_token))}function Es(e){return Et(e,He.ACCESS_TOKEN_BUFFER_SECONDS)}function ws(e){return er(e,He.REFRESH_TOKEN_BUFFER_SECONDS)}function As(e){if(!e)return!1;const t=Be(e);if(!t||typeof t.exp!="number")return!1;const r=t.exp*1e3;return Date.now()<r}function Cs({account:e,isActive:t,isLoading:r,onSwitch:n,onRemove:o,onRefresh:i}){const{email:s,name:l,avatar:f}=Me(e.user),[u,h]=T.useState(!1),[d,m]=T.useState(!1),E=async v=>{v.stopPropagation(),h(!0);try{await o()}finally{h(!1)}},S=async v=>{v.stopPropagation(),m(!0);try{await i()}finally{m(!1)}},c=async()=>{r||await n()};return w.jsx(T.Fragment,{children:w.jsxs($.ListItemButton,{selected:t,onClick:c,disabled:r,sx:{opacity:t?1:.8,backgroundColor:t?"action.selected":"inherit","&:hover":{backgroundColor:t?"action.selected":"action.hover"}},children:[w.jsx($.ListItemIcon,{children:w.jsx($.Avatar,{src:f,alt:l,sx:{width:32,height:32,bgcolor:"primary.main",fontSize:"0.875rem"},children:l.charAt(0).toUpperCase()})}),w.jsx($.ListItemText,{primary:w.jsxs($.Box,{display:"flex",alignItems:"center",gap:1,children:[w.jsx("span",{children:l}),t&&w.jsx($.Chip,{label:"Active",size:"small",color:"primary",variant:"outlined",sx:{height:20}}),e.isStale&&!t&&w.jsx($.Chip,{label:"Stale",size:"small",color:"warning",variant:"filled",sx:{height:20}})]}),secondary:s,secondaryTypographyProps:{noWrap:!0}}),!t&&w.jsxs($.ListItemSecondaryAction,{children:[e.isStale&&w.jsx($.IconButton,{edge:"end",size:"small",onClick:S,disabled:d||r,title:"Re-authenticate this account",children:d?w.jsx($.CircularProgress,{size:20}):w.jsx(Lt.Refresh,{fontSize:"small"})}),w.jsx($.IconButton,{edge:"end",size:"small",onClick:E,disabled:u||r,title:"Remove this account",children:u?w.jsx($.CircularProgress,{size:20}):w.jsx(Lt.Close,{fontSize:"small"})})]})]})},e.accountId)}const tr=T.forwardRef(({accounts:e,activeAccountId:t,isLoading:r=!1,onSwitchAccount:n,onAddAccount:o,onRemoveAccount:i,onRefreshAccount:s},l)=>{const[f,u]=T.useState(!1),h=async()=>{u(!0);try{await o()}finally{u(!1)}};return w.jsx($.Box,{ref:l,sx:{width:"100%",maxWidth:360,bgcolor:"background.paper"},children:e.length===0?w.jsxs($.Box,{sx:{p:2,textAlign:"center"},children:[w.jsx($.Typography,{variant:"body2",color:"textSecondary",sx:{mb:2},children:"No additional accounts logged in"}),w.jsx("button",{onClick:h,disabled:f||r,style:{padding:"8px 16px",borderRadius:"4px",border:"1px solid #ccc",background:"#fff",cursor:"pointer"},children:f?"Adding Account...":"Add Account"})]}):w.jsxs(w.Fragment,{children:[w.jsx($.List,{children:e.map(d=>w.jsx(Cs,{account:d,isActive:d.accountId===t,isLoading:r,onSwitch:()=>n(d.accountId),onRemove:()=>i(d.accountId),onRefresh:()=>s(d.accountId)},d.accountId))}),w.jsx($.Divider,{sx:{my:1}}),w.jsx($.Box,{sx:{p:1},children:w.jsxs($.ListItemButton,{onClick:h,disabled:f||r,sx:{justifyContent:"center",py:1},children:[w.jsx(Lt.Add,{sx:{mr:1},fontSize:"small"}),w.jsx($.Typography,{variant:"button",sx:{fontSize:"0.875rem"},children:f?"Adding...":"Add Another Account"})]})})]})})});tr.displayName="AccountList";function mn({profile:e,isLoading:t,onSignOut:r,onManageAccount:n,accountManager:o}){const i="https://sprylogin.com/my-account/",[s,l]=T.useState(null),[f,u]=T.useState(!1),h=o?.accounts.length??0,d=g=>{l(g.currentTarget)},m=()=>{l(null),u(!1)},E=()=>{o&&o.activeAccount?o.removeAccount(o.activeAccount.accountId):(m(),r&&r()),m()},S=()=>{m(),n?n():e?.manageAccountUrl?window.location.href=e.manageAccountUrl:window.location.href=i},c=!!s,v=()=>{if(o?.activeAccount){const{name:g,email:p}=Me(o.activeAccount.user);if(g)return g.split(" ").map(R=>R[0]).join("").slice(0,2).toUpperCase();if(p)return p[0].toUpperCase()}return e?.firstName&&e?.lastName?`${e.firstName[0]}${e.lastName[0]}`.toUpperCase():e?.firstName?e.firstName[0].toUpperCase():e?.email?e.email[0].toUpperCase():"?"},C=()=>{if(o?.activeAccount){const{name:g}=Me(o.activeAccount.user);return g}return e?.firstName&&e?.lastName?`${e.firstName} ${e.lastName}`:e?.firstName?e.firstName:e?.email?e.email.split("@")[0]:"User"},x=()=>{if(o?.activeAccount){const{email:g}=Me(o.activeAccount.user);return g}return e?.email||"No email"},y=()=>{if(o?.activeAccount){const{avatar:g}=Me(o.activeAccount.user);return g||null}return e?.avatar||null};return w.jsxs(w.Fragment,{children:[w.jsx($.IconButton,{onClick:d,sx:{p:.5,"&:hover":{backgroundColor:"rgba(60, 64, 67, 0.08)"}},disabled:t&&!e,children:t&&!e?w.jsx($.CircularProgress,{size:32}):w.jsx($.Avatar,{src:y()||void 0,sx:{width:32,height:32,bgcolor:"#1a73e8",fontSize:"0.875rem",fontWeight:500},children:v()})}),w.jsx($.Menu,{anchorEl:s,open:c,onClose:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{width:300,mt:.5,overflow:"visible",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",borderRadius:"8px"}}},children:f?w.jsxs($.Box,{children:[w.jsxs($.Box,{sx:{px:1.5,py:1.25,display:"flex",alignItems:"center",gap:.75},children:[w.jsx($.Button,{size:"small",onClick:()=>u(!1),sx:{textTransform:"none",color:"#1a73e8",fontSize:"0.75rem",p:.5,minWidth:"auto"},children:"← Back"}),w.jsx($.Typography,{variant:"caption",sx:{fontWeight:600,flex:1,fontSize:"0.75rem"},children:"Accounts"})]}),w.jsx($.Divider,{sx:{my:0}}),w.jsx($.Box,{sx:{px:.75,py:.75},children:o&&w.jsx(tr,{accounts:o.accounts,activeAccountId:o.activeAccount?.accountId||null,isLoading:!1,onSwitchAccount:o.switchAccount,onAddAccount:o.addNewAccount,onRemoveAccount:o.removeAccount,onRefreshAccount:o.refreshAccountToken})})]}):w.jsxs($.Box,{children:[w.jsxs($.Box,{sx:{px:1.5,py:1.5},children:[w.jsxs($.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",mb:1.25},children:[w.jsx($.Avatar,{src:y()||void 0,sx:{width:56,height:56,bgcolor:"#1a73e8",fontSize:"1.25rem",fontWeight:500,mb:1},children:v()},o?.activeAccount?.accountId||"profile-avatar"),w.jsx($.Typography,{sx:{fontWeight:500,color:"text.primary",textAlign:"center",mb:.25,fontSize:"0.9rem"},children:C()}),w.jsx($.Typography,{sx:{color:"text.secondary",textAlign:"center",wordBreak:"break-all",fontSize:"0.75rem"},children:x()})]}),w.jsx($.Button,{variant:"outlined",fullWidth:!0,onClick:S,sx:{borderRadius:"20px",textTransform:"none",borderColor:"#dadce0",color:"#3c4043",fontWeight:500,fontSize:"0.8125rem",py:.55,"&:hover":{backgroundColor:"rgba(66, 133, 244, 0.04)",borderColor:"#dadce0"}},children:"Manage your Account"})]}),w.jsx($.Divider,{sx:{my:0}}),o&&w.jsxs(w.Fragment,{children:[w.jsx($.MenuItem,{onClick:()=>u(!0),sx:{py:.75,px:1.5,fontSize:"0.8125rem","&:hover":{backgroundColor:"rgba(60, 64, 67, 0.08)"}},children:w.jsx($.Typography,{sx:{color:"#3c4043",width:"100%",fontSize:"0.8125rem"},children:h>0?`Accounts (${h})`:"Accounts"})}),w.jsx($.Divider,{sx:{my:0}})]}),o?.addNewAccount&&w.jsx($.Box,{sx:{px:1.5,py:.5}}),w.jsxs($.MenuItem,{onClick:E,sx:{py:.75,px:1.5,fontSize:"0.8125rem","&:hover":{backgroundColor:"rgba(60, 64, 67, 0.08)"}},children:[w.jsx($.ListItemIcon,{sx:{minWidth:32,mr:.5},children:w.jsx(Ss,{sx:{fontSize:"1rem",color:"#5f6368"}})}),w.jsx($.Typography,{sx:{color:"#3c4043",fontSize:"0.8125rem"},children:"Sign out"})]})]})})]})}const Dt="spry_profile_cache",xs=300*1e3,Ts=300*1e3;function gn(e,t={}){const{refetchInterval:r=xs,cacheTime:n=Ts,getAuthToken:o,headers:i={}}=t,[s,l]=T.useState(null),[f,u]=T.useState(!0),[h,d]=T.useState(null),m=T.useRef(null),E=T.useRef(null),S=T.useCallback(()=>{try{const C=localStorage.getItem(Dt);if(!C)return null;const x=JSON.parse(C);return Date.now()-x.timestamp<n?x.profile:(localStorage.removeItem(Dt),null)}catch(C){return console.error("Error loading profile from cache:",C),null}},[n]),c=T.useCallback(C=>{try{const x={profile:C,timestamp:Date.now()};localStorage.setItem(Dt,JSON.stringify(x))}catch(x){console.error("Error saving profile to cache:",x)}},[]),v=T.useCallback(async()=>{E.current&&E.current.abort(),E.current=new AbortController;try{u(!0),d(null);let C=null;o&&(C=await Promise.resolve(o()));const x={Accept:"application/json",...i};C&&(x.Authorization=`Bearer ${C}`);const y=await fetch(`${e}/api/profile`,{signal:E.current.signal,headers:x});if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);const g=await y.json();l(g),c(g),d(null)}catch(C){if(C instanceof Error&&C.name==="AbortError")return;const x=C instanceof Error?C.message:"Failed to fetch profile";d(x),console.error("Error fetching profile:",C);const y=S();y&&l(y)}finally{u(!1)}},[e,o,i,S,c]);return T.useEffect(()=>{const C=S();return C&&(l(C),u(!1)),v(),r>0&&(m.current=window.setInterval(()=>{v()},r)),()=>{m.current&&window.clearInterval(m.current),E.current&&E.current.abort()}},[e,r,n]),{profile:s,isLoading:f,error:h,refetch:v}}function hn({apiUrl:e,onSignOut:t,onManageAccount:r,accountManager:n,...o}){const{profile:i,isLoading:s,error:l}=gn(e,o);return l&&console.error("Error loading profile:",l),w.jsx(mn,{profile:i,isLoading:s,onSignOut:t,onManageAccount:r,accountManager:n})}const _s=un(w.jsx("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps");function Rs({apiUrl:e,profileApiUrl:t,onSignOut:r,getAuthToken:n,profileHeaders:o,showAppsDropdown:i=!0,showProfileMenu:s=!0,appsRefetchInterval:l=300*1e3,appsCacheTime:f=300*1e3,profileRefetchInterval:u=300*1e3,profileCacheTime:h=300*1e3,accountManager:d}){const[m,E]=T.useState(!1),S=T.useRef(null),c=t||e;return w.jsxs($.Stack,{direction:"row",spacing:1,alignItems:"center",children:[i&&w.jsxs(w.Fragment,{children:[w.jsx($.IconButton,{ref:S,onClick:()=>E(!m),sx:{color:"#5f6368","&:hover":{bgcolor:"rgba(60, 64, 67, 0.08)"}},"aria-label":"Google apps",children:w.jsx(_s,{})}),w.jsx(or,{apiUrl:e,open:m,onClose:()=>E(!1),buttonRef:S,refetchInterval:l,cacheTime:f})]}),s&&w.jsx(hn,{apiUrl:c,onSignOut:r,refetchInterval:u,cacheTime:h,getAuthToken:n,headers:o,accountManager:d})]})}var rr=T.createContext(void 0);rr.displayName="AuthContext";var Os={isLoading:!0,isAuthenticated:!1},Is=(e,t)=>{switch(t.type){case"INITIALISED":case"USER_LOADED":return{...e,user:t.user,isLoading:!1,isAuthenticated:t.user?!t.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...e,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...e,isLoading:!0,activeNavigator:t.method};case"NAVIGATOR_CLOSE":return{...e,isLoading:!1,activeNavigator:void 0};case"ERROR":{const r=t.error;return r.toString=()=>`${r.name}: ${r.message}`,{...e,isLoading:!1,error:r}}default:{const r=new TypeError(`unknown type ${t.type}`),n={name:r.name,message:r.message,innerError:r,stack:r.stack,source:"unknown"};return n.toString=()=>`${n.name}: ${n.message}`,{...e,isLoading:!1,error:n}}}},$s=(e=window.location)=>{let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))},ks=nr("signinCallback","Sign-in failed"),Ps=nr("signoutCallback","Sign-out failed"),Ns=nr("renewSilent","Renew silent failed");function yn(e,t){return{name:Mt(e,"name",()=>"Error"),message:Mt(e,"message",()=>t),stack:Mt(e,"stack",()=>new Error().stack),innerError:e}}function nr(e,t){return r=>({...yn(r,t),source:e})}function Mt(e,t,r){if(e&&typeof e=="object"){const n=e[t];if(typeof n=="string")return n}return r()}var Us=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],Ds=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],Lr=e=>()=>{throw new Error(`UserManager#${e} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},Br=typeof window>"u"?null:Ge.UserManager,Ms=e=>{const{children:t,onSigninCallback:r,skipSigninCallback:n,matchSignoutCallback:o,onSignoutCallback:i,onRemoveUser:s,userManager:l=null,...f}=e,[u]=T.useState(()=>l??(Br?new Br(f):{settings:f})),[h,d]=T.useReducer(Is,Os),m=T.useMemo(()=>Object.assign({settings:u.settings,events:u.events},Object.fromEntries(Us.map(v=>{var C,x;return[v,(x=(C=u[v])==null?void 0:C.bind(u))!=null?x:Lr(v)]})),Object.fromEntries(Ds.map(v=>[v,u[v]?async C=>{d({type:"NAVIGATOR_INIT",method:v});try{return await u[v](C)}catch(x){return d({type:"ERROR",error:{...yn(x,`Unknown error while executing ${v}(...).`),source:v,args:C}}),null}finally{d({type:"NAVIGATOR_CLOSE"})}}:Lr(v)]))),[u]),E=T.useRef(!1);T.useEffect(()=>{!u||E.current||(E.current=!0,(async()=>{try{let v=null;$s()&&!n&&(v=await u.signinCallback(),r&&await r(v)),v=v||await u.getUser(),d({type:"INITIALISED",user:v})}catch(v){d({type:"ERROR",error:ks(v)})}try{if(o&&o(u.settings)){const v=await u.signoutCallback();i&&await i(v)}}catch(v){d({type:"ERROR",error:Ps(v)})}})())},[u,n,r,i,o]),T.useEffect(()=>{if(!u)return;const v=g=>{d({type:"USER_LOADED",user:g})};u.events.addUserLoaded(v);const C=()=>{d({type:"USER_UNLOADED"})};u.events.addUserUnloaded(C);const x=()=>{d({type:"USER_SIGNED_OUT"})};u.events.addUserSignedOut(x);const y=g=>{d({type:"ERROR",error:Ns(g)})};return u.events.addSilentRenewError(y),()=>{u.events.removeUserLoaded(v),u.events.removeUserUnloaded(C),u.events.removeUserSignedOut(x),u.events.removeSilentRenewError(y)}},[u]);const S=T.useCallback(async()=>{await u.removeUser(),s&&await s()},[u,s]),c=T.useMemo(()=>({...h,...m,removeUser:S}),[h,m,S]);return T.createElement(rr.Provider,{value:c},t)},Sn=()=>{const e=T.useContext(rr);return e||console.warn("AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component."),e};const bn=T.createContext(null),js=()=>{typeof window>"u"||window.history.replaceState({},document.title,window.location.pathname)},Ls=e=>{if(typeof window>"u")return!1;const t=e.post_logout_redirect_uri||e.redirect_uri;return t?window.location.href.startsWith(t):!1},Bs=e=>{if(typeof window>"u")return;const t=e.post_logout_redirect_uri||e.redirect_uri||window.location.origin;window.location.href!==t?window.history.replaceState({},document.title,t):window.history.replaceState({},document.title,window.location.pathname)};function Fs({children:e,config:t,onSigninCallback:r,matchSignoutCallback:n,onSignoutCallback:o,onRemoveUser:i,skipSigninCallback:s}){const l=T.useMemo(()=>({...t,post_logout_redirect_uri:t.post_logout_redirect_uri||t.redirect_uri||(typeof window<"u"?window.location.origin:void 0)}),[t]),f=T.useMemo(()=>new Ge.UserManager(l),[l]),u=T.useMemo(()=>({authority:l.authority,client_id:l.client_id,redirect_uri:l.redirect_uri,post_logout_redirect_uri:l.post_logout_redirect_uri}),[l]),h=r||js,d=n||Ls,m=o||(()=>Bs(l));return w.jsx(bn.Provider,{value:{keycloakConfig:u,userManager:f,syncBridgeUrl:dn},children:w.jsx(Ms,{userManager:f,onSigninCallback:h,matchSignoutCallback:d,onSignoutCallback:m,onRemoveUser:i,skipSigninCallback:s,children:e})})}function vn(){const e=T.useContext(bn);if(!e)throw new Error("useSpryAuthContext must be used within SpryAuthProvider");return e}function zs(e){const t=e.profile?.email||e.profile?.sub||"unknown",r=Date.now();return`account_${t.replace(/[^a-z0-9]/gi,"_").toLowerCase()}_${r}`}function ne(){try{const e=localStorage.getItem(fe.ACCOUNTS);return e?JSON.parse(e):{accounts:[],activeAccountId:null,lastUpdated:Date.now()}}catch(e){return console.error("Failed to read accounts from localStorage:",e),{accounts:[],activeAccountId:null,lastUpdated:Date.now()}}}function ve(){return ne().accounts}function Ie(e){try{localStorage.setItem(fe.ACCOUNTS,JSON.stringify(e))}catch(t){console.error("Failed to save accounts to localStorage:",t)}}function En(e,t=null){const r=ne(),n={accounts:e,activeAccountId:t??r.activeAccountId,lastUpdated:Date.now()};Ie(n)}function De(e){const t=ne(),r=zs(e),n=e.profile?.sub,o=e.profile?.email,i=t.accounts.findIndex(f=>n&&f.user.profile?.sub?f.user.profile.sub===n:o&&f.user.profile?.email?f.user.profile.email===o:!1),l={...{accountId:r,lastUsed:Date.now(),isStale:!1,createdAt:Date.now()},user:e};return i>=0?t.accounts[i]=l:t.accounts.push(l),t.lastUpdated=Date.now(),Ie(t),r}function wt(e){const t=ne();t.accounts=t.accounts.filter(r=>r.accountId!==e),t.activeAccountId===e&&(t.activeAccountId=null),t.lastUpdated=Date.now(),Ie(t)}function ce(e){const t=ne();t.activeAccountId=e,t.lastUpdated=Date.now(),Ie(t)}function wn(){const e=ne();return e.activeAccountId&&e.accounts.find(t=>t.accountId===e.activeAccountId)||null}function An(){return ne().activeAccountId}function Cn(e,t){const r=ne(),n=r.accounts.find(o=>o.accountId===e);n&&(n.user=t,n.lastUsed=Date.now(),n.isStale=!1,r.lastUpdated=Date.now(),Ie(r))}function xn(e){const t=ne(),r=t.accounts.find(n=>n.accountId===e);r&&(r.isStale=!0,t.lastUpdated=Date.now(),Ie(t))}function Vs(){localStorage.removeItem(fe.ACCOUNTS)}function Ws(e){const r=ne().accounts.find(n=>n.accountId===e);return r?{accountId:r.accountId,lastUsed:r.lastUsed,isStale:r.isStale,createdAt:r.createdAt}:null}function ot(e){e?localStorage.setItem(fe.ADD_ACCOUNT_IN_PROGRESS,"true"):localStorage.removeItem(fe.ADD_ACCOUNT_IN_PROGRESS)}function it(){return localStorage.getItem(fe.ADD_ACCOUNT_IN_PROGRESS)==="true"}function Tn(e){localStorage.setItem(fe.RETURN_URL,e)}function _n(){return localStorage.getItem(fe.RETURN_URL)}function Vt(){localStorage.removeItem(fe.RETURN_URL)}function Rn(e){localStorage.setItem(fe.TEMP_CURRENT_USER,JSON.stringify(e))}function Gs(){try{const e=localStorage.getItem(fe.TEMP_CURRENT_USER);return e?JSON.parse(e):null}catch{return null}}function Wt(){localStorage.removeItem(fe.TEMP_CURRENT_USER)}async function On(e,t){try{const r=`${t.authority.replace(/\/$/,"")}/soft-logout`,n="openid profile email offline_access",o=t.redirect_uri||window.location.origin,i=`${t.authority.replace(/\/$/,"")}/protocol/openid-connect/auth?client_id=${encodeURIComponent(t.client_id)}&redirect_uri=${encodeURIComponent(o)}&response_type=code&scope=${encodeURIComponent(n)}`;return window.location.href=`${r}?post_logout_redirect_uri=${encodeURIComponent(i)}`,!0}catch(r){return console.error("Failed to clear SSO session:",r),console.warn(pe.SSO_CLEAR_FAILED),!1}}async function In(e,t,r){try{const o=ve().length===1;if(!await Js(e,t)&&o)return console.warn("Token revocation failed for last account, falling back to redirect logout"),await $n(e,t,r),{success:!0,message:"Redirecting to logout...",remainingAccounts:0};wt(r),At.remove(r);const s=ve(),f=s.sort((u,h)=>h.lastUsed-u.lastUsed)[0]||null;return f?(ce(f.accountId),{success:!0,message:`Logged out. Switched to ${f.user.profile?.email||f.user.profile?.sub}`,remainingAccounts:s.length}):(ce(null),{success:!0,message:"Logged out. No other accounts available.",remainingAccounts:0})}catch(n){return console.error("Error during logout:",n),{success:!1,message:`Logout failed: ${n instanceof Error?n.message:"Unknown error"}`,remainingAccounts:ve().length}}}async function Ys(e,t){const r=e.map(n=>$n(n.user,t,n.accountId).catch(o=>{console.warn(`Failed to logout ${n.accountId}:`,o)}));return await Promise.all(r),e.forEach(n=>{wt(n.accountId),At.remove(n.accountId)}),ce(null),{success:!0,message:"All accounts logged out.",remainingAccounts:0}}function Ks(e){wt(e);const t=ve();if(t.length>0){const n=t.sort((o,i)=>i.lastUsed-o.lastUsed)[0];return ce(n.accountId),{success:!0,message:`Account removed locally. Switched to ${n.user.profile?.email||n.user.profile?.sub}`,remainingAccounts:t.length-1}}else return ce(null),{success:!0,message:"Account removed. No other accounts available.",remainingAccounts:0}}async function qs(e,t){try{return new Ge.UserManager({authority:e.authority,client_id:e.client_id,redirect_uri:e.redirect_uri||window.location.origin,post_logout_redirect_uri:e.post_logout_redirect_uri||e.redirect_uri||window.location.origin,response_type:"code",scope:"openid profile email offline_access",userStore:new Ge.WebStorageStateStore({prefix:`oidc_${t}`})})}catch(r){throw console.error("Failed to create UserManager:",r),new Error("oidc-client-ts library not found. Ensure it is installed in consuming app.")}}class Hs{pool=new Map;async getOrCreate(t,r){if(!this.pool.has(r)){const o=await qs(t,r);this.pool.set(r,o)}const n=this.pool.get(r);if(!n)throw new Error(`UserManager not found for ${r}`);return n}remove(t){this.pool.delete(t)}clear(){this.pool.clear()}has(t){return this.pool.has(t)}}const At=new Hs;async function Gt(e,t,r){if(!t.refresh_token)return console.warn(`${pe.TOKEN_REFRESH_FAILED} (${e}): missing refresh token`),null;const n=`${r.authority.replace(/\/$/,"")}/protocol/openid-connect/token`;try{const o=await fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",client_id:r.client_id,refresh_token:t.refresh_token}).toString()});if(!o.ok){const l=await o.text();return console.warn(`${pe.TOKEN_REFRESH_FAILED} (${e}):`,l),null}const i=await o.json(),s={access_token:i.access_token,refresh_token:i.refresh_token||t.refresh_token,id_token:i.id_token||t.id_token,expires_in:i.expires_in||t.expires_in,profile:t.profile};return Cn(e,s),s}catch(o){return console.warn(`${pe.TOKEN_REFRESH_FAILED} (${e}):`,o),null}}async function Fr(e,t){try{await(await At.getOrCreate(e,t)).signinRedirect()}catch(r){throw console.error(pe.SIGNIN_REDIRECT_FAILED,r),r}}async function Js(e,t){try{if(!e.refresh_token)return console.warn("No refresh token available for revocation"),!1;const r=`${t.authority.replace(/\/$/,"")}/protocol/openid-connect/revoke`,n=await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:t.client_id,token:e.refresh_token,token_type_hint:"refresh_token"}).toString()});return!n.ok&&n.status!==204?(console.warn(`Token revocation returned ${n.status}`),!1):(console.log("✅ Token revoked successfully"),!0)}catch(r){return console.warn("Failed to revoke token:",r),!1}}async function $n(e,t,r){try{await(await At.getOrCreate(t,r)).signoutRedirect({id_token_hint:e.id_token,post_logout_redirect_uri:t.post_logout_redirect_uri||t.redirect_uri||window.location.origin})}catch(n){console.warn(pe.LOGOUT_FAILED,n)}}function kn(e){const{keycloakConfig:t,initialUser:r,onAccountSwitch:n,signinRedirect:o,syncBridge:i}=e,[s,l]=T.useState([]),[f,u]=T.useState(null),h=T.useRef(!1),d=T.useRef(!1),m=T.useRef(!1),E=T.useCallback(y=>{const g=y.accounts;let p=y.activeAccountId;if(p&&!g.find(R=>R.accountId===p)&&(p=g[0]?.accountId||null),l(g),u(p),p){const R=g.find(U=>U.accountId===p);R&&n(R.user)}},[n]);T.useEffect(()=>{!i||m.current||(m.current=!0,i.getAccountsState().then(y=>{if(!y||!y.accounts.length)return;y.accounts.forEach(p=>{De(p.user)}),y.activeAccountId&&ce(y.activeAccountId);const g=ne();E(g)}))},[E,i]),T.useEffect(()=>{if(d.current)return;if(it())if(console.log("🔄 Detected redirect callback for add account flow"),r){const g=ve(),p=r.profile?.sub,R=r.profile?.email;if(g.some(I=>p&&I.user.profile?.sub?I.user.profile.sub===p:R&&I.user.profile?.email?I.user.profile.email===R:!1)){console.log("⏳ initialUser matches an existing account, waiting for new user...");return}d.current=!0,console.log("✅ Primary auth populated initialUser, processing new account...");const V=De(r);console.log(`✅ Added new account: ${V}`),ce(V),ot(!1);const k=_n();Wt(),Vt();const a=ne();l(a.accounts),u(V),i&&i.setAccountsState(a),n(r),console.log("✅ Account switch completed"),k&&k!==window.location.href&&(console.log(`🔄 Navigating back to: ${k}`),window.location.assign(k))}else console.log("⏳ Waiting for primary auth to populate initialUser...")},[r,n]),T.useEffect(()=>{(async()=>{const y=async()=>!(localStorage.getItem("spry_add_account_pending")!=="1"||d.current);let g=0;for(;g<10&&!await y();)await new Promise(p=>setTimeout(p,150)),g++;if(await y())if(localStorage.removeItem("spry_add_account_pending"),console.log("🔄 Soft-logout completed, initiating signinRedirect..."),o)o().catch(p=>{console.error("signinRedirect failed:",p)});else{const p=`temp_add_${Date.now()}`;Fr(t,p).catch(R=>{console.error("signinRedirectForNewAccount failed:",R)})}})()},[t,o]),T.useEffect(()=>{if(!h.current&&!d.current){h.current=!0;try{const y=ne();let g=y.accounts,p=y.activeAccountId;if(g.length===0&&r){const R=De(r);g=ve(),p=R,ce(R)}p&&!g.find(R=>R.accountId===p)&&(p=g[0]?.accountId||null,p&&ce(p)),E({accounts:g,activeAccountId:p,lastUpdated:y.lastUpdated}),i&&i.setAccountsState({accounts:g,activeAccountId:p,lastUpdated:y.lastUpdated}),console.log(`📦 Loaded ${g.length} accounts from localStorage`)}catch(y){const g=y instanceof Error?y.message:"Unknown initialization error";console.error("Failed to initialize account manager:",g)}}},[E,r,n,i]),T.useEffect(()=>{if(d.current||!r||ne().accounts.length>0||it())return;const g=De(r);ce(g);const p=ne();E(p),i&&i.setAccountsState(p),console.log("✅ Seeded initial account after auth became available")},[E,r,n,i]),T.useEffect(()=>{if(!r||d.current||it())return;const y=ve(),g=r.profile?.sub,p=r.profile?.email;if(y.some(k=>g&&k.user.profile?.sub?k.user.profile.sub===g:p&&k.user.profile?.email?k.user.profile.email===p:!1))return;const U=De(r);ce(U);const V=ne();E(V),i&&i.setAccountsState(V),console.log("✅ Added account from auth state update")},[E,r,n,i]);const S=T.useCallback(async y=>{try{const g=s.find(p=>p.accountId===y);if(!g){console.error(pe.ACCOUNT_NOT_FOUND);return}Et(g.user.access_token)&&(console.warn("Access token expired for account:",y),xn(y)),ce(y),u(y),await n(g.user),i&&await i.setAccountsState(ne()),console.log(`✅ Switched to account: ${g.user.profile?.email||y}`)}catch(g){const p=g instanceof Error?g.message:"Failed to switch account";console.error(p,g)}},[s,n,i]),c=T.useCallback(async()=>{try{if(console.log("🔄 Starting add new account flow..."),console.log("📦 Saving state flags to localStorage..."),r&&Rn(r),ot(!0),localStorage.setItem("spry_add_account_pending","1"),Tn(window.location.href),console.log("🔄 Clearing SSO session..."),await On(r||null,t),await new Promise(y=>setTimeout(y,1200)),console.log(fn.REDIRECT_IN_PROGRESS),o)await o();else{const y=`temp_add_${Date.now()}`;await Fr(t,y)}}catch(y){const g=y instanceof Error?y.message:"Failed to add new account";console.error(g,y),ot(!1),Vt(),Wt(),localStorage.removeItem("spry_add_account_pending")}},[t,r]),v=T.useCallback(async y=>{try{const g=s.find(U=>U.accountId===y);if(!g){console.error(pe.ACCOUNT_NOT_FOUND);return}const p=await In(g.user,t,y);p.success||console.warn("Keycloak logout failed, but account removed locally:",p.message);const R=ne();E(R),i&&i.setAccountsState(R)}catch(g){const p=g instanceof Error?g.message:"Failed to remove account";console.error(p,g)}},[s,t,n,E,i]),C=T.useCallback(async y=>{try{const g=s.find(U=>U.accountId===y);if(!g){console.error(pe.ACCOUNT_NOT_FOUND);return}if(!await Gt(y,g.user,t)){console.error(`No refreshed user returned for ${y}`);return}const R=ne();E(R),i&&i.setAccountsState(R)}catch(g){const p=g instanceof Error?g.message:"Failed to refresh token";console.error(p,g)}},[s,f,t,n,E,i]);T.useEffect(()=>{const y=()=>{const g=s.map(R=>({...R,isStale:pn(R)}));g.some((R,U)=>R.isStale!==s[U]?.isStale)&&(En(g),l(g))};s.length>0&&y()},[s]);const x=s.find(y=>y.accountId===f)||null;return{accounts:s,activeAccount:x,switchAccount:S,addNewAccount:c,removeAccount:v,refreshAccountToken:C}}const Xs=2e3,jt=new Map;function Qs(e){if(!e?.bridgeUrl||typeof window>"u"||typeof document>"u")return null;if(jt.has(e.bridgeUrl))return jt.get(e.bridgeUrl)||null;const t=e.bridgeUrl,r=new URL(t).origin,n=e.timeoutMs??Xs;let o=null,i=!1,s=null,l=null;const f=new Map,u=()=>{o||(o=document.createElement("iframe"),o.src=t,o.title="Spry Sync Bridge",o.style.width="0",o.style.height="0",o.style.border="0",o.style.position="absolute",o.style.left="-9999px",o.style.top="-9999px",o.setAttribute("aria-hidden","true"),o.addEventListener("load",()=>{i=!0}),document.body.appendChild(o))},h=()=>(u(),i?Promise.resolve():s||(s=new Promise((x,y)=>{if(!o){s=null,y(new Error("Bridge iframe not available"));return}const g=()=>{if(i=!0,d()){R(),x();return}R(),y(new Error("Bridge iframe did not load the expected origin"))},p=()=>{R(),y(new Error("Bridge iframe failed to load"))},R=()=>{o?.removeEventListener("load",g),o?.removeEventListener("error",p),s=null};o.addEventListener("load",g),o.addEventListener("error",p)}),s)),d=()=>{if(!o||!o.contentWindow)return!1;try{const x=o.contentWindow.location.href;return!x||x==="about:blank"?!1:x.startsWith(t)}catch{return!0}},m=x=>{if(x.origin!==r)return;const y=x.data;if(!y||typeof y!="object")return;const g=y.requestId;if(!g||typeof g!="string")return;const p=f.get(g);if(p){if(f.delete(g),window.clearTimeout(p.timeoutId),y.type==="ERROR"){p.reject(new Error(y.error||"Bridge error"));return}p.resolve(y.payload??null)}},E=(x,y,g)=>g?c(x,y):v().then(()=>c(x,y)),S=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now()}_${Math.random().toString(16).slice(2)}`,c=(x,y)=>h().then(()=>new Promise((g,p)=>{const R=S(),U=window.setTimeout(()=>{f.delete(R),p(new Error(`Bridge request timed out: ${x}`))},n);f.set(R,{resolve:g,reject:p,timeoutId:U});try{o?.contentWindow?.postMessage({type:x,requestId:R,payload:y},"*")}catch{f.delete(R),window.clearTimeout(U),p(new Error("Bridge postMessage failed"))}})),v=()=>l||(l=E("PING",null,!0).then(()=>{}).catch(x=>{throw l=null,x}),l);window.addEventListener("message",m);const C={getAccountsState:async()=>{try{const x=await E("GET_ACCOUNTS");return!x||!Array.isArray(x.accounts)?null:{accounts:x.accounts,activeAccountId:x.activeAccountId??null,lastUpdated:Number(x.lastUpdated)||0}}catch(x){return console.warn("Sync bridge unavailable for GET_ACCOUNTS:",x),null}},setAccountsState:async x=>{try{await E("SET_ACCOUNTS",{accounts:x.accounts,activeAccountId:x.activeAccountId??null,lastUpdated:x.lastUpdated??Date.now()})}catch(y){console.warn("Sync bridge unavailable for SET_ACCOUNTS:",y)}}};return jt.set(t,C),C}function Zs(e){if(e)return{access_token:e.access_token,refresh_token:e.refresh_token,id_token:e.id_token,expires_in:e.expires_in,profile:e.profile}}function zr(e){const t=Math.floor(Date.now()/1e3),r=e.expires_in?t+e.expires_in:void 0;return new Ge.User({...e,token_type:"Bearer",profile:e.profile||{sub:""},expires_at:r})}function ea(){const e=Sn(),{keycloakConfig:t,userManager:r,syncBridgeUrl:n}=vn(),o=T.useRef(!1),i=T.useMemo(()=>Qs(n?{bridgeUrl:n}:null),[n]),s=kn({keycloakConfig:t,initialUser:Zs(e.user),signinRedirect:e.signinRedirect,syncBridge:i,onAccountSwitch:async f=>{let u=f;const h=ve(),d=f.profile?.sub,m=f.profile?.email,E=h.find(c=>d&&c.user.profile?.sub?c.user.profile.sub===d:m&&c.user.profile?.email?c.user.profile.email===m:!1);if(E&&f.refresh_token){const c=await Gt(E.accountId,f,t);c&&(u=c)}const S=zr(u);await r.storeUser(S),await r.events.load(S),window.dispatchEvent(new CustomEvent("auth:account-switched",{detail:{user:u}}))}});T.useEffect(()=>{if(o.current||e.isAuthenticated||e.isLoading||e.activeNavigator)return;const f=wn();if(!f)return;o.current=!0,(async()=>{let h=f.user;if(h.refresh_token){const m=await Gt(f.accountId,h,t);m&&(h=m)}const d=zr(h);await r.storeUser(d),await r.events.load(d)})().catch(h=>{console.log("Restore from stored account failed:",h)})},[s.accounts.length,e,t,r]);const l=T.useCallback(async f=>{await s.removeAccount(f),An()||await r.removeUser()},[s,r]);return T.useMemo(()=>({...s,removeAccount:l}),[s,l])}function ta(){return Sn()}function or({apiUrl:e,open:t,onClose:r,buttonRef:n,refetchInterval:o,cacheTime:i}){const{apps:s,isLoading:l,error:f,refetch:u}=Wr(e,{refetchInterval:o,cacheTime:i});return w.jsx(Vr,{apps:s,open:t,onClose:r,buttonRef:n,isLoading:l,error:f,onRetry:u})}exports.AccountList=tr;exports.AppsDropdown=Vr;exports.AppsDropdownConnected=or;exports.ERROR_MESSAGES=pe;exports.INFO_MESSAGES=fn;exports.ProfileMenu=mn;exports.ProfileMenuConnected=hn;exports.STORAGE_KEYS=fe;exports.SYNC_BRIDGE_URL=dn;exports.SpryAuthProvider=Fs;exports.TOKEN_VALIDATION=He;exports.TopBar=Rs;exports.addAccount=De;exports.clearAllAccounts=Vs;exports.clearReturnUrl=Vt;exports.clearSSOSessionBeforeAddAccount=On;exports.clearTempCurrentUser=Wt;exports.decodeToken=Be;exports.default=or;exports.extractUserInfo=Me;exports.getAccountMetadata=Ws;exports.getAccounts=ve;exports.getAccountsState=ne;exports.getActiveAccount=wn;exports.getActiveAccountId=An;exports.getReturnUrl=_n;exports.getTempCurrentUser=Gs;exports.getTokenExpiryTime=bs;exports.getTokenTimeRemaining=vs;exports.isAccessTokenValid=As;exports.isAccountStale=pn;exports.isAddAccountInProgress=it;exports.isRefreshTokenExpired=er;exports.isTokenExpired=Et;exports.logoutAccount=In;exports.logoutAccountLocally=Ks;exports.logoutAllAccounts=Ys;exports.markAccountStale=xn;exports.removeAccount=wt;exports.saveAccounts=En;exports.saveAccountsState=Ie;exports.saveTempCurrentUser=Rn;exports.setActiveAccount=ce;exports.setAddAccountInProgress=ot;exports.setReturnUrl=Tn;exports.shouldRefreshAccessToken=Es;exports.shouldRefreshRefreshToken=ws;exports.updateAccountTokens=Cn;exports.useAccountManager=kn;exports.useAppsData=Wr;exports.useProfileData=gn;exports.useSpryAccountManager=ea;exports.useSpryAuth=ta;exports.useSpryAuthContext=vn;
35
35
  //# sourceMappingURL=index.cjs.map