@malloy-publisher/server 0.3.1 → 0.4.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.
Files changed (30) hide show
  1. package/dist/app/api-doc.yaml +140 -44
  2. package/dist/app/assets/{EnvironmentPage-CMNz23OH.js → EnvironmentPage-BW0WDIHv.js} +1 -1
  3. package/dist/app/assets/{HomePage-CIFBQm1O.js → HomePage-Dg3KqJ6Q.js} +1 -1
  4. package/dist/app/assets/{LightMode-230hA2MG.js → LightMode-CWfnd7K7.js} +1 -1
  5. package/dist/app/assets/MainPage-DDnYfzIk.js +2 -0
  6. package/dist/app/assets/ModelPage-DOACbTsK.js +2 -0
  7. package/dist/app/assets/PackagePage-4tYaVCFt.js +1 -0
  8. package/dist/app/assets/RenderedResult-CvrmYyr5.es-El82-Fnv.js +116 -0
  9. package/dist/app/assets/RouteError-3jz4UdKd.js +1 -0
  10. package/dist/app/assets/ThemeEditorPage-JOWkUiHa.js +1 -0
  11. package/dist/app/assets/ToggleButtonGroup-CmtgJ1bB.js +1 -0
  12. package/dist/app/assets/{index-BR3mOYNn.js → index-9jIrTEvL.js} +1 -1
  13. package/dist/app/assets/{index-CNMFq7Ua.js → index-BU0_UiMu.js} +1 -1
  14. package/dist/app/assets/{index-DplzDOL2.js → index-CYhW8lq5.js} +1 -1
  15. package/dist/app/assets/index-CqxPodI3.js +442 -0
  16. package/dist/app/assets/{index-B5_U5YBb.js → index-DP4T7js_.js} +1 -1
  17. package/dist/app/assets/index.es-DcmGg13s.js +106 -0
  18. package/dist/app/index.html +1 -1
  19. package/dist/package_load_worker.mjs +20 -1
  20. package/dist/server.mjs +981 -636
  21. package/package.json +3 -3
  22. package/dist/app/assets/MainPage-DBgaP8G6.js +0 -2
  23. package/dist/app/assets/MaterializationsPage-B5tdbpRJ.js +0 -1
  24. package/dist/app/assets/ModelPage-A6Kd1_wx.js +0 -2
  25. package/dist/app/assets/PackagePage-JUM3EcgJ.js +0 -1
  26. package/dist/app/assets/RenderedResult-mDE-4u8S.es-s0zwv__L.js +0 -116
  27. package/dist/app/assets/RouteError-BJAZkbpg.js +0 -1
  28. package/dist/app/assets/ThemeEditorPage-a0QNervK.js +0 -1
  29. package/dist/app/assets/index-JaIfCAcq.js +0 -443
  30. package/dist/app/assets/index.es-CB4dOn75.js +0 -106
@@ -1,443 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DplzDOL2.js","assets/index-BR3mOYNn.js","assets/index-w_0OQJgZ.js","assets/index-CRAwrhYM.js","assets/index-B5_U5YBb.js","assets/index-CNMFq7Ua.js","assets/index-DSoCUF-f.js","assets/core-B8oMW4sm.es-hOkwvru5.js","assets/engine-oniguruma-C4vnmooL.es-jdkXmgTr.js","assets/MainPage-DBgaP8G6.js","assets/LightMode-230hA2MG.js","assets/ThemeEditorPage-a0QNervK.js"])))=>i.map(i=>d[i]);
2
- function uF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var Zve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vS={exports:{}},sm={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var CR;function dF(){if(CR)return sm;CR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return sm.Fragment=t,sm.jsx=n,sm.jsxs=n,sm}var kR;function fF(){return kR||(kR=1,vS.exports=dF()),vS.exports}var h=fF(),bS={exports:{}},Yn={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var TR;function pF(){if(TR)return Yn;TR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),m=Symbol.iterator;function y(X){return X===null||typeof X!="object"?null:(X=m&&X[m]||X["@@iterator"],typeof X=="function"?X:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function w(X,J,ne){this.props=X,this.context=J,this.refs=x,this.updater=ne||v}w.prototype.isReactComponent={},w.prototype.setState=function(X,J){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,J,"setState")},w.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function S(){}S.prototype=w.prototype;function k(X,J,ne){this.props=X,this.context=J,this.refs=x,this.updater=ne||v}var T=k.prototype=new S;T.constructor=k,b(T,w.prototype),T.isPureReactComponent=!0;var O=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function I(X,J,ne,oe,se,re){return ne=re.ref,{$$typeof:e,type:X,key:J,ref:ne!==void 0?ne:null,props:re}}function F(X,J){return I(X.type,J,void 0,void 0,void 0,X.props)}function A(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function H(X){var J={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ne){return J[ne]})}var L=/\/+/g;function M(X,J){return typeof X=="object"&&X!==null&&X.key!=null?H(""+X.key):J.toString(36)}function _(){}function B(X){switch(X.status){case"fulfilled":return X.value;case"rejected":throw X.reason;default:switch(typeof X.status=="string"?X.then(_,_):(X.status="pending",X.then(function(J){X.status==="pending"&&(X.status="fulfilled",X.value=J)},function(J){X.status==="pending"&&(X.status="rejected",X.reason=J)})),X.status){case"fulfilled":return X.value;case"rejected":throw X.reason}}throw X}function W(X,J,ne,oe,se){var re=typeof X;(re==="undefined"||re==="boolean")&&(X=null);var ie=!1;if(X===null)ie=!0;else switch(re){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(X.$$typeof){case e:case t:ie=!0;break;case c:return ie=X._init,W(ie(X._payload),J,ne,oe,se)}}if(ie)return se=se(X),ie=oe===""?"."+M(X,0):oe,O(se)?(ne="",ie!=null&&(ne=ie.replace(L,"$&/")+"/"),W(se,J,ne,"",function(ye){return ye})):se!=null&&(A(se)&&(se=F(se,ne+(se.key==null||X&&X.key===se.key?"":(""+se.key).replace(L,"$&/")+"/")+ie)),J.push(se)),1;ie=0;var ce=oe===""?".":oe+":";if(O(X))for(var me=0;me<X.length;me++)oe=X[me],re=ce+M(oe,me),ie+=W(oe,J,ne,re,se);else if(me=y(X),typeof me=="function")for(X=me.call(X),me=0;!(oe=X.next()).done;)oe=oe.value,re=ce+M(oe,me++),ie+=W(oe,J,ne,re,se);else if(re==="object"){if(typeof X.then=="function")return W(B(X),J,ne,oe,se);throw J=String(X),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return ie}function j(X,J,ne){if(X==null)return X;var oe=[],se=0;return W(X,oe,"","",function(re){return J.call(ne,re,se++)}),oe}function Q(X){if(X._status===-1){var J=X._result;J=J(),J.then(function(ne){(X._status===0||X._status===-1)&&(X._status=1,X._result=ne)},function(ne){(X._status===0||X._status===-1)&&(X._status=2,X._result=ne)}),X._status===-1&&(X._status=0,X._result=J)}if(X._status===1)return X._result.default;throw X._result}var K=typeof reportError=="function"?reportError:function(X){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof X=="object"&&X!==null&&typeof X.message=="string"?String(X.message):String(X),error:X});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",X);return}console.error(X)};function te(){}return Yn.Children={map:j,forEach:function(X,J,ne){j(X,function(){J.apply(this,arguments)},ne)},count:function(X){var J=0;return j(X,function(){J++}),J},toArray:function(X){return j(X,function(J){return J})||[]},only:function(X){if(!A(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Yn.Component=w,Yn.Fragment=n,Yn.Profiler=o,Yn.PureComponent=k,Yn.StrictMode=r,Yn.Suspense=u,Yn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Yn.__COMPILER_RUNTIME={__proto__:null,c:function(X){return P.H.useMemoCache(X)}},Yn.cache=function(X){return function(){return X.apply(null,arguments)}},Yn.cloneElement=function(X,J,ne){if(X==null)throw Error("The argument must be a React element, but you passed "+X+".");var oe=b({},X.props),se=X.key,re=void 0;if(J!=null)for(ie in J.ref!==void 0&&(re=void 0),J.key!==void 0&&(se=""+J.key),J)!$.call(J,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&J.ref===void 0||(oe[ie]=J[ie]);var ie=arguments.length-2;if(ie===1)oe.children=ne;else if(1<ie){for(var ce=Array(ie),me=0;me<ie;me++)ce[me]=arguments[me+2];oe.children=ce}return I(X.type,se,void 0,void 0,re,oe)},Yn.createContext=function(X){return X={$$typeof:s,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null},X.Provider=X,X.Consumer={$$typeof:a,_context:X},X},Yn.createElement=function(X,J,ne){var oe,se={},re=null;if(J!=null)for(oe in J.key!==void 0&&(re=""+J.key),J)$.call(J,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(se[oe]=J[oe]);var ie=arguments.length-2;if(ie===1)se.children=ne;else if(1<ie){for(var ce=Array(ie),me=0;me<ie;me++)ce[me]=arguments[me+2];se.children=ce}if(X&&X.defaultProps)for(oe in ie=X.defaultProps,ie)se[oe]===void 0&&(se[oe]=ie[oe]);return I(X,re,void 0,void 0,null,se)},Yn.createRef=function(){return{current:null}},Yn.forwardRef=function(X){return{$$typeof:l,render:X}},Yn.isValidElement=A,Yn.lazy=function(X){return{$$typeof:c,_payload:{_status:-1,_result:X},_init:Q}},Yn.memo=function(X,J){return{$$typeof:f,type:X,compare:J===void 0?null:J}},Yn.startTransition=function(X){var J=P.T,ne={};P.T=ne;try{var oe=X(),se=P.S;se!==null&&se(ne,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(te,K)}catch(re){K(re)}finally{P.T=J}},Yn.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Yn.use=function(X){return P.H.use(X)},Yn.useActionState=function(X,J,ne){return P.H.useActionState(X,J,ne)},Yn.useCallback=function(X,J){return P.H.useCallback(X,J)},Yn.useContext=function(X){return P.H.useContext(X)},Yn.useDebugValue=function(){},Yn.useDeferredValue=function(X,J){return P.H.useDeferredValue(X,J)},Yn.useEffect=function(X,J,ne){var oe=P.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return oe.useEffect(X,J)},Yn.useId=function(){return P.H.useId()},Yn.useImperativeHandle=function(X,J,ne){return P.H.useImperativeHandle(X,J,ne)},Yn.useInsertionEffect=function(X,J){return P.H.useInsertionEffect(X,J)},Yn.useLayoutEffect=function(X,J){return P.H.useLayoutEffect(X,J)},Yn.useMemo=function(X,J){return P.H.useMemo(X,J)},Yn.useOptimistic=function(X,J){return P.H.useOptimistic(X,J)},Yn.useReducer=function(X,J,ne){return P.H.useReducer(X,J,ne)},Yn.useRef=function(X){return P.H.useRef(X)},Yn.useState=function(X){return P.H.useState(X)},Yn.useSyncExternalStore=function(X,J,ne){return P.H.useSyncExternalStore(X,J,ne)},Yn.useTransition=function(){return P.H.useTransition()},Yn.version="19.1.1",Yn}var MR;function gk(){return MR||(MR=1,bS.exports=pF()),bS.exports}var C=gk();const hn=Bj(C),Mg=uF({__proto__:null,default:hn},[C]);var xS={exports:{}},lm={},SS={exports:{}},wS={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var ER;function hF(){return ER||(ER=1,(function(e){function t(j,Q){var K=j.length;j.push(Q);e:for(;0<K;){var te=K-1>>>1,X=j[te];if(0<o(X,Q))j[te]=Q,j[K]=X,K=te;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Q=j[0],K=j.pop();if(K!==Q){j[0]=K;e:for(var te=0,X=j.length,J=X>>>1;te<J;){var ne=2*(te+1)-1,oe=j[ne],se=ne+1,re=j[se];if(0>o(oe,K))se<X&&0>o(re,oe)?(j[te]=re,j[se]=K,te=se):(j[te]=oe,j[ne]=K,te=ne);else if(se<X&&0>o(re,K))j[te]=re,j[se]=K,te=se;else break e}}return Q}function o(j,Q){var K=j.sortIndex-Q.sortIndex;return K!==0?K:j.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],c=1,m=null,y=3,v=!1,b=!1,x=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function O(j){for(var Q=n(f);Q!==null;){if(Q.callback===null)r(f);else if(Q.startTime<=j)r(f),Q.sortIndex=Q.expirationTime,t(u,Q);else break;Q=n(f)}}function P(j){if(x=!1,O(j),!b)if(n(u)!==null)b=!0,$||($=!0,M());else{var Q=n(f);Q!==null&&W(P,Q.startTime-j)}}var $=!1,I=-1,F=5,A=-1;function H(){return w?!0:!(e.unstable_now()-A<F)}function L(){if(w=!1,$){var j=e.unstable_now();A=j;var Q=!0;try{e:{b=!1,x&&(x=!1,k(I),I=-1),v=!0;var K=y;try{t:{for(O(j),m=n(u);m!==null&&!(m.expirationTime>j&&H());){var te=m.callback;if(typeof te=="function"){m.callback=null,y=m.priorityLevel;var X=te(m.expirationTime<=j);if(j=e.unstable_now(),typeof X=="function"){m.callback=X,O(j),Q=!0;break t}m===n(u)&&r(u),O(j)}else r(u);m=n(u)}if(m!==null)Q=!0;else{var J=n(f);J!==null&&W(P,J.startTime-j),Q=!1}}break e}finally{m=null,y=K,v=!1}Q=void 0}}finally{Q?M():$=!1}}}var M;if(typeof T=="function")M=function(){T(L)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,B=_.port2;_.port1.onmessage=L,M=function(){B.postMessage(null)}}else M=function(){S(L,0)};function W(j,Q){I=S(function(){j(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(j){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var K=y;y=Q;try{return j()}finally{y=K}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var K=y;y=j;try{return Q()}finally{y=K}},e.unstable_scheduleCallback=function(j,Q,K){var te=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?te+K:te):K=te,j){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=K+X,j={id:c++,callback:Q,priorityLevel:j,startTime:K,expirationTime:X,sortIndex:-1},K>te?(j.sortIndex=K,t(f,j),n(u)===null&&j===n(f)&&(x?(k(I),I=-1):x=!0,W(P,K-te))):(j.sortIndex=X,t(u,j),b||v||(b=!0,$||($=!0,M()))),j},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(j){var Q=y;return function(){var K=y;y=Q;try{return j.apply(this,arguments)}finally{y=K}}}})(wS)),wS}var RR;function mF(){return RR||(RR=1,SS.exports=hF()),SS.exports}var CS={exports:{}},ra={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var OR;function gF(){if(OR)return ra;OR=1;var e=gk();function t(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)f+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(u,f,c){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:u,containerInfo:f,implementation:c}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return ra.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ra.createPortal=function(u,f){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(u,f,null,c)},ra.flushSync=function(u){var f=s.T,c=r.p;try{if(s.T=null,r.p=2,u)return u()}finally{s.T=f,r.p=c,r.d.f()}},ra.preconnect=function(u,f){typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(u,f))},ra.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},ra.preinit=function(u,f){if(typeof u=="string"&&f&&typeof f.as=="string"){var c=f.as,m=l(c,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;c==="style"?r.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:v}):c==="script"&&r.d.X(u,{crossOrigin:m,integrity:y,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ra.preinitModule=function(u,f){if(typeof u=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var c=l(f.as,f.crossOrigin);r.d.M(u,{crossOrigin:c,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(u)},ra.preload=function(u,f){if(typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var c=f.as,m=l(c,f.crossOrigin);r.d.L(u,c,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ra.preloadModule=function(u,f){if(typeof u=="string")if(f){var c=l(f.as,f.crossOrigin);r.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:c,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(u)},ra.requestFormReset=function(u){r.d.r(u)},ra.unstable_batchedUpdates=function(u,f){return u(f)},ra.useFormState=function(u,f,c){return s.H.useFormState(u,f,c)},ra.useFormStatus=function(){return s.H.useHostTransitionStatus()},ra.version="19.1.1",ra}var PR;function _j(){if(PR)return CS.exports;PR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),CS.exports=gF(),CS.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var $R;function yF(){if($R)return lm;$R=1;var e=mF(),t=gk(),n=_j();function r(i){var d="https://react.dev/errors/"+i;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function a(i){var d=i,p=i;if(i.alternate)for(;d.return;)d=d.return;else{i=d;do d=i,(d.flags&4098)!==0&&(p=d.return),i=d.return;while(i)}return d.tag===3?p:null}function s(i){if(i.tag===13){var d=i.memoizedState;if(d===null&&(i=i.alternate,i!==null&&(d=i.memoizedState)),d!==null)return d.dehydrated}return null}function l(i){if(a(i)!==i)throw Error(r(188))}function u(i){var d=i.alternate;if(!d){if(d=a(i),d===null)throw Error(r(188));return d!==i?null:i}for(var p=i,g=d;;){var E=p.return;if(E===null)break;var D=E.alternate;if(D===null){if(g=E.return,g!==null){p=g;continue}break}if(E.child===D.child){for(D=E.child;D;){if(D===p)return l(E),i;if(D===g)return l(E),d;D=D.sibling}throw Error(r(188))}if(p.return!==g.return)p=E,g=D;else{for(var Z=!1,ae=E.child;ae;){if(ae===p){Z=!0,p=E,g=D;break}if(ae===g){Z=!0,g=E,p=D;break}ae=ae.sibling}if(!Z){for(ae=D.child;ae;){if(ae===p){Z=!0,p=D,g=E;break}if(ae===g){Z=!0,g=D,p=E;break}ae=ae.sibling}if(!Z)throw Error(r(189))}}if(p.alternate!==g)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:d}function f(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i;for(i=i.child;i!==null;){if(d=f(i),d!==null)return d;i=i.sibling}return null}var c=Object.assign,m=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(i){return i===null||typeof i!="object"?null:(i=L&&i[L]||i["@@iterator"],typeof i=="function"?i:null)}var _=Symbol.for("react.client.reference");function B(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===_?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case $:return"SuspenseList";case A:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case v:return"Portal";case T:return(i.displayName||"Context")+".Provider";case k:return(i._context.displayName||"Context")+".Consumer";case O:var d=i.render;return i=i.displayName,i||(i=d.displayName||d.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return d=i.displayName||null,d!==null?d:B(i.type)||"Memo";case F:d=i._payload,i=i._init;try{return B(i(d))}catch{}}return null}var W=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},te=[],X=-1;function J(i){return{current:i}}function ne(i){0>X||(i.current=te[X],te[X]=null,X--)}function oe(i,d){X++,te[X]=i.current,i.current=d}var se=J(null),re=J(null),ie=J(null),ce=J(null);function me(i,d){switch(oe(ie,d),oe(re,i),oe(se,null),d.nodeType){case 9:case 11:i=(i=d.documentElement)&&(i=i.namespaceURI)?XE(i):0;break;default:if(i=d.tagName,d=d.namespaceURI)d=XE(d),i=ZE(d,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ne(se),oe(se,i)}function ye(){ne(se),ne(re),ne(ie)}function we(i){i.memoizedState!==null&&oe(ce,i);var d=se.current,p=ZE(d,i.type);d!==p&&(oe(re,i),oe(se,p))}function Ce(i){re.current===i&&(ne(se),ne(re)),ce.current===i&&(ne(ce),nm._currentValue=K)}var $e=Object.prototype.hasOwnProperty,fe=e.unstable_scheduleCallback,Te=e.unstable_cancelCallback,nt=e.unstable_shouldYield,ze=e.unstable_requestPaint,Ae=e.unstable_now,ue=e.unstable_getCurrentPriorityLevel,bt=e.unstable_ImmediatePriority,Be=e.unstable_UserBlockingPriority,it=e.unstable_NormalPriority,pt=e.unstable_LowPriority,_t=e.unstable_IdlePriority,Ht=e.log,at=e.unstable_setDisableYieldValue,Xe=null,ot=null;function Ne(i){if(typeof Ht=="function"&&at(i),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Xe,i)}catch{}}var he=Math.clz32?Math.clz32:Mt,qe=Math.log,Me=Math.LN2;function Mt(i){return i>>>=0,i===0?32:31-(qe(i)/Me|0)|0}var Rt=256,gt=4194304;function ct(i){var d=i&42;if(d!==0)return d;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function At(i,d,p){var g=i.pendingLanes;if(g===0)return 0;var E=0,D=i.suspendedLanes,Z=i.pingedLanes;i=i.warmLanes;var ae=g&134217727;return ae!==0?(g=ae&~D,g!==0?E=ct(g):(Z&=ae,Z!==0?E=ct(Z):p||(p=ae&~i,p!==0&&(E=ct(p))))):(ae=g&~D,ae!==0?E=ct(ae):Z!==0?E=ct(Z):p||(p=g&~i,p!==0&&(E=ct(p)))),E===0?0:d!==0&&d!==E&&(d&D)===0&&(D=E&-E,p=d&-d,D>=p||D===32&&(p&4194048)!==0)?d:E}function Wt(i,d){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&d)===0}function dn(i,d){switch(i){case 1:case 2:case 4:case 8:case 64:return d+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bn(){var i=Rt;return Rt<<=1,(Rt&4194048)===0&&(Rt=256),i}function _n(){var i=gt;return gt<<=1,(gt&62914560)===0&&(gt=4194304),i}function Gn(i){for(var d=[],p=0;31>p;p++)d.push(i);return d}function Jt(i,d){i.pendingLanes|=d,d!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Ln(i,d,p,g,E,D){var Z=i.pendingLanes;i.pendingLanes=p,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=p,i.entangledLanes&=p,i.errorRecoveryDisabledLanes&=p,i.shellSuspendCounter=0;var ae=i.entanglements,xe=i.expirationTimes,Ve=i.hiddenUpdates;for(p=Z&~p;0<p;){var dt=31-he(p),xt=1<<dt;ae[dt]=0,xe[dt]=-1;var Ge=Ve[dt];if(Ge!==null)for(Ve[dt]=null,dt=0;dt<Ge.length;dt++){var Qe=Ge[dt];Qe!==null&&(Qe.lane&=-536870913)}p&=~xt}g!==0&&be(i,g,0),D!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=D&~(Z&~d))}function be(i,d,p){i.pendingLanes|=d,i.suspendedLanes&=~d;var g=31-he(d);i.entangledLanes|=d,i.entanglements[g]=i.entanglements[g]|1073741824|p&4194090}function Bn(i,d){var p=i.entangledLanes|=d;for(i=i.entanglements;p;){var g=31-he(p),E=1<<g;E&d|i[g]&d&&(i[g]|=d),p&=~E}}function Rn(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function en(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function le(){var i=Q.p;return i!==0?i:(i=window.event,i===void 0?32:yR(i.type))}function De(i,d){var p=Q.p;try{return Q.p=i,d()}finally{Q.p=p}}var Le=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Le,ut="__reactProps$"+Le,zt="__reactContainer$"+Le,Ut="__reactEvents$"+Le,jt="__reactListeners$"+Le,mt="__reactHandles$"+Le,Lt="__reactResources$"+Le,Ot="__reactMarker$"+Le;function kt(i){delete i[Ye],delete i[ut],delete i[Ut],delete i[jt],delete i[mt]}function qt(i){var d=i[Ye];if(d)return d;for(var p=i.parentNode;p;){if(d=p[zt]||p[Ye]){if(p=d.alternate,d.child!==null||p!==null&&p.child!==null)for(i=nR(i);i!==null;){if(p=i[Ye])return p;i=nR(i)}return d}i=p,p=i.parentNode}return null}function On(i){if(i=i[Ye]||i[zt]){var d=i.tag;if(d===5||d===6||d===13||d===26||d===27||d===3)return i}return null}function Kn(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i.stateNode;throw Error(r(33))}function xn(i){var d=i[Lt];return d||(d=i[Lt]={hoistableStyles:new Map,hoistableScripts:new Map}),d}function fn(i){i[Ot]=!0}var de=new Set,pe={};function He(i,d){vt(i,d),vt(i+"Capture",d)}function vt(i,d){for(pe[i]=d,i=0;i<d.length;i++)de.add(d[i])}var Ke=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),nn={},cn={};function pn(i){return $e.call(cn,i)?!0:$e.call(nn,i)?!1:Ke.test(i)?cn[i]=!0:(nn[i]=!0,!1)}function ge(i,d,p){if(pn(d))if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(d);return;case"boolean":var g=d.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){i.removeAttribute(d);return}}i.setAttribute(d,""+p)}}function Re(i,d,p){if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(d);return}i.setAttribute(d,""+p)}}function We(i,d,p,g){if(g===null)i.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(p);return}i.setAttributeNS(d,p,""+g)}}var yt,$t;function Tt(i){if(yt===void 0)try{throw Error()}catch(p){var d=p.stack.trim().match(/\n( *(at )?)/);yt=d&&d[1]||"",$t=-1<p.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+yt+i+$t}var wt=!1;function Qt(i,d){if(!i||wt)return"";wt=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(d){var xt=function(){throw Error()};if(Object.defineProperty(xt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xt,[])}catch(Qe){var Ge=Qe}Reflect.construct(i,[],xt)}else{try{xt.call()}catch(Qe){Ge=Qe}i.call(xt.prototype)}}else{try{throw Error()}catch(Qe){Ge=Qe}(xt=i())&&typeof xt.catch=="function"&&xt.catch(function(){})}}catch(Qe){if(Qe&&Ge&&typeof Qe.stack=="string")return[Qe.stack,Ge.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=g.DetermineComponentFrameRoot(),Z=D[0],ae=D[1];if(Z&&ae){var xe=Z.split(`
45
- `),Ve=ae.split(`
46
- `);for(E=g=0;g<xe.length&&!xe[g].includes("DetermineComponentFrameRoot");)g++;for(;E<Ve.length&&!Ve[E].includes("DetermineComponentFrameRoot");)E++;if(g===xe.length||E===Ve.length)for(g=xe.length-1,E=Ve.length-1;1<=g&&0<=E&&xe[g]!==Ve[E];)E--;for(;1<=g&&0<=E;g--,E--)if(xe[g]!==Ve[E]){if(g!==1||E!==1)do if(g--,E--,0>E||xe[g]!==Ve[E]){var dt=`
47
- `+xe[g].replace(" at new "," at ");return i.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",i.displayName)),dt}while(1<=g&&0<=E);break}}}finally{wt=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?Tt(p):""}function Sn(i){switch(i.tag){case 26:case 27:case 5:return Tt(i.type);case 16:return Tt("Lazy");case 13:return Tt("Suspense");case 19:return Tt("SuspenseList");case 0:case 15:return Qt(i.type,!1);case 11:return Qt(i.type.render,!1);case 1:return Qt(i.type,!0);case 31:return Tt("Activity");default:return""}}function hr(i){try{var d="";do d+=Sn(i),i=i.return;while(i);return d}catch(p){return`
48
- Error generating stack: `+p.message+`
49
- `+p.stack}}function ur(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Va(i){var d=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function us(i){var d=Va(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,d),g=""+i[d];if(!i.hasOwnProperty(d)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,D=p.set;return Object.defineProperty(i,d,{configurable:!0,get:function(){return E.call(this)},set:function(Z){g=""+Z,D.call(this,Z)}}),Object.defineProperty(i,d,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(Z){g=""+Z},stopTracking:function(){i._valueTracker=null,delete i[d]}}}}function Is(i){i._valueTracker||(i._valueTracker=us(i))}function mc(i){if(!i)return!1;var d=i._valueTracker;if(!d)return!0;var p=d.getValue(),g="";return i&&(g=Va(i)?i.checked?"true":"false":i.value),i=g,i!==p?(d.setValue(i),!0):!1}function xi(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Ls=/[\n"\\]/g;function $o(i){return i.replace(Ls,function(d){return"\\"+d.charCodeAt(0).toString(16)+" "})}function zs(i,d,p,g,E,D,Z,ae){i.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?i.type=Z:i.removeAttribute("type"),d!=null?Z==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+ur(d)):i.value!==""+ur(d)&&(i.value=""+ur(d)):Z!=="submit"&&Z!=="reset"||i.removeAttribute("value"),d!=null?ds(i,Z,ur(d)):p!=null?ds(i,Z,ur(p)):g!=null&&i.removeAttribute("value"),E==null&&D!=null&&(i.defaultChecked=!!D),E!=null&&(i.checked=E&&typeof E!="function"&&typeof E!="symbol"),ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?i.name=""+ur(ae):i.removeAttribute("name")}function Eu(i,d,p,g,E,D,Z,ae){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(i.type=D),d!=null||p!=null){if(!(D!=="submit"&&D!=="reset"||d!=null))return;p=p!=null?""+ur(p):"",d=d!=null?""+ur(d):p,ae||d===i.value||(i.value=d),i.defaultValue=d}g=g??E,g=typeof g!="function"&&typeof g!="symbol"&&!!g,i.checked=ae?i.checked:!!g,i.defaultChecked=!!g,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(i.name=Z)}function ds(i,d,p){d==="number"&&xi(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function Si(i,d,p,g){if(i=i.options,d){d={};for(var E=0;E<p.length;E++)d["$"+p[E]]=!0;for(p=0;p<i.length;p++)E=d.hasOwnProperty("$"+i[p].value),i[p].selected!==E&&(i[p].selected=E),E&&g&&(i[p].defaultSelected=!0)}else{for(p=""+ur(p),d=null,E=0;E<i.length;E++){if(i[E].value===p){i[E].selected=!0,g&&(i[E].defaultSelected=!0);return}d!==null||i[E].disabled||(d=i[E])}d!==null&&(d.selected=!0)}}function Ru(i,d,p){if(d!=null&&(d=""+ur(d),d!==i.value&&(i.value=d),p==null)){i.defaultValue!==d&&(i.defaultValue=d);return}i.defaultValue=p!=null?""+ur(p):""}function Rl(i,d,p,g){if(d==null){if(g!=null){if(p!=null)throw Error(r(92));if(W(g)){if(1<g.length)throw Error(r(93));g=g[0]}p=g}p==null&&(p=""),d=p}p=ur(d),i.defaultValue=p,g=i.textContent,g===p&&g!==""&&g!==null&&(i.value=g)}function fs(i,d){if(d){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=d;return}}i.textContent=d}var gc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fs(i,d,p){var g=d.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?g?i.setProperty(d,""):d==="float"?i.cssFloat="":i[d]="":g?i.setProperty(d,p):typeof p!="number"||p===0||gc.has(d)?d==="float"?i.cssFloat=p:i[d]=(""+p).trim():i[d]=p+"px"}function Ol(i,d,p){if(d!=null&&typeof d!="object")throw Error(r(62));if(i=i.style,p!=null){for(var g in p)!p.hasOwnProperty(g)||d!=null&&d.hasOwnProperty(g)||(g.indexOf("--")===0?i.setProperty(g,""):g==="float"?i.cssFloat="":i[g]="");for(var E in d)g=d[E],d.hasOwnProperty(E)&&p[E]!==g&&Fs(i,E,g)}else for(var D in d)d.hasOwnProperty(D)&&Fs(i,D,d[D])}function Ou(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yd=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ih=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pl(i){return ih.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var yc=null;function vc(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Bs=null,ps=null;function Pu(i){var d=On(i);if(d&&(i=d.stateNode)){var p=i[ut]||null;e:switch(i=d.stateNode,d.type){case"input":if(zs(i,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),d=p.name,p.type==="radio"&&d!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+$o(""+d)+'"][type="radio"]'),d=0;d<p.length;d++){var g=p[d];if(g!==i&&g.form===i.form){var E=g[ut]||null;if(!E)throw Error(r(90));zs(g,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(d=0;d<p.length;d++)g=p[d],g.form===i.form&&mc(g)}break e;case"textarea":Ru(i,p.value,p.defaultValue);break e;case"select":d=p.value,d!=null&&Si(i,!!p.multiple,d,!1)}}}var $u=!1;function Gd(i,d,p){if($u)return i(d,p);$u=!0;try{var g=i(d);return g}finally{if($u=!1,(Bs!==null||ps!==null)&&(pv(),Bs&&(d=Bs,i=ps,ps=Bs=null,Pu(d),i)))for(d=0;d<i.length;d++)Pu(i[d])}}function $l(i,d){var p=i.stateNode;if(p===null)return null;var g=p[ut]||null;if(g===null)return null;p=g[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,d,typeof p));return p}var wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(wa)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Du=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Du=!1}var wi=null,Au=null,bc=null;function ju(){if(bc)return bc;var i,d=Au,p=d.length,g,E="value"in wi?wi.value:wi.textContent,D=E.length;for(i=0;i<p&&d[i]===E[i];i++);var Z=p-i;for(g=1;g<=Z&&d[p-g]===E[D-g];g++);return bc=E.slice(i,1<g?1-g:void 0)}function xc(i){var d=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&d===13&&(i=13)):i=d,i===10&&(i=13),32<=i||i===13?i:0}function to(){return!0}function Nu(){return!1}function N(i){function d(p,g,E,D,Z){this._reactName=p,this._targetInst=E,this.type=g,this.nativeEvent=D,this.target=Z,this.currentTarget=null;for(var ae in i)i.hasOwnProperty(ae)&&(p=i[ae],this[ae]=p?p(D):D[ae]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?to:Nu,this.isPropagationStopped=Nu,this}return c(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=to)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),d}var vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},no=N(vo),Ha=c({},vo,{view:0,detail:0}),Ee=N(Ha),hs,jn,zo,_s=c({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jl,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==zo&&(zo&&i.type==="mousemove"?(hs=i.screenX-zo.screenX,jn=i.screenY-zo.screenY):jn=hs=0,zo=i),hs)},movementY:function(i){return"movementY"in i?i.movementY:jn}}),Iu=N(_s),Kd=c({},_s,{dataTransfer:0}),Qd=N(Kd),Ze=c({},Ha,{relatedTarget:0}),Lu=N(Ze),zu=c({},vo,{animationName:0,elapsedTime:0,pseudoElement:0}),Sc=N(zu),Xd=c({},vo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Us=N(Xd),Al=c({},vo,{data:0}),ms=N(Al),Vs={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ea={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},sh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lh(i){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(i):(i=sh[i])?!!d[i]:!1}function jl(){return lh}var Zd=c({},Ha,{key:function(i){if(i.key){var d=Vs[i.key]||i.key;if(d!=="Unidentified")return d}return i.type==="keypress"?(i=xc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?ea[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jl,charCode:function(i){return i.type==="keypress"?xc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?xc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Fu=N(Zd),ch=c({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jd=N(ch),uh=c({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jl}),ef=N(uh),Bu=c({},vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),dh=N(Bu),wc=c({},_s,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),fh=N(wc),ph=c({},vo,{newState:0,oldState:0}),hh=N(ph),mh=[9,13,27,32],_u=wa&&"CompositionEvent"in window,Hs=null;wa&&"documentMode"in document&&(Hs=document.documentMode);var gh=wa&&"TextEvent"in window&&!Hs,tf=wa&&(!_u||Hs&&8<Hs&&11>=Hs),nf=" ",rf=!1;function of(i,d){switch(i){case"keyup":return mh.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ws=!1;function yh(i,d){switch(i){case"compositionend":return af(d);case"keypress":return d.which!==32?null:(rf=!0,nf);case"textInput":return i=d.data,i===nf&&rf?null:i;default:return null}}function vh(i,d){if(Ws)return i==="compositionend"||!_u&&of(i,d)?(i=ju(),bc=Au=wi=null,Ws=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return tf&&d.locale!=="ko"?null:d.data;default:return null}}var bh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sf(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d==="input"?!!bh[i.type]:d==="textarea"}function lf(i,d,p,g){Bs?ps?ps.push(g):ps=[g]:Bs=g,d=bv(d,"onChange"),0<d.length&&(p=new no("onChange","change",null,p,g),i.push({event:p,listeners:d}))}var Nl=null,or=null;function gs(i){qE(i,0)}function Gr(i){var d=Kn(i);if(mc(d))return i}function U(i,d){if(i==="change")return d}var G=!1;if(wa){var q;if(wa){var Se="oninput"in document;if(!Se){var Gt=document.createElement("div");Gt.setAttribute("oninput","return;"),Se=typeof Gt.oninput=="function"}q=Se}else q=!1;G=q&&(!document.documentMode||9<document.documentMode)}function Vt(){Nl&&(Nl.detachEvent("onpropertychange",Pn),or=Nl=null)}function Pn(i){if(i.propertyName==="value"&&Gr(or)){var d=[];lf(d,or,i,vc(i)),Gd(gs,d)}}function Qn(i,d,p){i==="focusin"?(Vt(),Nl=d,or=p,Nl.attachEvent("onpropertychange",Pn)):i==="focusout"&&Vt()}function Xn(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Gr(or)}function Yt(i,d){if(i==="click")return Gr(d)}function Tr(i,d){if(i==="input"||i==="change")return Gr(d)}function Mr(i,d){return i===d&&(i!==0||1/i===1/d)||i!==i&&d!==d}var un=typeof Object.is=="function"?Object.is:Mr;function xr(i,d){if(un(i,d))return!0;if(typeof i!="object"||i===null||typeof d!="object"||d===null)return!1;var p=Object.keys(i),g=Object.keys(d);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var E=p[g];if(!$e.call(d,E)||!un(i[E],d[E]))return!1}return!0}function Ur(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Hr(i,d){var p=Ur(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=d&&g>=d)return{node:p,offset:d-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Ur(p)}}function Wa(i,d){return i&&d?i===d?!0:i&&i.nodeType===3?!1:d&&d.nodeType===3?Wa(i,d.parentNode):"contains"in i?i.contains(d):i.compareDocumentPosition?!!(i.compareDocumentPosition(d)&16):!1:!1}function fa(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var d=xi(i.document);d instanceof i.HTMLIFrameElement;){try{var p=typeof d.contentWindow.location.href=="string"}catch{p=!1}if(p)i=d.contentWindow;else break;d=xi(i.document)}return d}function zn(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d&&(d==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||d==="textarea"||i.contentEditable==="true")}var Il=wa&&"documentMode"in document&&11>=document.documentMode,pa=null,ys=null,ta=null,ro=!1;function Ll(i,d,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;ro||pa==null||pa!==xi(g)||(g=pa,"selectionStart"in g&&zn(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),ta&&xr(ta,g)||(ta=g,g=bv(ys,"onSelect"),0<g.length&&(d=new no("onSelect","select",null,d,p),i.push({event:d,listeners:g}),d.target=pa)))}function bo(i,d){var p={};return p[i.toLowerCase()]=d.toLowerCase(),p["Webkit"+i]="webkit"+d,p["Moz"+i]="moz"+d,p}var Cc={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionrun:bo("Transition","TransitionRun"),transitionstart:bo("Transition","TransitionStart"),transitioncancel:bo("Transition","TransitionCancel"),transitionend:bo("Transition","TransitionEnd")},xh={},Iy={};wa&&(Iy=document.createElement("div").style,"AnimationEvent"in window||(delete Cc.animationend.animation,delete Cc.animationiteration.animation,delete Cc.animationstart.animation),"TransitionEvent"in window||delete Cc.transitionend.transition);function zl(i){if(xh[i])return xh[i];if(!Cc[i])return i;var d=Cc[i],p;for(p in d)if(d.hasOwnProperty(p)&&p in Iy)return xh[i]=d[p];return i}var Ly=zl("animationend"),zy=zl("animationiteration"),Fy=zl("animationstart"),Sh=zl("transitionrun"),Hx=zl("transitionstart"),Wx=zl("transitioncancel"),wh=zl("transitionend"),Ch=new Map,cf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");cf.push("scrollEnd");function qa(i,d){Ch.set(i,d),He(d,[i])}var kh=new WeakMap;function na(i,d){if(typeof i=="object"&&i!==null){var p=kh.get(i);return p!==void 0?p:(d={value:i,source:d,stack:hr(d)},kh.set(i,d),d)}return{value:i,source:d,stack:hr(d)}}var ha=[],Ci=0,Uu=0;function kc(){for(var i=Ci,d=Uu=Ci=0;d<i;){var p=ha[d];ha[d++]=null;var g=ha[d];ha[d++]=null;var E=ha[d];ha[d++]=null;var D=ha[d];if(ha[d++]=null,g!==null&&E!==null){var Z=g.pending;Z===null?E.next=E:(E.next=Z.next,Z.next=E),g.pending=E}D!==0&&Vu(p,E,D)}}function ki(i,d,p,g){ha[Ci++]=i,ha[Ci++]=d,ha[Ci++]=p,ha[Ci++]=g,Uu|=g,i.lanes|=g,i=i.alternate,i!==null&&(i.lanes|=g)}function uf(i,d,p,g){return ki(i,d,p,g),Hu(i)}function vs(i,d){return ki(i,null,null,d),Hu(i)}function Vu(i,d,p){i.lanes|=p;var g=i.alternate;g!==null&&(g.lanes|=p);for(var E=!1,D=i.return;D!==null;)D.childLanes|=p,g=D.alternate,g!==null&&(g.childLanes|=p),D.tag===22&&(i=D.stateNode,i===null||i._visibility&1||(E=!0)),i=D,D=D.return;return i.tag===3?(D=i.stateNode,E&&d!==null&&(E=31-he(p),i=D.hiddenUpdates,g=i[E],g===null?i[E]=[d]:g.push(d),d.lane=p|536870912),D):null}function Hu(i){if(50<Gh)throw Gh=0,U1=null,Error(r(185));for(var d=i.return;d!==null;)i=d,d=i.return;return i.tag===3?i.stateNode:null}var Ya={};function df(i,d,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wo(i,d,p,g){return new df(i,d,p,g)}function ff(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ti(i,d){var p=i.alternate;return p===null?(p=Wo(i.tag,d,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=d,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&65011712,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,d=i.dependencies,p.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p.refCleanup=i.refCleanup,p}function By(i,d){i.flags&=65011714;var p=i.alternate;return p===null?(i.childLanes=0,i.lanes=d,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=p.childLanes,i.lanes=p.lanes,i.child=p.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=p.memoizedProps,i.memoizedState=p.memoizedState,i.updateQueue=p.updateQueue,i.type=p.type,d=p.dependencies,i.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext}),i}function pf(i,d,p,g,E,D){var Z=0;if(g=i,typeof i=="function")ff(i)&&(Z=1);else if(typeof i=="string")Z=X3(i,p,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case A:return i=Wo(31,p,d,E),i.elementType=A,i.lanes=D,i;case b:return Mi(p.children,E,D,d);case x:Z=8,E|=24;break;case w:return i=Wo(12,p,d,E|2),i.elementType=w,i.lanes=D,i;case P:return i=Wo(13,p,d,E),i.elementType=P,i.lanes=D,i;case $:return i=Wo(19,p,d,E),i.elementType=$,i.lanes=D,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S:case T:Z=10;break e;case k:Z=9;break e;case O:Z=11;break e;case I:Z=14;break e;case F:Z=16,g=null;break e}Z=29,p=Error(r(130,i===null?"null":typeof i,"")),g=null}return d=Wo(Z,p,d,E),d.elementType=i,d.type=g,d.lanes=D,d}function Mi(i,d,p,g){return i=Wo(7,i,g,d),i.lanes=p,i}function Th(i,d,p){return i=Wo(6,i,null,d),i.lanes=p,i}function Mh(i,d,p){return d=Wo(4,i.children!==null?i.children:[],i.key,d),d.lanes=p,d.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},d}var bs=[],Fl=0,hf=null,Wu=0,ma=[],ga=0,Ga=null,Ka=1,gn="";function Qa(i,d){bs[Fl++]=Wu,bs[Fl++]=hf,hf=i,Wu=d}function _y(i,d,p){ma[ga++]=Ka,ma[ga++]=gn,ma[ga++]=Ga,Ga=i;var g=Ka;i=gn;var E=32-he(g)-1;g&=~(1<<E),p+=1;var D=32-he(d)+E;if(30<D){var Z=E-E%5;D=(g&(1<<Z)-1).toString(32),g>>=Z,E-=Z,Ka=1<<32-he(d)+E|p<<E|g,gn=D+i}else Ka=1<<D|p<<E|g,gn=i}function V(i){i.return!==null&&(Qa(i,1),_y(i,1,0))}function R(i){for(;i===hf;)hf=bs[--Fl],bs[Fl]=null,Wu=bs[--Fl],bs[Fl]=null;for(;i===Ga;)Ga=ma[--ga],ma[ga]=null,gn=ma[--ga],ma[ga]=null,Ka=ma[--ga],ma[ga]=null}var z=null,Y=null,ee=!1,ve=null,Oe=!1,je=Error(r(519));function Ue(i){var d=Error(r(418,""));throw Kr(na(d,i)),je}function Pt(i){var d=i.stateNode,p=i.type,g=i.memoizedProps;switch(d[Ye]=i,d[ut]=g,p){case"dialog":ir("cancel",d),ir("close",d);break;case"iframe":case"object":case"embed":ir("load",d);break;case"video":case"audio":for(p=0;p<Qh.length;p++)ir(Qh[p],d);break;case"source":ir("error",d);break;case"img":case"image":case"link":ir("error",d),ir("load",d);break;case"details":ir("toggle",d);break;case"input":ir("invalid",d),Eu(d,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),Is(d);break;case"select":ir("invalid",d);break;case"textarea":ir("invalid",d),Rl(d,g.value,g.defaultValue,g.children),Is(d)}p=g.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||d.textContent===""+p||g.suppressHydrationWarning===!0||QE(d.textContent,p)?(g.popover!=null&&(ir("beforetoggle",d),ir("toggle",d)),g.onScroll!=null&&ir("scroll",d),g.onScrollEnd!=null&&ir("scrollend",d),g.onClick!=null&&(d.onclick=xv),d=!0):d=!1,d||Ue(i)}function yn(i){for(z=i.return;z;)switch(z.tag){case 5:case 13:Oe=!1;return;case 27:case 3:Oe=!0;return;default:z=z.return}}function Nn(i){if(i!==z)return!1;if(!ee)return yn(i),ee=!0,!1;var d=i.tag,p;if((p=d!==3&&d!==27)&&((p=d===5)&&(p=i.type,p=!(p!=="form"&&p!=="button")||oS(i.type,i.memoizedProps)),p=!p),p&&Y&&Ue(i),yn(i),d===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,d=0;i;){if(i.nodeType===8)if(p=i.data,p==="/$"){if(d===0){Y=Ss(i.nextSibling);break e}d--}else p!=="$"&&p!=="$!"&&p!=="$?"||d++;i=i.nextSibling}Y=null}}else d===27?(d=Y,Fc(i.type)?(i=lS,lS=null,Y=i):Y=d):Y=z?Ss(i.stateNode.nextSibling):null;return!0}function dr(){Y=z=null,ee=!1}function wn(){var i=ve;return i!==null&&(Ra===null?Ra=i:Ra.push.apply(Ra,i),ve=null),i}function Kr(i){ve===null?ve=[i]:ve.push(i)}var Fo=J(null),Ca=null,ka=null;function Ta(i,d,p){oe(Fo,d._currentValue),d._currentValue=p}function Ei(i){i._currentValue=Fo.current,ne(Fo)}function Eh(i,d,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&d)!==d?(i.childLanes|=d,g!==null&&(g.childLanes|=d)):g!==null&&(g.childLanes&d)!==d&&(g.childLanes|=d),i===p)break;i=i.return}}function mf(i,d,p,g){var E=i.child;for(E!==null&&(E.return=i);E!==null;){var D=E.dependencies;if(D!==null){var Z=E.child;D=D.firstContext;e:for(;D!==null;){var ae=D;D=E;for(var xe=0;xe<d.length;xe++)if(ae.context===d[xe]){D.lanes|=p,ae=D.alternate,ae!==null&&(ae.lanes|=p),Eh(D.return,p,i),g||(Z=null);break e}D=ae.next}}else if(E.tag===18){if(Z=E.return,Z===null)throw Error(r(341));Z.lanes|=p,D=Z.alternate,D!==null&&(D.lanes|=p),Eh(Z,p,i),Z=null}else Z=E.child;if(Z!==null)Z.return=E;else for(Z=E;Z!==null;){if(Z===i){Z=null;break}if(E=Z.sibling,E!==null){E.return=Z.return,Z=E;break}Z=Z.return}E=Z}}function qu(i,d,p,g){i=null;for(var E=d,D=!1;E!==null;){if(!D){if((E.flags&524288)!==0)D=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var Z=E.alternate;if(Z===null)throw Error(r(387));if(Z=Z.memoizedProps,Z!==null){var ae=E.type;un(E.pendingProps.value,Z.value)||(i!==null?i.push(ae):i=[ae])}}else if(E===ce.current){if(Z=E.alternate,Z===null)throw Error(r(387));Z.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(nm):i=[nm])}E=E.return}i!==null&&mf(d,i,p,g),d.flags|=262144}function gf(i){for(i=i.firstContext;i!==null;){if(!un(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Bl(i){Ca=i,ka=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function ao(i){return Uy(Ca,i)}function qs(i,d){return Ca===null&&Bl(i),Uy(i,d)}function Uy(i,d){var p=d._currentValue;if(d={context:d,memoizedValue:p,next:null},ka===null){if(i===null)throw Error(r(308));ka=d,i.dependencies={lanes:0,firstContext:d},i.flags|=524288}else ka=ka.next=d;return p}var Q4=typeof AbortController<"u"?AbortController:function(){var i=[],d=this.signal={aborted:!1,addEventListener:function(p,g){i.push(g)}};this.abort=function(){d.aborted=!0,i.forEach(function(p){return p()})}},X4=e.unstable_scheduleCallback,Z4=e.unstable_NormalPriority,Do={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qx(){return{controller:new Q4,data:new Map,refCount:0}}function Rh(i){i.refCount--,i.refCount===0&&X4(Z4,function(){i.controller.abort()})}var Oh=null,Yx=0,yf=0,vf=null;function J4(i,d){if(Oh===null){var p=Oh=[];Yx=0,yf=K1(),vf={status:"pending",value:void 0,then:function(g){p.push(g)}}}return Yx++,d.then(L2,L2),d}function L2(){if(--Yx===0&&Oh!==null){vf!==null&&(vf.status="fulfilled");var i=Oh;Oh=null,yf=0,vf=null;for(var d=0;d<i.length;d++)(0,i[d])()}}function e3(i,d){var p=[],g={status:"pending",value:null,reason:null,then:function(E){p.push(E)}};return i.then(function(){g.status="fulfilled",g.value=d;for(var E=0;E<p.length;E++)(0,p[E])(d)},function(E){for(g.status="rejected",g.reason=E,E=0;E<p.length;E++)(0,p[E])(void 0)}),g}var z2=j.S;j.S=function(i,d){typeof d=="object"&&d!==null&&typeof d.then=="function"&&J4(i,d),z2!==null&&z2(i,d)};var Yu=J(null);function Gx(){var i=Yu.current;return i!==null?i:Vr.pooledCache}function Vy(i,d){d===null?oe(Yu,Yu.current):oe(Yu,d.pool)}function F2(){var i=Gx();return i===null?null:{parent:Do._currentValue,pool:i}}var Ph=Error(r(460)),B2=Error(r(474)),Hy=Error(r(542)),Kx={then:function(){}};function _2(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Wy(){}function U2(i,d,p){switch(p=i[p],p===void 0?i.push(d):p!==d&&(d.then(Wy,Wy),d=p),d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,H2(i),i;default:if(typeof d.status=="string")d.then(Wy,Wy);else{if(i=Vr,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=d,i.status="pending",i.then(function(g){if(d.status==="pending"){var E=d;E.status="fulfilled",E.value=g}},function(g){if(d.status==="pending"){var E=d;E.status="rejected",E.reason=g}})}switch(d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,H2(i),i}throw $h=d,Ph}}var $h=null;function V2(){if($h===null)throw Error(r(459));var i=$h;return $h=null,i}function H2(i){if(i===Ph||i===Hy)throw Error(r(483))}var Tc=!1;function Qx(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xx(i,d){i=i.updateQueue,d.updateQueue===i&&(d.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Mc(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ec(i,d,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(Er&2)!==0){var E=g.pending;return E===null?d.next=d:(d.next=E.next,E.next=d),g.pending=d,d=Hu(i),Vu(i,null,p),d}return ki(i,g,d,p),Hu(i)}function Dh(i,d,p){if(d=d.updateQueue,d!==null&&(d=d.shared,(p&4194048)!==0)){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,Bn(i,p)}}function Zx(i,d){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var E=null,D=null;if(p=p.firstBaseUpdate,p!==null){do{var Z={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};D===null?E=D=Z:D=D.next=Z,p=p.next}while(p!==null);D===null?E=D=d:D=D.next=d}else E=D=d;p={baseState:g.baseState,firstBaseUpdate:E,lastBaseUpdate:D,shared:g.shared,callbacks:g.callbacks},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=d:i.next=d,p.lastBaseUpdate=d}var Jx=!1;function Ah(){if(Jx){var i=vf;if(i!==null)throw i}}function jh(i,d,p,g){Jx=!1;var E=i.updateQueue;Tc=!1;var D=E.firstBaseUpdate,Z=E.lastBaseUpdate,ae=E.shared.pending;if(ae!==null){E.shared.pending=null;var xe=ae,Ve=xe.next;xe.next=null,Z===null?D=Ve:Z.next=Ve,Z=xe;var dt=i.alternate;dt!==null&&(dt=dt.updateQueue,ae=dt.lastBaseUpdate,ae!==Z&&(ae===null?dt.firstBaseUpdate=Ve:ae.next=Ve,dt.lastBaseUpdate=xe))}if(D!==null){var xt=E.baseState;Z=0,dt=Ve=xe=null,ae=D;do{var Ge=ae.lane&-536870913,Qe=Ge!==ae.lane;if(Qe?(mr&Ge)===Ge:(g&Ge)===Ge){Ge!==0&&Ge===yf&&(Jx=!0),dt!==null&&(dt=dt.next={lane:0,tag:ae.tag,payload:ae.payload,callback:null,next:null});e:{var In=i,$n=ae;Ge=d;var Lr=p;switch($n.tag){case 1:if(In=$n.payload,typeof In=="function"){xt=In.call(Lr,xt,Ge);break e}xt=In;break e;case 3:In.flags=In.flags&-65537|128;case 0:if(In=$n.payload,Ge=typeof In=="function"?In.call(Lr,xt,Ge):In,Ge==null)break e;xt=c({},xt,Ge);break e;case 2:Tc=!0}}Ge=ae.callback,Ge!==null&&(i.flags|=64,Qe&&(i.flags|=8192),Qe=E.callbacks,Qe===null?E.callbacks=[Ge]:Qe.push(Ge))}else Qe={lane:Ge,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},dt===null?(Ve=dt=Qe,xe=xt):dt=dt.next=Qe,Z|=Ge;if(ae=ae.next,ae===null){if(ae=E.shared.pending,ae===null)break;Qe=ae,ae=Qe.next,Qe.next=null,E.lastBaseUpdate=Qe,E.shared.pending=null}}while(!0);dt===null&&(xe=xt),E.baseState=xe,E.firstBaseUpdate=Ve,E.lastBaseUpdate=dt,D===null&&(E.shared.lanes=0),Nc|=Z,i.lanes=Z,i.memoizedState=xt}}function W2(i,d){if(typeof i!="function")throw Error(r(191,i));i.call(d)}function q2(i,d){var p=i.callbacks;if(p!==null)for(i.callbacks=null,i=0;i<p.length;i++)W2(p[i],d)}var bf=J(null),qy=J(0);function Y2(i,d){i=Yl,oe(qy,i),oe(bf,d),Yl=i|d.baseLanes}function e1(){oe(qy,Yl),oe(bf,bf.current)}function t1(){Yl=qy.current,ne(bf),ne(qy)}var Rc=0,er=null,Nr=null,To=null,Yy=!1,xf=!1,Gu=!1,Gy=0,Nh=0,Sf=null,t3=0;function xo(){throw Error(r(321))}function n1(i,d){if(d===null)return!1;for(var p=0;p<d.length&&p<i.length;p++)if(!un(i[p],d[p]))return!1;return!0}function r1(i,d,p,g,E,D){return Rc=D,er=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,j.H=i===null||i.memoizedState===null?PM:$M,Gu=!1,D=p(g,E),Gu=!1,xf&&(D=K2(d,p,g,E)),G2(i),D}function G2(i){j.H=ev;var d=Nr!==null&&Nr.next!==null;if(Rc=0,To=Nr=er=null,Yy=!1,Nh=0,Sf=null,d)throw Error(r(300));i===null||Bo||(i=i.dependencies,i!==null&&gf(i)&&(Bo=!0))}function K2(i,d,p,g){er=i;var E=0;do{if(xf&&(Sf=null),Nh=0,xf=!1,25<=E)throw Error(r(301));if(E+=1,To=Nr=null,i.updateQueue!=null){var D=i.updateQueue;D.lastEffect=null,D.events=null,D.stores=null,D.memoCache!=null&&(D.memoCache.index=0)}j.H=l3,D=d(p,g)}while(xf);return D}function n3(){var i=j.H,d=i.useState()[0];return d=typeof d.then=="function"?Ih(d):d,i=i.useState()[0],(Nr!==null?Nr.memoizedState:null)!==i&&(er.flags|=1024),d}function o1(){var i=Gy!==0;return Gy=0,i}function a1(i,d,p){d.updateQueue=i.updateQueue,d.flags&=-2053,i.lanes&=~p}function i1(i){if(Yy){for(i=i.memoizedState;i!==null;){var d=i.queue;d!==null&&(d.pending=null),i=i.next}Yy=!1}Rc=0,To=Nr=er=null,xf=!1,Nh=Gy=0,Sf=null}function Ma(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return To===null?er.memoizedState=To=i:To=To.next=i,To}function Mo(){if(Nr===null){var i=er.alternate;i=i!==null?i.memoizedState:null}else i=Nr.next;var d=To===null?er.memoizedState:To.next;if(d!==null)To=d,Nr=i;else{if(i===null)throw er.alternate===null?Error(r(467)):Error(r(310));Nr=i,i={memoizedState:Nr.memoizedState,baseState:Nr.baseState,baseQueue:Nr.baseQueue,queue:Nr.queue,next:null},To===null?er.memoizedState=To=i:To=To.next=i}return To}function s1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ih(i){var d=Nh;return Nh+=1,Sf===null&&(Sf=[]),i=U2(Sf,i,d),d=er,(To===null?d.memoizedState:To.next)===null&&(d=d.alternate,j.H=d===null||d.memoizedState===null?PM:$M),i}function Ky(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ih(i);if(i.$$typeof===T)return ao(i)}throw Error(r(438,String(i)))}function l1(i){var d=null,p=er.updateQueue;if(p!==null&&(d=p.memoCache),d==null){var g=er.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(d={data:g.data.map(function(E){return E.slice()}),index:0})))}if(d==null&&(d={data:[],index:0}),p===null&&(p=s1(),er.updateQueue=p),p.memoCache=d,p=d.data[d.index],p===void 0)for(p=d.data[d.index]=Array(i),g=0;g<i;g++)p[g]=H;return d.index++,p}function _l(i,d){return typeof d=="function"?d(i):d}function Qy(i){var d=Mo();return c1(d,Nr,i)}function c1(i,d,p){var g=i.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=p;var E=i.baseQueue,D=g.pending;if(D!==null){if(E!==null){var Z=E.next;E.next=D.next,D.next=Z}d.baseQueue=E=D,g.pending=null}if(D=i.baseState,E===null)i.memoizedState=D;else{d=E.next;var ae=Z=null,xe=null,Ve=d,dt=!1;do{var xt=Ve.lane&-536870913;if(xt!==Ve.lane?(mr&xt)===xt:(Rc&xt)===xt){var Ge=Ve.revertLane;if(Ge===0)xe!==null&&(xe=xe.next={lane:0,revertLane:0,action:Ve.action,hasEagerState:Ve.hasEagerState,eagerState:Ve.eagerState,next:null}),xt===yf&&(dt=!0);else if((Rc&Ge)===Ge){Ve=Ve.next,Ge===yf&&(dt=!0);continue}else xt={lane:0,revertLane:Ve.revertLane,action:Ve.action,hasEagerState:Ve.hasEagerState,eagerState:Ve.eagerState,next:null},xe===null?(ae=xe=xt,Z=D):xe=xe.next=xt,er.lanes|=Ge,Nc|=Ge;xt=Ve.action,Gu&&p(D,xt),D=Ve.hasEagerState?Ve.eagerState:p(D,xt)}else Ge={lane:xt,revertLane:Ve.revertLane,action:Ve.action,hasEagerState:Ve.hasEagerState,eagerState:Ve.eagerState,next:null},xe===null?(ae=xe=Ge,Z=D):xe=xe.next=Ge,er.lanes|=xt,Nc|=xt;Ve=Ve.next}while(Ve!==null&&Ve!==d);if(xe===null?Z=D:xe.next=ae,!un(D,i.memoizedState)&&(Bo=!0,dt&&(p=vf,p!==null)))throw p;i.memoizedState=D,i.baseState=Z,i.baseQueue=xe,g.lastRenderedState=D}return E===null&&(g.lanes=0),[i.memoizedState,g.dispatch]}function u1(i){var d=Mo(),p=d.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,E=p.pending,D=d.memoizedState;if(E!==null){p.pending=null;var Z=E=E.next;do D=i(D,Z.action),Z=Z.next;while(Z!==E);un(D,d.memoizedState)||(Bo=!0),d.memoizedState=D,d.baseQueue===null&&(d.baseState=D),p.lastRenderedState=D}return[D,g]}function Q2(i,d,p){var g=er,E=Mo(),D=ee;if(D){if(p===void 0)throw Error(r(407));p=p()}else p=d();var Z=!un((Nr||E).memoizedState,p);Z&&(E.memoizedState=p,Bo=!0),E=E.queue;var ae=J2.bind(null,g,E,i);if(Lh(2048,8,ae,[i]),E.getSnapshot!==d||Z||To!==null&&To.memoizedState.tag&1){if(g.flags|=2048,wf(9,Xy(),Z2.bind(null,g,E,p,d),null),Vr===null)throw Error(r(349));D||(Rc&124)!==0||X2(g,d,p)}return p}function X2(i,d,p){i.flags|=16384,i={getSnapshot:d,value:p},d=er.updateQueue,d===null?(d=s1(),er.updateQueue=d,d.stores=[i]):(p=d.stores,p===null?d.stores=[i]:p.push(i))}function Z2(i,d,p,g){d.value=p,d.getSnapshot=g,eM(d)&&tM(i)}function J2(i,d,p){return p(function(){eM(d)&&tM(i)})}function eM(i){var d=i.getSnapshot;i=i.value;try{var p=d();return!un(i,p)}catch{return!0}}function tM(i){var d=vs(i,2);d!==null&&ti(d,i,2)}function d1(i){var d=Ma();if(typeof i=="function"){var p=i;if(i=p(),Gu){Ne(!0);try{p()}finally{Ne(!1)}}}return d.memoizedState=d.baseState=i,d.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_l,lastRenderedState:i},d}function nM(i,d,p,g){return i.baseState=p,c1(i,Nr,typeof g=="function"?g:_l)}function r3(i,d,p,g,E){if(Jy(i))throw Error(r(485));if(i=d.action,i!==null){var D={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){D.listeners.push(Z)}};j.T!==null?p(!0):D.isTransition=!1,g(D),p=d.pending,p===null?(D.next=d.pending=D,rM(d,D)):(D.next=p.next,d.pending=p.next=D)}}function rM(i,d){var p=d.action,g=d.payload,E=i.state;if(d.isTransition){var D=j.T,Z={};j.T=Z;try{var ae=p(E,g),xe=j.S;xe!==null&&xe(Z,ae),oM(i,d,ae)}catch(Ve){f1(i,d,Ve)}finally{j.T=D}}else try{D=p(E,g),oM(i,d,D)}catch(Ve){f1(i,d,Ve)}}function oM(i,d,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(g){aM(i,d,g)},function(g){return f1(i,d,g)}):aM(i,d,p)}function aM(i,d,p){d.status="fulfilled",d.value=p,iM(d),i.state=p,d=i.pending,d!==null&&(p=d.next,p===d?i.pending=null:(p=p.next,d.next=p,rM(i,p)))}function f1(i,d,p){var g=i.pending;if(i.pending=null,g!==null){g=g.next;do d.status="rejected",d.reason=p,iM(d),d=d.next;while(d!==g)}i.action=null}function iM(i){i=i.listeners;for(var d=0;d<i.length;d++)(0,i[d])()}function sM(i,d){return d}function lM(i,d){if(ee){var p=Vr.formState;if(p!==null){e:{var g=er;if(ee){if(Y){t:{for(var E=Y,D=Oe;E.nodeType!==8;){if(!D){E=null;break t}if(E=Ss(E.nextSibling),E===null){E=null;break t}}D=E.data,E=D==="F!"||D==="F"?E:null}if(E){Y=Ss(E.nextSibling),g=E.data==="F!";break e}}Ue(g)}g=!1}g&&(d=p[0])}}return p=Ma(),p.memoizedState=p.baseState=d,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sM,lastRenderedState:d},p.queue=g,p=EM.bind(null,er,g),g.dispatch=p,g=d1(!1),D=y1.bind(null,er,!1,g.queue),g=Ma(),E={state:d,dispatch:null,action:i,pending:null},g.queue=E,p=r3.bind(null,er,E,D,p),E.dispatch=p,g.memoizedState=i,[d,p,!1]}function cM(i){var d=Mo();return uM(d,Nr,i)}function uM(i,d,p){if(d=c1(i,d,sM)[0],i=Qy(_l)[0],typeof d=="object"&&d!==null&&typeof d.then=="function")try{var g=Ih(d)}catch(Z){throw Z===Ph?Hy:Z}else g=d;d=Mo();var E=d.queue,D=E.dispatch;return p!==d.memoizedState&&(er.flags|=2048,wf(9,Xy(),o3.bind(null,E,p),null)),[g,D,i]}function o3(i,d){i.action=d}function dM(i){var d=Mo(),p=Nr;if(p!==null)return uM(d,p,i);Mo(),d=d.memoizedState,p=Mo();var g=p.queue.dispatch;return p.memoizedState=i,[d,g,!1]}function wf(i,d,p,g){return i={tag:i,create:p,deps:g,inst:d,next:null},d=er.updateQueue,d===null&&(d=s1(),er.updateQueue=d),p=d.lastEffect,p===null?d.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,d.lastEffect=i),i}function Xy(){return{destroy:void 0,resource:void 0}}function fM(){return Mo().memoizedState}function Zy(i,d,p,g){var E=Ma();g=g===void 0?null:g,er.flags|=i,E.memoizedState=wf(1|d,Xy(),p,g)}function Lh(i,d,p,g){var E=Mo();g=g===void 0?null:g;var D=E.memoizedState.inst;Nr!==null&&g!==null&&n1(g,Nr.memoizedState.deps)?E.memoizedState=wf(d,D,p,g):(er.flags|=i,E.memoizedState=wf(1|d,D,p,g))}function pM(i,d){Zy(8390656,8,i,d)}function hM(i,d){Lh(2048,8,i,d)}function mM(i,d){return Lh(4,2,i,d)}function gM(i,d){return Lh(4,4,i,d)}function yM(i,d){if(typeof d=="function"){i=i();var p=d(i);return function(){typeof p=="function"?p():d(null)}}if(d!=null)return i=i(),d.current=i,function(){d.current=null}}function vM(i,d,p){p=p!=null?p.concat([i]):null,Lh(4,4,yM.bind(null,d,i),p)}function p1(){}function bM(i,d){var p=Mo();d=d===void 0?null:d;var g=p.memoizedState;return d!==null&&n1(d,g[1])?g[0]:(p.memoizedState=[i,d],i)}function xM(i,d){var p=Mo();d=d===void 0?null:d;var g=p.memoizedState;if(d!==null&&n1(d,g[1]))return g[0];if(g=i(),Gu){Ne(!0);try{i()}finally{Ne(!1)}}return p.memoizedState=[g,d],g}function h1(i,d,p){return p===void 0||(Rc&1073741824)!==0?i.memoizedState=d:(i.memoizedState=p,i=CE(),er.lanes|=i,Nc|=i,p)}function SM(i,d,p,g){return un(p,d)?p:bf.current!==null?(i=h1(i,p,g),un(i,d)||(Bo=!0),i):(Rc&42)===0?(Bo=!0,i.memoizedState=p):(i=CE(),er.lanes|=i,Nc|=i,d)}function wM(i,d,p,g,E){var D=Q.p;Q.p=D!==0&&8>D?D:8;var Z=j.T,ae={};j.T=ae,y1(i,!1,d,p);try{var xe=E(),Ve=j.S;if(Ve!==null&&Ve(ae,xe),xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var dt=e3(xe,g);zh(i,d,dt,ei(i))}else zh(i,d,g,ei(i))}catch(xt){zh(i,d,{then:function(){},status:"rejected",reason:xt},ei())}finally{Q.p=D,j.T=Z}}function a3(){}function m1(i,d,p,g){if(i.tag!==5)throw Error(r(476));var E=CM(i).queue;wM(i,E,d,K,p===null?a3:function(){return kM(i),p(g)})}function CM(i){var d=i.memoizedState;if(d!==null)return d;d={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_l,lastRenderedState:K},next:null};var p={};return d.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_l,lastRenderedState:p},next:null},i.memoizedState=d,i=i.alternate,i!==null&&(i.memoizedState=d),d}function kM(i){var d=CM(i).next.queue;zh(i,d,{},ei())}function g1(){return ao(nm)}function TM(){return Mo().memoizedState}function MM(){return Mo().memoizedState}function i3(i){for(var d=i.return;d!==null;){switch(d.tag){case 24:case 3:var p=ei();i=Mc(p);var g=Ec(d,i,p);g!==null&&(ti(g,d,p),Dh(g,d,p)),d={cache:qx()},i.payload=d;return}d=d.return}}function s3(i,d,p){var g=ei();p={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Jy(i)?RM(d,p):(p=uf(i,d,p,g),p!==null&&(ti(p,i,g),OM(p,d,g)))}function EM(i,d,p){var g=ei();zh(i,d,p,g)}function zh(i,d,p,g){var E={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Jy(i))RM(d,E);else{var D=i.alternate;if(i.lanes===0&&(D===null||D.lanes===0)&&(D=d.lastRenderedReducer,D!==null))try{var Z=d.lastRenderedState,ae=D(Z,p);if(E.hasEagerState=!0,E.eagerState=ae,un(ae,Z))return ki(i,d,E,0),Vr===null&&kc(),!1}catch{}finally{}if(p=uf(i,d,E,g),p!==null)return ti(p,i,g),OM(p,d,g),!0}return!1}function y1(i,d,p,g){if(g={lane:2,revertLane:K1(),action:g,hasEagerState:!1,eagerState:null,next:null},Jy(i)){if(d)throw Error(r(479))}else d=uf(i,p,g,2),d!==null&&ti(d,i,2)}function Jy(i){var d=i.alternate;return i===er||d!==null&&d===er}function RM(i,d){xf=Yy=!0;var p=i.pending;p===null?d.next=d:(d.next=p.next,p.next=d),i.pending=d}function OM(i,d,p){if((p&4194048)!==0){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,Bn(i,p)}}var ev={readContext:ao,use:Ky,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo},PM={readContext:ao,use:Ky,useCallback:function(i,d){return Ma().memoizedState=[i,d===void 0?null:d],i},useContext:ao,useEffect:pM,useImperativeHandle:function(i,d,p){p=p!=null?p.concat([i]):null,Zy(4194308,4,yM.bind(null,d,i),p)},useLayoutEffect:function(i,d){return Zy(4194308,4,i,d)},useInsertionEffect:function(i,d){Zy(4,2,i,d)},useMemo:function(i,d){var p=Ma();d=d===void 0?null:d;var g=i();if(Gu){Ne(!0);try{i()}finally{Ne(!1)}}return p.memoizedState=[g,d],g},useReducer:function(i,d,p){var g=Ma();if(p!==void 0){var E=p(d);if(Gu){Ne(!0);try{p(d)}finally{Ne(!1)}}}else E=d;return g.memoizedState=g.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},g.queue=i,i=i.dispatch=s3.bind(null,er,i),[g.memoizedState,i]},useRef:function(i){var d=Ma();return i={current:i},d.memoizedState=i},useState:function(i){i=d1(i);var d=i.queue,p=EM.bind(null,er,d);return d.dispatch=p,[i.memoizedState,p]},useDebugValue:p1,useDeferredValue:function(i,d){var p=Ma();return h1(p,i,d)},useTransition:function(){var i=d1(!1);return i=wM.bind(null,er,i.queue,!0,!1),Ma().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,d,p){var g=er,E=Ma();if(ee){if(p===void 0)throw Error(r(407));p=p()}else{if(p=d(),Vr===null)throw Error(r(349));(mr&124)!==0||X2(g,d,p)}E.memoizedState=p;var D={value:p,getSnapshot:d};return E.queue=D,pM(J2.bind(null,g,D,i),[i]),g.flags|=2048,wf(9,Xy(),Z2.bind(null,g,D,p,d),null),p},useId:function(){var i=Ma(),d=Vr.identifierPrefix;if(ee){var p=gn,g=Ka;p=(g&~(1<<32-he(g)-1)).toString(32)+p,d="«"+d+"R"+p,p=Gy++,0<p&&(d+="H"+p.toString(32)),d+="»"}else p=t3++,d="«"+d+"r"+p.toString(32)+"»";return i.memoizedState=d},useHostTransitionStatus:g1,useFormState:lM,useActionState:lM,useOptimistic:function(i){var d=Ma();d.memoizedState=d.baseState=i;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return d.queue=p,d=y1.bind(null,er,!0,p),p.dispatch=d,[i,d]},useMemoCache:l1,useCacheRefresh:function(){return Ma().memoizedState=i3.bind(null,er)}},$M={readContext:ao,use:Ky,useCallback:bM,useContext:ao,useEffect:hM,useImperativeHandle:vM,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:xM,useReducer:Qy,useRef:fM,useState:function(){return Qy(_l)},useDebugValue:p1,useDeferredValue:function(i,d){var p=Mo();return SM(p,Nr.memoizedState,i,d)},useTransition:function(){var i=Qy(_l)[0],d=Mo().memoizedState;return[typeof i=="boolean"?i:Ih(i),d]},useSyncExternalStore:Q2,useId:TM,useHostTransitionStatus:g1,useFormState:cM,useActionState:cM,useOptimistic:function(i,d){var p=Mo();return nM(p,Nr,i,d)},useMemoCache:l1,useCacheRefresh:MM},l3={readContext:ao,use:Ky,useCallback:bM,useContext:ao,useEffect:hM,useImperativeHandle:vM,useInsertionEffect:mM,useLayoutEffect:gM,useMemo:xM,useReducer:u1,useRef:fM,useState:function(){return u1(_l)},useDebugValue:p1,useDeferredValue:function(i,d){var p=Mo();return Nr===null?h1(p,i,d):SM(p,Nr.memoizedState,i,d)},useTransition:function(){var i=u1(_l)[0],d=Mo().memoizedState;return[typeof i=="boolean"?i:Ih(i),d]},useSyncExternalStore:Q2,useId:TM,useHostTransitionStatus:g1,useFormState:dM,useActionState:dM,useOptimistic:function(i,d){var p=Mo();return Nr!==null?nM(p,Nr,i,d):(p.baseState=i,[i,p.queue.dispatch])},useMemoCache:l1,useCacheRefresh:MM},Cf=null,Fh=0;function tv(i){var d=Fh;return Fh+=1,Cf===null&&(Cf=[]),U2(Cf,i,d)}function Bh(i,d){d=d.props.ref,i.ref=d!==void 0?d:null}function nv(i,d){throw d.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(d),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":i)))}function DM(i){var d=i._init;return d(i._payload)}function AM(i){function d(Ie,Pe){if(i){var _e=Ie.deletions;_e===null?(Ie.deletions=[Pe],Ie.flags|=16):_e.push(Pe)}}function p(Ie,Pe){if(!i)return null;for(;Pe!==null;)d(Ie,Pe),Pe=Pe.sibling;return null}function g(Ie){for(var Pe=new Map;Ie!==null;)Ie.key!==null?Pe.set(Ie.key,Ie):Pe.set(Ie.index,Ie),Ie=Ie.sibling;return Pe}function E(Ie,Pe){return Ie=Ti(Ie,Pe),Ie.index=0,Ie.sibling=null,Ie}function D(Ie,Pe,_e){return Ie.index=_e,i?(_e=Ie.alternate,_e!==null?(_e=_e.index,_e<Pe?(Ie.flags|=67108866,Pe):_e):(Ie.flags|=67108866,Pe)):(Ie.flags|=1048576,Pe)}function Z(Ie){return i&&Ie.alternate===null&&(Ie.flags|=67108866),Ie}function ae(Ie,Pe,_e,ht){return Pe===null||Pe.tag!==6?(Pe=Th(_e,Ie.mode,ht),Pe.return=Ie,Pe):(Pe=E(Pe,_e),Pe.return=Ie,Pe)}function xe(Ie,Pe,_e,ht){var an=_e.type;return an===b?dt(Ie,Pe,_e.props.children,ht,_e.key):Pe!==null&&(Pe.elementType===an||typeof an=="object"&&an!==null&&an.$$typeof===F&&DM(an)===Pe.type)?(Pe=E(Pe,_e.props),Bh(Pe,_e),Pe.return=Ie,Pe):(Pe=pf(_e.type,_e.key,_e.props,null,Ie.mode,ht),Bh(Pe,_e),Pe.return=Ie,Pe)}function Ve(Ie,Pe,_e,ht){return Pe===null||Pe.tag!==4||Pe.stateNode.containerInfo!==_e.containerInfo||Pe.stateNode.implementation!==_e.implementation?(Pe=Mh(_e,Ie.mode,ht),Pe.return=Ie,Pe):(Pe=E(Pe,_e.children||[]),Pe.return=Ie,Pe)}function dt(Ie,Pe,_e,ht,an){return Pe===null||Pe.tag!==7?(Pe=Mi(_e,Ie.mode,ht,an),Pe.return=Ie,Pe):(Pe=E(Pe,_e),Pe.return=Ie,Pe)}function xt(Ie,Pe,_e){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number"||typeof Pe=="bigint")return Pe=Th(""+Pe,Ie.mode,_e),Pe.return=Ie,Pe;if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case y:return _e=pf(Pe.type,Pe.key,Pe.props,null,Ie.mode,_e),Bh(_e,Pe),_e.return=Ie,_e;case v:return Pe=Mh(Pe,Ie.mode,_e),Pe.return=Ie,Pe;case F:var ht=Pe._init;return Pe=ht(Pe._payload),xt(Ie,Pe,_e)}if(W(Pe)||M(Pe))return Pe=Mi(Pe,Ie.mode,_e,null),Pe.return=Ie,Pe;if(typeof Pe.then=="function")return xt(Ie,tv(Pe),_e);if(Pe.$$typeof===T)return xt(Ie,qs(Ie,Pe),_e);nv(Ie,Pe)}return null}function Ge(Ie,Pe,_e,ht){var an=Pe!==null?Pe.key:null;if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return an!==null?null:ae(Ie,Pe,""+_e,ht);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case y:return _e.key===an?xe(Ie,Pe,_e,ht):null;case v:return _e.key===an?Ve(Ie,Pe,_e,ht):null;case F:return an=_e._init,_e=an(_e._payload),Ge(Ie,Pe,_e,ht)}if(W(_e)||M(_e))return an!==null?null:dt(Ie,Pe,_e,ht,null);if(typeof _e.then=="function")return Ge(Ie,Pe,tv(_e),ht);if(_e.$$typeof===T)return Ge(Ie,Pe,qs(Ie,_e),ht);nv(Ie,_e)}return null}function Qe(Ie,Pe,_e,ht,an){if(typeof ht=="string"&&ht!==""||typeof ht=="number"||typeof ht=="bigint")return Ie=Ie.get(_e)||null,ae(Pe,Ie,""+ht,an);if(typeof ht=="object"&&ht!==null){switch(ht.$$typeof){case y:return Ie=Ie.get(ht.key===null?_e:ht.key)||null,xe(Pe,Ie,ht,an);case v:return Ie=Ie.get(ht.key===null?_e:ht.key)||null,Ve(Pe,Ie,ht,an);case F:var nr=ht._init;return ht=nr(ht._payload),Qe(Ie,Pe,_e,ht,an)}if(W(ht)||M(ht))return Ie=Ie.get(_e)||null,dt(Pe,Ie,ht,an,null);if(typeof ht.then=="function")return Qe(Ie,Pe,_e,tv(ht),an);if(ht.$$typeof===T)return Qe(Ie,Pe,_e,qs(Pe,ht),an);nv(Pe,ht)}return null}function In(Ie,Pe,_e,ht){for(var an=null,nr=null,mn=Pe,Dn=Pe=0,Uo=null;mn!==null&&Dn<_e.length;Dn++){mn.index>Dn?(Uo=mn,mn=null):Uo=mn.sibling;var yr=Ge(Ie,mn,_e[Dn],ht);if(yr===null){mn===null&&(mn=Uo);break}i&&mn&&yr.alternate===null&&d(Ie,mn),Pe=D(yr,Pe,Dn),nr===null?an=yr:nr.sibling=yr,nr=yr,mn=Uo}if(Dn===_e.length)return p(Ie,mn),ee&&Qa(Ie,Dn),an;if(mn===null){for(;Dn<_e.length;Dn++)mn=xt(Ie,_e[Dn],ht),mn!==null&&(Pe=D(mn,Pe,Dn),nr===null?an=mn:nr.sibling=mn,nr=mn);return ee&&Qa(Ie,Dn),an}for(mn=g(mn);Dn<_e.length;Dn++)Uo=Qe(mn,Ie,Dn,_e[Dn],ht),Uo!==null&&(i&&Uo.alternate!==null&&mn.delete(Uo.key===null?Dn:Uo.key),Pe=D(Uo,Pe,Dn),nr===null?an=Uo:nr.sibling=Uo,nr=Uo);return i&&mn.forEach(function(Hc){return d(Ie,Hc)}),ee&&Qa(Ie,Dn),an}function $n(Ie,Pe,_e,ht){if(_e==null)throw Error(r(151));for(var an=null,nr=null,mn=Pe,Dn=Pe=0,Uo=null,yr=_e.next();mn!==null&&!yr.done;Dn++,yr=_e.next()){mn.index>Dn?(Uo=mn,mn=null):Uo=mn.sibling;var Hc=Ge(Ie,mn,yr.value,ht);if(Hc===null){mn===null&&(mn=Uo);break}i&&mn&&Hc.alternate===null&&d(Ie,mn),Pe=D(Hc,Pe,Dn),nr===null?an=Hc:nr.sibling=Hc,nr=Hc,mn=Uo}if(yr.done)return p(Ie,mn),ee&&Qa(Ie,Dn),an;if(mn===null){for(;!yr.done;Dn++,yr=_e.next())yr=xt(Ie,yr.value,ht),yr!==null&&(Pe=D(yr,Pe,Dn),nr===null?an=yr:nr.sibling=yr,nr=yr);return ee&&Qa(Ie,Dn),an}for(mn=g(mn);!yr.done;Dn++,yr=_e.next())yr=Qe(mn,Ie,Dn,yr.value,ht),yr!==null&&(i&&yr.alternate!==null&&mn.delete(yr.key===null?Dn:yr.key),Pe=D(yr,Pe,Dn),nr===null?an=yr:nr.sibling=yr,nr=yr);return i&&mn.forEach(function(cF){return d(Ie,cF)}),ee&&Qa(Ie,Dn),an}function Lr(Ie,Pe,_e,ht){if(typeof _e=="object"&&_e!==null&&_e.type===b&&_e.key===null&&(_e=_e.props.children),typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case y:e:{for(var an=_e.key;Pe!==null;){if(Pe.key===an){if(an=_e.type,an===b){if(Pe.tag===7){p(Ie,Pe.sibling),ht=E(Pe,_e.props.children),ht.return=Ie,Ie=ht;break e}}else if(Pe.elementType===an||typeof an=="object"&&an!==null&&an.$$typeof===F&&DM(an)===Pe.type){p(Ie,Pe.sibling),ht=E(Pe,_e.props),Bh(ht,_e),ht.return=Ie,Ie=ht;break e}p(Ie,Pe);break}else d(Ie,Pe);Pe=Pe.sibling}_e.type===b?(ht=Mi(_e.props.children,Ie.mode,ht,_e.key),ht.return=Ie,Ie=ht):(ht=pf(_e.type,_e.key,_e.props,null,Ie.mode,ht),Bh(ht,_e),ht.return=Ie,Ie=ht)}return Z(Ie);case v:e:{for(an=_e.key;Pe!==null;){if(Pe.key===an)if(Pe.tag===4&&Pe.stateNode.containerInfo===_e.containerInfo&&Pe.stateNode.implementation===_e.implementation){p(Ie,Pe.sibling),ht=E(Pe,_e.children||[]),ht.return=Ie,Ie=ht;break e}else{p(Ie,Pe);break}else d(Ie,Pe);Pe=Pe.sibling}ht=Mh(_e,Ie.mode,ht),ht.return=Ie,Ie=ht}return Z(Ie);case F:return an=_e._init,_e=an(_e._payload),Lr(Ie,Pe,_e,ht)}if(W(_e))return In(Ie,Pe,_e,ht);if(M(_e)){if(an=M(_e),typeof an!="function")throw Error(r(150));return _e=an.call(_e),$n(Ie,Pe,_e,ht)}if(typeof _e.then=="function")return Lr(Ie,Pe,tv(_e),ht);if(_e.$$typeof===T)return Lr(Ie,Pe,qs(Ie,_e),ht);nv(Ie,_e)}return typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint"?(_e=""+_e,Pe!==null&&Pe.tag===6?(p(Ie,Pe.sibling),ht=E(Pe,_e),ht.return=Ie,Ie=ht):(p(Ie,Pe),ht=Th(_e,Ie.mode,ht),ht.return=Ie,Ie=ht),Z(Ie)):p(Ie,Pe)}return function(Ie,Pe,_e,ht){try{Fh=0;var an=Lr(Ie,Pe,_e,ht);return Cf=null,an}catch(mn){if(mn===Ph||mn===Hy)throw mn;var nr=Wo(29,mn,null,Ie.mode);return nr.lanes=ht,nr.return=Ie,nr}finally{}}}var kf=AM(!0),jM=AM(!1),Ri=J(null),Ys=null;function Oc(i){var d=i.alternate;oe(Ao,Ao.current&1),oe(Ri,i),Ys===null&&(d===null||bf.current!==null||d.memoizedState!==null)&&(Ys=i)}function NM(i){if(i.tag===22){if(oe(Ao,Ao.current),oe(Ri,i),Ys===null){var d=i.alternate;d!==null&&d.memoizedState!==null&&(Ys=i)}}else Pc()}function Pc(){oe(Ao,Ao.current),oe(Ri,Ri.current)}function Ul(i){ne(Ri),Ys===i&&(Ys=null),ne(Ao)}var Ao=J(0);function rv(i){for(var d=i;d!==null;){if(d.tag===13){var p=d.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||sS(p)))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break;for(;d.sibling===null;){if(d.return===null||d.return===i)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}function v1(i,d,p,g){d=i.memoizedState,p=p(g,d),p=p==null?d:c({},d,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var b1={enqueueSetState:function(i,d,p){i=i._reactInternals;var g=ei(),E=Mc(g);E.payload=d,p!=null&&(E.callback=p),d=Ec(i,E,g),d!==null&&(ti(d,i,g),Dh(d,i,g))},enqueueReplaceState:function(i,d,p){i=i._reactInternals;var g=ei(),E=Mc(g);E.tag=1,E.payload=d,p!=null&&(E.callback=p),d=Ec(i,E,g),d!==null&&(ti(d,i,g),Dh(d,i,g))},enqueueForceUpdate:function(i,d){i=i._reactInternals;var p=ei(),g=Mc(p);g.tag=2,d!=null&&(g.callback=d),d=Ec(i,g,p),d!==null&&(ti(d,i,p),Dh(d,i,p))}};function IM(i,d,p,g,E,D,Z){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,D,Z):d.prototype&&d.prototype.isPureReactComponent?!xr(p,g)||!xr(E,D):!0}function LM(i,d,p,g){i=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(p,g),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(p,g),d.state!==i&&b1.enqueueReplaceState(d,d.state,null)}function Ku(i,d){var p=d;if("ref"in d){p={};for(var g in d)g!=="ref"&&(p[g]=d[g])}if(i=i.defaultProps){p===d&&(p=c({},p));for(var E in i)p[E]===void 0&&(p[E]=i[E])}return p}var ov=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function zM(i){ov(i)}function FM(i){console.error(i)}function BM(i){ov(i)}function av(i,d){try{var p=i.onUncaughtError;p(d.value,{componentStack:d.stack})}catch(g){setTimeout(function(){throw g})}}function _M(i,d,p){try{var g=i.onCaughtError;g(p.value,{componentStack:p.stack,errorBoundary:d.tag===1?d.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function x1(i,d,p){return p=Mc(p),p.tag=3,p.payload={element:null},p.callback=function(){av(i,d)},p}function UM(i){return i=Mc(i),i.tag=3,i}function VM(i,d,p,g){var E=p.type.getDerivedStateFromError;if(typeof E=="function"){var D=g.value;i.payload=function(){return E(D)},i.callback=function(){_M(d,p,g)}}var Z=p.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(i.callback=function(){_M(d,p,g),typeof E!="function"&&(Ic===null?Ic=new Set([this]):Ic.add(this));var ae=g.stack;this.componentDidCatch(g.value,{componentStack:ae!==null?ae:""})})}function c3(i,d,p,g,E){if(p.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(d=p.alternate,d!==null&&qu(d,p,E,!0),p=Ri.current,p!==null){switch(p.tag){case 13:return Ys===null?H1():p.alternate===null&&io===0&&(io=3),p.flags&=-257,p.flags|=65536,p.lanes=E,g===Kx?p.flags|=16384:(d=p.updateQueue,d===null?p.updateQueue=new Set([g]):d.add(g),q1(i,g,E)),!1;case 22:return p.flags|=65536,g===Kx?p.flags|=16384:(d=p.updateQueue,d===null?(d={transitions:null,markerInstances:null,retryQueue:new Set([g])},p.updateQueue=d):(p=d.retryQueue,p===null?d.retryQueue=new Set([g]):p.add(g)),q1(i,g,E)),!1}throw Error(r(435,p.tag))}return q1(i,g,E),H1(),!1}if(ee)return d=Ri.current,d!==null?((d.flags&65536)===0&&(d.flags|=256),d.flags|=65536,d.lanes=E,g!==je&&(i=Error(r(422),{cause:g}),Kr(na(i,p)))):(g!==je&&(d=Error(r(423),{cause:g}),Kr(na(d,p))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,g=na(g,p),E=x1(i.stateNode,g,E),Zx(i,E),io!==4&&(io=2)),!1;var D=Error(r(520),{cause:g});if(D=na(D,p),Yh===null?Yh=[D]:Yh.push(D),io!==4&&(io=2),d===null)return!0;g=na(g,p),p=d;do{switch(p.tag){case 3:return p.flags|=65536,i=E&-E,p.lanes|=i,i=x1(p.stateNode,g,i),Zx(p,i),!1;case 1:if(d=p.type,D=p.stateNode,(p.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(Ic===null||!Ic.has(D))))return p.flags|=65536,E&=-E,p.lanes|=E,E=UM(E),VM(E,i,p,g),Zx(p,E),!1}p=p.return}while(p!==null);return!1}var HM=Error(r(461)),Bo=!1;function qo(i,d,p,g){d.child=i===null?jM(d,null,p,g):kf(d,i.child,p,g)}function WM(i,d,p,g,E){p=p.render;var D=d.ref;if("ref"in g){var Z={};for(var ae in g)ae!=="ref"&&(Z[ae]=g[ae])}else Z=g;return Bl(d),g=r1(i,d,p,Z,D,E),ae=o1(),i!==null&&!Bo?(a1(i,d,E),Vl(i,d,E)):(ee&&ae&&V(d),d.flags|=1,qo(i,d,g,E),d.child)}function qM(i,d,p,g,E){if(i===null){var D=p.type;return typeof D=="function"&&!ff(D)&&D.defaultProps===void 0&&p.compare===null?(d.tag=15,d.type=D,YM(i,d,D,g,E)):(i=pf(p.type,null,g,d,d.mode,E),i.ref=d.ref,i.return=d,d.child=i)}if(D=i.child,!R1(i,E)){var Z=D.memoizedProps;if(p=p.compare,p=p!==null?p:xr,p(Z,g)&&i.ref===d.ref)return Vl(i,d,E)}return d.flags|=1,i=Ti(D,g),i.ref=d.ref,i.return=d,d.child=i}function YM(i,d,p,g,E){if(i!==null){var D=i.memoizedProps;if(xr(D,g)&&i.ref===d.ref)if(Bo=!1,d.pendingProps=g=D,R1(i,E))(i.flags&131072)!==0&&(Bo=!0);else return d.lanes=i.lanes,Vl(i,d,E)}return S1(i,d,p,g,E)}function GM(i,d,p){var g=d.pendingProps,E=g.children,D=i!==null?i.memoizedState:null;if(g.mode==="hidden"){if((d.flags&128)!==0){if(g=D!==null?D.baseLanes|p:p,i!==null){for(E=d.child=i.child,D=0;E!==null;)D=D|E.lanes|E.childLanes,E=E.sibling;d.childLanes=D&~g}else d.childLanes=0,d.child=null;return KM(i,d,g,p)}if((p&536870912)!==0)d.memoizedState={baseLanes:0,cachePool:null},i!==null&&Vy(d,D!==null?D.cachePool:null),D!==null?Y2(d,D):e1(),NM(d);else return d.lanes=d.childLanes=536870912,KM(i,d,D!==null?D.baseLanes|p:p,p)}else D!==null?(Vy(d,D.cachePool),Y2(d,D),Pc(),d.memoizedState=null):(i!==null&&Vy(d,null),e1(),Pc());return qo(i,d,E,p),d.child}function KM(i,d,p,g){var E=Gx();return E=E===null?null:{parent:Do._currentValue,pool:E},d.memoizedState={baseLanes:p,cachePool:E},i!==null&&Vy(d,null),e1(),NM(d),i!==null&&qu(i,d,g,!0),null}function iv(i,d){var p=d.ref;if(p===null)i!==null&&i.ref!==null&&(d.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(i===null||i.ref!==p)&&(d.flags|=4194816)}}function S1(i,d,p,g,E){return Bl(d),p=r1(i,d,p,g,void 0,E),g=o1(),i!==null&&!Bo?(a1(i,d,E),Vl(i,d,E)):(ee&&g&&V(d),d.flags|=1,qo(i,d,p,E),d.child)}function QM(i,d,p,g,E,D){return Bl(d),d.updateQueue=null,p=K2(d,g,p,E),G2(i),g=o1(),i!==null&&!Bo?(a1(i,d,D),Vl(i,d,D)):(ee&&g&&V(d),d.flags|=1,qo(i,d,p,D),d.child)}function XM(i,d,p,g,E){if(Bl(d),d.stateNode===null){var D=Ya,Z=p.contextType;typeof Z=="object"&&Z!==null&&(D=ao(Z)),D=new p(g,D),d.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=b1,d.stateNode=D,D._reactInternals=d,D=d.stateNode,D.props=g,D.state=d.memoizedState,D.refs={},Qx(d),Z=p.contextType,D.context=typeof Z=="object"&&Z!==null?ao(Z):Ya,D.state=d.memoizedState,Z=p.getDerivedStateFromProps,typeof Z=="function"&&(v1(d,p,Z,g),D.state=d.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(Z=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),Z!==D.state&&b1.enqueueReplaceState(D,D.state,null),jh(d,g,D,E),Ah(),D.state=d.memoizedState),typeof D.componentDidMount=="function"&&(d.flags|=4194308),g=!0}else if(i===null){D=d.stateNode;var ae=d.memoizedProps,xe=Ku(p,ae);D.props=xe;var Ve=D.context,dt=p.contextType;Z=Ya,typeof dt=="object"&&dt!==null&&(Z=ao(dt));var xt=p.getDerivedStateFromProps;dt=typeof xt=="function"||typeof D.getSnapshotBeforeUpdate=="function",ae=d.pendingProps!==ae,dt||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(ae||Ve!==Z)&&LM(d,D,g,Z),Tc=!1;var Ge=d.memoizedState;D.state=Ge,jh(d,g,D,E),Ah(),Ve=d.memoizedState,ae||Ge!==Ve||Tc?(typeof xt=="function"&&(v1(d,p,xt,g),Ve=d.memoizedState),(xe=Tc||IM(d,p,xe,g,Ge,Ve,Z))?(dt||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(d.flags|=4194308)):(typeof D.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=g,d.memoizedState=Ve),D.props=g,D.state=Ve,D.context=Z,g=xe):(typeof D.componentDidMount=="function"&&(d.flags|=4194308),g=!1)}else{D=d.stateNode,Xx(i,d),Z=d.memoizedProps,dt=Ku(p,Z),D.props=dt,xt=d.pendingProps,Ge=D.context,Ve=p.contextType,xe=Ya,typeof Ve=="object"&&Ve!==null&&(xe=ao(Ve)),ae=p.getDerivedStateFromProps,(Ve=typeof ae=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(Z!==xt||Ge!==xe)&&LM(d,D,g,xe),Tc=!1,Ge=d.memoizedState,D.state=Ge,jh(d,g,D,E),Ah();var Qe=d.memoizedState;Z!==xt||Ge!==Qe||Tc||i!==null&&i.dependencies!==null&&gf(i.dependencies)?(typeof ae=="function"&&(v1(d,p,ae,g),Qe=d.memoizedState),(dt=Tc||IM(d,p,dt,g,Ge,Qe,xe)||i!==null&&i.dependencies!==null&&gf(i.dependencies))?(Ve||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(g,Qe,xe),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(g,Qe,xe)),typeof D.componentDidUpdate=="function"&&(d.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof D.componentDidUpdate!="function"||Z===i.memoizedProps&&Ge===i.memoizedState||(d.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||Z===i.memoizedProps&&Ge===i.memoizedState||(d.flags|=1024),d.memoizedProps=g,d.memoizedState=Qe),D.props=g,D.state=Qe,D.context=xe,g=dt):(typeof D.componentDidUpdate!="function"||Z===i.memoizedProps&&Ge===i.memoizedState||(d.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||Z===i.memoizedProps&&Ge===i.memoizedState||(d.flags|=1024),g=!1)}return D=g,iv(i,d),g=(d.flags&128)!==0,D||g?(D=d.stateNode,p=g&&typeof p.getDerivedStateFromError!="function"?null:D.render(),d.flags|=1,i!==null&&g?(d.child=kf(d,i.child,null,E),d.child=kf(d,null,p,E)):qo(i,d,p,E),d.memoizedState=D.state,i=d.child):i=Vl(i,d,E),i}function ZM(i,d,p,g){return dr(),d.flags|=256,qo(i,d,p,g),d.child}var w1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function C1(i){return{baseLanes:i,cachePool:F2()}}function k1(i,d,p){return i=i!==null?i.childLanes&~p:0,d&&(i|=Oi),i}function JM(i,d,p){var g=d.pendingProps,E=!1,D=(d.flags&128)!==0,Z;if((Z=D)||(Z=i!==null&&i.memoizedState===null?!1:(Ao.current&2)!==0),Z&&(E=!0,d.flags&=-129),Z=(d.flags&32)!==0,d.flags&=-33,i===null){if(ee){if(E?Oc(d):Pc(),ee){var ae=Y,xe;if(xe=ae){e:{for(xe=ae,ae=Oe;xe.nodeType!==8;){if(!ae){ae=null;break e}if(xe=Ss(xe.nextSibling),xe===null){ae=null;break e}}ae=xe}ae!==null?(d.memoizedState={dehydrated:ae,treeContext:Ga!==null?{id:Ka,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},xe=Wo(18,null,null,0),xe.stateNode=ae,xe.return=d,d.child=xe,z=d,Y=null,xe=!0):xe=!1}xe||Ue(d)}if(ae=d.memoizedState,ae!==null&&(ae=ae.dehydrated,ae!==null))return sS(ae)?d.lanes=32:d.lanes=536870912,null;Ul(d)}return ae=g.children,g=g.fallback,E?(Pc(),E=d.mode,ae=sv({mode:"hidden",children:ae},E),g=Mi(g,E,p,null),ae.return=d,g.return=d,ae.sibling=g,d.child=ae,E=d.child,E.memoizedState=C1(p),E.childLanes=k1(i,Z,p),d.memoizedState=w1,g):(Oc(d),T1(d,ae))}if(xe=i.memoizedState,xe!==null&&(ae=xe.dehydrated,ae!==null)){if(D)d.flags&256?(Oc(d),d.flags&=-257,d=M1(i,d,p)):d.memoizedState!==null?(Pc(),d.child=i.child,d.flags|=128,d=null):(Pc(),E=g.fallback,ae=d.mode,g=sv({mode:"visible",children:g.children},ae),E=Mi(E,ae,p,null),E.flags|=2,g.return=d,E.return=d,g.sibling=E,d.child=g,kf(d,i.child,null,p),g=d.child,g.memoizedState=C1(p),g.childLanes=k1(i,Z,p),d.memoizedState=w1,d=E);else if(Oc(d),sS(ae)){if(Z=ae.nextSibling&&ae.nextSibling.dataset,Z)var Ve=Z.dgst;Z=Ve,g=Error(r(419)),g.stack="",g.digest=Z,Kr({value:g,source:null,stack:null}),d=M1(i,d,p)}else if(Bo||qu(i,d,p,!1),Z=(p&i.childLanes)!==0,Bo||Z){if(Z=Vr,Z!==null&&(g=p&-p,g=(g&42)!==0?1:Rn(g),g=(g&(Z.suspendedLanes|p))!==0?0:g,g!==0&&g!==xe.retryLane))throw xe.retryLane=g,vs(i,g),ti(Z,i,g),HM;ae.data==="$?"||H1(),d=M1(i,d,p)}else ae.data==="$?"?(d.flags|=192,d.child=i.child,d=null):(i=xe.treeContext,Y=Ss(ae.nextSibling),z=d,ee=!0,ve=null,Oe=!1,i!==null&&(ma[ga++]=Ka,ma[ga++]=gn,ma[ga++]=Ga,Ka=i.id,gn=i.overflow,Ga=d),d=T1(d,g.children),d.flags|=4096);return d}return E?(Pc(),E=g.fallback,ae=d.mode,xe=i.child,Ve=xe.sibling,g=Ti(xe,{mode:"hidden",children:g.children}),g.subtreeFlags=xe.subtreeFlags&65011712,Ve!==null?E=Ti(Ve,E):(E=Mi(E,ae,p,null),E.flags|=2),E.return=d,g.return=d,g.sibling=E,d.child=g,g=E,E=d.child,ae=i.child.memoizedState,ae===null?ae=C1(p):(xe=ae.cachePool,xe!==null?(Ve=Do._currentValue,xe=xe.parent!==Ve?{parent:Ve,pool:Ve}:xe):xe=F2(),ae={baseLanes:ae.baseLanes|p,cachePool:xe}),E.memoizedState=ae,E.childLanes=k1(i,Z,p),d.memoizedState=w1,g):(Oc(d),p=i.child,i=p.sibling,p=Ti(p,{mode:"visible",children:g.children}),p.return=d,p.sibling=null,i!==null&&(Z=d.deletions,Z===null?(d.deletions=[i],d.flags|=16):Z.push(i)),d.child=p,d.memoizedState=null,p)}function T1(i,d){return d=sv({mode:"visible",children:d},i.mode),d.return=i,i.child=d}function sv(i,d){return i=Wo(22,i,null,d),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function M1(i,d,p){return kf(d,i.child,null,p),i=T1(d,d.pendingProps.children),i.flags|=2,d.memoizedState=null,i}function eE(i,d,p){i.lanes|=d;var g=i.alternate;g!==null&&(g.lanes|=d),Eh(i.return,d,p)}function E1(i,d,p,g,E){var D=i.memoizedState;D===null?i.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:E}:(D.isBackwards=d,D.rendering=null,D.renderingStartTime=0,D.last=g,D.tail=p,D.tailMode=E)}function tE(i,d,p){var g=d.pendingProps,E=g.revealOrder,D=g.tail;if(qo(i,d,g.children,p),g=Ao.current,(g&2)!==0)g=g&1|2,d.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=d.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&eE(i,p,d);else if(i.tag===19)eE(i,p,d);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===d)break e;for(;i.sibling===null;){if(i.return===null||i.return===d)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}switch(oe(Ao,g),E){case"forwards":for(p=d.child,E=null;p!==null;)i=p.alternate,i!==null&&rv(i)===null&&(E=p),p=p.sibling;p=E,p===null?(E=d.child,d.child=null):(E=p.sibling,p.sibling=null),E1(d,!1,E,p,D);break;case"backwards":for(p=null,E=d.child,d.child=null;E!==null;){if(i=E.alternate,i!==null&&rv(i)===null){d.child=E;break}i=E.sibling,E.sibling=p,p=E,E=i}E1(d,!0,p,null,D);break;case"together":E1(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function Vl(i,d,p){if(i!==null&&(d.dependencies=i.dependencies),Nc|=d.lanes,(p&d.childLanes)===0)if(i!==null){if(qu(i,d,p,!1),(p&d.childLanes)===0)return null}else return null;if(i!==null&&d.child!==i.child)throw Error(r(153));if(d.child!==null){for(i=d.child,p=Ti(i,i.pendingProps),d.child=p,p.return=d;i.sibling!==null;)i=i.sibling,p=p.sibling=Ti(i,i.pendingProps),p.return=d;p.sibling=null}return d.child}function R1(i,d){return(i.lanes&d)!==0?!0:(i=i.dependencies,!!(i!==null&&gf(i)))}function u3(i,d,p){switch(d.tag){case 3:me(d,d.stateNode.containerInfo),Ta(d,Do,i.memoizedState.cache),dr();break;case 27:case 5:we(d);break;case 4:me(d,d.stateNode.containerInfo);break;case 10:Ta(d,d.type,d.memoizedProps.value);break;case 13:var g=d.memoizedState;if(g!==null)return g.dehydrated!==null?(Oc(d),d.flags|=128,null):(p&d.child.childLanes)!==0?JM(i,d,p):(Oc(d),i=Vl(i,d,p),i!==null?i.sibling:null);Oc(d);break;case 19:var E=(i.flags&128)!==0;if(g=(p&d.childLanes)!==0,g||(qu(i,d,p,!1),g=(p&d.childLanes)!==0),E){if(g)return tE(i,d,p);d.flags|=128}if(E=d.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),oe(Ao,Ao.current),g)break;return null;case 22:case 23:return d.lanes=0,GM(i,d,p);case 24:Ta(d,Do,i.memoizedState.cache)}return Vl(i,d,p)}function nE(i,d,p){if(i!==null)if(i.memoizedProps!==d.pendingProps)Bo=!0;else{if(!R1(i,p)&&(d.flags&128)===0)return Bo=!1,u3(i,d,p);Bo=(i.flags&131072)!==0}else Bo=!1,ee&&(d.flags&1048576)!==0&&_y(d,Wu,d.index);switch(d.lanes=0,d.tag){case 16:e:{i=d.pendingProps;var g=d.elementType,E=g._init;if(g=E(g._payload),d.type=g,typeof g=="function")ff(g)?(i=Ku(g,i),d.tag=1,d=XM(null,d,g,i,p)):(d.tag=0,d=S1(null,d,g,i,p));else{if(g!=null){if(E=g.$$typeof,E===O){d.tag=11,d=WM(null,d,g,i,p);break e}else if(E===I){d.tag=14,d=qM(null,d,g,i,p);break e}}throw d=B(g)||g,Error(r(306,d,""))}}return d;case 0:return S1(i,d,d.type,d.pendingProps,p);case 1:return g=d.type,E=Ku(g,d.pendingProps),XM(i,d,g,E,p);case 3:e:{if(me(d,d.stateNode.containerInfo),i===null)throw Error(r(387));g=d.pendingProps;var D=d.memoizedState;E=D.element,Xx(i,d),jh(d,g,null,p);var Z=d.memoizedState;if(g=Z.cache,Ta(d,Do,g),g!==D.cache&&mf(d,[Do],p,!0),Ah(),g=Z.element,D.isDehydrated)if(D={element:g,isDehydrated:!1,cache:Z.cache},d.updateQueue.baseState=D,d.memoizedState=D,d.flags&256){d=ZM(i,d,g,p);break e}else if(g!==E){E=na(Error(r(424)),d),Kr(E),d=ZM(i,d,g,p);break e}else{switch(i=d.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Y=Ss(i.firstChild),z=d,ee=!0,ve=null,Oe=!0,p=jM(d,null,g,p),d.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(dr(),g===E){d=Vl(i,d,p);break e}qo(i,d,g,p)}d=d.child}return d;case 26:return iv(i,d),i===null?(p=iR(d.type,null,d.pendingProps,null))?d.memoizedState=p:ee||(p=d.type,i=d.pendingProps,g=Sv(ie.current).createElement(p),g[Ye]=d,g[ut]=i,Go(g,p,i),fn(g),d.stateNode=g):d.memoizedState=iR(d.type,i.memoizedProps,d.pendingProps,i.memoizedState),null;case 27:return we(d),i===null&&ee&&(g=d.stateNode=rR(d.type,d.pendingProps,ie.current),z=d,Oe=!0,E=Y,Fc(d.type)?(lS=E,Y=Ss(g.firstChild)):Y=E),qo(i,d,d.pendingProps.children,p),iv(i,d),i===null&&(d.flags|=4194304),d.child;case 5:return i===null&&ee&&((E=g=Y)&&(g=z3(g,d.type,d.pendingProps,Oe),g!==null?(d.stateNode=g,z=d,Y=Ss(g.firstChild),Oe=!1,E=!0):E=!1),E||Ue(d)),we(d),E=d.type,D=d.pendingProps,Z=i!==null?i.memoizedProps:null,g=D.children,oS(E,D)?g=null:Z!==null&&oS(E,Z)&&(d.flags|=32),d.memoizedState!==null&&(E=r1(i,d,n3,null,null,p),nm._currentValue=E),iv(i,d),qo(i,d,g,p),d.child;case 6:return i===null&&ee&&((i=p=Y)&&(p=F3(p,d.pendingProps,Oe),p!==null?(d.stateNode=p,z=d,Y=null,i=!0):i=!1),i||Ue(d)),null;case 13:return JM(i,d,p);case 4:return me(d,d.stateNode.containerInfo),g=d.pendingProps,i===null?d.child=kf(d,null,g,p):qo(i,d,g,p),d.child;case 11:return WM(i,d,d.type,d.pendingProps,p);case 7:return qo(i,d,d.pendingProps,p),d.child;case 8:return qo(i,d,d.pendingProps.children,p),d.child;case 12:return qo(i,d,d.pendingProps.children,p),d.child;case 10:return g=d.pendingProps,Ta(d,d.type,g.value),qo(i,d,g.children,p),d.child;case 9:return E=d.type._context,g=d.pendingProps.children,Bl(d),E=ao(E),g=g(E),d.flags|=1,qo(i,d,g,p),d.child;case 14:return qM(i,d,d.type,d.pendingProps,p);case 15:return YM(i,d,d.type,d.pendingProps,p);case 19:return tE(i,d,p);case 31:return g=d.pendingProps,p=d.mode,g={mode:g.mode,children:g.children},i===null?(p=sv(g,p),p.ref=d.ref,d.child=p,p.return=d,d=p):(p=Ti(i.child,g),p.ref=d.ref,d.child=p,p.return=d,d=p),d;case 22:return GM(i,d,p);case 24:return Bl(d),g=ao(Do),i===null?(E=Gx(),E===null&&(E=Vr,D=qx(),E.pooledCache=D,D.refCount++,D!==null&&(E.pooledCacheLanes|=p),E=D),d.memoizedState={parent:g,cache:E},Qx(d),Ta(d,Do,E)):((i.lanes&p)!==0&&(Xx(i,d),jh(d,null,null,p),Ah()),E=i.memoizedState,D=d.memoizedState,E.parent!==g?(E={parent:g,cache:g},d.memoizedState=E,d.lanes===0&&(d.memoizedState=d.updateQueue.baseState=E),Ta(d,Do,g)):(g=D.cache,Ta(d,Do,g),g!==E.cache&&mf(d,[Do],p,!0))),qo(i,d,d.pendingProps.children,p),d.child;case 29:throw d.pendingProps}throw Error(r(156,d.tag))}function Hl(i){i.flags|=4}function rE(i,d){if(d.type!=="stylesheet"||(d.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!dR(d)){if(d=Ri.current,d!==null&&((mr&4194048)===mr?Ys!==null:(mr&62914560)!==mr&&(mr&536870912)===0||d!==Ys))throw $h=Kx,B2;i.flags|=8192}}function lv(i,d){d!==null&&(i.flags|=4),i.flags&16384&&(d=i.tag!==22?_n():536870912,i.lanes|=d,Rf|=d)}function _h(i,d){if(!ee)switch(i.tailMode){case"hidden":d=i.tail;for(var p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?d||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function oo(i){var d=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(d)for(var E=i.child;E!==null;)p|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)p|=E.lanes|E.childLanes,g|=E.subtreeFlags,g|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=g,i.childLanes=p,d}function d3(i,d,p){var g=d.pendingProps;switch(R(d),d.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oo(d),null;case 1:return oo(d),null;case 3:return p=d.stateNode,g=null,i!==null&&(g=i.memoizedState.cache),d.memoizedState.cache!==g&&(d.flags|=2048),Ei(Do),ye(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Nn(d)?Hl(d):i===null||i.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,wn())),oo(d),null;case 26:return p=d.memoizedState,i===null?(Hl(d),p!==null?(oo(d),rE(d,p)):(oo(d),d.flags&=-16777217)):p?p!==i.memoizedState?(Hl(d),oo(d),rE(d,p)):(oo(d),d.flags&=-16777217):(i.memoizedProps!==g&&Hl(d),oo(d),d.flags&=-16777217),null;case 27:Ce(d),p=ie.current;var E=d.type;if(i!==null&&d.stateNode!=null)i.memoizedProps!==g&&Hl(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return oo(d),null}i=se.current,Nn(d)?Pt(d):(i=rR(E,g,p),d.stateNode=i,Hl(d))}return oo(d),null;case 5:if(Ce(d),p=d.type,i!==null&&d.stateNode!=null)i.memoizedProps!==g&&Hl(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return oo(d),null}if(i=se.current,Nn(d))Pt(d);else{switch(E=Sv(ie.current),i){case 1:i=E.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:i=E.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":i=E.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":i=E.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":i=E.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof g.is=="string"?E.createElement("select",{is:g.is}):E.createElement("select"),g.multiple?i.multiple=!0:g.size&&(i.size=g.size);break;default:i=typeof g.is=="string"?E.createElement(p,{is:g.is}):E.createElement(p)}}i[Ye]=d,i[ut]=g;e:for(E=d.child;E!==null;){if(E.tag===5||E.tag===6)i.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===d)break e;for(;E.sibling===null;){if(E.return===null||E.return===d)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}d.stateNode=i;e:switch(Go(i,p,g),p){case"button":case"input":case"select":case"textarea":i=!!g.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Hl(d)}}return oo(d),d.flags&=-16777217,null;case 6:if(i&&d.stateNode!=null)i.memoizedProps!==g&&Hl(d);else{if(typeof g!="string"&&d.stateNode===null)throw Error(r(166));if(i=ie.current,Nn(d)){if(i=d.stateNode,p=d.memoizedProps,g=null,E=z,E!==null)switch(E.tag){case 27:case 5:g=E.memoizedProps}i[Ye]=d,i=!!(i.nodeValue===p||g!==null&&g.suppressHydrationWarning===!0||QE(i.nodeValue,p)),i||Ue(d)}else i=Sv(i).createTextNode(g),i[Ye]=d,d.stateNode=i}return oo(d),null;case 13:if(g=d.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=Nn(d),g!==null&&g.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=d.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Ye]=d}else dr(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;oo(d),E=!1}else E=wn(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return d.flags&256?(Ul(d),d):(Ul(d),null)}if(Ul(d),(d.flags&128)!==0)return d.lanes=p,d;if(p=g!==null,i=i!==null&&i.memoizedState!==null,p){g=d.child,E=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(E=g.alternate.memoizedState.cachePool.pool);var D=null;g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(D=g.memoizedState.cachePool.pool),D!==E&&(g.flags|=2048)}return p!==i&&p&&(d.child.flags|=8192),lv(d,d.updateQueue),oo(d),null;case 4:return ye(),i===null&&J1(d.stateNode.containerInfo),oo(d),null;case 10:return Ei(d.type),oo(d),null;case 19:if(ne(Ao),E=d.memoizedState,E===null)return oo(d),null;if(g=(d.flags&128)!==0,D=E.rendering,D===null)if(g)_h(E,!1);else{if(io!==0||i!==null&&(i.flags&128)!==0)for(i=d.child;i!==null;){if(D=rv(i),D!==null){for(d.flags|=128,_h(E,!1),i=D.updateQueue,d.updateQueue=i,lv(d,i),d.subtreeFlags=0,i=p,p=d.child;p!==null;)By(p,i),p=p.sibling;return oe(Ao,Ao.current&1|2),d.child}i=i.sibling}E.tail!==null&&Ae()>dv&&(d.flags|=128,g=!0,_h(E,!1),d.lanes=4194304)}else{if(!g)if(i=rv(D),i!==null){if(d.flags|=128,g=!0,i=i.updateQueue,d.updateQueue=i,lv(d,i),_h(E,!0),E.tail===null&&E.tailMode==="hidden"&&!D.alternate&&!ee)return oo(d),null}else 2*Ae()-E.renderingStartTime>dv&&p!==536870912&&(d.flags|=128,g=!0,_h(E,!1),d.lanes=4194304);E.isBackwards?(D.sibling=d.child,d.child=D):(i=E.last,i!==null?i.sibling=D:d.child=D,E.last=D)}return E.tail!==null?(d=E.tail,E.rendering=d,E.tail=d.sibling,E.renderingStartTime=Ae(),d.sibling=null,i=Ao.current,oe(Ao,g?i&1|2:i&1),d):(oo(d),null);case 22:case 23:return Ul(d),t1(),g=d.memoizedState!==null,i!==null?i.memoizedState!==null!==g&&(d.flags|=8192):g&&(d.flags|=8192),g?(p&536870912)!==0&&(d.flags&128)===0&&(oo(d),d.subtreeFlags&6&&(d.flags|=8192)):oo(d),p=d.updateQueue,p!==null&&lv(d,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==p&&(d.flags|=2048),i!==null&&ne(Yu),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),d.memoizedState.cache!==p&&(d.flags|=2048),Ei(Do),oo(d),null;case 25:return null;case 30:return null}throw Error(r(156,d.tag))}function f3(i,d){switch(R(d),d.tag){case 1:return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 3:return Ei(Do),ye(),i=d.flags,(i&65536)!==0&&(i&128)===0?(d.flags=i&-65537|128,d):null;case 26:case 27:case 5:return Ce(d),null;case 13:if(Ul(d),i=d.memoizedState,i!==null&&i.dehydrated!==null){if(d.alternate===null)throw Error(r(340));dr()}return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 19:return ne(Ao),null;case 4:return ye(),null;case 10:return Ei(d.type),null;case 22:case 23:return Ul(d),t1(),i!==null&&ne(Yu),i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 24:return Ei(Do),null;case 25:return null;default:return null}}function oE(i,d){switch(R(d),d.tag){case 3:Ei(Do),ye();break;case 26:case 27:case 5:Ce(d);break;case 4:ye();break;case 13:Ul(d);break;case 19:ne(Ao);break;case 10:Ei(d.type);break;case 22:case 23:Ul(d),t1(),i!==null&&ne(Yu);break;case 24:Ei(Do)}}function Uh(i,d){try{var p=d.updateQueue,g=p!==null?p.lastEffect:null;if(g!==null){var E=g.next;p=E;do{if((p.tag&i)===i){g=void 0;var D=p.create,Z=p.inst;g=D(),Z.destroy=g}p=p.next}while(p!==E)}}catch(ae){Br(d,d.return,ae)}}function $c(i,d,p){try{var g=d.updateQueue,E=g!==null?g.lastEffect:null;if(E!==null){var D=E.next;g=D;do{if((g.tag&i)===i){var Z=g.inst,ae=Z.destroy;if(ae!==void 0){Z.destroy=void 0,E=d;var xe=p,Ve=ae;try{Ve()}catch(dt){Br(E,xe,dt)}}}g=g.next}while(g!==D)}}catch(dt){Br(d,d.return,dt)}}function aE(i){var d=i.updateQueue;if(d!==null){var p=i.stateNode;try{q2(d,p)}catch(g){Br(i,i.return,g)}}}function iE(i,d,p){p.props=Ku(i.type,i.memoizedProps),p.state=i.memoizedState;try{p.componentWillUnmount()}catch(g){Br(i,d,g)}}function Vh(i,d){try{var p=i.ref;if(p!==null){switch(i.tag){case 26:case 27:case 5:var g=i.stateNode;break;case 30:g=i.stateNode;break;default:g=i.stateNode}typeof p=="function"?i.refCleanup=p(g):p.current=g}}catch(E){Br(i,d,E)}}function Gs(i,d){var p=i.ref,g=i.refCleanup;if(p!==null)if(typeof g=="function")try{g()}catch(E){Br(i,d,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(E){Br(i,d,E)}else p.current=null}function sE(i){var d=i.type,p=i.memoizedProps,g=i.stateNode;try{e:switch(d){case"button":case"input":case"select":case"textarea":p.autoFocus&&g.focus();break e;case"img":p.src?g.src=p.src:p.srcSet&&(g.srcset=p.srcSet)}}catch(E){Br(i,i.return,E)}}function O1(i,d,p){try{var g=i.stateNode;A3(g,i.type,p,d),g[ut]=d}catch(E){Br(i,i.return,E)}}function lE(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Fc(i.type)||i.tag===4}function P1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||lE(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Fc(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function $1(i,d,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,d?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(i,d):(d=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,d.appendChild(i),p=p._reactRootContainer,p!=null||d.onclick!==null||(d.onclick=xv));else if(g!==4&&(g===27&&Fc(i.type)&&(p=i.stateNode,d=null),i=i.child,i!==null))for($1(i,d,p),i=i.sibling;i!==null;)$1(i,d,p),i=i.sibling}function cv(i,d,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,d?p.insertBefore(i,d):p.appendChild(i);else if(g!==4&&(g===27&&Fc(i.type)&&(p=i.stateNode),i=i.child,i!==null))for(cv(i,d,p),i=i.sibling;i!==null;)cv(i,d,p),i=i.sibling}function cE(i){var d=i.stateNode,p=i.memoizedProps;try{for(var g=i.type,E=d.attributes;E.length;)d.removeAttributeNode(E[0]);Go(d,g,p),d[Ye]=i,d[ut]=p}catch(D){Br(i,i.return,D)}}var Wl=!1,So=!1,D1=!1,uE=typeof WeakSet=="function"?WeakSet:Set,_o=null;function p3(i,d){if(i=i.containerInfo,nS=Ev,i=fa(i),zn(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var E=g.anchorOffset,D=g.focusNode;g=g.focusOffset;try{p.nodeType,D.nodeType}catch{p=null;break e}var Z=0,ae=-1,xe=-1,Ve=0,dt=0,xt=i,Ge=null;t:for(;;){for(var Qe;xt!==p||E!==0&&xt.nodeType!==3||(ae=Z+E),xt!==D||g!==0&&xt.nodeType!==3||(xe=Z+g),xt.nodeType===3&&(Z+=xt.nodeValue.length),(Qe=xt.firstChild)!==null;)Ge=xt,xt=Qe;for(;;){if(xt===i)break t;if(Ge===p&&++Ve===E&&(ae=Z),Ge===D&&++dt===g&&(xe=Z),(Qe=xt.nextSibling)!==null)break;xt=Ge,Ge=xt.parentNode}xt=Qe}p=ae===-1||xe===-1?null:{start:ae,end:xe}}else p=null}p=p||{start:0,end:0}}else p=null;for(rS={focusedElem:i,selectionRange:p},Ev=!1,_o=d;_o!==null;)if(d=_o,i=d.child,(d.subtreeFlags&1024)!==0&&i!==null)i.return=d,_o=i;else for(;_o!==null;){switch(d=_o,D=d.alternate,i=d.flags,d.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&D!==null){i=void 0,p=d,E=D.memoizedProps,D=D.memoizedState,g=p.stateNode;try{var In=Ku(p.type,E,p.elementType===p.type);i=g.getSnapshotBeforeUpdate(In,D),g.__reactInternalSnapshotBeforeUpdate=i}catch($n){Br(p,p.return,$n)}}break;case 3:if((i&1024)!==0){if(i=d.stateNode.containerInfo,p=i.nodeType,p===9)iS(i);else if(p===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":iS(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=d.sibling,i!==null){i.return=d.return,_o=i;break}_o=d.return}}function dE(i,d,p){var g=p.flags;switch(p.tag){case 0:case 11:case 15:Dc(i,p),g&4&&Uh(5,p);break;case 1:if(Dc(i,p),g&4)if(i=p.stateNode,d===null)try{i.componentDidMount()}catch(Z){Br(p,p.return,Z)}else{var E=Ku(p.type,d.memoizedProps);d=d.memoizedState;try{i.componentDidUpdate(E,d,i.__reactInternalSnapshotBeforeUpdate)}catch(Z){Br(p,p.return,Z)}}g&64&&aE(p),g&512&&Vh(p,p.return);break;case 3:if(Dc(i,p),g&64&&(i=p.updateQueue,i!==null)){if(d=null,p.child!==null)switch(p.child.tag){case 27:case 5:d=p.child.stateNode;break;case 1:d=p.child.stateNode}try{q2(i,d)}catch(Z){Br(p,p.return,Z)}}break;case 27:d===null&&g&4&&cE(p);case 26:case 5:Dc(i,p),d===null&&g&4&&sE(p),g&512&&Vh(p,p.return);break;case 12:Dc(i,p);break;case 13:Dc(i,p),g&4&&hE(i,p),g&64&&(i=p.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(p=w3.bind(null,p),B3(i,p))));break;case 22:if(g=p.memoizedState!==null||Wl,!g){d=d!==null&&d.memoizedState!==null||So,E=Wl;var D=So;Wl=g,(So=d)&&!D?Ac(i,p,(p.subtreeFlags&8772)!==0):Dc(i,p),Wl=E,So=D}break;case 30:break;default:Dc(i,p)}}function fE(i){var d=i.alternate;d!==null&&(i.alternate=null,fE(d)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(d=i.stateNode,d!==null&&kt(d)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Qr=null,Ea=!1;function ql(i,d,p){for(p=p.child;p!==null;)pE(i,d,p),p=p.sibling}function pE(i,d,p){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Xe,p)}catch{}switch(p.tag){case 26:So||Gs(p,d),ql(i,d,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:So||Gs(p,d);var g=Qr,E=Ea;Fc(p.type)&&(Qr=p.stateNode,Ea=!1),ql(i,d,p),Zh(p.stateNode),Qr=g,Ea=E;break;case 5:So||Gs(p,d);case 6:if(g=Qr,E=Ea,Qr=null,ql(i,d,p),Qr=g,Ea=E,Qr!==null)if(Ea)try{(Qr.nodeType===9?Qr.body:Qr.nodeName==="HTML"?Qr.ownerDocument.body:Qr).removeChild(p.stateNode)}catch(D){Br(p,d,D)}else try{Qr.removeChild(p.stateNode)}catch(D){Br(p,d,D)}break;case 18:Qr!==null&&(Ea?(i=Qr,tR(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,p.stateNode),im(i)):tR(Qr,p.stateNode));break;case 4:g=Qr,E=Ea,Qr=p.stateNode.containerInfo,Ea=!0,ql(i,d,p),Qr=g,Ea=E;break;case 0:case 11:case 14:case 15:So||$c(2,p,d),So||$c(4,p,d),ql(i,d,p);break;case 1:So||(Gs(p,d),g=p.stateNode,typeof g.componentWillUnmount=="function"&&iE(p,d,g)),ql(i,d,p);break;case 21:ql(i,d,p);break;case 22:So=(g=So)||p.memoizedState!==null,ql(i,d,p),So=g;break;default:ql(i,d,p)}}function hE(i,d){if(d.memoizedState===null&&(i=d.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{im(i)}catch(p){Br(d,d.return,p)}}function h3(i){switch(i.tag){case 13:case 19:var d=i.stateNode;return d===null&&(d=i.stateNode=new uE),d;case 22:return i=i.stateNode,d=i._retryCache,d===null&&(d=i._retryCache=new uE),d;default:throw Error(r(435,i.tag))}}function A1(i,d){var p=h3(i);d.forEach(function(g){var E=C3.bind(null,i,g);p.has(g)||(p.add(g),g.then(E,E))})}function Xa(i,d){var p=d.deletions;if(p!==null)for(var g=0;g<p.length;g++){var E=p[g],D=i,Z=d,ae=Z;e:for(;ae!==null;){switch(ae.tag){case 27:if(Fc(ae.type)){Qr=ae.stateNode,Ea=!1;break e}break;case 5:Qr=ae.stateNode,Ea=!1;break e;case 3:case 4:Qr=ae.stateNode.containerInfo,Ea=!0;break e}ae=ae.return}if(Qr===null)throw Error(r(160));pE(D,Z,E),Qr=null,Ea=!1,D=E.alternate,D!==null&&(D.return=null),E.return=null}if(d.subtreeFlags&13878)for(d=d.child;d!==null;)mE(d,i),d=d.sibling}var xs=null;function mE(i,d){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Xa(d,i),Za(i),g&4&&($c(3,i,i.return),Uh(3,i),$c(5,i,i.return));break;case 1:Xa(d,i),Za(i),g&512&&(So||p===null||Gs(p,p.return)),g&64&&Wl&&(i=i.updateQueue,i!==null&&(g=i.callbacks,g!==null&&(p=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=p===null?g:p.concat(g))));break;case 26:var E=xs;if(Xa(d,i),Za(i),g&512&&(So||p===null||Gs(p,p.return)),g&4){var D=p!==null?p.memoizedState:null;if(g=i.memoizedState,p===null)if(g===null)if(i.stateNode===null){e:{g=i.type,p=i.memoizedProps,E=E.ownerDocument||E;t:switch(g){case"title":D=E.getElementsByTagName("title")[0],(!D||D[Ot]||D[Ye]||D.namespaceURI==="http://www.w3.org/2000/svg"||D.hasAttribute("itemprop"))&&(D=E.createElement(g),E.head.insertBefore(D,E.querySelector("head > title"))),Go(D,g,p),D[Ye]=i,fn(D),g=D;break e;case"link":var Z=cR("link","href",E).get(g+(p.href||""));if(Z){for(var ae=0;ae<Z.length;ae++)if(D=Z[ae],D.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&D.getAttribute("rel")===(p.rel==null?null:p.rel)&&D.getAttribute("title")===(p.title==null?null:p.title)&&D.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){Z.splice(ae,1);break t}}D=E.createElement(g),Go(D,g,p),E.head.appendChild(D);break;case"meta":if(Z=cR("meta","content",E).get(g+(p.content||""))){for(ae=0;ae<Z.length;ae++)if(D=Z[ae],D.getAttribute("content")===(p.content==null?null:""+p.content)&&D.getAttribute("name")===(p.name==null?null:p.name)&&D.getAttribute("property")===(p.property==null?null:p.property)&&D.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&D.getAttribute("charset")===(p.charSet==null?null:p.charSet)){Z.splice(ae,1);break t}}D=E.createElement(g),Go(D,g,p),E.head.appendChild(D);break;default:throw Error(r(468,g))}D[Ye]=i,fn(D),g=D}i.stateNode=g}else uR(E,i.type,i.stateNode);else i.stateNode=lR(E,g,i.memoizedProps);else D!==g?(D===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):D.count--,g===null?uR(E,i.type,i.stateNode):lR(E,g,i.memoizedProps)):g===null&&i.stateNode!==null&&O1(i,i.memoizedProps,p.memoizedProps)}break;case 27:Xa(d,i),Za(i),g&512&&(So||p===null||Gs(p,p.return)),p!==null&&g&4&&O1(i,i.memoizedProps,p.memoizedProps);break;case 5:if(Xa(d,i),Za(i),g&512&&(So||p===null||Gs(p,p.return)),i.flags&32){E=i.stateNode;try{fs(E,"")}catch(Qe){Br(i,i.return,Qe)}}g&4&&i.stateNode!=null&&(E=i.memoizedProps,O1(i,E,p!==null?p.memoizedProps:E)),g&1024&&(D1=!0);break;case 6:if(Xa(d,i),Za(i),g&4){if(i.stateNode===null)throw Error(r(162));g=i.memoizedProps,p=i.stateNode;try{p.nodeValue=g}catch(Qe){Br(i,i.return,Qe)}}break;case 3:if(kv=null,E=xs,xs=wv(d.containerInfo),Xa(d,i),xs=E,Za(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{im(d.containerInfo)}catch(Qe){Br(i,i.return,Qe)}D1&&(D1=!1,gE(i));break;case 4:g=xs,xs=wv(i.stateNode.containerInfo),Xa(d,i),Za(i),xs=g;break;case 12:Xa(d,i),Za(i);break;case 13:Xa(d,i),Za(i),i.child.flags&8192&&i.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(F1=Ae()),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,A1(i,g)));break;case 22:E=i.memoizedState!==null;var xe=p!==null&&p.memoizedState!==null,Ve=Wl,dt=So;if(Wl=Ve||E,So=dt||xe,Xa(d,i),So=dt,Wl=Ve,Za(i),g&8192)e:for(d=i.stateNode,d._visibility=E?d._visibility&-2:d._visibility|1,E&&(p===null||xe||Wl||So||Qu(i)),p=null,d=i;;){if(d.tag===5||d.tag===26){if(p===null){xe=p=d;try{if(D=xe.stateNode,E)Z=D.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{ae=xe.stateNode;var xt=xe.memoizedProps.style,Ge=xt!=null&&xt.hasOwnProperty("display")?xt.display:null;ae.style.display=Ge==null||typeof Ge=="boolean"?"":(""+Ge).trim()}}catch(Qe){Br(xe,xe.return,Qe)}}}else if(d.tag===6){if(p===null){xe=d;try{xe.stateNode.nodeValue=E?"":xe.memoizedProps}catch(Qe){Br(xe,xe.return,Qe)}}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===i)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}g&4&&(g=i.updateQueue,g!==null&&(p=g.retryQueue,p!==null&&(g.retryQueue=null,A1(i,p))));break;case 19:Xa(d,i),Za(i),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,A1(i,g)));break;case 30:break;case 21:break;default:Xa(d,i),Za(i)}}function Za(i){var d=i.flags;if(d&2){try{for(var p,g=i.return;g!==null;){if(lE(g)){p=g;break}g=g.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var E=p.stateNode,D=P1(i);cv(i,D,E);break;case 5:var Z=p.stateNode;p.flags&32&&(fs(Z,""),p.flags&=-33);var ae=P1(i);cv(i,ae,Z);break;case 3:case 4:var xe=p.stateNode.containerInfo,Ve=P1(i);$1(i,Ve,xe);break;default:throw Error(r(161))}}catch(dt){Br(i,i.return,dt)}i.flags&=-3}d&4096&&(i.flags&=-4097)}function gE(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var d=i;gE(d),d.tag===5&&d.flags&1024&&d.stateNode.reset(),i=i.sibling}}function Dc(i,d){if(d.subtreeFlags&8772)for(d=d.child;d!==null;)dE(i,d.alternate,d),d=d.sibling}function Qu(i){for(i=i.child;i!==null;){var d=i;switch(d.tag){case 0:case 11:case 14:case 15:$c(4,d,d.return),Qu(d);break;case 1:Gs(d,d.return);var p=d.stateNode;typeof p.componentWillUnmount=="function"&&iE(d,d.return,p),Qu(d);break;case 27:Zh(d.stateNode);case 26:case 5:Gs(d,d.return),Qu(d);break;case 22:d.memoizedState===null&&Qu(d);break;case 30:Qu(d);break;default:Qu(d)}i=i.sibling}}function Ac(i,d,p){for(p=p&&(d.subtreeFlags&8772)!==0,d=d.child;d!==null;){var g=d.alternate,E=i,D=d,Z=D.flags;switch(D.tag){case 0:case 11:case 15:Ac(E,D,p),Uh(4,D);break;case 1:if(Ac(E,D,p),g=D,E=g.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(Ve){Br(g,g.return,Ve)}if(g=D,E=g.updateQueue,E!==null){var ae=g.stateNode;try{var xe=E.shared.hiddenCallbacks;if(xe!==null)for(E.shared.hiddenCallbacks=null,E=0;E<xe.length;E++)W2(xe[E],ae)}catch(Ve){Br(g,g.return,Ve)}}p&&Z&64&&aE(D),Vh(D,D.return);break;case 27:cE(D);case 26:case 5:Ac(E,D,p),p&&g===null&&Z&4&&sE(D),Vh(D,D.return);break;case 12:Ac(E,D,p);break;case 13:Ac(E,D,p),p&&Z&4&&hE(E,D);break;case 22:D.memoizedState===null&&Ac(E,D,p),Vh(D,D.return);break;case 30:break;default:Ac(E,D,p)}d=d.sibling}}function j1(i,d){var p=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),i=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(i=d.memoizedState.cachePool.pool),i!==p&&(i!=null&&i.refCount++,p!=null&&Rh(p))}function N1(i,d){i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&Rh(i))}function Ks(i,d,p,g){if(d.subtreeFlags&10256)for(d=d.child;d!==null;)yE(i,d,p,g),d=d.sibling}function yE(i,d,p,g){var E=d.flags;switch(d.tag){case 0:case 11:case 15:Ks(i,d,p,g),E&2048&&Uh(9,d);break;case 1:Ks(i,d,p,g);break;case 3:Ks(i,d,p,g),E&2048&&(i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&Rh(i)));break;case 12:if(E&2048){Ks(i,d,p,g),i=d.stateNode;try{var D=d.memoizedProps,Z=D.id,ae=D.onPostCommit;typeof ae=="function"&&ae(Z,d.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(xe){Br(d,d.return,xe)}}else Ks(i,d,p,g);break;case 13:Ks(i,d,p,g);break;case 23:break;case 22:D=d.stateNode,Z=d.alternate,d.memoizedState!==null?D._visibility&2?Ks(i,d,p,g):Hh(i,d):D._visibility&2?Ks(i,d,p,g):(D._visibility|=2,Tf(i,d,p,g,(d.subtreeFlags&10256)!==0)),E&2048&&j1(Z,d);break;case 24:Ks(i,d,p,g),E&2048&&N1(d.alternate,d);break;default:Ks(i,d,p,g)}}function Tf(i,d,p,g,E){for(E=E&&(d.subtreeFlags&10256)!==0,d=d.child;d!==null;){var D=i,Z=d,ae=p,xe=g,Ve=Z.flags;switch(Z.tag){case 0:case 11:case 15:Tf(D,Z,ae,xe,E),Uh(8,Z);break;case 23:break;case 22:var dt=Z.stateNode;Z.memoizedState!==null?dt._visibility&2?Tf(D,Z,ae,xe,E):Hh(D,Z):(dt._visibility|=2,Tf(D,Z,ae,xe,E)),E&&Ve&2048&&j1(Z.alternate,Z);break;case 24:Tf(D,Z,ae,xe,E),E&&Ve&2048&&N1(Z.alternate,Z);break;default:Tf(D,Z,ae,xe,E)}d=d.sibling}}function Hh(i,d){if(d.subtreeFlags&10256)for(d=d.child;d!==null;){var p=i,g=d,E=g.flags;switch(g.tag){case 22:Hh(p,g),E&2048&&j1(g.alternate,g);break;case 24:Hh(p,g),E&2048&&N1(g.alternate,g);break;default:Hh(p,g)}d=d.sibling}}var Wh=8192;function Mf(i){if(i.subtreeFlags&Wh)for(i=i.child;i!==null;)vE(i),i=i.sibling}function vE(i){switch(i.tag){case 26:Mf(i),i.flags&Wh&&i.memoizedState!==null&&J3(xs,i.memoizedState,i.memoizedProps);break;case 5:Mf(i);break;case 3:case 4:var d=xs;xs=wv(i.stateNode.containerInfo),Mf(i),xs=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=Wh,Wh=16777216,Mf(i),Wh=d):Mf(i));break;default:Mf(i)}}function bE(i){var d=i.alternate;if(d!==null&&(i=d.child,i!==null)){d.child=null;do d=i.sibling,i.sibling=null,i=d;while(i!==null)}}function qh(i){var d=i.deletions;if((i.flags&16)!==0){if(d!==null)for(var p=0;p<d.length;p++){var g=d[p];_o=g,SE(g,i)}bE(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)xE(i),i=i.sibling}function xE(i){switch(i.tag){case 0:case 11:case 15:qh(i),i.flags&2048&&$c(9,i,i.return);break;case 3:qh(i);break;case 12:qh(i);break;case 22:var d=i.stateNode;i.memoizedState!==null&&d._visibility&2&&(i.return===null||i.return.tag!==13)?(d._visibility&=-3,uv(i)):qh(i);break;default:qh(i)}}function uv(i){var d=i.deletions;if((i.flags&16)!==0){if(d!==null)for(var p=0;p<d.length;p++){var g=d[p];_o=g,SE(g,i)}bE(i)}for(i=i.child;i!==null;){switch(d=i,d.tag){case 0:case 11:case 15:$c(8,d,d.return),uv(d);break;case 22:p=d.stateNode,p._visibility&2&&(p._visibility&=-3,uv(d));break;default:uv(d)}i=i.sibling}}function SE(i,d){for(;_o!==null;){var p=_o;switch(p.tag){case 0:case 11:case 15:$c(8,p,d);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var g=p.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:Rh(p.memoizedState.cache)}if(g=p.child,g!==null)g.return=p,_o=g;else e:for(p=i;_o!==null;){g=_o;var E=g.sibling,D=g.return;if(fE(g),g===p){_o=null;break e}if(E!==null){E.return=D,_o=E;break e}_o=D}}}var m3={getCacheForType:function(i){var d=ao(Do),p=d.data.get(i);return p===void 0&&(p=i(),d.data.set(i,p)),p}},g3=typeof WeakMap=="function"?WeakMap:Map,Er=0,Vr=null,ar=null,mr=0,Rr=0,Ja=null,jc=!1,Ef=!1,I1=!1,Yl=0,io=0,Nc=0,Xu=0,L1=0,Oi=0,Rf=0,Yh=null,Ra=null,z1=!1,F1=0,dv=1/0,fv=null,Ic=null,Yo=0,Lc=null,Of=null,Pf=0,B1=0,_1=null,wE=null,Gh=0,U1=null;function ei(){if((Er&2)!==0&&mr!==0)return mr&-mr;if(j.T!==null){var i=yf;return i!==0?i:K1()}return le()}function CE(){Oi===0&&(Oi=(mr&536870912)===0||ee?bn():536870912);var i=Ri.current;return i!==null&&(i.flags|=32),Oi}function ti(i,d,p){(i===Vr&&(Rr===2||Rr===9)||i.cancelPendingCommit!==null)&&($f(i,0),zc(i,mr,Oi,!1)),Jt(i,p),((Er&2)===0||i!==Vr)&&(i===Vr&&((Er&2)===0&&(Xu|=p),io===4&&zc(i,mr,Oi,!1)),Qs(i))}function kE(i,d,p){if((Er&6)!==0)throw Error(r(327));var g=!p&&(d&124)===0&&(d&i.expiredLanes)===0||Wt(i,d),E=g?b3(i,d):W1(i,d,!0),D=g;do{if(E===0){Ef&&!g&&zc(i,d,0,!1);break}else{if(p=i.current.alternate,D&&!y3(p)){E=W1(i,d,!1),D=!1;continue}if(E===2){if(D=d,i.errorRecoveryDisabledLanes&D)var Z=0;else Z=i.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){d=Z;e:{var ae=i;E=Yh;var xe=ae.current.memoizedState.isDehydrated;if(xe&&($f(ae,Z).flags|=256),Z=W1(ae,Z,!1),Z!==2){if(I1&&!xe){ae.errorRecoveryDisabledLanes|=D,Xu|=D,E=4;break e}D=Ra,Ra=E,D!==null&&(Ra===null?Ra=D:Ra.push.apply(Ra,D))}E=Z}if(D=!1,E!==2)continue}}if(E===1){$f(i,0),zc(i,d,0,!0);break}e:{switch(g=i,D=E,D){case 0:case 1:throw Error(r(345));case 4:if((d&4194048)!==d)break;case 6:zc(g,d,Oi,!jc);break e;case 2:Ra=null;break;case 3:case 5:break;default:throw Error(r(329))}if((d&62914560)===d&&(E=F1+300-Ae(),10<E)){if(zc(g,d,Oi,!jc),At(g,0,!0)!==0)break e;g.timeoutHandle=JE(TE.bind(null,g,p,Ra,fv,z1,d,Oi,Xu,Rf,jc,D,2,-0,0),E);break e}TE(g,p,Ra,fv,z1,d,Oi,Xu,Rf,jc,D,0,-0,0)}}break}while(!0);Qs(i)}function TE(i,d,p,g,E,D,Z,ae,xe,Ve,dt,xt,Ge,Qe){if(i.timeoutHandle=-1,xt=d.subtreeFlags,(xt&8192||(xt&16785408)===16785408)&&(tm={stylesheets:null,count:0,unsuspend:Z3},vE(d),xt=eF(),xt!==null)){i.cancelPendingCommit=xt(DE.bind(null,i,d,D,p,g,E,Z,ae,xe,dt,1,Ge,Qe)),zc(i,D,Z,!Ve);return}DE(i,d,D,p,g,E,Z,ae,xe)}function y3(i){for(var d=i;;){var p=d.tag;if((p===0||p===11||p===15)&&d.flags&16384&&(p=d.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var g=0;g<p.length;g++){var E=p[g],D=E.getSnapshot;E=E.value;try{if(!un(D(),E))return!1}catch{return!1}}if(p=d.child,d.subtreeFlags&16384&&p!==null)p.return=d,d=p;else{if(d===i)break;for(;d.sibling===null;){if(d.return===null||d.return===i)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function zc(i,d,p,g){d&=~L1,d&=~Xu,i.suspendedLanes|=d,i.pingedLanes&=~d,g&&(i.warmLanes|=d),g=i.expirationTimes;for(var E=d;0<E;){var D=31-he(E),Z=1<<D;g[D]=-1,E&=~Z}p!==0&&be(i,p,d)}function pv(){return(Er&6)===0?(Kh(0),!1):!0}function V1(){if(ar!==null){if(Rr===0)var i=ar.return;else i=ar,ka=Ca=null,i1(i),Cf=null,Fh=0,i=ar;for(;i!==null;)oE(i.alternate,i),i=i.return;ar=null}}function $f(i,d){var p=i.timeoutHandle;p!==-1&&(i.timeoutHandle=-1,N3(p)),p=i.cancelPendingCommit,p!==null&&(i.cancelPendingCommit=null,p()),V1(),Vr=i,ar=p=Ti(i.current,null),mr=d,Rr=0,Ja=null,jc=!1,Ef=Wt(i,d),I1=!1,Rf=Oi=L1=Xu=Nc=io=0,Ra=Yh=null,z1=!1,(d&8)!==0&&(d|=d&32);var g=i.entangledLanes;if(g!==0)for(i=i.entanglements,g&=d;0<g;){var E=31-he(g),D=1<<E;d|=i[E],g&=~D}return Yl=d,kc(),p}function ME(i,d){er=null,j.H=ev,d===Ph||d===Hy?(d=V2(),Rr=3):d===B2?(d=V2(),Rr=4):Rr=d===HM?8:d!==null&&typeof d=="object"&&typeof d.then=="function"?6:1,Ja=d,ar===null&&(io=1,av(i,na(d,i.current)))}function EE(){var i=j.H;return j.H=ev,i===null?ev:i}function RE(){var i=j.A;return j.A=m3,i}function H1(){io=4,jc||(mr&4194048)!==mr&&Ri.current!==null||(Ef=!0),(Nc&134217727)===0&&(Xu&134217727)===0||Vr===null||zc(Vr,mr,Oi,!1)}function W1(i,d,p){var g=Er;Er|=2;var E=EE(),D=RE();(Vr!==i||mr!==d)&&(fv=null,$f(i,d)),d=!1;var Z=io;e:do try{if(Rr!==0&&ar!==null){var ae=ar,xe=Ja;switch(Rr){case 8:V1(),Z=6;break e;case 3:case 2:case 9:case 6:Ri.current===null&&(d=!0);var Ve=Rr;if(Rr=0,Ja=null,Df(i,ae,xe,Ve),p&&Ef){Z=0;break e}break;default:Ve=Rr,Rr=0,Ja=null,Df(i,ae,xe,Ve)}}v3(),Z=io;break}catch(dt){ME(i,dt)}while(!0);return d&&i.shellSuspendCounter++,ka=Ca=null,Er=g,j.H=E,j.A=D,ar===null&&(Vr=null,mr=0,kc()),Z}function v3(){for(;ar!==null;)OE(ar)}function b3(i,d){var p=Er;Er|=2;var g=EE(),E=RE();Vr!==i||mr!==d?(fv=null,dv=Ae()+500,$f(i,d)):Ef=Wt(i,d);e:do try{if(Rr!==0&&ar!==null){d=ar;var D=Ja;t:switch(Rr){case 1:Rr=0,Ja=null,Df(i,d,D,1);break;case 2:case 9:if(_2(D)){Rr=0,Ja=null,PE(d);break}d=function(){Rr!==2&&Rr!==9||Vr!==i||(Rr=7),Qs(i)},D.then(d,d);break e;case 3:Rr=7;break e;case 4:Rr=5;break e;case 7:_2(D)?(Rr=0,Ja=null,PE(d)):(Rr=0,Ja=null,Df(i,d,D,7));break;case 5:var Z=null;switch(ar.tag){case 26:Z=ar.memoizedState;case 5:case 27:var ae=ar;if(!Z||dR(Z)){Rr=0,Ja=null;var xe=ae.sibling;if(xe!==null)ar=xe;else{var Ve=ae.return;Ve!==null?(ar=Ve,hv(Ve)):ar=null}break t}}Rr=0,Ja=null,Df(i,d,D,5);break;case 6:Rr=0,Ja=null,Df(i,d,D,6);break;case 8:V1(),io=6;break e;default:throw Error(r(462))}}x3();break}catch(dt){ME(i,dt)}while(!0);return ka=Ca=null,j.H=g,j.A=E,Er=p,ar!==null?0:(Vr=null,mr=0,kc(),io)}function x3(){for(;ar!==null&&!nt();)OE(ar)}function OE(i){var d=nE(i.alternate,i,Yl);i.memoizedProps=i.pendingProps,d===null?hv(i):ar=d}function PE(i){var d=i,p=d.alternate;switch(d.tag){case 15:case 0:d=QM(p,d,d.pendingProps,d.type,void 0,mr);break;case 11:d=QM(p,d,d.pendingProps,d.type.render,d.ref,mr);break;case 5:i1(d);default:oE(p,d),d=ar=By(d,Yl),d=nE(p,d,Yl)}i.memoizedProps=i.pendingProps,d===null?hv(i):ar=d}function Df(i,d,p,g){ka=Ca=null,i1(d),Cf=null,Fh=0;var E=d.return;try{if(c3(i,E,d,p,mr)){io=1,av(i,na(p,i.current)),ar=null;return}}catch(D){if(E!==null)throw ar=E,D;io=1,av(i,na(p,i.current)),ar=null;return}d.flags&32768?(ee||g===1?i=!0:Ef||(mr&536870912)!==0?i=!1:(jc=i=!0,(g===2||g===9||g===3||g===6)&&(g=Ri.current,g!==null&&g.tag===13&&(g.flags|=16384))),$E(d,i)):hv(d)}function hv(i){var d=i;do{if((d.flags&32768)!==0){$E(d,jc);return}i=d.return;var p=d3(d.alternate,d,Yl);if(p!==null){ar=p;return}if(d=d.sibling,d!==null){ar=d;return}ar=d=i}while(d!==null);io===0&&(io=5)}function $E(i,d){do{var p=f3(i.alternate,i);if(p!==null){p.flags&=32767,ar=p;return}if(p=i.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!d&&(i=i.sibling,i!==null)){ar=i;return}ar=i=p}while(i!==null);io=6,ar=null}function DE(i,d,p,g,E,D,Z,ae,xe){i.cancelPendingCommit=null;do mv();while(Yo!==0);if((Er&6)!==0)throw Error(r(327));if(d!==null){if(d===i.current)throw Error(r(177));if(D=d.lanes|d.childLanes,D|=Uu,Ln(i,p,D,Z,ae,xe),i===Vr&&(ar=Vr=null,mr=0),Of=d,Lc=i,Pf=p,B1=D,_1=E,wE=g,(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,k3(it,function(){return LE(),null})):(i.callbackNode=null,i.callbackPriority=0),g=(d.flags&13878)!==0,(d.subtreeFlags&13878)!==0||g){g=j.T,j.T=null,E=Q.p,Q.p=2,Z=Er,Er|=4;try{p3(i,d,p)}finally{Er=Z,Q.p=E,j.T=g}}Yo=1,AE(),jE(),NE()}}function AE(){if(Yo===1){Yo=0;var i=Lc,d=Of,p=(d.flags&13878)!==0;if((d.subtreeFlags&13878)!==0||p){p=j.T,j.T=null;var g=Q.p;Q.p=2;var E=Er;Er|=4;try{mE(d,i);var D=rS,Z=fa(i.containerInfo),ae=D.focusedElem,xe=D.selectionRange;if(Z!==ae&&ae&&ae.ownerDocument&&Wa(ae.ownerDocument.documentElement,ae)){if(xe!==null&&zn(ae)){var Ve=xe.start,dt=xe.end;if(dt===void 0&&(dt=Ve),"selectionStart"in ae)ae.selectionStart=Ve,ae.selectionEnd=Math.min(dt,ae.value.length);else{var xt=ae.ownerDocument||document,Ge=xt&&xt.defaultView||window;if(Ge.getSelection){var Qe=Ge.getSelection(),In=ae.textContent.length,$n=Math.min(xe.start,In),Lr=xe.end===void 0?$n:Math.min(xe.end,In);!Qe.extend&&$n>Lr&&(Z=Lr,Lr=$n,$n=Z);var Ie=Hr(ae,$n),Pe=Hr(ae,Lr);if(Ie&&Pe&&(Qe.rangeCount!==1||Qe.anchorNode!==Ie.node||Qe.anchorOffset!==Ie.offset||Qe.focusNode!==Pe.node||Qe.focusOffset!==Pe.offset)){var _e=xt.createRange();_e.setStart(Ie.node,Ie.offset),Qe.removeAllRanges(),$n>Lr?(Qe.addRange(_e),Qe.extend(Pe.node,Pe.offset)):(_e.setEnd(Pe.node,Pe.offset),Qe.addRange(_e))}}}}for(xt=[],Qe=ae;Qe=Qe.parentNode;)Qe.nodeType===1&&xt.push({element:Qe,left:Qe.scrollLeft,top:Qe.scrollTop});for(typeof ae.focus=="function"&&ae.focus(),ae=0;ae<xt.length;ae++){var ht=xt[ae];ht.element.scrollLeft=ht.left,ht.element.scrollTop=ht.top}}Ev=!!nS,rS=nS=null}finally{Er=E,Q.p=g,j.T=p}}i.current=d,Yo=2}}function jE(){if(Yo===2){Yo=0;var i=Lc,d=Of,p=(d.flags&8772)!==0;if((d.subtreeFlags&8772)!==0||p){p=j.T,j.T=null;var g=Q.p;Q.p=2;var E=Er;Er|=4;try{dE(i,d.alternate,d)}finally{Er=E,Q.p=g,j.T=p}}Yo=3}}function NE(){if(Yo===4||Yo===3){Yo=0,ze();var i=Lc,d=Of,p=Pf,g=wE;(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?Yo=5:(Yo=0,Of=Lc=null,IE(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(Ic=null),en(p),d=d.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Xe,d,void 0,(d.current.flags&128)===128)}catch{}if(g!==null){d=j.T,E=Q.p,Q.p=2,j.T=null;try{for(var D=i.onRecoverableError,Z=0;Z<g.length;Z++){var ae=g[Z];D(ae.value,{componentStack:ae.stack})}}finally{j.T=d,Q.p=E}}(Pf&3)!==0&&mv(),Qs(i),E=i.pendingLanes,(p&4194090)!==0&&(E&42)!==0?i===U1?Gh++:(Gh=0,U1=i):Gh=0,Kh(0)}}function IE(i,d){(i.pooledCacheLanes&=d)===0&&(d=i.pooledCache,d!=null&&(i.pooledCache=null,Rh(d)))}function mv(i){return AE(),jE(),NE(),LE()}function LE(){if(Yo!==5)return!1;var i=Lc,d=B1;B1=0;var p=en(Pf),g=j.T,E=Q.p;try{Q.p=32>p?32:p,j.T=null,p=_1,_1=null;var D=Lc,Z=Pf;if(Yo=0,Of=Lc=null,Pf=0,(Er&6)!==0)throw Error(r(331));var ae=Er;if(Er|=4,xE(D.current),yE(D,D.current,Z,p),Er=ae,Kh(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Xe,D)}catch{}return!0}finally{Q.p=E,j.T=g,IE(i,d)}}function zE(i,d,p){d=na(p,d),d=x1(i.stateNode,d,2),i=Ec(i,d,2),i!==null&&(Jt(i,2),Qs(i))}function Br(i,d,p){if(i.tag===3)zE(i,i,p);else for(;d!==null;){if(d.tag===3){zE(d,i,p);break}else if(d.tag===1){var g=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Ic===null||!Ic.has(g))){i=na(p,i),p=UM(2),g=Ec(d,p,2),g!==null&&(VM(p,g,d,i),Jt(g,2),Qs(g));break}}d=d.return}}function q1(i,d,p){var g=i.pingCache;if(g===null){g=i.pingCache=new g3;var E=new Set;g.set(d,E)}else E=g.get(d),E===void 0&&(E=new Set,g.set(d,E));E.has(p)||(I1=!0,E.add(p),i=S3.bind(null,i,d,p),d.then(i,i))}function S3(i,d,p){var g=i.pingCache;g!==null&&g.delete(d),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Vr===i&&(mr&p)===p&&(io===4||io===3&&(mr&62914560)===mr&&300>Ae()-F1?(Er&2)===0&&$f(i,0):L1|=p,Rf===mr&&(Rf=0)),Qs(i)}function FE(i,d){d===0&&(d=_n()),i=vs(i,d),i!==null&&(Jt(i,d),Qs(i))}function w3(i){var d=i.memoizedState,p=0;d!==null&&(p=d.retryLane),FE(i,p)}function C3(i,d){var p=0;switch(i.tag){case 13:var g=i.stateNode,E=i.memoizedState;E!==null&&(p=E.retryLane);break;case 19:g=i.stateNode;break;case 22:g=i.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(d),FE(i,p)}function k3(i,d){return fe(i,d)}var gv=null,Af=null,Y1=!1,yv=!1,G1=!1,Zu=0;function Qs(i){i!==Af&&i.next===null&&(Af===null?gv=Af=i:Af=Af.next=i),yv=!0,Y1||(Y1=!0,M3())}function Kh(i,d){if(!G1&&yv){G1=!0;do for(var p=!1,g=gv;g!==null;){if(i!==0){var E=g.pendingLanes;if(E===0)var D=0;else{var Z=g.suspendedLanes,ae=g.pingedLanes;D=(1<<31-he(42|i)+1)-1,D&=E&~(Z&~ae),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(p=!0,VE(g,D))}else D=mr,D=At(g,g===Vr?D:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(D&3)===0||Wt(g,D)||(p=!0,VE(g,D));g=g.next}while(p);G1=!1}}function T3(){BE()}function BE(){yv=Y1=!1;var i=0;Zu!==0&&(j3()&&(i=Zu),Zu=0);for(var d=Ae(),p=null,g=gv;g!==null;){var E=g.next,D=_E(g,d);D===0?(g.next=null,p===null?gv=E:p.next=E,E===null&&(Af=p)):(p=g,(i!==0||(D&3)!==0)&&(yv=!0)),g=E}Kh(i)}function _E(i,d){for(var p=i.suspendedLanes,g=i.pingedLanes,E=i.expirationTimes,D=i.pendingLanes&-62914561;0<D;){var Z=31-he(D),ae=1<<Z,xe=E[Z];xe===-1?((ae&p)===0||(ae&g)!==0)&&(E[Z]=dn(ae,d)):xe<=d&&(i.expiredLanes|=ae),D&=~ae}if(d=Vr,p=mr,p=At(i,i===d?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g=i.callbackNode,p===0||i===d&&(Rr===2||Rr===9)||i.cancelPendingCommit!==null)return g!==null&&g!==null&&Te(g),i.callbackNode=null,i.callbackPriority=0;if((p&3)===0||Wt(i,p)){if(d=p&-p,d===i.callbackPriority)return d;switch(g!==null&&Te(g),en(p)){case 2:case 8:p=Be;break;case 32:p=it;break;case 268435456:p=_t;break;default:p=it}return g=UE.bind(null,i),p=fe(p,g),i.callbackPriority=d,i.callbackNode=p,d}return g!==null&&g!==null&&Te(g),i.callbackPriority=2,i.callbackNode=null,2}function UE(i,d){if(Yo!==0&&Yo!==5)return i.callbackNode=null,i.callbackPriority=0,null;var p=i.callbackNode;if(mv()&&i.callbackNode!==p)return null;var g=mr;return g=At(i,i===Vr?g:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g===0?null:(kE(i,g,d),_E(i,Ae()),i.callbackNode!=null&&i.callbackNode===p?UE.bind(null,i):null)}function VE(i,d){if(mv())return null;kE(i,d,!0)}function M3(){I3(function(){(Er&6)!==0?fe(bt,T3):BE()})}function K1(){return Zu===0&&(Zu=bn()),Zu}function HE(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Pl(""+i)}function WE(i,d){var p=d.ownerDocument.createElement("input");return p.name=d.name,p.value=d.value,i.id&&p.setAttribute("form",i.id),d.parentNode.insertBefore(p,d),i=new FormData(i),p.parentNode.removeChild(p),i}function E3(i,d,p,g,E){if(d==="submit"&&p&&p.stateNode===E){var D=HE((E[ut]||null).action),Z=g.submitter;Z&&(d=(d=Z[ut]||null)?HE(d.formAction):Z.getAttribute("formAction"),d!==null&&(D=d,Z=null));var ae=new no("action","action",null,g,E);i.push({event:ae,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Zu!==0){var xe=Z?WE(E,Z):new FormData(E);m1(p,{pending:!0,data:xe,method:E.method,action:D},null,xe)}}else typeof D=="function"&&(ae.preventDefault(),xe=Z?WE(E,Z):new FormData(E),m1(p,{pending:!0,data:xe,method:E.method,action:D},D,xe))},currentTarget:E}]})}}for(var Q1=0;Q1<cf.length;Q1++){var X1=cf[Q1],R3=X1.toLowerCase(),O3=X1[0].toUpperCase()+X1.slice(1);qa(R3,"on"+O3)}qa(Ly,"onAnimationEnd"),qa(zy,"onAnimationIteration"),qa(Fy,"onAnimationStart"),qa("dblclick","onDoubleClick"),qa("focusin","onFocus"),qa("focusout","onBlur"),qa(Sh,"onTransitionRun"),qa(Hx,"onTransitionStart"),qa(Wx,"onTransitionCancel"),qa(wh,"onTransitionEnd"),vt("onMouseEnter",["mouseout","mouseover"]),vt("onMouseLeave",["mouseout","mouseover"]),vt("onPointerEnter",["pointerout","pointerover"]),vt("onPointerLeave",["pointerout","pointerover"]),He("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),He("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),He("onBeforeInput",["compositionend","keypress","textInput","paste"]),He("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),P3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qh));function qE(i,d){d=(d&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],E=g.event;g=g.listeners;e:{var D=void 0;if(d)for(var Z=g.length-1;0<=Z;Z--){var ae=g[Z],xe=ae.instance,Ve=ae.currentTarget;if(ae=ae.listener,xe!==D&&E.isPropagationStopped())break e;D=ae,E.currentTarget=Ve;try{D(E)}catch(dt){ov(dt)}E.currentTarget=null,D=xe}else for(Z=0;Z<g.length;Z++){if(ae=g[Z],xe=ae.instance,Ve=ae.currentTarget,ae=ae.listener,xe!==D&&E.isPropagationStopped())break e;D=ae,E.currentTarget=Ve;try{D(E)}catch(dt){ov(dt)}E.currentTarget=null,D=xe}}}}function ir(i,d){var p=d[Ut];p===void 0&&(p=d[Ut]=new Set);var g=i+"__bubble";p.has(g)||(YE(d,i,2,!1),p.add(g))}function Z1(i,d,p){var g=0;d&&(g|=4),YE(p,i,g,d)}var vv="_reactListening"+Math.random().toString(36).slice(2);function J1(i){if(!i[vv]){i[vv]=!0,de.forEach(function(p){p!=="selectionchange"&&(P3.has(p)||Z1(p,!1,i),Z1(p,!0,i))});var d=i.nodeType===9?i:i.ownerDocument;d===null||d[vv]||(d[vv]=!0,Z1("selectionchange",!1,d))}}function YE(i,d,p,g){switch(yR(d)){case 2:var E=rF;break;case 8:E=oF;break;default:E=pS}p=E.bind(null,d,p,i),E=void 0,!Du||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(E=!0),g?E!==void 0?i.addEventListener(d,p,{capture:!0,passive:E}):i.addEventListener(d,p,!0):E!==void 0?i.addEventListener(d,p,{passive:E}):i.addEventListener(d,p,!1)}function eS(i,d,p,g,E){var D=g;if((d&1)===0&&(d&2)===0&&g!==null)e:for(;;){if(g===null)return;var Z=g.tag;if(Z===3||Z===4){var ae=g.stateNode.containerInfo;if(ae===E)break;if(Z===4)for(Z=g.return;Z!==null;){var xe=Z.tag;if((xe===3||xe===4)&&Z.stateNode.containerInfo===E)return;Z=Z.return}for(;ae!==null;){if(Z=qt(ae),Z===null)return;if(xe=Z.tag,xe===5||xe===6||xe===26||xe===27){g=D=Z;continue e}ae=ae.parentNode}}g=g.return}Gd(function(){var Ve=D,dt=vc(p),xt=[];e:{var Ge=Ch.get(i);if(Ge!==void 0){var Qe=no,In=i;switch(i){case"keypress":if(xc(p)===0)break e;case"keydown":case"keyup":Qe=Fu;break;case"focusin":In="focus",Qe=Lu;break;case"focusout":In="blur",Qe=Lu;break;case"beforeblur":case"afterblur":Qe=Lu;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=Qd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=ef;break;case Ly:case zy:case Fy:Qe=Sc;break;case wh:Qe=dh;break;case"scroll":case"scrollend":Qe=Ee;break;case"wheel":Qe=fh;break;case"copy":case"cut":case"paste":Qe=Us;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Jd;break;case"toggle":case"beforetoggle":Qe=hh}var $n=(d&4)!==0,Lr=!$n&&(i==="scroll"||i==="scrollend"),Ie=$n?Ge!==null?Ge+"Capture":null:Ge;$n=[];for(var Pe=Ve,_e;Pe!==null;){var ht=Pe;if(_e=ht.stateNode,ht=ht.tag,ht!==5&&ht!==26&&ht!==27||_e===null||Ie===null||(ht=$l(Pe,Ie),ht!=null&&$n.push(Xh(Pe,ht,_e))),Lr)break;Pe=Pe.return}0<$n.length&&(Ge=new Qe(Ge,In,null,p,dt),xt.push({event:Ge,listeners:$n}))}}if((d&7)===0){e:{if(Ge=i==="mouseover"||i==="pointerover",Qe=i==="mouseout"||i==="pointerout",Ge&&p!==yc&&(In=p.relatedTarget||p.fromElement)&&(qt(In)||In[zt]))break e;if((Qe||Ge)&&(Ge=dt.window===dt?dt:(Ge=dt.ownerDocument)?Ge.defaultView||Ge.parentWindow:window,Qe?(In=p.relatedTarget||p.toElement,Qe=Ve,In=In?qt(In):null,In!==null&&(Lr=a(In),$n=In.tag,In!==Lr||$n!==5&&$n!==27&&$n!==6)&&(In=null)):(Qe=null,In=Ve),Qe!==In)){if($n=Iu,ht="onMouseLeave",Ie="onMouseEnter",Pe="mouse",(i==="pointerout"||i==="pointerover")&&($n=Jd,ht="onPointerLeave",Ie="onPointerEnter",Pe="pointer"),Lr=Qe==null?Ge:Kn(Qe),_e=In==null?Ge:Kn(In),Ge=new $n(ht,Pe+"leave",Qe,p,dt),Ge.target=Lr,Ge.relatedTarget=_e,ht=null,qt(dt)===Ve&&($n=new $n(Ie,Pe+"enter",In,p,dt),$n.target=_e,$n.relatedTarget=Lr,ht=$n),Lr=ht,Qe&&In)t:{for($n=Qe,Ie=In,Pe=0,_e=$n;_e;_e=jf(_e))Pe++;for(_e=0,ht=Ie;ht;ht=jf(ht))_e++;for(;0<Pe-_e;)$n=jf($n),Pe--;for(;0<_e-Pe;)Ie=jf(Ie),_e--;for(;Pe--;){if($n===Ie||Ie!==null&&$n===Ie.alternate)break t;$n=jf($n),Ie=jf(Ie)}$n=null}else $n=null;Qe!==null&&GE(xt,Ge,Qe,$n,!1),In!==null&&Lr!==null&&GE(xt,Lr,In,$n,!0)}}e:{if(Ge=Ve?Kn(Ve):window,Qe=Ge.nodeName&&Ge.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Ge.type==="file")var an=U;else if(sf(Ge))if(G)an=Tr;else{an=Xn;var nr=Qn}else Qe=Ge.nodeName,!Qe||Qe.toLowerCase()!=="input"||Ge.type!=="checkbox"&&Ge.type!=="radio"?Ve&&Ou(Ve.elementType)&&(an=U):an=Yt;if(an&&(an=an(i,Ve))){lf(xt,an,p,dt);break e}nr&&nr(i,Ge,Ve),i==="focusout"&&Ve&&Ge.type==="number"&&Ve.memoizedProps.value!=null&&ds(Ge,"number",Ge.value)}switch(nr=Ve?Kn(Ve):window,i){case"focusin":(sf(nr)||nr.contentEditable==="true")&&(pa=nr,ys=Ve,ta=null);break;case"focusout":ta=ys=pa=null;break;case"mousedown":ro=!0;break;case"contextmenu":case"mouseup":case"dragend":ro=!1,Ll(xt,p,dt);break;case"selectionchange":if(Il)break;case"keydown":case"keyup":Ll(xt,p,dt)}var mn;if(_u)e:{switch(i){case"compositionstart":var Dn="onCompositionStart";break e;case"compositionend":Dn="onCompositionEnd";break e;case"compositionupdate":Dn="onCompositionUpdate";break e}Dn=void 0}else Ws?of(i,p)&&(Dn="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Dn="onCompositionStart");Dn&&(tf&&p.locale!=="ko"&&(Ws||Dn!=="onCompositionStart"?Dn==="onCompositionEnd"&&Ws&&(mn=ju()):(wi=dt,Au="value"in wi?wi.value:wi.textContent,Ws=!0)),nr=bv(Ve,Dn),0<nr.length&&(Dn=new ms(Dn,i,null,p,dt),xt.push({event:Dn,listeners:nr}),mn?Dn.data=mn:(mn=af(p),mn!==null&&(Dn.data=mn)))),(mn=gh?yh(i,p):vh(i,p))&&(Dn=bv(Ve,"onBeforeInput"),0<Dn.length&&(nr=new ms("onBeforeInput","beforeinput",null,p,dt),xt.push({event:nr,listeners:Dn}),nr.data=mn)),E3(xt,i,Ve,p,dt)}qE(xt,d)})}function Xh(i,d,p){return{instance:i,listener:d,currentTarget:p}}function bv(i,d){for(var p=d+"Capture",g=[];i!==null;){var E=i,D=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||D===null||(E=$l(i,p),E!=null&&g.unshift(Xh(i,E,D)),E=$l(i,d),E!=null&&g.push(Xh(i,E,D))),i.tag===3)return g;i=i.return}return[]}function jf(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function GE(i,d,p,g,E){for(var D=d._reactName,Z=[];p!==null&&p!==g;){var ae=p,xe=ae.alternate,Ve=ae.stateNode;if(ae=ae.tag,xe!==null&&xe===g)break;ae!==5&&ae!==26&&ae!==27||Ve===null||(xe=Ve,E?(Ve=$l(p,D),Ve!=null&&Z.unshift(Xh(p,Ve,xe))):E||(Ve=$l(p,D),Ve!=null&&Z.push(Xh(p,Ve,xe)))),p=p.return}Z.length!==0&&i.push({event:d,listeners:Z})}var $3=/\r\n?/g,D3=/\u0000|\uFFFD/g;function KE(i){return(typeof i=="string"?i:""+i).replace($3,`
50
- `).replace(D3,"")}function QE(i,d){return d=KE(d),KE(i)===d}function xv(){}function Ir(i,d,p,g,E,D){switch(p){case"children":typeof g=="string"?d==="body"||d==="textarea"&&g===""||fs(i,g):(typeof g=="number"||typeof g=="bigint")&&d!=="body"&&fs(i,""+g);break;case"className":Re(i,"class",g);break;case"tabIndex":Re(i,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Re(i,p,g);break;case"style":Ol(i,g,D);break;case"data":if(d!=="object"){Re(i,"data",g);break}case"src":case"href":if(g===""&&(d!=="a"||p!=="href")){i.removeAttribute(p);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=Pl(""+g),i.setAttribute(p,g);break;case"action":case"formAction":if(typeof g=="function"){i.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(p==="formAction"?(d!=="input"&&Ir(i,d,"name",E.name,E,null),Ir(i,d,"formEncType",E.formEncType,E,null),Ir(i,d,"formMethod",E.formMethod,E,null),Ir(i,d,"formTarget",E.formTarget,E,null)):(Ir(i,d,"encType",E.encType,E,null),Ir(i,d,"method",E.method,E,null),Ir(i,d,"target",E.target,E,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=Pl(""+g),i.setAttribute(p,g);break;case"onClick":g!=null&&(i.onclick=xv);break;case"onScroll":g!=null&&ir("scroll",i);break;case"onScrollEnd":g!=null&&ir("scrollend",i);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(p=g.__html,p!=null){if(E.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"multiple":i.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":i.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){i.removeAttribute("xlink:href");break}p=Pl(""+g),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(p,""+g):i.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(p,""):i.removeAttribute(p);break;case"capture":case"download":g===!0?i.setAttribute(p,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(p,g):i.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?i.setAttribute(p,g):i.removeAttribute(p);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?i.removeAttribute(p):i.setAttribute(p,g);break;case"popover":ir("beforetoggle",i),ir("toggle",i),ge(i,"popover",g);break;case"xlinkActuate":We(i,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":We(i,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":We(i,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":We(i,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":We(i,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":We(i,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":We(i,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":We(i,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":We(i,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":ge(i,"is",g);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=Yd.get(p)||p,ge(i,p,g))}}function tS(i,d,p,g,E,D){switch(p){case"style":Ol(i,g,D);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(p=g.__html,p!=null){if(E.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"children":typeof g=="string"?fs(i,g):(typeof g=="number"||typeof g=="bigint")&&fs(i,""+g);break;case"onScroll":g!=null&&ir("scroll",i);break;case"onScrollEnd":g!=null&&ir("scrollend",i);break;case"onClick":g!=null&&(i.onclick=xv);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pe.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(E=p.endsWith("Capture"),d=p.slice(2,E?p.length-7:void 0),D=i[ut]||null,D=D!=null?D[p]:null,typeof D=="function"&&i.removeEventListener(d,D,E),typeof g=="function")){typeof D!="function"&&D!==null&&(p in i?i[p]=null:i.hasAttribute(p)&&i.removeAttribute(p)),i.addEventListener(d,g,E);break e}p in i?i[p]=g:g===!0?i.setAttribute(p,""):ge(i,p,g)}}}function Go(i,d,p){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ir("error",i),ir("load",i);var g=!1,E=!1,D;for(D in p)if(p.hasOwnProperty(D)){var Z=p[D];if(Z!=null)switch(D){case"src":g=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,d));default:Ir(i,d,D,Z,p,null)}}E&&Ir(i,d,"srcSet",p.srcSet,p,null),g&&Ir(i,d,"src",p.src,p,null);return;case"input":ir("invalid",i);var ae=D=Z=E=null,xe=null,Ve=null;for(g in p)if(p.hasOwnProperty(g)){var dt=p[g];if(dt!=null)switch(g){case"name":E=dt;break;case"type":Z=dt;break;case"checked":xe=dt;break;case"defaultChecked":Ve=dt;break;case"value":D=dt;break;case"defaultValue":ae=dt;break;case"children":case"dangerouslySetInnerHTML":if(dt!=null)throw Error(r(137,d));break;default:Ir(i,d,g,dt,p,null)}}Eu(i,D,ae,xe,Ve,Z,E,!1),Is(i);return;case"select":ir("invalid",i),g=Z=D=null;for(E in p)if(p.hasOwnProperty(E)&&(ae=p[E],ae!=null))switch(E){case"value":D=ae;break;case"defaultValue":Z=ae;break;case"multiple":g=ae;default:Ir(i,d,E,ae,p,null)}d=D,p=Z,i.multiple=!!g,d!=null?Si(i,!!g,d,!1):p!=null&&Si(i,!!g,p,!0);return;case"textarea":ir("invalid",i),D=E=g=null;for(Z in p)if(p.hasOwnProperty(Z)&&(ae=p[Z],ae!=null))switch(Z){case"value":g=ae;break;case"defaultValue":E=ae;break;case"children":D=ae;break;case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(91));break;default:Ir(i,d,Z,ae,p,null)}Rl(i,g,E,D),Is(i);return;case"option":for(xe in p)if(p.hasOwnProperty(xe)&&(g=p[xe],g!=null))switch(xe){case"selected":i.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Ir(i,d,xe,g,p,null)}return;case"dialog":ir("beforetoggle",i),ir("toggle",i),ir("cancel",i),ir("close",i);break;case"iframe":case"object":ir("load",i);break;case"video":case"audio":for(g=0;g<Qh.length;g++)ir(Qh[g],i);break;case"image":ir("error",i),ir("load",i);break;case"details":ir("toggle",i);break;case"embed":case"source":case"link":ir("error",i),ir("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ve in p)if(p.hasOwnProperty(Ve)&&(g=p[Ve],g!=null))switch(Ve){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,d));default:Ir(i,d,Ve,g,p,null)}return;default:if(Ou(d)){for(dt in p)p.hasOwnProperty(dt)&&(g=p[dt],g!==void 0&&tS(i,d,dt,g,p,void 0));return}}for(ae in p)p.hasOwnProperty(ae)&&(g=p[ae],g!=null&&Ir(i,d,ae,g,p,null))}function A3(i,d,p,g){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,D=null,Z=null,ae=null,xe=null,Ve=null,dt=null;for(Qe in p){var xt=p[Qe];if(p.hasOwnProperty(Qe)&&xt!=null)switch(Qe){case"checked":break;case"value":break;case"defaultValue":xe=xt;default:g.hasOwnProperty(Qe)||Ir(i,d,Qe,null,g,xt)}}for(var Ge in g){var Qe=g[Ge];if(xt=p[Ge],g.hasOwnProperty(Ge)&&(Qe!=null||xt!=null))switch(Ge){case"type":D=Qe;break;case"name":E=Qe;break;case"checked":Ve=Qe;break;case"defaultChecked":dt=Qe;break;case"value":Z=Qe;break;case"defaultValue":ae=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(r(137,d));break;default:Qe!==xt&&Ir(i,d,Ge,Qe,g,xt)}}zs(i,Z,ae,xe,Ve,dt,D,E);return;case"select":Qe=Z=ae=Ge=null;for(D in p)if(xe=p[D],p.hasOwnProperty(D)&&xe!=null)switch(D){case"value":break;case"multiple":Qe=xe;default:g.hasOwnProperty(D)||Ir(i,d,D,null,g,xe)}for(E in g)if(D=g[E],xe=p[E],g.hasOwnProperty(E)&&(D!=null||xe!=null))switch(E){case"value":Ge=D;break;case"defaultValue":ae=D;break;case"multiple":Z=D;default:D!==xe&&Ir(i,d,E,D,g,xe)}d=ae,p=Z,g=Qe,Ge!=null?Si(i,!!p,Ge,!1):!!g!=!!p&&(d!=null?Si(i,!!p,d,!0):Si(i,!!p,p?[]:"",!1));return;case"textarea":Qe=Ge=null;for(ae in p)if(E=p[ae],p.hasOwnProperty(ae)&&E!=null&&!g.hasOwnProperty(ae))switch(ae){case"value":break;case"children":break;default:Ir(i,d,ae,null,g,E)}for(Z in g)if(E=g[Z],D=p[Z],g.hasOwnProperty(Z)&&(E!=null||D!=null))switch(Z){case"value":Ge=E;break;case"defaultValue":Qe=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==D&&Ir(i,d,Z,E,g,D)}Ru(i,Ge,Qe);return;case"option":for(var In in p)if(Ge=p[In],p.hasOwnProperty(In)&&Ge!=null&&!g.hasOwnProperty(In))switch(In){case"selected":i.selected=!1;break;default:Ir(i,d,In,null,g,Ge)}for(xe in g)if(Ge=g[xe],Qe=p[xe],g.hasOwnProperty(xe)&&Ge!==Qe&&(Ge!=null||Qe!=null))switch(xe){case"selected":i.selected=Ge&&typeof Ge!="function"&&typeof Ge!="symbol";break;default:Ir(i,d,xe,Ge,g,Qe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $n in p)Ge=p[$n],p.hasOwnProperty($n)&&Ge!=null&&!g.hasOwnProperty($n)&&Ir(i,d,$n,null,g,Ge);for(Ve in g)if(Ge=g[Ve],Qe=p[Ve],g.hasOwnProperty(Ve)&&Ge!==Qe&&(Ge!=null||Qe!=null))switch(Ve){case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(r(137,d));break;default:Ir(i,d,Ve,Ge,g,Qe)}return;default:if(Ou(d)){for(var Lr in p)Ge=p[Lr],p.hasOwnProperty(Lr)&&Ge!==void 0&&!g.hasOwnProperty(Lr)&&tS(i,d,Lr,void 0,g,Ge);for(dt in g)Ge=g[dt],Qe=p[dt],!g.hasOwnProperty(dt)||Ge===Qe||Ge===void 0&&Qe===void 0||tS(i,d,dt,Ge,g,Qe);return}}for(var Ie in p)Ge=p[Ie],p.hasOwnProperty(Ie)&&Ge!=null&&!g.hasOwnProperty(Ie)&&Ir(i,d,Ie,null,g,Ge);for(xt in g)Ge=g[xt],Qe=p[xt],!g.hasOwnProperty(xt)||Ge===Qe||Ge==null&&Qe==null||Ir(i,d,xt,Ge,g,Qe)}var nS=null,rS=null;function Sv(i){return i.nodeType===9?i:i.ownerDocument}function XE(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ZE(i,d){if(i===0)switch(d){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&d==="foreignObject"?0:i}function oS(i,d){return i==="textarea"||i==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.children=="bigint"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var aS=null;function j3(){var i=window.event;return i&&i.type==="popstate"?i===aS?!1:(aS=i,!0):(aS=null,!1)}var JE=typeof setTimeout=="function"?setTimeout:void 0,N3=typeof clearTimeout=="function"?clearTimeout:void 0,eR=typeof Promise=="function"?Promise:void 0,I3=typeof queueMicrotask=="function"?queueMicrotask:typeof eR<"u"?function(i){return eR.resolve(null).then(i).catch(L3)}:JE;function L3(i){setTimeout(function(){throw i})}function Fc(i){return i==="head"}function tR(i,d){var p=d,g=0,E=0;do{var D=p.nextSibling;if(i.removeChild(p),D&&D.nodeType===8)if(p=D.data,p==="/$"){if(0<g&&8>g){p=g;var Z=i.ownerDocument;if(p&1&&Zh(Z.documentElement),p&2&&Zh(Z.body),p&4)for(p=Z.head,Zh(p),Z=p.firstChild;Z;){var ae=Z.nextSibling,xe=Z.nodeName;Z[Ot]||xe==="SCRIPT"||xe==="STYLE"||xe==="LINK"&&Z.rel.toLowerCase()==="stylesheet"||p.removeChild(Z),Z=ae}}if(E===0){i.removeChild(D),im(d);return}E--}else p==="$"||p==="$?"||p==="$!"?E++:g=p.charCodeAt(0)-48;else g=0;p=D}while(p);im(d)}function iS(i){var d=i.firstChild;for(d&&d.nodeType===10&&(d=d.nextSibling);d;){var p=d;switch(d=d.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":iS(p),kt(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}i.removeChild(p)}}function z3(i,d,p,g){for(;i.nodeType===1;){var E=p;if(i.nodeName.toLowerCase()!==d.toLowerCase()){if(!g&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(g){if(!i[Ot])switch(d){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(D=i.getAttribute("rel"),D==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(D!==E.rel||i.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||i.getAttribute("title")!==(E.title==null?null:E.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(D=i.getAttribute("src"),(D!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&D&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(d==="input"&&i.type==="hidden"){var D=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===D)return i}else return i;if(i=Ss(i.nextSibling),i===null)break}return null}function F3(i,d,p){if(d==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!p||(i=Ss(i.nextSibling),i===null))return null;return i}function sS(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function B3(i,d){var p=i.ownerDocument;if(i.data!=="$?"||p.readyState==="complete")d();else{var g=function(){d(),p.removeEventListener("DOMContentLoaded",g)};p.addEventListener("DOMContentLoaded",g),i._reactRetry=g}}function Ss(i){for(;i!=null;i=i.nextSibling){var d=i.nodeType;if(d===1||d===3)break;if(d===8){if(d=i.data,d==="$"||d==="$!"||d==="$?"||d==="F!"||d==="F")break;if(d==="/$")return null}}return i}var lS=null;function nR(i){i=i.previousSibling;for(var d=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(d===0)return i;d--}else p==="/$"&&d++}i=i.previousSibling}return null}function rR(i,d,p){switch(d=Sv(p),i){case"html":if(i=d.documentElement,!i)throw Error(r(452));return i;case"head":if(i=d.head,!i)throw Error(r(453));return i;case"body":if(i=d.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Zh(i){for(var d=i.attributes;d.length;)i.removeAttributeNode(d[0]);kt(i)}var Pi=new Map,oR=new Set;function wv(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Gl=Q.d;Q.d={f:_3,r:U3,D:V3,C:H3,L:W3,m:q3,X:G3,S:Y3,M:K3};function _3(){var i=Gl.f(),d=pv();return i||d}function U3(i){var d=On(i);d!==null&&d.tag===5&&d.type==="form"?kM(d):Gl.r(i)}var Nf=typeof document>"u"?null:document;function aR(i,d,p){var g=Nf;if(g&&typeof d=="string"&&d){var E=$o(d);E='link[rel="'+i+'"][href="'+E+'"]',typeof p=="string"&&(E+='[crossorigin="'+p+'"]'),oR.has(E)||(oR.add(E),i={rel:i,crossOrigin:p,href:d},g.querySelector(E)===null&&(d=g.createElement("link"),Go(d,"link",i),fn(d),g.head.appendChild(d)))}}function V3(i){Gl.D(i),aR("dns-prefetch",i,null)}function H3(i,d){Gl.C(i,d),aR("preconnect",i,d)}function W3(i,d,p){Gl.L(i,d,p);var g=Nf;if(g&&i&&d){var E='link[rel="preload"][as="'+$o(d)+'"]';d==="image"&&p&&p.imageSrcSet?(E+='[imagesrcset="'+$o(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(E+='[imagesizes="'+$o(p.imageSizes)+'"]')):E+='[href="'+$o(i)+'"]';var D=E;switch(d){case"style":D=If(i);break;case"script":D=Lf(i)}Pi.has(D)||(i=c({rel:"preload",href:d==="image"&&p&&p.imageSrcSet?void 0:i,as:d},p),Pi.set(D,i),g.querySelector(E)!==null||d==="style"&&g.querySelector(Jh(D))||d==="script"&&g.querySelector(em(D))||(d=g.createElement("link"),Go(d,"link",i),fn(d),g.head.appendChild(d)))}}function q3(i,d){Gl.m(i,d);var p=Nf;if(p&&i){var g=d&&typeof d.as=="string"?d.as:"script",E='link[rel="modulepreload"][as="'+$o(g)+'"][href="'+$o(i)+'"]',D=E;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=Lf(i)}if(!Pi.has(D)&&(i=c({rel:"modulepreload",href:i},d),Pi.set(D,i),p.querySelector(E)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(em(D)))return}g=p.createElement("link"),Go(g,"link",i),fn(g),p.head.appendChild(g)}}}function Y3(i,d,p){Gl.S(i,d,p);var g=Nf;if(g&&i){var E=xn(g).hoistableStyles,D=If(i);d=d||"default";var Z=E.get(D);if(!Z){var ae={loading:0,preload:null};if(Z=g.querySelector(Jh(D)))ae.loading=5;else{i=c({rel:"stylesheet",href:i,"data-precedence":d},p),(p=Pi.get(D))&&cS(i,p);var xe=Z=g.createElement("link");fn(xe),Go(xe,"link",i),xe._p=new Promise(function(Ve,dt){xe.onload=Ve,xe.onerror=dt}),xe.addEventListener("load",function(){ae.loading|=1}),xe.addEventListener("error",function(){ae.loading|=2}),ae.loading|=4,Cv(Z,d,g)}Z={type:"stylesheet",instance:Z,count:1,state:ae},E.set(D,Z)}}}function G3(i,d){Gl.X(i,d);var p=Nf;if(p&&i){var g=xn(p).hoistableScripts,E=Lf(i),D=g.get(E);D||(D=p.querySelector(em(E)),D||(i=c({src:i,async:!0},d),(d=Pi.get(E))&&uS(i,d),D=p.createElement("script"),fn(D),Go(D,"link",i),p.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},g.set(E,D))}}function K3(i,d){Gl.M(i,d);var p=Nf;if(p&&i){var g=xn(p).hoistableScripts,E=Lf(i),D=g.get(E);D||(D=p.querySelector(em(E)),D||(i=c({src:i,async:!0,type:"module"},d),(d=Pi.get(E))&&uS(i,d),D=p.createElement("script"),fn(D),Go(D,"link",i),p.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},g.set(E,D))}}function iR(i,d,p,g){var E=(E=ie.current)?wv(E):null;if(!E)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(d=If(p.href),p=xn(E).hoistableStyles,g=p.get(d),g||(g={type:"style",instance:null,count:0,state:null},p.set(d,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){i=If(p.href);var D=xn(E).hoistableStyles,Z=D.get(i);if(Z||(E=E.ownerDocument||E,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(i,Z),(D=E.querySelector(Jh(i)))&&!D._p&&(Z.instance=D,Z.state.loading=5),Pi.has(i)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Pi.set(i,p),D||Q3(E,i,p,Z.state))),d&&g===null)throw Error(r(528,""));return Z}if(d&&g!==null)throw Error(r(529,""));return null;case"script":return d=p.async,p=p.src,typeof p=="string"&&d&&typeof d!="function"&&typeof d!="symbol"?(d=Lf(p),p=xn(E).hoistableScripts,g=p.get(d),g||(g={type:"script",instance:null,count:0,state:null},p.set(d,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function If(i){return'href="'+$o(i)+'"'}function Jh(i){return'link[rel="stylesheet"]['+i+"]"}function sR(i){return c({},i,{"data-precedence":i.precedence,precedence:null})}function Q3(i,d,p,g){i.querySelector('link[rel="preload"][as="style"]['+d+"]")?g.loading=1:(d=i.createElement("link"),g.preload=d,d.addEventListener("load",function(){return g.loading|=1}),d.addEventListener("error",function(){return g.loading|=2}),Go(d,"link",p),fn(d),i.head.appendChild(d))}function Lf(i){return'[src="'+$o(i)+'"]'}function em(i){return"script[async]"+i}function lR(i,d,p){if(d.count++,d.instance===null)switch(d.type){case"style":var g=i.querySelector('style[data-href~="'+$o(p.href)+'"]');if(g)return d.instance=g,fn(g),g;var E=c({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return g=(i.ownerDocument||i).createElement("style"),fn(g),Go(g,"style",E),Cv(g,p.precedence,i),d.instance=g;case"stylesheet":E=If(p.href);var D=i.querySelector(Jh(E));if(D)return d.state.loading|=4,d.instance=D,fn(D),D;g=sR(p),(E=Pi.get(E))&&cS(g,E),D=(i.ownerDocument||i).createElement("link"),fn(D);var Z=D;return Z._p=new Promise(function(ae,xe){Z.onload=ae,Z.onerror=xe}),Go(D,"link",g),d.state.loading|=4,Cv(D,p.precedence,i),d.instance=D;case"script":return D=Lf(p.src),(E=i.querySelector(em(D)))?(d.instance=E,fn(E),E):(g=p,(E=Pi.get(D))&&(g=c({},p),uS(g,E)),i=i.ownerDocument||i,E=i.createElement("script"),fn(E),Go(E,"link",g),i.head.appendChild(E),d.instance=E);case"void":return null;default:throw Error(r(443,d.type))}else d.type==="stylesheet"&&(d.state.loading&4)===0&&(g=d.instance,d.state.loading|=4,Cv(g,p.precedence,i));return d.instance}function Cv(i,d,p){for(var g=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=g.length?g[g.length-1]:null,D=E,Z=0;Z<g.length;Z++){var ae=g[Z];if(ae.dataset.precedence===d)D=ae;else if(D!==E)break}D?D.parentNode.insertBefore(i,D.nextSibling):(d=p.nodeType===9?p.head:p,d.insertBefore(i,d.firstChild))}function cS(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.title==null&&(i.title=d.title)}function uS(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.integrity==null&&(i.integrity=d.integrity)}var kv=null;function cR(i,d,p){if(kv===null){var g=new Map,E=kv=new Map;E.set(p,g)}else E=kv,g=E.get(p),g||(g=new Map,E.set(p,g));if(g.has(i))return g;for(g.set(i,null),p=p.getElementsByTagName(i),E=0;E<p.length;E++){var D=p[E];if(!(D[Ot]||D[Ye]||i==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=D.getAttribute(d)||"";Z=i+Z;var ae=g.get(Z);ae?ae.push(D):g.set(Z,[D])}}return g}function uR(i,d,p){i=i.ownerDocument||i,i.head.insertBefore(p,d==="title"?i.querySelector("head > title"):null)}function X3(i,d,p){if(p===1||d.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof d.precedence!="string"||typeof d.href!="string"||d.href==="")break;return!0;case"link":if(typeof d.rel!="string"||typeof d.href!="string"||d.href===""||d.onLoad||d.onError)break;switch(d.rel){case"stylesheet":return i=d.disabled,typeof d.precedence=="string"&&i==null;default:return!0}case"script":if(d.async&&typeof d.async!="function"&&typeof d.async!="symbol"&&!d.onLoad&&!d.onError&&d.src&&typeof d.src=="string")return!0}return!1}function dR(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var tm=null;function Z3(){}function J3(i,d,p){if(tm===null)throw Error(r(475));var g=tm;if(d.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var E=If(p.href),D=i.querySelector(Jh(E));if(D){i=D._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(g.count++,g=Tv.bind(g),i.then(g,g)),d.state.loading|=4,d.instance=D,fn(D);return}D=i.ownerDocument||i,p=sR(p),(E=Pi.get(E))&&cS(p,E),D=D.createElement("link"),fn(D);var Z=D;Z._p=new Promise(function(ae,xe){Z.onload=ae,Z.onerror=xe}),Go(D,"link",p),d.instance=D}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(d,i),(i=d.state.preload)&&(d.state.loading&3)===0&&(g.count++,d=Tv.bind(g),i.addEventListener("load",d),i.addEventListener("error",d))}}function eF(){if(tm===null)throw Error(r(475));var i=tm;return i.stylesheets&&i.count===0&&dS(i,i.stylesheets),0<i.count?function(d){var p=setTimeout(function(){if(i.stylesheets&&dS(i,i.stylesheets),i.unsuspend){var g=i.unsuspend;i.unsuspend=null,g()}},6e4);return i.unsuspend=d,function(){i.unsuspend=null,clearTimeout(p)}}:null}function Tv(){if(this.count--,this.count===0){if(this.stylesheets)dS(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Mv=null;function dS(i,d){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Mv=new Map,d.forEach(tF,i),Mv=null,Tv.call(i))}function tF(i,d){if(!(d.state.loading&4)){var p=Mv.get(i);if(p)var g=p.get(null);else{p=new Map,Mv.set(i,p);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<E.length;D++){var Z=E[D];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(p.set(Z.dataset.precedence,Z),g=Z)}g&&p.set(null,g)}E=d.instance,Z=E.getAttribute("data-precedence"),D=p.get(Z)||g,D===g&&p.set(null,E),p.set(Z,E),this.count++,g=Tv.bind(this),E.addEventListener("load",g),E.addEventListener("error",g),D?D.parentNode.insertBefore(E,D.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),d.state.loading|=4}}var nm={$$typeof:T,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function nF(i,d,p,g,E,D,Z,ae){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gn(0),this.hiddenUpdates=Gn(null),this.identifierPrefix=g,this.onUncaughtError=E,this.onCaughtError=D,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ae,this.incompleteTransitions=new Map}function fR(i,d,p,g,E,D,Z,ae,xe,Ve,dt,xt){return i=new nF(i,d,p,Z,ae,xe,Ve,xt),d=1,D===!0&&(d|=24),D=Wo(3,null,null,d),i.current=D,D.stateNode=i,d=qx(),d.refCount++,i.pooledCache=d,d.refCount++,D.memoizedState={element:g,isDehydrated:p,cache:d},Qx(D),i}function pR(i){return i?(i=Ya,i):Ya}function hR(i,d,p,g,E,D){E=pR(E),g.context===null?g.context=E:g.pendingContext=E,g=Mc(d),g.payload={element:p},D=D===void 0?null:D,D!==null&&(g.callback=D),p=Ec(i,g,d),p!==null&&(ti(p,i,d),Dh(p,i,d))}function mR(i,d){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<d?p:d}}function fS(i,d){mR(i,d),(i=i.alternate)&&mR(i,d)}function gR(i){if(i.tag===13){var d=vs(i,67108864);d!==null&&ti(d,i,67108864),fS(i,67108864)}}var Ev=!0;function rF(i,d,p,g){var E=j.T;j.T=null;var D=Q.p;try{Q.p=2,pS(i,d,p,g)}finally{Q.p=D,j.T=E}}function oF(i,d,p,g){var E=j.T;j.T=null;var D=Q.p;try{Q.p=8,pS(i,d,p,g)}finally{Q.p=D,j.T=E}}function pS(i,d,p,g){if(Ev){var E=hS(g);if(E===null)eS(i,d,g,Rv,p),vR(i,g);else if(iF(E,i,d,p,g))g.stopPropagation();else if(vR(i,g),d&4&&-1<aF.indexOf(i)){for(;E!==null;){var D=On(E);if(D!==null)switch(D.tag){case 3:if(D=D.stateNode,D.current.memoizedState.isDehydrated){var Z=ct(D.pendingLanes);if(Z!==0){var ae=D;for(ae.pendingLanes|=2,ae.entangledLanes|=2;Z;){var xe=1<<31-he(Z);ae.entanglements[1]|=xe,Z&=~xe}Qs(D),(Er&6)===0&&(dv=Ae()+500,Kh(0))}}break;case 13:ae=vs(D,2),ae!==null&&ti(ae,D,2),pv(),fS(D,2)}if(D=hS(g),D===null&&eS(i,d,g,Rv,p),D===E)break;E=D}E!==null&&g.stopPropagation()}else eS(i,d,g,null,p)}}function hS(i){return i=vc(i),mS(i)}var Rv=null;function mS(i){if(Rv=null,i=qt(i),i!==null){var d=a(i);if(d===null)i=null;else{var p=d.tag;if(p===13){if(i=s(d),i!==null)return i;i=null}else if(p===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;i=null}else d!==i&&(i=null)}}return Rv=i,null}function yR(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case bt:return 2;case Be:return 8;case it:case pt:return 32;case _t:return 268435456;default:return 32}default:return 32}}var gS=!1,Bc=null,_c=null,Uc=null,rm=new Map,om=new Map,Vc=[],aF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vR(i,d){switch(i){case"focusin":case"focusout":Bc=null;break;case"dragenter":case"dragleave":_c=null;break;case"mouseover":case"mouseout":Uc=null;break;case"pointerover":case"pointerout":rm.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":om.delete(d.pointerId)}}function am(i,d,p,g,E,D){return i===null||i.nativeEvent!==D?(i={blockedOn:d,domEventName:p,eventSystemFlags:g,nativeEvent:D,targetContainers:[E]},d!==null&&(d=On(d),d!==null&&gR(d)),i):(i.eventSystemFlags|=g,d=i.targetContainers,E!==null&&d.indexOf(E)===-1&&d.push(E),i)}function iF(i,d,p,g,E){switch(d){case"focusin":return Bc=am(Bc,i,d,p,g,E),!0;case"dragenter":return _c=am(_c,i,d,p,g,E),!0;case"mouseover":return Uc=am(Uc,i,d,p,g,E),!0;case"pointerover":var D=E.pointerId;return rm.set(D,am(rm.get(D)||null,i,d,p,g,E)),!0;case"gotpointercapture":return D=E.pointerId,om.set(D,am(om.get(D)||null,i,d,p,g,E)),!0}return!1}function bR(i){var d=qt(i.target);if(d!==null){var p=a(d);if(p!==null){if(d=p.tag,d===13){if(d=s(p),d!==null){i.blockedOn=d,De(i.priority,function(){if(p.tag===13){var g=ei();g=Rn(g);var E=vs(p,g);E!==null&&ti(E,p,g),fS(p,g)}});return}}else if(d===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ov(i){if(i.blockedOn!==null)return!1;for(var d=i.targetContainers;0<d.length;){var p=hS(i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);yc=g,p.target.dispatchEvent(g),yc=null}else return d=On(p),d!==null&&gR(d),i.blockedOn=p,!1;d.shift()}return!0}function xR(i,d,p){Ov(i)&&p.delete(d)}function sF(){gS=!1,Bc!==null&&Ov(Bc)&&(Bc=null),_c!==null&&Ov(_c)&&(_c=null),Uc!==null&&Ov(Uc)&&(Uc=null),rm.forEach(xR),om.forEach(xR)}function Pv(i,d){i.blockedOn===d&&(i.blockedOn=null,gS||(gS=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sF)))}var $v=null;function SR(i){$v!==i&&($v=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$v===i&&($v=null);for(var d=0;d<i.length;d+=3){var p=i[d],g=i[d+1],E=i[d+2];if(typeof g!="function"){if(mS(g||p)===null)continue;break}var D=On(p);D!==null&&(i.splice(d,3),d-=3,m1(D,{pending:!0,data:E,method:p.method,action:g},g,E))}}))}function im(i){function d(xe){return Pv(xe,i)}Bc!==null&&Pv(Bc,i),_c!==null&&Pv(_c,i),Uc!==null&&Pv(Uc,i),rm.forEach(d),om.forEach(d);for(var p=0;p<Vc.length;p++){var g=Vc[p];g.blockedOn===i&&(g.blockedOn=null)}for(;0<Vc.length&&(p=Vc[0],p.blockedOn===null);)bR(p),p.blockedOn===null&&Vc.shift();if(p=(i.ownerDocument||i).$$reactFormReplay,p!=null)for(g=0;g<p.length;g+=3){var E=p[g],D=p[g+1],Z=E[ut]||null;if(typeof D=="function")Z||SR(p);else if(Z){var ae=null;if(D&&D.hasAttribute("formAction")){if(E=D,Z=D[ut]||null)ae=Z.formAction;else if(mS(E)!==null)continue}else ae=Z.action;typeof ae=="function"?p[g+1]=ae:(p.splice(g,3),g-=3),SR(p)}}}function yS(i){this._internalRoot=i}Dv.prototype.render=yS.prototype.render=function(i){var d=this._internalRoot;if(d===null)throw Error(r(409));var p=d.current,g=ei();hR(p,g,i,d,null,null)},Dv.prototype.unmount=yS.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var d=i.containerInfo;hR(i.current,2,null,i,null,null),pv(),d[zt]=null}};function Dv(i){this._internalRoot=i}Dv.prototype.unstable_scheduleHydration=function(i){if(i){var d=le();i={blockedOn:null,target:i,priority:d};for(var p=0;p<Vc.length&&d!==0&&d<Vc[p].priority;p++);Vc.splice(p,0,i),p===0&&bR(i)}};var wR=t.version;if(wR!=="19.1.1")throw Error(r(527,wR,"19.1.1"));Q.findDOMNode=function(i){var d=i._reactInternals;if(d===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(d),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var lF={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Av=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Av.isDisabled&&Av.supportsFiber)try{Xe=Av.inject(lF),ot=Av}catch{}}return lm.createRoot=function(i,d){if(!o(i))throw Error(r(299));var p=!1,g="",E=zM,D=FM,Z=BM,ae=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(g=d.identifierPrefix),d.onUncaughtError!==void 0&&(E=d.onUncaughtError),d.onCaughtError!==void 0&&(D=d.onCaughtError),d.onRecoverableError!==void 0&&(Z=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(ae=d.unstable_transitionCallbacks)),d=fR(i,1,!1,null,null,p,g,E,D,Z,ae,null),i[zt]=d.current,J1(i),new yS(d)},lm.hydrateRoot=function(i,d,p){if(!o(i))throw Error(r(299));var g=!1,E="",D=zM,Z=FM,ae=BM,xe=null,Ve=null;return p!=null&&(p.unstable_strictMode===!0&&(g=!0),p.identifierPrefix!==void 0&&(E=p.identifierPrefix),p.onUncaughtError!==void 0&&(D=p.onUncaughtError),p.onCaughtError!==void 0&&(Z=p.onCaughtError),p.onRecoverableError!==void 0&&(ae=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(xe=p.unstable_transitionCallbacks),p.formState!==void 0&&(Ve=p.formState)),d=fR(i,1,!0,d,p??null,g,E,D,Z,ae,xe,Ve),d.context=pR(null),p=d.current,g=ei(),g=Rn(g),E=Mc(g),E.callback=null,Ec(p,E,g),p=g,d.current.lanes=p,Jt(d,p),Qs(d),i[zt]=d.current,J1(i),new Dv(d)},lm.version="19.1.1",lm}var DR;function vF(){if(DR)return xS.exports;DR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xS.exports=yF(),xS.exports}var bF=vF();/**
51
- * react-router v7.9.1
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */var Uj=e=>{throw TypeError(e)},xF=(e,t,n)=>t.has(e)||Uj("Cannot "+n),kS=(e,t,n)=>(xF(e,t,"read from private field"),n?n.call(e):t.get(e)),SF=(e,t,n)=>t.has(e)?Uj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),AR="popstate";function wF(e={}){function t(r,o){let{pathname:a,search:s,hash:l}=r.location;return Eg("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:du(o)}return kF(t,n,null,e)}function rr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function mo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function CF(){return Math.random().toString(36).substring(2,10)}function jR(e,t){return{usr:e.state,key:e.key,idx:t}}function Eg(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?vu(t):t,state:n,key:t&&t.key||r||CF()}}function du({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function vu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function kF(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="POP",u=null,f=c();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function c(){return(s.state||{idx:null}).idx}function m(){l="POP";let w=c(),S=w==null?null:w-f;f=w,u&&u({action:l,location:x.location,delta:S})}function y(w,S){l="PUSH";let k=Eg(x.location,w,S);f=c()+1;let T=jR(k,f),O=x.createHref(k);try{s.pushState(T,"",O)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(O)}a&&u&&u({action:l,location:x.location,delta:1})}function v(w,S){l="REPLACE";let k=Eg(x.location,w,S);f=c();let T=jR(k,f),O=x.createHref(k);s.replaceState(T,"",O),a&&u&&u({action:l,location:x.location,delta:0})}function b(w){return Vj(w)}let x={get action(){return l},get location(){return e(o,s)},listen(w){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(AR,m),u=w,()=>{o.removeEventListener(AR,m),u=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let S=b(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:v,go(w){return s.go(w)}};return x}function Vj(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),rr(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:du(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Gm,NR=class{constructor(e){if(SF(this,Gm,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(kS(this,Gm).has(e))return kS(this,Gm).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){kS(this,Gm).set(e,t)}};Gm=new WeakMap;var TF=new Set(["lazy","caseSensitive","path","id","index","children"]);function MF(e){return TF.has(e)}var EF=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function RF(e){return EF.has(e)}function OF(e){return e.index===!0}function Rg(e,t,n=[],r={},o=!1){return e.map((a,s)=>{let l=[...n,String(s)],u=typeof a.id=="string"?a.id:l.join("-");if(rr(a.index!==!0||!a.children,"Cannot specify children on an index route"),rr(o||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),OF(a)){let f={...a,...t(a),id:u};return r[u]=f,f}else{let f={...a,...t(a),id:u,children:void 0};return r[u]=f,a.children&&(f.children=Rg(a.children,t,l,r,o)),f}})}function Xc(e,t,n="/"){return gb(e,t,n,!1)}function gb(e,t,n,r){let o=typeof t=="string"?vu(t):t,a=Gi(o.pathname||"/",n);if(a==null)return null;let s=Hj(e);$F(s);let l=null;for(let u=0;l==null&&u<s.length;++u){let f=UF(a);l=BF(s[u],f,r)}return l}function PF(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Hj(e,t=[],n=[],r="",o=!1){let a=(s,l,u=o,f)=>{let c={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&u)return;rr(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let m=dl([r,c.relativePath]),y=n.concat(c);s.children&&s.children.length>0&&(rr(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Hj(s.children,t,y,m,u)),!(s.path==null&&!s.index)&&t.push({path:m,score:zF(m,s.index),routesMeta:y})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let u of Wj(s.path))a(s,l,!0,u)}),t}function Wj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let s=Wj(r.join("/")),l=[];return l.push(...s.map(u=>u===""?a:[a,u].join("/"))),o&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function $F(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:FF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var DF=/^:[\w-]+$/,AF=3,jF=2,NF=1,IF=10,LF=-2,IR=e=>e==="*";function zF(e,t){let n=e.split("/"),r=n.length;return n.some(IR)&&(r+=LF),t&&(r+=jF),n.filter(o=>!IR(o)).reduce((o,a)=>o+(DF.test(a)?AF:a===""?NF:IF),r)}function FF(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function BF(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let u=r[l],f=l===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",m=zb({path:u.relativePath,caseSensitive:u.caseSensitive,end:f},c),y=u.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=zb({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},c)),!m)return null;Object.assign(o,m.params),s.push({params:o,pathname:dl([a,m.pathname]),pathnameBase:qF(dl([a,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(a=dl([a,m.pathnameBase]))}return s}function zb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_F(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((f,{paramName:c,isOptional:m},y)=>{if(c==="*"){let b=l[y]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const v=l[y];return m&&!v?f[c]=void 0:f[c]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function _F(e,t=!1,n=!0){mo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function UF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Gi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function VF({basename:e,pathname:t}){return t==="/"?e:dl([e,t])}function HF(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?vu(e):e;return{pathname:n?n.startsWith("/")?n:WF(n,t):t,search:YF(r),hash:GF(o)}}function WF(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function TS(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C0(e){let t=qj(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function k0(e,t,n,r=!1){let o;typeof e=="string"?o=vu(e):(o={...e},rr(!o.pathname||!o.pathname.includes("?"),TS("?","pathname","search",o)),rr(!o.pathname||!o.pathname.includes("#"),TS("#","pathname","hash",o)),rr(!o.search||!o.search.includes("#"),TS("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=n;else{let m=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),m-=1;o.pathname=y.join("/")}l=m>=0?t[m]:"/"}let u=HF(o,l),f=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(f||c)&&(u.pathname+="/"),u}var dl=e=>e.join("/").replace(/\/\/+/g,"/"),qF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,GF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Fb=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Og(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Yj=["POST","PUT","PATCH","DELETE"],KF=new Set(Yj),QF=["GET",...Yj],XF=new Set(QF),ZF=new Set([301,302,303,307,308]),JF=new Set([307,308]),MS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},e6={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cm={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yk=e=>t6.test(e),n6=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gj="remix-router-transitions",Kj=Symbol("ResetLoaderData");function r6(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";rr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||n6,a={},s=Rg(e.routes,o,void 0,a),l,u=e.basename||"/";u.startsWith("/")||(u=`/${u}`);let f=e.dataStrategy||l6,c={...e.future},m=null,y=new Set,v=null,b=null,x=null,w=e.hydrationData!=null,S=Xc(s,e.history.location,u),k=!1,T=null,O;if(S==null&&!e.patchRoutesOnNavigation){let le=Ni(404,{pathname:e.history.location.pathname}),{matches:De,route:Le}=jv(s);O=!0,S=De,T={[Le.id]:le}}else if(S&&!e.hydrationData&&be(S,s,e.history.location.pathname).active&&(S=null),S)if(S.some(le=>le.route.lazy))O=!1;else if(!S.some(le=>le.route.loader))O=!0;else{let le=e.hydrationData?e.hydrationData.loaderData:null,De=e.hydrationData?e.hydrationData.errors:null;if(De){let Le=S.findIndex(Ye=>De[Ye.route.id]!==void 0);O=S.slice(0,Le+1).every(Ye=>!Aw(Ye.route,le,De))}else O=S.every(Le=>!Aw(Le.route,le,De))}else{O=!1,S=[];let le=be(null,s,e.history.location.pathname);le.active&&le.matches&&(k=!0,S=le.matches)}let P,$={historyAction:e.history.action,location:e.history.location,matches:S,initialized:O,navigation:MS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||T,fetchers:new Map,blockers:new Map},I="POP",F=!1,A,H=!1,L=new Map,M=null,_=!1,B=!1,W=new Set,j=new Map,Q=0,K=-1,te=new Map,X=new Set,J=new Map,ne=new Map,oe=new Set,se=new Map,re,ie=null;function ce(){if(m=e.history.listen(({action:le,location:De,delta:Le})=>{if(re){re(),re=void 0;return}mo(se.size===0||Le!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ye=dn({currentLocation:$.location,nextLocation:De,historyAction:le});if(Ye&&Le!=null){let ut=new Promise(zt=>{re=zt});e.history.go(Le*-1),Wt(Ye,{state:"blocked",location:De,proceed(){Wt(Ye,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),ut.then(()=>e.history.go(Le))},reset(){let zt=new Map($.blockers);zt.set(Ye,cm),we({blockers:zt})}});return}return Te(le,De)}),n){C6(t,L);let le=()=>k6(t,L);t.addEventListener("pagehide",le),M=()=>t.removeEventListener("pagehide",le)}return $.initialized||Te("POP",$.location,{initialHydration:!0}),P}function me(){m&&m(),M&&M(),y.clear(),A&&A.abort(),$.fetchers.forEach((le,De)=>he(De)),$.blockers.forEach((le,De)=>At(De))}function ye(le){return y.add(le),()=>y.delete(le)}function we(le,De={}){le.matches&&(le.matches=le.matches.map(ut=>{let zt=a[ut.route.id],Ut=ut.route;return Ut.element!==zt.element||Ut.errorElement!==zt.errorElement||Ut.hydrateFallbackElement!==zt.hydrateFallbackElement?{...ut,route:zt}:ut})),$={...$,...le};let Le=[],Ye=[];$.fetchers.forEach((ut,zt)=>{ut.state==="idle"&&(oe.has(zt)?Le.push(zt):Ye.push(zt))}),oe.forEach(ut=>{!$.fetchers.has(ut)&&!j.has(ut)&&Le.push(ut)}),[...y].forEach(ut=>ut($,{deletedFetchers:Le,viewTransitionOpts:De.viewTransitionOpts,flushSync:De.flushSync===!0})),Le.forEach(ut=>he(ut)),Ye.forEach(ut=>$.fetchers.delete(ut))}function Ce(le,De,{flushSync:Le}={}){let Ye=$.actionData!=null&&$.navigation.formMethod!=null&&Pa($.navigation.formMethod)&&$.navigation.state==="loading"&&le.state?._isRedirect!==!0,ut;De.actionData?Object.keys(De.actionData).length>0?ut=De.actionData:ut=null:Ye?ut=$.actionData:ut=null;let zt=De.loaderData?qR($.loaderData,De.loaderData,De.matches||[],De.errors):$.loaderData,Ut=$.blockers;Ut.size>0&&(Ut=new Map(Ut),Ut.forEach((Ot,kt)=>Ut.set(kt,cm)));let jt=_?!1:Ln(le,De.matches||$.matches),mt=F===!0||$.navigation.formMethod!=null&&Pa($.navigation.formMethod)&&le.state?._isRedirect!==!0;l&&(s=l,l=void 0),_||I==="POP"||(I==="PUSH"?e.history.push(le,le.state):I==="REPLACE"&&e.history.replace(le,le.state));let Lt;if(I==="POP"){let Ot=L.get($.location.pathname);Ot&&Ot.has(le.pathname)?Lt={currentLocation:$.location,nextLocation:le}:L.has(le.pathname)&&(Lt={currentLocation:le,nextLocation:$.location})}else if(H){let Ot=L.get($.location.pathname);Ot?Ot.add(le.pathname):(Ot=new Set([le.pathname]),L.set($.location.pathname,Ot)),Lt={currentLocation:$.location,nextLocation:le}}we({...De,actionData:ut,loaderData:zt,historyAction:I,location:le,initialized:!0,navigation:MS,revalidation:"idle",restoreScrollPosition:jt,preventScrollReset:mt,blockers:Ut},{viewTransitionOpts:Lt,flushSync:Le===!0}),I="POP",F=!1,H=!1,_=!1,B=!1,ie?.resolve(),ie=null}async function $e(le,De){if(typeof le=="number"){e.history.go(le);return}let Le=Dw($.location,$.matches,u,le,De?.fromRouteId,De?.relative),{path:Ye,submission:ut,error:zt}=LR(!1,Le,De),Ut=$.location,jt=Eg($.location,Ye,De&&De.state);jt={...jt,...e.history.encodeLocation(jt)};let mt=De&&De.replace!=null?De.replace:void 0,Lt="PUSH";mt===!0?Lt="REPLACE":mt===!1||ut!=null&&Pa(ut.formMethod)&&ut.formAction===$.location.pathname+$.location.search&&(Lt="REPLACE");let Ot=De&&"preventScrollReset"in De?De.preventScrollReset===!0:void 0,kt=(De&&De.flushSync)===!0,qt=dn({currentLocation:Ut,nextLocation:jt,historyAction:Lt});if(qt){Wt(qt,{state:"blocked",location:jt,proceed(){Wt(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:jt}),$e(le,De)},reset(){let On=new Map($.blockers);On.set(qt,cm),we({blockers:On})}});return}await Te(Lt,jt,{submission:ut,pendingError:zt,preventScrollReset:Ot,replace:De&&De.replace,enableViewTransition:De&&De.viewTransition,flushSync:kt})}function fe(){ie||(ie=T6()),at(),we({revalidation:"loading"});let le=ie.promise;return $.navigation.state==="submitting"?le:$.navigation.state==="idle"?(Te($.historyAction,$.location,{startUninterruptedRevalidation:!0}),le):(Te(I||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation,enableViewTransition:H===!0}),le)}async function Te(le,De,Le){A&&A.abort(),A=null,I=le,_=(Le&&Le.startUninterruptedRevalidation)===!0,Jt($.location,$.matches),F=(Le&&Le.preventScrollReset)===!0,H=(Le&&Le.enableViewTransition)===!0;let Ye=l||s,ut=Le&&Le.overrideNavigation,zt=Le?.initialHydration&&$.matches&&$.matches.length>0&&!k?$.matches:Xc(Ye,De,u),Ut=(Le&&Le.flushSync)===!0;if(zt&&$.initialized&&!B&&g6($.location,De)&&!(Le&&Le.submission&&Pa(Le.submission.formMethod))){Ce(De,{matches:zt},{flushSync:Ut});return}let jt=be(zt,Ye,De.pathname);if(jt.active&&jt.matches&&(zt=jt.matches),!zt){let{error:xn,notFoundMatches:fn,route:de}=bn(De.pathname);Ce(De,{matches:fn,loaderData:{},errors:{[de.id]:xn}},{flushSync:Ut});return}A=new AbortController;let mt=ap(e.history,De,A.signal,Le&&Le.submission),Lt=e.getContext?await e.getContext():new NR,Ot;if(Le&&Le.pendingError)Ot=[Zc(zt).route.id,{type:"error",error:Le.pendingError}];else if(Le&&Le.submission&&Pa(Le.submission.formMethod)){let xn=await nt(mt,De,Le.submission,zt,Lt,jt.active,Le&&Le.initialHydration===!0,{replace:Le.replace,flushSync:Ut});if(xn.shortCircuited)return;if(xn.pendingActionResult){let[fn,de]=xn.pendingActionResult;if(ai(de)&&Og(de.error)&&de.error.status===404){A=null,Ce(De,{matches:xn.matches,loaderData:{},errors:{[fn]:de.error}});return}}zt=xn.matches||zt,Ot=xn.pendingActionResult,ut=ES(De,Le.submission),Ut=!1,jt.active=!1,mt=ap(e.history,mt.url,mt.signal)}let{shortCircuited:kt,matches:qt,loaderData:On,errors:Kn}=await ze(mt,De,zt,Lt,jt.active,ut,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Ut,Ot);kt||(A=null,Ce(De,{matches:qt||zt,...YR(Ot),loaderData:On,errors:Kn}))}async function nt(le,De,Le,Ye,ut,zt,Ut,jt={}){at();let mt=S6(De,Le);if(we({navigation:mt},{flushSync:jt.flushSync===!0}),zt){let kt=await Bn(Ye,De.pathname,le.signal);if(kt.type==="aborted")return{shortCircuited:!0};if(kt.type==="error"){if(kt.partialMatches.length===0){let{matches:On,route:Kn}=jv(s);return{matches:On,pendingActionResult:[Kn.id,{type:"error",error:kt.error}]}}let qt=Zc(kt.partialMatches).route.id;return{matches:kt.partialMatches,pendingActionResult:[qt,{type:"error",error:kt.error}]}}else if(kt.matches)Ye=kt.matches;else{let{notFoundMatches:qt,error:On,route:Kn}=bn(De.pathname);return{matches:qt,pendingActionResult:[Kn.id,{type:"error",error:On}]}}}let Lt,Ot=yb(Ye,De);if(!Ot.route.action&&!Ot.route.lazy)Lt={type:"error",error:Ni(405,{method:le.method,pathname:De.pathname,routeId:Ot.route.id})};else{let kt=pp(o,a,le,Ye,Ot,Ut?[]:r,ut),qt=await _t(le,kt,ut,null);if(Lt=qt[Ot.route.id],!Lt){for(let On of Ye)if(qt[On.route.id]){Lt=qt[On.route.id];break}}if(le.signal.aborted)return{shortCircuited:!0}}if(hd(Lt)){let kt;return jt&&jt.replace!=null?kt=jt.replace:kt=VR(Lt.response.headers.get("Location"),new URL(le.url),u)===$.location.pathname+$.location.search,await pt(le,Lt,!0,{submission:Le,replace:kt}),{shortCircuited:!0}}if(ai(Lt)){let kt=Zc(Ye,Ot.route.id);return(jt&&jt.replace)!==!0&&(I="PUSH"),{matches:Ye,pendingActionResult:[kt.route.id,Lt,Ot.route.id]}}return{matches:Ye,pendingActionResult:[Ot.route.id,Lt]}}async function ze(le,De,Le,Ye,ut,zt,Ut,jt,mt,Lt,Ot,kt){let qt=zt||ES(De,Ut),On=Ut||jt||KR(qt),Kn=!_&&!Lt;if(ut){if(Kn){let yt=Ae(kt);we({navigation:qt,...yt!==void 0?{actionData:yt}:{}},{flushSync:Ot})}let We=await Bn(Le,De.pathname,le.signal);if(We.type==="aborted")return{shortCircuited:!0};if(We.type==="error"){if(We.partialMatches.length===0){let{matches:$t,route:Tt}=jv(s);return{matches:$t,loaderData:{},errors:{[Tt.id]:We.error}}}let yt=Zc(We.partialMatches).route.id;return{matches:We.partialMatches,loaderData:{},errors:{[yt]:We.error}}}else if(We.matches)Le=We.matches;else{let{error:yt,notFoundMatches:$t,route:Tt}=bn(De.pathname);return{matches:$t,loaderData:{},errors:{[Tt.id]:yt}}}}let xn=l||s,{dsMatches:fn,revalidatingFetchers:de}=zR(le,Ye,o,a,e.history,$,Le,On,De,Lt?[]:r,Lt===!0,B,W,oe,J,X,xn,u,e.patchRoutesOnNavigation!=null,kt);if(K=++Q,!e.dataStrategy&&!fn.some(We=>We.shouldLoad)&&!fn.some(We=>We.route.middleware)&&de.length===0){let We=Rt();return Ce(De,{matches:Le,loaderData:{},errors:kt&&ai(kt[1])?{[kt[0]]:kt[1].error}:null,...YR(kt),...We?{fetchers:new Map($.fetchers)}:{}},{flushSync:Ot}),{shortCircuited:!0}}if(Kn){let We={};if(!ut){We.navigation=qt;let yt=Ae(kt);yt!==void 0&&(We.actionData=yt)}de.length>0&&(We.fetchers=ue(de)),we(We,{flushSync:Ot})}de.forEach(We=>{Me(We.key),We.controller&&j.set(We.key,We.controller)});let pe=()=>de.forEach(We=>Me(We.key));A&&A.signal.addEventListener("abort",pe);let{loaderResults:He,fetcherResults:vt}=await Ht(fn,de,le,Ye);if(le.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",pe),de.forEach(We=>j.delete(We.key));let Ke=Nv(He);if(Ke)return await pt(le,Ke.result,!0,{replace:mt}),{shortCircuited:!0};if(Ke=Nv(vt),Ke)return X.add(Ke.key),await pt(le,Ke.result,!0,{replace:mt}),{shortCircuited:!0};let{loaderData:nn,errors:cn}=WR($,Le,He,kt,de,vt);Lt&&$.errors&&(cn={...$.errors,...cn});let pn=Rt(),ge=gt(K),Re=pn||ge||de.length>0;return{matches:Le,loaderData:nn,errors:cn,...Re?{fetchers:new Map($.fetchers)}:{}}}function Ae(le){if(le&&!ai(le[1]))return{[le[0]]:le[1].data};if($.actionData)return Object.keys($.actionData).length===0?null:$.actionData}function ue(le){return le.forEach(De=>{let Le=$.fetchers.get(De.key),Ye=um(void 0,Le?Le.data:void 0);$.fetchers.set(De.key,Ye)}),new Map($.fetchers)}async function bt(le,De,Le,Ye){Me(le);let ut=(Ye&&Ye.flushSync)===!0,zt=l||s,Ut=Dw($.location,$.matches,u,Le,De,Ye?.relative),jt=Xc(zt,Ut,u),mt=be(jt,zt,Ut);if(mt.active&&mt.matches&&(jt=mt.matches),!jt){ot(le,De,Ni(404,{pathname:Ut}),{flushSync:ut});return}let{path:Lt,submission:Ot,error:kt}=LR(!0,Ut,Ye);if(kt){ot(le,De,kt,{flushSync:ut});return}let qt=e.getContext?await e.getContext():new NR,On=(Ye&&Ye.preventScrollReset)===!0;if(Ot&&Pa(Ot.formMethod)){await Be(le,De,Lt,jt,qt,mt.active,ut,On,Ot);return}J.set(le,{routeId:De,path:Lt}),await it(le,De,Lt,jt,qt,mt.active,ut,On,Ot)}async function Be(le,De,Le,Ye,ut,zt,Ut,jt,mt){at(),J.delete(le);let Lt=$.fetchers.get(le);Xe(le,w6(mt,Lt),{flushSync:Ut});let Ot=new AbortController,kt=ap(e.history,Le,Ot.signal,mt);if(zt){let wt=await Bn(Ye,new URL(kt.url).pathname,kt.signal,le);if(wt.type==="aborted")return;if(wt.type==="error"){ot(le,De,wt.error,{flushSync:Ut});return}else if(wt.matches)Ye=wt.matches;else{ot(le,De,Ni(404,{pathname:Le}),{flushSync:Ut});return}}let qt=yb(Ye,Le);if(!qt.route.action&&!qt.route.lazy){let wt=Ni(405,{method:mt.formMethod,pathname:Le,routeId:De});ot(le,De,wt,{flushSync:Ut});return}j.set(le,Ot);let On=Q,Kn=pp(o,a,kt,Ye,qt,r,ut),fn=(await _t(kt,Kn,ut,le))[qt.route.id];if(kt.signal.aborted){j.get(le)===Ot&&j.delete(le);return}if(oe.has(le)){if(hd(fn)||ai(fn)){Xe(le,Qc(void 0));return}}else{if(hd(fn))if(j.delete(le),K>On){Xe(le,Qc(void 0));return}else return X.add(le),Xe(le,um(mt)),pt(kt,fn,!1,{fetcherSubmission:mt,preventScrollReset:jt});if(ai(fn)){ot(le,De,fn.error);return}}let de=$.navigation.location||$.location,pe=ap(e.history,de,Ot.signal),He=l||s,vt=$.navigation.state!=="idle"?Xc(He,$.navigation.location,u):$.matches;rr(vt,"Didn't find any matches after fetcher action");let Ke=++Q;te.set(le,Ke);let nn=um(mt,fn.data);$.fetchers.set(le,nn);let{dsMatches:cn,revalidatingFetchers:pn}=zR(pe,ut,o,a,e.history,$,vt,mt,de,r,!1,B,W,oe,J,X,He,u,e.patchRoutesOnNavigation!=null,[qt.route.id,fn]);pn.filter(wt=>wt.key!==le).forEach(wt=>{let Qt=wt.key,Sn=$.fetchers.get(Qt),hr=um(void 0,Sn?Sn.data:void 0);$.fetchers.set(Qt,hr),Me(Qt),wt.controller&&j.set(Qt,wt.controller)}),we({fetchers:new Map($.fetchers)});let ge=()=>pn.forEach(wt=>Me(wt.key));Ot.signal.addEventListener("abort",ge);let{loaderResults:Re,fetcherResults:We}=await Ht(cn,pn,pe,ut);if(Ot.signal.aborted)return;if(Ot.signal.removeEventListener("abort",ge),te.delete(le),j.delete(le),pn.forEach(wt=>j.delete(wt.key)),$.fetchers.has(le)){let wt=Qc(fn.data);$.fetchers.set(le,wt)}let yt=Nv(Re);if(yt)return pt(pe,yt.result,!1,{preventScrollReset:jt});if(yt=Nv(We),yt)return X.add(yt.key),pt(pe,yt.result,!1,{preventScrollReset:jt});let{loaderData:$t,errors:Tt}=WR($,vt,Re,void 0,pn,We);gt(Ke),$.navigation.state==="loading"&&Ke>K?(rr(I,"Expected pending action"),A&&A.abort(),Ce($.navigation.location,{matches:vt,loaderData:$t,errors:Tt,fetchers:new Map($.fetchers)})):(we({errors:Tt,loaderData:qR($.loaderData,$t,vt,Tt),fetchers:new Map($.fetchers)}),B=!1)}async function it(le,De,Le,Ye,ut,zt,Ut,jt,mt){let Lt=$.fetchers.get(le);Xe(le,um(mt,Lt?Lt.data:void 0),{flushSync:Ut});let Ot=new AbortController,kt=ap(e.history,Le,Ot.signal);if(zt){let de=await Bn(Ye,new URL(kt.url).pathname,kt.signal,le);if(de.type==="aborted")return;if(de.type==="error"){ot(le,De,de.error,{flushSync:Ut});return}else if(de.matches)Ye=de.matches;else{ot(le,De,Ni(404,{pathname:Le}),{flushSync:Ut});return}}let qt=yb(Ye,Le);j.set(le,Ot);let On=Q,Kn=pp(o,a,kt,Ye,qt,r,ut),fn=(await _t(kt,Kn,ut,le))[qt.route.id];if(j.get(le)===Ot&&j.delete(le),!kt.signal.aborted){if(oe.has(le)){Xe(le,Qc(void 0));return}if(hd(fn))if(K>On){Xe(le,Qc(void 0));return}else{X.add(le),await pt(kt,fn,!1,{preventScrollReset:jt});return}if(ai(fn)){ot(le,De,fn.error);return}Xe(le,Qc(fn.data))}}async function pt(le,De,Le,{submission:Ye,fetcherSubmission:ut,preventScrollReset:zt,replace:Ut}={}){De.response.headers.has("X-Remix-Revalidate")&&(B=!0);let jt=De.response.headers.get("Location");rr(jt,"Expected a Location header on the redirect Response"),jt=VR(jt,new URL(le.url),u);let mt=Eg($.location,jt,{_isRedirect:!0});if(n){let Kn=!1;if(De.response.headers.has("X-Remix-Reload-Document"))Kn=!0;else if(yk(jt)){const xn=Vj(jt,!0);Kn=xn.origin!==t.location.origin||Gi(xn.pathname,u)==null}if(Kn){Ut?t.location.replace(jt):t.location.assign(jt);return}}A=null;let Lt=Ut===!0||De.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ot,formAction:kt,formEncType:qt}=$.navigation;!Ye&&!ut&&Ot&&kt&&qt&&(Ye=KR($.navigation));let On=Ye||ut;if(JF.has(De.response.status)&&On&&Pa(On.formMethod))await Te(Lt,mt,{submission:{...On,formAction:jt},preventScrollReset:zt||F,enableViewTransition:Le?H:void 0});else{let Kn=ES(mt,Ye);await Te(Lt,mt,{overrideNavigation:Kn,fetcherSubmission:ut,preventScrollReset:zt||F,enableViewTransition:Le?H:void 0})}}async function _t(le,De,Le,Ye){let ut,zt={};try{ut=await u6(f,le,De,Ye,Le,!1)}catch(Ut){return De.filter(jt=>jt.shouldLoad).forEach(jt=>{zt[jt.route.id]={type:"error",error:Ut}}),zt}if(le.signal.aborted)return zt;for(let[Ut,jt]of Object.entries(ut))if(b6(jt)){let mt=jt.result;zt[Ut]={type:"redirect",response:h6(mt,le,Ut,De,u)}}else zt[Ut]=await p6(jt);return zt}async function Ht(le,De,Le,Ye){let ut=_t(Le,le,Ye,null),zt=Promise.all(De.map(async mt=>{if(mt.matches&&mt.match&&mt.request&&mt.controller){let Ot=(await _t(mt.request,mt.matches,Ye,mt.key))[mt.match.route.id];return{[mt.key]:Ot}}else return Promise.resolve({[mt.key]:{type:"error",error:Ni(404,{pathname:mt.path})}})})),Ut=await ut,jt=(await zt).reduce((mt,Lt)=>Object.assign(mt,Lt),{});return{loaderResults:Ut,fetcherResults:jt}}function at(){B=!0,J.forEach((le,De)=>{j.has(De)&&W.add(De),Me(De)})}function Xe(le,De,Le={}){$.fetchers.set(le,De),we({fetchers:new Map($.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function ot(le,De,Le,Ye={}){let ut=Zc($.matches,De);he(le),we({errors:{[ut.route.id]:Le},fetchers:new Map($.fetchers)},{flushSync:(Ye&&Ye.flushSync)===!0})}function Ne(le){return ne.set(le,(ne.get(le)||0)+1),oe.has(le)&&oe.delete(le),$.fetchers.get(le)||e6}function he(le){let De=$.fetchers.get(le);j.has(le)&&!(De&&De.state==="loading"&&te.has(le))&&Me(le),J.delete(le),te.delete(le),X.delete(le),oe.delete(le),W.delete(le),$.fetchers.delete(le)}function qe(le){let De=(ne.get(le)||0)-1;De<=0?(ne.delete(le),oe.add(le)):ne.set(le,De),we({fetchers:new Map($.fetchers)})}function Me(le){let De=j.get(le);De&&(De.abort(),j.delete(le))}function Mt(le){for(let De of le){let Le=Ne(De),Ye=Qc(Le.data);$.fetchers.set(De,Ye)}}function Rt(){let le=[],De=!1;for(let Le of X){let Ye=$.fetchers.get(Le);rr(Ye,`Expected fetcher: ${Le}`),Ye.state==="loading"&&(X.delete(Le),le.push(Le),De=!0)}return Mt(le),De}function gt(le){let De=[];for(let[Le,Ye]of te)if(Ye<le){let ut=$.fetchers.get(Le);rr(ut,`Expected fetcher: ${Le}`),ut.state==="loading"&&(Me(Le),te.delete(Le),De.push(Le))}return Mt(De),De.length>0}function ct(le,De){let Le=$.blockers.get(le)||cm;return se.get(le)!==De&&se.set(le,De),Le}function At(le){$.blockers.delete(le),se.delete(le)}function Wt(le,De){let Le=$.blockers.get(le)||cm;rr(Le.state==="unblocked"&&De.state==="blocked"||Le.state==="blocked"&&De.state==="blocked"||Le.state==="blocked"&&De.state==="proceeding"||Le.state==="blocked"&&De.state==="unblocked"||Le.state==="proceeding"&&De.state==="unblocked",`Invalid blocker state transition: ${Le.state} -> ${De.state}`);let Ye=new Map($.blockers);Ye.set(le,De),we({blockers:Ye})}function dn({currentLocation:le,nextLocation:De,historyAction:Le}){if(se.size===0)return;se.size>1&&mo(!1,"A router only supports one blocker at a time");let Ye=Array.from(se.entries()),[ut,zt]=Ye[Ye.length-1],Ut=$.blockers.get(ut);if(!(Ut&&Ut.state==="proceeding")&&zt({currentLocation:le,nextLocation:De,historyAction:Le}))return ut}function bn(le){let De=Ni(404,{pathname:le}),Le=l||s,{matches:Ye,route:ut}=jv(Le);return{notFoundMatches:Ye,route:ut,error:De}}function _n(le,De,Le){if(v=le,x=De,b=Le||null,!w&&$.navigation===MS){w=!0;let Ye=Ln($.location,$.matches);Ye!=null&&we({restoreScrollPosition:Ye})}return()=>{v=null,x=null,b=null}}function Gn(le,De){return b&&b(le,De.map(Ye=>PF(Ye,$.loaderData)))||le.key}function Jt(le,De){if(v&&x){let Le=Gn(le,De);v[Le]=x()}}function Ln(le,De){if(v){let Le=Gn(le,De),Ye=v[Le];if(typeof Ye=="number")return Ye}return null}function be(le,De,Le){if(e.patchRoutesOnNavigation)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:gb(De,Le,u,!0)}}else return{active:!0,matches:gb(De,Le,u,!0)||[]};return{active:!1,matches:null}}async function Bn(le,De,Le,Ye){if(!e.patchRoutesOnNavigation)return{type:"success",matches:le};let ut=le;for(;;){let zt=l==null,Ut=l||s,jt=a;try{await e.patchRoutesOnNavigation({signal:Le,path:De,matches:ut,fetcherKey:Ye,patch:(Ot,kt)=>{Le.aborted||FR(Ot,kt,Ut,jt,o,!1)}})}catch(Ot){return{type:"error",error:Ot,partialMatches:ut}}finally{zt&&!Le.aborted&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let mt=Xc(Ut,De,u);if(mt)return{type:"success",matches:mt};let Lt=gb(Ut,De,u,!0);if(!Lt||ut.length===Lt.length&&ut.every((Ot,kt)=>Ot.route.id===Lt[kt].route.id))return{type:"success",matches:null};ut=Lt}}function Rn(le){a={},l=Rg(le,o,void 0,a)}function en(le,De,Le=!1){let Ye=l==null;FR(le,De,l||s,a,o,Le),Ye&&(s=[...s],we({}))}return P={get basename(){return u},get future(){return c},get state(){return $},get routes(){return s},get window(){return t},initialize:ce,subscribe:ye,enableScrollRestoration:_n,navigate:$e,fetch:bt,revalidate:fe,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:Ne,deleteFetcher:qe,dispose:me,getBlocker:ct,deleteBlocker:At,patchRoutes:en,_internalFetchControllers:j,_internalSetRoutes:Rn,_internalSetStateDoNotUseOrYouWillBreakYourApp(le){we(le)}},P}function o6(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Dw(e,t,n,r,o,a){let s,l;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){l=f;break}}else s=t,l=t[t.length-1];let u=k0(r||".",C0(s),Gi(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let f=vk(u.search);if(l.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&f){let c=new URLSearchParams(u.search),m=c.getAll("index");c.delete("index"),m.filter(v=>v).forEach(v=>c.append("index",v));let y=c.toString();u.search=y?`?${y}`:""}}return n!=="/"&&(u.pathname=VF({basename:n,pathname:u.pathname})),du(u)}function LR(e,t,n){if(!n||!o6(n))return{path:t};if(n.formMethod&&!x6(n.formMethod))return{path:t,error:Ni(405,{method:n.formMethod})};let r=()=>({path:t,error:Ni(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=tN(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Pa(a))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[v,b])=>`${y}${v}=${b}
60
- `,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Pa(a))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}rr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Nw(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Nw(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=HR(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=HR(l)}catch{return r()}let f={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Pa(f.formMethod))return{path:t,submission:f};let c=vu(t);return e&&c.search&&vk(c.search)&&l.append("index",""),c.search=`?${l}`,{path:du(c),submission:f}}function zR(e,t,n,r,o,a,s,l,u,f,c,m,y,v,b,x,w,S,k,T){let O=T?ai(T[1])?T[1].error:T[1].data:void 0,P=o.createURL(a.location),$=o.createURL(u),I;if(c&&a.errors){let _=Object.keys(a.errors)[0];I=s.findIndex(B=>B.route.id===_)}else if(T&&ai(T[1])){let _=T[0];I=s.findIndex(B=>B.route.id===_)-1}let F=T?T[1].statusCode:void 0,A=F&&F>=400,H={currentUrl:P,currentParams:a.matches[0]?.params||{},nextUrl:$,nextParams:s[0].params,...l,actionResult:O,actionStatus:F},L=s.map((_,B)=>{let{route:W}=_,j=null;if(I!=null&&B>I?j=!1:W.lazy?j=!0:W.loader==null?j=!1:c?j=Aw(W,a.loaderData,a.errors):a6(a.loaderData,a.matches[B],_)&&(j=!0),j!==null)return jw(n,r,e,_,f,t,j);let Q=A?!1:m||P.pathname+P.search===$.pathname+$.search||P.search!==$.search||i6(a.matches[B],_),K={...H,defaultShouldRevalidate:Q},te=Bb(_,K);return jw(n,r,e,_,f,t,te,K)}),M=[];return b.forEach((_,B)=>{if(c||!s.some(ne=>ne.route.id===_.routeId)||v.has(B))return;let W=a.fetchers.get(B),j=W&&W.state!=="idle"&&W.data===void 0,Q=Xc(w,_.path,S);if(!Q){if(k&&j)return;M.push({key:B,routeId:_.routeId,path:_.path,matches:null,match:null,request:null,controller:null});return}if(x.has(B))return;let K=yb(Q,_.path),te=new AbortController,X=ap(o,_.path,te.signal),J=null;if(y.has(B))y.delete(B),J=pp(n,r,X,Q,K,f,t);else if(j)m&&(J=pp(n,r,X,Q,K,f,t));else{let ne={...H,defaultShouldRevalidate:A?!1:m};Bb(K,ne)&&(J=pp(n,r,X,Q,K,f,t,ne))}J&&M.push({key:B,routeId:_.routeId,path:_.path,matches:J,match:K,request:X,controller:te})}),{dsMatches:L,revalidatingFetchers:M}}function Aw(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function a6(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function i6(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Bb(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function FR(e,t,n,r,o,a){let s;if(e){let f=r[e];rr(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),s=f.children}else s=n;let l=[],u=[];if(t.forEach(f=>{let c=s.find(m=>Qj(f,m));c?u.push({existingRoute:c,newRoute:f}):l.push(f)}),l.length>0){let f=Rg(l,o,[e||"_","patch",String(s?.length||"0")],r);s.push(...f)}if(a&&u.length>0)for(let f=0;f<u.length;f++){let{existingRoute:c,newRoute:m}=u[f],y=c,[v]=Rg([m],o,[],{},!0);Object.assign(y,{element:v.element?v.element:y.element,errorElement:v.errorElement?v.errorElement:y.errorElement,hydrateFallbackElement:v.hydrateFallbackElement?v.hydrateFallbackElement:y.hydrateFallbackElement})}}function Qj(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(o=>Qj(n,o))):!1}var BR=new WeakMap,Xj=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(rr(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=BR.get(o);s||(s={},BR.set(o,s));let l=s[e];if(l)return l;let u=(async()=>{let f=MF(e),m=o[e]!==void 0&&e!=="hasErrorBoundary";if(f)mo(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(m)mo(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await a();y!=null&&(Object.assign(o,{[e]:y}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(y=>y===void 0)&&(o.lazy=void 0))})();return s[e]=u,u},_R=new WeakMap;function s6(e,t,n,r,o){let a=n[e.id];if(rr(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let c=_R.get(a);if(c)return{lazyRoutePromise:c,lazyHandlerPromise:c};let m=(async()=>{rr(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),v={};for(let b in y){let x=y[b];if(x===void 0)continue;let w=RF(b),k=a[b]!==void 0&&b!=="hasErrorBoundary";w?mo(!w,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):k?mo(!k,`Route "${a.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):v[b]=x}Object.assign(a,v),Object.assign(a,{...r(a),lazy:void 0})})();return _R.set(a,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let s=Object.keys(e.lazy),l=[],u;for(let c of s){if(o&&o.includes(c))continue;let m=Xj({key:c,route:e,manifest:n,mapRouteProperties:r});m&&(l.push(m),c===t&&(u=m))}let f=l.length>0?Promise.all(l).then(()=>{}):void 0;return f?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:u}}async function UR(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function l6(e){return e.matches.some(t=>t.route.middleware)?Zj(e,()=>UR(e)):UR(e)}function Zj(e,t){return c6(e,t,r=>r,y6,n);function n(r,o,a){if(a)return Promise.resolve(Object.assign(a.value,{[o]:{type:"error",result:r}}));{let{matches:s}=e,l=Math.min(s.findIndex(f=>f.route.id===o)||0,s.findIndex(f=>f.unstable_shouldCallHandler())||0),u=Zc(s,s[l].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function c6(e,t,n,r,o){let{matches:a,request:s,params:l,context:u}=e,f=a.flatMap(m=>m.route.middleware?m.route.middleware.map(y=>[m.route.id,y]):[]);return await Jj({request:s,params:l,context:u},f,t,n,r,o)}async function Jj(e,t,n,r,o,a,s=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason??new Error(`Request aborted: ${l.method} ${l.url}`);let u=t[s];if(!u)return await n();let[f,c]=u,m,y=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");try{return m={value:await Jj(e,t,n,r,o,a,s+1)},m.value}catch(v){return m={value:await a(v,f,m)},m.value}};try{let v=await c(e,y),b=v!=null?r(v):void 0;return o(b)?b:m?b??m.value:(m={value:await y()},m.value)}catch(v){return await a(v,f,m)}}function eN(e,t,n,r,o){let a=Xj({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=s6(r.route,Pa(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function jw(e,t,n,r,o,a,s,l=null){let u=!1,f=eN(e,t,n,r,o);return{...r,_lazyPromises:f,shouldLoad:s,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(c){return u=!0,l?typeof c=="boolean"?Bb(r,{...l,defaultShouldRevalidate:c}):Bb(r,l):s},resolve(c){return u||s||c&&!Pa(n.method)&&(r.route.lazy||r.route.loader)?d6({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:c,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function pp(e,t,n,r,o,a,s,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:eN(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:jw(e,t,n,u,a,s,!0,l))}async function u6(e,t,n,r,o,a){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let s={request:t,params:n[0].params,context:o,matches:n},u=await e({...s,fetcherKey:r,runClientMiddleware:f=>{let c=s;return Zj(c,()=>f({...c,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return u}async function d6({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,l,u=Pa(e.method),f=u?"action":"loader",c=m=>{let y,v=new Promise((w,S)=>y=S);l=()=>y(),e.signal.addEventListener("abort",l);let b=w=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:a},...w!==void 0?[w]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(S=>b(S)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([x,v])};try{let m=u?t.route.action:t.route.loader;if(n||r)if(m){let y,[v]=await Promise.all([c(m).catch(b=>{y=b}),n,r]);if(y!==void 0)throw y;s=v}else{await n;let y=u?t.route.action:t.route.loader;if(y)[s]=await Promise.all([c(y),r]);else if(f==="action"){let v=new URL(e.url),b=v.pathname+v.search;throw Ni(405,{method:e.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)s=await c(m);else{let y=new URL(e.url),v=y.pathname+y.search;throw Ni(404,{pathname:v})}}catch(m){return{type:"error",result:m}}finally{l&&e.signal.removeEventListener("abort",l)}return s}async function f6(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function p6(e){let{result:t,type:n}=e;if(nN(t)){let r;try{r=await f6(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new Fb(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?GR(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Fb(t.init?.status||500,void 0,t.data),statusCode:Og(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Og(t)?t.status:void 0}:GR(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function h6(e,t,n,r,o){let a=e.headers.get("Location");if(rr(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!yk(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Dw(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function VR(e,t,n){if(yk(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Gi(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function ap(e,t,n,r){let o=e.createURL(tN(t)).toString(),a={signal:n};if(r&&Pa(r.formMethod)){let{formMethod:s,formEncType:l}=r;a.method=s.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=Nw(r.formData):a.body=r.formData}return new Request(o,a)}function Nw(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function HR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function m6(e,t,n,r=!1,o=!1){let a={},s=null,l,u=!1,f={},c=n&&ai(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let y=m.route.id,v=t[y];if(rr(!hd(v),"Cannot handle redirect results in processLoaderData"),ai(v)){let b=v.error;if(c!==void 0&&(b=c,c=void 0),s=s||{},o)s[y]=b;else{let x=Zc(e,y);s[x.route.id]==null&&(s[x.route.id]=b)}r||(a[y]=Kj),u||(u=!0,l=Og(v.error)?v.error.status:500),v.headers&&(f[y]=v.headers)}else a[y]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(l=v.statusCode),v.headers&&(f[y]=v.headers)}),c!==void 0&&n&&(s={[n[0]]:c},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:l||200,loaderHeaders:f}}function WR(e,t,n,r,o,a){let{loaderData:s,errors:l}=m6(t,n,r);return o.filter(u=>!u.matches||u.matches.some(f=>f.shouldLoad)).forEach(u=>{let{key:f,match:c,controller:m}=u;if(m&&m.signal.aborted)return;let y=a[f];if(rr(y,"Did not find corresponding fetcher result"),ai(y)){let v=Zc(e.matches,c?.route.id);l&&l[v.route.id]||(l={...l,[v.route.id]:y.error}),e.fetchers.delete(f)}else if(hd(y))rr(!1,"Unhandled fetcher revalidation redirect");else{let v=Qc(y.data);e.fetchers.set(f,v)}}),{loaderData:s,errors:l}}function qR(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==Kj).reduce((a,[s,l])=>(a[s]=l,a),{});for(let a of n){let s=a.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&a.route.loader&&(o[s]=e[s]),r&&r.hasOwnProperty(s))break}return o}function YR(e){return e?ai(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Zc(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function jv(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ni(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",l=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new Fb(e||500,s,new Error(l),!0)}function Nv(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(hd(o))return{key:r,result:o}}}function tN(e){let t=typeof e=="string"?vu(e):e;return du({...t,hash:""})}function g6(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function y6(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&v6(n))}function v6(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function b6(e){return nN(e.result)&&ZF.has(e.result.status)}function ai(e){return e.type==="error"}function hd(e){return(e&&e.type)==="redirect"}function GR(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function nN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function x6(e){return XF.has(e.toUpperCase())}function Pa(e){return KF.has(e.toUpperCase())}function vk(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function yb(e,t){let n=typeof t=="string"?vu(t).search:t.search;if(e[e.length-1].route.index&&vk(n||""))return e[e.length-1];let r=qj(e);return r[r.length-1]}function KR(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function ES(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function S6(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function um(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function w6(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Qc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function C6(e,t){try{let n=e.sessionStorage.getItem(Gj);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function k6(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Gj,JSON.stringify(n))}catch(r){mo(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function T6(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Fd=C.createContext(null);Fd.displayName="DataRouter";var oy=C.createContext(null);oy.displayName="DataRouterState";C.createContext(!1);var bk=C.createContext({isTransitioning:!1});bk.displayName="ViewTransition";var rN=C.createContext(new Map);rN.displayName="Fetchers";var M6=C.createContext(null);M6.displayName="Await";var Ps=C.createContext(null);Ps.displayName="Navigation";var T0=C.createContext(null);T0.displayName="Location";var rs=C.createContext({outlet:null,matches:[],isDataRoute:!1});rs.displayName="Route";var xk=C.createContext(null);xk.displayName="RouteError";function E6(e,{relative:t}={}){rr(Hp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Ps),{hash:o,pathname:a,search:s}=iy(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:dl([n,a])),r.createHref({pathname:l,search:s,hash:o})}function Hp(){return C.useContext(T0)!=null}function wl(){return rr(Hp(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(T0).location}var oN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function aN(e){C.useContext(Ps).static||C.useLayoutEffect(e)}function ay(){let{isDataRoute:e}=C.useContext(rs);return e?U6():R6()}function R6(){rr(Hp(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(Fd),{basename:t,navigator:n}=C.useContext(Ps),{matches:r}=C.useContext(rs),{pathname:o}=wl(),a=JSON.stringify(C0(r)),s=C.useRef(!1);return aN(()=>{s.current=!0}),C.useCallback((u,f={})=>{if(mo(s.current,oN),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=k0(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:dl([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,a,o,e])}var O6=C.createContext(null);function P6(e){let t=C.useContext(rs).outlet;return t&&C.createElement(O6.Provider,{value:e},t)}function Jve(){let{matches:e}=C.useContext(rs),t=e[e.length-1];return t?t.params:{}}function iy(e,{relative:t}={}){let{matches:n}=C.useContext(rs),{pathname:r}=wl(),o=JSON.stringify(C0(n));return C.useMemo(()=>k0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function $6(e,t,n,r,o){rr(Hp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=C.useContext(Ps),{matches:s}=C.useContext(rs),l=s[s.length-1],u=l?l.params:{},f=l?l.pathname:"/",c=l?l.pathnameBase:"/",m=l&&l.route;{let k=m&&m.path||"";iN(f,!m||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
61
-
62
- Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let y=wl(),v;v=y;let b=v.pathname||"/",x=b;if(c!=="/"){let k=c.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=Xc(e,{pathname:x});return mo(m||w!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),mo(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),I6(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},u,k.params),pathname:dl([c,a.encodeLocation?a.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:dl([c,a.encodeLocation?a.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),s,n,r,o)}function D6(){let e=_6(),t=Og(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:a},"ErrorBoundary")," or"," ",C.createElement("code",{style:a},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:o},n):null,s)}var A6=C.createElement(D6,null),j6=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?C.createElement(rs.Provider,{value:this.props.routeContext},C.createElement(xk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function N6({routeContext:e,match:t,children:n}){let r=C.useContext(Fd);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(rs.Provider,{value:e},n)}function I6(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n?.errors;if(s!=null){let f=a.findIndex(c=>c.route.id&&s?.[c.route.id]!==void 0);rr(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(n)for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:m,errors:y}=n,v=c.route.loader&&!m.hasOwnProperty(c.route.id)&&(!y||y[c.route.id]===void 0);if(c.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,m)=>{let y,v=!1,b=null,x=null;n&&(y=s&&c.route.id?s[c.route.id]:void 0,b=c.route.errorElement||A6,l&&(u<0&&m===0?(iN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):u===m&&(v=!0,x=c.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,m+1)),S=()=>{let k;return y?k=b:v?k=x:c.route.Component?k=C.createElement(c.route.Component,null):c.route.element?k=c.route.element:k=f,C.createElement(N6,{match:c,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:k})};return n&&(c.route.ErrorBoundary||c.route.errorElement||m===0)?C.createElement(j6,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0},unstable_onError:r}):S()},null)}function Sk(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function L6(e){let t=C.useContext(Fd);return rr(t,Sk(e)),t}function z6(e){let t=C.useContext(oy);return rr(t,Sk(e)),t}function F6(e){let t=C.useContext(rs);return rr(t,Sk(e)),t}function wk(e){let t=F6(e),n=t.matches[t.matches.length-1];return rr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function B6(){return wk("useRouteId")}function _6(){let e=C.useContext(xk),t=z6("useRouteError"),n=wk("useRouteError");return e!==void 0?e:t.errors?.[n]}function U6(){let{router:e}=L6("useNavigate"),t=wk("useNavigate"),n=C.useRef(!1);return aN(()=>{n.current=!0}),C.useCallback(async(o,a={})=>{mo(n.current,oN),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var QR={};function iN(e,t,n){!t&&!QR[e]&&(QR[e]=!0,mo(!1,n))}var XR={};function ZR(e,t){!e&&!XR[t]&&(XR[t]=!0,console.warn(t))}function V6(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&mo(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:C.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&mo(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:C.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&mo(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var H6=["HydrateFallback","hydrateFallbackElement"],W6=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function q6({router:e,flushSync:t,unstable_onError:n}){let[r,o]=C.useState(e.state),[a,s]=C.useState(),[l,u]=C.useState({isTransitioning:!1}),[f,c]=C.useState(),[m,y]=C.useState(),[v,b]=C.useState(),x=C.useRef(new Map),w=C.useCallback(P=>{o($=>(P.errors&&n&&Object.entries(P.errors).forEach(([I,F])=>{$.errors?.[I]!==F&&n(F)}),P))},[n]),S=C.useCallback((P,{deletedFetchers:$,flushSync:I,viewTransitionOpts:F})=>{P.fetchers.forEach((H,L)=>{H.data!==void 0&&x.current.set(L,H.data)}),$.forEach(H=>x.current.delete(H)),ZR(I===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let A=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(ZR(F==null||A,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!F||!A){t&&I?t(()=>w(P)):C.startTransition(()=>w(P));return}if(t&&I){t(()=>{m&&(f&&f.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let H=e.window.document.startViewTransition(()=>{t(()=>w(P))});H.finished.finally(()=>{t(()=>{c(void 0),y(void 0),s(void 0),u({isTransitioning:!1})})}),t(()=>y(H));return}m?(f&&f.resolve(),m.skipTransition(),b({state:P,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(P),u({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[e.window,t,m,f,w]);C.useLayoutEffect(()=>e.subscribe(S),[e,S]),C.useEffect(()=>{l.isTransitioning&&!l.flushSync&&c(new W6)},[l]),C.useEffect(()=>{if(f&&a&&e.window){let P=a,$=f.promise,I=e.window.document.startViewTransition(async()=>{C.startTransition(()=>w(P)),await $});I.finished.finally(()=>{c(void 0),y(void 0),s(void 0),u({isTransitioning:!1})}),y(I)}},[a,f,e.window,w]),C.useEffect(()=>{f&&a&&r.location.key===a.location.key&&f.resolve()},[f,m,r.location,a]),C.useEffect(()=>{!l.isTransitioning&&v&&(s(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),b(void 0))},[l.isTransitioning,v]);let k=C.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:P=>e.navigate(P),push:(P,$,I)=>e.navigate(P,{state:$,preventScrollReset:I?.preventScrollReset}),replace:(P,$,I)=>e.navigate(P,{replace:!0,state:$,preventScrollReset:I?.preventScrollReset})}),[e]),T=e.basename||"/",O=C.useMemo(()=>({router:e,navigator:k,static:!1,basename:T,unstable_onError:n}),[e,k,T,n]);return C.createElement(C.Fragment,null,C.createElement(Fd.Provider,{value:O},C.createElement(oy.Provider,{value:r},C.createElement(rN.Provider,{value:x.current},C.createElement(bk.Provider,{value:l},C.createElement(Q6,{basename:T,location:r.location,navigationType:r.historyAction,navigator:k},C.createElement(Y6,{routes:e.routes,future:e.future,state:r,unstable_onError:n})))))),null)}var Y6=C.memo(G6);function G6({routes:e,future:t,state:n,unstable_onError:r}){return $6(e,void 0,n,r,t)}function K6({to:e,replace:t,state:n,relative:r}){rr(Hp(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=C.useContext(Ps);mo(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=C.useContext(rs),{pathname:s}=wl(),l=ay(),u=k0(e,C0(a),s,r==="path"),f=JSON.stringify(u);return C.useEffect(()=>{l(JSON.parse(f),{replace:t,state:n,relative:r})},[l,f,r,t,n]),null}function ebe(e){return P6(e.context)}function Q6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){rr(!Hp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=C.useMemo(()=>({basename:s,navigator:o,static:a,future:{}}),[s,o,a]);typeof n=="string"&&(n=vu(n));let{pathname:u="/",search:f="",hash:c="",state:m=null,key:y="default"}=n,v=C.useMemo(()=>{let b=Gi(u,s);return b==null?null:{location:{pathname:b,search:f,hash:c,state:m,key:y},navigationType:r}},[s,u,f,c,m,y,r]);return mo(v!=null,`<Router basename="${s}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:C.createElement(Ps.Provider,{value:l},C.createElement(T0.Provider,{children:t,value:v}))}var vb="get",bb="application/x-www-form-urlencoded";function M0(e){return e!=null&&typeof e.tagName=="string"}function X6(e){return M0(e)&&e.tagName.toLowerCase()==="button"}function Z6(e){return M0(e)&&e.tagName.toLowerCase()==="form"}function J6(e){return M0(e)&&e.tagName.toLowerCase()==="input"}function eB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tB(e,t){return e.button===0&&(!t||t==="_self")&&!eB(e)}function Iw(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function nB(e,t){let n=Iw(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}var Iv=null;function rB(){if(Iv===null)try{new FormData(document.createElement("form"),0),Iv=!1}catch{Iv=!0}return Iv}var oB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function RS(e){return e!=null&&!oB.has(e)?(mo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bb}"`),null):e}function aB(e,t){let n,r,o,a,s;if(Z6(e)){let l=e.getAttribute("action");r=l?Gi(l,t):null,n=e.getAttribute("method")||vb,o=RS(e.getAttribute("enctype"))||bb,a=new FormData(e)}else if(X6(e)||J6(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?Gi(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||vb,o=RS(e.getAttribute("formenctype"))||RS(l.getAttribute("enctype"))||bb,a=new FormData(l,e),!rB()){let{name:f,type:c,value:m}=e;if(c==="image"){let y=f?`${f}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else f&&a.append(f,m)}}else{if(M0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=vb,r=null,o=bb,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ck(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iB(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Gi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function sB(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lB(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function cB(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await sB(a,n);return s.links?s.links():[]}return[]}));return pB(r.flat(1).filter(lB).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function JR(e,t,n,r,o,a){let s=(u,f)=>n[f]?u.route.id!==n[f].route.id:!0,l=(u,f)=>n[f].pathname!==u.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,f)=>s(u,f)||l(u,f)):a==="data"?t.filter((u,f)=>{let c=r.routes[u.route.id];if(!c||!c.hasLoader)return!1;if(s(u,f)||l(u,f))return!0;if(u.route.shouldRevalidate){let m=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function uB(e,t,{includeHydrateFallback:n}={}){return dB(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function dB(e){return[...new Set(e)]}function fB(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function pB(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(fB(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function sN(){let e=C.useContext(Fd);return Ck(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hB(){let e=C.useContext(oy);return Ck(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var kk=C.createContext(void 0);kk.displayName="FrameworkContext";function lN(){let e=C.useContext(kk);return Ck(e,"You must render this element inside a <HydratedRouter> element"),e}function mB(e,t){let n=C.useContext(kk),[r,o]=C.useState(!1),[a,s]=C.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:f,onMouseLeave:c,onTouchStart:m}=t,y=C.useRef(null);C.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=S=>{S.forEach(k=>{s(k.isIntersecting)})},w=new IntersectionObserver(x,{threshold:.5});return y.current&&w.observe(y.current),()=>{w.disconnect()}}},[e]),C.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let v=()=>{o(!0)},b=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:dm(l,v),onBlur:dm(u,b),onMouseEnter:dm(f,v),onMouseLeave:dm(c,b),onTouchStart:dm(m,v)}]:[!1,y,{}]}function dm(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function gB({page:e,...t}){let{router:n}=sN(),r=C.useMemo(()=>Xc(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(vB,{page:e,matches:r,...t}):null}function yB(e){let{manifest:t,routeModules:n}=lN(),[r,o]=C.useState([]);return C.useEffect(()=>{let a=!1;return cB(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function vB({page:e,matches:t,...n}){let r=wl(),{manifest:o,routeModules:a}=lN(),{basename:s}=sN(),{loaderData:l,matches:u}=hB(),f=C.useMemo(()=>JR(e,t,u,o,r,"data"),[e,t,u,o,r]),c=C.useMemo(()=>JR(e,t,u,o,r,"assets"),[e,t,u,o,r]),m=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,x=!1;if(t.forEach(S=>{let k=o.routes[S.route.id];!k||!k.hasLoader||(!f.some(T=>T.route.id===S.route.id)&&S.route.id in l&&a[S.route.id]?.shouldRevalidate||k.hasClientLoader?x=!0:b.add(S.route.id))}),b.size===0)return[];let w=iB(e,s,"data");return x&&b.size>0&&w.searchParams.set("_routes",t.filter(S=>b.has(S.route.id)).map(S=>S.route.id).join(",")),[w.pathname+w.search]},[s,l,r,o,f,t,e,a]),y=C.useMemo(()=>uB(c,o),[c,o]),v=yB(c);return C.createElement(C.Fragment,null,m.map(b=>C.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),y.map(b=>C.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),v.map(({key:b,link:x})=>C.createElement("link",{key:b,nonce:n.nonce,...x})))}function bB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cN&&(window.__reactRouterVersion="7.9.1")}catch{}function xB(e,t){return r6({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:wF({window:t?.window}),hydrationData:SB(),routes:e,mapRouteProperties:V6,hydrationRouteProperties:H6,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function SB(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:wB(e.errors)}),e}function wB(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Fb(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let s=new a(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var uN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dN=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:l,target:u,to:f,preventScrollReset:c,viewTransition:m,...y},v){let{basename:b}=C.useContext(Ps),x=typeof f=="string"&&uN.test(f),w,S=!1;if(typeof f=="string"&&x&&(w=f,cN))try{let A=new URL(window.location.href),H=f.startsWith("//")?new URL(A.protocol+f):new URL(f),L=Gi(H.pathname,b);H.origin===A.origin&&L!=null?f=L+H.search+H.hash:S=!0}catch{mo(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let k=E6(f,{relative:o}),[T,O,P]=mB(r,y),$=MB(f,{replace:s,state:l,target:u,preventScrollReset:c,relative:o,viewTransition:m});function I(A){t&&t(A),A.defaultPrevented||$(A)}let F=C.createElement("a",{...y,...P,href:w||k,onClick:S||a?t:I,ref:bB(v,O),target:u,"data-discover":!x&&n==="render"?"true":void 0});return T&&!x?C.createElement(C.Fragment,null,F,C.createElement(gB,{page:k})):F});dN.displayName="Link";var CB=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:u,...f},c){let m=iy(s,{relative:f.relative}),y=wl(),v=C.useContext(oy),{navigator:b,basename:x}=C.useContext(Ps),w=v!=null&&DB(m)&&l===!0,S=b.encodeLocation?b.encodeLocation(m).pathname:m.pathname,k=y.pathname,T=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(k=k.toLowerCase(),T=T?T.toLowerCase():null,S=S.toLowerCase()),T&&x&&(T=Gi(T,x)||T);const O=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let P=k===S||!o&&k.startsWith(S)&&k.charAt(O)==="/",$=T!=null&&(T===S||!o&&T.startsWith(S)&&T.charAt(S.length)==="/"),I={isActive:P,isPending:$,isTransitioning:w},F=P?t:void 0,A;typeof r=="function"?A=r(I):A=[r,P?"active":null,$?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a(I):a;return C.createElement(dN,{...f,"aria-current":F,className:A,ref:c,style:H,to:s,viewTransition:l},typeof u=="function"?u(I):u)});CB.displayName="NavLink";var kB=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=vb,action:l,onSubmit:u,relative:f,preventScrollReset:c,viewTransition:m,...y},v)=>{let b=PB(),x=$B(l,{relative:f}),w=s.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&uN.test(l),k=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let O=T.nativeEvent.submitter,P=O?.getAttribute("formmethod")||s;b(O||T.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:o,state:a,relative:f,preventScrollReset:c,viewTransition:m})};return C.createElement("form",{ref:v,method:w,action:x,onSubmit:r?u:k,...y,"data-discover":!S&&e==="render"?"true":void 0})});kB.displayName="Form";function TB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fN(e){let t=C.useContext(Fd);return rr(t,TB(e)),t}function MB(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let l=ay(),u=wl(),f=iy(e,{relative:a});return C.useCallback(c=>{if(tB(c,t)){c.preventDefault();let m=n!==void 0?n:du(u)===du(f);l(e,{replace:m,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,f,n,r,t,e,o,a,s])}function EB(e){mo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(Iw(e)),n=C.useRef(!1),r=wl(),o=C.useMemo(()=>nB(r.search,n.current?null:t.current),[r.search]),a=ay(),s=C.useCallback((l,u)=>{const f=Iw(typeof l=="function"?l(new URLSearchParams(o)):l);n.current=!0,a("?"+f,u)},[a,o]);return[o,s]}var RB=0,OB=()=>`__${String(++RB)}__`;function PB(){let{router:e}=fN("useSubmit"),{basename:t}=C.useContext(Ps),n=B6();return C.useCallback(async(r,o={})=>{let{action:a,method:s,encType:l,formData:u,body:f}=aB(r,t);if(o.navigate===!1){let c=o.fetcherKey||OB();await e.fetch(c,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:f,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:f,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function $B(e,{relative:t}={}){let{basename:n}=C.useContext(Ps),r=C.useContext(rs);rr(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...iy(e||".",{relative:t})},s=wl();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(c=>c==="")){l.delete("index"),u.filter(m=>m).forEach(m=>l.append("index",m));let c=l.toString();a.search=c?`?${c}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:dl([n,a.pathname])),du(a)}function DB(e,{relative:t}={}){let n=C.useContext(bk);rr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fN("useViewTransitionState"),o=iy(e,{relative:t});if(!n.isTransitioning)return!1;let a=Gi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Gi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return zb(o.pathname,s)!=null||zb(o.pathname,a)!=null}var sy=_j();const tu=Bj(sy);function AB(e){return C.createElement(q6,{flushSync:sy.flushSync,...e})}const jB="modulepreload",NB=function(e){return"/"+e},eO={},jo=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(f){return Promise.all(f.map(c=>Promise.resolve(c).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=s(n.map(f=>{if(f=NB(f),f in eO)return;eO[f]=!0;const c=f.endsWith(".css"),m=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const y=document.createElement("link");if(y.rel=c?"stylesheet":jB,c||(y.as="script"),y.crossOrigin="",y.href=f,u&&y.setAttribute("nonce",u),document.head.appendChild(y),c)return new Promise((v,b)=>{y.addEventListener("load",v),y.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},Pg={black:"#000",white:"#fff"},zf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ff={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Bf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_f={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Uf={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},fm={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},IB={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"};function ac(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const fl="$$material";function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_b.apply(null,arguments)}function LB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function zB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var FB=(function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=LB(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),aa="-ms-",Ub="-moz-",Sr="-webkit-",pN="comm",Tk="rule",Mk="decl",BB="@import",hN="@keyframes",_B="@layer",UB=Math.abs,E0=String.fromCharCode,VB=Object.assign;function HB(e,t){return Zo(e,0)^45?(((t<<2^Zo(e,0))<<2^Zo(e,1))<<2^Zo(e,2))<<2^Zo(e,3):0}function mN(e){return e.trim()}function WB(e,t){return(e=t.exec(e))?e[0]:e}function wr(e,t,n){return e.replace(t,n)}function Lw(e,t){return e.indexOf(t)}function Zo(e,t){return e.charCodeAt(t)|0}function $g(e,t,n){return e.slice(t,n)}function rl(e){return e.length}function Ek(e){return e.length}function Lv(e,t){return t.push(e),e}function qB(e,t){return e.map(t).join("")}var R0=1,Mp=1,gN=0,Ba=0,Ro=0,Wp="";function O0(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:R0,column:Mp,length:s,return:""}}function pm(e,t){return VB(O0("",null,null,"",null,null,0),e,{length:-e.length},t)}function YB(){return Ro}function GB(){return Ro=Ba>0?Zo(Wp,--Ba):0,Mp--,Ro===10&&(Mp=1,R0--),Ro}function hi(){return Ro=Ba<gN?Zo(Wp,Ba++):0,Mp++,Ro===10&&(Mp=1,R0++),Ro}function pl(){return Zo(Wp,Ba)}function xb(){return Ba}function ly(e,t){return $g(Wp,e,t)}function Dg(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yN(e){return R0=Mp=1,gN=rl(Wp=e),Ba=0,[]}function vN(e){return Wp="",e}function Sb(e){return mN(ly(Ba-1,zw(e===91?e+2:e===40?e+1:e)))}function KB(e){for(;(Ro=pl())&&Ro<33;)hi();return Dg(e)>2||Dg(Ro)>3?"":" "}function QB(e,t){for(;--t&&hi()&&!(Ro<48||Ro>102||Ro>57&&Ro<65||Ro>70&&Ro<97););return ly(e,xb()+(t<6&&pl()==32&&hi()==32))}function zw(e){for(;hi();)switch(Ro){case e:return Ba;case 34:case 39:e!==34&&e!==39&&zw(Ro);break;case 40:e===41&&zw(e);break;case 92:hi();break}return Ba}function XB(e,t){for(;hi()&&e+Ro!==57;)if(e+Ro===84&&pl()===47)break;return"/*"+ly(t,Ba-1)+"*"+E0(e===47?e:hi())}function ZB(e){for(;!Dg(pl());)hi();return ly(e,Ba)}function JB(e){return vN(wb("",null,null,null,[""],e=yN(e),0,[0],e))}function wb(e,t,n,r,o,a,s,l,u){for(var f=0,c=0,m=s,y=0,v=0,b=0,x=1,w=1,S=1,k=0,T="",O=o,P=a,$=r,I=T;w;)switch(b=k,k=hi()){case 40:if(b!=108&&Zo(I,m-1)==58){Lw(I+=wr(Sb(k),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:I+=Sb(k);break;case 9:case 10:case 13:case 32:I+=KB(b);break;case 92:I+=QB(xb()-1,7);continue;case 47:switch(pl()){case 42:case 47:Lv(e_(XB(hi(),xb()),t,n),u);break;default:I+="/"}break;case 123*x:l[f++]=rl(I)*S;case 125*x:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+c:S==-1&&(I=wr(I,/\f/g,"")),v>0&&rl(I)-m&&Lv(v>32?nO(I+";",r,n,m-1):nO(wr(I," ","")+";",r,n,m-2),u);break;case 59:I+=";";default:if(Lv($=tO(I,t,n,f,c,o,l,T,O=[],P=[],m),a),k===123)if(c===0)wb(I,t,$,$,O,a,m,l,P);else switch(y===99&&Zo(I,3)===110?100:y){case 100:case 108:case 109:case 115:wb(e,$,$,r&&Lv(tO(e,$,$,0,0,o,l,T,o,O=[],m),P),o,P,m,l,r?O:P);break;default:wb(I,$,$,$,[""],P,0,l,P)}}f=c=v=0,x=S=1,T=I="",m=s;break;case 58:m=1+rl(I),v=b;default:if(x<1){if(k==123)--x;else if(k==125&&x++==0&&GB()==125)continue}switch(I+=E0(k),k*x){case 38:S=c>0?1:(I+="\f",-1);break;case 44:l[f++]=(rl(I)-1)*S,S=1;break;case 64:pl()===45&&(I+=Sb(hi())),y=pl(),c=m=rl(T=I+=ZB(xb())),k++;break;case 45:b===45&&rl(I)==2&&(x=0)}}return a}function tO(e,t,n,r,o,a,s,l,u,f,c){for(var m=o-1,y=o===0?a:[""],v=Ek(y),b=0,x=0,w=0;b<r;++b)for(var S=0,k=$g(e,m+1,m=UB(x=s[b])),T=e;S<v;++S)(T=mN(x>0?y[S]+" "+k:wr(k,/&\f/g,y[S])))&&(u[w++]=T);return O0(e,t,n,o===0?Tk:l,u,f,c)}function e_(e,t,n){return O0(e,t,n,pN,E0(YB()),$g(e,2,-2),0)}function nO(e,t,n,r){return O0(e,t,n,Mk,$g(e,0,r),$g(e,r+1,-1),r)}function hp(e,t){for(var n="",r=Ek(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function t_(e,t,n,r){switch(e.type){case _B:if(e.children.length)break;case BB:case Mk:return e.return=e.return||e.value;case pN:return"";case hN:return e.return=e.value+"{"+hp(e.children,r)+"}";case Tk:e.value=e.props.join(",")}return rl(n=hp(e.children,r))?e.return=e.value+"{"+n+"}":""}function n_(e){var t=Ek(e);return function(n,r,o,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,a)||"";return s}}function r_(e){return function(t){t.root||(t=t.return)&&e(t)}}function bN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var o_=function(t,n,r){for(var o=0,a=0;o=a,a=pl(),o===38&&a===12&&(n[r]=1),!Dg(a);)hi();return ly(t,Ba)},a_=function(t,n){var r=-1,o=44;do switch(Dg(o)){case 0:o===38&&pl()===12&&(n[r]=1),t[r]+=o_(Ba-1,n,r);break;case 2:t[r]+=Sb(o);break;case 4:if(o===44){t[++r]=pl()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=E0(o)}while(o=hi());return t},i_=function(t,n){return vN(a_(yN(t),n))},rO=new WeakMap,s_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!rO.get(r))&&!o){rO.set(t,!0);for(var a=[],s=i_(n,a),l=r.props,u=0,f=0;u<s.length;u++)for(var c=0;c<l.length;c++,f++)t.props[f]=a[u]?s[u].replace(/&\f/g,l[c]):l[c]+" "+s[u]}}},l_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function xN(e,t){switch(HB(e,t)){case 5103:return Sr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Sr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Sr+e+Ub+e+aa+e+e;case 6828:case 4268:return Sr+e+aa+e+e;case 6165:return Sr+e+aa+"flex-"+e+e;case 5187:return Sr+e+wr(e,/(\w+).+(:[^]+)/,Sr+"box-$1$2"+aa+"flex-$1$2")+e;case 5443:return Sr+e+aa+"flex-item-"+wr(e,/flex-|-self/,"")+e;case 4675:return Sr+e+aa+"flex-line-pack"+wr(e,/align-content|flex-|-self/,"")+e;case 5548:return Sr+e+aa+wr(e,"shrink","negative")+e;case 5292:return Sr+e+aa+wr(e,"basis","preferred-size")+e;case 6060:return Sr+"box-"+wr(e,"-grow","")+Sr+e+aa+wr(e,"grow","positive")+e;case 4554:return Sr+wr(e,/([^-])(transform)/g,"$1"+Sr+"$2")+e;case 6187:return wr(wr(wr(e,/(zoom-|grab)/,Sr+"$1"),/(image-set)/,Sr+"$1"),e,"")+e;case 5495:case 3959:return wr(e,/(image-set\([^]*)/,Sr+"$1$`$1");case 4968:return wr(wr(e,/(.+:)(flex-)?(.*)/,Sr+"box-pack:$3"+aa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sr+e+e;case 4095:case 3583:case 4068:case 2532:return wr(e,/(.+)-inline(.+)/,Sr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rl(e)-1-t>6)switch(Zo(e,t+1)){case 109:if(Zo(e,t+4)!==45)break;case 102:return wr(e,/(.+:)(.+)-([^]+)/,"$1"+Sr+"$2-$3$1"+Ub+(Zo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lw(e,"stretch")?xN(wr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zo(e,t+1)!==115)break;case 6444:switch(Zo(e,rl(e)-3-(~Lw(e,"!important")&&10))){case 107:return wr(e,":",":"+Sr)+e;case 101:return wr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Sr+(Zo(e,14)===45?"inline-":"")+"box$3$1"+Sr+"$2$3$1"+aa+"$2box$3")+e}break;case 5936:switch(Zo(e,t+11)){case 114:return Sr+e+aa+wr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sr+e+aa+wr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sr+e+aa+wr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Sr+e+aa+e+e}return e}var c_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Mk:t.return=xN(t.value,t.length);break;case hN:return hp([pm(t,{value:wr(t.value,"@","@"+Sr)})],o);case Tk:if(t.length)return qB(t.props,function(a){switch(WB(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hp([pm(t,{props:[wr(a,/:(read-\w+)/,":"+Ub+"$1")]})],o);case"::placeholder":return hp([pm(t,{props:[wr(a,/:(plac\w+)/,":"+Sr+"input-$1")]}),pm(t,{props:[wr(a,/:(plac\w+)/,":"+Ub+"$1")]}),pm(t,{props:[wr(a,/:(plac\w+)/,aa+"input-$1")]})],o)}return""})}},u_=[c_],d_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||u_,a={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)a[w[S]]=!0;l.push(x)});var u,f=[s_,l_];{var c,m=[t_,r_(function(x){c.insert(x)})],y=n_(f.concat(o,m)),v=function(w){return hp(JB(w),y)};u=function(w,S,k,T){c=k,v(w?w+"{"+S.styles+"}":S.styles),T&&(b.inserted[S.name]=!0)}}var b={key:n,sheet:new FB({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return b.sheet.hydrate(l),b},OS={exports:{}},Cr={};/** @license React v16.13.1
63
- * react-is.production.min.js
64
- *
65
- * Copyright (c) Facebook, Inc. and its affiliates.
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE file in the root directory of this source tree.
69
- */var oO;function f_(){if(oO)return Cr;oO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=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,c=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function T(P){if(typeof P=="object"&&P!==null){var $=P.$$typeof;switch($){case t:switch(P=P.type,P){case u:case f:case r:case a:case o:case m:return P;default:switch(P=P&&P.$$typeof,P){case l:case c:case b:case v:case s:return P;default:return $}}case n:return $}}}function O(P){return T(P)===f}return Cr.AsyncMode=u,Cr.ConcurrentMode=f,Cr.ContextConsumer=l,Cr.ContextProvider=s,Cr.Element=t,Cr.ForwardRef=c,Cr.Fragment=r,Cr.Lazy=b,Cr.Memo=v,Cr.Portal=n,Cr.Profiler=a,Cr.StrictMode=o,Cr.Suspense=m,Cr.isAsyncMode=function(P){return O(P)||T(P)===u},Cr.isConcurrentMode=O,Cr.isContextConsumer=function(P){return T(P)===l},Cr.isContextProvider=function(P){return T(P)===s},Cr.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Cr.isForwardRef=function(P){return T(P)===c},Cr.isFragment=function(P){return T(P)===r},Cr.isLazy=function(P){return T(P)===b},Cr.isMemo=function(P){return T(P)===v},Cr.isPortal=function(P){return T(P)===n},Cr.isProfiler=function(P){return T(P)===a},Cr.isStrictMode=function(P){return T(P)===o},Cr.isSuspense=function(P){return T(P)===m},Cr.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===f||P===a||P===o||P===m||P===y||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===v||P.$$typeof===s||P.$$typeof===l||P.$$typeof===c||P.$$typeof===w||P.$$typeof===S||P.$$typeof===k||P.$$typeof===x)},Cr.typeOf=T,Cr}var aO;function p_(){return aO||(aO=1,OS.exports=f_()),OS.exports}var PS,iO;function h_(){if(iO)return PS;iO=1;var e=p_(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function s(b){return e.isMemo(b)?o:a[b.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;function v(b,x,w){if(typeof x!="string"){if(y){var S=m(x);S&&S!==y&&v(b,S,w)}var k=u(x);f&&(k=k.concat(f(x)));for(var T=s(b),O=s(x),P=0;P<k.length;++P){var $=k[P];if(!n[$]&&!(w&&w[$])&&!(O&&O[$])&&!(T&&T[$])){var I=c(x,$);try{l(b,$,I)}catch{}}}}return b}return PS=v,PS}h_();var m_=!0;function SN(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Rk=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||m_===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ok=function(t,n,r){Rk(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function g_(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 y_={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},v_=/[A-Z]|^ms/g,b_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wN=function(t){return t.charCodeAt(1)===45},sO=function(t){return t!=null&&typeof t!="boolean"},$S=bN(function(e){return wN(e)?e:e.replace(v_,"-$&").toLowerCase()}),lO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(b_,function(r,o,a){return ol={name:o,styles:a,next:ol},o})}return y_[t]!==1&&!wN(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ag(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ol={name:o.name,styles:o.styles,next:ol},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ol={name:s.name,styles:s.styles,next:ol},s=s.next;var l=a.styles+";";return l}return x_(e,t,n)}case"function":{if(e!==void 0){var u=ol,f=n(e);return ol=u,Ag(e,t,f)}break}}var c=n;if(t==null)return c;var m=t[c];return m!==void 0?m:c}function x_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ag(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":sO(l)&&(r+=$S(a)+":"+lO(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)sO(s[u])&&(r+=$S(a)+":"+lO(a,s[u])+";");else{var f=Ag(e,t,s);switch(a){case"animation":case"animationName":{r+=$S(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var cO=/label:\s*([^\s;{]+)\s*(;|$)/g,ol;function cy(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ol=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Ag(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Ag(n,t,e[l]),r){var u=a;o+=u[l]}cO.lastIndex=0;for(var f="",c;(c=cO.exec(o))!==null;)f+="-"+c[1];var m=g_(o)+f;return{name:m,styles:o,next:ol}}var S_=function(t){return t()},CN=Mg.useInsertionEffect?Mg.useInsertionEffect:!1,kN=CN||S_,uO=CN||C.useLayoutEffect,TN=C.createContext(typeof HTMLElement<"u"?d_({key:"css"}):null);TN.Provider;var Pk=function(t){return C.forwardRef(function(n,r){var o=C.useContext(TN);return t(n,o,r)})},qp=C.createContext({}),$k={}.hasOwnProperty,Fw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",w_=function(t,n){var r={};for(var o in n)$k.call(n,o)&&(r[o]=n[o]);return r[Fw]=t,r},C_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Rk(n,r,o),kN(function(){return Ok(n,r,o)}),null},k_=Pk(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Fw],a=[r],s="";typeof e.className=="string"?s=SN(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=cy(a,void 0,C.useContext(qp));s+=t.key+"-"+l.name;var u={};for(var f in e)$k.call(e,f)&&f!=="css"&&f!==Fw&&(u[f]=e[f]);return u.className=s,n&&(u.ref=n),C.createElement(C.Fragment,null,C.createElement(C_,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,u))}),T_=k_,dO=function(t,n){var r=arguments;if(n==null||!$k.call(n,"css"))return C.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=T_,a[1]=w_(t,n);for(var s=2;s<o;s++)a[s]=r[s];return C.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(dO||(dO={}));var M_=Pk(function(e,t){var n=e.styles,r=cy([n],void 0,C.useContext(qp)),o=C.useRef();return uO(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",a),s.hydrate([u])),o.current=[s,l],function(){s.flush()}},[t]),uO(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&Ok(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function bu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return cy(t)}function vi(){var e=bu.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var E_=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,R_=bN(function(e){return E_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),O_=R_,P_=function(t){return t!=="theme"},fO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?O_:P_},pO=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},$_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Rk(n,r,o),kN(function(){return Ok(n,r,o)}),null},D_=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var l=pO(t,n,r),u=l||fO(o),f=!u("as");return function(){var c=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)m.push.apply(m,c);else{var y=c[0];m.push(y[0]);for(var v=c.length,b=1;b<v;b++)m.push(c[b],y[b])}var x=Pk(function(w,S,k){var T=f&&w.as||o,O="",P=[],$=w;if(w.theme==null){$={};for(var I in w)$[I]=w[I];$.theme=C.useContext(qp)}typeof w.className=="string"?O=SN(S.registered,P,w.className):w.className!=null&&(O=w.className+" ");var F=cy(m.concat(P),S.registered,$);O+=S.key+"-"+F.name,s!==void 0&&(O+=" "+s);var A=f&&l===void 0?fO(T):u,H={};for(var L in w)f&&L==="as"||A(L)&&(H[L]=w[L]);return H.className=O,k&&(H.ref=k),C.createElement(C.Fragment,null,C.createElement($_,{cache:S,serialized:F,isStringTag:typeof T=="string"}),C.createElement(T,H))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=m,x.__emotion_forwardProp=l,Object.defineProperty(x,"toString",{value:function(){return"."+s}}),x.withComponent=function(w,S){var k=e(w,_b({},n,S,{shouldForwardProp:pO(x,S,!0)}));return k.apply(void 0,m)},x}},A_=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vb=D_.bind(null);A_.forEach(function(e){Vb[e]=Vb(e)});function j_(e){return e==null||Object.keys(e).length===0}function MN(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(j_(o)?n:o):t;return h.jsx(M_,{styles:r})}function EN(e,t){return Vb(e,t)}function N_(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const hO=[];function au(e){return hO[0]=e,cy(hO)}var DS={exports:{}},zr={};/**
70
- * @license React
71
- * react-is.production.js
72
- *
73
- * Copyright (c) Meta Platforms, Inc. and affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */var mO;function I_(){if(mO)return zr;mO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function b(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case u:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case m:case c:return x;case a:return x;default:return w}}case t:return w}}}return zr.ContextConsumer=a,zr.ContextProvider=s,zr.Element=e,zr.ForwardRef=l,zr.Fragment=n,zr.Lazy=m,zr.Memo=c,zr.Portal=t,zr.Profiler=o,zr.StrictMode=r,zr.Suspense=u,zr.SuspenseList=f,zr.isContextConsumer=function(x){return b(x)===a},zr.isContextProvider=function(x){return b(x)===s},zr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},zr.isForwardRef=function(x){return b(x)===l},zr.isFragment=function(x){return b(x)===n},zr.isLazy=function(x){return b(x)===m},zr.isMemo=function(x){return b(x)===c},zr.isPortal=function(x){return b(x)===t},zr.isProfiler=function(x){return b(x)===o},zr.isStrictMode=function(x){return b(x)===r},zr.isSuspense=function(x){return b(x)===u},zr.isSuspenseList=function(x){return b(x)===f},zr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===c||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===v||x.getModuleId!==void 0)},zr.typeOf=b,zr}var gO;function L_(){return gO||(gO=1,DS.exports=I_()),DS.exports}var RN=L_();function ll(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 ON(e){if(C.isValidElement(e)||RN.isValidElementType(e)||!ll(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ON(e[n])}),t}function Ho(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ll(e)&&ll(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||RN.isValidElementType(t[o])?r[o]=t[o]:ll(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ll(e[o])?r[o]=Ho(e[o],t[o],n):n.clone?r[o]=ll(t[o])?ON(t[o]):t[o]:r[o]=t[o]}),r}const z_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function F_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=z_(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-r/100}${n})`}function c(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function m(y){const v=s.indexOf(y);return v===0?l(s[1]):v===s.length-1?u(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:u,between:f,only:c,not:m,unit:n,...o}}function yO(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function B_(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function __(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function U_(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const V_={borderRadius:4};function sg(e,t){return t?Ho(e,t,{clone:!1}):e}const P0={xs:0,sm:600,md:900,lg:1200,xl:1536},vO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${P0[e]}px)`},H_={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:P0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Es(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||vO;return t.reduce((s,l,u)=>(s[a.up(a.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const a=r.breakpoints||vO;return Object.keys(t).reduce((s,l)=>{if(B_(a.keys,l)){const u=__(r.containerQueries?r:H_,l);u&&(s[u]=n(t[l],l))}else if(Object.keys(a.values||P0).includes(l)){const u=a.up(l);s[u]=n(t[l],l)}else{const u=l;s[u]=t[u]}return s},{})}return n(t)}function PN(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function Bw(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function W_(e,...t){const n=PN(e),r=[n,...t].reduce((o,a)=>Ho(o,a),{});return Bw(Object.keys(n),r)}function q_(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function AS({values:e,breakpoints:t,base:n}){const r=n||q_(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,u)=>(Array.isArray(e)?(s[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function tt(e){if(typeof e!="string")throw new Error(ac(7));return e.charAt(0).toUpperCase()+e.slice(1)}function al(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Hb(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=al(e,n)||r,t&&(o=t(o,r,e)),o}function Co(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,f=al(u,r)||{};return Es(s,l,m=>{let y=Hb(f,o,m);return m===y&&typeof m=="string"&&(y=Hb(f,o,`${t}${m==="default"?"":tt(m)}`,m)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function Y_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const G_={m:"margin",p:"padding"},K_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Q_=Y_(e=>{if(e.length>2)if(bO[e])e=bO[e];else return[e];const[t,n]=e.split(""),r=G_[t],o=K_[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Dk=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ak=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Dk,...Ak];function uy(e,t,n,r){const o=al(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function $0(e){return uy(e,"spacing",8)}function Rd(e,t){return typeof t=="string"||t==null?t:e(t)}function X_(e,t){return n=>e.reduce((r,o)=>(r[o]=Rd(t,n),r),{})}function Z_(e,t,n,r){if(!t.includes(n))return null;const o=Q_(n),a=X_(o,r),s=e[n];return Es(e,s,a)}function $N(e,t){const n=$0(e.theme);return Object.keys(e).map(r=>Z_(e,t,r,n)).reduce(sg,{})}function so(e){return $N(e,Dk)}so.propTypes={};so.filterProps=Dk;function lo(e){return $N(e,Ak)}lo.propTypes={};lo.filterProps=Ak;function jk(e=8,t=$0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function D0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?sg(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Fi(e){return typeof e!="number"?e:`${e}px solid`}function os(e,t){return Co({prop:e,themeKey:"borders",transform:t})}const J_=os("border",Fi),eU=os("borderTop",Fi),tU=os("borderRight",Fi),nU=os("borderBottom",Fi),rU=os("borderLeft",Fi),oU=os("borderColor"),aU=os("borderTopColor"),iU=os("borderRightColor"),sU=os("borderBottomColor"),lU=os("borderLeftColor"),cU=os("outline",Fi),uU=os("outlineColor"),A0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=uy(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Rd(t,r)});return Es(e,e.borderRadius,n)}return null};A0.propTypes={};A0.filterProps=["borderRadius"];D0(J_,eU,tU,nU,rU,oU,aU,iU,sU,lU,A0,cU,uU);const j0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=uy(e.theme,"spacing",8),n=r=>({gap:Rd(t,r)});return Es(e,e.gap,n)}return null};j0.propTypes={};j0.filterProps=["gap"];const N0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=uy(e.theme,"spacing",8),n=r=>({columnGap:Rd(t,r)});return Es(e,e.columnGap,n)}return null};N0.propTypes={};N0.filterProps=["columnGap"];const I0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=uy(e.theme,"spacing",8),n=r=>({rowGap:Rd(t,r)});return Es(e,e.rowGap,n)}return null};I0.propTypes={};I0.filterProps=["rowGap"];const dU=Co({prop:"gridColumn"}),fU=Co({prop:"gridRow"}),pU=Co({prop:"gridAutoFlow"}),hU=Co({prop:"gridAutoColumns"}),mU=Co({prop:"gridAutoRows"}),gU=Co({prop:"gridTemplateColumns"}),yU=Co({prop:"gridTemplateRows"}),vU=Co({prop:"gridTemplateAreas"}),bU=Co({prop:"gridArea"});D0(j0,N0,I0,dU,fU,pU,hU,mU,gU,yU,vU,bU);function mp(e,t){return t==="grey"?t:e}const xU=Co({prop:"color",themeKey:"palette",transform:mp}),SU=Co({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mp}),wU=Co({prop:"backgroundColor",themeKey:"palette",transform:mp});D0(xU,SU,wU);function ui(e){return e<=1&&e!==0?`${e*100}%`:e}const CU=Co({prop:"width",transform:ui}),Nk=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||P0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ui(n)}};return Es(e,e.maxWidth,t)}return null};Nk.filterProps=["maxWidth"];const kU=Co({prop:"minWidth",transform:ui}),TU=Co({prop:"height",transform:ui}),MU=Co({prop:"maxHeight",transform:ui}),EU=Co({prop:"minHeight",transform:ui});Co({prop:"size",cssProperty:"width",transform:ui});Co({prop:"size",cssProperty:"height",transform:ui});const RU=Co({prop:"boxSizing"});D0(CU,Nk,kU,TU,MU,EU,RU);const dy={border:{themeKey:"borders",transform:Fi},borderTop:{themeKey:"borders",transform:Fi},borderRight:{themeKey:"borders",transform:Fi},borderBottom:{themeKey:"borders",transform:Fi},borderLeft:{themeKey:"borders",transform:Fi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A0},color:{themeKey:"palette",transform:mp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mp},backgroundColor:{themeKey:"palette",transform:mp},p:{style:lo},pt:{style:lo},pr:{style:lo},pb:{style:lo},pl:{style:lo},px:{style:lo},py:{style:lo},padding:{style:lo},paddingTop:{style:lo},paddingRight:{style:lo},paddingBottom:{style:lo},paddingLeft:{style:lo},paddingX:{style:lo},paddingY:{style:lo},paddingInline:{style:lo},paddingInlineStart:{style:lo},paddingInlineEnd:{style:lo},paddingBlock:{style:lo},paddingBlockStart:{style:lo},paddingBlockEnd:{style:lo},m:{style:so},mt:{style:so},mr:{style:so},mb:{style:so},ml:{style:so},mx:{style:so},my:{style:so},margin:{style:so},marginTop:{style:so},marginRight:{style:so},marginBottom:{style:so},marginLeft:{style:so},marginX:{style:so},marginY:{style:so},marginInline:{style:so},marginInlineStart:{style:so},marginInlineEnd:{style:so},marginBlock:{style:so},marginBlockStart:{style:so},marginBlockEnd:{style:so},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:j0},rowGap:{style:I0},columnGap:{style:N0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ui},maxWidth:{style:Nk},minWidth:{transform:ui},height:{transform:ui},maxHeight:{transform:ui},minHeight:{transform:ui},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 OU(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function PU(e,t){return typeof e=="function"?e(t):e}function $U(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:f,transform:c,style:m}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=al(o,f)||{};return m?m(s):Es(s,r,b=>{let x=Hb(y,c,b);return b===x&&typeof b=="string"&&(x=Hb(y,c,`${n}${b==="default"?"":tt(b)}`,b)),u===!1?x:{[u]:x}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??dy;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 c=PN(o.breakpoints),m=Object.keys(c);let y=c;return Object.keys(f).forEach(v=>{const b=PU(f[v],o);if(b!=null)if(typeof b=="object")if(s[v])y=sg(y,e(v,b,o,s));else{const x=Es({theme:o},b,w=>({[v]:w}));OU(x,b)?y[v]=t({sx:b,theme:o,nested:!0}):y=sg(y,x)}else y=sg(y,e(v,b,o,s))}),!a&&o.modularCssLayers?{"@layer sx":yO(o,Bw(m,y))}:yO(o,Bw(m,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const fu=$U();fu.filterProps=["sx"];function DU(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Yp(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=F_(n),u=jk(o);let f=Ho({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...V_,...a}},s);return f=U_(f),f.applyStyles=DU,f=t.reduce((c,m)=>Ho(c,m),f),f.unstable_sxConfig={...dy,...s?.unstable_sxConfig},f.unstable_sx=function(m){return fu({sx:m,theme:this})},f}function AU(e){return Object.keys(e).length===0}function Ik(e=null){const t=C.useContext(qp);return!t||AU(t)?e:t}const jU=Yp();function Gp(e=jU){return Ik(e)}function jS(e){const t=au(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Lk({styles:e,themeId:t,defaultTheme:n={}}){const r=Gp(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>jS(typeof s=="function"?s(o):s)):a=jS(a)),h.jsx(MN,{styles:a})}const NU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??dy;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function L0(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=NU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return ll(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const xO=e=>e,IU=()=>{let e=xO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xO}}},zk=IU();function DN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=DN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=DN(e))&&(r&&(r+=" "),r+=t);return r}function Fk(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=EN("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(fu);return C.forwardRef(function(u,f){const c=Gp(n),{className:m,component:y="div",...v}=L0(u);return h.jsx(a,{as:y,ref:f,className:Dt(m,o?o(r):r),theme:t&&c[t]||c,...v})})}const LU={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 rn(e,t,n="Mui"){const r=LU[t];return r?`${n}-${r}`:`${zk.generate(e)}-${t}`}function sn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=rn(e,o,n)}),r}const zU=sn("MuiBox",["root"]),AN=Fk({defaultClassName:zU.root,generateClassName:zk.generate});function jN(e){const{variants:t,...n}=e,r={variants:t,style:au(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=au(o.style))}),r}const FU=Yp();function lg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function md(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function BU(e){return e?(t,n)=>n[e]:null}function _U(e,t,n){e.theme=VU(e.theme)?n:e.theme[t]||e.theme}function Cb(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Cb(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?md(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?md(au(s),n):s}return NN(e,r.variants,[o],n)}return r?.isProcessed?n?md(au(r.style),n):r.style:n?md(au(r),n):r}function NN(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const s=t[a];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},n.push(r?md(au(s.style(o)),r):s.style(o))):n.push(r?md(au(s.style),r):s.style)}return n}function IN(e={}){const{themeId:t,defaultTheme:n=FU,rootShouldForwardProp:r=lg,slotShouldForwardProp:o=lg}=e;function a(l){_U(l,t,n)}return(l,u={})=>{N_(l,$=>$.filter(I=>I!==fu));const{name:f,slot:c,skipVariantsResolver:m,skipSx:y,overridesResolver:v=BU(WU(c)),...b}=u,x=f&&f.startsWith("Mui")||c?"components":"custom",w=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,S=y||!1;let k=lg;c==="Root"||c==="root"?k=r:c?k=o:HU(l)&&(k=void 0);const T=EN(l,{shouldForwardProp:k,label:UU(),...b}),O=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(F){return Cb(F,$,F.theme.modularCssLayers?x:void 0)};if(ll($)){const I=jN($);return function(A){return I.variants?Cb(A,I,A.theme.modularCssLayers?x:void 0):A.theme.modularCssLayers?md(I.style,x):I.style}}return $},P=(...$)=>{const I=[],F=$.map(O),A=[];if(I.push(a),f&&v&&A.push(function(_){const W=_.theme.components?.[f]?.styleOverrides;if(!W)return null;const j={};for(const Q in W)j[Q]=Cb(_,W[Q],_.theme.modularCssLayers?"theme":void 0);return v(_,j)}),f&&!w&&A.push(function(_){const W=_.theme?.components?.[f]?.variants;return W?NN(_,W,[],_.theme.modularCssLayers?"theme":void 0):null}),S||A.push(fu),Array.isArray(F[0])){const M=F.shift(),_=new Array(I.length).fill(""),B=new Array(A.length).fill("");let W;W=[..._,...M,...B],W.raw=[..._,...M.raw,...B],I.unshift(W)}const H=[...I,...F,...A],L=T(...H);return l.muiName&&(L.muiName=l.muiName),L};return T.withConfig&&(P.withConfig=T.withConfig),P}}function UU(e,t){return void 0}function VU(e){for(const t in e)return!1;return!0}function HU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function WU(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Bk=IN();function Ep(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const f=u;r[a][f]=Ep(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=Dt(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function qU(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ep(t.components[n].defaultProps,r)}function _k({props:e,name:t,defaultTheme:n,themeId:r}){let o=Gp(n);return r&&(o=o[r]||o),qU({theme:o,name:t,props:e})}const _a=typeof window<"u"?C.useLayoutEffect:C.useEffect;function ip(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Uk(e,t=0,n=1){return ip(e,t,n)}function YU(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function pu(e){if(e.type)return e;if(e.charAt(0)==="#")return pu(YU(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ac(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ac(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const GU=e=>{const t=pu(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Km=(e,t)=>{try{return GU(e)}catch{return e}};function z0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function LN(e){e=pu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(f,c=(f+n/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),z0({type:l,values:u})}function _w(e){e=pu(e);let t=e.type==="hsl"||e.type==="hsla"?pu(LN(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function KU(e,t){const n=_w(e),r=_w(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Oo(e,t){return e=pu(e),t=Uk(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,z0(e)}function Ju(e,t,n){try{return Oo(e,t)}catch{return e}}function F0(e,t){if(e=pu(e),t=Uk(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return z0(e)}function Or(e,t,n){try{return F0(e,t)}catch{return e}}function B0(e,t){if(e=pu(e),t=Uk(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return z0(e)}function Pr(e,t,n){try{return B0(e,t)}catch{return e}}function Uw(e,t=.15){return _w(e)>.5?F0(e,t):B0(e,t)}function zv(e,t,n){try{return Uw(e,t)}catch{return e}}const zN=C.createContext(null);function Vk(){return C.useContext(zN)}const QU=typeof Symbol=="function"&&Symbol.for,XU=QU?Symbol.for("mui.nested"):"__THEME_NESTED__";function ZU(e,t){return typeof t=="function"?t(e):{...e,...t}}function JU(e){const{children:t,theme:n}=e,r=Vk(),o=C.useMemo(()=>{const a=r===null?{...n}:ZU(r,n);return a!=null&&(a[XU]=r!==null),a},[n,r]);return h.jsx(zN.Provider,{value:o,children:t})}const FN=C.createContext();function eV({value:e,...t}){return h.jsx(FN.Provider,{value:e??!0,...t})}const fy=()=>C.useContext(FN)??!1,BN=C.createContext(void 0);function tV({value:e,children:t}){return h.jsx(BN.Provider,{value:e,children:t})}function nV(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ep(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ep(o,r,t.components.mergeClassNameAndStyle):r}function rV({props:e,name:t}){const n=C.useContext(BN);return nV({props:e,name:t,theme:{components:n}})}let SO=0;function oV(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(SO+=1,n(`mui-${SO}`))},[t]),r}const aV={...Mg},wO=aV.useId;function xu(e){if(wO!==void 0){const t=wO();return e??t}return oV(e)}function iV(e){const t=Ik(),n=xu()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,_a(()=>{const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(o){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=o,a.prepend(l)}else a.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?h.jsx(Lk,{styles:o}):null}const CO={};function kO(e,t,n,r=!1){return C.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function _N(e){const{children:t,theme:n,themeId:r}=e,o=Ik(CO),a=Vk()||CO,s=kO(r,o,n),l=kO(r,a,n,!0),u=(r?s[r]:s).direction==="rtl",f=iV(s);return h.jsx(JU,{theme:l,children:h.jsx(qp.Provider,{value:s,children:h.jsx(eV,{value:u,children:h.jsxs(tV,{value:r?s[r].components:s.components,children:[f,t]})})})})}const TO={theme:void 0};function UN(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(TO.theme=o.theme,a=jN(e(TO)),t=a,n=o.theme),a}}const Hk="mode",Wk="color-scheme",sV="data-color-scheme";function lV(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Hk,colorSchemeStorageKey:a=Wk,attribute:s=sV,colorSchemeNode:l="document.documentElement",nonce:u}=e||{};let f="",c=s;if(s==="class"&&(c=".%s"),s==="data"&&(c="[data-%s]"),c.startsWith(".")){const y=c.substring(1);f+=`${l}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
78
- ${l}.classList.add('${y}'.replace('%s', colorScheme));`}const m=c.match(/\[([^[\]]+)\]/);if(m){const[y,v]=m[1].split("=");v||(f+=`${l}.removeAttribute('${y}'.replace('%s', light));
79
- ${l}.removeAttribute('${y}'.replace('%s', dark));`),f+=`
80
- ${l}.setAttribute('${y}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${c}', colorScheme);`;return h.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
81
- try {
82
- let colorScheme = '';
83
- const mode = localStorage.getItem('${o}') || '${t}';
84
- const dark = localStorage.getItem('${a}-dark') || '${r}';
85
- const light = localStorage.getItem('${a}-light') || '${n}';
86
- if (mode === 'system') {
87
- // handle system mode
88
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
89
- if (mql.matches) {
90
- colorScheme = dark
91
- } else {
92
- colorScheme = light
93
- }
94
- }
95
- if (mode === 'light') {
96
- colorScheme = light;
97
- }
98
- if (mode === 'dark') {
99
- colorScheme = dark;
100
- }
101
- if (colorScheme) {
102
- ${f}
103
- }
104
- } catch(e){}})();`}},"mui-color-scheme-init")}function cV(){}const uV=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return cV;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function NS(){}function MO(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function VN(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function dV(e){return VN(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function fV(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=Hk,colorSchemeStorageKey:s=Wk,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=uV,noSsr:f=!1}=e,c=o.join(","),m=o.length>1,y=C.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),v=C.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),b=C.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[x,w]=C.useState(()=>{const F=y?.get(t)||t,A=v?.get(n)||n,H=b?.get(r)||r;return{mode:F,systemMode:MO(F),lightColorScheme:A,darkColorScheme:H}}),[S,k]=C.useState(f||!m);C.useEffect(()=>{k(!0)},[]);const T=dV(x),O=C.useCallback(F=>{w(A=>{if(F===A.mode)return A;const H=F??t;return y?.set(H),{...A,mode:H,systemMode:MO(H)}})},[y,t]),P=C.useCallback(F=>{F?typeof F=="string"?F&&!c.includes(F)?console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`):w(A=>{const H={...A};return VN(A,L=>{L==="light"&&(v?.set(F),H.lightColorScheme=F),L==="dark"&&(b?.set(F),H.darkColorScheme=F)}),H}):w(A=>{const H={...A},L=F.light===null?n:F.light,M=F.dark===null?r:F.dark;return L&&(c.includes(L)?(H.lightColorScheme=L,v?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),M&&(c.includes(M)?(H.darkColorScheme=M,b?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),H}):w(A=>(v?.set(n),b?.set(r),{...A,lightColorScheme:n,darkColorScheme:r}))},[c,v,b,n,r]),$=C.useCallback(F=>{x.mode==="system"&&w(A=>{const H=F?.matches?"dark":"light";return A.systemMode===H?A:{...A,systemMode:H}})},[x.mode]),I=C.useRef($);return I.current=$,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const F=(...H)=>I.current(...H),A=window.matchMedia("(prefers-color-scheme: dark)");return A.addListener(F),F(A),()=>{A.removeListener(F)}},[m]),C.useEffect(()=>{if(m){const F=y?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&O(L||t)})||NS,A=v?.subscribe(L=>{(!L||c.match(L))&&P({light:L})})||NS,H=b?.subscribe(L=>{(!L||c.match(L))&&P({dark:L})})||NS;return()=>{F(),A(),H()}}},[P,O,c,t,l,m,y,v,b]),{...x,mode:S?x.mode:void 0,systemMode:S?x.systemMode:void 0,colorScheme:S?T:void 0,setMode:O,setColorScheme:P}}const pV="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function hV(e){const{themeId:t,theme:n={},modeStorageKey:r=Hk,colorSchemeStorageKey:o=Wk,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=C.createContext(void 0),c=()=>C.useContext(f)||u,m={},y={};function v(S){const{children:k,theme:T,modeStorageKey:O=r,colorSchemeStorageKey:P=o,disableTransitionOnChange:$=a,storageManager:I,storageWindow:F=typeof window>"u"?void 0:window,documentNode:A=typeof document>"u"?void 0:document,colorSchemeNode:H=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:M=!1,defaultMode:_="system",forceThemeRerender:B=!1,noSsr:W}=S,j=C.useRef(!1),Q=Vk(),K=C.useContext(f),te=!!K&&!L,X=C.useMemo(()=>T||(typeof n=="function"?n():n),[T]),J=X[t],ne=J||X,{colorSchemes:oe=m,components:se=y,cssVarPrefix:re}=ne,ie=Object.keys(oe).filter(Xe=>!!oe[Xe]).join(","),ce=C.useMemo(()=>ie.split(","),[ie]),me=typeof s=="string"?s:s.light,ye=typeof s=="string"?s:s.dark,we=oe[me]&&oe[ye]?_:oe[ne.defaultColorScheme]?.palette?.mode||ne.palette?.mode,{mode:Ce,setMode:$e,systemMode:fe,lightColorScheme:Te,darkColorScheme:nt,colorScheme:ze,setColorScheme:Ae}=fV({supportedColorSchemes:ce,defaultLightColorScheme:me,defaultDarkColorScheme:ye,modeStorageKey:O,colorSchemeStorageKey:P,defaultMode:we,storageManager:I,storageWindow:F,noSsr:W});let ue=Ce,bt=ze;te&&(ue=K.mode,bt=K.colorScheme);let Be=bt||ne.defaultColorScheme;ne.vars&&!B&&(Be=ne.defaultColorScheme);const it=C.useMemo(()=>{const Xe=ne.generateThemeVars?.()||ne.vars,ot={...ne,components:se,colorSchemes:oe,cssVarPrefix:re,vars:Xe};if(typeof ot.generateSpacing=="function"&&(ot.spacing=ot.generateSpacing()),Be){const Ne=oe[Be];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(he=>{Ne[he]&&typeof Ne[he]=="object"?ot[he]={...ot[he],...Ne[he]}:ot[he]=Ne[he]})}return l?l(ot):ot},[ne,Be,se,oe,re]),pt=ne.colorSchemeSelector;_a(()=>{if(bt&&H&&pt&&pt!=="media"){const Xe=pt;let ot=pt;if(Xe==="class"&&(ot=".%s"),Xe==="data"&&(ot="[data-%s]"),Xe?.startsWith("data-")&&!Xe.includes("%s")&&(ot=`[${Xe}="%s"]`),ot.startsWith("."))H.classList.remove(...ce.map(Ne=>ot.substring(1).replace("%s",Ne))),H.classList.add(ot.substring(1).replace("%s",bt));else{const Ne=ot.replace("%s",bt).match(/\[([^\]]+)\]/);if(Ne){const[he,qe]=Ne[1].split("=");qe||ce.forEach(Me=>{H.removeAttribute(he.replace(bt,Me))}),H.setAttribute(he,qe?qe.replace(/"|'/g,""):"")}else H.setAttribute(ot,bt)}}},[bt,pt,H,ce]),C.useEffect(()=>{let Xe;if($&&j.current&&A){const ot=A.createElement("style");ot.appendChild(A.createTextNode(pV)),A.head.appendChild(ot),window.getComputedStyle(A.body),Xe=setTimeout(()=>{A.head.removeChild(ot)},1)}return()=>{clearTimeout(Xe)}},[bt,$,A]),C.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const _t=C.useMemo(()=>({allColorSchemes:ce,colorScheme:bt,darkColorScheme:nt,lightColorScheme:Te,mode:ue,setColorScheme:Ae,setMode:$e,systemMode:fe}),[ce,bt,nt,Te,ue,Ae,$e,fe,it.colorSchemeSelector]);let Ht=!0;(M||ne.cssVariables===!1||te&&Q?.cssVarPrefix===re)&&(Ht=!1);const at=h.jsxs(C.Fragment,{children:[h.jsx(_N,{themeId:J?t:void 0,theme:it,children:k}),Ht&&h.jsx(MN,{styles:it.generateStyleSheets?.()||[]})]});return te?at:h.jsx(f.Provider,{value:_t,children:at})}const b=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:v,useColorScheme:c,getInitColorSchemeScript:S=>lV({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:x,modeStorageKey:r,...S})}}function HN(e=""){function t(...r){if(!r.length)return"";const o=r[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(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const EO=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},mV=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},gV=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function IS(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return mV(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const c=`--${n?`${n}-`:""}${l.join("-")}`,m=gV(l,u);Object.assign(o,{[c]:m}),EO(a,l,`var(${c})`,f),EO(s,l,`var(${c}, ${m})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function yV(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...f}=e,{vars:c,css:m,varsWithDefaults:y}=IS(f,t);let v=y;const b={},{[u]:x,...w}=s;if(Object.entries(w||{}).forEach(([O,P])=>{const{vars:$,css:I,varsWithDefaults:F}=IS(P,t);v=Ho(v,F),b[O]={css:I,vars:$}}),x){const{css:O,vars:P,varsWithDefaults:$}=IS(x,t);v=Ho(v,$),b[u]={css:O,vars:P}}function S(O,P){let $=o;if(o==="class"&&($=".%s"),o==="data"&&($="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&($=`[${o}="%s"]`),O){if($==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${s[O]?.palette?.mode||O})`]:{":root":P}};if($)return e.defaultColorScheme===O?`:root, ${$.replace("%s",String(O))}`:$.replace("%s",String(O))}return":root"}return{vars:v,generateThemeVars:()=>{let O={...c};return Object.entries(b).forEach(([,{vars:P}])=>{O=Ho(O,P)}),O},generateStyleSheets:()=>{const O=[],P=e.defaultColorScheme||"light";function $(A,H){Object.keys(H).length&&O.push(typeof A=="string"?{[A]:{...H}}:A)}$(n(void 0,{...m}),m);const{[P]:I,...F}=b;if(I){const{css:A}=I,H=s[P]?.palette?.mode,L=!r&&H?{colorScheme:H,...A}:{...A};$(n(P,{...L}),L)}return Object.entries(F).forEach(([A,{css:H}])=>{const L=s[A]?.palette?.mode,M=!r&&L?{colorScheme:L,...H}:{...H};$(n(A,{...M}),M)}),a&&O.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),O}}}function vV(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function on(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const f=a[u];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}const bV=Yp(),xV=Bk("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${tt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),SV=e=>_k({props:e,name:"MuiContainer",defaultTheme:bV}),wV=(e,t)=>{const n=u=>rn(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${tt(String(s))}`,o&&"fixed",a&&"disableGutters"]};return on(l,n,r)};function CV(e={}){const{createStyledComponent:t=xV,useThemeProps:n=SV,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.fixed&&Object.keys(s.breakpoints.values).reduce((u,f)=>{const c=f,m=s.breakpoints.values[c];return m!==0&&(u[s.breakpoints.up(c)]={maxWidth:`${m}${s.breakpoints.unit}`}),u},{}),({theme:s,ownerState:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}}));return C.forwardRef(function(l,u){const f=n(l),{className:c,component:m="div",disableGutters:y=!1,fixed:v=!1,maxWidth:b="lg",classes:x,...w}=f,S={...f,component:m,disableGutters:y,fixed:v,maxWidth:b},k=wV(S,r);return h.jsx(o,{as:m,ownerState:S,className:Dt(k.root,c),ref:u,...w})})}function kb(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const kV=(e,t)=>e.filter(n=>t.includes(n)),Kp=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((s,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,l):s[e.up(e.keys[a])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:kV(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,u)=>{r===a?Object.assign(l,u):l[e.up(a)]=u},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function Wb(e){return`--Grid-${e}Spacing`}function _0(e){return`--Grid-parent-${e}Spacing`}const RO="--Grid-columns",gp="--Grid-parent-columns",TV=({theme:e,ownerState:t})=>{const n={};return Kp(e.breakpoints,t.size,(r,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${gp}) - (var(${gp}) - ${o}) * (var(${_0("column")}) / var(${gp})))`}),r(n,a)}),n},MV=({theme:e,ownerState:t})=>{const n={};return Kp(e.breakpoints,t.offset,(r,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${gp}) + var(${_0("column")}) * ${o} / var(${gp}))`}),r(n,a)}),n},EV=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[RO]:12};return Kp(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[RO]:a,"> *":{[gp]:a}})}),n},RV=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Kp(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[Wb("row")]:a,"> *":{[_0("row")]:a}})}),n},OV=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Kp(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[Wb("column")]:a,"> *":{[_0("column")]:a}})}),n},PV=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Kp(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},$V=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Wb("row")}) var(${Wb("column")})`}}),DV=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},AV=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,a])=>{n(a)&&r.push(`spacing-${o}-${String(a)}`)}),r}return[]},jV=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function NV(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const IV=Yp(),LV=Bk("div",{name:"MuiGrid",slot:"Root"});function zV(e){return _k({props:e,name:"MuiGrid",defaultTheme:IV})}function FV(e={}){const{createStyledComponent:t=LV,useThemeProps:n=zV,useTheme:r=Gp,componentName:o="MuiGrid"}=e,a=(f,c)=>{const{container:m,direction:y,spacing:v,wrap:b,size:x}=f,w={root:["root",m&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...jV(y),...DV(x),...m?AV(v,c.breakpoints.keys[0]):[]]};return on(w,S=>rn(o,S),{})};function s(f,c,m=()=>!0){const y={};return f===null||(Array.isArray(f)?f.forEach((v,b)=>{v!==null&&m(v)&&c.keys[b]&&(y[c.keys[b]]=v)}):typeof f=="object"?Object.keys(f).forEach(v=>{const b=f[v];b!=null&&m(b)&&(y[v]=b)}):y[c.keys[0]]=f),y}const l=t(EV,OV,RV,TV,PV,$V,MV),u=C.forwardRef(function(c,m){const y=r(),v=n(c),b=L0(v);NV(b,y.breakpoints);const{className:x,children:w,columns:S=12,container:k=!1,component:T="div",direction:O="row",wrap:P="wrap",size:$={},offset:I={},spacing:F=0,rowSpacing:A=F,columnSpacing:H=F,unstable_level:L=0,...M}=b,_=s($,y.breakpoints,J=>J!==!1),B=s(I,y.breakpoints),W=c.columns??(L?void 0:S),j=c.spacing??(L?void 0:F),Q=c.rowSpacing??c.spacing??(L?void 0:A),K=c.columnSpacing??c.spacing??(L?void 0:H),te={...b,level:L,columns:W,container:k,direction:O,wrap:P,spacing:j,rowSpacing:Q,columnSpacing:K,size:_,offset:B},X=a(te,y);return h.jsx(l,{ref:m,as:T,ownerState:te,className:Dt(X.root,x),...M,children:C.Children.map(w,J=>C.isValidElement(J)&&kb(J,["Grid"])&&k&&J.props.container?C.cloneElement(J,{unstable_level:J.props?.unstable_level??L+1}):J)})});return u.muiName="Grid",u}const BV=Yp(),_V=Bk("div",{name:"MuiStack",slot:"Root"});function UV(e){return _k({props:e,name:"MuiStack",defaultTheme:BV})}function VV(e,t){const n=C.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(C.cloneElement(t,{key:`separator-${a}`})),r),[])}const HV=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],WV=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Es({theme:t},AS({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=$0(t),o=Object.keys(t.breakpoints.values).reduce((u,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(u[f]=!0),u),{}),a=AS({values:e.direction,base:o}),s=AS({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,c)=>{if(!a[u]){const y=f>0?a[c[f-1]]:"column";a[u]=y}}),n=Ho(n,Es({theme:t},s,(u,f)=>e.useFlexGap?{gap:Rd(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${HV(f?a[f]:e.direction)}`]:Rd(r,u)}}))}return n=W_(t.breakpoints,n),n};function WN(e={}){const{createStyledComponent:t=_V,useThemeProps:n=UV,componentName:r="MuiStack"}=e,o=()=>on({root:["root"]},u=>rn(r,u),{}),a=t(WV);return C.forwardRef(function(u,f){const c=n(u),m=L0(c),{component:y="div",direction:v="column",spacing:b=0,divider:x,children:w,className:S,useFlexGap:k=!1,...T}=m,O={direction:v,spacing:b,useFlexGap:k},P=o();return h.jsx(a,{as:y,ownerState:O,ref:f,className:Dt(P.root,S),...T,children:x?VV(w,x):w})})}const qV=WN();function qN(){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:Pg.white,default:Pg.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 YN=qN();function GN(){return{text:{primary:Pg.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:Pg.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 Vw=GN();function OO(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=B0(e.main,o):t==="dark"&&(e.dark=F0(e.main,a)))}function PO(e,t,n,r,o){const a=o.light||o,s=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function YV(e="light"){return e==="dark"?{main:Bf[200],light:Bf[50],dark:Bf[400]}:{main:Bf[700],light:Bf[400],dark:Bf[800]}}function GV(e="light"){return e==="dark"?{main:Ff[200],light:Ff[50],dark:Ff[400]}:{main:Ff[500],light:Ff[300],dark:Ff[700]}}function KV(e="light"){return e==="dark"?{main:zf[500],light:zf[300],dark:zf[700]}:{main:zf[700],light:zf[400],dark:zf[800]}}function QV(e="light"){return e==="dark"?{main:_f[400],light:_f[300],dark:_f[700]}:{main:_f[700],light:_f[500],dark:_f[900]}}function XV(e="light"){return e==="dark"?{main:Uf[400],light:Uf[300],dark:Uf[700]}:{main:Uf[800],light:Uf[500],dark:Uf[900]}}function ZV(e="light"){return e==="dark"?{main:fm[400],light:fm[300],dark:fm[700]}:{main:"#ed6c02",light:fm[500],dark:fm[900]}}function JV(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function qk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||YV(t),l=e.secondary||GV(t),u=e.error||KV(t),f=e.info||QV(t),c=e.success||XV(t),m=e.warning||ZV(t);function y(w){return o?JV(w):KU(w,Vw.text.primary)>=n?Vw.text.primary:YN.text.primary}const v=({color:w,name:S,mainShade:k=500,lightShade:T=300,darkShade:O=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(ac(11,S?` (${S})`:"",k));if(typeof w.main!="string")throw new Error(ac(12,S?` (${S})`:"",JSON.stringify(w.main)));return o?(PO(o,w,"light",T,r),PO(o,w,"dark",O,r)):(OO(w,"light",T,r),OO(w,"dark",O,r)),w.contrastText||(w.contrastText=y(w.main)),w};let b;return t==="light"?b=qN():t==="dark"&&(b=GN()),Ho({common:{...Pg},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:u,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:c,name:"success"}),grey:IB,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...b},a)}function e8(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function t8(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function n8(e){return Math.round(e*1e5)/1e5}const $O={textTransform:"uppercase"},DO='"Roboto", "Helvetica", "Arial", sans-serif';function KN(e,t){const{fontFamily:n=DO,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:c,...m}=typeof t=="function"?t(e):t,y=r/14,v=c||(w=>`${w/u*y}rem`),b=(w,S,k,T,O)=>({fontFamily:n,fontWeight:w,fontSize:v(S),lineHeight:k,...n===DO?{letterSpacing:`${n8(T/S)}em`}:{},...O,...f}),x={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,$O),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,$O),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ho({htmlFontSize:u,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},m,{clone:!1})}const r8=.2,o8=.14,a8=.12;function Xr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${r8})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${o8})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${a8})`].join(",")}const i8=["none",Xr(0,2,1,-1,0,1,1,0,0,1,3,0),Xr(0,3,1,-2,0,2,2,0,0,1,5,0),Xr(0,3,3,-2,0,3,4,0,0,1,8,0),Xr(0,2,4,-1,0,4,5,0,0,1,10,0),Xr(0,3,5,-1,0,5,8,0,0,1,14,0),Xr(0,3,5,-1,0,6,10,0,0,1,18,0),Xr(0,4,5,-2,0,7,10,1,0,2,16,1),Xr(0,5,5,-3,0,8,10,1,0,3,14,2),Xr(0,5,6,-3,0,9,12,1,0,3,16,2),Xr(0,6,6,-3,0,10,14,1,0,4,18,3),Xr(0,6,7,-4,0,11,15,1,0,4,20,3),Xr(0,7,8,-4,0,12,17,2,0,5,22,4),Xr(0,7,8,-4,0,13,19,2,0,5,24,4),Xr(0,7,9,-4,0,14,21,2,0,5,26,4),Xr(0,8,9,-5,0,15,22,2,0,6,28,5),Xr(0,8,10,-5,0,16,24,2,0,6,30,5),Xr(0,8,11,-5,0,17,26,2,0,6,32,5),Xr(0,9,11,-5,0,18,28,2,0,7,34,6),Xr(0,9,12,-6,0,19,29,2,0,7,36,6),Xr(0,10,13,-6,0,20,31,3,0,8,38,7),Xr(0,10,13,-6,0,21,33,3,0,8,40,7),Xr(0,10,14,-6,0,22,35,3,0,8,42,7),Xr(0,11,14,-7,0,23,36,3,0,9,44,8),Xr(0,11,15,-7,0,24,38,3,0,9,46,8)],s8={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)"},l8={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AO(e){return`${Math.round(e)}ms`}function c8(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function u8(e){const t={...s8,...e.easing},n={...l8,...e.duration};return{getAutoHeightDuration:c8,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:AO(s)} ${l} ${typeof u=="string"?u:AO(u)}`).join(",")},...e,easing:t,duration:n}}const d8={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function f8(e){return ll(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function QN(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!f8(l)||s.startsWith("unstable_")?delete r[s]:ll(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
105
-
106
- const theme = ${JSON.stringify(t,null,2)};
107
-
108
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
109
- theme.transitions = createTransitions(theme.transitions || {});
110
-
111
- export default theme;`}function jO(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const p8=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function h8(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Oo(t,p8(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${jO(n)})`:B0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${jO(n)})`:F0(t,n)}})}function Hw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,colorSpace:f,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ac(20));const m=qk({...a,colorSpace:f}),y=Yp(e);let v=Ho(y,{mixins:t8(y.breakpoints,r),palette:m,shadows:i8.slice(),typography:KN(m,l),transitions:u8(s),zIndex:{...d8}});return v=Ho(v,c),v=t.reduce((b,x)=>Ho(b,x),v),v.unstable_sxConfig={...dy,...c?.unstable_sxConfig},v.unstable_sx=function(x){return fu({sx:x,theme:this})},v.toRuntimeSource=QN,h8(v),v}function Ww(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 m8=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ww(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function XN(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ZN(e){return e==="dark"?m8:[]}function g8(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=qk({...t,colorSpace:o});return{palette:s,opacity:{...XN(s.mode),...n},overlays:r||ZN(s.mode),...a}}function y8(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 v8=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],b8=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return v8(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function x8(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function st(e,t,n){!e[t]&&n&&(e[t]=n)}function Qm(e){return typeof e!="string"||!e.startsWith("hsl")?e:LN(e)}function Kl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Km(Qm(e[t])))}function S8(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xs=e=>{try{return e()}catch{}},w8=(e="mui")=>HN(e);function LS(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=g8({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=Hw({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...XN(a),...n?.opacity},overlays:n?.overlays||ZN(a)},l}function C8(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=y8,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...c}=e,m=Object.keys(n)[0],y=r||(n.light&&m!=="light"?"light":m),v=w8(a),{[y]:b,light:x,dark:w,...S}=n,k={...S};let T=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(ac(21,y));let O;s&&(O="oklch");const P=LS(O,k,T,c,y);x&&!k.light&&LS(O,k,x,void 0,"light"),w&&!k.dark&&LS(O,k,w,void 0,"dark");let $={defaultColorScheme:y,...P,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:v,colorSchemes:k,font:{...e8(P.typography),...P.font},spacing:S8(c.spacing)};Object.keys($.colorSchemes).forEach(L=>{const M=$.colorSchemes[L].palette,_=W=>{const j=W.split("-"),Q=j[1],K=j[2];return v(W,M[Q][K])};M.mode==="light"&&(st(M.common,"background","#fff"),st(M.common,"onBackground","#000")),M.mode==="dark"&&(st(M.common,"background","#000"),st(M.common,"onBackground","#fff"));function B(W,j,Q){if(O){let K;return W===Ju&&(K=`transparent ${((1-Q)*100).toFixed(0)}%`),W===Or&&(K=`#000 ${(Q*100).toFixed(0)}%`),W===Pr&&(K=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${O}, ${j}, ${K})`}return W(j,Q)}if(x8(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){st(M.Alert,"errorColor",B(Or,M.error.light,.6)),st(M.Alert,"infoColor",B(Or,M.info.light,.6)),st(M.Alert,"successColor",B(Or,M.success.light,.6)),st(M.Alert,"warningColor",B(Or,M.warning.light,.6)),st(M.Alert,"errorFilledBg",_("palette-error-main")),st(M.Alert,"infoFilledBg",_("palette-info-main")),st(M.Alert,"successFilledBg",_("palette-success-main")),st(M.Alert,"warningFilledBg",_("palette-warning-main")),st(M.Alert,"errorFilledColor",Xs(()=>M.getContrastText(M.error.main))),st(M.Alert,"infoFilledColor",Xs(()=>M.getContrastText(M.info.main))),st(M.Alert,"successFilledColor",Xs(()=>M.getContrastText(M.success.main))),st(M.Alert,"warningFilledColor",Xs(()=>M.getContrastText(M.warning.main))),st(M.Alert,"errorStandardBg",B(Pr,M.error.light,.9)),st(M.Alert,"infoStandardBg",B(Pr,M.info.light,.9)),st(M.Alert,"successStandardBg",B(Pr,M.success.light,.9)),st(M.Alert,"warningStandardBg",B(Pr,M.warning.light,.9)),st(M.Alert,"errorIconColor",_("palette-error-main")),st(M.Alert,"infoIconColor",_("palette-info-main")),st(M.Alert,"successIconColor",_("palette-success-main")),st(M.Alert,"warningIconColor",_("palette-warning-main")),st(M.AppBar,"defaultBg",_("palette-grey-100")),st(M.Avatar,"defaultBg",_("palette-grey-400")),st(M.Button,"inheritContainedBg",_("palette-grey-300")),st(M.Button,"inheritContainedHoverBg",_("palette-grey-A100")),st(M.Chip,"defaultBorder",_("palette-grey-400")),st(M.Chip,"defaultAvatarColor",_("palette-grey-700")),st(M.Chip,"defaultIconColor",_("palette-grey-700")),st(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),st(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),st(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),st(M.LinearProgress,"primaryBg",B(Pr,M.primary.main,.62)),st(M.LinearProgress,"secondaryBg",B(Pr,M.secondary.main,.62)),st(M.LinearProgress,"errorBg",B(Pr,M.error.main,.62)),st(M.LinearProgress,"infoBg",B(Pr,M.info.main,.62)),st(M.LinearProgress,"successBg",B(Pr,M.success.main,.62)),st(M.LinearProgress,"warningBg",B(Pr,M.warning.main,.62)),st(M.Skeleton,"bg",O?B(Ju,M.text.primary,.11):`rgba(${_("palette-text-primaryChannel")} / 0.11)`),st(M.Slider,"primaryTrack",B(Pr,M.primary.main,.62)),st(M.Slider,"secondaryTrack",B(Pr,M.secondary.main,.62)),st(M.Slider,"errorTrack",B(Pr,M.error.main,.62)),st(M.Slider,"infoTrack",B(Pr,M.info.main,.62)),st(M.Slider,"successTrack",B(Pr,M.success.main,.62)),st(M.Slider,"warningTrack",B(Pr,M.warning.main,.62));const W=O?B(Or,M.background.default,.6825):zv(M.background.default,.8);st(M.SnackbarContent,"bg",W),st(M.SnackbarContent,"color",Xs(()=>O?Vw.text.primary:M.getContrastText(W))),st(M.SpeedDialAction,"fabHoverBg",zv(M.background.paper,.15)),st(M.StepConnector,"border",_("palette-grey-400")),st(M.StepContent,"border",_("palette-grey-400")),st(M.Switch,"defaultColor",_("palette-common-white")),st(M.Switch,"defaultDisabledColor",_("palette-grey-100")),st(M.Switch,"primaryDisabledColor",B(Pr,M.primary.main,.62)),st(M.Switch,"secondaryDisabledColor",B(Pr,M.secondary.main,.62)),st(M.Switch,"errorDisabledColor",B(Pr,M.error.main,.62)),st(M.Switch,"infoDisabledColor",B(Pr,M.info.main,.62)),st(M.Switch,"successDisabledColor",B(Pr,M.success.main,.62)),st(M.Switch,"warningDisabledColor",B(Pr,M.warning.main,.62)),st(M.TableCell,"border",B(Pr,B(Ju,M.divider,1),.88)),st(M.Tooltip,"bg",B(Ju,M.grey[700],.92))}if(M.mode==="dark"){st(M.Alert,"errorColor",B(Pr,M.error.light,.6)),st(M.Alert,"infoColor",B(Pr,M.info.light,.6)),st(M.Alert,"successColor",B(Pr,M.success.light,.6)),st(M.Alert,"warningColor",B(Pr,M.warning.light,.6)),st(M.Alert,"errorFilledBg",_("palette-error-dark")),st(M.Alert,"infoFilledBg",_("palette-info-dark")),st(M.Alert,"successFilledBg",_("palette-success-dark")),st(M.Alert,"warningFilledBg",_("palette-warning-dark")),st(M.Alert,"errorFilledColor",Xs(()=>M.getContrastText(M.error.dark))),st(M.Alert,"infoFilledColor",Xs(()=>M.getContrastText(M.info.dark))),st(M.Alert,"successFilledColor",Xs(()=>M.getContrastText(M.success.dark))),st(M.Alert,"warningFilledColor",Xs(()=>M.getContrastText(M.warning.dark))),st(M.Alert,"errorStandardBg",B(Or,M.error.light,.9)),st(M.Alert,"infoStandardBg",B(Or,M.info.light,.9)),st(M.Alert,"successStandardBg",B(Or,M.success.light,.9)),st(M.Alert,"warningStandardBg",B(Or,M.warning.light,.9)),st(M.Alert,"errorIconColor",_("palette-error-main")),st(M.Alert,"infoIconColor",_("palette-info-main")),st(M.Alert,"successIconColor",_("palette-success-main")),st(M.Alert,"warningIconColor",_("palette-warning-main")),st(M.AppBar,"defaultBg",_("palette-grey-900")),st(M.AppBar,"darkBg",_("palette-background-paper")),st(M.AppBar,"darkColor",_("palette-text-primary")),st(M.Avatar,"defaultBg",_("palette-grey-600")),st(M.Button,"inheritContainedBg",_("palette-grey-800")),st(M.Button,"inheritContainedHoverBg",_("palette-grey-700")),st(M.Chip,"defaultBorder",_("palette-grey-700")),st(M.Chip,"defaultAvatarColor",_("palette-grey-300")),st(M.Chip,"defaultIconColor",_("palette-grey-300")),st(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),st(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),st(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),st(M.LinearProgress,"primaryBg",B(Or,M.primary.main,.5)),st(M.LinearProgress,"secondaryBg",B(Or,M.secondary.main,.5)),st(M.LinearProgress,"errorBg",B(Or,M.error.main,.5)),st(M.LinearProgress,"infoBg",B(Or,M.info.main,.5)),st(M.LinearProgress,"successBg",B(Or,M.success.main,.5)),st(M.LinearProgress,"warningBg",B(Or,M.warning.main,.5)),st(M.Skeleton,"bg",O?B(Ju,M.text.primary,.13):`rgba(${_("palette-text-primaryChannel")} / 0.13)`),st(M.Slider,"primaryTrack",B(Or,M.primary.main,.5)),st(M.Slider,"secondaryTrack",B(Or,M.secondary.main,.5)),st(M.Slider,"errorTrack",B(Or,M.error.main,.5)),st(M.Slider,"infoTrack",B(Or,M.info.main,.5)),st(M.Slider,"successTrack",B(Or,M.success.main,.5)),st(M.Slider,"warningTrack",B(Or,M.warning.main,.5));const W=O?B(Pr,M.background.default,.985):zv(M.background.default,.98);st(M.SnackbarContent,"bg",W),st(M.SnackbarContent,"color",Xs(()=>O?YN.text.primary:M.getContrastText(W))),st(M.SpeedDialAction,"fabHoverBg",zv(M.background.paper,.15)),st(M.StepConnector,"border",_("palette-grey-600")),st(M.StepContent,"border",_("palette-grey-600")),st(M.Switch,"defaultColor",_("palette-grey-300")),st(M.Switch,"defaultDisabledColor",_("palette-grey-600")),st(M.Switch,"primaryDisabledColor",B(Or,M.primary.main,.55)),st(M.Switch,"secondaryDisabledColor",B(Or,M.secondary.main,.55)),st(M.Switch,"errorDisabledColor",B(Or,M.error.main,.55)),st(M.Switch,"infoDisabledColor",B(Or,M.info.main,.55)),st(M.Switch,"successDisabledColor",B(Or,M.success.main,.55)),st(M.Switch,"warningDisabledColor",B(Or,M.warning.main,.55)),st(M.TableCell,"border",B(Or,B(Ju,M.divider,1),.68)),st(M.Tooltip,"bg",B(Ju,M.grey[700],.92))}Kl(M.background,"default"),Kl(M.background,"paper"),Kl(M.common,"background"),Kl(M.common,"onBackground"),Kl(M,"divider"),Object.keys(M).forEach(W=>{const j=M[W];W!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&st(M[W],"mainChannel",Km(Qm(j.main))),j.light&&st(M[W],"lightChannel",Km(Qm(j.light))),j.dark&&st(M[W],"darkChannel",Km(Qm(j.dark))),j.contrastText&&st(M[W],"contrastTextChannel",Km(Qm(j.contrastText))),W==="text"&&(Kl(M[W],"primary"),Kl(M[W],"secondary")),W==="action"&&(j.active&&Kl(M[W],"active"),j.selected&&Kl(M[W],"selected")))})}),$=t.reduce((L,M)=>Ho(L,M),$);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:b8($),enableContrastVars:s},{vars:F,generateThemeVars:A,generateStyleSheets:H}=yV($,I);return $.vars=F,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([L,M])=>{$[L]=M}),$.generateThemeVars=A,$.generateStyleSheets=H,$.generateSpacing=function(){return jk(c.spacing,$0(this))},$.getColorSchemeSelector=vV(u),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=l,$.unstable_sxConfig={...dy,...c?.unstable_sxConfig},$.unstable_sx=function(M){return fu({sx:M,theme:this})},$.toRuntimeSource=QN,$}function NO(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qk({...n===!0?{}:n.palette,mode:t})})}function U0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],f={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Hw(e,...t);let c=n;"palette"in e||f[l]&&(f[l]!==!0?c=f[l].palette:l==="dark"&&(c={mode:"dark"}));const m=Hw({...e,palette:c},...t);return m.defaultColorScheme=l,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},NO(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},NO(m,"light",f.light)),m}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),C8({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Yk=U0();function Su(){const e=Gp(Yk);return e[fl]||e}function V0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ua=e=>V0(e)&&e!=="classes",Je=IN({themeId:fl,defaultTheme:Yk,rootShouldForwardProp:ua});function k8({theme:e,...t}){const n=fl in e?e[fl]:void 0;return h.jsx(_N,{...t,themeId:n?fl:void 0,theme:n||e})}const Fv={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:T8}=hV({themeId:fl,theme:()=>U0({cssVariables:!0}),colorSchemeStorageKey:Fv.colorSchemeStorageKey,modeStorageKey:Fv.modeStorageKey,defaultColorScheme:{light:Fv.defaultLightColorScheme,dark:Fv.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:KN(e.palette,e.typography)};return t.unstable_sx=function(r){return fu({sx:r,theme:this})},t}}),M8=T8;function E8({theme:e,...t}){const n=C.useMemo(()=>{if(typeof e=="function")return e;const r=fl in e?e[fl]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?h.jsx(k8,{theme:n,...t}):h.jsx(M8,{theme:e,...t})}function IO(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function R8(e){return h.jsx(Lk,{...e,defaultTheme:Yk,themeId:fl})}function Gk(e){return function(n){return h.jsx(R8,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function O8(){return L0}const Xt=UN;function ln(e){return rV(e)}function P8(e){return rn("MuiSvgIcon",e)}sn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $8=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return on(o,P8,r)},D8=Je("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${tt(n.color)}`],t[`fontSize${tt(n.fontSize)}`]]}})(Xt(({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}}]}))),qw=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:c=!1,titleAccess:m,viewBox:y="0 0 24 24",...v}=r,b=C.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:y,hasSvgAsChild:b},w={};c||(w.viewBox=y);const S=$8(x);return h.jsxs(D8,{as:l,className:Dt(S.root,a),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...w,...v,...b&&o.props,ownerState:x,children:[b?o.props.children:o,m?h.jsx("title",{children:m}):null]})});qw.muiName="SvgIcon";function da(e,t){function n(r,o){return h.jsx(qw,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=qw.muiName,C.memo(C.forwardRef(n))}function JN(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Po(e){return e&&e.ownerDocument||document}function ic(e){return Po(e).defaultView||window}function Yw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function iu(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),u=a?t:s,f=C.useCallback(c=>{a||l(c)},[]);return[u,f]}function No(e){const t=C.useRef(e);return _a(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function go(...e){const t=C.useRef(void 0),n=C.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return C.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function A8(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function eI(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(f=>{A8(f,l[f])&&typeof s[f]=="function"&&(u[f]=(...c)=>{s[f](...c),l[f](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,f=Dt(s?.className,l?.className,u?.className),c=n(u,l);return{...l,...u,...c,...!!f&&{className:f},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=Dt(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function tI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gw(e,t)}function nI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gw(e,t)}const LO={disabled:!1},qb=hn.createContext(null);var j8=function(t){return t.scrollTop},Xm="unmounted",sd="exited",ld="entering",sp="entered",Kw="exiting",Cl=(function(e){nI(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=sd,a.appearStatus=ld):u=sp:r.unmountOnExit||r.mountOnEnter?u=Xm:u=sd,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Xm?{status:sd}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ld&&s!==sp&&(a=ld):(s===ld||s===sp)&&(a=Kw)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,l;return a=s=l=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ld){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:tu.findDOMNode(this);s&&j8(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sd&&this.setState({status:Xm})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[tu.findDOMNode(this),l],f=u[0],c=u[1],m=this.getTimeouts(),y=l?m.appear:m.enter;if(!o&&!s||LO.disabled){this.safeSetState({status:sp},function(){a.props.onEntered(f)});return}this.props.onEnter(f,c),this.safeSetState({status:ld},function(){a.props.onEntering(f,c),a.onTransitionEnd(y,function(){a.safeSetState({status:sp},function(){a.props.onEntered(f,c)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:tu.findDOMNode(this);if(!a||LO.disabled){this.safeSetState({status:sd},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Kw},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:sd},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:tu.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=u[0],c=u[1];this.props.addEndListener(f,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Xm)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=tI(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(qb.Provider,{value:null},typeof s=="function"?s(o,l):hn.cloneElement(hn.Children.only(s),l))},t})(hn.Component);Cl.contextType=qb;Cl.propTypes={};function Vf(){}Cl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vf,onEntering:Vf,onEntered:Vf,onExit:Vf,onExiting:Vf,onExited:Vf};Cl.UNMOUNTED=Xm;Cl.EXITED=sd;Cl.ENTERING=ld;Cl.ENTERED=sp;Cl.EXITING=Kw;function N8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kk(e,t){var n=function(a){return t&&C.isValidElement(a)?t(a):a},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function I8(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var f=r[u][s];l[r[u][s]]=n(f)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function gd(e,t,n){return n[t]!=null?n[t]:e.props[t]}function L8(e,t){return Kk(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:gd(n,"appear",e),enter:gd(n,"enter",e),exit:gd(n,"exit",e)})})}function z8(e,t,n){var r=Kk(e.children),o=I8(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,u=a in r,f=t[a],c=C.isValidElement(f)&&!f.props.in;u&&(!l||c)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:gd(s,"exit",e),enter:gd(s,"enter",e)}):!u&&l&&!c?o[a]=C.cloneElement(s,{in:!1}):u&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:gd(s,"exit",e),enter:gd(s,"enter",e)}))}}),o}var F8=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},B8={component:"div",childFactory:function(t){return t}},Qk=(function(e){nI(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(N8(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var s=a.children,l=a.handleExited,u=a.firstRender;return{children:u?L8(o,l):z8(o,s,l),firstRender:!1}},n.handleExited=function(o,a){var s=Kk(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var u=_b({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=tI(o,["component","childFactory"]),u=this.state.contextValue,f=F8(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?hn.createElement(qb.Provider,{value:u},f):hn.createElement(qb.Provider,{value:u},hn.createElement(a,l,f))},t})(hn.Component);Qk.propTypes={};Qk.defaultProps=B8;const zO={};function rI(e,t){const n=C.useRef(zO);return n.current===zO&&(n.current=e(t)),n}const _8=[];function U8(e){C.useEffect(e,_8)}class H0{static create(){return new H0}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function yd(){const e=rI(H0.create).current;return U8(e.disposeEffect),e}const oI=e=>e.scrollTop;function Yb(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function V8(e){return rn("MuiPaper",e)}sn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const H8=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return on(a,V8,o)},W8=Je("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Xt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ua=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiPaper"}),o=Su(),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:f="elevation",...c}=r,m={...r,component:s,elevation:l,square:u,variant:f},y=H8(m);return h.jsx(W8,{as:s,ownerState:m,className:Dt(y.root,a),ref:n,...c,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Oo("#fff",Ww(l))}, ${Oo("#fff",Ww(l))})`}},...c.style}})});function su(e){return typeof e=="string"}function aI(e,t,n){return e===void 0||su(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function iI(e,t,n){return typeof e=="function"?e(t,n):e}function Cd(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function FO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function sI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=Dt(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return v.length>0&&(x.className=v),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=Cd({...o,...r}),l=FO(r),u=FO(o),f=t(s),c=Dt(f?.className,n?.className,a,o?.className,r?.className),m={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...u,...l};return c.length>0&&(y.className=c),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function An(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:f,slots:c={[e]:void 0},slotProps:m={[e]:void 0},...y}=a,v=c[e]||r,b=iI(m[e],o),{props:{component:x,...w},internalRef:S}=sI({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),k=go(S,b?.ref,t.ref),T=e==="root"?x||f:x,O=aI(v,{...e==="root"&&!f&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...w,...T&&!l&&{as:T},...T&&l&&{component:T},ref:k},o);return[v,O]}function hu(e){try{return e.matches(":focus-visible")}catch{}return!1}class Gb{static create(){return new Gb}static use(){const t=rI(Gb.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Y8(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function q8(){return Gb.use()}function Y8(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function G8(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:f}=e,[c,m]=C.useState(!1),y=Dt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=Dt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&m(!0),C.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,f);return()=>{clearTimeout(x)}}},[u,l,f]),h.jsx("span",{className:y,style:v,children:h.jsx("span",{className:b})})}const Ii=sn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qw=550,K8=80,Q8=vi`
112
- 0% {
113
- transform: scale(0);
114
- opacity: 0.1;
115
- }
116
-
117
- 100% {
118
- transform: scale(1);
119
- opacity: 0.3;
120
- }
121
- `,X8=vi`
122
- 0% {
123
- opacity: 1;
124
- }
125
-
126
- 100% {
127
- opacity: 0;
128
- }
129
- `,Z8=vi`
130
- 0% {
131
- transform: scale(1);
132
- }
133
-
134
- 50% {
135
- transform: scale(0.92);
136
- }
137
-
138
- 100% {
139
- transform: scale(1);
140
- }
141
- `,J8=Je("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),e9=Je(G8,{name:"MuiTouchRipple",slot:"Ripple"})`
142
- opacity: 0;
143
- position: absolute;
144
-
145
- &.${Ii.rippleVisible} {
146
- opacity: 0.3;
147
- transform: scale(1);
148
- animation-name: ${Q8};
149
- animation-duration: ${Qw}ms;
150
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
151
- }
152
-
153
- &.${Ii.ripplePulsate} {
154
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
155
- }
156
-
157
- & .${Ii.child} {
158
- opacity: 1;
159
- display: block;
160
- width: 100%;
161
- height: 100%;
162
- border-radius: 50%;
163
- background-color: currentColor;
164
- }
165
-
166
- & .${Ii.childLeaving} {
167
- opacity: 0;
168
- animation-name: ${X8};
169
- animation-duration: ${Qw}ms;
170
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
- }
172
-
173
- & .${Ii.childPulsate} {
174
- position: absolute;
175
- /* @noflip */
176
- left: 0px;
177
- top: 0;
178
- animation-name: ${Z8};
179
- animation-duration: 2500ms;
180
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
181
- animation-iteration-count: infinite;
182
- animation-delay: 200ms;
183
- }
184
- `,t9=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[u,f]=C.useState([]),c=C.useRef(0),m=C.useRef(null);C.useEffect(()=>{m.current&&(m.current(),m.current=null)},[u]);const y=C.useRef(!1),v=yd(),b=C.useRef(null),x=C.useRef(null),w=C.useCallback(O=>{const{pulsate:P,rippleX:$,rippleY:I,rippleSize:F,cb:A}=O;f(H=>[...H,h.jsx(e9,{classes:{ripple:Dt(a.ripple,Ii.ripple),rippleVisible:Dt(a.rippleVisible,Ii.rippleVisible),ripplePulsate:Dt(a.ripplePulsate,Ii.ripplePulsate),child:Dt(a.child,Ii.child),childLeaving:Dt(a.childLeaving,Ii.childLeaving),childPulsate:Dt(a.childPulsate,Ii.childPulsate)},timeout:Qw,pulsate:P,rippleX:$,rippleY:I,rippleSize:F},c.current)]),c.current+=1,m.current=A},[a]),S=C.useCallback((O={},P={},$=()=>{})=>{const{pulsate:I=!1,center:F=o||P.pulsate,fakeElement:A=!1}=P;if(O?.type==="mousedown"&&y.current){y.current=!1;return}O?.type==="touchstart"&&(y.current=!0);const H=A?null:x.current,L=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,_,B;if(F||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)M=Math.round(L.width/2),_=Math.round(L.height/2);else{const{clientX:W,clientY:j}=O.touches&&O.touches.length>0?O.touches[0]:O;M=Math.round(W-L.left),_=Math.round(j-L.top)}if(F)B=Math.sqrt((2*L.width**2+L.height**2)/3),B%2===0&&(B+=1);else{const W=Math.max(Math.abs((H?H.clientWidth:0)-M),M)*2+2,j=Math.max(Math.abs((H?H.clientHeight:0)-_),_)*2+2;B=Math.sqrt(W**2+j**2)}O?.touches?b.current===null&&(b.current=()=>{w({pulsate:I,rippleX:M,rippleY:_,rippleSize:B,cb:$})},v.start(K8,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:I,rippleX:M,rippleY:_,rippleSize:B,cb:$})},[o,w,v]),k=C.useCallback(()=>{S({},{pulsate:!0})},[S]),T=C.useCallback((O,P)=>{if(v.clear(),O?.type==="touchend"&&b.current){b.current(),b.current=null,v.start(0,()=>{T(O,P)});return}b.current=null,f($=>$.length>0?$.slice(1):$),m.current=P},[v]);return C.useImperativeHandle(n,()=>({pulsate:k,start:S,stop:T}),[k,S,T]),h.jsx(J8,{className:Dt(Ii.root,a.root,s),ref:x,...l,children:h.jsx(Qk,{component:null,exit:!0,children:u})})});function n9(e){return rn("MuiButtonBase",e)}const r9=sn("MuiButtonBase",["root","disabled","focusVisible"]),o9=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=on({root:["root",t&&"disabled",n&&"focusVisible"]},n9,o);return n&&r&&(s.root+=` ${r}`),s},a9=Je("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${r9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mu=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:u="button",disabled:f=!1,disableRipple:c=!1,disableTouchRipple:m=!1,focusRipple:y=!1,focusVisibleClassName:v,LinkComponent:b="a",onBlur:x,onClick:w,onContextMenu:S,onDragLeave:k,onFocus:T,onFocusVisible:O,onKeyDown:P,onKeyUp:$,onMouseDown:I,onMouseLeave:F,onMouseUp:A,onTouchEnd:H,onTouchMove:L,onTouchStart:M,tabIndex:_=0,TouchRippleProps:B,touchRippleRef:W,type:j,...Q}=r,K=C.useRef(null),te=q8(),X=go(te.ref,W),[J,ne]=C.useState(!1);f&&J&&ne(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),K.current.focus()}}),[]);const oe=te.shouldMount&&!c&&!f;C.useEffect(()=>{J&&y&&!c&&te.pulsate()},[c,y,J,te]);const se=Ql(te,"start",I,m),re=Ql(te,"stop",S,m),ie=Ql(te,"stop",k,m),ce=Ql(te,"stop",A,m),me=Ql(te,"stop",pt=>{J&&pt.preventDefault(),F&&F(pt)},m),ye=Ql(te,"start",M,m),we=Ql(te,"stop",H,m),Ce=Ql(te,"stop",L,m),$e=Ql(te,"stop",pt=>{hu(pt.target)||ne(!1),x&&x(pt)},!1),fe=No(pt=>{K.current||(K.current=pt.currentTarget),hu(pt.target)&&(ne(!0),O&&O(pt)),T&&T(pt)}),Te=()=>{const pt=K.current;return u&&u!=="button"&&!(pt.tagName==="A"&&pt.href)},nt=No(pt=>{y&&!pt.repeat&&J&&pt.key===" "&&te.stop(pt,()=>{te.start(pt)}),pt.target===pt.currentTarget&&Te()&&pt.key===" "&&pt.preventDefault(),P&&P(pt),pt.target===pt.currentTarget&&Te()&&pt.key==="Enter"&&!f&&(pt.preventDefault(),w&&w(pt))}),ze=No(pt=>{y&&pt.key===" "&&J&&!pt.defaultPrevented&&te.stop(pt,()=>{te.pulsate(pt)}),$&&$(pt),w&&pt.target===pt.currentTarget&&Te()&&pt.key===" "&&!pt.defaultPrevented&&w(pt)});let Ae=u;Ae==="button"&&(Q.href||Q.to)&&(Ae=b);const ue={};Ae==="button"?(ue.type=j===void 0?"button":j,ue.disabled=f):(!Q.href&&!Q.to&&(ue.role="button"),f&&(ue["aria-disabled"]=f));const bt=go(n,K),Be={...r,centerRipple:a,component:u,disabled:f,disableRipple:c,disableTouchRipple:m,focusRipple:y,tabIndex:_,focusVisible:J},it=o9(Be);return h.jsxs(a9,{as:Ae,className:Dt(it.root,l),ownerState:Be,onBlur:$e,onClick:w,onContextMenu:re,onFocus:fe,onKeyDown:nt,onKeyUp:ze,onMouseDown:se,onMouseLeave:me,onMouseUp:ce,onDragLeave:ie,onTouchEnd:we,onTouchMove:Ce,onTouchStart:ye,ref:bt,tabIndex:f?-1:_,type:j,...ue,...Q,children:[s,oe?h.jsx(t9,{ref:X,center:a,...B}):null]})});function Ql(e,t,n,r=!1){return No(o=>(n&&n(o),r||e[t](o),!0))}function i9(e){return typeof e.main=="string"}function s9(e,t=[]){if(!i9(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function jr(e=[]){return([,t])=>t&&s9(t,e)}function l9(e){return rn("MuiAlert",e)}const BO=sn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function c9(e){return rn("MuiCircularProgress",e)}sn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wc=44,Xw=vi`
185
- 0% {
186
- transform: rotate(0deg);
187
- }
188
-
189
- 100% {
190
- transform: rotate(360deg);
191
- }
192
- `,Zw=vi`
193
- 0% {
194
- stroke-dasharray: 1px, 200px;
195
- stroke-dashoffset: 0;
196
- }
197
-
198
- 50% {
199
- stroke-dasharray: 100px, 200px;
200
- stroke-dashoffset: -15px;
201
- }
202
-
203
- 100% {
204
- stroke-dasharray: 1px, 200px;
205
- stroke-dashoffset: -126px;
206
- }
207
- `,u9=typeof Xw!="string"?bu`
208
- animation: ${Xw} 1.4s linear infinite;
209
- `:null,d9=typeof Zw!="string"?bu`
210
- animation: ${Zw} 1.4s ease-in-out infinite;
211
- `:null,f9=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${tt(r)}`],svg:["svg"],circle:["circle",`circle${tt(n)}`,o&&"circleDisableShrink"]};return on(a,c9,t)},p9=Je("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${tt(n.color)}`]]}})(Xt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:u9||{animation:`${Xw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),h9=Je("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),m9=Je("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${tt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:d9||{animation:`${Zw} 1.4s ease-in-out infinite`}}]}))),py=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:u,thickness:f=3.6,value:c=0,variant:m="indeterminate",...y}=r,v={...r,color:a,disableShrink:s,size:l,thickness:f,value:c,variant:m},b=f9(v),x={},w={},S={};if(m==="determinate"){const k=2*Math.PI*((Wc-f)/2);x.strokeDasharray=k.toFixed(3),S["aria-valuenow"]=Math.round(c),x.strokeDashoffset=`${((100-c)/100*k).toFixed(3)}px`,w.transform="rotate(-90deg)"}return h.jsx(p9,{className:Dt(b.root,o),style:{width:l,height:l,...w,...u},ownerState:v,ref:n,role:"progressbar",...S,...y,children:h.jsx(h9,{className:b.svg,ownerState:v,viewBox:`${Wc/2} ${Wc/2} ${Wc} ${Wc}`,children:h.jsx(m9,{className:b.circle,style:x,ownerState:v,cx:Wc,cy:Wc,r:(Wc-f)/2,fill:"none",strokeWidth:f})})})});function g9(e){return rn("MuiIconButton",e)}const _O=sn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),y9=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${tt(r)}`,o&&`edge${tt(o)}`,`size${tt(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return on(l,g9,t)},v9=Je(mu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${tt(n.color)}`],n.edge&&t[`edge${tt(n.edge)}`],t[`size${tt(n.size)}`]]}})(Xt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_O.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${_O.loading}`]:{color:"transparent"}}))),b9=Je("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),eo=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:c="medium",id:m,loading:y=null,loadingIndicator:v,...b}=r,x=xu(m),w=v??h.jsx(py,{"aria-labelledby":x,color:"inherit",size:16}),S={...r,edge:o,color:l,disabled:u,disableFocusRipple:f,loading:y,loadingIndicator:w,size:c},k=y9(S);return h.jsxs(v9,{id:y?x:m,className:Dt(k.root,s),centerRipple:!0,focusRipple:!f,disabled:u||y,ref:n,...b,ownerState:S,children:[typeof y=="boolean"&&h.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:h.jsx(b9,{className:k.loadingIndicator,ownerState:S,children:y&&w})}),a]})}),x9=da(h.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),S9=da(h.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),w9=da(h.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),C9=da(h.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),lI=da(h.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),k9=e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`color${tt(n||r)}`,`${t}${tt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return on(a,l9,o)},T9=Je(Ua,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tt(n.color||n.severity)}`]]}})(Xt(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(jr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${BO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(jr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${BO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(jr(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),M9=Je("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E9=Je("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),R9=Je("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),UO={success:h.jsx(x9,{fontSize:"inherit"}),warning:h.jsx(S9,{fontSize:"inherit"}),error:h.jsx(w9,{fontSize:"inherit"}),info:h.jsx(C9,{fontSize:"inherit"})},cp=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:l="Close",color:u,components:f={},componentsProps:c={},icon:m,iconMapping:y=UO,onClose:v,role:b="alert",severity:x="success",slotProps:w={},slots:S={},variant:k="standard",...T}=r,O={...r,color:u,severity:x,variant:k,colorSeverity:u||x},P=k9(O),$={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...S},slotProps:{...c,...w}},[I,F]=An("root",{ref:n,shouldForwardComponentProp:!0,className:Dt(P.root,s),elementType:T9,externalForwardedProps:{...$,...T},ownerState:O,additionalProps:{role:b,elevation:0}}),[A,H]=An("icon",{className:P.icon,elementType:M9,externalForwardedProps:$,ownerState:O}),[L,M]=An("message",{className:P.message,elementType:E9,externalForwardedProps:$,ownerState:O}),[_,B]=An("action",{className:P.action,elementType:R9,externalForwardedProps:$,ownerState:O}),[W,j]=An("closeButton",{elementType:eo,externalForwardedProps:$,ownerState:O}),[Q,K]=An("closeIcon",{elementType:lI,externalForwardedProps:$,ownerState:O});return h.jsxs(I,{...F,children:[m!==!1?h.jsx(A,{...H,children:m||y[x]||UO[x]}):null,h.jsx(L,{...M,children:a}),o!=null?h.jsx(_,{...B,children:o}):null,o==null&&v?h.jsx(_,{...B,children:h.jsx(W,{size:"small","aria-label":l,title:l,color:"inherit",onClick:v,...j,children:h.jsx(Q,{fontSize:"small",...K})})}):null]})});function O9(e){return rn("MuiTypography",e)}const VO=sn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),P9={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$9=O8(),D9=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${tt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return on(l,O9,s)},A9=Je("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${tt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Xt(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${tt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),HO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},St=C.forwardRef(function(t,n){const{color:r,...o}=ln({props:t,name:"MuiTypography"}),a=!P9[r],s=$9({...o,...a&&{color:r}}),{align:l="inherit",className:u,component:f,gutterBottom:c=!1,noWrap:m=!1,paragraph:y=!1,variant:v="body1",variantMapping:b=HO,...x}=s,w={...s,align:l,color:r,className:u,component:f,gutterBottom:c,noWrap:m,paragraph:y,variant:v,variantMapping:b},S=f||(y?"p":b[v]||HO[v])||"span",k=D9(w);return h.jsx(A9,{as:S,ref:n,className:Dt(k.root,u),...x,ownerState:w,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...x.style}})}),j9=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function WO({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function qO(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function N9(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:u,getOptionLabel:f})=>{let c=s?u.trim():u;n&&(c=c.toLowerCase()),t&&(c=qO(c));const m=c?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=qO(v)),o==="start"?v.startsWith(c):v.includes(c)}):l;return typeof r=="number"?m.slice(0,r):m}}const I9=N9(),YO=5,L9=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),z9=[];function GO(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function F9(e){const{unstable_isActiveElementInListbox:t=L9,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:f="useAutocomplete",defaultValue:c=e.multiple?z9:null,disableClearable:m=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:b=!1,disableListWrap:x=!1,filterOptions:w=I9,filterSelectedOptions:S=!1,freeSolo:k=!1,getOptionDisabled:T,getOptionKey:O,getOptionLabel:P=de=>de.label??de,groupBy:$,handleHomeEndKeys:I=!e.freeSolo,id:F,includeInputInList:A=!1,inputValue:H,isOptionEqualToValue:L=(de,pe)=>de===pe,multiple:M=!1,onChange:_,onClose:B,onHighlightChange:W,onInputChange:j,onOpen:Q,open:K,openOnFocus:te=!1,options:X,readOnly:J=!1,renderValue:ne,selectOnFocus:oe=!e.freeSolo,value:se}=e,re=xu(F);let ie=P;ie=de=>{const pe=P(de);return typeof pe!="string"?String(pe):pe};const ce=C.useRef(!1),me=C.useRef(!0),ye=C.useRef(null),we=C.useRef(null),[Ce,$e]=C.useState(null),[fe,Te]=C.useState(-1),nt=o?0:-1,ze=C.useRef(nt),Ae=C.useRef(GO(c??se,M,ie)).current,[ue,bt]=iu({controlled:se,default:c,name:f}),[Be,it]=iu({controlled:H,default:Ae,name:f,state:"inputValue"}),[pt,_t]=C.useState(!1),Ht=C.useCallback((de,pe,He)=>{if(!(M?ue.length<pe.length:pe!==null)&&!l)return;const Ke=GO(pe,M,ie,ne);Be!==Ke&&(it(Ke),j&&j(de,Ke,He))},[ie,Be,M,j,it,l,ue,ne]),[at,Xe]=iu({controlled:K,default:!1,name:f,state:"open"}),[ot,Ne]=C.useState(!0),he=!M&&ue!=null&&Be===ie(ue),qe=at&&!J,Me=qe?w(X.filter(de=>!(S&&(M?ue:[ue]).some(pe=>pe!==null&&L(de,pe)))),{inputValue:he&&ot?"":Be,getOptionLabel:ie}):[],Mt=j9({filteredOptions:Me,value:ue,inputValue:Be});C.useEffect(()=>{const de=ue!==Mt.value;pt&&!de||k&&!de||Ht(null,ue,"reset")},[ue,Ht,pt,Mt.value,k]);const Rt=at&&Me.length>0&&!J,gt=No(de=>{if(de===-1)ye.current.focus();else{const pe=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${pe}="${de}"]`).focus()}});C.useEffect(()=>{M&&fe>ue.length-1&&(Te(-1),gt(-1))},[ue,M,fe,gt]);function ct(de,pe){if(!we.current||de<0||de>=Me.length)return-1;let He=de;for(;;){const vt=we.current.querySelector(`[data-option-index="${He}"]`),Ke=b?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!Ke)return He;if(pe==="next"?He=(He+1)%Me.length:He=(He-1+Me.length)%Me.length,He===de)return-1}}const At=No(({event:de,index:pe,reason:He})=>{if(ze.current=pe,pe===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${re}-option-${pe}`),W&&["mouse","keyboard","touch"].includes(He)&&W(de,pe===-1?null:Me[pe],He),!we.current)return;const vt=we.current.querySelector(`[role="option"].${n}-focused`);vt&&(vt.classList.remove(`${n}-focused`),vt.classList.remove(`${n}-focusVisible`));let Ke=we.current;if(we.current.getAttribute("role")!=="listbox"&&(Ke=we.current.parentElement.querySelector('[role="listbox"]')),!Ke)return;if(pe===-1){Ke.scrollTop=0;return}const nn=we.current.querySelector(`[data-option-index="${pe}"]`);if(nn&&(nn.classList.add(`${n}-focused`),He==="keyboard"&&nn.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&He!=="mouse"&&He!=="touch")){const cn=nn,pn=Ke.clientHeight+Ke.scrollTop,ge=cn.offsetTop+cn.offsetHeight;ge>pn?Ke.scrollTop=ge-Ke.clientHeight:cn.offsetTop-cn.offsetHeight*($?1.3:0)<Ke.scrollTop&&(Ke.scrollTop=cn.offsetTop-cn.offsetHeight*($?1.3:0))}}),Wt=No(({event:de,diff:pe,direction:He="next",reason:vt})=>{if(!qe)return;const nn=ct((()=>{const cn=Me.length-1;if(pe==="reset")return nt;if(pe==="start")return 0;if(pe==="end")return cn;const pn=ze.current+pe;return pn<0?pn===-1&&A?-1:x&&ze.current!==-1||Math.abs(pe)>1?0:cn:pn>cn?pn===cn+1&&A?-1:x||Math.abs(pe)>1?cn:0:pn})(),He);if(At({index:nn,reason:vt,event:de}),r&&pe!=="reset")if(nn===-1)ye.current.value=Be;else{const cn=ie(Me[nn]);ye.current.value=cn,cn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&ye.current.setSelectionRange(Be.length,cn.length)}}),dn=!WO({array1:Mt.filteredOptions,array2:Me,parser:ie}),bn=()=>{const de=(pe,He)=>{const vt=pe?ie(pe):"",Ke=He?ie(He):"";return vt===Ke};if(ze.current!==-1&&!WO({array1:Mt.filteredOptions,array2:Me,parser:ie})&&Mt.inputValue===Be&&(M?ue.length===Mt.value.length&&Mt.value.every((pe,He)=>ie(ue[He])===ie(pe)):de(Mt.value,ue))){const pe=Mt.filteredOptions[ze.current];if(pe)return Me.findIndex(He=>ie(He)===ie(pe))}return-1},_n=C.useCallback(()=>{if(!qe)return;const de=bn();if(de!==-1){ze.current=de;return}const pe=M?ue[0]:ue;if(Me.length===0||pe==null){Wt({diff:"reset"});return}if(we.current){if(pe!=null){const He=Me[ze.current];if(M&&He&&ue.findIndex(Ke=>L(He,Ke))!==-1)return;const vt=Me.findIndex(Ke=>L(Ke,pe));vt===-1?Wt({diff:"reset"}):At({index:vt});return}if(ze.current>=Me.length-1){At({index:Me.length-1});return}At({index:ze.current})}},[Me.length,M?!1:ue,S,Wt,At,qe,Be,M]),Gn=No(de=>{Yw(we,de),de&&_n()});C.useEffect(()=>{dn&&_n()},[_n,dn]);const Jt=de=>{at||(Xe(!0),Ne(!0),Q&&Q(de))},Ln=(de,pe)=>{at&&(Xe(!1),B&&B(de,pe))},be=(de,pe,He,vt)=>{if(M){if(ue.length===pe.length&&ue.every((Ke,nn)=>Ke===pe[nn]))return}else if(ue===pe)return;_&&_(de,pe,He,vt),bt(pe)},Bn=C.useRef(!1),Rn=(de,pe,He="selectOption",vt="options")=>{let Ke=He,nn=pe;if(M){nn=Array.isArray(ue)?ue.slice():[];const cn=nn.findIndex(pn=>L(pe,pn));cn===-1?nn.push(pe):vt!=="freeSolo"&&(nn.splice(cn,1),Ke="removeOption")}Ht(de,nn,Ke),be(de,nn,Ke,{option:pe}),!y&&(!de||!de.ctrlKey&&!de.metaKey)&&Ln(de,Ke),(s===!0||s==="touch"&&Bn.current||s==="mouse"&&!Bn.current)&&ye.current.blur()};function en(de,pe){if(de===-1)return-1;let He=de;for(;;){if(pe==="next"&&He===ue.length||pe==="previous"&&He===-1)return-1;const vt=ne?"data-item-index":"data-tag-index",Ke=Ce.querySelector(`[${vt}="${He}"]`);if(!Ke||!Ke.hasAttribute("tabindex")||Ke.disabled||Ke.getAttribute("aria-disabled")==="true")He+=pe==="next"?1:-1;else return He}}const le=(de,pe)=>{if(!M)return;Be===""&&Ln(de,"toggleInput");let He=fe;fe===-1?Be===""&&pe==="previous"&&(He=ue.length-1):(He+=pe==="next"?1:-1,He<0&&(He=0),He===ue.length&&(He=-1)),He=en(He,pe),Te(He),gt(He)},De=de=>{ce.current=!0,it(""),j&&j(de,"","clear"),be(de,M?[]:null,"clear")},Le=de=>pe=>{if(de.onKeyDown&&de.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&!["ArrowLeft","ArrowRight"].includes(pe.key)&&(Te(-1),gt(-1)),pe.which!==229))switch(pe.key){case"Home":qe&&I&&(pe.preventDefault(),Wt({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":qe&&I&&(pe.preventDefault(),Wt({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),Wt({diff:-YO,direction:"previous",reason:"keyboard",event:pe}),Jt(pe);break;case"PageDown":pe.preventDefault(),Wt({diff:YO,direction:"next",reason:"keyboard",event:pe}),Jt(pe);break;case"ArrowDown":pe.preventDefault(),Wt({diff:1,direction:"next",reason:"keyboard",event:pe}),Jt(pe);break;case"ArrowUp":pe.preventDefault(),Wt({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Jt(pe);break;case"ArrowLeft":!M&&ne?gt(0):le(pe,"previous");break;case"ArrowRight":!M&&ne?gt(-1):le(pe,"next");break;case"Enter":if(ze.current!==-1&&qe){const He=Me[ze.current],vt=T?T(He):!1;if(pe.preventDefault(),vt)return;Rn(pe,He,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else k&&Be!==""&&he===!1&&(M&&pe.preventDefault(),Rn(pe,Be,"createOption","freeSolo"));break;case"Escape":qe?(pe.preventDefault(),pe.stopPropagation(),Ln(pe,"escape")):u&&(Be!==""||M&&ue.length>0||ne)&&(pe.preventDefault(),pe.stopPropagation(),De(pe));break;case"Backspace":if(M&&!J&&Be===""&&ue.length>0){const He=fe===-1?ue.length-1:fe,vt=ue.slice();vt.splice(He,1),be(pe,vt,"removeOption",{option:ue[He]})}!M&&ne&&!J&&(bt(null),gt(-1));break;case"Delete":if(M&&!J&&Be===""&&ue.length>0&&fe!==-1){const He=fe,vt=ue.slice();vt.splice(He,1),be(pe,vt,"removeOption",{option:ue[He]})}!M&&ne&&!J&&(bt(null),gt(-1));break}},Ye=de=>{_t(!0),te&&!ce.current&&Jt(de)},ut=de=>{if(t(we)){ye.current.focus();return}_t(!1),me.current=!0,ce.current=!1,a&&ze.current!==-1&&qe?Rn(de,Me[ze.current],"blur"):a&&k&&Be!==""?Rn(de,Be,"blur","freeSolo"):l&&Ht(de,ue,"blur"),Ln(de,"blur")},zt=de=>{const pe=de.target.value;Be!==pe&&(it(pe),Ne(!1),j&&j(de,pe,"input")),pe===""?!m&&!M&&be(de,null,"clear"):Jt(de)},Ut=de=>{const pe=Number(de.currentTarget.getAttribute("data-option-index"));ze.current!==pe&&At({event:de,index:pe,reason:"mouse"})},jt=de=>{At({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Bn.current=!0},mt=de=>{const pe=Number(de.currentTarget.getAttribute("data-option-index"));Rn(de,Me[pe],"selectOption"),Bn.current=!1},Lt=de=>pe=>{const He=ue.slice();He.splice(de,1),be(pe,He,"removeOption",{option:ue[de]})},Ot=de=>{be(de,null,"removeOption",{option:ue})},kt=de=>{at?Ln(de,"toggleInput"):Jt(de)},qt=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==re&&de.preventDefault()},On=de=>{de.currentTarget.contains(de.target)&&(ye.current.focus(),oe&&me.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),me.current=!1)},Kn=de=>{!v&&(Be===""||!at)&&kt(de)};let xn=k&&Be.length>0;xn=xn||(M?ue.length>0:ue!==null);let fn=Me;return $&&(fn=Me.reduce((de,pe,He)=>{const vt=$(pe);return de.length>0&&de[de.length-1].group===vt?de[de.length-1].options.push(pe):de.push({key:He,index:He,group:vt,options:[pe]}),de},[])),v&&pt&&ut(),{getRootProps:(de={})=>({...de,onKeyDown:Le(de),onMouseDown:qt,onClick:On}),getInputLabelProps:()=>({id:`${re}-label`,htmlFor:re}),getInputProps:()=>({id:re,value:Be,onBlur:ut,onFocus:Ye,onChange:zt,onMouseDown:Kn,"aria-activedescendant":qe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Rt?`${re}-listbox`:void 0,"aria-expanded":Rt,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:De}),getItemProps:({index:de=0}={})=>({...M&&{key:de},...ne?{"data-item-index":de}:{"data-tag-index":de},tabIndex:-1,...!J&&{onDelete:M?Lt(de):Ot}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:kt}),getTagProps:({index:de})=>({key:de,"data-tag-index":de,tabIndex:-1,...!J&&{onDelete:Lt(de)}}),getListboxProps:()=>({role:"listbox",id:`${re}-listbox`,"aria-labelledby":`${re}-label`,ref:Gn,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:pe})=>{const He=(M?ue:[ue]).some(Ke=>Ke!=null&&L(pe,Ke)),vt=T?T(pe):!1;return{key:O?.(pe)??ie(pe),tabIndex:-1,role:"option",id:`${re}-option-${de}`,onMouseMove:Ut,onClick:mt,onTouchStart:jt,"data-option-index":de,"aria-disabled":vt,"aria-selected":He}},id:re,inputValue:Be,value:ue,dirty:xn,expanded:qe&&Ce,popupOpen:qe,focused:pt||fe!==-1,anchorEl:Ce,setAnchorEl:$e,focusedItem:fe,focusedTag:fe,groupedOptions:fn}}var ja="top",Ki="bottom",Qi="right",Na="left",Xk="auto",hy=[ja,Ki,Qi,Na],Rp="start",jg="end",B9="clippingParents",cI="viewport",hm="popper",_9="reference",KO=hy.reduce(function(e,t){return e.concat([t+"-"+Rp,t+"-"+jg])},[]),uI=[].concat(hy,[Xk]).reduce(function(e,t){return e.concat([t,t+"-"+Rp,t+"-"+jg])},[]),U9="beforeRead",V9="read",H9="afterRead",W9="beforeMain",q9="main",Y9="afterMain",G9="beforeWrite",K9="write",Q9="afterWrite",X9=[U9,V9,H9,W9,q9,Y9,G9,K9,Q9];function yl(e){return e?(e.nodeName||"").toLowerCase():null}function gi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Od(e){var t=gi(e).Element;return e instanceof t||e instanceof Element}function Wi(e){var t=gi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zk(e){if(typeof ShadowRoot>"u")return!1;var t=gi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Z9(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Wi(a)||!yl(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function J9(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,f){return u[f]="",u},{});!Wi(o)||!yl(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const eH={name:"applyStyles",enabled:!0,phase:"write",fn:Z9,effect:J9,requires:["computeStyles"]};function hl(e){return e.split("-")[0]}var kd=Math.max,Kb=Math.min,Op=Math.round;function Jw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function dI(){return!/^((?!chrome|android).)*safari/i.test(Jw())}function Pp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Wi(e)&&(o=e.offsetWidth>0&&Op(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Op(r.height)/e.offsetHeight||1);var s=Od(e)?gi(e):window,l=s.visualViewport,u=!dI()&&n,f=(r.left+(u&&l?l.offsetLeft:0))/o,c=(r.top+(u&&l?l.offsetTop:0))/a,m=r.width/o,y=r.height/a;return{width:m,height:y,top:c,right:f+m,bottom:c+y,left:f,x:f,y:c}}function Jk(e){var t=Pp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sc(e){return gi(e).getComputedStyle(e)}function tH(e){return["table","td","th"].indexOf(yl(e))>=0}function wu(e){return((Od(e)?e.ownerDocument:e.document)||window.document).documentElement}function W0(e){return yl(e)==="html"?e:e.assignedSlot||e.parentNode||(Zk(e)?e.host:null)||wu(e)}function QO(e){return!Wi(e)||sc(e).position==="fixed"?null:e.offsetParent}function nH(e){var t=/firefox/i.test(Jw()),n=/Trident/i.test(Jw());if(n&&Wi(e)){var r=sc(e);if(r.position==="fixed")return null}var o=W0(e);for(Zk(o)&&(o=o.host);Wi(o)&&["html","body"].indexOf(yl(o))<0;){var a=sc(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function my(e){for(var t=gi(e),n=QO(e);n&&tH(n)&&sc(n).position==="static";)n=QO(n);return n&&(yl(n)==="html"||yl(n)==="body"&&sc(n).position==="static")?t:n||nH(e)||t}function eT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cg(e,t,n){return kd(e,Kb(t,n))}function rH(e,t,n){var r=cg(e,t,n);return r>n?n:r}function pI(){return{top:0,right:0,bottom:0,left:0}}function hI(e){return Object.assign({},pI(),e)}function mI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var oH=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hI(typeof t!="number"?t:mI(t,hy))};function aH(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=hl(n.placement),u=eT(l),f=[Na,Qi].indexOf(l)>=0,c=f?"height":"width";if(!(!a||!s)){var m=oH(o.padding,n),y=Jk(a),v=u==="y"?ja:Na,b=u==="y"?Ki:Qi,x=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],w=s[u]-n.rects.reference[u],S=my(a),k=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,T=x/2-w/2,O=m[v],P=k-y[c]-m[b],$=k/2-y[c]/2+T,I=cg(O,$,P),F=u;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-$,t)}}function iH(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||fI(t.elements.popper,o)&&(t.elements.arrow=o))}const sH={name:"arrow",enabled:!0,phase:"main",fn:aH,effect:iH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $p(e){return e.split("-")[1]}var lH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cH(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Op(n*o)/o||0,y:Op(r*o)/o||0}}function XO(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,c=e.roundOffsets,m=e.isFixed,y=s.x,v=y===void 0?0:y,b=s.y,x=b===void 0?0:b,w=typeof c=="function"?c({x:v,y:x}):{x:v,y:x};v=w.x,x=w.y;var S=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),T=Na,O=ja,P=window;if(f){var $=my(n),I="clientHeight",F="clientWidth";if($===gi(n)&&($=wu(n),sc($).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),$=$,o===ja||(o===Na||o===Qi)&&a===jg){O=Ki;var A=m&&$===P&&P.visualViewport?P.visualViewport.height:$[I];x-=A-r.height,x*=u?1:-1}if(o===Na||(o===ja||o===Ki)&&a===jg){T=Qi;var H=m&&$===P&&P.visualViewport?P.visualViewport.width:$[F];v-=H-r.width,v*=u?1:-1}}var L=Object.assign({position:l},f&&lH),M=c===!0?cH({x:v,y:x},gi(n)):{x:v,y:x};if(v=M.x,x=M.y,u){var _;return Object.assign({},L,(_={},_[O]=k?"0":"",_[T]=S?"0":"",_.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",_))}return Object.assign({},L,(t={},t[O]=k?x+"px":"",t[T]=S?v+"px":"",t.transform="",t))}function uH(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:hl(t.placement),variation:$p(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,XO(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,XO(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uH,data:{}};var Bv={passive:!0};function fH(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=gi(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(c){c.addEventListener("scroll",n.update,Bv)}),l&&u.addEventListener("resize",n.update,Bv),function(){a&&f.forEach(function(c){c.removeEventListener("scroll",n.update,Bv)}),l&&u.removeEventListener("resize",n.update,Bv)}}const pH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fH,data:{}};var hH={left:"right",right:"left",bottom:"top",top:"bottom"};function Tb(e){return e.replace(/left|right|bottom|top/g,function(t){return hH[t]})}var mH={start:"end",end:"start"};function ZO(e){return e.replace(/start|end/g,function(t){return mH[t]})}function tT(e){var t=gi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function nT(e){return Pp(wu(e)).left+tT(e).scrollLeft}function gH(e,t){var n=gi(e),r=wu(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var f=dI();(f||!f&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+nT(e),y:u}}function yH(e){var t,n=wu(e),r=tT(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=kd(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=kd(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+nT(e),u=-r.scrollTop;return sc(o||n).direction==="rtl"&&(l+=kd(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function rT(e){var t=sc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gI(e){return["html","body","#document"].indexOf(yl(e))>=0?e.ownerDocument.body:Wi(e)&&rT(e)?e:gI(W0(e))}function ug(e,t){var n;t===void 0&&(t=[]);var r=gI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=gi(r),s=o?[a].concat(a.visualViewport||[],rT(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(ug(W0(s)))}function eC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vH(e,t){var n=Pp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function JO(e,t,n){return t===cI?eC(gH(e,n)):Od(t)?vH(t,n):eC(yH(wu(e)))}function bH(e){var t=ug(W0(e)),n=["absolute","fixed"].indexOf(sc(e).position)>=0,r=n&&Wi(e)?my(e):e;return Od(r)?t.filter(function(o){return Od(o)&&fI(o,r)&&yl(o)!=="body"}):[]}function xH(e,t,n,r){var o=t==="clippingParents"?bH(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,f){var c=JO(e,f,r);return u.top=kd(c.top,u.top),u.right=Kb(c.right,u.right),u.bottom=Kb(c.bottom,u.bottom),u.left=kd(c.left,u.left),u},JO(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function yI(e){var t=e.reference,n=e.element,r=e.placement,o=r?hl(r):null,a=r?$p(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case ja:u={x:s,y:t.y-n.height};break;case Ki:u={x:s,y:t.y+t.height};break;case Qi:u={x:t.x+t.width,y:l};break;case Na:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=o?eT(o):null;if(f!=null){var c=f==="y"?"height":"width";switch(a){case Rp:u[f]=u[f]-(t[c]/2-n[c]/2);break;case jg:u[f]=u[f]+(t[c]/2-n[c]/2);break}}return u}function Ng(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?B9:l,f=n.rootBoundary,c=f===void 0?cI:f,m=n.elementContext,y=m===void 0?hm:m,v=n.altBoundary,b=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,S=hI(typeof w!="number"?w:mI(w,hy)),k=y===hm?_9:hm,T=e.rects.popper,O=e.elements[b?k:y],P=xH(Od(O)?O:O.contextElement||wu(e.elements.popper),u,c,s),$=Pp(e.elements.reference),I=yI({reference:$,element:T,placement:o}),F=eC(Object.assign({},T,I)),A=y===hm?F:$,H={top:P.top-A.top+S.top,bottom:A.bottom-P.bottom+S.bottom,left:P.left-A.left+S.left,right:A.right-P.right+S.right},L=e.modifiersData.offset;if(y===hm&&L){var M=L[o];Object.keys(H).forEach(function(_){var B=[Qi,Ki].indexOf(_)>=0?1:-1,W=[ja,Ki].indexOf(_)>=0?"y":"x";H[_]+=M[W]*B})}return H}function SH(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?uI:u,c=$p(r),m=c?l?KO:KO.filter(function(b){return $p(b)===c}):hy,y=m.filter(function(b){return f.indexOf(b)>=0});y.length===0&&(y=m);var v=y.reduce(function(b,x){return b[x]=Ng(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[hl(x)],b},{});return Object.keys(v).sort(function(b,x){return v[b]-v[x]})}function wH(e){if(hl(e)===Xk)return[];var t=Tb(e);return[ZO(e),t,ZO(t)]}function CH(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,f=n.padding,c=n.boundary,m=n.rootBoundary,y=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,x=n.allowedAutoPlacements,w=t.options.placement,S=hl(w),k=S===w,T=u||(k||!b?[Tb(w)]:wH(w)),O=[w].concat(T).reduce(function(se,re){return se.concat(hl(re)===Xk?SH(t,{placement:re,boundary:c,rootBoundary:m,padding:f,flipVariations:b,allowedAutoPlacements:x}):re)},[]),P=t.rects.reference,$=t.rects.popper,I=new Map,F=!0,A=O[0],H=0;H<O.length;H++){var L=O[H],M=hl(L),_=$p(L)===Rp,B=[ja,Ki].indexOf(M)>=0,W=B?"width":"height",j=Ng(t,{placement:L,boundary:c,rootBoundary:m,altBoundary:y,padding:f}),Q=B?_?Qi:Na:_?Ki:ja;P[W]>$[W]&&(Q=Tb(Q));var K=Tb(Q),te=[];if(a&&te.push(j[M]<=0),l&&te.push(j[Q]<=0,j[K]<=0),te.every(function(se){return se})){A=L,F=!1;break}I.set(L,te)}if(F)for(var X=b?3:1,J=function(re){var ie=O.find(function(ce){var me=I.get(ce);if(me)return me.slice(0,re).every(function(ye){return ye})});if(ie)return A=ie,"break"},ne=X;ne>0;ne--){var oe=J(ne);if(oe==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const kH={name:"flip",enabled:!0,phase:"main",fn:CH,requiresIfExists:["offset"],data:{_skip:!1}};function eP(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tP(e){return[ja,Qi,Ki,Na].some(function(t){return e[t]>=0})}function TH(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ng(t,{elementContext:"reference"}),l=Ng(t,{altBoundary:!0}),u=eP(s,r),f=eP(l,o,a),c=tP(u),m=tP(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}const MH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:TH};function EH(e,t,n){var r=hl(e),o=[Na,ja].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Na,Qi].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function RH(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=uI.reduce(function(c,m){return c[m]=EH(m,t.rects,a),c},{}),l=s[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const OH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RH};function PH(e){var t=e.state,n=e.name;t.modifiersData[n]=yI({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const $H={name:"popperOffsets",enabled:!0,phase:"read",fn:PH,data:{}};function DH(e){return e==="x"?"y":"x"}function AH(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,f=n.rootBoundary,c=n.altBoundary,m=n.padding,y=n.tether,v=y===void 0?!0:y,b=n.tetherOffset,x=b===void 0?0:b,w=Ng(t,{boundary:u,rootBoundary:f,padding:m,altBoundary:c}),S=hl(t.placement),k=$p(t.placement),T=!k,O=eT(S),P=DH(O),$=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,A=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,H=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if($){if(a){var _,B=O==="y"?ja:Na,W=O==="y"?Ki:Qi,j=O==="y"?"height":"width",Q=$[O],K=Q+w[B],te=Q-w[W],X=v?-F[j]/2:0,J=k===Rp?I[j]:F[j],ne=k===Rp?-F[j]:-I[j],oe=t.elements.arrow,se=v&&oe?Jk(oe):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pI(),ie=re[B],ce=re[W],me=cg(0,I[j],se[j]),ye=T?I[j]/2-X-me-ie-H.mainAxis:J-me-ie-H.mainAxis,we=T?-I[j]/2+X+me+ce+H.mainAxis:ne+me+ce+H.mainAxis,Ce=t.elements.arrow&&my(t.elements.arrow),$e=Ce?O==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,fe=(_=L?.[O])!=null?_:0,Te=Q+ye-fe-$e,nt=Q+we-fe,ze=cg(v?Kb(K,Te):K,Q,v?kd(te,nt):te);$[O]=ze,M[O]=ze-Q}if(l){var Ae,ue=O==="x"?ja:Na,bt=O==="x"?Ki:Qi,Be=$[P],it=P==="y"?"height":"width",pt=Be+w[ue],_t=Be-w[bt],Ht=[ja,Na].indexOf(S)!==-1,at=(Ae=L?.[P])!=null?Ae:0,Xe=Ht?pt:Be-I[it]-F[it]-at+H.altAxis,ot=Ht?Be+I[it]+F[it]-at-H.altAxis:_t,Ne=v&&Ht?rH(Xe,Be,ot):cg(v?Xe:pt,Be,v?ot:_t);$[P]=Ne,M[P]=Ne-Be}t.modifiersData[r]=M}}const jH={name:"preventOverflow",enabled:!0,phase:"main",fn:AH,requiresIfExists:["offset"]};function NH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IH(e){return e===gi(e)||!Wi(e)?tT(e):NH(e)}function LH(e){var t=e.getBoundingClientRect(),n=Op(t.width)/e.offsetWidth||1,r=Op(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zH(e,t,n){n===void 0&&(n=!1);var r=Wi(t),o=Wi(t)&&LH(t),a=wu(t),s=Pp(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((yl(t)!=="body"||rT(a))&&(l=IH(t)),Wi(t)?(u=Pp(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=nT(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function FH(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function BH(e){var t=FH(e);return X9.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function _H(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function UH(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var nP={placement:"bottom",modifiers:[],strategy:"absolute"};function rP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function VH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?nP:o;return function(l,u,f){f===void 0&&(f=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},nP,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},m=[],y=!1,v={state:c,setOptions:function(S){var k=typeof S=="function"?S(c.options):S;x(),c.options=Object.assign({},a,c.options,k),c.scrollParents={reference:Od(l)?ug(l):l.contextElement?ug(l.contextElement):[],popper:ug(u)};var T=BH(UH([].concat(r,c.options.modifiers)));return c.orderedModifiers=T.filter(function(O){return O.enabled}),b(),v.update()},forceUpdate:function(){if(!y){var S=c.elements,k=S.reference,T=S.popper;if(rP(k,T)){c.rects={reference:zH(k,my(T),c.options.strategy==="fixed"),popper:Jk(T)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(H){return c.modifiersData[H.name]=Object.assign({},H.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var P=c.orderedModifiers[O],$=P.fn,I=P.options,F=I===void 0?{}:I,A=P.name;typeof $=="function"&&(c=$({state:c,options:F,name:A,instance:v})||c)}}}},update:_H(function(){return new Promise(function(w){v.forceUpdate(),w(c)})}),destroy:function(){x(),y=!0}};if(!rP(l,u))return v;v.setOptions(f).then(function(w){!y&&f.onFirstUpdate&&f.onFirstUpdate(w)});function b(){c.orderedModifiers.forEach(function(w){var S=w.name,k=w.options,T=k===void 0?{}:k,O=w.effect;if(typeof O=="function"){var P=O({state:c,name:S,instance:v,options:T}),$=function(){};m.push(P||$)}})}function x(){m.forEach(function(w){return w()}),m=[]}return v}}var HH=[pH,$H,dH,eH,OH,kH,jH,sH,MH],WH=VH({defaultModifiers:HH});function tl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:iI(n,r),{props:l,internalRef:u}=sI({...a,externalSlotProps:s}),f=go(u,s?.ref,e.additionalProps?.ref);return aI(t,{...l,ref:f},r)}function Bd(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function qH(e){return typeof e=="function"?e():e}const vI=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=C.useState(null),u=go(C.isValidElement(r)?Bd(r):null,n);if(_a(()=>{a||l(qH(o)||document.body)},[o,a]),_a(()=>{if(s&&!a)return Yw(n,s),()=>{Yw(n,null)}},[n,s,a]),a){if(C.isValidElement(r)){const f={ref:u};return C.cloneElement(r,f)}return r}return s&&sy.createPortal(r,s)});function YH(e){return rn("MuiPopper",e)}sn("MuiPopper",["root"]);function GH(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function tC(e){return typeof e=="function"?e():e}function KH(e){return e.nodeType!==void 0}const QH=e=>{const{classes:t}=e;return on({root:["root"]},YH,t)},XH={},ZH=C.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:f,popperOptions:c,popperRef:m,slotProps:y={},slots:v={},TransitionProps:b,ownerState:x,...w}=t,S=C.useRef(null),k=go(S,n),T=C.useRef(null),O=go(T,m),P=C.useRef(O);_a(()=>{P.current=O},[O]),C.useImperativeHandle(m,()=>T.current,[]);const $=GH(f,a),[I,F]=C.useState($),[A,H]=C.useState(tC(r));C.useEffect(()=>{T.current&&T.current.forceUpdate()}),C.useEffect(()=>{r&&H(tC(r))},[r]),_a(()=>{if(!A||!u)return;const W=K=>{F(K.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{W(K)}}];l!=null&&(j=j.concat(l)),c&&c.modifiers!=null&&(j=j.concat(c.modifiers));const Q=WH(A,S.current,{placement:$,...c,modifiers:j});return P.current(Q),()=>{Q.destroy(),P.current(null)}},[A,s,l,u,c,$]);const L={placement:I};b!==null&&(L.TransitionProps=b);const M=QH(t),_=v.root??"div",B=tl({elementType:_,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:M.root});return h.jsx(_,{...B,children:typeof o=="function"?o(L):o})}),JH=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:f,open:c,placement:m="bottom",popperOptions:y=XH,popperRef:v,style:b,transition:x=!1,slotProps:w={},slots:S={},...k}=t,[T,O]=C.useState(!0),P=()=>{O(!1)},$=()=>{O(!0)};if(!u&&!c&&(!x||T))return null;let I;if(a)I=a;else if(r){const H=tC(r);I=H&&KH(H)?Po(H).body:Po(null).body}const F=!c&&u&&(!x||T)?"none":void 0,A=x?{in:c,onEnter:P,onExited:$}:void 0;return h.jsx(vI,{disablePortal:l,container:I,children:h.jsx(ZH,{anchorEl:r,direction:s,disablePortal:l,modifiers:f,ref:n,open:x?!T:c,placement:m,popperOptions:y,popperRef:v,slotProps:w,slots:S,...k,style:{position:"fixed",top:0,left:0,display:F,...b},TransitionProps:A,children:o})})}),eW=Je(JH,{name:"MuiPopper",slot:"Root"})({}),q0=C.forwardRef(function(t,n){const r=fy(),o=ln({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:f,disablePortal:c,keepMounted:m,modifiers:y,open:v,placement:b,popperOptions:x,popperRef:w,transition:S,slots:k,slotProps:T,...O}=o,P=k?.root??l?.Root,$={anchorEl:a,container:f,disablePortal:c,keepMounted:m,modifiers:y,open:v,placement:b,popperOptions:x,popperRef:w,transition:S,...O};return h.jsx(eW,{as:s,direction:r?"rtl":"ltr",slots:{root:P},slotProps:T??u,...$,ref:n})});function tW(e){return rn("MuiListSubheader",e)}sn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const nW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${tt(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return on(s,tW,t)},rW=Je("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${tt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Xt(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Qb=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:u=!1,inset:f=!1,...c}=r,m={...r,color:a,component:s,disableGutters:l,disableSticky:u,inset:f},y=nW(m);return h.jsx(rW,{as:s,className:Dt(y.root,o),ref:n,ownerState:m,...c})});Qb&&(Qb.muiSkipListHighlight=!0);const oW=da(h.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function aW(e){return rn("MuiChip",e)}const sr=sn("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),iW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:u}=e,f={root:["root",u,n&&"disabled",`size${tt(r)}`,`color${tt(o)}`,l&&"clickable",l&&`clickableColor${tt(o)}`,s&&"deletable",s&&`deletableColor${tt(o)}`,`${u}${tt(o)}`],label:["label",`label${tt(r)}`],avatar:["avatar",`avatar${tt(r)}`,`avatarColor${tt(o)}`],icon:["icon",`icon${tt(r)}`,`iconColor${tt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${tt(r)}`,`deleteIconColor${tt(o)}`,`deleteIcon${tt(u)}Color${tt(o)}`]};return on(f,aW,t)},sW=Je("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:u}=n;return[{[`& .${sr.avatar}`]:t.avatar},{[`& .${sr.avatar}`]:t[`avatar${tt(l)}`]},{[`& .${sr.avatar}`]:t[`avatarColor${tt(r)}`]},{[`& .${sr.icon}`]:t.icon},{[`& .${sr.icon}`]:t[`icon${tt(l)}`]},{[`& .${sr.icon}`]:t[`iconColor${tt(o)}`]},{[`& .${sr.deleteIcon}`]:t.deleteIcon},{[`& .${sr.deleteIcon}`]:t[`deleteIcon${tt(l)}`]},{[`& .${sr.deleteIcon}`]:t[`deleteIconColor${tt(r)}`]},{[`& .${sr.deleteIcon}`]:t[`deleteIcon${tt(u)}Color${tt(r)}`]},t.root,t[`size${tt(l)}`],t[`color${tt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${tt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${tt(r)}`],t[u],t[`${u}${tt(r)}`]]}})(Xt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${sr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${sr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${sr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${sr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${sr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${sr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${sr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${sr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${sr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(jr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${sr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${sr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${sr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${sr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(jr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${sr.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${sr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(jr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${sr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${sr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${sr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${sr.avatar}`]:{marginLeft:4},[`& .${sr.avatarSmall}`]:{marginLeft:2},[`& .${sr.icon}`]:{marginLeft:4},[`& .${sr.iconSmall}`]:{marginLeft:2},[`& .${sr.deleteIcon}`]:{marginRight:5},[`& .${sr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${sr.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${sr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${sr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),lW=Je("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${tt(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function oP(e){return e.key==="Backspace"||e.key==="Delete"}const Dp=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="default",component:u,deleteIcon:f,disabled:c=!1,icon:m,label:y,onClick:v,onDelete:b,onKeyDown:x,onKeyUp:w,size:S="medium",variant:k="filled",tabIndex:T,skipFocusWhenDisabled:O=!1,slots:P={},slotProps:$={},...I}=r,F=C.useRef(null),A=go(F,n),H=ie=>{ie.stopPropagation(),b&&b(ie)},L=ie=>{ie.currentTarget===ie.target&&oP(ie)&&ie.preventDefault(),x&&x(ie)},M=ie=>{ie.currentTarget===ie.target&&b&&oP(ie)&&b(ie),w&&w(ie)},_=s!==!1&&v?!0:s,B=_||b?mu:u||"div",W={...r,component:B,disabled:c,size:S,color:l,iconColor:C.isValidElement(m)&&m.props.color||l,onDelete:!!b,clickable:_,variant:k},j=iW(W),Q=B===mu?{component:u||"div",focusVisibleClassName:j.focusVisible,...b&&{disableRipple:!0}}:{};let K=null;b&&(K=f&&C.isValidElement(f)?C.cloneElement(f,{className:Dt(f.props.className,j.deleteIcon),onClick:H}):h.jsx(oW,{className:j.deleteIcon,onClick:H}));let te=null;o&&C.isValidElement(o)&&(te=C.cloneElement(o,{className:Dt(j.avatar,o.props.className)}));let X=null;m&&C.isValidElement(m)&&(X=C.cloneElement(m,{className:Dt(j.icon,m.props.className)}));const J={slots:P,slotProps:$},[ne,oe]=An("root",{elementType:sW,externalForwardedProps:{...J,...I},ownerState:W,shouldForwardComponentProp:!0,ref:A,className:Dt(j.root,a),additionalProps:{disabled:_&&c?!0:void 0,tabIndex:O&&c?-1:T,...Q},getSlotProps:ie=>({...ie,onClick:ce=>{ie.onClick?.(ce),v?.(ce)},onKeyDown:ce=>{ie.onKeyDown?.(ce),L(ce)},onKeyUp:ce=>{ie.onKeyUp?.(ce),M(ce)}})}),[se,re]=An("label",{elementType:lW,externalForwardedProps:J,ownerState:W,className:j.label});return h.jsxs(ne,{as:B,...oe,children:[te||X,h.jsx(se,{...re,children:y}),K]})});function _v(e){return parseInt(e,10)||0}const cW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function uW(e){for(const t in e)return!1;return!0}function aP(e){return uW(e)||e.outerHeightStyle===0&&!e.overflowing}const dW=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...u}=t,{current:f}=C.useRef(l!=null),c=C.useRef(null),m=go(n,c),y=C.useRef(null),v=C.useRef(null),b=C.useCallback(()=>{const T=c.current,O=v.current;if(!T||!O)return;const $=ic(T).getComputedStyle(T);if($.width==="0px")return{outerHeightStyle:0,overflowing:!1};O.style.width=$.width,O.value=T.value||t.placeholder||"x",O.value.slice(-1)===`
212
- `&&(O.value+=" ");const I=$.boxSizing,F=_v($.paddingBottom)+_v($.paddingTop),A=_v($.borderBottomWidth)+_v($.borderTopWidth),H=O.scrollHeight;O.value="x";const L=O.scrollHeight;let M=H;a&&(M=Math.max(Number(a)*L,M)),o&&(M=Math.min(Number(o)*L,M)),M=Math.max(M,L);const _=M+(I==="border-box"?F+A:0),B=Math.abs(M-H)<=1;return{outerHeightStyle:_,overflowing:B}},[o,a,t.placeholder]),x=No(()=>{const T=c.current,O=b();if(!T||!O||aP(O))return!1;const P=O.outerHeightStyle;return y.current!=null&&y.current!==P}),w=C.useCallback(()=>{const T=c.current,O=b();if(!T||!O||aP(O))return;const P=O.outerHeightStyle;y.current!==P&&(y.current=P,T.style.height=`${P}px`),T.style.overflow=O.overflowing?"hidden":""},[b]),S=C.useRef(-1);_a(()=>{const T=JN(w),O=c?.current;if(!O)return;const P=ic(O);P.addEventListener("resize",T);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(()=>{x()&&($.unobserve(O),cancelAnimationFrame(S.current),w(),S.current=requestAnimationFrame(()=>{$.observe(O)}))}),$.observe(O)),()=>{T.clear(),cancelAnimationFrame(S.current),P.removeEventListener("resize",T),$&&$.disconnect()}},[b,w,x]),_a(()=>{w()});const k=T=>{f||w();const O=T.target,P=O.value.length,$=O.value.endsWith(`
213
- `),I=O.selectionStart===P;$&&I&&O.setSelectionRange(P,P),r&&r(T)};return h.jsxs(C.Fragment,{children:[h.jsx("textarea",{value:l,onChange:k,ref:m,rows:a,style:s,...u}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...cW.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Cu({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Y0=C.createContext(void 0);function kl(){return C.useContext(Y0)}function iP(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xb(e,t=!1){return e&&(iP(e.value)&&e.value!==""||t&&iP(e.defaultValue)&&e.defaultValue!=="")}function fW(e){return e.startAdornment}function pW(e){return rn("MuiInputBase",e)}const ii=sn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var sP;const G0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},K0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},hW=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:f,multiline:c,readOnly:m,size:y,startAdornment:v,type:b}=e,x={root:["root",`color${tt(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${tt(y)}`,c&&"multiline",v&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return on(x,pW,t)},Q0=Je("div",{name:"MuiInputBase",slot:"Root",overridesResolver:G0})(Xt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ii.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),X0=Je("input",{name:"MuiInputBase",slot:"Input",overridesResolver:K0})(Xt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ii.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ii.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),lP=Gk({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),oT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:u,components:f={},componentsProps:c={},defaultValue:m,disabled:y,disableInjectingGlobalStyles:v,endAdornment:b,error:x,fullWidth:w=!1,id:S,inputComponent:k="input",inputProps:T={},inputRef:O,margin:P,maxRows:$,minRows:I,multiline:F=!1,name:A,onBlur:H,onChange:L,onClick:M,onFocus:_,onKeyDown:B,onKeyUp:W,placeholder:j,readOnly:Q,renderSuffix:K,rows:te,size:X,slotProps:J={},slots:ne={},startAdornment:oe,type:se="text",value:re,...ie}=r,ce=T.value!=null?T.value:re,{current:me}=C.useRef(ce!=null),ye=C.useRef(),we=C.useCallback(Me=>{},[]),Ce=go(ye,O,T.ref,we),[$e,fe]=C.useState(!1),Te=kl(),nt=Cu({props:r,muiFormControl:Te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});nt.focused=Te?Te.focused:$e,C.useEffect(()=>{!Te&&y&&$e&&(fe(!1),H&&H())},[Te,y,$e,H]);const ze=Te&&Te.onFilled,Ae=Te&&Te.onEmpty,ue=C.useCallback(Me=>{Xb(Me)?ze&&ze():Ae&&Ae()},[ze,Ae]);_a(()=>{me&&ue({value:ce})},[ce,ue,me]);const bt=Me=>{_&&_(Me),T.onFocus&&T.onFocus(Me),Te&&Te.onFocus?Te.onFocus(Me):fe(!0)},Be=Me=>{H&&H(Me),T.onBlur&&T.onBlur(Me),Te&&Te.onBlur?Te.onBlur(Me):fe(!1)},it=(Me,...Mt)=>{if(!me){const Rt=Me.target||ye.current;if(Rt==null)throw new Error(ac(1));ue({value:Rt.value})}T.onChange&&T.onChange(Me,...Mt),L&&L(Me,...Mt)};C.useEffect(()=>{ue(ye.current)},[]);const pt=Me=>{ye.current&&Me.currentTarget===Me.target&&ye.current.focus(),M&&M(Me)};let _t=k,Ht=T;F&&_t==="input"&&(te?Ht={type:void 0,minRows:te,maxRows:te,...Ht}:Ht={type:void 0,maxRows:$,minRows:I,...Ht},_t=dW);const at=Me=>{ue(Me.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};C.useEffect(()=>{Te&&Te.setAdornedStart(!!oe)},[Te,oe]);const Xe={...r,color:nt.color||"primary",disabled:nt.disabled,endAdornment:b,error:nt.error,focused:nt.focused,formControl:Te,fullWidth:w,hiddenLabel:nt.hiddenLabel,multiline:F,size:nt.size,startAdornment:oe,type:se},ot=hW(Xe),Ne=ne.root||f.Root||Q0,he=J.root||c.root||{},qe=ne.input||f.Input||X0;return Ht={...Ht,...J.input??c.input},h.jsxs(C.Fragment,{children:[!v&&typeof lP=="function"&&(sP||(sP=h.jsx(lP,{}))),h.jsxs(Ne,{...he,ref:n,onClick:pt,...ie,...!su(Ne)&&{ownerState:{...Xe,...he.ownerState}},className:Dt(ot.root,he.className,l,Q&&"MuiInputBase-readOnly"),children:[oe,h.jsx(Y0.Provider,{value:null,children:h.jsx(qe,{"aria-invalid":nt.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:m,disabled:nt.disabled,id:S,onAnimationStart:at,name:A,placeholder:j,readOnly:Q,required:nt.required,rows:te,value:ce,onKeyDown:B,onKeyUp:W,type:se,...Ht,...!su(qe)&&{as:_t,ownerState:{...Xe,...Ht.ownerState}},ref:Ce,className:Dt(ot.input,Ht.className,Q&&"MuiInputBase-readOnly"),onBlur:Be,onChange:it,onFocus:bt})}),b,K?K({...nt,startAdornment:oe}):null]})]})});function mW(e){return rn("MuiInput",e)}const Jc={...ii,...sn("MuiInput",["root","underline","input"])};function gW(e){return rn("MuiOutlinedInput",e)}const Ai={...ii,...sn("MuiOutlinedInput",["root","notchedOutline","input"])};function yW(e){return rn("MuiFilledInput",e)}const si={...ii,...sn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},bI=da(h.jsx("path",{d:"M7 10l5 5 5-5z"}));function vW(e){return rn("MuiAutocomplete",e)}const Zn=sn("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var cP,uP;const bW=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:u,popupOpen:f,size:c}=e,m={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${tt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return on(m,vW,t)},xW=Je("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${Zn.tag}`]:t.tag},{[`& .${Zn.tag}`]:t[`tagSize${tt(l)}`]},{[`& .${Zn.inputRoot}`]:t.inputRoot},{[`& .${Zn.input}`]:t.input},{[`& .${Zn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Zn.focused} .${Zn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zn.clearIndicator}`]:{visibility:"visible"}},[`& .${Zn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Zn.inputRoot}`]:{[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:30},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:56},[`& .${Zn.input}`]:{width:0,minWidth:30}},[`& .${Jc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Jc.root}.${ii.sizeSmall}`]:{[`& .${Jc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ai.root}`]:{padding:9,[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:39},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:65},[`& .${Zn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Zn.endAdornment}`]:{right:9}},[`& .${Ai.root}.${ii.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${si.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:39},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:65},[`& .${si.input}`]:{padding:"7px 4px"},[`& .${Zn.endAdornment}`]:{right:9}},[`& .${si.root}.${ii.sizeSmall}`]:{paddingBottom:1,[`& .${si.input}`]:{padding:"2.5px 4px"}},[`& .${ii.hiddenLabel}`]:{paddingTop:8},[`& .${si.root}.${ii.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${si.root}.${ii.hiddenLabel}.${ii.sizeSmall}`]:{[`& .${Zn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Zn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Zn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Zn.inputRoot}`]:{flexWrap:"wrap"}}}]}),SW=Je("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),wW=Je(eo,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),CW=Je(eo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),kW=Je(q0,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Xt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),TW=Je(Ua,{name:"MuiAutocomplete",slot:"Paper"})(Xt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),MW=Je("div",{name:"MuiAutocomplete",slot:"Loading"})(Xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),EW=Je("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),RW=Je("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Xt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Zn.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),OW=Je(Qb,{name:"MuiAutocomplete",slot:"GroupLabel"})(Xt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),PW=Je("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Zn.option}`]:{paddingLeft:24}}),$W=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:u,className:f,clearIcon:c=cP||(cP=h.jsx(lI,{fontSize:"small"})),clearOnBlur:m=!r.freeSolo,clearOnEscape:y=!1,clearText:v="Clear",closeText:b="Close",componentsProps:x,defaultValue:w=r.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:k=!1,disabled:T=!1,disabledItemsFocusable:O=!1,disableListWrap:P=!1,disablePortal:$=!1,filterOptions:I,filterSelectedOptions:F=!1,forcePopupIcon:A="auto",freeSolo:H=!1,fullWidth:L=!1,getLimitTagsText:M=$t=>`+${$t}`,getOptionDisabled:_,getOptionKey:B,getOptionLabel:W,isOptionEqualToValue:j,groupBy:Q,handleHomeEndKeys:K=!r.freeSolo,id:te,includeInputInList:X=!1,inputValue:J,limitTags:ne=-1,ListboxComponent:oe,ListboxProps:se,loading:re=!1,loadingText:ie="Loading…",multiple:ce=!1,noOptionsText:me="No options",onChange:ye,onClose:we,onHighlightChange:Ce,onInputChange:$e,onOpen:fe,open:Te,openOnFocus:nt=!1,openText:ze="Open",options:Ae,PaperComponent:ue,PopperComponent:bt,popupIcon:Be=uP||(uP=h.jsx(bI,{})),readOnly:it=!1,renderGroup:pt,renderInput:_t,renderOption:Ht,renderTags:at,renderValue:Xe,selectOnFocus:ot=!r.freeSolo,size:Ne="medium",slots:he={},slotProps:qe={},value:Me,...Mt}=r,{getRootProps:Rt,getInputProps:gt,getInputLabelProps:ct,getPopupIndicatorProps:At,getClearProps:Wt,getItemProps:dn,getListboxProps:bn,getOptionProps:_n,value:Gn,dirty:Jt,expanded:Ln,id:be,popupOpen:Bn,focused:Rn,focusedItem:en,anchorEl:le,setAnchorEl:De,inputValue:Le,groupedOptions:Ye}=F9({...r,componentName:"Autocomplete"}),ut=!S&&!T&&Jt&&!it,zt=(!H||A===!0)&&A!==!1,{onMouseDown:Ut}=gt(),{ref:jt,...mt}=bn(),Ot=W||($t=>$t.label??$t),kt={...r,disablePortal:$,expanded:Ln,focused:Rn,fullWidth:L,getOptionLabel:Ot,hasClearIcon:ut,hasPopupIcon:zt,inputFocused:en===-1,popupOpen:Bn,size:Ne},qt=bW(kt),On={slots:{paper:ue,popper:bt,...he},slotProps:{chip:u,listbox:se,...x,...qe}},[Kn,xn]=An("listbox",{elementType:RW,externalForwardedProps:On,ownerState:kt,className:qt.listbox,additionalProps:mt,ref:jt}),[fn,de]=An("paper",{elementType:Ua,externalForwardedProps:On,ownerState:kt,className:qt.paper}),[pe,He]=An("popper",{elementType:q0,externalForwardedProps:On,ownerState:kt,className:qt.popper,additionalProps:{disablePortal:$,style:{width:le?le.clientWidth:null},role:"presentation",anchorEl:le,open:Bn}});let vt;const Ke=$t=>({className:qt.tag,disabled:T,...dn($t)});if(ce?Gn.length>0&&(at?vt=at(Gn,Ke,kt):Xe?vt=Xe(Gn,Ke,kt):vt=Gn.map(($t,Tt)=>{const{key:wt,...Qt}=Ke({index:Tt});return h.jsx(Dp,{label:Ot($t),size:Ne,...Qt,...On.slotProps.chip},wt)})):Xe&&Gn!=null&&(vt=Xe(Gn,Ke,kt)),ne>-1&&Array.isArray(vt)){const $t=vt.length-ne;!Rn&&$t>0&&(vt=vt.splice(0,ne),vt.push(h.jsx("span",{className:qt.tag,children:M($t)},vt.length)))}const cn=pt||($t=>h.jsxs("li",{children:[h.jsx(OW,{className:qt.groupLabel,ownerState:kt,component:"div",children:$t.group}),h.jsx(PW,{className:qt.groupUl,ownerState:kt,children:$t.children})]},$t.key)),ge=Ht||(($t,Tt)=>{const{key:wt,...Qt}=$t;return h.jsx("li",{...Qt,children:Ot(Tt)},wt)}),Re=($t,Tt)=>{const wt=_n({option:$t,index:Tt});return ge({...wt,className:qt.option},$t,{selected:wt["aria-selected"],index:Tt,inputValue:Le},kt)},We=On.slotProps.clearIndicator,yt=On.slotProps.popupIndicator;return h.jsxs(C.Fragment,{children:[h.jsx(xW,{ref:n,className:Dt(qt.root,f),ownerState:kt,...Rt(Mt),children:_t({id:be,disabled:T,fullWidth:!0,size:Ne==="small"?"small":void 0,InputLabelProps:ct(),InputProps:{ref:De,className:qt.inputRoot,startAdornment:vt,onMouseDown:$t=>{$t.target===$t.currentTarget&&Ut($t)},...(ut||zt)&&{endAdornment:h.jsxs(SW,{className:qt.endAdornment,ownerState:kt,children:[ut?h.jsx(wW,{...Wt(),"aria-label":v,title:v,ownerState:kt,...We,className:Dt(qt.clearIndicator,We?.className),children:c}):null,zt?h.jsx(CW,{...At(),disabled:T,"aria-label":Bn?b:ze,title:Bn?b:ze,ownerState:kt,...yt,className:Dt(qt.popupIndicator,yt?.className),children:Be}):null]})}},inputProps:{className:qt.input,disabled:T,readOnly:it,...gt()}})}),le?h.jsx(kW,{as:pe,...He,children:h.jsxs(TW,{as:fn,...de,children:[re&&Ye.length===0?h.jsx(MW,{className:qt.loading,ownerState:kt,children:ie}):null,Ye.length===0&&!H&&!re?h.jsx(EW,{className:qt.noOptions,ownerState:kt,role:"presentation",onMouseDown:$t=>{$t.preventDefault()},children:me}):null,Ye.length>0?h.jsx(Kn,{as:oe,...xn,children:Ye.map(($t,Tt)=>Q?cn({key:$t.key,group:$t.group,children:$t.options.map((wt,Qt)=>Re(wt,$t.index+Qt))}):Re($t,Tt))}):null]})}):null]})}),DW={entering:{opacity:1},entered:{opacity:1}},nC=C.forwardRef(function(t,n){const r=Su(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:u,in:f,onEnter:c,onEntered:m,onEntering:y,onExit:v,onExited:b,onExiting:x,style:w,timeout:S=o,TransitionComponent:k=Cl,...T}=t,O=C.useRef(null),P=go(O,Bd(l),n),$=B=>W=>{if(B){const j=O.current;W===void 0?B(j):B(j,W)}},I=$(y),F=$((B,W)=>{oI(B);const j=Yb({style:w,timeout:S,easing:u},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",j),B.style.transition=r.transitions.create("opacity",j),c&&c(B,W)}),A=$(m),H=$(x),L=$(B=>{const W=Yb({style:w,timeout:S,easing:u},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",W),B.style.transition=r.transitions.create("opacity",W),v&&v(B)}),M=$(b),_=B=>{a&&a(O.current,B)};return h.jsx(k,{appear:s,in:f,nodeRef:O,onEnter:F,onEntered:A,onEntering:I,onExit:L,onExited:M,onExiting:H,addEndListener:_,timeout:S,...T,children:(B,{ownerState:W,...j})=>C.cloneElement(l,{style:{opacity:0,visibility:B==="exited"&&!f?"hidden":void 0,...DW[B],...w,...l.props.style},ref:P,...j})})});function AW(e){return rn("MuiBackdrop",e)}sn("MuiBackdrop",["root","invisible"]);const jW=e=>{const{classes:t,invisible:n}=e;return on({root:["root",n&&"invisible"]},AW,t)},NW=Je("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),xI=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:u,components:f={},componentsProps:c={},slotProps:m={},slots:y={},TransitionComponent:v,transitionDuration:b,...x}=r,w={...r,component:s,invisible:l},S=jW(w),k={transition:v,root:f.Root,...y},T={...c,...m},O={component:s,slots:k,slotProps:T},[P,$]=An("root",{elementType:NW,externalForwardedProps:O,className:Dt(S.root,a),ownerState:w}),[I,F]=An("transition",{elementType:nC,externalForwardedProps:O,ownerState:w});return h.jsx(I,{in:u,timeout:b,...x,...F,children:h.jsx(P,{"aria-hidden":!0,...$,classes:S,ref:n,children:o})})}),IW=sn("MuiBox",["root"]),LW=U0(),Ct=Fk({themeId:fl,defaultTheme:LW,defaultClassName:IW.root,generateClassName:zk.generate});function zW(e){return rn("MuiButton",e)}const ed=sn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),FW=C.createContext({}),BW=C.createContext(void 0),_W=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=e,f={root:["root",s&&"loading",a,`${a}${tt(t)}`,`size${tt(o)}`,`${a}Size${tt(o)}`,`color${tt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${tt(l)}`],startIcon:["icon","startIcon",`iconSize${tt(o)}`],endIcon:["icon","endIcon",`iconSize${tt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=on(f,zW,u);return{...u,...c}},SI=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],UW=Je(mu,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tt(n.color)}`],t[`size${tt(n.size)}`],t[`${n.variant}Size${tt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ed.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ed.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ed.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ed.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(jr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ed.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ed.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ed.loading}`]:{color:"transparent"}}}]}})),VW=Je("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${tt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...SI]})),HW=Je("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${tt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...SI]})),WW=Je("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),dP=Je("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),wo=C.forwardRef(function(t,n){const r=C.useContext(FW),o=C.useContext(BW),a=Ep(r,t),s=ln({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:c,disabled:m=!1,disableElevation:y=!1,disableFocusRipple:v=!1,endIcon:b,focusVisibleClassName:x,fullWidth:w=!1,id:S,loading:k=null,loadingIndicator:T,loadingPosition:O="center",size:P="medium",startIcon:$,type:I,variant:F="text",...A}=s,H=xu(S),L=T??h.jsx(py,{"aria-labelledby":H,color:"inherit",size:16}),M={...s,color:u,component:f,disabled:m,disableElevation:y,disableFocusRipple:v,fullWidth:w,loading:k,loadingIndicator:L,loadingPosition:O,size:P,type:I,variant:F},_=_W(M),B=($||k&&O==="start")&&h.jsx(VW,{className:_.startIcon,ownerState:M,children:$||h.jsx(dP,{className:_.loadingIconPlaceholder,ownerState:M})}),W=(b||k&&O==="end")&&h.jsx(HW,{className:_.endIcon,ownerState:M,children:b||h.jsx(dP,{className:_.loadingIconPlaceholder,ownerState:M})}),j=o||"",Q=typeof k=="boolean"?h.jsx("span",{className:_.loadingWrapper,style:{display:"contents"},children:k&&h.jsx(WW,{className:_.loadingIndicator,ownerState:M,children:L})}):null;return h.jsxs(UW,{ownerState:M,className:Dt(r.className,_.root,c,j),component:f,disabled:m||k,focusRipple:!v,focusVisibleClassName:Dt(_.focusVisible,x),ref:n,type:I,id:k?H:S,...A,classes:_,children:[B,O!=="end"&&Q,l,O==="end"&&Q,W]})});function qW(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}function YW(e){return rn("MuiCard",e)}sn("MuiCard",["root"]);const GW=e=>{const{classes:t}=e;return on({root:["root"]},YW,t)},KW=Je(Ua,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Qp=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},u=GW(l);return h.jsx(KW,{className:Dt(u.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function QW(e){return rn("MuiCardContent",e)}sn("MuiCardContent",["root"]);const XW=e=>{const{classes:t}=e;return on({root:["root"]},QW,t)},ZW=Je("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Xp=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=XW(l);return h.jsx(ZW,{as:a,className:Dt(u.root,o),ownerState:l,ref:n,...s})});function JW(e){return rn("MuiCardMedia",e)}sn("MuiCardMedia",["root","media","img"]);const e7=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return on({root:["root",n&&"media",r&&"img"]},JW,t)},t7=Je("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),n7=["video","audio","picture","iframe","img"],r7=["picture","img"],o7=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:u,style:f,...c}=r,m=n7.includes(s),y=!m&&l?{backgroundImage:`url("${l}")`,...f}:f,v={...r,component:s,isMediaComponent:m,isImageComponent:r7.includes(s)},b=e7(v);return h.jsx(t7,{className:Dt(b.root,a),as:s,role:!m&&l?"img":void 0,ref:n,style:y,ownerState:v,src:m?l||u:void 0,...c,children:o})});function a7(e){return rn("PrivateSwitchBase",e)}sn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const i7=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${tt(o)}`],input:["input"]};return on(a,a7,t)},s7=Je(mu,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),l7=Je("input",{name:"MuiSwitchBase",shouldForwardProp:ua})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wI=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:c,id:m,inputProps:y,inputRef:v,name:b,onBlur:x,onChange:w,onFocus:S,readOnly:k,required:T=!1,tabIndex:O,type:P,value:$,slots:I={},slotProps:F={},...A}=t,[H,L]=iu({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=kl(),_=re=>{S&&S(re),M&&M.onFocus&&M.onFocus(re)},B=re=>{x&&x(re),M&&M.onBlur&&M.onBlur(re)},W=re=>{if(re.nativeEvent.defaultPrevented)return;const ie=re.target.checked;L(ie),w&&w(re,ie)};let j=l;M&&typeof j>"u"&&(j=M.disabled);const Q=P==="checkbox"||P==="radio",K={...t,checked:H,disabled:j,disableFocusRipple:u,edge:f},te=i7(K),X={slots:I,slotProps:{input:y,...F}},[J,ne]=An("root",{ref:n,elementType:s7,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...X,component:"span",...A},getSlotProps:re=>({...re,onFocus:ie=>{re.onFocus?.(ie),_(ie)},onBlur:ie=>{re.onBlur?.(ie),B(ie)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:j,role:void 0,tabIndex:null}}),[oe,se]=An("input",{ref:v,elementType:l7,className:te.input,externalForwardedProps:X,getSlotProps:re=>({...re,onChange:ie=>{re.onChange?.(ie),W(ie)}}),ownerState:K,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:j,id:Q?m:void 0,name:b,readOnly:k,required:T,tabIndex:O,type:P,...P==="checkbox"&&$===void 0?{}:{value:$}}});return h.jsxs(J,{...ne,children:[h.jsx(oe,{...se}),H?a:c]})}),c7=da(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),u7=da(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),d7=da(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function f7(e){return rn("MuiCheckbox",e)}const zS=sn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),p7=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${tt(r)}`,`size${tt(o)}`]},s=on(a,f7,t);return{...t,...s}},h7=Je(wI,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${tt(n.size)}`],n.color!=="default"&&t[`color${tt(n.color)}`]]}})(Xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&.${zS.checked}, &.${zS.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${zS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),m7=h.jsx(u7,{}),g7=h.jsx(c7,{}),y7=h.jsx(d7,{}),rC=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiCheckbox"}),{checkedIcon:o=m7,color:a="primary",icon:s=g7,indeterminate:l=!1,indeterminateIcon:u=y7,inputProps:f,size:c="medium",disableRipple:m=!1,className:y,slots:v={},slotProps:b={},...x}=r,w=l?u:s,S=l?u:o,k={...r,disableRipple:m,color:a,indeterminate:l,size:c},T=p7(k),O=b.input??f,[P,$]=An("root",{ref:n,elementType:h7,className:Dt(T.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:b,...x},ownerState:k,additionalProps:{type:"checkbox",icon:C.cloneElement(w,{fontSize:w.props.fontSize??c}),checkedIcon:C.cloneElement(S,{fontSize:S.props.fontSize??c}),disableRipple:m,slots:v,slotProps:{input:eI(typeof O=="function"?O(k):O,{"data-indeterminate":l})}}});return h.jsx(P,{...$,classes:T})});function fP(e){return e.substring(2).toLowerCase()}function v7(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function b7(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),u=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=go(Bd(t),l),m=No(b=>{const x=f.current;f.current=!1;const w=Po(l.current);if(!u.current||!l.current||"clientX"in b&&v7(b,w))return;if(s.current){s.current=!1;return}let S;b.composedPath?S=b.composedPath().includes(l.current):S=!w.documentElement.contains(b.target)||l.current.contains(b.target),!S&&(n||!x)&&o(b)}),y=b=>x=>{f.current=!0;const w=t.props[b];w&&w(x)},v={ref:c};return a!==!1&&(v[a]=y(a)),C.useEffect(()=>{if(a!==!1){const b=fP(a),x=Po(l.current),w=()=>{s.current=!0};return x.addEventListener(b,m),x.addEventListener("touchmove",w),()=>{x.removeEventListener(b,m),x.removeEventListener("touchmove",w)}}},[m,a]),r!==!1&&(v[r]=y(r)),C.useEffect(()=>{if(r!==!1){const b=fP(r),x=Po(l.current);return x.addEventListener(b,m),()=>{x.removeEventListener(b,m)}}},[m,r]),C.cloneElement(t,v)}const Z0=CV({createStyledComponent:Je("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${tt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ln({props:e,name:"MuiContainer"})}),oC=typeof Gk({})=="function",x7=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),S7=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),CI=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const l=e.getColorSchemeSelector(a);l.startsWith("@")?n[l]={":root":{colorScheme:s.palette?.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:x7(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...S7(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Mb="mui-ecs",w7=e=>{const t=CI(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Mb})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${Mb}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Mb}))`]:{colorScheme:o.palette?.mode}}}),t},C7=Gk(oC?({theme:e,enableColorScheme:t})=>CI(e,t):({theme:e})=>w7(e));function k7(e){const t=ln({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return h.jsxs(C.Fragment,{children:[oC&&h.jsx(C7,{enableColorScheme:r}),!oC&&!r&&h.jsx("span",{className:Mb,style:{display:"none"}}),n]})}function kI(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function T7(e){const t=Po(e);return t.body===e?ic(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function pP(e){return parseInt(ic(e).getComputedStyle(e).paddingRight,10)||0}function M7(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function hP(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),u=!M7(s);l&&u&&dg(s,o)})}function FS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function E7(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(T7(r)){const s=kI(ic(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${pP(r)+s}px`;const l=Po(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${pP(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Po(r).body;else{const s=r.parentElement,l=ic(r);a=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function R7(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O7{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&dg(t.modalRef,!1);const o=R7(n);hP(n,t.mount,t.modalRef,o,!0);const a=FS(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=FS(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=E7(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=FS(this.containers,s=>s.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&dg(t.modalRef,n),hP(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&dg(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const P7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $7(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function D7(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function A7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||D7(e))}function j7(e){const t=[],n=[];return Array.from(e.querySelectorAll(P7)).forEach((r,o)=>{const a=$7(r);a===-1||!A7(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function N7(){return!0}function I7(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=j7,isEnabled:s=N7,open:l}=e,u=C.useRef(!1),f=C.useRef(null),c=C.useRef(null),m=C.useRef(null),y=C.useRef(null),v=C.useRef(!1),b=C.useRef(null),x=go(Bd(t),b),w=C.useRef(null);C.useEffect(()=>{!l||!b.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!b.current)return;const T=Po(b.current);return b.current.contains(T.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),v.current&&b.current.focus()),()=>{o||(m.current&&m.current.focus&&(u.current=!0,m.current.focus()),m.current=null)}},[l]),C.useEffect(()=>{if(!l||!b.current)return;const T=Po(b.current),O=I=>{w.current=I,!(r||!s()||I.key!=="Tab")&&T.activeElement===b.current&&I.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const I=b.current;if(I===null)return;if(!T.hasFocus()||!s()||u.current){u.current=!1;return}if(I.contains(T.activeElement)||r&&T.activeElement!==f.current&&T.activeElement!==c.current)return;if(T.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let F=[];if((T.activeElement===f.current||T.activeElement===c.current)&&(F=a(b.current)),F.length>0){const A=!!(w.current?.shiftKey&&w.current?.key==="Tab"),H=F[0],L=F[F.length-1];typeof H!="string"&&typeof L!="string"&&(A?L.focus():H.focus())}else I.focus()};T.addEventListener("focusin",P),T.addEventListener("keydown",O,!0);const $=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval($),T.removeEventListener("focusin",P),T.removeEventListener("keydown",O,!0)}},[n,r,o,s,l,a]);const S=T=>{m.current===null&&(m.current=T.relatedTarget),v.current=!0,y.current=T.target;const O=t.props.onFocus;O&&O(T)},k=T=>{m.current===null&&(m.current=T.relatedTarget),v.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:S}),h.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function L7(e){return typeof e=="function"?e():e}function z7(e){return e?e.props.hasOwnProperty("in"):!1}const mP=()=>{},Uv=new O7;function F7(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:f,rootRef:c}=e,m=C.useRef({}),y=C.useRef(null),v=C.useRef(null),b=go(v,c),[x,w]=C.useState(!f),S=z7(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const T=()=>Po(y.current),O=()=>(m.current.modalRef=v.current,m.current.mount=y.current,m.current),P=()=>{Uv.mount(O(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},$=No(()=>{const W=L7(t)||T().body;Uv.add(O(),W),v.current&&P()}),I=()=>Uv.isTopModal(O()),F=No(W=>{y.current=W,W&&(f&&I()?P():v.current&&dg(v.current,k))}),A=C.useCallback(()=>{Uv.remove(O(),k)},[k]);C.useEffect(()=>()=>{A()},[A]),C.useEffect(()=>{f?$():(!S||!o)&&A()},[f,A,S,o,$]);const H=W=>j=>{W.onKeyDown?.(j),!(j.key!=="Escape"||j.which===229||!I())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},L=W=>j=>{W.onClick?.(j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(W={})=>{const j=Cd(e);delete j.onTransitionEnter,delete j.onTransitionExited;const Q={...j,...W};return{role:"presentation",...Q,onKeyDown:H(Q),ref:b}},getBackdropProps:(W={})=>{const j=W;return{"aria-hidden":!0,...j,onClick:L(j),open:f}},getTransitionProps:()=>{const W=()=>{w(!1),a&&a()},j=()=>{w(!0),s&&s(),o&&A()};return{onEnter:IO(W,l?.props.onEnter??mP),onExited:IO(j,l?.props.onExited??mP)}},rootRef:b,portalRef:F,isTopModal:I,exited:x,hasTransition:S}}function B7(e){return rn("MuiModal",e)}sn("MuiModal",["root","hidden","backdrop"]);const _7=e=>{const{open:t,exited:n,classes:r}=e;return on({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},B7,r)},U7=Je("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),V7=Je(xI,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),TI=C.forwardRef(function(t,n){const r=ln({name:"MuiModal",props:t}),{BackdropComponent:o=V7,BackdropProps:a,classes:s,className:l,closeAfterTransition:u=!1,children:f,container:c,component:m,components:y={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:T=!1,hideBackdrop:O=!1,keepMounted:P=!1,onClose:$,onTransitionEnter:I,onTransitionExited:F,open:A,slotProps:H={},slots:L={},theme:M,..._}=r,B={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:k,disableScrollLock:T,hideBackdrop:O,keepMounted:P},{getRootProps:W,getBackdropProps:j,getTransitionProps:Q,portalRef:K,isTopModal:te,exited:X,hasTransition:J}=F7({...B,rootRef:n}),ne={...B,exited:X},oe=_7(ne),se={};if(f.props.tabIndex===void 0&&(se.tabIndex="-1"),J){const{onEnter:we,onExited:Ce}=Q();se.onEnter=we,se.onExited=Ce}const re={slots:{root:y.Root,backdrop:y.Backdrop,...L},slotProps:{...v,...H}},[ie,ce]=An("root",{ref:n,elementType:U7,externalForwardedProps:{...re,..._,component:m},getSlotProps:W,ownerState:ne,className:Dt(l,oe?.root,!ne.open&&ne.exited&&oe?.hidden)}),[me,ye]=An("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:we=>j({...we,onClick:Ce=>{we?.onClick&&we.onClick(Ce)}}),className:Dt(a?.className,oe?.backdrop),ownerState:ne});return!P&&!A&&(!J||X)?null:h.jsx(vI,{ref:K,container:c,disablePortal:S,children:h.jsxs(ie,{...ce,children:[!O&&o?h.jsx(me,{...ye}):null,h.jsx(I7,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:te,open:A,children:C.cloneElement(f,se)})]})})});function H7(e){return rn("MuiDialog",e)}const BS=sn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),MI=C.createContext({}),W7=Je(xI,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),q7=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${tt(n)}`],paper:["paper",`paperScroll${tt(n)}`,`paperWidth${tt(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return on(s,H7,t)},Y7=Je(TI,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),G7=Je("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),K7=Je(Ua,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${tt(n.scroll)}`],t[`paperWidth${tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Xt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${BS.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${BS.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${BS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Xi=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiDialog"}),o=Su(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:c,children:m,className:y,disableEscapeKeyDown:v=!1,fullScreen:b=!1,fullWidth:x=!1,maxWidth:w="sm",onClick:S,onClose:k,open:T,PaperComponent:O=Ua,PaperProps:P={},scroll:$="paper",slots:I={},slotProps:F={},TransitionComponent:A=nC,transitionDuration:H=a,TransitionProps:L,...M}=r,_={...r,disableEscapeKeyDown:v,fullScreen:b,fullWidth:x,maxWidth:w,scroll:$},B=q7(_),W=C.useRef(),j=fe=>{W.current=fe.target===fe.currentTarget},Q=fe=>{S&&S(fe),W.current&&(W.current=null,k&&k(fe,"backdropClick"))},K=xu(l),te=C.useMemo(()=>({titleId:K}),[K]),X={transition:A,...I},J={transition:L,paper:P,backdrop:c,...F},ne={slots:X,slotProps:J},[oe,se]=An("root",{elementType:Y7,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:_,className:Dt(B.root,y),ref:n}),[re,ie]=An("backdrop",{elementType:W7,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:_}),[ce,me]=An("paper",{elementType:K7,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:_,className:Dt(B.paper,P.className)}),[ye,we]=An("container",{elementType:G7,externalForwardedProps:ne,ownerState:_,className:B.container}),[Ce,$e]=An("transition",{elementType:nC,externalForwardedProps:ne,ownerState:_,additionalProps:{appear:!0,in:T,timeout:H,role:"presentation"}});return h.jsx(oe,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:H,as:f,...ie}},disableEscapeKeyDown:v,onClose:k,open:T,onClick:Q,...se,...M,children:h.jsx(Ce,{...$e,children:h.jsx(ye,{onMouseDown:j,...we,children:h.jsx(ce,{as:O,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":K,"aria-modal":u,...me,children:h.jsx(MI.Provider,{value:te,children:m})})})})})});function Q7(e){return rn("MuiDialogActions",e)}sn("MuiDialogActions",["root","spacing"]);const X7=e=>{const{classes:t,disableSpacing:n}=e;return on({root:["root",!n&&"spacing"]},Q7,t)},Z7=Je("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),gy=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},u=X7(l);return h.jsx(Z7,{className:Dt(u.root,o),ownerState:l,ref:n,...s})});function J7(e){return rn("MuiDialogContent",e)}sn("MuiDialogContent",["root","dividers"]);function eq(e){return rn("MuiDialogTitle",e)}const tq=sn("MuiDialogTitle",["root"]),nq=e=>{const{classes:t,dividers:n}=e;return on({root:["root",n&&"dividers"]},J7,t)},rq=Je("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${tq.root} + &`]:{paddingTop:0}}}]}))),Zi=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},u=nq(l);return h.jsx(rq,{className:Dt(u.root,o),ownerState:l,ref:n,...s})});function oq(e){return rn("MuiDialogContentText",e)}sn("MuiDialogContentText",["root"]);const aq=e=>{const{classes:t}=e,r=on({root:["root"]},oq,t);return{...t,...r}},iq=Je(St,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),aT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...s}=r,l=aq(s);return h.jsx(iq,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Dt(l.root,a),...r,classes:l})}),sq=e=>{const{classes:t}=e;return on({root:["root"]},eq,t)},lq=Je(St,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Ji=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,u=sq(l),{titleId:f=a}=C.useContext(MI);return h.jsx(lq,{component:"h2",className:Dt(u.root,o),ownerState:l,ref:n,variant:"h6",id:a??f,...s})});function cq(e){return rn("MuiDivider",e)}const gP=sn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uq=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:u}=e;return on({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},cq,r)},dq=Je("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Xt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),fq=Je("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Xt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),gu=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:u=a||l==="vertical"?"div":"hr",flexItem:f=!1,light:c=!1,role:m=u!=="hr"?"separator":void 0,textAlign:y="center",variant:v="fullWidth",...b}=r,x={...r,absolute:o,component:u,flexItem:f,light:c,orientation:l,role:m,textAlign:y,variant:v},w=uq(x);return h.jsx(dq,{as:u,className:Dt(w.root,s),role:m,ref:n,ownerState:x,"aria-orientation":m==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...b,children:a?h.jsx(fq,{className:w.wrapper,ownerState:x,children:a}):null})});gu&&(gu.muiSkipListHighlight=!0);const pq=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${tt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=on(u,yW,t);return{...t,...f}},hq=Je(Q0,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...G0(e,t),!n.disableUnderline&&t.underline]}})(Xt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${si.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${si.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${si.disabled}, .${si.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),mq=Je(X0,{name:"MuiFilledInput",slot:"Input",overridesResolver:K0})(Xt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),iT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:u,inputComponent:f="input",multiline:c=!1,slotProps:m,slots:y={},type:v="text",...b}=r,x={...r,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:c,type:v},w=pq(r),S={root:{ownerState:x},input:{ownerState:x}},k=m??s?Ho(S,m??s):S,T=y.root??a.Root??hq,O=y.input??a.Input??mq;return h.jsx(oT,{slots:{root:T,input:O},slotProps:k,fullWidth:l,inputComponent:f,multiline:c,ref:n,type:v,...b,classes:w})});iT.muiName="Input";function gq(e){return rn("MuiFormControl",e)}sn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const yq=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${tt(n)}`,r&&"fullWidth"]};return on(o,gq,t)},vq=Je("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${tt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),aC=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:u=!1,error:f=!1,focused:c,fullWidth:m=!1,hiddenLabel:y=!1,margin:v="none",required:b=!1,size:x="medium",variant:w="outlined",...S}=r,k={...r,color:s,component:l,disabled:u,error:f,fullWidth:m,hiddenLabel:y,margin:v,required:b,size:x,variant:w},T=yq(k),[O,P]=C.useState(()=>{let W=!1;return o&&C.Children.forEach(o,j=>{if(!kb(j,["Input","Select"]))return;const Q=kb(j,["Select"])?j.props.input:j;Q&&fW(Q.props)&&(W=!0)}),W}),[$,I]=C.useState(()=>{let W=!1;return o&&C.Children.forEach(o,j=>{kb(j,["Input","Select"])&&(Xb(j.props,!0)||Xb(j.props.inputProps,!0))&&(W=!0)}),W}),[F,A]=C.useState(!1);u&&F&&A(!1);const H=c!==void 0&&!u?c:F;let L;C.useRef(!1);const M=C.useCallback(()=>{I(!0)},[]),_=C.useCallback(()=>{I(!1)},[]),B=C.useMemo(()=>({adornedStart:O,setAdornedStart:P,color:s,disabled:u,error:f,filled:$,focused:H,fullWidth:m,hiddenLabel:y,size:x,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:_,onFilled:M,registerEffect:L,required:b,variant:w}),[O,s,u,f,$,H,m,y,L,_,M,b,x,w]);return h.jsx(Y0.Provider,{value:B,children:h.jsx(vq,{as:l,ownerState:k,className:Dt(T.root,a),ref:n,...S,children:o})})});function bq(e){return rn("MuiFormControlLabel",e)}const Zm=sn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),xq=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${tt(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return on(s,bq,t)},Sq=Je("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zm.label}`]:t.label},t.root,t[`labelPlacement${tt(n.labelPlacement)}`]]}})(Xt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Zm.disabled}`]:{cursor:"default"},[`& .${Zm.label}`]:{[`&.${Zm.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),wq=Je("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Xt(({theme:e})=>({[`&.${Zm.error}`]:{color:(e.vars||e).palette.error.main}}))),yp=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:u,disableTypography:f,inputRef:c,label:m,labelPlacement:y="end",name:v,onChange:b,required:x,slots:w={},slotProps:S={},value:k,...T}=r,O=kl(),P=u??l.props.disabled??O?.disabled,$=x??l.props.required,I={disabled:P,required:$};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof l.props[W]>"u"&&typeof r[W]<"u"&&(I[W]=r[W])});const F=Cu({props:r,muiFormControl:O,states:["error"]}),A={...r,disabled:P,labelPlacement:y,required:$,error:F.error},H=xq(A),L={slots:w,slotProps:{...s,...S}},[M,_]=An("typography",{elementType:St,externalForwardedProps:L,ownerState:A});let B=m;return B!=null&&B.type!==St&&!f&&(B=h.jsx(M,{component:"span",..._,className:Dt(H.label,_?.className),children:B})),h.jsxs(Sq,{className:Dt(H.root,a),ownerState:A,ref:n,...T,children:[C.cloneElement(l,I),$?h.jsxs("div",{children:[B,h.jsxs(wq,{ownerState:A,"aria-hidden":!0,className:H.asterisk,children:[" ","*"]})]}):B]})});function Cq(e){return rn("MuiFormGroup",e)}sn("MuiFormGroup",["root","row","error"]);const kq=e=>{const{classes:t,row:n,error:r}=e;return on({root:["root",n&&"row",r&&"error"]},Cq,t)},Tq=Je("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),EI=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=r,l=kl(),u=Cu({props:r,muiFormControl:l,states:["error"]}),f={...r,row:a,error:u.error},c=kq(f);return h.jsx(Tq,{className:Dt(c.root,o),ownerState:f,ref:n,...s})});function Mq(e){return rn("MuiFormHelperText",e)}const yP=sn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var vP;const Eq=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:u}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${tt(r)}`,n&&"contained",l&&"focused",s&&"filled",u&&"required"]};return on(f,Mq,t)},Rq=Je("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${tt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yP.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yP.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),iC=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:u,filled:f,focused:c,margin:m,required:y,variant:v,...b}=r,x=kl(),w=Cu({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:s,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete S.ownerState;const k=Eq(S);return h.jsx(Rq,{as:s,className:Dt(k.root,a),ref:n,...b,ownerState:S,children:o===" "?vP||(vP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function Oq(e){return rn("MuiFormLabel",e)}const fg=sn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Pq=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,u={root:["root",`color${tt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return on(u,Oq,t)},$q=Je("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&.${fg.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${fg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fg.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Dq=Je("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xt(({theme:e})=>({[`&.${fg.error}`]:{color:(e.vars||e).palette.error.main}}))),Aq=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:u,error:f,filled:c,focused:m,required:y,...v}=r,b=kl(),x=Cu({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),w={...r,color:x.color||"primary",component:l,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},S=Pq(w);return h.jsxs($q,{as:l,ownerState:w,className:Dt(S.root,a),ref:n,...v,children:[o,x.required&&h.jsxs(Dq,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})}),Vi=FV({createStyledComponent:Je("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>ln({props:e,name:"MuiGrid"}),useTheme:Su});function sC(e){return`scale(${e}, ${e**2})`}const jq={entering:{opacity:1,transform:sC(1)},entered:{opacity:1,transform:"none"}},_S=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ig=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:f,onEntering:c,onExit:m,onExited:y,onExiting:v,style:b,timeout:x="auto",TransitionComponent:w=Cl,...S}=t,k=yd(),T=C.useRef(),O=Su(),P=C.useRef(null),$=go(P,Bd(a),n),I=W=>j=>{if(W){const Q=P.current;j===void 0?W(Q):W(Q,j)}},F=I(c),A=I((W,j)=>{oI(W);const{duration:Q,delay:K,easing:te}=Yb({style:b,timeout:x,easing:s},{mode:"enter"});let X;x==="auto"?(X=O.transitions.getAutoHeightDuration(W.clientHeight),T.current=X):X=Q,W.style.transition=[O.transitions.create("opacity",{duration:X,delay:K}),O.transitions.create("transform",{duration:_S?X:X*.666,delay:K,easing:te})].join(","),u&&u(W,j)}),H=I(f),L=I(v),M=I(W=>{const{duration:j,delay:Q,easing:K}=Yb({style:b,timeout:x,easing:s},{mode:"exit"});let te;x==="auto"?(te=O.transitions.getAutoHeightDuration(W.clientHeight),T.current=te):te=j,W.style.transition=[O.transitions.create("opacity",{duration:te,delay:Q}),O.transitions.create("transform",{duration:_S?te:te*.666,delay:_S?Q:Q||te*.333,easing:K})].join(","),W.style.opacity=0,W.style.transform=sC(.75),m&&m(W)}),_=I(y),B=W=>{x==="auto"&&k.start(T.current||0,W),r&&r(P.current,W)};return h.jsx(w,{appear:o,in:l,nodeRef:P,onEnter:A,onEntered:H,onEntering:F,onExit:M,onExited:_,onExiting:L,addEndListener:B,timeout:x==="auto"?null:x,...S,children:(W,{ownerState:j,...Q})=>C.cloneElement(a,{style:{opacity:0,transform:sC(.75),visibility:W==="exited"&&!l?"hidden":void 0,...jq[W],...b,...a.props.style},ref:$,...Q})})});Ig&&(Ig.muiSupportAuto=!0);const Nq=e=>{const{classes:t,disableUnderline:n}=e,o=on({root:["root",!n&&"underline"],input:["input"]},mW,t);return{...t,...o}},Iq=Je(Q0,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...G0(e,t),!n.disableUnderline&&t.underline]}})(Xt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jc.disabled}, .${Jc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Jc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Lq=Je(X0,{name:"MuiInput",slot:"Input",overridesResolver:K0})({}),sT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:u="input",multiline:f=!1,slotProps:c,slots:m={},type:y="text",...v}=r,b=Nq(r),w={root:{ownerState:{disableUnderline:o}}},S=c??s?Ho(c??s,w):w,k=m.root??a.Root??Iq,T=m.input??a.Input??Lq;return h.jsx(oT,{slots:{root:k,input:T},slotProps:S,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:y,...v,classes:b})});sT.muiName="Input";function zq(e){return rn("MuiInputAdornment",e)}const bP=sn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var xP;const Fq=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Bq=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${tt(o)}`,s,r&&"hiddenLabel",a&&`size${tt(a)}`]};return on(l,zq,t)},_q=Je("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Fq})(Xt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${bP.positionStart}&:not(.${bP.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Uq=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:u=!1,position:f,variant:c,...m}=r,y=kl()||{};let v=c;c&&y.variant,y&&!v&&(v=y.variant);const b={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:f,variant:v},x=Bq(b);return h.jsx(Y0.Provider,{value:null,children:h.jsx(_q,{as:s,ownerState:b,className:Dt(x.root,a),ref:n,...m,children:typeof o=="string"&&!u?h.jsx(St,{color:"textSecondary",children:o}):h.jsxs(C.Fragment,{children:[f==="start"?xP||(xP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function Vq(e){return rn("MuiInputLabel",e)}sn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Hq=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${tt(r)}`,s],asterisk:[l&&"asterisk"]},f=on(u,Vq,t);return{...t,...f}},Wq=Je(Aq,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fg.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Xt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),qq=C.forwardRef(function(t,n){const r=ln({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:u,...f}=r,c=kl();let m=s;typeof m>"u"&&c&&(m=c.filled||c.focused||c.adornedStart);const y=Cu({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),v={...r,disableAnimation:o,formControl:c,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=Hq(v);return h.jsx(Wq,{"data-shrink":m,ref:n,className:Dt(b.root,u),...f,ownerState:v,classes:b})});function Yq(e){return rn("MuiLinearProgress",e)}sn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const lC=4,cC=vi`
214
- 0% {
215
- left: -35%;
216
- right: 100%;
217
- }
218
-
219
- 60% {
220
- left: 100%;
221
- right: -90%;
222
- }
223
-
224
- 100% {
225
- left: 100%;
226
- right: -90%;
227
- }
228
- `,Gq=typeof cC!="string"?bu`
229
- animation: ${cC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
230
- `:null,uC=vi`
231
- 0% {
232
- left: -200%;
233
- right: 100%;
234
- }
235
-
236
- 60% {
237
- left: 107%;
238
- right: -8%;
239
- }
240
-
241
- 100% {
242
- left: 107%;
243
- right: -8%;
244
- }
245
- `,Kq=typeof uC!="string"?bu`
246
- animation: ${uC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
247
- `:null,dC=vi`
248
- 0% {
249
- opacity: 1;
250
- background-position: 0 -23px;
251
- }
252
-
253
- 60% {
254
- opacity: 0;
255
- background-position: 0 -23px;
256
- }
257
-
258
- 100% {
259
- opacity: 1;
260
- background-position: -200px -23px;
261
- }
262
- `,Qq=typeof dC!="string"?bu`
263
- animation: ${dC} 3s infinite linear;
264
- `:null,Xq=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${tt(r)}`,n],dashed:["dashed",`dashedColor${tt(r)}`],bar1:["bar","bar1",`barColor${tt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${tt(r)}`,n==="buffer"&&`color${tt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return on(o,Yq,t)},lT=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Zq=Je("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tt(n.color)}`],t[n.variant]]}})(Xt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{backgroundColor:lT(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Jq=Je("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${tt(n.color)}`]]}})(Xt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(jr()).map(([t])=>{const n=lT(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Qq||{animation:`${dC} 3s infinite linear`}),eY=Je("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${tt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Xt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${lC}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${lC}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Gq||{animation:`${cC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),tY=Je("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${tt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Xt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:lT(e,t),transition:`transform .${lC}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Kq||{animation:`${uC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),nY=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:u="indeterminate",...f}=r,c={...r,color:a,variant:u},m=Xq(c),y=fy(),v={},b={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let x=s-100;y&&(x=-x),b.bar1.transform=`translateX(${x}%)`}if(u==="buffer"&&l!==void 0){let x=(l||0)-100;y&&(x=-x),b.bar2.transform=`translateX(${x}%)`}return h.jsxs(Zq,{className:Dt(m.root,o),ownerState:c,role:"progressbar",...v,ref:n,...f,children:[u==="buffer"?h.jsx(Jq,{className:m.dashed,ownerState:c}):null,h.jsx(eY,{className:m.bar1,ownerState:c,style:b.bar1}),u==="determinate"?null:h.jsx(tY,{className:m.bar2,ownerState:c,style:b.bar2})]})});function rY(e){return rn("MuiLink",e)}const oY=sn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),aY=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const a=al(e,`palette.${n}.main`)||al(e,`palette.${n}`)||t.color;return e.alpha(a,.4)}const r=al(e,`palette.${n}.main`,!1)||al(e,`palette.${n}`,!1)||t.color,o=al(e,`palette.${n}.mainChannel`)||al(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Oo(r,.4)},SP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},iY=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${tt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return on(a,rY,t)},sY=Je(St,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${tt(n.underline)}`],n.component==="button"&&t.button]}})(Xt(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${oY.focusVisible}`]:{outline:"auto"}}}]}))),cT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiLink"}),o=Su(),{className:a,color:s="primary",component:l="a",onBlur:u,onFocus:f,TypographyClasses:c,underline:m="always",variant:y="inherit",sx:v,...b}=r,[x,w]=C.useState(!1),S=P=>{hu(P.target)||w(!1),u&&u(P)},k=P=>{hu(P.target)&&w(!0),f&&f(P)},T={...r,color:s,component:l,focusVisible:x,underline:m,variant:y},O=iY(T);return h.jsx(sY,{color:s,className:Dt(O.root,a),classes:c,component:l,onBlur:S,onFocus:k,ref:n,ownerState:T,variant:y,...b,sx:[...SP[s]===void 0?[{color:s}]:[],...Array.isArray(v)?v:[v]],style:{...b.style,...m==="always"&&s!=="inherit"&&!SP[s]&&{"--Link-underlineColor":aY({theme:o,ownerState:T})}}})}),Pd=C.createContext({});function lY(e){return rn("MuiList",e)}sn("MuiList",["root","padding","dense","subheader"]);const cY=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return on({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},lY,t)},uY=Je("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),uT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:f,...c}=r,m=C.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:u},v=cY(y);return h.jsx(Pd.Provider,{value:m,children:h.jsxs(uY,{as:s,className:Dt(v.root,a),ref:n,ownerState:y,...c,children:[f,o]})})});function dY(e){return rn("MuiListItemButton",e)}const mm=sn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),fY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pY=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,f=on({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},dY,n);return{...n,...f}},hY=Je(mu,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:fY})(Xt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${mm.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${mm.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${mm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),RI=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:u=!1,disableGutters:f=!1,divider:c=!1,focusVisibleClassName:m,selected:y=!1,className:v,...b}=r,x=C.useContext(Pd),w=C.useMemo(()=>({dense:u||x.dense||!1,alignItems:o,disableGutters:f}),[o,x.dense,u,f]),S=C.useRef(null);_a(()=>{a&&S.current&&S.current.focus()},[a]);const k={...r,alignItems:o,dense:w.dense,disableGutters:f,divider:c,selected:y},T=pY(k),O=go(S,n);return h.jsx(Pd.Provider,{value:w,children:h.jsx(hY,{ref:O,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:Dt(T.focusVisible,m),ownerState:k,className:Dt(T.root,v),...b,classes:T,children:l})})});function mY(e){return rn("MuiListItemIcon",e)}const wP=sn("MuiListItemIcon",["root","alignItemsFlexStart"]),gY=e=>{const{alignItems:t,classes:n}=e;return on({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},mY,n)},yY=Je("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Xt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),yy=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=C.useContext(Pd),l={...r,alignItems:s.alignItems},u=gY(l);return h.jsx(yY,{className:Dt(u.root,o),ownerState:l,ref:n,...a})});function vY(e){return rn("MuiListItemText",e)}const up=sn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bY=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return on({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},vY,t)},xY=Je("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${up.primary}`]:t.primary},{[`& .${up.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${VO.root}:where(& .${up.primary})`]:{display:"block"},[`.${VO.root}:where(& .${up.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),_d=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:u,primaryTypographyProps:f,secondary:c,secondaryTypographyProps:m,slots:y={},slotProps:v={},...b}=r,{dense:x}=C.useContext(Pd);let w=u??o,S=c;const k={...r,disableTypography:s,inset:l,primary:!!w,secondary:!!S,dense:x},T=bY(k),O={slots:y,slotProps:{primary:f,secondary:m,...v}},[P,$]=An("root",{className:Dt(T.root,a),elementType:xY,externalForwardedProps:{...O,...b},ownerState:k,ref:n}),[I,F]=An("primary",{className:T.primary,elementType:St,externalForwardedProps:O,ownerState:k}),[A,H]=An("secondary",{className:T.secondary,elementType:St,externalForwardedProps:O,ownerState:k});return w!=null&&w.type!==St&&!s&&(w=h.jsx(I,{variant:x?"body2":"body1",component:F?.variant?void 0:"span",...F,children:w})),S!=null&&S.type!==St&&!s&&(S=h.jsx(A,{variant:"body2",color:"textSecondary",...H,children:S})),h.jsxs(P,{...$,children:[w,S]})});function US(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function CP(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function OI(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function gm(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!OI(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const SY=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:c,variant:m="selectedMenu",...y}=t,v=C.useRef(null),b=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_a(()=>{o&&v.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:O})=>{const P=!v.current.style.width;if(T.clientHeight<v.current.clientHeight&&P){const $=`${kI(ic(T))}px`;v.current.style[O==="rtl"?"paddingLeft":"paddingRight"]=$,v.current.style.width=`calc(100% + ${$})`}return v.current}}),[]);const x=T=>{const O=v.current,P=T.key;if(T.ctrlKey||T.metaKey||T.altKey){c&&c(T);return}const I=Po(O).activeElement;if(P==="ArrowDown")T.preventDefault(),gm(O,I,f,u,US);else if(P==="ArrowUp")T.preventDefault(),gm(O,I,f,u,CP);else if(P==="Home")T.preventDefault(),gm(O,null,f,u,US);else if(P==="End")T.preventDefault(),gm(O,null,f,u,CP);else if(P.length===1){const F=b.current,A=P.toLowerCase(),H=performance.now();F.keys.length>0&&(H-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&A!==F.keys[0]&&(F.repeating=!1)),F.lastTime=H,F.keys.push(A);const L=I&&!F.repeating&&OI(I,F);F.previousKeyMatched&&(L||gm(O,I,!1,u,US,F))?T.preventDefault():F.previousKeyMatched=!1}c&&c(T)},w=go(v,n);let S=-1;C.Children.forEach(s,(T,O)=>{if(!C.isValidElement(T)){S===O&&(S+=1,S>=s.length&&(S=-1));return}T.props.disabled||(m==="selectedMenu"&&T.props.selected||S===-1)&&(S=O),S===O&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(S+=1,S>=s.length&&(S=-1))});const k=C.Children.map(s,(T,O)=>{if(O===S){const P={};return a&&(P.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&(P.tabIndex=0),C.cloneElement(T,P)}return T});return h.jsx(uT,{role:"menu",ref:w,className:l,onKeyDown:x,tabIndex:o?0:-1,...y,children:k})});function wY(e){return rn("MuiPopover",e)}sn("MuiPopover",["root","paper"]);function kP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function TP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function MP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Vv(e){return typeof e=="function"?e():e}const CY=e=>{const{classes:t}=e;return on({root:["root"],paper:["paper"]},wY,t)},kY=Je(TI,{name:"MuiPopover",slot:"Root"})({}),PI=Je(Ua,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),TY=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:f,className:c,container:m,elevation:y=8,marginThreshold:v=16,open:b,PaperProps:x={},slots:w={},slotProps:S={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:O="auto",TransitionProps:P={},disableScrollLock:$=!1,...I}=r,F=C.useRef(),A={...r,anchorOrigin:s,anchorReference:u,elevation:y,marginThreshold:v,transformOrigin:k,TransitionComponent:T,transitionDuration:O,TransitionProps:P},H=CY(A),L=C.useCallback(()=>{if(u==="anchorPosition")return l;const we=Vv(a),$e=(we&&we.nodeType===1?we:Po(F.current).body).getBoundingClientRect();return{top:$e.top+kP($e,s.vertical),left:$e.left+TP($e,s.horizontal)}},[a,s.horizontal,s.vertical,l,u]),M=C.useCallback(we=>({vertical:kP(we,k.vertical),horizontal:TP(we,k.horizontal)}),[k.horizontal,k.vertical]),_=C.useCallback(we=>{const Ce={width:we.offsetWidth,height:we.offsetHeight},$e=M(Ce);if(u==="none")return{top:null,left:null,transformOrigin:MP($e)};const fe=L();let Te=fe.top-$e.vertical,nt=fe.left-$e.horizontal;const ze=Te+Ce.height,Ae=nt+Ce.width,ue=ic(Vv(a)),bt=ue.innerHeight-v,Be=ue.innerWidth-v;if(v!==null&&Te<v){const it=Te-v;Te-=it,$e.vertical+=it}else if(v!==null&&ze>bt){const it=ze-bt;Te-=it,$e.vertical+=it}if(v!==null&&nt<v){const it=nt-v;nt-=it,$e.horizontal+=it}else if(Ae>Be){const it=Ae-Be;nt-=it,$e.horizontal+=it}return{top:`${Math.round(Te)}px`,left:`${Math.round(nt)}px`,transformOrigin:MP($e)}},[a,u,L,M,v]),[B,W]=C.useState(b),j=C.useCallback(()=>{const we=F.current;if(!we)return;const Ce=_(we);Ce.top!==null&&we.style.setProperty("top",Ce.top),Ce.left!==null&&(we.style.left=Ce.left),we.style.transformOrigin=Ce.transformOrigin,W(!0)},[_]);C.useEffect(()=>($&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[a,$,j]);const Q=()=>{j()},K=()=>{W(!1)};C.useEffect(()=>{b&&j()}),C.useImperativeHandle(o,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),C.useEffect(()=>{if(!b)return;const we=JN(()=>{j()}),Ce=ic(Vv(a));return Ce.addEventListener("resize",we),()=>{we.clear(),Ce.removeEventListener("resize",we)}},[a,b,j]);let te=O;const X={slots:{transition:T,...w},slotProps:{transition:P,paper:x,...S}},[J,ne]=An("transition",{elementType:Ig,externalForwardedProps:X,ownerState:A,getSlotProps:we=>({...we,onEntering:(Ce,$e)=>{we.onEntering?.(Ce,$e),Q()},onExited:Ce=>{we.onExited?.(Ce),K()}}),additionalProps:{appear:!0,in:b}});O==="auto"&&!J.muiSupportAuto&&(te=void 0);const oe=m||(a?Po(Vv(a)).body:void 0),[se,{slots:re,slotProps:ie,...ce}]=An("root",{ref:n,elementType:kY,externalForwardedProps:{...X,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:eI(typeof S.backdrop=="function"?S.backdrop(A):S.backdrop,{invisible:!0})},container:oe,open:b},ownerState:A,className:Dt(H.root,c)}),[me,ye]=An("paper",{ref:F,className:H.paper,elementType:PI,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:B?void 0:{opacity:0}},ownerState:A});return h.jsx(se,{...ce,...!su(se)&&{slots:re,slotProps:ie,disableScrollLock:$},children:h.jsx(J,{...ne,timeout:te,children:h.jsx(me,{...ye,children:f})})})});function MY(e){return rn("MuiMenu",e)}sn("MuiMenu",["root","paper","list"]);const EY={vertical:"top",horizontal:"right"},RY={vertical:"top",horizontal:"left"},OY=e=>{const{classes:t}=e;return on({root:["root"],paper:["paper"],list:["list"]},MY,t)},PY=Je(TY,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),$Y=Je(PI,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),DY=Je(SY,{name:"MuiMenu",slot:"List"})({outline:0}),Zp=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:f,open:c,PaperProps:m={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:b,...x}={},variant:w="selectedMenu",slots:S={},slotProps:k={},...T}=r,O=fy(),P={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:m,transitionDuration:v,TransitionProps:x,variant:w},$=OY(P),I=o&&!l&&c,F=C.useRef(null),A=(te,X)=>{F.current&&F.current.adjustStyleForScrollbar(te,{direction:O?"rtl":"ltr"}),b&&b(te,X)},H=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let L=-1;C.Children.map(a,(te,X)=>{C.isValidElement(te)&&(te.props.disabled||(w==="selectedMenu"&&te.props.selected||L===-1)&&(L=X))});const M={slots:S,slotProps:{list:u,transition:x,paper:m,...k}},_=tl({elementType:S.root,externalSlotProps:k.root,ownerState:P,className:[$.root,s]}),[B,W]=An("paper",{className:$.paper,elementType:$Y,externalForwardedProps:M,shouldForwardComponentProp:!0,ownerState:P}),[j,Q]=An("list",{className:Dt($.list,u.className),elementType:DY,shouldForwardComponentProp:!0,externalForwardedProps:M,getSlotProps:te=>({...te,onKeyDown:X=>{H(X),te.onKeyDown?.(X)}}),ownerState:P}),K=typeof M.slotProps.transition=="function"?M.slotProps.transition(P):M.slotProps.transition;return h.jsx(PY,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?EY:RY,slots:{root:S.root,paper:B,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:_,paper:W,backdrop:typeof k.backdrop=="function"?k.backdrop(P):k.backdrop,transition:{...K,onEntering:(...te)=>{A(...te),K?.onEntering?.(...te)}}},open:c,ref:n,transitionDuration:v,ownerState:P,...T,classes:y,children:h.jsx(j,{actions:F,autoFocus:o&&(L===-1||l),autoFocusItem:I,variant:w,...Q,children:a})})});function AY(e){return rn("MuiMenuItem",e)}const ym=sn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},NY=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,u=on({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},AY,s);return{...s,...u}},IY=Je(mu,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:jY})(Xt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ym.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ym.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ym.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ym.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ym.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${gP.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${gP.inset}`]:{marginLeft:52},[`& .${up.root}`]:{marginTop:0,marginBottom:0},[`& .${up.inset}`]:{paddingLeft:36},[`& .${wP.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${wP.root} svg`]:{fontSize:"1.25rem"}}}]}))),rc=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:c="menuitem",tabIndex:m,className:y,...v}=r,b=C.useContext(Pd),x=C.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),w=C.useRef(null);_a(()=>{o&&w.current&&w.current.focus()},[o]);const S={...r,dense:x.dense,divider:l,disableGutters:u},k=NY(r),T=go(w,n);let O;return r.disabled||(O=m!==void 0?m:-1),h.jsx(Pd.Provider,{value:x,children:h.jsx(IY,{ref:T,role:c,tabIndex:O,component:a,focusVisibleClassName:Dt(k.focusVisible,f),className:Dt(k.root,y),...v,ownerState:S,classes:k})})});function LY(e){return rn("MuiNativeSelect",e)}const dT=sn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${tt(n)}`,a&&"iconOpen",r&&"disabled"]};return on(l,LY,t)},$I=Je("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${dT.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),FY=Je($I,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ua,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${dT.multiple}`]:t.multiple}]}})({}),DI=Je("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${dT.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),BY=Je(DI,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${tt(n.variant)}`],n.open&&t.iconOpen]}})({}),_Y=C.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:u="standard",...f}=t,c={...t,disabled:o,variant:u,error:a},m=zY(c);return h.jsxs(C.Fragment,{children:[h.jsx(FY,{ownerState:c,className:Dt(m.select,r),disabled:o,ref:l||n,...f}),t.multiple?null:h.jsx(BY,{as:s,ownerState:c,className:m.icon})]})});var EP;const UY=Je("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ua})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),VY=Je("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ua})(Xt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function HY(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return h.jsx(UY,{"aria-hidden":!0,className:r,ownerState:u,...s,children:h.jsx(VY,{ownerState:u,children:l?h.jsx("span",{children:o}):EP||(EP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const WY=e=>{const{classes:t}=e,r=on({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gW,t);return{...t,...r}},qY=Je(Q0,{shouldForwardProp:e=>ua(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:G0})(Xt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ai.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ai.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ai.focused} .${Ai.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{[`&.${Ai.focused} .${Ai.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ai.error} .${Ai.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ai.disabled} .${Ai.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),YY=Je(HY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),GY=Je(X0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:K0})(Xt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),fT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:f,slots:c={},slotProps:m={},type:y="text",...v}=r,b=WY(r),x=kl(),w=Cu({props:r,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:a,hiddenLabel:w.hiddenLabel,multiline:u,size:w.size,type:y},k=c.root??o.Root??qY,T=c.input??o.Input??GY,[O,P]=An("notchedOutline",{elementType:YY,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:c,slotProps:m},additionalProps:{label:l!=null&&l!==""&&w.required?h.jsxs(C.Fragment,{children:[l," ","*"]}):l}});return h.jsx(oT,{slots:{root:k,input:T},slotProps:m,renderSuffix:$=>h.jsx(O,{...P,notched:typeof f<"u"?f:!!($.startAdornment||$.filled||$.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:y,...v,classes:{...b,notchedOutline:null}})});fT.muiName="Input";const KY={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function AI(e){return rn("MuiSelect",e)}const vm=sn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var RP;const QY=Je($I,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${vm.select}`]:t.select},{[`&.${vm.select}`]:t[n.variant]},{[`&.${vm.error}`]:t.error},{[`&.${vm.multiple}`]:t.multiple}]}})({[`&.${vm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XY=Je(DI,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${tt(n.variant)}`],n.open&&t.iconOpen]}})({}),ZY=Je("input",{shouldForwardProp:e=>V0(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function OP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function JY(e){return e==null||typeof e=="string"&&!e.trim()}const eG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return on(l,AI,t)},tG=C.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:f,defaultValue:c,disabled:m,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:x,labelId:w,MenuProps:S={},multiple:k,name:T,onBlur:O,onChange:P,onClose:$,onFocus:I,onOpen:F,open:A,readOnly:H,renderValue:L,required:M,SelectDisplayProps:_={},tabIndex:B,type:W,value:j,variant:Q="standard",...K}=t,[te,X]=iu({controlled:j,default:c,name:"Select"}),[J,ne]=iu({controlled:A,default:f,name:"Select"}),oe=C.useRef(null),se=C.useRef(null),[re,ie]=C.useState(null),{current:ce}=C.useRef(A!=null),[me,ye]=C.useState(),we=go(n,x),Ce=C.useCallback(ct=>{se.current=ct,ct&&ie(ct)},[]),$e=re?.parentNode;C.useImperativeHandle(we,()=>({focus:()=>{se.current.focus()},node:oe.current,value:te}),[te]),C.useEffect(()=>{f&&J&&re&&!ce&&(ye(s?null:$e.clientWidth),se.current.focus())},[re,s]),C.useEffect(()=>{a&&se.current.focus()},[a]),C.useEffect(()=>{if(!w)return;const ct=Po(se.current).getElementById(w);if(ct){const At=()=>{getSelection().isCollapsed&&se.current.focus()};return ct.addEventListener("click",At),()=>{ct.removeEventListener("click",At)}}},[w]);const fe=(ct,At)=>{ct?F&&F(At):$&&$(At),ce||(ye(s?null:$e.clientWidth),ne(ct))},Te=ct=>{ct.button===0&&(ct.preventDefault(),se.current.focus(),fe(!0,ct))},nt=ct=>{fe(!1,ct)},ze=C.Children.toArray(l),Ae=ct=>{const At=ze.find(Wt=>Wt.props.value===ct.target.value);At!==void 0&&(X(At.props.value),P&&P(ct,At))},ue=ct=>At=>{let Wt;if(At.currentTarget.hasAttribute("tabindex")){if(k){Wt=Array.isArray(te)?te.slice():[];const dn=te.indexOf(ct.props.value);dn===-1?Wt.push(ct.props.value):Wt.splice(dn,1)}else Wt=ct.props.value;if(ct.props.onClick&&ct.props.onClick(At),te!==Wt&&(X(Wt),P)){const dn=At.nativeEvent||At,bn=new dn.constructor(dn.type,dn);Object.defineProperty(bn,"target",{writable:!0,value:{value:Wt,name:T}}),P(bn,ct)}k||fe(!1,At)}},bt=ct=>{H||[" ","ArrowUp","ArrowDown","Enter"].includes(ct.key)&&(ct.preventDefault(),fe(!0,ct))},Be=re!==null&&J,it=ct=>{!Be&&O&&(Object.defineProperty(ct,"target",{writable:!0,value:{value:te,name:T}}),O(ct))};delete K["aria-invalid"];let pt,_t;const Ht=[];let at=!1;(Xb({value:te})||y)&&(L?pt=L(te):at=!0);const Xe=ze.map(ct=>{if(!C.isValidElement(ct))return null;let At;if(k){if(!Array.isArray(te))throw new Error(ac(2));At=te.some(Wt=>OP(Wt,ct.props.value)),At&&at&&Ht.push(ct.props.children)}else At=OP(te,ct.props.value),At&&at&&(_t=ct.props.children);return C.cloneElement(ct,{"aria-selected":At?"true":"false",onClick:ue(ct),onKeyUp:Wt=>{Wt.key===" "&&Wt.preventDefault(),ct.props.onKeyUp&&ct.props.onKeyUp(Wt)},role:"option",selected:At,value:void 0,"data-value":ct.props.value})});at&&(k?Ht.length===0?pt=null:pt=Ht.reduce((ct,At,Wt)=>(ct.push(At),Wt<Ht.length-1&&ct.push(", "),ct),[]):pt=_t);let ot=me;!s&&ce&&re&&(ot=$e.clientWidth);let Ne;typeof B<"u"?Ne=B:Ne=m?null:0;const he=_.id||(T?`mui-component-select-${T}`:void 0),qe={...t,variant:Q,value:te,open:Be,error:v},Me=eG(qe),Mt={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(qe):S.slotProps?.paper},Rt={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(qe):S.slotProps?.list},gt=xu();return h.jsxs(C.Fragment,{children:[h.jsx(QY,{as:"div",ref:Ce,tabIndex:Ne,role:"combobox","aria-controls":Be?gt:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":Be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[w,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":M?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:bt,onMouseDown:m||H?null:Te,onBlur:it,onFocus:I,..._,ownerState:qe,className:Dt(_.className,Me.select,u),id:he,children:JY(pt)?RP||(RP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pt}),h.jsx(ZY,{"aria-invalid":v,value:Array.isArray(te)?te.join(","):te,name:T,ref:oe,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:m,className:Me.nativeInput,autoFocus:a,required:M,...K,ownerState:qe}),h.jsx(XY,{as:b,className:Me.icon,ownerState:qe}),h.jsx(Zp,{id:`menu-${T||""}`,anchorEl:$e,open:Be,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:gt,...Rt},paper:{...Mt,style:{minWidth:ot,...Mt!=null?Mt.style:null}}},children:Xe})]})}),nG=e=>{const{classes:t}=e,r=on({root:["root"]},AI,t);return{...t,...r}},pT={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ua(e)&&e!=="variant"},rG=Je(sT,pT)(""),oG=Je(fT,pT)(""),aG=Je(iT,pT)(""),jI=C.forwardRef(function(t,n){const r=ln({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:c=bI,id:m,input:y,inputProps:v,label:b,labelId:x,MenuProps:w,multiple:S=!1,native:k=!1,onClose:T,onOpen:O,open:P,renderValue:$,SelectDisplayProps:I,variant:F="outlined",...A}=r,H=k?_Y:tG,L=kl(),M=Cu({props:r,muiFormControl:L,states:["variant","error"]}),_=M.variant||F,B={...r,variant:_,classes:s},W=nG(B),{root:j,...Q}=W,K=y||{standard:h.jsx(rG,{ownerState:B}),outlined:h.jsx(oG,{label:b,ownerState:B}),filled:h.jsx(aG,{ownerState:B})}[_],te=go(n,Bd(K));return h.jsx(C.Fragment,{children:C.cloneElement(K,{inputComponent:H,inputProps:{children:a,error:M.error,IconComponent:c,variant:_,type:void 0,multiple:S,...k?{id:m}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:x,MenuProps:w,onClose:T,onOpen:O,open:P,renderValue:$,SelectDisplayProps:{id:m,...I}},...v,classes:v?Ho(Q,v.classes):Q,...y?y.props.inputProps:{}},...(S&&k||f)&&_==="outlined"?{notched:!0}:{},ref:te,className:Dt(K.props.className,l,W.root),...!y&&{variant:_},...A})})});jI.muiName="Select";function iG(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const sG=2;function Hf(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function NI(e,t){return e-t}function PP(e,t){const{index:n}=e.reduce((r,o,a)=>{const s=Math.abs(t-o);return r===null||s<r.distance||s===r.distance?{distance:s,index:a}:r},null)??{};return n}function Hv(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Zb(e,t,n){return(e-t)*100/(n-t)}function lG(e,t,n){return(n-t)*e+t}function cG(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function uG(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(cG(t)))}function $P({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(NI)}function Wv({sliderRef:e,activeIndex:t,setActive:n}){const r=Po(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function qv(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?iG(e,t):!1}const dG={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fG=e=>e;let Yv;function DP(){return Yv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Yv=CSS.supports("touch-action","none"):Yv=!0),Yv}function pG(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:u=0,name:f,onChange:c,onChangeCommitted:m,orientation:y="horizontal",rootRef:v,scale:b=fG,step:x=1,shiftStep:w=10,tabIndex:S,value:k}=e,T=C.useRef(void 0),[O,P]=C.useState(-1),[$,I]=C.useState(-1),[F,A]=C.useState(!1),H=C.useRef(0),L=C.useRef(null),[M,_]=iu({controlled:k,default:n??u,name:"Slider"}),B=c&&((at,Xe,ot)=>{const Ne=at.nativeEvent||at,he=new Ne.constructor(Ne.type,Ne);Object.defineProperty(he,"target",{writable:!0,value:{value:Xe,name:f}}),L.current=Xe,c(he,Xe,ot)}),W=Array.isArray(M);let j=W?M.slice().sort(NI):[M];j=j.map(at=>at==null?u:ip(at,u,l));const Q=s===!0&&x!==null?[...Array(Math.floor((l-u)/x)+1)].map((at,Xe)=>({value:u+x*Xe})):s||[],K=Q.map(at=>at.value),[te,X]=C.useState(-1),J=C.useRef(null),ne=go(v,J),oe=at=>Xe=>{const ot=Number(Xe.currentTarget.getAttribute("data-index"));hu(Xe.target)&&X(ot),I(ot),at?.onFocus?.(Xe)},se=at=>Xe=>{hu(Xe.target)||X(-1),I(-1),at?.onBlur?.(Xe)},re=(at,Xe)=>{const ot=Number(at.currentTarget.getAttribute("data-index")),Ne=j[ot],he=K.indexOf(Ne);let qe=Xe;if(Q&&x==null){const Me=K[K.length-1];qe>=Me?qe=Me:qe<=K[0]?qe=K[0]:qe=qe<Ne?K[he-1]:K[he+1]}if(qe=ip(qe,u,l),W){o&&(qe=ip(qe,j[ot-1]||-1/0,j[ot+1]||1/0));const Me=qe;qe=$P({values:j,newValue:qe,index:ot});let Mt=ot;o||(Mt=qe.indexOf(Me)),Wv({sliderRef:J,activeIndex:Mt})}_(qe),X(ot),B&&!qv(qe,M)&&B(at,qe,ot),m&&m(at,L.current??qe)},ie=at=>Xe=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Xe.key)){Xe.preventDefault();const ot=Number(Xe.currentTarget.getAttribute("data-index")),Ne=j[ot];let he=null;if(x!=null){const qe=Xe.shiftKey?w:x;switch(Xe.key){case"ArrowUp":he=Hf(Ne,qe,1,u,l);break;case"ArrowRight":he=Hf(Ne,qe,a?-1:1,u,l);break;case"ArrowDown":he=Hf(Ne,qe,-1,u,l);break;case"ArrowLeft":he=Hf(Ne,qe,a?1:-1,u,l);break;case"PageUp":he=Hf(Ne,w,1,u,l);break;case"PageDown":he=Hf(Ne,w,-1,u,l);break;case"Home":he=u;break;case"End":he=l;break}}else if(Q){const qe=K[K.length-1],Me=K.indexOf(Ne),Mt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Rt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Mt.includes(Xe.key)?Me===0?he=K[0]:he=K[Me-1]:Rt.includes(Xe.key)&&(Me===K.length-1?he=qe:he=K[Me+1])}he!=null&&re(Xe,he)}at?.onKeyDown?.(Xe)};_a(()=>{r&&J.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&O!==-1&&P(-1),r&&te!==-1&&X(-1);const ce=at=>Xe=>{at.onChange?.(Xe),re(Xe,Xe.target.valueAsNumber)},me=C.useRef(void 0);let ye=y;a&&y==="horizontal"&&(ye+="-reverse");const we=({finger:at,move:Xe=!1})=>{const{current:ot}=J,{width:Ne,height:he,bottom:qe,left:Me}=ot.getBoundingClientRect();let Mt;ye.startsWith("vertical")?Mt=(qe-at.y)/he:Mt=(at.x-Me)/Ne,ye.includes("-reverse")&&(Mt=1-Mt);let Rt;if(Rt=lG(Mt,u,l),x)Rt=uG(Rt,x,u);else{const ct=PP(K,Rt);Rt=K[ct]}Rt=ip(Rt,u,l);let gt=0;if(W){Xe?gt=me.current:gt=PP(j,Rt),o&&(Rt=ip(Rt,j[gt-1]||-1/0,j[gt+1]||1/0));const ct=Rt;Rt=$P({values:j,newValue:Rt,index:gt}),o&&Xe||(gt=Rt.indexOf(ct),me.current=gt)}return{newValue:Rt,activeIndex:gt}},Ce=No(at=>{const Xe=Hv(at,T);if(!Xe)return;if(H.current+=1,at.type==="mousemove"&&at.buttons===0){$e(at);return}const{newValue:ot,activeIndex:Ne}=we({finger:Xe,move:!0});Wv({sliderRef:J,activeIndex:Ne,setActive:P}),_(ot),!F&&H.current>sG&&A(!0),B&&!qv(ot,M)&&B(at,ot,Ne)}),$e=No(at=>{const Xe=Hv(at,T);if(A(!1),!Xe)return;const{newValue:ot}=we({finger:Xe,move:!0});P(-1),at.type==="touchend"&&I(-1),m&&m(at,L.current??ot),T.current=void 0,Te()}),fe=No(at=>{if(r)return;DP()||at.preventDefault();const Xe=at.changedTouches[0];Xe!=null&&(T.current=Xe.identifier);const ot=Hv(at,T);if(ot!==!1){const{newValue:he,activeIndex:qe}=we({finger:ot});Wv({sliderRef:J,activeIndex:qe,setActive:P}),_(he),B&&!qv(he,M)&&B(at,he,qe)}H.current=0;const Ne=Po(J.current);Ne.addEventListener("touchmove",Ce,{passive:!0}),Ne.addEventListener("touchend",$e,{passive:!0})}),Te=C.useCallback(()=>{const at=Po(J.current);at.removeEventListener("mousemove",Ce),at.removeEventListener("mouseup",$e),at.removeEventListener("touchmove",Ce),at.removeEventListener("touchend",$e)},[$e,Ce]);C.useEffect(()=>{const{current:at}=J;return at.addEventListener("touchstart",fe,{passive:DP()}),()=>{at.removeEventListener("touchstart",fe),Te()}},[Te,fe]),C.useEffect(()=>{r&&Te()},[r,Te]);const nt=at=>Xe=>{if(at.onMouseDown?.(Xe),r||Xe.defaultPrevented||Xe.button!==0)return;Xe.preventDefault();const ot=Hv(Xe,T);if(ot!==!1){const{newValue:he,activeIndex:qe}=we({finger:ot});Wv({sliderRef:J,activeIndex:qe,setActive:P}),_(he),B&&!qv(he,M)&&B(Xe,he,qe)}H.current=0;const Ne=Po(J.current);Ne.addEventListener("mousemove",Ce,{passive:!0}),Ne.addEventListener("mouseup",$e)},ze=Zb(W?j[0]:u,u,l),Ae=Zb(j[j.length-1],u,l)-ze,ue=(at={})=>{const Xe=Cd(at),ot={onMouseDown:nt(Xe||{})},Ne={...Xe,...ot};return{...at,ref:ne,...Ne}},bt=at=>Xe=>{at.onMouseOver?.(Xe);const ot=Number(Xe.currentTarget.getAttribute("data-index"));I(ot)},Be=at=>Xe=>{at.onMouseLeave?.(Xe),I(-1)},it=(at={})=>{const Xe=Cd(at),ot={onMouseOver:bt(Xe||{}),onMouseLeave:Be(Xe||{})};return{...at,...Xe,...ot}},pt=at=>({pointerEvents:O!==-1&&O!==at?"none":void 0});let _t;return y==="vertical"&&(_t=a?"vertical-rl":"vertical-lr"),{active:O,axis:ye,axisProps:dG,dragging:F,focusedThumbIndex:te,getHiddenInputProps:(at={})=>{const Xe=Cd(at),ot={onChange:ce(Xe||{}),onFocus:oe(Xe||{}),onBlur:se(Xe||{}),onKeyDown:ie(Xe||{})},Ne={...Xe,...ot};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...at,...Ne,style:{...KY,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:_t}}},getRootProps:ue,getThumbProps:it,marks:Q,open:$,range:W,rootRef:ne,trackLeap:Ae,trackOffset:ze,values:j,getThumbStyle:pt}}const hG=e=>!e||!su(e);function mG(e){return rn("MuiSlider",e)}const Hi=sn("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),gG=e=>{const{open:t}=e;return{offset:Dt(t&&Hi.valueLabelOpen),circle:Hi.valueLabelCircle,label:Hi.valueLabelLabel}};function yG(e){const{children:t,className:n,value:r}=e,o=gG(e);return t?C.cloneElement(t,{className:t.props.className},h.jsxs(C.Fragment,{children:[t.props.children,h.jsx("span",{className:Dt(o.offset,n),"aria-hidden":!0,children:h.jsx("span",{className:o.circle,children:h.jsx("span",{className:o.label,children:r})})})]})):null}function AP(e){return e}const vG=Je("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tt(n.color)}`],n.size!=="medium"&&t[`size${tt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Xt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Hi.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Hi.dragging}`]:{[`& .${Hi.thumb}, & .${Hi.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),bG=Je("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),xG=Je("span",{name:"MuiSlider",slot:"Track"})(Xt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),SG=Je("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tt(n.color)}`],n.size!=="medium"&&t[`thumbSize${tt(n.size)}`]]}})(Xt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Hi.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Hi.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Hi.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),wG=Je(yG,{name:"MuiSlider",slot:"ValueLabel"})(Xt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Hi.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Hi.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),CG=Je("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>V0(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Xt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),kG=Je("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>V0(e)&&e!=="markLabelActive"})(Xt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),TG=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:s,color:l,size:u}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${tt(l)}`,u&&`size${tt(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${tt(u)}`,l&&`thumbColor${tt(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return on(f,mG,s)},MG=({children:e})=>e,EG=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiSlider"}),o=fy(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:u="span",components:f={},componentsProps:c={},color:m="primary",classes:y,className:v,disableSwap:b=!1,disabled:x=!1,getAriaLabel:w,getAriaValueText:S,marks:k=!1,max:T=100,min:O=0,name:P,onChange:$,onChangeCommitted:I,orientation:F="horizontal",shiftStep:A=10,size:H="medium",step:L=1,scale:M=AP,slotProps:_,slots:B,tabIndex:W,track:j="normal",value:Q,valueLabelDisplay:K="off",valueLabelFormat:te=AP,...X}=r,J={...r,isRtl:o,max:T,min:O,classes:y,disabled:x,disableSwap:b,orientation:F,marks:k,color:m,size:H,step:L,shiftStep:A,scale:M,track:j,valueLabelDisplay:K,valueLabelFormat:te},{axisProps:ne,getRootProps:oe,getHiddenInputProps:se,getThumbProps:re,open:ie,active:ce,axis:me,focusedThumbIndex:ye,range:we,dragging:Ce,marks:$e,values:fe,trackOffset:Te,trackLeap:nt,getThumbStyle:ze}=pG({...J,rootRef:n});J.marked=$e.length>0&&$e.some(Jt=>Jt.label),J.dragging=Ce,J.focusedThumbIndex=ye;const Ae=TG(J),ue=B?.root??f.Root??vG,bt=B?.rail??f.Rail??bG,Be=B?.track??f.Track??xG,it=B?.thumb??f.Thumb??SG,pt=B?.valueLabel??f.ValueLabel??wG,_t=B?.mark??f.Mark??CG,Ht=B?.markLabel??f.MarkLabel??kG,at=B?.input??f.Input??"input",Xe=_?.root??c.root,ot=_?.rail??c.rail,Ne=_?.track??c.track,he=_?.thumb??c.thumb,qe=_?.valueLabel??c.valueLabel,Me=_?.mark??c.mark,Mt=_?.markLabel??c.markLabel,Rt=_?.input??c.input,gt=tl({elementType:ue,getSlotProps:oe,externalSlotProps:Xe,externalForwardedProps:X,additionalProps:{...hG(ue)&&{as:u}},ownerState:{...J,...Xe?.ownerState},className:[Ae.root,v]}),ct=tl({elementType:bt,externalSlotProps:ot,ownerState:J,className:Ae.rail}),At=tl({elementType:Be,externalSlotProps:Ne,additionalProps:{style:{...ne[me].offset(Te),...ne[me].leap(nt)}},ownerState:{...J,...Ne?.ownerState},className:Ae.track}),Wt=tl({elementType:it,getSlotProps:re,externalSlotProps:he,ownerState:{...J,...he?.ownerState},className:Ae.thumb}),dn=tl({elementType:pt,externalSlotProps:qe,ownerState:{...J,...qe?.ownerState},className:Ae.valueLabel}),bn=tl({elementType:_t,externalSlotProps:Me,ownerState:J,className:Ae.mark}),_n=tl({elementType:Ht,externalSlotProps:Mt,ownerState:J,className:Ae.markLabel}),Gn=tl({elementType:at,getSlotProps:se,externalSlotProps:Rt,ownerState:J});return h.jsxs(ue,{...gt,children:[h.jsx(bt,{...ct}),h.jsx(Be,{...At}),$e.filter(Jt=>Jt.value>=O&&Jt.value<=T).map((Jt,Ln)=>{const be=Zb(Jt.value,O,T),Bn=ne[me].offset(be);let Rn;return j===!1?Rn=fe.includes(Jt.value):Rn=j==="normal"&&(we?Jt.value>=fe[0]&&Jt.value<=fe[fe.length-1]:Jt.value<=fe[0])||j==="inverted"&&(we?Jt.value<=fe[0]||Jt.value>=fe[fe.length-1]:Jt.value>=fe[0]),h.jsxs(C.Fragment,{children:[h.jsx(_t,{"data-index":Ln,...bn,...!su(_t)&&{markActive:Rn},style:{...Bn,...bn.style},className:Dt(bn.className,Rn&&Ae.markActive)}),Jt.label!=null?h.jsx(Ht,{"aria-hidden":!0,"data-index":Ln,..._n,...!su(Ht)&&{markLabelActive:Rn},style:{...Bn,..._n.style},className:Dt(Ae.markLabel,_n.className,Rn&&Ae.markLabelActive),children:Jt.label}):null]},Ln)}),fe.map((Jt,Ln)=>{const be=Zb(Jt,O,T),Bn=ne[me].offset(be),Rn=K==="off"?MG:pt;return h.jsx(Rn,{...!su(Rn)&&{valueLabelFormat:te,valueLabelDisplay:K,value:typeof te=="function"?te(M(Jt),Ln):te,index:Ln,open:ie===Ln||ce===Ln||K==="on",disabled:x},...dn,children:h.jsx(it,{"data-index":Ln,...Wt,className:Dt(Ae.thumb,Wt.className,ce===Ln&&Ae.active,ye===Ln&&Ae.focusVisible),style:{...Bn,...ze(Ln),...Wt.style},children:h.jsx(at,{"data-index":Ln,"aria-label":w?w(Ln):a,"aria-valuenow":M(Jt),"aria-labelledby":l,"aria-valuetext":S?S(M(Jt),Ln):s,value:fe[Ln],...Gn})})},Ln)})]})});function RG(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=yd();C.useEffect(()=>{if(!o)return;function S(k){k.defaultPrevented||k.key==="Escape"&&r?.(k,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,r]);const l=No((S,k)=>{r?.(S,k)}),u=No(S=>{!r||S==null||s.start(S,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&u(t),s.clear),[o,t,u,s]);const f=S=>{r?.(S,"clickaway")},c=s.clear,m=C.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=S=>k=>{const T=S.onBlur;T?.(k),m()},v=S=>k=>{const T=S.onFocus;T?.(k),c()},b=S=>k=>{const T=S.onMouseEnter;T?.(k),c()},x=S=>k=>{const T=S.onMouseLeave;T?.(k),m()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",c)}},[n,o,m,c]),{getRootProps:(S={})=>{const k={...Cd(e),...Cd(S)};return{role:"presentation",...S,...k,onBlur:y(k),onFocus:v(k),onMouseEnter:b(k),onMouseLeave:x(k)}},onClickAway:f}}function OG(e){return rn("MuiSnackbarContent",e)}sn("MuiSnackbarContent",["root","message","action"]);const PG=e=>{const{classes:t}=e;return on({root:["root"],action:["action"],message:["message"]},OG,t)},$G=Je(Ua,{name:"MuiSnackbarContent",slot:"Root"})(Xt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Uw(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Uw(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),DG=Je("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),AG=Je("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),jG=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...u}=r,f=r,c=PG(f);return h.jsxs($G,{role:l,elevation:6,className:Dt(c.root,a),ownerState:f,ref:n,...u,children:[h.jsx(DG,{className:c.message,ownerState:f,children:s}),o?h.jsx(AG,{className:c.action,ownerState:f,children:o}):null]})});function NG(e){return rn("MuiSnackbar",e)}sn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const IG=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${tt(n.vertical)}${tt(n.horizontal)}`]};return on(r,NG,t)},LG=Je("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${tt(n.anchorOrigin.vertical)}${tt(n.anchorOrigin.horizontal)}`]]}})(Xt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),$s=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiSnackbar"}),o=Su(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:c,className:m,ClickAwayListenerProps:y,ContentProps:v,disableWindowBlurListener:b=!1,message:x,onBlur:w,onClose:S,onFocus:k,onMouseEnter:T,onMouseLeave:O,open:P,resumeHideDuration:$,slots:I={},slotProps:F={},TransitionComponent:A,transitionDuration:H=a,TransitionProps:{onEnter:L,onExited:M,..._}={},...B}=r,W={...r,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:f,disableWindowBlurListener:b,TransitionComponent:A,transitionDuration:H},j=IG(W),{getRootProps:Q,onClickAway:K}=RG({...W}),[te,X]=C.useState(!0),J=fe=>{X(!0),M&&M(fe)},ne=(fe,Te)=>{X(!1),L&&L(fe,Te)},oe={slots:{transition:A,...I},slotProps:{content:v,clickAwayListener:y,transition:_,...F}},[se,re]=An("root",{ref:n,className:[j.root,m],elementType:LG,getSlotProps:Q,externalForwardedProps:{...oe,...B},ownerState:W}),[ie,{ownerState:ce,...me}]=An("clickAwayListener",{elementType:b7,externalForwardedProps:oe,getSlotProps:fe=>({onClickAway:(...Te)=>{const nt=Te[0];fe.onClickAway?.(...Te),!nt?.defaultMuiPrevented&&K(...Te)}}),ownerState:W}),[ye,we]=An("content",{elementType:jG,shouldForwardComponentProp:!0,externalForwardedProps:oe,additionalProps:{message:x,action:s},ownerState:W}),[Ce,$e]=An("transition",{elementType:Ig,externalForwardedProps:oe,getSlotProps:fe=>({onEnter:(...Te)=>{fe.onEnter?.(...Te),ne(...Te)},onExited:(...Te)=>{fe.onExited?.(...Te),J(...Te)}}),additionalProps:{appear:!0,in:P,timeout:H,direction:l==="top"?"down":"up"},ownerState:W});return!P&&te?null:h.jsx(ie,{...me,...I.clickAwayListener&&{ownerState:ce},children:h.jsx(se,{...re,children:h.jsx(Ce,{...$e,children:c||h.jsx(ye,{...we})})})})});function zG(e){return rn("MuiTooltip",e)}const fo=sn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function FG(e){return Math.round(e*1e5)/1e5}const BG=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${tt(a.split("-")[0])}`],arrow:["arrow"]};return on(s,zG,t)},_G=Je(q0,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Xt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${fo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${fo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${fo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${fo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${fo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${fo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${fo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${fo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),UG=Je("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${tt(n.placement.split("-")[0])}`]]}})(Xt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${fo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${fo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${fo.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${FG(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${fo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${fo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${fo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${fo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),VG=Je("span",{name:"MuiTooltip",slot:"Arrow"})(Xt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Gv=!1;const jP=new H0;let bm={x:0,y:0};function Kv(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const xa=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:u={},describeChild:f=!1,disableFocusListener:c=!1,disableHoverListener:m=!1,disableInteractive:y=!1,disableTouchListener:v=!1,enterDelay:b=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:S=!1,id:k,leaveDelay:T=0,leaveTouchDelay:O=1500,onClose:P,onOpen:$,open:I,placement:F="bottom",PopperComponent:A,PopperProps:H={},slotProps:L={},slots:M={},title:_,TransitionComponent:B,TransitionProps:W,...j}=r,Q=C.isValidElement(a)?a:h.jsx("span",{children:a}),K=Su(),te=fy(),[X,J]=C.useState(),[ne,oe]=C.useState(null),se=C.useRef(!1),re=y||S,ie=yd(),ce=yd(),me=yd(),ye=yd(),[we,Ce]=iu({controlled:I,default:!1,name:"Tooltip",state:"open"});let $e=we;const fe=xu(k),Te=C.useRef(),nt=No(()=>{Te.current!==void 0&&(document.body.style.WebkitUserSelect=Te.current,Te.current=void 0),ye.clear()});C.useEffect(()=>nt,[nt]);const ze=en=>{jP.clear(),Gv=!0,Ce(!0),$&&!$e&&$(en)},Ae=No(en=>{jP.start(800+T,()=>{Gv=!1}),Ce(!1),P&&$e&&P(en),ie.start(K.transitions.duration.shortest,()=>{se.current=!1})}),ue=en=>{se.current&&en.type!=="touchstart"||(X&&X.removeAttribute("title"),ce.clear(),me.clear(),b||Gv&&x?ce.start(Gv?x:b,()=>{ze(en)}):ze(en))},bt=en=>{ce.clear(),me.start(T,()=>{Ae(en)})},[,Be]=C.useState(!1),it=en=>{hu(en.target)||(Be(!1),bt(en))},pt=en=>{X||J(en.currentTarget),hu(en.target)&&(Be(!0),ue(en))},_t=en=>{se.current=!0;const le=Q.props;le.onTouchStart&&le.onTouchStart(en)},Ht=en=>{_t(en),me.clear(),ie.clear(),nt(),Te.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(w,()=>{document.body.style.WebkitUserSelect=Te.current,ue(en)})},at=en=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(en),nt(),me.start(O,()=>{Ae(en)})};C.useEffect(()=>{if(!$e)return;function en(le){le.key==="Escape"&&Ae(le)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[Ae,$e]);const Xe=go(Bd(Q),J,n);!_&&_!==0&&($e=!1);const ot=C.useRef(),Ne=en=>{const le=Q.props;le.onMouseMove&&le.onMouseMove(en),bm={x:en.clientX,y:en.clientY},ot.current&&ot.current.update()},he={},qe=typeof _=="string";f?(he.title=!$e&&qe&&!m?_:null,he["aria-describedby"]=$e?fe:null):(he["aria-label"]=qe?_:null,he["aria-labelledby"]=$e&&!qe?fe:null);const Me={...he,...j,...Q.props,className:Dt(j.className,Q.props.className),onTouchStart:_t,ref:Xe,...S?{onMouseMove:Ne}:{}},Mt={};v||(Me.onTouchStart=Ht,Me.onTouchEnd=at),m||(Me.onMouseOver=Kv(ue,Me.onMouseOver),Me.onMouseLeave=Kv(bt,Me.onMouseLeave),re||(Mt.onMouseOver=ue,Mt.onMouseLeave=bt)),c||(Me.onFocus=Kv(pt,Me.onFocus),Me.onBlur=Kv(it,Me.onBlur),re||(Mt.onFocus=pt,Mt.onBlur=it));const Rt={...r,isRtl:te,arrow:o,disableInteractive:re,placement:F,PopperComponentProp:A,touch:se.current},gt=typeof L.popper=="function"?L.popper(Rt):L.popper,ct=C.useMemo(()=>{let en=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return H.popperOptions?.modifiers&&(en=en.concat(H.popperOptions.modifiers)),gt?.popperOptions?.modifiers&&(en=en.concat(gt.popperOptions.modifiers)),{...H.popperOptions,...gt?.popperOptions,modifiers:en}},[ne,H.popperOptions,gt?.popperOptions]),At=BG(Rt),Wt=typeof L.transition=="function"?L.transition(Rt):L.transition,dn={slots:{popper:l.Popper,transition:l.Transition??B,tooltip:l.Tooltip,arrow:l.Arrow,...M},slotProps:{arrow:L.arrow??u.arrow,popper:{...H,...gt??u.popper},tooltip:L.tooltip??u.tooltip,transition:{...W,...Wt??u.transition}}},[bn,_n]=An("popper",{elementType:_G,externalForwardedProps:dn,ownerState:Rt,className:Dt(At.popper,H?.className)}),[Gn,Jt]=An("transition",{elementType:Ig,externalForwardedProps:dn,ownerState:Rt}),[Ln,be]=An("tooltip",{elementType:UG,className:At.tooltip,externalForwardedProps:dn,ownerState:Rt}),[Bn,Rn]=An("arrow",{elementType:VG,className:At.arrow,externalForwardedProps:dn,ownerState:Rt,ref:oe});return h.jsxs(C.Fragment,{children:[C.cloneElement(Q,Me),h.jsx(bn,{as:A??q0,placement:F,anchorEl:S?{getBoundingClientRect:()=>({top:bm.y,left:bm.x,right:bm.x,bottom:bm.y,width:0,height:0})}:X,popperRef:ot,open:X?$e:!1,id:fe,transition:!0,...Mt,..._n,popperOptions:ct,children:({TransitionProps:en})=>h.jsx(Gn,{timeout:K.transitions.duration.shorter,...en,...Jt,children:h.jsxs(Ln,{...be,children:[_,o?h.jsx(Bn,{...Rn}):null]})})})]})}),kr=WN({createStyledComponent:Je("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ln({props:e,name:"MuiStack"})});function HG(e){return rn("MuiSwitch",e)}const ya=sn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),WG=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,l={root:["root",n&&`edge${tt(n)}`,`size${tt(r)}`],switchBase:["switchBase",`color${tt(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=on(l,HG,t);return{...t,...u}},qG=Je("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${tt(n.edge)}`],t[`size${tt(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ya.thumb}`]:{width:16,height:16},[`& .${ya.switchBase}`]:{padding:4,[`&.${ya.checked}`]:{transform:"translateX(16px)"}}}}]}),YG=Je(wI,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ya.input}`]:t.input},n.color!=="default"&&t[`color${tt(n.color)}`]]}})(Xt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${ya.checked}`]:{transform:"translateX(20px)"},[`&.${ya.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ya.checked} + .${ya.track}`]:{opacity:.5},[`&.${ya.disabled} + .${ya.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ya.input}`]:{left:"-100%",width:"300%"}})),Xt(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(jr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ya.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ya.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${ya.checked} + .${ya.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),GG=Je("span",{name:"MuiSwitch",slot:"Track"})(Xt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),KG=Je("span",{name:"MuiSwitch",slot:"Thumb"})(Xt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),hT=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:u,slots:f={},slotProps:c={},...m}=r,y={...r,color:a,edge:s,size:l},v=WG(y),b={slots:f,slotProps:c},[x,w]=An("root",{className:Dt(v.root,o),elementType:qG,externalForwardedProps:b,ownerState:y,additionalProps:{sx:u}}),[S,k]=An("thumb",{className:v.thumb,elementType:KG,externalForwardedProps:b,ownerState:y}),T=h.jsx(S,{...k}),[O,P]=An("track",{className:v.track,elementType:GG,externalForwardedProps:b,ownerState:y});return h.jsxs(x,{...w,children:[h.jsx(YG,{type:"checkbox",icon:T,checkedIcon:T,ref:n,ownerState:y,...m,classes:{...v,root:v.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...c.switchBase&&{root:typeof c.switchBase=="function"?c.switchBase(y):c.switchBase},input:{role:"switch"},...c.input&&{input:typeof c.input=="function"?c.input(y):c.input}}}),h.jsx(O,{...P})]})}),II=C.createContext();function QG(e){return rn("MuiTable",e)}sn("MuiTable",["root","stickyHeader"]);const XG=e=>{const{classes:t,stickyHeader:n}=e;return on({root:["root",n&&"stickyHeader"]},QG,t)},ZG=Je("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Xt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),NP="table",vy=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTable"}),{className:o,component:a=NP,padding:s="normal",size:l="medium",stickyHeader:u=!1,...f}=r,c={...r,component:a,padding:s,size:l,stickyHeader:u},m=XG(c),y=C.useMemo(()=>({padding:s,size:l,stickyHeader:u}),[s,l,u]);return h.jsx(II.Provider,{value:y,children:h.jsx(ZG,{as:a,role:a===NP?null:"table",ref:n,className:Dt(m.root,o),ownerState:c,...f})})}),J0=C.createContext();function JG(e){return rn("MuiTableBody",e)}sn("MuiTableBody",["root"]);const eK=e=>{const{classes:t}=e;return on({root:["root"]},JG,t)},tK=Je("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),nK={variant:"body"},IP="tbody",by=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTableBody"}),{className:o,component:a=IP,...s}=r,l={...r,component:a},u=eK(l);return h.jsx(J0.Provider,{value:nK,children:h.jsx(tK,{className:Dt(u.root,o),as:a,ref:n,role:a===IP?null:"rowgroup",ownerState:l,...s})})});function rK(e){return rn("MuiTableCell",e)}const oK=sn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),aK=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${tt(r)}`,o!=="normal"&&`padding${tt(o)}`,`size${tt(a)}`]};return on(l,rK,t)},iK=Je("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${tt(n.size)}`],n.padding!=="normal"&&t[`padding${tt(n.padding)}`],n.align!=="inherit"&&t[`align${tt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Xt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
265
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${oK.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Hn=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:u,size:f,sortDirection:c,variant:m,...y}=r,v=C.useContext(II),b=C.useContext(J0),x=b&&b.variant==="head";let w;s?w=s:w=x?"th":"td";let S=u;w==="td"?S=void 0:!S&&x&&(S="col");const k=m||b&&b.variant,T={...r,align:o,component:w,padding:l||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:k==="head"&&v&&v.stickyHeader,variant:k},O=aK(T);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),h.jsx(iK,{as:w,ref:n,className:Dt(O.root,a),"aria-sort":P,scope:S,ownerState:T,...y})});function sK(e){return rn("MuiTableContainer",e)}sn("MuiTableContainer",["root"]);const lK=e=>{const{classes:t}=e;return on({root:["root"]},sK,t)},cK=Je("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),uK=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=lK(l);return h.jsx(cK,{ref:n,as:a,className:Dt(u.root,o),ownerState:l,...s})});function dK(e){return rn("MuiTableHead",e)}sn("MuiTableHead",["root"]);const fK=e=>{const{classes:t}=e;return on({root:["root"]},dK,t)},pK=Je("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),hK={variant:"head"},LP="thead",xy=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTableHead"}),{className:o,component:a=LP,...s}=r,l={...r,component:a},u=fK(l);return h.jsx(J0.Provider,{value:hK,children:h.jsx(pK,{as:a,className:Dt(u.root,o),ref:n,role:a===LP?null:"rowgroup",ownerState:l,...s})})});function mK(e){return rn("MuiTableRow",e)}const zP=sn("MuiTableRow",["root","selected","hover","head","footer"]),gK=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return on({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},mK,t)},yK=Je("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Xt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zP.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zP.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),FP="tr",vl=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTableRow"}),{className:o,component:a=FP,hover:s=!1,selected:l=!1,...u}=r,f=C.useContext(J0),c={...r,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},m=gK(c);return h.jsx(yK,{as:a,ref:n,className:Dt(m.root,o),role:a===FP?null:"row",ownerState:c,...u})});function vK(e){return rn("MuiTextField",e)}sn("MuiTextField",["root"]);const bK={standard:sT,filled:iT,outlined:fT},xK=e=>{const{classes:t}=e;return on({root:["root"]},vK,t)},SK=Je(aC,{name:"MuiTextField",slot:"Root"})({}),ul=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:u="primary",defaultValue:f,disabled:c=!1,error:m=!1,FormHelperTextProps:y,fullWidth:v=!1,helperText:b,id:x,InputLabelProps:w,inputProps:S,InputProps:k,inputRef:T,label:O,maxRows:P,minRows:$,multiline:I=!1,name:F,onBlur:A,onChange:H,onFocus:L,placeholder:M,required:_=!1,rows:B,select:W=!1,SelectProps:j,slots:Q={},slotProps:K={},type:te,value:X,variant:J="outlined",...ne}=r,oe={...r,autoFocus:a,color:u,disabled:c,error:m,fullWidth:v,multiline:I,required:_,select:W,variant:J},se=xK(oe),re=xu(x),ie=b&&re?`${re}-helper-text`:void 0,ce=O&&re?`${re}-label`:void 0,me=bK[J],ye={slots:Q,slotProps:{input:k,inputLabel:w,htmlInput:S,formHelperText:y,select:j,...K}},we={},Ce=ye.slotProps.inputLabel;J==="outlined"&&(Ce&&typeof Ce.shrink<"u"&&(we.notched=Ce.shrink),we.label=O),W&&((!j||!j.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const[$e,fe]=An("root",{elementType:SK,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...ne},ownerState:oe,className:Dt(se.root,l),ref:n,additionalProps:{disabled:c,error:m,fullWidth:v,required:_,color:u,variant:J}}),[Te,nt]=An("input",{elementType:me,externalForwardedProps:ye,additionalProps:we,ownerState:oe}),[ze,Ae]=An("inputLabel",{elementType:qq,externalForwardedProps:ye,ownerState:oe}),[ue,bt]=An("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:oe}),[Be,it]=An("formHelperText",{elementType:iC,externalForwardedProps:ye,ownerState:oe}),[pt,_t]=An("select",{elementType:jI,externalForwardedProps:ye,ownerState:oe}),Ht=h.jsx(Te,{"aria-describedby":ie,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:v,multiline:I,name:F,rows:B,maxRows:P,minRows:$,type:te,value:X,id:re,inputRef:T,onBlur:A,onChange:H,onFocus:L,placeholder:M,inputProps:bt,slots:{input:Q.htmlInput?ue:void 0},...nt});return h.jsxs($e,{...fe,children:[O!=null&&O!==""&&h.jsx(ze,{htmlFor:re,id:ce,...Ae,children:O}),W?h.jsx(pt,{"aria-describedby":ie,id:re,labelId:ce,value:X,input:Ht,..._t,children:s}):Ht,b&&h.jsx(Be,{id:ie,...it,children:b})]})});function wK(e){return rn("MuiToggleButton",e)}const vd=sn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),LI=C.createContext({}),zI=C.createContext(void 0);function CK(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const kK=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:a,color:s}=e,l={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${tt(a)}`,s]};return on(l,wK,t)},TK=Je(mu,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${tt(n.size)}`]]}})(Xt(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${vd.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${vd.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&.${vd.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),BP=C.forwardRef(function(t,n){const{value:r,...o}=C.useContext(LI),a=C.useContext(zI),s=Ep({...o,selected:CK(t.value,r)},t),l=ln({props:s,name:"MuiToggleButton"}),{children:u,className:f,color:c="standard",disabled:m=!1,disableFocusRipple:y=!1,fullWidth:v=!1,onChange:b,onClick:x,selected:w,size:S="medium",value:k,...T}=l,O={...l,color:c,disabled:m,disableFocusRipple:y,fullWidth:v,size:S},P=kK(O),$=F=>{x&&(x(F,k),F.defaultPrevented)||b&&b(F,k)},I=a||"";return h.jsx(TK,{className:Dt(o.className,P.root,f,I),disabled:m,focusRipple:!y,ref:n,onClick:$,onChange:b,value:k,ownerState:O,"aria-pressed":w,...T,children:u})});function MK(e){return rn("MuiToggleButtonGroup",e)}const Wr=sn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),EK=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,a={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${tt(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return on(a,MK,t)},RK=Je("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wr.grouped}`]:t.grouped},{[`& .${Wr.grouped}`]:t[`grouped${tt(n.orientation)}`]},{[`& .${Wr.firstButton}`]:t.firstButton},{[`& .${Wr.lastButton}`]:t.lastButton},{[`& .${Wr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(Xt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Wr.grouped}`]:{[`&.${Wr.selected} + .${Wr.grouped}.${Wr.selected}`]:{borderTop:0,marginTop:0}},[`& .${Wr.firstButton},& .${Wr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Wr.lastButton},& .${Wr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Wr.lastButton}.${vd.disabled},& .${Wr.middleButton}.${vd.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Wr.grouped}`]:{[`&.${Wr.selected} + .${Wr.grouped}.${Wr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Wr.firstButton},& .${Wr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Wr.lastButton},& .${Wr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Wr.lastButton}.${vd.disabled},& .${Wr.middleButton}.${vd.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),OK=C.forwardRef(function(t,n){const r=ln({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:a,color:s="standard",disabled:l=!1,exclusive:u=!1,fullWidth:f=!1,onChange:c,orientation:m="horizontal",size:y="medium",value:v,...b}=r,x={...r,disabled:l,fullWidth:f,orientation:m,size:y},w=EK(x),S=C.useCallback((I,F)=>{if(!c)return;const A=v&&v.indexOf(F);let H;v&&A>=0?(H=v.slice(),H.splice(A,1)):H=v?v.concat(F):[F],c(I,H)},[c,v]),k=C.useCallback((I,F)=>{c&&c(I,v===F?null:F)},[c,v]),T=C.useMemo(()=>({className:w.grouped,onChange:u?k:S,value:v,size:y,fullWidth:f,color:s,disabled:l}),[w.grouped,u,k,S,v,y,f,s,l]),O=qW(o),P=O.length,$=I=>{const F=I===0,A=I===P-1;return F&&A?"":F?w.firstButton:A?w.lastButton:w.middleButton};return h.jsx(RK,{role:"group",className:Dt(w.root,a),ref:n,ownerState:x,...b,children:h.jsx(LI.Provider,{value:T,children:O.map((I,F)=>h.jsx(zI.Provider,{value:$(F),children:I},F))})})});var td={},ws={},_P;function Jp(){if(_P)return ws;_P=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.isChainOp=e,ws.isStringCondition=t,ws.isStringFilter=n,ws.isBooleanFilter=r,ws.isNumberFilter=o,ws.isTemporalFilter=a,ws.isFilterExpression=s,ws.isFilterable=l;function e(u){return["and","or",","].includes(u)}function t(u){return["starts","ends","contains","="].includes(u.operator)}function n(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["starts","ends","contains","=","~","null","none","empty","and","or",",","()"].includes(u.operator)}function r(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["null","none","true","false","=false","=true"].includes(u.operator)}function o(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null","none"].includes(u.operator)}function a(u){return typeof u=="object"&&u!==null&&"operator"in u&&typeof u.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null","none"].includes(u.operator)}function s(u){return typeof u=="object"&&u!==null&&"operator"in u}function l(u){return["string","number","boolean","timestamp","timestamptz","date"].includes(u)}return ws}var xm={},UP;function PK(){return UP||(UP=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.BooleanFilterExpression=void 0,xm.BooleanFilterExpression={parse(e){var t;if(e.match(/^\s*$/))return{parsed:null,log:[]};const n={parsed:null,log:[]};let r=e.toLowerCase().trim().replace(/\s\s+/," "),o=!1;if(r.startsWith("not ")&&(o=!0,r=r.slice(4)),r==="true")n.parsed={operator:"true"};else if(r==="=true")n.parsed={operator:"=true"};else if(r==="false")n.parsed={operator:"false"};else if(r==="=false")n.parsed={operator:"=false"};else if(r==="null")n.parsed={operator:"null"};else if(r==="none")n.parsed={operator:"none"};else{const a=e.match(/[^\s]/),s=a&&(t=a.index)!==null&&t!==void 0?t:0;n.log=[{message:`Illegal boolean filter '${r}'. Must be one of true,=true,false,=false,null,none`,severity:"error",startIndex:s,endIndex:s+e.length-1}]}return o&&n.parsed&&(n.parsed.not=!0),n},unparse(e){return e===null?"":(e.not?"not ":"")+e.operator}}),xm}var VS={},oa={},VP;function ex(){if(VP)return oa;VP=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.maybeNot=t,oa.unescape=n,oa.escape=r,oa.matchOp=a,oa.conjoin=l,oa.joinNumbers=u,oa.mkRange=f,oa.mkValues=c,oa.numNot=m,oa.temporalNot=y,oa.joinTemporal=v,oa.timeLiteral=b,oa.mkUnits=x;const e=Jp();function t(w){const[S,k]=w;return S&&k&&(0,e.isStringFilter)(k)?{...k,not:!0}:k}function n(w){return w.replace(/\\(.)/g,"$1")}function r(w){const S=w.toLowerCase();return S==="null"||S==="empty"||S==="none"?"\\"+w:w.replace(/([,; |()\\%_-])/g,"\\$1")}function o(w){let S=!1,k=!1,T=0,O=!1;const P=w.length;for(let $=0;$<P;$+=1){const I=w[$];if(I===" "||I===" "){T+=1;continue}T=0,I==="%"?(O=!0,$===0&&(S=!0),k=!0):(k=!1,I==="\\"?$+=1:I==="_"&&(O=!0))}return{hasLike:O,percentEnd:k&&P>1,percentStart:S&&P>1,endSpace:T}}function a(w){let S=w.trimStart();const{hasLike:k,percentEnd:T,percentStart:O,endSpace:P}=o(S);if(P>0&&(S=S.slice(0,-P)),k){if(O&&T){const $=S.slice(1,-1);if(!o($).hasLike&&$.length>0)return{operator:"contains",values:[n($)]}}else if(T){const $=S.slice(0,-1);if(!o($).hasLike)return{operator:"starts",values:[n($)]}}else if(O){const $=S.slice(1);if(!o($).hasLike)return{operator:"ends",values:[n($)]}}return{operator:"~",escaped_values:[S]}}return S.toLowerCase()==="null"?{operator:"null"}:S.toLowerCase()==="empty"?{operator:"empty"}:S.toLowerCase()==="none"?{operator:"none"}:{operator:"=",values:[n(S)]}}function s(w,S){var k,T;return w.operator===S.operator&&((k=w.not)!==null&&k!==void 0?k:!1)===((T=S.not)!==null&&T!==void 0?T:!1)}function l(w,S,k){if(S=S.toLowerCase(),(0,e.isStringFilter)(w)&&(0,e.isStringFilter)(k)){if(S===","){if(w.operator==="~"&&s(w,k))return{...w,escaped_values:[...w.escaped_values,...k.escaped_values]};if((0,e.isStringCondition)(w)&&s(w,k))return{...w,values:[...w.values,...k.values]}}const T=S===","?",":S==="|"?"or":S===";"?"and":void 0;if(T)return w.operator===T?{...w,members:[...w.members,k]}:{operator:T,members:[w,k]}}return null}function u(w,S,k){if(S=S.toLowerCase(),(0,e.isNumberFilter)(w)&&(0,e.isNumberFilter)(k)){if(S==="or"&&w.operator==="="&&s(w,k)){const T={operator:"=",values:[...w.values,...k.values]};return w.not&&(T.not=!0),T}if(S==="and"||S==="or")return w.operator===S?{...w,members:[...w.members,k]}:{operator:S,members:[w,k]}}return null}function f(w,S,k,T){return{operator:"range",startValue:S,startOperator:w==="("?">":">=",endValue:k,endOperator:T===")"?"<":"<="}}function c(w,S){return{values:[w,...S]}}function m(w,S){return(0,e.isNumberFilter)(w)&&S?w.operator==="="?{operator:"!=",values:w.values}:w.operator==="!="?{operator:"=",values:w.values}:{...w,not:!0}:w}function y(w,S){if((0,e.isTemporalFilter)(w)&&S){if("not"in w){const k={...w};return w.not?delete k.not:k.not=!0,k}return{...w,not:!0}}return w}function v(w,S,k){return S=S.toLowerCase(),(0,e.isTemporalFilter)(w)&&(0,e.isTemporalFilter)(k)&&(S==="and"||S==="or")?w.operator===S?{...w,members:[...w.members,k]}:{operator:S,members:[w,k]}:null}function b(w,S){const k={moment:"literal",literal:w};return S&&(k.units=S),k}function x(w){switch(w.toLowerCase()){case"second":case"seconds":return"second";case"minute":case"minutes":return"minute";case"hour":case"hours":return"hour";case"day":case"days":return"day";case"week":case"weeks":return"week";case"month":case"months":return"month";case"quarter":case"quarters":return"quarter";case"year":case"years":return"year"}}return oa}var HS,HP;function $K(){if(HP)return HS;HP=1;const{numNot:e,mkRange:t,joinNumbers:n,mkValues:r}=ex();function o(u,f){function c(){this.constructor=u}c.prototype=f.prototype,u.prototype=new c}function a(u,f,c,m){var y=Error.call(this,u);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=c,y.location=m,y.name="SyntaxError",y}o(a,Error);function s(u,f,c){return c=c||" ",u.length>f?u:(f-=u.length,c+=c.repeat(f),u+c.slice(0,f))}a.prototype.format=function(u){var f="Error: "+this.message;if(this.location){var c=null,m;for(m=0;m<u.length;m++)if(u[m].source===this.location.source){c=u[m].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,v=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,b=this.location.source+":"+v.line+":"+v.column;if(c){var x=this.location.end,w=s("",v.line.toString().length," "),S=c[y.line-1],k=y.line===x.line?x.column:S.length+1,T=k-y.column||1;f+=`
266
- --> `+b+`
267
- `+w+` |
268
- `+v.line+" | "+S+`
269
- `+w+" | "+s("",y.column-1," ")+s("",T,"^")}else f+=`
270
- at `+b}return f},a.buildMessage=function(u,f){var c={literal:function(S){return'"'+y(S.text)+'"'},class:function(S){var k=S.parts.map(function(T){return Array.isArray(T)?v(T[0])+"-"+v(T[1]):v(T)});return"["+(S.inverted?"^":"")+k.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(S){return S.description}};function m(S){return S.charCodeAt(0).toString(16).toUpperCase()}function y(S){return S.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+m(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+m(k)})}function v(S){return S.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+m(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+m(k)})}function b(S){return c[S.type](S)}function x(S){var k=S.map(b),T,O;if(k.sort(),k.length>0){for(T=1,O=1;T<k.length;T++)k[T-1]!==k[T]&&(k[O]=k[T],O++);k.length=O}switch(k.length){case 1:return k[0];case 2:return k[0]+" or "+k[1];default:return k.slice(0,-1).join(", ")+", or "+k[k.length-1]}}function w(S){return S?'"'+y(S)+'"':"end of input"}return"Expected "+x(u)+" but "+w(f)+" found."};function l(u,f){f=f!==void 0?f:{};var c={},m=f.grammarSource,y={numberFilter:Ot},v=Ot,b="(",x=")",w="!=",S=",",k="=",T="<=",O=">=",P="[",$="]",I="-",F=".",A="not",H="null",L="none",M="and",_="or",B="to",W=/^[<>]/,j=/^[0-9]/,Q=/^[Ee]/,K=/^[+\-]/,te=/^[a-zA-Z]/,X=/^[ \t]/,J=Le("(",!1),ne=Le(")",!1),oe=Le("!=",!1),se=Le(",",!1),re=Le("=",!1),ie=Le("<=",!1),ce=Le(">=",!1),me=Ye(["<",">"],!1,!1),ye=Le("[",!1),we=Le("]",!1),Ce=Le("-",!1),$e=Ye([["0","9"]],!1,!1),fe=Le(".",!1),Te=Ye(["E","e"],!1,!1),nt=Ye(["+","-"],!1,!1),ze=Le("not",!0),Ae=Le("null",!0),ue=Le("none",!0),bt=Le("and",!0),Be=Le("or",!0),it=Le("to",!0),pt=Ye([["a","z"],["A","Z"]],!1,!1),_t=zt("whitespace"),Ht=Ye([" "," "],!1,!1),at=function(ge,Re){return Re.reduce((We,[,yt,,$t])=>n(We,yt,$t),ge)},Xe=function(ge,Re){return e(Re,ge)},ot=function(ge){return ge},Ne=function(){return{operator:"null"}},he=function(){return{operator:"none"}},qe=function(ge){return{operator:"()",expr:ge}},Me=function(ge,Re,We,yt){return t(ge,Re,We,yt)},Mt=function(ge,Re){return{operator:"!=",...r(ge,Re.map(We=>We[3]))}},Rt=function(ge,Re){return{operator:"=",...r(ge,Re.map(We=>We[3]))}},gt=function(ge,Re){return{operator:ge,values:[Re]}},ct=function(ge,Re){return{operator:"=",...r(ge,Re.map(We=>We[3]))}},At=function(){return"["},Wt=function(){return"("},dn=function(){return"]"},bn=function(){return")"},_n=function(ge){return ge},Gn=function(){return"or"},Jt=function(){return"and"},Ln=function(){return"not"},be=f.peg$currPos|0,Bn=[{line:1,column:1}],Rn=be,en=f.peg$maxFailExpected||[],le=f.peg$silentFails|0,De;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function Le(ge,Re){return{type:"literal",text:ge,ignoreCase:Re}}function Ye(ge,Re,We){return{type:"class",parts:ge,inverted:Re,ignoreCase:We}}function ut(){return{type:"end"}}function zt(ge){return{type:"other",description:ge}}function Ut(ge){var Re=Bn[ge],We;if(Re)return Re;if(ge>=Bn.length)We=Bn.length-1;else for(We=ge;!Bn[--We];);for(Re=Bn[We],Re={line:Re.line,column:Re.column};We<ge;)u.charCodeAt(We)===10?(Re.line++,Re.column=1):Re.column++,We++;return Bn[ge]=Re,Re}function jt(ge,Re,We){var yt=Ut(ge),$t=Ut(Re),Tt={source:m,start:{offset:ge,line:yt.line,column:yt.column},end:{offset:Re,line:$t.line,column:$t.column}};return Tt}function mt(ge){be<Rn||(be>Rn&&(Rn=be,en=[]),en.push(ge))}function Lt(ge,Re,We){return new a(a.buildMessage(ge,Re),ge,Re,We)}function Ot(){var ge,Re,We,yt,$t,Tt,wt,Qt;if(ge=be,Re=kt(),Re!==c){for(We=[],yt=be,$t=pn(),Tt=fn(),Tt!==c?(wt=pn(),Qt=kt(),Qt!==c?($t=[$t,Tt,wt,Qt],yt=$t):(be=yt,yt=c)):(be=yt,yt=c);yt!==c;)We.push(yt),yt=be,$t=pn(),Tt=fn(),Tt!==c?(wt=pn(),Qt=kt(),Qt!==c?($t=[$t,Tt,wt,Qt],yt=$t):(be=yt,yt=c)):(be=yt,yt=c);ge=at(Re,We)}else be=ge,ge=c;return ge}function kt(){var ge,Re,We;return ge=be,Re=de(),Re!==c?(pn(),We=qt(),We!==c?ge=Xe(Re,We):(be=ge,ge=c)):(be=ge,ge=c),ge===c&&(ge=be,Re=qt(),Re!==c&&(Re=ot(Re)),ge=Re),ge}function qt(){var ge,Re,We,yt,$t,Tt,wt,Qt,Sn,hr;if(ge=be,Re=pe(),Re!==c&&(Re=Ne()),ge=Re,ge===c&&(ge=be,Re=He(),Re!==c&&(Re=he()),ge=Re,ge===c&&(ge=be,u.charCodeAt(be)===40?(Re=b,be++):(Re=c,le===0&&mt(J)),Re!==c?(We=pn(),yt=Ot(),yt!==c?($t=pn(),u.charCodeAt(be)===41?(Tt=x,be++):(Tt=c,le===0&&mt(ne)),Tt!==c?ge=qe(yt):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c),ge===c&&(ge=be,Re=On(),Re!==c?(We=pn(),yt=xn(),yt!==c?($t=pn(),Tt=nn(),Tt!==c?(wt=pn(),Qt=xn(),Qt!==c?(Sn=pn(),hr=Kn(),hr!==c?ge=Me(Re,yt,Qt,hr):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c)):(be=ge,ge=c),ge===c)))){if(ge=be,u.substr(be,2)===w?(Re=w,be+=2):(Re=c,le===0&&mt(oe)),Re!==c)if(We=pn(),yt=xn(),yt!==c){for($t=[],Tt=be,wt=pn(),u.charCodeAt(be)===44?(Qt=S,be++):(Qt=c,le===0&&mt(se)),Qt!==c?(Sn=pn(),hr=xn(),hr!==c?(wt=[wt,Qt,Sn,hr],Tt=wt):(be=Tt,Tt=c)):(be=Tt,Tt=c);Tt!==c;)$t.push(Tt),Tt=be,wt=pn(),u.charCodeAt(be)===44?(Qt=S,be++):(Qt=c,le===0&&mt(se)),Qt!==c?(Sn=pn(),hr=xn(),hr!==c?(wt=[wt,Qt,Sn,hr],Tt=wt):(be=Tt,Tt=c)):(be=Tt,Tt=c);ge=Mt(yt,$t)}else be=ge,ge=c;else be=ge,ge=c;if(ge===c){if(ge=be,u.charCodeAt(be)===61?(Re=k,be++):(Re=c,le===0&&mt(re)),Re!==c)if(We=pn(),yt=xn(),yt!==c){for($t=[],Tt=be,wt=pn(),u.charCodeAt(be)===44?(Qt=S,be++):(Qt=c,le===0&&mt(se)),Qt!==c?(Sn=pn(),hr=xn(),hr!==c?(wt=[wt,Qt,Sn,hr],Tt=wt):(be=Tt,Tt=c)):(be=Tt,Tt=c);Tt!==c;)$t.push(Tt),Tt=be,wt=pn(),u.charCodeAt(be)===44?(Qt=S,be++):(Qt=c,le===0&&mt(se)),Qt!==c?(Sn=pn(),hr=xn(),hr!==c?(wt=[wt,Qt,Sn,hr],Tt=wt):(be=Tt,Tt=c)):(be=Tt,Tt=c);ge=Rt(yt,$t)}else be=ge,ge=c;else be=ge,ge=c;if(ge===c&&(ge=be,Re=be,u.substr(be,2)===T?(We=T,be+=2):(We=c,le===0&&mt(ie)),We===c&&(u.substr(be,2)===O?(We=O,be+=2):(We=c,le===0&&mt(ce)),We===c&&(We=u.charAt(be),W.test(We)?be++:(We=c,le===0&&mt(me)))),We!==c?Re=u.substring(Re,be):Re=We,Re!==c?(We=pn(),yt=xn(),yt!==c?ge=gt(Re,yt):(be=ge,ge=c)):(be=ge,ge=c),ge===c))if(ge=be,Re=xn(),Re!==c){for(We=[],yt=be,$t=pn(),u.charCodeAt(be)===44?(Tt=S,be++):(Tt=c,le===0&&mt(se)),Tt!==c?(wt=pn(),Qt=xn(),Qt!==c?($t=[$t,Tt,wt,Qt],yt=$t):(be=yt,yt=c)):(be=yt,yt=c);yt!==c;)We.push(yt),yt=be,$t=pn(),u.charCodeAt(be)===44?(Tt=S,be++):(Tt=c,le===0&&mt(se)),Tt!==c?(wt=pn(),Qt=xn(),Qt!==c?($t=[$t,Tt,wt,Qt],yt=$t):(be=yt,yt=c)):(be=yt,yt=c);ge=ct(Re,We)}else be=ge,ge=c}}return ge}function On(){var ge,Re;return ge=be,u.charCodeAt(be)===91?(Re=P,be++):(Re=c,le===0&&mt(ye)),Re!==c&&(Re=At()),ge=Re,ge===c&&(ge=be,u.charCodeAt(be)===40?(Re=b,be++):(Re=c,le===0&&mt(J)),Re!==c&&(Re=Wt()),ge=Re),ge}function Kn(){var ge,Re;return ge=be,u.charCodeAt(be)===93?(Re=$,be++):(Re=c,le===0&&mt(we)),Re!==c&&(Re=dn()),ge=Re,ge===c&&(ge=be,u.charCodeAt(be)===41?(Re=x,be++):(Re=c,le===0&&mt(ne)),Re!==c&&(Re=bn()),ge=Re),ge}function xn(){var ge,Re,We,yt,$t,Tt,wt,Qt,Sn,hr;if(ge=be,Re=be,We=be,u.charCodeAt(be)===45?(yt=I,be++):(yt=c,le===0&&mt(Ce)),yt===c&&(yt=null),$t=be,Tt=[],wt=u.charAt(be),j.test(wt)?be++:(wt=c,le===0&&mt($e)),wt!==c)for(;wt!==c;)Tt.push(wt),wt=u.charAt(be),j.test(wt)?be++:(wt=c,le===0&&mt($e));else Tt=c;if(Tt!==c){for(u.charCodeAt(be)===46?(wt=F,be++):(wt=c,le===0&&mt(fe)),wt===c&&(wt=null),Qt=[],Sn=u.charAt(be),j.test(Sn)?be++:(Sn=c,le===0&&mt($e));Sn!==c;)Qt.push(Sn),Sn=u.charAt(be),j.test(Sn)?be++:(Sn=c,le===0&&mt($e));Tt=[Tt,wt,Qt],$t=Tt}else be=$t,$t=c;if($t===c){for($t=be,Tt=[],wt=u.charAt(be),j.test(wt)?be++:(wt=c,le===0&&mt($e));wt!==c;)Tt.push(wt),wt=u.charAt(be),j.test(wt)?be++:(wt=c,le===0&&mt($e));if(u.charCodeAt(be)===46?(wt=F,be++):(wt=c,le===0&&mt(fe)),wt!==c){if(Qt=[],Sn=u.charAt(be),j.test(Sn)?be++:(Sn=c,le===0&&mt($e)),Sn!==c)for(;Sn!==c;)Qt.push(Sn),Sn=u.charAt(be),j.test(Sn)?be++:(Sn=c,le===0&&mt($e));else Qt=c;Qt!==c?(Tt=[Tt,wt,Qt],$t=Tt):(be=$t,$t=c)}else be=$t,$t=c}if($t!==c){if(Tt=be,wt=u.charAt(be),Q.test(wt)?be++:(wt=c,le===0&&mt(Te)),wt!==c){if(Qt=u.charAt(be),K.test(Qt)?be++:(Qt=c,le===0&&mt(nt)),Qt===c&&(Qt=null),Sn=[],hr=u.charAt(be),j.test(hr)?be++:(hr=c,le===0&&mt($e)),hr!==c)for(;hr!==c;)Sn.push(hr),hr=u.charAt(be),j.test(hr)?be++:(hr=c,le===0&&mt($e));else Sn=c;Sn!==c?(wt=[wt,Qt,Sn],Tt=wt):(be=Tt,Tt=c)}else be=Tt,Tt=c;Tt===c&&(Tt=null),yt=[yt,$t,Tt],We=yt}else be=We,We=c;return We!==c?Re=u.substring(Re,be):Re=We,Re!==c&&(Re=_n(Re)),ge=Re,ge}function fn(){var ge,Re;return ge=be,Re=Ke(),Re!==c&&(Re=Gn()),ge=Re,ge===c&&(ge=be,Re=vt(),Re!==c&&(Re=Jt()),ge=Re),ge}function de(){var ge,Re,We,yt;return ge=be,Re=u.substr(be,3),Re.toLowerCase()===A?be+=3:(Re=c,le===0&&mt(ze)),Re!==c?(We=be,le++,yt=cn(),le--,yt===c?We=void 0:(be=We,We=c),We!==c?ge=Ln():(be=ge,ge=c)):(be=ge,ge=c),ge}function pe(){var ge,Re,We,yt;return ge=be,Re=u.substr(be,4),Re.toLowerCase()===H?be+=4:(Re=c,le===0&&mt(Ae)),Re!==c?(We=be,le++,yt=cn(),le--,yt===c?We=void 0:(be=We,We=c),We!==c?(Re=[Re,We],ge=Re):(be=ge,ge=c)):(be=ge,ge=c),ge}function He(){var ge,Re,We,yt;return ge=be,Re=u.substr(be,4),Re.toLowerCase()===L?be+=4:(Re=c,le===0&&mt(ue)),Re!==c?(We=be,le++,yt=cn(),le--,yt===c?We=void 0:(be=We,We=c),We!==c?(Re=[Re,We],ge=Re):(be=ge,ge=c)):(be=ge,ge=c),ge}function vt(){var ge,Re,We,yt;return ge=be,Re=u.substr(be,3),Re.toLowerCase()===M?be+=3:(Re=c,le===0&&mt(bt)),Re!==c?(We=be,le++,yt=cn(),le--,yt===c?We=void 0:(be=We,We=c),We!==c?(Re=[Re,We],ge=Re):(be=ge,ge=c)):(be=ge,ge=c),ge}function Ke(){var ge,Re,We,yt;return ge=be,Re=u.substr(be,2),Re.toLowerCase()===_?be+=2:(Re=c,le===0&&mt(Be)),Re!==c?(We=be,le++,yt=cn(),le--,yt===c?We=void 0:(be=We,We=c),We!==c?(Re=[Re,We],ge=Re):(be=ge,ge=c)):(be=ge,ge=c),ge}function nn(){var ge,Re,We,yt;return ge=be,Re=u.substr(be,2),Re.toLowerCase()===B?be+=2:(Re=c,le===0&&mt(it)),Re!==c?(We=be,le++,yt=cn(),le--,yt===c?We=void 0:(be=We,We=c),We!==c?(Re=[Re,We],ge=Re):(be=ge,ge=c)):(be=ge,ge=c),ge}function cn(){var ge;return ge=u.charAt(be),te.test(ge)?be++:(ge=c,le===0&&mt(pt)),ge}function pn(){var ge,Re;for(le++,ge=[],Re=u.charAt(be),X.test(Re)?be++:(Re=c,le===0&&mt(Ht));Re!==c;)ge.push(Re),Re=u.charAt(be),X.test(Re)?be++:(Re=c,le===0&&mt(Ht));return le--,Re=c,le===0&&mt(_t),ge}if(De=v(),f.peg$library)return{peg$result:De,peg$currPos:be,peg$FAILED:c,peg$maxFailExpected:en,peg$maxFailPos:Rn};if(De!==c&&be===u.length)return De;throw De!==c&&be<u.length&&mt(ut()),Lt(en,Rn<u.length?u.charAt(Rn):null,Rn<u.length?jt(Rn,Rn+1):jt(Rn,Rn))}return HS={StartRules:["numberFilter"],SyntaxError:a,parse:l},HS}var Qv={},WP;function mT(){if(WP)return Qv;WP=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.run_parser=n;const e=Jp();function t(r){return r instanceof Error&&"location"in r}function n(r,o){try{const a=o(r);return(0,e.isFilterExpression)(a)?{parsed:a,log:[]}:{parsed:null,log:[]}}catch(a){if(t(a)){const s=a.location,l=s?s.start.offset:0,u=s?s.end.offset-1:r.length-1;return{parsed:null,log:[{message:a.message,startIndex:l,endIndex:Math.max(l,u),severity:"error"}]}}throw a}}return Qv}var qP;function DK(){return qP||(qP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const t=Jp(),n=$K(),r=mT();e.NumberFilterExpression={parse(o){if(o.match(/^\s*$/))return{parsed:null,log:[]};const a=(0,r.run_parser)(o,n.parse);return a.parsed&&(0,t.isNumberFilter)(a.parsed)?{parsed:a.parsed,log:[]}:{parsed:null,log:a.log}},unparse(o){if(o===null)return"";switch(o.operator){case"=":return o.values.join(", ");case"!=":return"!= "+o.values.join(", ");case">":case"<":case"<=":case">=":return o.not?o.values.map(a=>o.operator==="="?`not ${a}`:`not ${o.operator} ${a}`).join(", "):o.values.map(a=>`${o.operator} ${a}`).join(", ");case"range":{const a=o.startOperator===">"?"(":"[",s=o.endOperator==="<"?")":"]",l=`${a}${o.startValue} to ${o.endValue}${s}`;return o.not?`not ${l}`:l}case"null":return o.not?"not null":"null";case"none":return o.not?"not none":"none";case"and":case"or":return o.members.map(a=>e.NumberFilterExpression.unparse(a)).join(` ${o.operator} `);case"()":{const a="("+e.NumberFilterExpression.unparse(o.expr)+")";return o.not?"not "+a:a}}return`no unparse for ${JSON.stringify(o)}`}}})(VS)),VS}var WS={},qS,YP;function AK(){if(YP)return qS;YP=1;const{conjoin:e,maybeNot:t,matchOp:n}=ex();function r(l,u){function f(){this.constructor=l}f.prototype=u.prototype,l.prototype=new f}function o(l,u,f,c){var m=Error.call(this,l);return Object.setPrototypeOf&&Object.setPrototypeOf(m,o.prototype),m.expected=u,m.found=f,m.location=c,m.name="SyntaxError",m}r(o,Error);function a(l,u,f){return f=f||" ",l.length>u?l:(u-=l.length,f+=f.repeat(u),l+f.slice(0,u))}o.prototype.format=function(l){var u="Error: "+this.message;if(this.location){var f=null,c;for(c=0;c<l.length;c++)if(l[c].source===this.location.source){f=l[c].text.split(/\r\n|\n|\r/g);break}var m=this.location.start,y=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(m):m,v=this.location.source+":"+y.line+":"+y.column;if(f){var b=this.location.end,x=a("",y.line.toString().length," "),w=f[m.line-1],S=m.line===b.line?b.column:w.length+1,k=S-m.column||1;u+=`
271
- --> `+v+`
272
- `+x+` |
273
- `+y.line+" | "+w+`
274
- `+x+" | "+a("",m.column-1," ")+a("",k,"^")}else u+=`
275
- at `+v}return u},o.buildMessage=function(l,u){var f={literal:function(w){return'"'+m(w.text)+'"'},class:function(w){var S=w.parts.map(function(k){return Array.isArray(k)?y(k[0])+"-"+y(k[1]):y(k)});return"["+(w.inverted?"^":"")+S.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(w){return w.description}};function c(w){return w.charCodeAt(0).toString(16).toUpperCase()}function m(w){return w.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+c(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+c(S)})}function y(w){return w.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+c(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+c(S)})}function v(w){return f[w.type](w)}function b(w){var S=w.map(v),k,T;if(S.sort(),S.length>0){for(k=1,T=1;k<S.length;k++)S[k-1]!==S[k]&&(S[T]=S[k],T++);S.length=T}switch(S.length){case 1:return S[0];case 2:return S[0]+" or "+S[1];default:return S.slice(0,-1).join(", ")+", or "+S[S.length-1]}}function x(w){return w?'"'+m(w)+'"':"end of input"}return"Expected "+b(l)+" but "+x(u)+" found."};function s(l,u){u=u!==void 0?u:{};var f={},c=u.grammarSource,m={stringFilter:pt},y=pt,v="-",b="(",x=")",w="\\",S=",",k=";",T="|",O=/^[^\n,;()|]/,P=/^[ \t]/,$=fe("-",!1),I=fe("(",!1),F=fe(")",!1),A=Ae("match string"),H=fe("\\",!1),L=nt(),M=Te([`
276
- `,",",";","(",")","|"],!0,!1),_=fe(",",!1),B=fe(";",!1),W=fe("|",!1),j=Ae("whitespace"),Q=Te([" "," "],!1,!1),K=function(Ne,he){return he.reduce((qe,[,Me,,Mt])=>e(qe,Me,Mt),Ne)},te=function(Ne){return t([!0,Ne])},X=function(Ne){return Ne},J=function(Ne){return{operator:"()",expr:Ne}},ne=function(Ne){return n(Ne)},oe=function(Ne){return Ne},se=function(){return","},re=function(){return";"},ie=function(){return"|"},ce=u.peg$currPos|0,me=[{line:1,column:1}],ye=ce,we=u.peg$maxFailExpected||[],Ce=u.peg$silentFails|0,$e;if(u.startRule){if(!(u.startRule in m))throw new Error(`Can't start parsing from rule "`+u.startRule+'".');y=m[u.startRule]}function fe(Ne,he){return{type:"literal",text:Ne,ignoreCase:he}}function Te(Ne,he,qe){return{type:"class",parts:Ne,inverted:he,ignoreCase:qe}}function nt(){return{type:"any"}}function ze(){return{type:"end"}}function Ae(Ne){return{type:"other",description:Ne}}function ue(Ne){var he=me[Ne],qe;if(he)return he;if(Ne>=me.length)qe=me.length-1;else for(qe=Ne;!me[--qe];);for(he=me[qe],he={line:he.line,column:he.column};qe<Ne;)l.charCodeAt(qe)===10?(he.line++,he.column=1):he.column++,qe++;return me[Ne]=he,he}function bt(Ne,he,qe){var Me=ue(Ne),Mt=ue(he),Rt={source:c,start:{offset:Ne,line:Me.line,column:Me.column},end:{offset:he,line:Mt.line,column:Mt.column}};return Rt}function Be(Ne){ce<ye||(ce>ye&&(ye=ce,we=[]),we.push(Ne))}function it(Ne,he,qe){return new o(o.buildMessage(Ne,he),Ne,he,qe)}function pt(){var Ne,he,qe,Me,Mt,Rt,gt,ct;if(Ne=ce,ot(),he=_t(),he!==f){for(qe=[],Me=ce,Mt=ot(),Rt=Xe(),Rt!==f?(gt=ot(),ct=_t(),ct!==f?(Mt=[Mt,Rt,gt,ct],Me=Mt):(ce=Me,Me=f)):(ce=Me,Me=f);Me!==f;)qe.push(Me),Me=ce,Mt=ot(),Rt=Xe(),Rt!==f?(gt=ot(),ct=_t(),ct!==f?(Mt=[Mt,Rt,gt,ct],Me=Mt):(ce=Me,Me=f)):(ce=Me,Me=f);Ne=K(he,qe)}else ce=Ne,Ne=f;return Ne}function _t(){var Ne,he,qe;return Ne=ce,l.charCodeAt(ce)===45?(he=v,ce++):(he=f,Ce===0&&Be($)),he!==f?(ot(),qe=Ht(),qe!==f?Ne=te(qe):(ce=Ne,Ne=f)):(ce=Ne,Ne=f),Ne===f&&(Ne=ce,he=Ht(),he!==f&&(he=X(he)),Ne=he),Ne}function Ht(){var Ne,he,qe,Me;return Ne=ce,l.charCodeAt(ce)===40?(he=b,ce++):(he=f,Ce===0&&Be(I)),he!==f?(ot(),qe=pt(),qe!==f?(ot(),l.charCodeAt(ce)===41?(Me=x,ce++):(Me=f,Ce===0&&Be(F)),Me!==f?Ne=J(qe):(ce=Ne,Ne=f)):(ce=Ne,Ne=f)):(ce=Ne,Ne=f),Ne===f&&(Ne=ce,he=at(),he!==f&&(he=ne(he)),Ne=he),Ne}function at(){var Ne,he,qe,Me,Mt,Rt;if(Ce++,Ne=ce,he=ce,qe=[],Me=ce,l.charCodeAt(ce)===92?(Mt=w,ce++):(Mt=f,Ce===0&&Be(H)),Mt!==f?(l.length>ce?(Rt=l.charAt(ce),ce++):(Rt=f,Ce===0&&Be(L)),Rt!==f?(Mt=[Mt,Rt],Me=Mt):(ce=Me,Me=f)):(ce=Me,Me=f),Me===f&&(Me=l.charAt(ce),O.test(Me)?ce++:(Me=f,Ce===0&&Be(M))),Me!==f)for(;Me!==f;)qe.push(Me),Me=ce,l.charCodeAt(ce)===92?(Mt=w,ce++):(Mt=f,Ce===0&&Be(H)),Mt!==f?(l.length>ce?(Rt=l.charAt(ce),ce++):(Rt=f,Ce===0&&Be(L)),Rt!==f?(Mt=[Mt,Rt],Me=Mt):(ce=Me,Me=f)):(ce=Me,Me=f),Me===f&&(Me=l.charAt(ce),O.test(Me)?ce++:(Me=f,Ce===0&&Be(M)));else qe=f;return qe!==f?he=l.substring(he,ce):he=qe,he!==f&&(he=oe(he)),Ne=he,Ce--,Ne===f&&(he=f,Ce===0&&Be(A)),Ne}function Xe(){var Ne,he;return Ne=ce,l.charCodeAt(ce)===44?(he=S,ce++):(he=f,Ce===0&&Be(_)),he!==f&&(he=se()),Ne=he,Ne===f&&(Ne=ce,l.charCodeAt(ce)===59?(he=k,ce++):(he=f,Ce===0&&Be(B)),he!==f&&(he=re()),Ne=he,Ne===f&&(Ne=ce,l.charCodeAt(ce)===124?(he=T,ce++):(he=f,Ce===0&&Be(W)),he!==f&&(he=ie()),Ne=he)),Ne}function ot(){var Ne,he;for(Ce++,Ne=[],he=l.charAt(ce),P.test(he)?ce++:(he=f,Ce===0&&Be(Q));he!==f;)Ne.push(he),he=l.charAt(ce),P.test(he)?ce++:(he=f,Ce===0&&Be(Q));return Ce--,he=f,Ce===0&&Be(j),Ne}if($e=y(),u.peg$library)return{peg$result:$e,peg$currPos:ce,peg$FAILED:f,peg$maxFailExpected:we,peg$maxFailPos:ye};if($e!==f&&ce===l.length)return $e;throw $e!==f&&ce<l.length&&Be(ze()),it(we,ye<l.length?l.charAt(ye):null,ye<l.length?bt(ye,ye+1):bt(ye,ye))}return qS={StartRules:["stringFilter"],SyntaxError:o,parse:s},qS}var GP;function jK(){return GP||(GP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const t=Jp(),n=AK(),r=ex(),o=mT();e.StringFilterExpression={parse(a){if(a.match(/^\s*$/))return{parsed:null,log:[]};const s=(0,o.run_parser)(a,n.parse);return s.parsed&&(0,t.isStringFilter)(s.parsed)?{parsed:s.parsed,log:[]}:{parsed:null,log:s.log}},unparse(a){if(a===null)return"";switch(a.operator){case"=":return a.not?a.values.map(s=>"-"+(0,r.escape)(s)).join(", "):a.values.map(s=>(0,r.escape)(s)).join(", ");case"~":return a.not?a.escaped_values.map(s=>"-"+s).join(", "):a.escaped_values.join(", ");case"starts":return a.not?a.values.map(s=>"-"+(0,r.escape)(s)+"%").join(", "):a.values.map(s=>(0,r.escape)(s)+"%").join(", ");case"ends":return a.not?a.values.map(s=>"-%"+(0,r.escape)(s)).join(", "):a.values.map(s=>"%"+(0,r.escape)(s)).join(", ");case"contains":return a.not?a.values.map(s=>"-%"+(0,r.escape)(s)+"%").join(", "):a.values.map(s=>"%"+(0,r.escape)(s)+"%").join(", ");case"or":return a.members.map(s=>e.StringFilterExpression.unparse(s)).join(" | ");case"and":return a.members.map(s=>e.StringFilterExpression.unparse(s)).join("; ");case",":return a.members.map(s=>e.StringFilterExpression.unparse(s)).join(", ");case"()":{const s="("+e.StringFilterExpression.unparse(a.expr)+")";return a.not?"-"+s:s}case"null":return a.not?"-null":"null";case"empty":return a.not?"-empty":"empty";case"none":return a.not?"-none":"none"}}}})(WS)),WS}var YS={},GS,KP;function NK(){if(KP)return GS;KP=1;const{temporalNot:e,joinTemporal:t,timeLiteral:n,mkUnits:r}=ex();function o(u,f){function c(){this.constructor=u}c.prototype=f.prototype,u.prototype=new c}function a(u,f,c,m){var y=Error.call(this,u);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=c,y.location=m,y.name="SyntaxError",y}o(a,Error);function s(u,f,c){return c=c||" ",u.length>f?u:(f-=u.length,c+=c.repeat(f),u+c.slice(0,f))}a.prototype.format=function(u){var f="Error: "+this.message;if(this.location){var c=null,m;for(m=0;m<u.length;m++)if(u[m].source===this.location.source){c=u[m].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,v=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,b=this.location.source+":"+v.line+":"+v.column;if(c){var x=this.location.end,w=s("",v.line.toString().length," "),S=c[y.line-1],k=y.line===x.line?x.column:S.length+1,T=k-y.column||1;f+=`
277
- --> `+b+`
278
- `+w+` |
279
- `+v.line+" | "+S+`
280
- `+w+" | "+s("",y.column-1," ")+s("",T,"^")}else f+=`
281
- at `+b}return f},a.buildMessage=function(u,f){var c={literal:function(S){return'"'+y(S.text)+'"'},class:function(S){var k=S.parts.map(function(T){return Array.isArray(T)?v(T[0])+"-"+v(T[1]):v(T)});return"["+(S.inverted?"^":"")+k.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(S){return S.description}};function m(S){return S.charCodeAt(0).toString(16).toUpperCase()}function y(S){return S.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+m(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+m(k)})}function v(S){return S.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+m(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+m(k)})}function b(S){return c[S.type](S)}function x(S){var k=S.map(b),T,O;if(k.sort(),k.length>0){for(T=1,O=1;T<k.length;T++)k[T-1]!==k[T]&&(k[O]=k[T],O++);k.length=O}switch(k.length){case 1:return k[0];case 2:return k[0]+" or "+k[1];default:return k.slice(0,-1).join(", ")+", or "+k[k.length-1]}}function w(S){return S?'"'+y(S)+'"':"end of input"}return"Expected "+x(u)+" but "+w(f)+" found."};function l(u,f){f=f!==void 0?f:{};var c={},m=f.grammarSource,y={temporalFilter:zu},v=zu,b="(",x=")",w="second",S="minute",k="hour",T="day",O="week",P="month",$="quarter",I="year",F="s",A="-",H=":",L="not",M="null",_="none",B="to",W="now",j="last",Q="this",K="next",te="ago",X="from",J="before",ne="after",oe="through",se="starting",re="for",ie="today",ce="yesterday",me="tomorrow",ye="and",we="or",Ce="monday",$e="tuesday",fe="wednesday",Te="thursday",nt="friday",ze="saturday",Ae="sunday",ue=/^[0-9]/,bt=/^[ Tt]/,Be=/^[.,]/,it=/^[Ww]/,pt=/^[Kk]/,_t=/^[Qq]/,Ht=/^[1234]/,at=/^[a-zA-Z]/,Xe=/^[ \t]/,ot=jn("(",!1),Ne=jn(")",!1),he=zo([["0","9"]],!1,!1),qe=jn("second",!0),Me=jn("minute",!0),Mt=jn("hour",!0),Rt=jn("day",!0),gt=jn("week",!0),ct=jn("month",!0),At=jn("quarter",!0),Wt=jn("year",!0),dn=jn("s",!0),bn=jn("-",!1),_n=zo([" ","T","t"],!1,!1),Gn=jn(":",!1),Jt=zo([".",","],!1,!1),Ln=zo(["W","w"],!1,!1),be=zo(["K","k"],!1,!1),Bn=zo(["Q","q"],!1,!1),Rn=zo(["1","2","3","4"],!1,!1),en=jn("not",!0),le=jn("null",!0),De=jn("none",!0),Le=jn("to",!0),Ye=jn("now",!0),ut=jn("last",!0),zt=jn("this",!0),Ut=jn("next",!0),jt=jn("ago",!0),mt=jn("from",!0),Lt=jn("before",!0),Ot=jn("after",!0),kt=jn("through",!0),qt=jn("starting",!0),On=jn("for",!0),Kn=jn("today",!0),xn=jn("yesterday",!0),fn=jn("tomorrow",!0),de=jn("and",!0),pe=jn("or",!0),He=jn("monday",!0),vt=jn("tuesday",!0),Ke=jn("wednesday",!0),nn=jn("thursday",!0),cn=jn("friday",!0),pn=jn("saturday",!0),ge=jn("sunday",!0),Re=zo([["a","z"],["A","Z"]],!1,!1),We=Iu("optional whitespace"),yt=zo([" "," "],!1,!1),$t=Iu("whitespace"),Tt=function(U,G){return G.reduce((q,[,Se,,Gt])=>t(q,Se,Gt),U)},wt=function(U){return e(U,!0)},Qt=function(U){return U},Sn=function(){return{operator:"null"}},hr=function(){return{operator:"none"}},ur=function(U){return{operator:"()",expr:U}},Va=function(U){return{operator:"before",before:U}},us=function(U){return{operator:"before",before:U,not:!0}},Is=function(U){return{operator:"after",after:U}},mc=function(U){return{operator:"after",after:U,not:!0}},xi=function(U,G){return{operator:U,...G}},Ls=function(U,G){return{operator:"to",fromMoment:U,toMoment:G}},$o=function(U,G){return{...G,operator:"for",begin:U}},zs=function(U){return{operator:"in",in:U}},Eu=function(U){return{operator:"in_last",...U}},ds=function(){return"last"},Si=function(){return"next"},Ru=function(U,G){return{units:G,n:U}},Rl=function(U){return U},fs=function(U){return r(U)},gc=function(){return{moment:"now"}},Fs=function(){return{moment:"today"}},Ol=function(){return{moment:"yesterday"}},Ou=function(){return{moment:"tomorrow"}},Yd=function(U){return{moment:"ago",...U}},ih=function(U){return{moment:"from_now",...U}},Pl=function(U){return{moment:U.toLowerCase(),which:"next"}},yc=function(U){return{moment:U.toLowerCase(),which:"last"}},vc=function(U,G){return{moment:U,units:G}},Bs=function(U){return{moment:U.toLowerCase(),which:"last"}},ps=function(U){return U},Pu=function(){return"this"},$u=function(){return"next"},Gd=function(){return"last"},$l=function(U){return n(U)},wa=function(U){return n(U,"week")},Du=function(U){return n(U,"quarter")},Dl=function(U){return n(U,"minute")},wi=function(U){return n(U,"hour")},Au=function(U){return n(U,"day")},bc=function(U){return n(U,"month")},ju=function(U){return n(U,"year")},xc=function(U){return U},to=function(){return"or"},Nu=function(){return"and"},N=f.peg$currPos|0,vo=[{line:1,column:1}],no=N,Ha=f.peg$maxFailExpected||[],Ee=f.peg$silentFails|0,hs;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function jn(U,G){return{type:"literal",text:U,ignoreCase:G}}function zo(U,G,q){return{type:"class",parts:U,inverted:G,ignoreCase:q}}function _s(){return{type:"end"}}function Iu(U){return{type:"other",description:U}}function Kd(U){var G=vo[U],q;if(G)return G;if(U>=vo.length)q=vo.length-1;else for(q=U;!vo[--q];);for(G=vo[q],G={line:G.line,column:G.column};q<U;)u.charCodeAt(q)===10?(G.line++,G.column=1):G.column++,q++;return vo[U]=G,G}function Qd(U,G,q){var Se=Kd(U),Gt=Kd(G),Vt={source:m,start:{offset:U,line:Se.line,column:Se.column},end:{offset:G,line:Gt.line,column:Gt.column}};return Vt}function Ze(U){N<no||(N>no&&(no=N,Ha=[]),Ha.push(U))}function Lu(U,G,q){return new a(a.buildMessage(U,G),U,G,q)}function zu(){var U,G,q,Se,Gt,Vt,Pn,Qn;if(U=N,G=Sc(),G!==c){for(q=[],Se=N,Gt=gs(),Vt=Zd(),Vt!==c?(Pn=gs(),Qn=Sc(),Qn!==c?(Gt=[Gt,Vt,Pn,Qn],Se=Gt):(N=Se,Se=c)):(N=Se,Se=c);Se!==c;)q.push(Se),Se=N,Gt=gs(),Vt=Zd(),Vt!==c?(Pn=gs(),Qn=Sc(),Qn!==c?(Gt=[Gt,Vt,Pn,Qn],Se=Gt):(N=Se,Se=c)):(N=Se,Se=c);U=Tt(G,q)}else N=U,U=c;return U}function Sc(){var U,G,q,Se;return U=N,G=Fu(),G!==c?(q=Gr(),q!==c?(Se=Xd(),Se!==c?U=wt(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=Xd(),G!==c&&(G=Qt(G)),U=G),U}function Xd(){var U,G,q,Se,Gt,Vt;return U=N,G=ch(),G!==c&&(G=Sn()),U=G,U===c&&(U=N,G=Jd(),G!==c&&(G=hr()),U=G,U===c&&(U=N,u.charCodeAt(N)===40?(G=b,N++):(G=c,Ee===0&&Ze(ot)),G!==c?(q=gs(),Se=zu(),Se!==c?(Gt=gs(),u.charCodeAt(N)===41?(Vt=x,N++):(Vt=c,Ee===0&&Ze(Ne)),Vt!==c?U=ur(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=hh(),G!==c?(q=Gr(),q!==c?(Se=ea(),Se!==c?U=Va(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=Hs(),G!==c?(q=Gr(),q!==c?(Se=ea(),Se!==c?U=us(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=mh(),G!==c?(q=Gr(),q!==c?(Se=ea(),Se!==c?U=Is(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=_u(),G!==c?(q=Gr(),q!==c?(Se=ea(),Se!==c?U=mc(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=Us(),G!==c?(q=Gr(),q!==c?(Se=Al(),Se!==c?U=xi(G,Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=ea(),G!==c?(q=Gr(),q!==c?(Se=uh(),Se!==c?(Gt=Gr(),Gt!==c?(Vt=ea(),Vt!==c?U=Ls(G,Vt):(N=U,U=c)):(N=U,U=c)):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=ea(),G!==c?(q=Gr(),q!==c?(Se=gh(),Se!==c?(Gt=Gr(),Gt!==c?(Vt=Al(),Vt!==c?U=$o(G,Vt):(N=U,U=c)):(N=U,U=c)):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=ea(),G!==c&&(G=zs(G)),U=G,U===c&&(U=N,G=Al(),G!==c&&(G=Eu(G)),U=G))))))))))),U}function Us(){var U,G;return U=N,G=Bu(),G!==c&&(G=ds()),U=G,U===c&&(U=N,G=wc(),G!==c&&(G=Si()),U=G),U}function Al(){var U,G,q,Se;return U=N,G=ms(),G!==c?(q=Gr(),q!==c?(Se=Vs(),Se!==c?U=Ru(G,Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U}function ms(){var U,G,q,Se;if(U=N,G=N,q=[],Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c)for(;Se!==c;)q.push(Se),Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he));else q=c;return q!==c?G=u.substring(G,N):G=q,G!==c&&(G=Rl(G)),U=G,U}function Vs(){var U,G,q,Se,Gt;return U=N,G=N,q=u.substr(N,6),q.toLowerCase()===w?N+=6:(q=c,Ee===0&&Ze(qe)),q===c&&(q=u.substr(N,6),q.toLowerCase()===S?N+=6:(q=c,Ee===0&&Ze(Me)),q===c&&(q=u.substr(N,4),q.toLowerCase()===k?N+=4:(q=c,Ee===0&&Ze(Mt)),q===c&&(q=u.substr(N,3),q.toLowerCase()===T?N+=3:(q=c,Ee===0&&Ze(Rt)),q===c&&(q=u.substr(N,4),q.toLowerCase()===O?N+=4:(q=c,Ee===0&&Ze(gt)),q===c&&(q=u.substr(N,5),q.toLowerCase()===P?N+=5:(q=c,Ee===0&&Ze(ct)),q===c&&(q=u.substr(N,7),q.toLowerCase()===$?N+=7:(q=c,Ee===0&&Ze(At)),q===c&&(q=u.substr(N,4),q.toLowerCase()===I?N+=4:(q=c,Ee===0&&Ze(Wt))))))))),q!==c?G=u.substring(G,N):G=q,G!==c?(q=u.charAt(N),q.toLowerCase()===F?N++:(q=c,Ee===0&&Ze(dn)),q===c&&(q=null),Se=N,Ee++,Gt=or(),Ee--,Gt===c?Se=void 0:(N=Se,Se=c),Se!==c?U=fs(G):(N=U,U=c)):(N=U,U=c),U}function ea(){var U,G,q,Se,Gt,Vt;return U=N,G=ef(),G!==c&&(G=gc()),U=G,U===c&&(U=N,G=tf(),G!==c&&(G=Fs()),U=G,U===c&&(U=N,G=nf(),G!==c&&(G=Ol()),U=G,U===c&&(U=N,G=rf(),G!==c&&(G=Ou()),U=G,U===c&&(U=N,G=Al(),G!==c?(q=Gr(),q!==c?(Se=fh(),Se!==c?U=Yd(G):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=Al(),G!==c?(q=Gr(),q!==c?(Se=ph(),Se!==c?(Gt=Gr(),Gt!==c?(Vt=ef(),Vt!==c?U=ih(G):(N=U,U=c)):(N=U,U=c)):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=wc(),G!==c?(q=Gr(),q!==c?(Se=jl(),Se!==c?U=Pl(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=Bu(),G!==c?(q=Gr(),q!==c?(Se=jl(),Se!==c?U=yc(Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=sh(),G!==c?(q=Gr(),q!==c?(Se=Vs(),Se!==c?U=vc(G,Se):(N=U,U=c)):(N=U,U=c)):(N=U,U=c),U===c&&(U=N,G=jl(),G!==c&&(G=Bs(G)),U=G,U===c&&(U=N,G=lh(),G!==c&&(G=ps(G)),U=G)))))))))),U}function sh(){var U,G;return U=N,G=dh(),G!==c&&(G=Pu()),U=G,U===c&&(U=N,G=wc(),G!==c&&(G=$u()),U=G,U===c&&(U=N,G=Bu(),G!==c&&(G=Gd()),U=G)),U}function lh(){var U,G,q,Se,Gt,Vt,Pn,Qn,Xn,Yt,Tr,Mr,un,xr,Ur,Hr,Wa,fa,zn,Il,pa,ys,ta,ro,Ll,bo;if(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c)if(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c)if(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c)if(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c)if(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c)if(Xn=u.charAt(N),ue.test(Xn)?N++:(Xn=c,Ee===0&&Ze(he)),Xn!==c)if(Yt=u.charAt(N),ue.test(Yt)?N++:(Yt=c,Ee===0&&Ze(he)),Yt!==c)if(u.charCodeAt(N)===45?(Tr=A,N++):(Tr=c,Ee===0&&Ze(bn)),Tr!==c)if(Mr=u.charAt(N),ue.test(Mr)?N++:(Mr=c,Ee===0&&Ze(he)),Mr!==c)if(un=u.charAt(N),ue.test(un)?N++:(un=c,Ee===0&&Ze(he)),un!==c)if(xr=u.charAt(N),bt.test(xr)?N++:(xr=c,Ee===0&&Ze(_n)),xr!==c)if(Ur=u.charAt(N),ue.test(Ur)?N++:(Ur=c,Ee===0&&Ze(he)),Ur!==c)if(Hr=u.charAt(N),ue.test(Hr)?N++:(Hr=c,Ee===0&&Ze(he)),Hr!==c)if(u.charCodeAt(N)===58?(Wa=H,N++):(Wa=c,Ee===0&&Ze(Gn)),Wa!==c)if(fa=u.charAt(N),ue.test(fa)?N++:(fa=c,Ee===0&&Ze(he)),fa!==c)if(zn=u.charAt(N),ue.test(zn)?N++:(zn=c,Ee===0&&Ze(he)),zn!==c)if(u.charCodeAt(N)===58?(Il=H,N++):(Il=c,Ee===0&&Ze(Gn)),Il!==c)if(pa=u.charAt(N),ue.test(pa)?N++:(pa=c,Ee===0&&Ze(he)),pa!==c)if(ys=u.charAt(N),ue.test(ys)?N++:(ys=c,Ee===0&&Ze(he)),ys!==c){if(ta=N,ro=u.charAt(N),Be.test(ro)?N++:(ro=c,Ee===0&&Ze(Jt)),ro!==c){for(Ll=[],bo=u.charAt(N),ue.test(bo)?N++:(bo=c,Ee===0&&Ze(he));bo!==c;)Ll.push(bo),bo=u.charAt(N),ue.test(bo)?N++:(bo=c,Ee===0&&Ze(he));ro=[ro,Ll],ta=ro}else N=ta,ta=c;ta===c&&(ta=null),Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt,Tr,Mr,un,xr,Ur,Hr,Wa,fa,zn,Il,pa,ys,ta],q=Se}else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;else N=q,q=c;return q!==c?G=u.substring(G,N):G=q,G!==c&&(G=$l(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c?(Xn=u.charAt(N),ue.test(Xn)?N++:(Xn=c,Ee===0&&Ze(he)),Xn!==c?(Yt=u.charAt(N),ue.test(Yt)?N++:(Yt=c,Ee===0&&Ze(he)),Yt!==c?(u.charCodeAt(N)===45?(Tr=A,N++):(Tr=c,Ee===0&&Ze(bn)),Tr!==c?(Mr=u.charAt(N),ue.test(Mr)?N++:(Mr=c,Ee===0&&Ze(he)),Mr!==c?(un=u.charAt(N),ue.test(un)?N++:(un=c,Ee===0&&Ze(he)),un!==c?(u.charCodeAt(N)===45?(xr=A,N++):(xr=c,Ee===0&&Ze(bn)),xr!==c?(Ur=u.charAt(N),it.test(Ur)?N++:(Ur=c,Ee===0&&Ze(Ln)),Ur!==c?(Hr=u.charAt(N),pt.test(Hr)?N++:(Hr=c,Ee===0&&Ze(be)),Hr!==c?(Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt,Tr,Mr,un,xr,Ur,Hr],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=wa(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c?(Xn=u.charAt(N),_t.test(Xn)?N++:(Xn=c,Ee===0&&Ze(Bn)),Xn!==c?(Yt=u.charAt(N),Ht.test(Yt)?N++:(Yt=c,Ee===0&&Ze(Rn)),Yt!==c?(Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=Du(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c?(Xn=u.charAt(N),ue.test(Xn)?N++:(Xn=c,Ee===0&&Ze(he)),Xn!==c?(Yt=u.charAt(N),ue.test(Yt)?N++:(Yt=c,Ee===0&&Ze(he)),Yt!==c?(u.charCodeAt(N)===45?(Tr=A,N++):(Tr=c,Ee===0&&Ze(bn)),Tr!==c?(Mr=u.charAt(N),ue.test(Mr)?N++:(Mr=c,Ee===0&&Ze(he)),Mr!==c?(un=u.charAt(N),ue.test(un)?N++:(un=c,Ee===0&&Ze(he)),un!==c?(xr=u.charAt(N),bt.test(xr)?N++:(xr=c,Ee===0&&Ze(_n)),xr!==c?(Ur=u.charAt(N),ue.test(Ur)?N++:(Ur=c,Ee===0&&Ze(he)),Ur!==c?(Hr=u.charAt(N),ue.test(Hr)?N++:(Hr=c,Ee===0&&Ze(he)),Hr!==c?(u.charCodeAt(N)===58?(Wa=H,N++):(Wa=c,Ee===0&&Ze(Gn)),Wa!==c?(fa=u.charAt(N),ue.test(fa)?N++:(fa=c,Ee===0&&Ze(he)),fa!==c?(zn=u.charAt(N),ue.test(zn)?N++:(zn=c,Ee===0&&Ze(he)),zn!==c?(Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt,Tr,Mr,un,xr,Ur,Hr,Wa,fa,zn],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=Dl(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c?(Xn=u.charAt(N),ue.test(Xn)?N++:(Xn=c,Ee===0&&Ze(he)),Xn!==c?(Yt=u.charAt(N),ue.test(Yt)?N++:(Yt=c,Ee===0&&Ze(he)),Yt!==c?(u.charCodeAt(N)===45?(Tr=A,N++):(Tr=c,Ee===0&&Ze(bn)),Tr!==c?(Mr=u.charAt(N),ue.test(Mr)?N++:(Mr=c,Ee===0&&Ze(he)),Mr!==c?(un=u.charAt(N),ue.test(un)?N++:(un=c,Ee===0&&Ze(he)),un!==c?(xr=u.charAt(N),bt.test(xr)?N++:(xr=c,Ee===0&&Ze(_n)),xr!==c?(Ur=u.charAt(N),ue.test(Ur)?N++:(Ur=c,Ee===0&&Ze(he)),Ur!==c?(Hr=u.charAt(N),ue.test(Hr)?N++:(Hr=c,Ee===0&&Ze(he)),Hr!==c?(Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt,Tr,Mr,un,xr,Ur,Hr],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=wi(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c?(Xn=u.charAt(N),ue.test(Xn)?N++:(Xn=c,Ee===0&&Ze(he)),Xn!==c?(Yt=u.charAt(N),ue.test(Yt)?N++:(Yt=c,Ee===0&&Ze(he)),Yt!==c?(u.charCodeAt(N)===45?(Tr=A,N++):(Tr=c,Ee===0&&Ze(bn)),Tr!==c?(Mr=u.charAt(N),ue.test(Mr)?N++:(Mr=c,Ee===0&&Ze(he)),Mr!==c?(un=u.charAt(N),ue.test(un)?N++:(un=c,Ee===0&&Ze(he)),un!==c?(Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt,Tr,Mr,un],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=Au(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(u.charCodeAt(N)===45?(Qn=A,N++):(Qn=c,Ee===0&&Ze(bn)),Qn!==c?(Xn=u.charAt(N),ue.test(Xn)?N++:(Xn=c,Ee===0&&Ze(he)),Xn!==c?(Yt=u.charAt(N),ue.test(Yt)?N++:(Yt=c,Ee===0&&Ze(he)),Yt!==c?(Se=[Se,Gt,Vt,Pn,Qn,Xn,Yt],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=bc(G)),U=G,U===c&&(U=N,G=N,q=N,Se=u.charAt(N),ue.test(Se)?N++:(Se=c,Ee===0&&Ze(he)),Se!==c?(Gt=u.charAt(N),ue.test(Gt)?N++:(Gt=c,Ee===0&&Ze(he)),Gt!==c?(Vt=u.charAt(N),ue.test(Vt)?N++:(Vt=c,Ee===0&&Ze(he)),Vt!==c?(Pn=u.charAt(N),ue.test(Pn)?N++:(Pn=c,Ee===0&&Ze(he)),Pn!==c?(Se=[Se,Gt,Vt,Pn],q=Se):(N=q,q=c)):(N=q,q=c)):(N=q,q=c)):(N=q,q=c),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=ju(G)),U=G))))))),U}function jl(){var U,G,q;return U=N,G=N,q=Ws(),q===c&&(q=yh(),q===c&&(q=vh(),q===c&&(q=bh(),q===c&&(q=sf(),q===c&&(q=lf(),q===c&&(q=Nl())))))),q!==c?G=u.substring(G,N):G=q,G!==c&&(G=xc(G)),U=G,U}function Zd(){var U,G;return U=N,G=af(),G!==c&&(G=to()),U=G,U===c&&(U=N,G=of(),G!==c&&(G=Nu()),U=G),U}function Fu(){var U,G,q,Se;return U=N,G=u.substr(N,3),G.toLowerCase()===L?N+=3:(G=c,Ee===0&&Ze(en)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function ch(){var U,G,q,Se;return U=N,G=u.substr(N,4),G.toLowerCase()===M?N+=4:(G=c,Ee===0&&Ze(le)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function Jd(){var U,G,q,Se;return U=N,G=u.substr(N,4),G.toLowerCase()===_?N+=4:(G=c,Ee===0&&Ze(De)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function uh(){var U,G,q,Se;return U=N,G=u.substr(N,2),G.toLowerCase()===B?N+=2:(G=c,Ee===0&&Ze(Le)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function ef(){var U,G,q,Se;return U=N,G=u.substr(N,3),G.toLowerCase()===W?N+=3:(G=c,Ee===0&&Ze(Ye)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function Bu(){var U,G,q,Se;return U=N,G=u.substr(N,4),G.toLowerCase()===j?N+=4:(G=c,Ee===0&&Ze(ut)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function dh(){var U,G,q,Se;return U=N,G=u.substr(N,4),G.toLowerCase()===Q?N+=4:(G=c,Ee===0&&Ze(zt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function wc(){var U,G,q,Se;return U=N,G=u.substr(N,4),G.toLowerCase()===K?N+=4:(G=c,Ee===0&&Ze(Ut)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function fh(){var U,G,q,Se;return U=N,G=u.substr(N,3),G.toLowerCase()===te?N+=3:(G=c,Ee===0&&Ze(jt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function ph(){var U,G,q,Se;return U=N,G=u.substr(N,4),G.toLowerCase()===X?N+=4:(G=c,Ee===0&&Ze(mt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function hh(){var U,G,q,Se;return U=N,G=u.substr(N,6),G.toLowerCase()===J?N+=6:(G=c,Ee===0&&Ze(Lt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function mh(){var U,G,q,Se;return U=N,G=u.substr(N,5),G.toLowerCase()===ne?N+=5:(G=c,Ee===0&&Ze(Ot)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function _u(){var U,G,q,Se;return U=N,G=u.substr(N,7),G.toLowerCase()===oe?N+=7:(G=c,Ee===0&&Ze(kt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function Hs(){var U,G,q,Se;return U=N,G=u.substr(N,8),G.toLowerCase()===se?N+=8:(G=c,Ee===0&&Ze(qt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function gh(){var U,G,q,Se;return U=N,G=u.substr(N,3),G.toLowerCase()===re?N+=3:(G=c,Ee===0&&Ze(On)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function tf(){var U,G,q,Se;return U=N,G=u.substr(N,5),G.toLowerCase()===ie?N+=5:(G=c,Ee===0&&Ze(Kn)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function nf(){var U,G,q,Se;return U=N,G=u.substr(N,9),G.toLowerCase()===ce?N+=9:(G=c,Ee===0&&Ze(xn)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function rf(){var U,G,q,Se;return U=N,G=u.substr(N,8),G.toLowerCase()===me?N+=8:(G=c,Ee===0&&Ze(fn)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function of(){var U,G,q,Se;return U=N,G=u.substr(N,3),G.toLowerCase()===ye?N+=3:(G=c,Ee===0&&Ze(de)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function af(){var U,G,q,Se;return U=N,G=u.substr(N,2),G.toLowerCase()===we?N+=2:(G=c,Ee===0&&Ze(pe)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function Ws(){var U,G,q,Se;return U=N,G=u.substr(N,6),G.toLowerCase()===Ce?N+=6:(G=c,Ee===0&&Ze(He)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function yh(){var U,G,q,Se;return U=N,G=u.substr(N,7),G.toLowerCase()===$e?N+=7:(G=c,Ee===0&&Ze(vt)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function vh(){var U,G,q,Se;return U=N,G=u.substr(N,9),G.toLowerCase()===fe?N+=9:(G=c,Ee===0&&Ze(Ke)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function bh(){var U,G,q,Se;return U=N,G=u.substr(N,8),G.toLowerCase()===Te?N+=8:(G=c,Ee===0&&Ze(nn)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function sf(){var U,G,q,Se;return U=N,G=u.substr(N,6),G.toLowerCase()===nt?N+=6:(G=c,Ee===0&&Ze(cn)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function lf(){var U,G,q,Se;return U=N,G=u.substr(N,8),G.toLowerCase()===ze?N+=8:(G=c,Ee===0&&Ze(pn)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function Nl(){var U,G,q,Se;return U=N,G=u.substr(N,6),G.toLowerCase()===Ae?N+=6:(G=c,Ee===0&&Ze(ge)),G!==c?(q=N,Ee++,Se=or(),Ee--,Se===c?q=void 0:(N=q,q=c),q!==c?(G=[G,q],U=G):(N=U,U=c)):(N=U,U=c),U}function or(){var U;return U=u.charAt(N),at.test(U)?N++:(U=c,Ee===0&&Ze(Re)),U}function gs(){var U,G;for(Ee++,U=[],G=u.charAt(N),Xe.test(G)?N++:(G=c,Ee===0&&Ze(yt));G!==c;)U.push(G),G=u.charAt(N),Xe.test(G)?N++:(G=c,Ee===0&&Ze(yt));return Ee--,G=c,Ee===0&&Ze(We),U}function Gr(){var U,G;if(Ee++,U=[],G=u.charAt(N),Xe.test(G)?N++:(G=c,Ee===0&&Ze(yt)),G!==c)for(;G!==c;)U.push(G),G=u.charAt(N),Xe.test(G)?N++:(G=c,Ee===0&&Ze(yt));else U=c;return Ee--,U===c&&(G=c,Ee===0&&Ze($t)),U}if(hs=v(),f.peg$library)return{peg$result:hs,peg$currPos:N,peg$FAILED:c,peg$maxFailExpected:Ha,peg$maxFailPos:no};if(hs!==c&&N===u.length)return hs;throw hs!==c&&N<u.length&&Ze(_s()),Lu(Ha,no<u.length?u.charAt(no):null,no<u.length?Qd(no,no+1):Qd(no,no))}return GS={StartRules:["temporalFilter"],SyntaxError:a,parse:l},GS}var QP;function IK(){return QP||(QP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const t=Jp(),n=NK(),r=mT();e.TemporalFilterExpression={parse(l){if(l.match(/^\s*$/))return{parsed:null,log:[]};const u=(0,r.run_parser)(l,n.parse);return u.parsed&&(0,t.isTemporalFilter)(u.parsed)?{parsed:u.parsed,log:[]}:{parsed:null,log:u.log}},unparse(l){if(l===null)return"";switch(l.operator){case"null":return o(l,"null");case"none":return o(l,"none");case"in":return o(l,s(l.in));case"()":return o(l,"("+e.TemporalFilterExpression.unparse(l.expr)+")");case"in_last":return o(l,a(l));case"last":case"next":return o(l,`${l.operator} ${a(l)}`);case"before":return`${l.not?"starting":"before"} ${s(l.before)}`;case"after":return`${l.not?"through":"after"} ${s(l.after)}`;case"to":return o(l,`${s(l.fromMoment)} to ${s(l.toMoment)}`);case"for":return o(l,`${s(l.begin)} for ${a(l)}`);case"or":return l.members.map(u=>e.TemporalFilterExpression.unparse(u)).join(" or ");case"and":return l.members.map(u=>e.TemporalFilterExpression.unparse(u)).join(" and ")}}};function o(l,u){return"not"in l&&l.not?"not "+u:u}function a(l){return l.n==="1"?`1 ${l.units}`:`${l.n} ${l.units}s`}function s(l){switch(l.moment){case"literal":return l.literal;case"now":case"today":case"yesterday":case"tomorrow":return l.moment;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return l.which==="next"?"next "+l.moment:l.moment;case"this":case"next":case"last":return`${l.moment} ${l.units}`;case"ago":return`${a(l)} ago`;case"from_now":return`${a(l)} from now`}}})(YS)),YS}var XP;function LK(){return XP||(XP=1,(function(e){var t=td&&td.__createBinding||(Object.create?(function(l,u,f,c){c===void 0&&(c=f);var m=Object.getOwnPropertyDescriptor(u,f);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,c,m)}):(function(l,u,f,c){c===void 0&&(c=f),l[c]=u[f]})),n=td&&td.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&t(u,l,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,n(Jp(),e);var r=PK();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return r.BooleanFilterExpression}});var o=DK();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return o.NumberFilterExpression}});var a=jK();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return a.StringFilterExpression}});var s=IK();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return s.TemporalFilterExpression}})})(td)),td}var as=LK(),Ud=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},FK=class{#e=zK;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},bd=new FK;function BK(e){setTimeout(e,0)}var $d=typeof window>"u"||"Deno"in globalThis;function ia(){}function _K(e,t){return typeof e=="function"?e(t):e}function fC(e){return typeof e=="number"&&e>=0&&e!==1/0}function FI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lu(e,t){return typeof e=="function"?e(t):e}function Li(e,t){return typeof e=="function"?e(t):e}function ZP(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==gT(s,t.options))return!1}else if(!Lg(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function JP(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Dd(t.options.mutationKey)!==Dd(a))return!1}else if(!Lg(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function gT(e,t){return(t?.queryKeyHashFn||Dd)(e)}function Dd(e){return JSON.stringify(e,(t,n)=>pC(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Lg(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Lg(e[n],t[n])):!1}var UK=Object.prototype.hasOwnProperty;function yT(e,t){if(e===t)return e;const n=e$(e)&&e$(t);if(!n&&!(pC(e)&&pC(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,l=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=n?f:a[f],m=e[c],y=t[c];if(m===y){l[c]=m,(n?f<o:UK.call(e,c))&&u++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){l[c]=y;continue}const v=yT(m,y);l[c]=v,v===m&&u++}return o===s&&u===o?e:l}function zg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function e$(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pC(e){if(!t$(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!t$(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function t$(e){return Object.prototype.toString.call(e)==="[object Object]"}function VK(e){return new Promise(t=>{bd.setTimeout(t,e)})}function hC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?yT(e,t):t}function HK(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function WK(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vT=Symbol();function BI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vT?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function _I(e,t){return typeof e=="function"?e(...t):!!e}var qK=class extends Ud{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!$d&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},bT=new qK;function mC(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var YK=BK;function GK(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=YK;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||s()}return u},batchCalls:l=>(...u)=>{a(()=>{l(...u)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var po=GK(),KK=class extends Ud{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!$d&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Jb=new KK;function QK(e){return Math.min(1e3*2**e,3e4)}function UI(e){return(e??"online")==="online"?Jb.isOnline():!0}var gC=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function VI(e){let t=!1,n=0,r;const o=mC(),a=()=>o.status!=="pending",s=x=>{if(!a()){const w=new gC(x);y(w),e.onCancel?.(w)}},l=()=>{t=!0},u=()=>{t=!1},f=()=>bT.isFocused()&&(e.networkMode==="always"||Jb.isOnline())&&e.canRun(),c=()=>UI(e.networkMode)&&e.canRun(),m=x=>{a()||(r?.(),o.resolve(x))},y=x=>{a()||(r?.(),o.reject(x))},v=()=>new Promise(x=>{r=w=>{(a()||f())&&x(w)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),b=()=>{if(a())return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(m).catch(S=>{if(a())return;const k=e.retry??($d?0:3),T=e.retryDelay??QK,O=typeof T=="function"?T(n,S):T,P=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,S);if(t||!P){y(S);return}n++,e.onFail?.(n,S),VK(O).then(()=>f()?void 0:v()).then(()=>{t?y(S):b()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:u,canStart:c,start:()=>(c()?b():v().then(b),o)}}var HI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fC(this.gcTime)&&(this.#e=bd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??($d?1/0:300*1e3))}clearGcTimeout(){this.#e&&(bd.clearTimeout(this.#e),this.#e=void 0)}},XK=class extends HI{#e;#t;#n;#o;#r;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=n$(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=n$(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=hC(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(ia).catch(ia):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Li(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>lu(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!FI(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const l=BI(this.options,t),f=(()=>{const c={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(c),c})();return this.#s=!1,this.options.persister?this.options.persister(l,f,this):l(f)},s=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(l),l})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=VI({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:l=>{l instanceof gC&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,u)=>{this.#i({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof gC){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#i({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...WI(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),po.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function WI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:UI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function n$(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xT=class extends Ud{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=mC(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#a;#s;#i;#c;#l;#d;#u;#p;#f;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),r$(this.#t,this.options)?this.#g():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yC(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yC(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Li(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!zg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&o$(this.#t,n,this.options,t)&&this.#g(),this.updateResult(),r&&(this.#t!==n||Li(this.options.enabled,this.#t)!==Li(t.enabled,this.#t)||lu(this.options.staleTime,this.#t)!==lu(t.staleTime,this.#t))&&this.#y();const o=this.#h();r&&(this.#t!==n||Li(this.options.enabled,this.#t)!==Li(t.enabled,this.#t)||o!==this.#f)&&this.#v(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return JK(this,n)&&(this.#o=n,this.#a=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#g({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#g(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ia)),t}#y(){this.#x();const e=lu(this.options.staleTime,this.#t);if($d||this.#o.isStale||!fC(e))return;const n=FI(this.#o.dataUpdatedAt,e)+1;this.#u=bd.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#h(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#S(),this.#f=e,!($d||Li(this.options.enabled,this.#t)===!1||!fC(this.#f)||this.#f===0)&&(this.#p=bd.setInterval(()=>{(this.options.refetchIntervalInBackground||bT.isFocused())&&this.#g()},this.#f))}#b(){this.#y(),this.#v(this.#h())}#x(){this.#u&&(bd.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#p&&(bd.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,a=this.#r,s=this.#a,u=e!==n?e.state:this.#n,{state:f}=e;let c={...f},m=!1,y;if(t._optimisticResults){const F=this.hasListeners(),A=!F&&r$(e,t),H=F&&o$(e,n,t,r);(A||H)&&(c={...c,...WI(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:v,errorUpdatedAt:b,status:x}=c;y=c.data;let w=!1;if(t.placeholderData!==void 0&&y===void 0&&x==="pending"){let F;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(F=o.data,w=!0):F=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,F!==void 0&&(x="success",y=hC(o?.data,F,t),m=!0)}if(t.select&&y!==void 0&&!w)if(o&&y===a?.data&&t.select===this.#c)y=this.#l;else try{this.#c=t.select,y=t.select(y),y=hC(o?.data,y,t),this.#l=y,this.#i=null}catch(F){this.#i=F}this.#i&&(v=this.#i,y=this.#l,b=Date.now(),x="error");const S=c.fetchStatus==="fetching",k=x==="pending",T=x==="error",O=k&&S,P=y!==void 0,I={status:x,fetchStatus:c.fetchStatus,isPending:k,isSuccess:x==="success",isError:T,isInitialLoading:O,isLoading:O,data:y,dataUpdatedAt:c.dataUpdatedAt,error:v,errorUpdatedAt:b,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!k,isLoadingError:T&&!P,isPaused:c.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:T&&P,isStale:ST(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Li(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const F=L=>{I.status==="error"?L.reject(I.error):I.data!==void 0&&L.resolve(I.data)},A=()=>{const L=this.#s=I.promise=mC();F(L)},H=this.#s;switch(H.status){case"pending":e.queryHash===n.queryHash&&F(H);break;case"fulfilled":(I.status==="error"||I.data!==H.value)&&A();break;case"rejected":(I.status!=="error"||I.error!==H.reason)&&A();break}}return I}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#t),zg(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const a=new Set(o??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#o).some(s=>{const l=s;return this.#o[l]!==e[l]&&a.has(l)})};this.#C({listeners:n()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){po.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ZK(e,t){return Li(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function r$(e,t){return ZK(e,t)||e.state.data!==void 0&&yC(e,t,t.refetchOnMount)}function yC(e,t,n){if(Li(t.enabled,e)!==!1&&lu(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ST(e,t)}return!1}function o$(e,t,n,r){return(e!==t||Li(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ST(e,n)}function ST(e,t){return Li(t.enabled,e)!==!1&&e.isStaleByTime(lu(t.staleTime,e))}function JK(e,t){return!zg(e.getCurrentResult(),t)}function a$(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},u=0;const f=async()=>{let c=!1;const m=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},y=BI(t.options,t.fetchOptions),v=async(b,x,w)=>{if(c)return Promise.reject();if(x==null&&b.pages.length)return Promise.resolve(b);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};return m($),$})(),T=await y(k),{maxPages:O}=t.options,P=w?WK:HK;return{pages:P(b.pages,T,O),pageParams:P(b.pageParams,x,O)}};if(o&&a.length){const b=o==="backward",x=b?eQ:i$,w={pages:a,pageParams:s},S=x(r,w);l=await v(w,S,b)}else{const b=e??a.length;do{const x=u===0?s[0]??r.initialPageParam:i$(r,l);if(u>0&&x==null)break;l=await v(l,x),u++}while(u<b)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function i$(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function eQ(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var tQ=class extends HI{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=VI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const a=await this.#o.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#n.config.onError?.(a,e,this.state.context,this,n),await this.options.onError?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,a,e,this.state.context,n),a}finally{this.#r({type:"error",error:a})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),po.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function qI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nQ=class extends Ud{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new tQ({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Xv(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Xv(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Xv(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Xv(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){po.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>JP(t,n))}findAll(e={}){return this.getAll().filter(t=>JP(e,t))}notify(e){po.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return po.batch(()=>Promise.all(e.map(t=>t.continue().catch(ia))))}};function Xv(e){return e.options.scope?.id}var rQ=class extends Ud{#e;#t=void 0;#n;#o;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),zg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Dd(n.mutationKey)!==Dd(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(t,n){return this.#o=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??qI();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){po.batch(()=>{if(this.#o&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#o.onSuccess?.(t.data,n,r,o),this.#o.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#o.onError?.(t.error,n,r,o),this.#o.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#t)})})}};function s$(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function oQ(e,t,n){const r=e.slice(0);return r[t]=n,r}var aQ=class extends Ud{#e;#t;#n;#o;#r;#a;#s;#i;#c=[];constructor(e,t,n){super(),this.#e=e,this.#o=n,this.#n=[],this.#r=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#o=t,po.batch(()=>{const n=this.#r,r=this.#u(this.#n);this.#c=r,r.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions));const o=r.map(c=>c.observer),a=o.map(c=>c.getCurrentResult()),s=n.length!==o.length,l=o.some((c,m)=>c!==n[m]),u=s||l,f=u?!0:a.some((c,m)=>{const y=this.#t[m];return!y||!zg(c,y)});!u&&!f||(u&&(this.#r=o),this.#t=a,this.hasListeners()&&(u&&(s$(n,o).forEach(c=>{c.destroy()}),s$(o,n).forEach(c=>{c.subscribe(m=>{this.#p(c,m)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[r,o=>this.#d(o??r,t),()=>this.#l(r,n)]}#l(e,t){return t.map((n,r)=>{const o=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,a=>{t.forEach(s=>{s.observer.trackProp(a)})})})}#d(e,t){return t?((!this.#a||this.#t!==this.#i||t!==this.#s)&&(this.#s=t,this.#i=this.#t,this.#a=yT(this.#a,t(e))),this.#a):e}#u(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const o=this.#e.defaultQueryOptions(r),a=t.get(o.queryHash);a?n.push({defaultedQueryOptions:o,observer:a}):n.push({defaultedQueryOptions:o,observer:new xT(this.#e,o)})}),n}#p(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#t=oQ(this.#t,n,t),this.#f())}#f(){if(this.hasListeners()){const e=this.#a,t=this.#l(this.#t,this.#c),n=this.#d(t,this.#o?.combine);e!==n&&po.batch(()=>{this.listeners.forEach(r=>{r(this.#t)})})}}},iQ=class extends Ud{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??gT(r,t);let a=this.get(o);return a||(a=new XK({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){po.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ZP(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ZP(e,n)):t}notify(e){po.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){po.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){po.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},sQ=class{#e;#t;#n;#o;#r;#a;#s;#i;constructor(e={}){this.#e=e.queryCache||new iQ,this.#t=e.mutationCache||new nQ,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=bT.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Jb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=this.#e.get(r.queryHash)?.state.data,s=_K(t,a);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return po.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;po.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return po.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=po.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ia).catch(ia)}invalidateQueries(e,t={}){return po.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=po.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(ia)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ia)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(lu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ia).catch(ia)}fetchInfiniteQuery(e){return e.behavior=a$(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ia).catch(ia)}ensureInfiniteQueryData(e){return e.behavior=a$(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jb.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Dd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Lg(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Dd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Lg(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gT(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},YI=C.createContext(void 0),is=e=>{const t=C.useContext(YI);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lQ=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(YI.Provider,{value:e,children:t})),GI=C.createContext(!1),KI=()=>C.useContext(GI);GI.Provider;function cQ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var uQ=C.createContext(cQ()),QI=()=>C.useContext(uQ),XI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ZI=e=>{C.useEffect(()=>{e.clearReset()},[e])},JI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||_I(n,[e.error,r])),e5=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},t5=(e,t)=>e.isLoading&&e.isFetching&&!t,vC=(e,t)=>e?.suspense&&t.isPending,e0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dQ({queries:e,...t},n){const r=is(n),o=KI(),a=QI(),s=C.useMemo(()=>e.map(x=>{const w=r.defaultQueryOptions(x);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);s.forEach(x=>{e5(x),XI(x,a)}),ZI(a);const[l]=C.useState(()=>new aQ(r,s,t)),[u,f,c]=l.getOptimisticResult(s,t.combine),m=!o&&t.subscribed!==!1;C.useSyncExternalStore(C.useCallback(x=>m?l.subscribe(po.batchCalls(x)):ia,[l,m]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setQueries(s,t)},[s,t,l]);const v=u.some((x,w)=>vC(s[w],x))?u.flatMap((x,w)=>{const S=s[w];if(S){const k=new xT(r,S);if(vC(S,x))return e0(S,k,a);t5(x,o)&&e0(S,k,a)}return[]}):[];if(v.length>0)throw Promise.all(v);const b=u.find((x,w)=>{const S=s[w];return S&&JI({result:x,errorResetBoundary:a,throwOnError:S.throwOnError,query:r.getQueryCache().get(S.queryHash),suspense:S.suspense})});if(b?.error)throw b.error;return f(c())}function fQ(e,t,n){const r=KI(),o=QI(),a=is(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",e5(s),XI(s,o),ZI(o);const l=!a.getQueryCache().get(s.queryHash),[u]=C.useState(()=>new t(a,s)),f=u.getOptimisticResult(s),c=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const y=c?u.subscribe(po.batchCalls(m)):ia;return u.updateResult(),y},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),C.useEffect(()=>{u.setOptions(s)},[s,u]),vC(s,f))throw e0(s,u,o);if(JI({result:f,errorResetBoundary:o,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(s,f),s.experimental_prefetchInRender&&!$d&&t5(f,r)&&(l?e0(s,u,o):a.getQueryCache().get(s.queryHash)?.promise)?.catch(ia).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?f:u.trackResult(f)}function n5(e,t){return fQ(e,xT,t)}function pQ(e,t){const n=is(t),[r]=C.useState(()=>new rQ(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(po.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=C.useCallback((s,l)=>{r.mutate(s,l).catch(ia)},[r]);if(o.error&&_I(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function r5(e,t){return function(){return e.apply(t,arguments)}}const{toString:hQ}=Object.prototype,{getPrototypeOf:wT}=Object,{iterator:tx,toStringTag:o5}=Symbol,nx=(e=>t=>{const n=hQ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ds=e=>(e=e.toLowerCase(),t=>nx(t)===e),rx=e=>t=>typeof t===e,{isArray:eh}=Array,Ap=rx("undefined");function Sy(e){return e!==null&&!Ap(e)&&e.constructor!==null&&!Ap(e.constructor)&&Ia(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const a5=Ds("ArrayBuffer");function mQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&a5(e.buffer),t}const gQ=rx("string"),Ia=rx("function"),i5=rx("number"),wy=e=>e!==null&&typeof e=="object",yQ=e=>e===!0||e===!1,Eb=e=>{if(nx(e)!=="object")return!1;const t=wT(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(o5 in e)&&!(tx in e)},vQ=e=>{if(!wy(e)||Sy(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},bQ=Ds("Date"),xQ=Ds("File"),SQ=Ds("Blob"),wQ=Ds("FileList"),CQ=e=>wy(e)&&Ia(e.pipe),kQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ia(e.append)&&((t=nx(e))==="formdata"||t==="object"&&Ia(e.toString)&&e.toString()==="[object FormData]"))},TQ=Ds("URLSearchParams"),[MQ,EQ,RQ,OQ]=["ReadableStream","Request","Response","Headers"].map(Ds),PQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cy(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),eh(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Sy(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let l;for(r=0;r<s;r++)l=a[r],t.call(null,e[l],l,e)}}function s5(e,t){if(Sy(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,l5=e=>!Ap(e)&&e!==xd;function bC(){const{caseless:e,skipUndefined:t}=l5(this)&&this||{},n={},r=(o,a)=>{const s=e&&s5(n,a)||a;Eb(n[s])&&Eb(o)?n[s]=bC(n[s],o):Eb(o)?n[s]=bC({},o):eh(o)?n[s]=o.slice():(!t||!Ap(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&Cy(arguments[o],r);return n}const $Q=(e,t,n,{allOwnKeys:r}={})=>(Cy(t,(o,a)=>{n&&Ia(o)?e[a]=r5(o,n):e[a]=o},{allOwnKeys:r}),e),DQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),AQ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jQ=(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&wT(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},NQ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},IQ=e=>{if(!e)return null;if(eh(e))return e;let t=e.length;if(!i5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},LQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wT(Uint8Array)),zQ=(e,t)=>{const r=(e&&e[tx]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},FQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},BQ=Ds("HTMLFormElement"),_Q=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),l$=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),UQ=Ds("RegExp"),c5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cy(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},VQ=e=>{c5(e,(t,n)=>{if(Ia(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ia(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},HQ=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return eh(e)?r(e):r(String(e).split(t)),n},WQ=()=>{},qQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function YQ(e){return!!(e&&Ia(e.append)&&e[o5]==="FormData"&&e[tx])}const GQ=e=>{const t=new Array(10),n=(r,o)=>{if(wy(r)){if(t.indexOf(r)>=0)return;if(Sy(r))return r;if(!("toJSON"in r)){t[o]=r;const a=eh(r)?[]:{};return Cy(r,(s,l)=>{const u=n(s,o+1);!Ap(u)&&(a[l]=u)}),t[o]=void 0,a}}return r};return n(e,0)},KQ=Ds("AsyncFunction"),QQ=e=>e&&(wy(e)||Ia(e))&&Ia(e.then)&&Ia(e.catch),u5=((e,t)=>e?setImmediate:t?((n,r)=>(xd.addEventListener("message",({source:o,data:a})=>{o===xd&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),xd.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ia(xd.postMessage)),XQ=typeof queueMicrotask<"u"?queueMicrotask.bind(xd):typeof process<"u"&&process.nextTick||u5,ZQ=e=>e!=null&&Ia(e[tx]),et={isArray:eh,isArrayBuffer:a5,isBuffer:Sy,isFormData:kQ,isArrayBufferView:mQ,isString:gQ,isNumber:i5,isBoolean:yQ,isObject:wy,isPlainObject:Eb,isEmptyObject:vQ,isReadableStream:MQ,isRequest:EQ,isResponse:RQ,isHeaders:OQ,isUndefined:Ap,isDate:bQ,isFile:xQ,isBlob:SQ,isRegExp:UQ,isFunction:Ia,isStream:CQ,isURLSearchParams:TQ,isTypedArray:LQ,isFileList:wQ,forEach:Cy,merge:bC,extend:$Q,trim:PQ,stripBOM:DQ,inherits:AQ,toFlatObject:jQ,kindOf:nx,kindOfTest:Ds,endsWith:NQ,toArray:IQ,forEachEntry:zQ,matchAll:FQ,isHTMLForm:BQ,hasOwnProperty:l$,hasOwnProp:l$,reduceDescriptors:c5,freezeMethods:VQ,toObjectSet:HQ,toCamelCase:_Q,noop:WQ,toFiniteNumber:qQ,findKey:s5,global:xd,isContextDefined:l5,isSpecCompliantForm:YQ,toJSONObject:GQ,isAsyncFn:KQ,isThenable:QQ,setImmediate:u5,asap:XQ,isIterable:ZQ};function Wn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}et.inherits(Wn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.status}}});const d5=Wn.prototype,f5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{f5[e]={value:e}});Object.defineProperties(Wn,f5);Object.defineProperty(d5,"isAxiosError",{value:!0});Wn.from=(e,t,n,r,o,a)=>{const s=Object.create(d5);et.toFlatObject(e,s,function(c){return c!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return Wn.call(s,l,u,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const JQ=null;function xC(e){return et.isPlainObject(e)||et.isArray(e)}function p5(e){return et.endsWith(e,"[]")?e.slice(0,-2):e}function c$(e,t,n){return e?e.concat(t).map(function(o,a){return o=p5(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function eX(e){return et.isArray(e)&&!e.some(xC)}const tX=et.toFlatObject(et,{},null,function(t){return/^is[A-Z]/.test(t)});function ox(e,t,n){if(!et.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=et.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!et.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||c,a=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&et.isSpecCompliantForm(t);if(!et.isFunction(o))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(et.isDate(b))return b.toISOString();if(et.isBoolean(b))return b.toString();if(!u&&et.isBlob(b))throw new Wn("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(b)||et.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,x,w){let S=b;if(b&&!w&&typeof b=="object"){if(et.endsWith(x,"{}"))x=r?x:x.slice(0,-2),b=JSON.stringify(b);else if(et.isArray(b)&&eX(b)||(et.isFileList(b)||et.endsWith(x,"[]"))&&(S=et.toArray(b)))return x=p5(x),S.forEach(function(T,O){!(et.isUndefined(T)||T===null)&&t.append(s===!0?c$([x],O,a):s===null?x:x+"[]",f(T))}),!1}return xC(b)?!0:(t.append(c$(w,x,a),f(b)),!1)}const m=[],y=Object.assign(tX,{defaultVisitor:c,convertValue:f,isVisitable:xC});function v(b,x){if(!et.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+x.join("."));m.push(b),et.forEach(b,function(S,k){(!(et.isUndefined(S)||S===null)&&o.call(t,S,et.isString(k)?k.trim():k,x,y))===!0&&v(S,x?x.concat(k):[k])}),m.pop()}}if(!et.isObject(e))throw new TypeError("data must be an object");return v(e),t}function u$(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function CT(e,t){this._pairs=[],e&&ox(e,this,t)}const h5=CT.prototype;h5.append=function(t,n){this._pairs.push([t,n])};h5.toString=function(t){const n=t?function(r){return t.call(this,r,u$)}:u$;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function nX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function m5(e,t,n){if(!t)return e;const r=n&&n.encode||nX;et.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=et.isURLSearchParams(t)?t.toString():new CT(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class d${constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){et.forEach(this.handlers,function(r){r!==null&&t(r)})}}const g5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rX=typeof URLSearchParams<"u"?URLSearchParams:CT,oX=typeof FormData<"u"?FormData:null,aX=typeof Blob<"u"?Blob:null,iX={isBrowser:!0,classes:{URLSearchParams:rX,FormData:oX,Blob:aX},protocols:["http","https","file","blob","url","data"]},kT=typeof window<"u"&&typeof document<"u",SC=typeof navigator=="object"&&navigator||void 0,sX=kT&&(!SC||["ReactNative","NativeScript","NS"].indexOf(SC.product)<0),lX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cX=kT&&window.location.href||"http://localhost",uX=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kT,hasStandardBrowserEnv:sX,hasStandardBrowserWebWorkerEnv:lX,navigator:SC,origin:cX},Symbol.toStringTag,{value:"Module"})),sa={...uX,...iX};function dX(e,t){return ox(e,new sa.classes.URLSearchParams,{visitor:function(n,r,o,a){return sa.isNode&&et.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function fX(e){return et.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pX(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function y5(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),u=a>=n.length;return s=!s&&et.isArray(o)?o.length:s,u?(et.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!et.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&et.isArray(o[s])&&(o[s]=pX(o[s])),!l)}if(et.isFormData(e)&&et.isFunction(e.entries)){const n={};return et.forEachEntry(e,(r,o)=>{t(fX(r),o,n,0)}),n}return null}function hX(e,t,n){if(et.isString(e))try{return(t||JSON.parse)(e),et.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ky={transitional:g5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=et.isObject(t);if(a&&et.isHTMLForm(t)&&(t=new FormData(t)),et.isFormData(t))return o?JSON.stringify(y5(t)):t;if(et.isArrayBuffer(t)||et.isBuffer(t)||et.isStream(t)||et.isFile(t)||et.isBlob(t)||et.isReadableStream(t))return t;if(et.isArrayBufferView(t))return t.buffer;if(et.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dX(t,this.formSerializer).toString();if((l=et.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ox(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),hX(t)):t}],transformResponse:[function(t){const n=this.transitional||ky.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(et.isResponse(t)||et.isReadableStream(t))return t;if(t&&et.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?Wn.from(l,Wn.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sa.classes.FormData,Blob:sa.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};et.forEach(["delete","get","head","post","put","patch"],e=>{ky.headers[e]={}});const mX=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gX=e=>{const t={};let n,r,o;return e&&e.split(`
282
- `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&mX[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},f$=Symbol("internals");function Sm(e){return e&&String(e).trim().toLowerCase()}function Rb(e){return e===!1||e==null?e:et.isArray(e)?e.map(Rb):String(e)}function yX(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vX=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function KS(e,t,n,r,o){if(et.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!et.isString(t)){if(et.isString(r))return t.indexOf(r)!==-1;if(et.isRegExp(r))return r.test(t)}}function bX(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xX(e,t){const n=et.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let La=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,u,f){const c=Sm(u);if(!c)throw new Error("header name must be a non-empty string");const m=et.findKey(o,c);(!m||o[m]===void 0||f===!0||f===void 0&&o[m]!==!1)&&(o[m||u]=Rb(l))}const s=(l,u)=>et.forEach(l,(f,c)=>a(f,c,u));if(et.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(et.isString(t)&&(t=t.trim())&&!vX(t))s(gX(t),n);else if(et.isObject(t)&&et.isIterable(t)){let l={},u,f;for(const c of t){if(!et.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[f=c[0]]=(u=l[f])?et.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Sm(t),t){const r=et.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return yX(o);if(et.isFunction(n))return n.call(this,o,r);if(et.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Sm(t),t){const r=et.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||KS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Sm(s),s){const l=et.findKey(r,s);l&&(!n||KS(r,r[l],l,n))&&(delete r[l],o=!0)}}return et.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||KS(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return et.forEach(this,(o,a)=>{const s=et.findKey(r,a);if(s){n[s]=Rb(o),delete n[a];return}const l=t?bX(a):String(a).trim();l!==a&&delete n[a],n[l]=Rb(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return et.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&et.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
283
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[f$]=this[f$]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=Sm(s);r[l]||(xX(o,s),r[l]=!0)}return et.isArray(t)?t.forEach(a):a(t),this}};La.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);et.reduceDescriptors(La.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});et.freezeMethods(La);function QS(e,t){const n=this||ky,r=t||n,o=La.from(r.headers);let a=r.data;return et.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function v5(e){return!!(e&&e.__CANCEL__)}function th(e,t,n){Wn.call(this,e??"canceled",Wn.ERR_CANCELED,t,n),this.name="CanceledError"}et.inherits(th,Wn,{__CANCEL__:!0});function b5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Wn("Request failed with status code "+n.status,[Wn.ERR_BAD_REQUEST,Wn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function SX(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wX(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),c=r[a];s||(s=f),n[o]=u,r[o]=f;let m=a,y=0;for(;m!==o;)y+=n[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),f-s<t)return;const v=c&&f-c;return v?Math.round(y*1e3/v):void 0}}function CX(e,t){let n=0,r=1e3/t,o,a;const s=(f,c=Date.now())=>{n=c,o=null,a&&(clearTimeout(a),a=null),e(...f)};return[(...f)=>{const c=Date.now(),m=c-n;m>=r?s(f,c):(o=f,a||(a=setTimeout(()=>{a=null,s(o)},r-m)))},()=>o&&s(o)]}const t0=(e,t,n=3)=>{let r=0;const o=wX(50,250);return CX(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,u=s-r,f=o(u),c=s<=l;r=s;const m={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l&&c?(l-s)/f:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},p$=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},h$=e=>(...t)=>et.asap(()=>e(...t)),kX=sa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,sa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(sa.origin),sa.navigator&&/(msie|trident)/i.test(sa.navigator.userAgent)):()=>!0,TX=sa.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];et.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),et.isString(r)&&s.push("path="+r),et.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function MX(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function EX(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function x5(e,t,n){let r=!MX(t);return e&&(r||n==!1)?EX(e,t):t}const m$=e=>e instanceof La?{...e}:e;function Ad(e,t){t=t||{};const n={};function r(f,c,m,y){return et.isPlainObject(f)&&et.isPlainObject(c)?et.merge.call({caseless:y},f,c):et.isPlainObject(c)?et.merge({},c):et.isArray(c)?c.slice():c}function o(f,c,m,y){if(et.isUndefined(c)){if(!et.isUndefined(f))return r(void 0,f,m,y)}else return r(f,c,m,y)}function a(f,c){if(!et.isUndefined(c))return r(void 0,c)}function s(f,c){if(et.isUndefined(c)){if(!et.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function l(f,c,m){if(m in t)return r(f,c);if(m in e)return r(void 0,f)}const u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,c,m)=>o(m$(f),m$(c),m,!0)};return et.forEach(Object.keys({...e,...t}),function(c){const m=u[c]||o,y=m(e[c],t[c],c);et.isUndefined(y)&&m!==l||(n[c]=y)}),n}const S5=e=>{const t=Ad({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=La.from(s),t.url=m5(x5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),et.isFormData(n)){if(sa.hasStandardBrowserEnv||sa.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(et.isFunction(n.getHeaders)){const u=n.getHeaders(),f=["content-type","content-length"];Object.entries(u).forEach(([c,m])=>{f.includes(c.toLowerCase())&&s.set(c,m)})}}if(sa.hasStandardBrowserEnv&&(r&&et.isFunction(r)&&(r=r(t)),r||r!==!1&&kX(t.url))){const u=o&&a&&TX.read(a);u&&s.set(o,u)}return t},RX=typeof XMLHttpRequest<"u",OX=RX&&function(e){return new Promise(function(n,r){const o=S5(e);let a=o.data;const s=La.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:f}=o,c,m,y,v,b;function x(){v&&v(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function S(){if(!w)return;const T=La.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:e,request:w};b5(function(I){n(I),x()},function(I){r(I),x()},P),w=null}"onloadend"in w?w.onloadend=S:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(S)},w.onabort=function(){w&&(r(new Wn("Request aborted",Wn.ECONNABORTED,e,w)),w=null)},w.onerror=function(O){const P=O&&O.message?O.message:"Network Error",$=new Wn(P,Wn.ERR_NETWORK,e,w);$.event=O||null,r($),w=null},w.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||g5;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new Wn(O,P.clarifyTimeoutError?Wn.ETIMEDOUT:Wn.ECONNABORTED,e,w)),w=null},a===void 0&&s.setContentType(null),"setRequestHeader"in w&&et.forEach(s.toJSON(),function(O,P){w.setRequestHeader(P,O)}),et.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),l&&l!=="json"&&(w.responseType=o.responseType),f&&([y,b]=t0(f,!0),w.addEventListener("progress",y)),u&&w.upload&&([m,v]=t0(u),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(c=T=>{w&&(r(!T||T.type?new th(null,e,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const k=SX(o.url);if(k&&sa.protocols.indexOf(k)===-1){r(new Wn("Unsupported protocol "+k+":",Wn.ERR_BAD_REQUEST,e));return}w.send(a||null)})},PX=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(f){if(!o){o=!0,l();const c=f instanceof Error?f:this.reason;r.abort(c instanceof Wn?c:new th(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,a(new Wn(`timeout ${t} of ms exceeded`,Wn.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),e=null)};e.forEach(f=>f.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>et.asap(l),u}},$X=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},DX=async function*(e,t){for await(const n of AX(e))yield*$X(n,t)},AX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},g$=(e,t,n,r)=>{const o=DX(e,t);let a=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:f,value:c}=await o.next();if(f){l(),u.close();return}let m=c.byteLength;if(n){let y=a+=m;n(y)}u.enqueue(new Uint8Array(c))}catch(f){throw l(f),f}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},y$=64*1024,{isFunction:Zv}=et,jX=(({Request:e,Response:t})=>({Request:e,Response:t}))(et.global),{ReadableStream:v$,TextEncoder:b$}=et.global,x$=(e,...t)=>{try{return!!e(...t)}catch{return!1}},NX=e=>{e=et.merge.call({skipUndefined:!0},jX,e);const{fetch:t,Request:n,Response:r}=e,o=t?Zv(t):typeof fetch=="function",a=Zv(n),s=Zv(r);if(!o)return!1;const l=o&&Zv(v$),u=o&&(typeof b$=="function"?(b=>x=>b.encode(x))(new b$):async b=>new Uint8Array(await new n(b).arrayBuffer())),f=a&&l&&x$(()=>{let b=!1;const x=new n(sa.origin,{body:new v$,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!x}),c=s&&l&&x$(()=>et.isReadableStream(new r("").body)),m={stream:c&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!m[b]&&(m[b]=(x,w)=>{let S=x&&x[b];if(S)return S.call(x);throw new Wn(`Response type '${b}' is not supported`,Wn.ERR_NOT_SUPPORT,w)})});const y=async b=>{if(b==null)return 0;if(et.isBlob(b))return b.size;if(et.isSpecCompliantForm(b))return(await new n(sa.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(et.isArrayBufferView(b)||et.isArrayBuffer(b))return b.byteLength;if(et.isURLSearchParams(b)&&(b=b+""),et.isString(b))return(await u(b)).byteLength},v=async(b,x)=>{const w=et.toFiniteNumber(b.getContentLength());return w??y(x)};return async b=>{let{url:x,method:w,data:S,signal:k,cancelToken:T,timeout:O,onDownloadProgress:P,onUploadProgress:$,responseType:I,headers:F,withCredentials:A="same-origin",fetchOptions:H}=S5(b),L=t||fetch;I=I?(I+"").toLowerCase():"text";let M=PX([k,T&&T.toAbortSignal()],O),_=null;const B=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let W;try{if($&&f&&w!=="get"&&w!=="head"&&(W=await v(F,S))!==0){let J=new n(x,{method:"POST",body:S,duplex:"half"}),ne;if(et.isFormData(S)&&(ne=J.headers.get("content-type"))&&F.setContentType(ne),J.body){const[oe,se]=p$(W,t0(h$($)));S=g$(J.body,y$,oe,se)}}et.isString(A)||(A=A?"include":"omit");const j=a&&"credentials"in n.prototype,Q={...H,signal:M,method:w.toUpperCase(),headers:F.normalize().toJSON(),body:S,duplex:"half",credentials:j?A:void 0};_=a&&new n(x,Q);let K=await(a?L(_,H):L(x,Q));const te=c&&(I==="stream"||I==="response");if(c&&(P||te&&B)){const J={};["status","statusText","headers"].forEach(re=>{J[re]=K[re]});const ne=et.toFiniteNumber(K.headers.get("content-length")),[oe,se]=P&&p$(ne,t0(h$(P),!0))||[];K=new r(g$(K.body,y$,oe,()=>{se&&se(),B&&B()}),J)}I=I||"text";let X=await m[et.findKey(m,I)||"text"](K,b);return!te&&B&&B(),await new Promise((J,ne)=>{b5(J,ne,{data:X,headers:La.from(K.headers),status:K.status,statusText:K.statusText,config:b,request:_})})}catch(j){throw B&&B(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new Wn("Network Error",Wn.ERR_NETWORK,b,_),{cause:j.cause||j}):Wn.from(j,j&&j.code,b,_)}}},IX=new Map,w5=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,u,f,c=IX;for(;l--;)u=a[l],f=c.get(u),f===void 0&&c.set(u,f=l?new Map:NX(t)),c=f;return f};w5();const wC={http:JQ,xhr:OX,fetch:{get:w5}};et.forEach(wC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const S$=e=>`- ${e}`,LX=e=>et.isFunction(e)||e===null||e===!1,C5={getAdapter:(e,t)=>{e=et.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s<n;s++){r=e[s];let l;if(o=r,!LX(r)&&(o=wC[(l=String(r)).toLowerCase()],o===void 0))throw new Wn(`Unknown adapter '${l}'`);if(o&&(et.isFunction(o)||(o=o.get(t))))break;a[l||"#"+s]=o}if(!o){const s=Object.entries(a).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since :
284
- `+s.map(S$).join(`
285
- `):" "+S$(s[0]):"as no adapter specified";throw new Wn("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:wC};function XS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new th(null,e)}function w$(e){return XS(e),e.headers=La.from(e.headers),e.data=QS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),C5.getAdapter(e.adapter||ky.adapter,e)(e).then(function(r){return XS(e),r.data=QS.call(e,e.transformResponse,r),r.headers=La.from(r.headers),r},function(r){return v5(r)||(XS(e),r&&r.response&&(r.response.data=QS.call(e,e.transformResponse,r.response),r.response.headers=La.from(r.response.headers))),Promise.reject(r)})}const k5="1.12.2",ax={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ax[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const C$={};ax.transitional=function(t,n,r){function o(a,s){return"[Axios v"+k5+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Wn(o(s," has been removed"+(n?" in "+n:"")),Wn.ERR_DEPRECATED);return n&&!C$[s]&&(C$[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};ax.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function zX(e,t,n){if(typeof e!="object")throw new Wn("options must be an object",Wn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const l=e[a],u=l===void 0||s(l,a,e);if(u!==!0)throw new Wn("option "+a+" must be "+u,Wn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Wn("Unknown option "+a,Wn.ERR_BAD_OPTION)}}const Ob={assertOptions:zX,validators:ax},Zs=Ob.validators;let Td=class{constructor(t){this.defaults=t||{},this.interceptors={request:new d$,response:new d$}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
286
- `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ad(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Ob.assertOptions(r,{silentJSONParsing:Zs.transitional(Zs.boolean),forcedJSONParsing:Zs.transitional(Zs.boolean),clarifyTimeoutError:Zs.transitional(Zs.boolean)},!1),o!=null&&(et.isFunction(o)?n.paramsSerializer={serialize:o}:Ob.assertOptions(o,{encode:Zs.function,serialize:Zs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ob.assertOptions(n,{baseUrl:Zs.spelling("baseURL"),withXsrfToken:Zs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&et.merge(a.common,a[n.method]);a&&et.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=La.concat(s,a);const l=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let c,m=0,y;if(!u){const b=[w$.bind(this),void 0];for(b.unshift(...l),b.push(...f),y=b.length,c=Promise.resolve(n);m<y;)c=c.then(b[m++],b[m++]);return c}y=l.length;let v=n;for(;m<y;){const b=l[m++],x=l[m++];try{v=b(v)}catch(w){x.call(this,w);break}}try{c=w$.call(this,v)}catch(b){return Promise.reject(b)}for(m=0,y=f.length;m<y;)c=c.then(f[m++],f[m++]);return c}getUri(t){t=Ad(this.defaults,t);const n=x5(t.baseURL,t.url,t.allowAbsoluteUrls);return m5(n,t.params,t.paramsSerializer)}};et.forEach(["delete","get","head","options"],function(t){Td.prototype[t]=function(n,r){return this.request(Ad(r||{},{method:t,url:n,data:(r||{}).data}))}});et.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,l){return this.request(Ad(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Td.prototype[t]=n(),Td.prototype[t+"Form"]=n(!0)});let FX=class T5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new th(a,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new T5(function(o){t=o}),cancel:t}}};function BX(e){return function(n){return e.apply(null,n)}}function _X(e){return et.isObject(e)&&e.isAxiosError===!0}const CC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(CC).forEach(([e,t])=>{CC[t]=e});function M5(e){const t=new Td(e),n=r5(Td.prototype.request,t);return et.extend(n,Td.prototype,t,{allOwnKeys:!0}),et.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return M5(Ad(e,o))},n}const Bt=M5(ky);Bt.Axios=Td;Bt.CanceledError=th;Bt.CancelToken=FX;Bt.isCancel=v5;Bt.VERSION=k5;Bt.toFormData=ox;Bt.AxiosError=Wn;Bt.Cancel=Bt.CanceledError;Bt.all=function(t){return Promise.all(t)};Bt.spread=BX;Bt.isAxiosError=_X;Bt.mergeConfig=Ad;Bt.AxiosHeaders=La;Bt.formToJSON=e=>y5(et.isHTMLForm(e)?new FormData(e):e);Bt.getAdapter=C5.getAdapter;Bt.HttpStatusCode=CC;Bt.default=Bt;const{Axios:obe,AxiosError:abe,CanceledError:ibe,isCancel:sbe,CancelToken:lbe,VERSION:cbe,all:ube,Cancel:dbe,isAxiosError:fbe,spread:pbe,toFormData:hbe,AxiosHeaders:mbe,HttpStatusCode:gbe,formToJSON:ybe,getAdapter:vbe,mergeConfig:bbe}=Bt,vn="http://localhost/api/v0".replace(/\/+$/,"");let As=class{constructor(t,n=vn,r=Bt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},UX=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Cn={},kn="https://example.com",ft=function(e,t,n){if(n==null)throw new UX(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function kC(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>kC(e,r,n)):Object.keys(t).forEach(r=>kC(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Tn=function(e,...t){const n=new URLSearchParams(e.search);kC(n,t),e.search=n.toString()},Qo=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Mn=function(e){return e.pathname+e.search+e.hash},En=function(e,t,n,r){return(o=t,a=n)=>{const s={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(s)}},E5={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},k$={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},va={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},Jv={Version:"version",Package:"package"},VX=function(e){return{createConnection:async(t,n,r,o={})=>{ft("createConnection","environmentName",t),ft("createConnection","connectionName",n),ft("createConnection","connection",r);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}},deleteConnection:async(t,n,r={})=>{ft("deleteConnection","environmentName",t),ft("deleteConnection","connectionName",n);const o="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},u={};Tn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Mn(a),options:l}},getConnection:async(t,n,r={})=>{ft("getConnection","environmentName",t),ft("getConnection","connectionName",n);const o="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Tn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Mn(a),options:l}},getTable:async(t,n,r,o,a={})=>{ft("getTable","environmentName",t),ft("getTable","connectionName",n),ft("getTable","schemaName",r),ft("getTable","tablePath",o);const s="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(o))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={};Tn(l,{});let m=u&&u.headers?u.headers:{};return f.headers={...c,...m,...a.headers},{url:Mn(l),options:f}},getTableInPackage:async(t,n,r,o,a,s={})=>{ft("getTableInPackage","environmentName",t),ft("getTableInPackage","packageName",n),ft("getTableInPackage","connectionName",r),ft("getTableInPackage","schemaName",o),ft("getTableInPackage","tablePath",a);const l="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(o))).replace("{tablePath}",encodeURIComponent(String(a))),u=new URL(l,kn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},m={};Tn(u,{});let y=f&&f.headers?f.headers:{};return c.headers={...m,...y,...s.headers},{url:Mn(u),options:c}},listConnections:async(t,n={})=>{ft("listConnections","environmentName",t);const r="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,kn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};Tn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Mn(o),options:s}},listSchemas:async(t,n,r={})=>{ft("listSchemas","environmentName",t),ft("listSchemas","connectionName",n);const o="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Tn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Mn(a),options:l}},listSchemasInPackage:async(t,n,r,o={})=>{ft("listSchemasInPackage","environmentName",t),ft("listSchemasInPackage","packageName",n),ft("listSchemasInPackage","connectionName",r);const a="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={};Tn(s,{});let c=l&&l.headers?l.headers:{};return u.headers={...f,...c,...o.headers},{url:Mn(s),options:u}},listTables:async(t,n,r,o,a={})=>{ft("listTables","environmentName",t),ft("listTables","connectionName",n),ft("listTables","schemaName",r);const s="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},m={};o&&(m.tableNames=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},listTablesInPackage:async(t,n,r,o,a,s={})=>{ft("listTablesInPackage","environmentName",t),ft("listTablesInPackage","packageName",n),ft("listTablesInPackage","connectionName",r),ft("listTablesInPackage","schemaName",o);const l="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(o))),u=new URL(l,kn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},m={},y={};a&&(y.tableNames=a),Tn(u,y);let v=f&&f.headers?f.headers:{};return c.headers={...m,...v,...s.headers},{url:Mn(u),options:c}},postQuerydata:async(t,n,r,o={})=>{ft("postQuerydata","environmentName",t),ft("postQuerydata","connectionName",n),ft("postQuerydata","postQuerydataRequest",r);const a="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}},postQuerydataInPackage:async(t,n,r,o,a={})=>{ft("postQuerydataInPackage","environmentName",t),ft("postQuerydataInPackage","packageName",n),ft("postQuerydataInPackage","connectionName",r),ft("postQuerydataInPackage","postQuerydataRequest",o);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},m={};c["Content-Type"]="application/json",Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},f.data=Qo(o,f,e),{url:Mn(l),options:f}},postSqlsource:async(t,n,r,o={})=>{ft("postSqlsource","environmentName",t),ft("postSqlsource","connectionName",n),ft("postSqlsource","postSqlsourceRequest",r);const a="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}},postSqlsourceInPackage:async(t,n,r,o,a={})=>{ft("postSqlsourceInPackage","environmentName",t),ft("postSqlsourceInPackage","packageName",n),ft("postSqlsourceInPackage","connectionName",r),ft("postSqlsourceInPackage","postSqlsourceRequest",o);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},m={};c["Content-Type"]="application/json",Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},f.data=Qo(o,f,e),{url:Mn(l),options:f}},postTemporarytable:async(t,n,r,o={})=>{ft("postTemporarytable","environmentName",t),ft("postTemporarytable","connectionName",n),ft("postTemporarytable","postSqlsourceRequest",r);const a="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}},postTemporarytableInPackage:async(t,n,r,o,a={})=>{ft("postTemporarytableInPackage","environmentName",t),ft("postTemporarytableInPackage","packageName",n),ft("postTemporarytableInPackage","connectionName",r),ft("postTemporarytableInPackage","postSqlsourceRequest",o);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},m={};c["Content-Type"]="application/json",Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},f.data=Qo(o,f,e),{url:Mn(l),options:f}},updateConnection:async(t,n,r,o={})=>{ft("updateConnection","environmentName",t),ft("updateConnection","connectionName",n),ft("updateConnection","updateConnectionRequest",r);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}}}},Ko=function(e){const t=VX(e);return{async createConnection(n,r,o,a){const s=await t.createConnection(n,r,o,a),l=e?.serverIndex??0,u=Cn["ConnectionsApi.createConnection"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async deleteConnection(n,r,o){const a=await t.deleteConnection(n,r,o),s=e?.serverIndex??0,l=Cn["ConnectionsApi.deleteConnection"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)},async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,l=Cn["ConnectionsApi.getConnection"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)},async getTable(n,r,o,a,s){const l=await t.getTable(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ConnectionsApi.getTable"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async getTableInPackage(n,r,o,a,s,l){const u=await t.getTableInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,c=Cn["ConnectionsApi.getTableInPackage"]?.[f]?.url;return(m,y)=>En(u,Bt,vn,e)(m,c||y)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=Cn["ConnectionsApi.listConnections"]?.[a]?.url;return(l,u)=>En(o,Bt,vn,e)(l,s||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=Cn["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)},async listSchemasInPackage(n,r,o,a){const s=await t.listSchemasInPackage(n,r,o,a),l=e?.serverIndex??0,u=Cn["ConnectionsApi.listSchemasInPackage"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async listTables(n,r,o,a,s){const l=await t.listTables(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ConnectionsApi.listTables"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async listTablesInPackage(n,r,o,a,s,l){const u=await t.listTablesInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,c=Cn["ConnectionsApi.listTablesInPackage"]?.[f]?.url;return(m,y)=>En(u,Bt,vn,e)(m,c||y)},async postQuerydata(n,r,o,a){const s=await t.postQuerydata(n,r,o,a),l=e?.serverIndex??0,u=Cn["ConnectionsApi.postQuerydata"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async postQuerydataInPackage(n,r,o,a,s){const l=await t.postQuerydataInPackage(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ConnectionsApi.postQuerydataInPackage"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async postSqlsource(n,r,o,a){const s=await t.postSqlsource(n,r,o,a),l=e?.serverIndex??0,u=Cn["ConnectionsApi.postSqlsource"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async postSqlsourceInPackage(n,r,o,a,s){const l=await t.postSqlsourceInPackage(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ConnectionsApi.postSqlsourceInPackage"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async postTemporarytable(n,r,o,a){const s=await t.postTemporarytable(n,r,o,a),l=e?.serverIndex??0,u=Cn["ConnectionsApi.postTemporarytable"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async postTemporarytableInPackage(n,r,o,a,s){const l=await t.postTemporarytableInPackage(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ConnectionsApi.postTemporarytableInPackage"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async updateConnection(n,r,o,a){const s=await t.updateConnection(n,r,o,a),l=e?.serverIndex??0,u=Cn["ConnectionsApi.updateConnection"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)}}};let HX=class extends As{createConnection(t,n,r,o){return Ko(this.configuration).createConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteConnection(t,n,r){return Ko(this.configuration).deleteConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getConnection(t,n,r){return Ko(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getTable(t,n,r,o,a){return Ko(this.configuration).getTable(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTableInPackage(t,n,r,o,a,s){return Ko(this.configuration).getTableInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listConnections(t,n){return Ko(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ko(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listSchemasInPackage(t,n,r,o){return Ko(this.configuration).listSchemasInPackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,o,a){return Ko(this.configuration).listTables(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listTablesInPackage(t,n,r,o,a,s){return Ko(this.configuration).listTablesInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}postQuerydata(t,n,r,o){return Ko(this.configuration).postQuerydata(t,n,r,o).then(a=>a(this.axios,this.basePath))}postQuerydataInPackage(t,n,r,o,a){return Ko(this.configuration).postQuerydataInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,o){return Ko(this.configuration).postSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}postSqlsourceInPackage(t,n,r,o,a){return Ko(this.configuration).postSqlsourceInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postTemporarytable(t,n,r,o){return Ko(this.configuration).postTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}postTemporarytableInPackage(t,n,r,o,a){return Ko(this.configuration).postTemporarytableInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateConnection(t,n,r,o){return Ko(this.configuration).updateConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const WX=function(e){return{getDashboard:async(t,n,r,o,a={})=>{ft("getDashboard","environmentName",t),ft("getDashboard","packageName",n),ft("getDashboard","dashboardName",r);const s="/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{dashboardName}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},m={};o!==void 0&&(m.versionId=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},listDashboards:async(t,n,r,o={})=>{ft("listDashboards","environmentName",t),ft("listDashboards","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},{url:Mn(s),options:u}}}},T$=function(e){const t=WX(e);return{async getDashboard(n,r,o,a,s){const l=await t.getDashboard(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["DashboardsApi.getDashboard"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async listDashboards(n,r,o,a){const s=await t.listDashboards(n,r,o,a),l=e?.serverIndex??0,u=Cn["DashboardsApi.listDashboards"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)}}};let qX=class extends As{getDashboard(t,n,r,o,a){return T$(this.configuration).getDashboard(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listDashboards(t,n,r,o){return T$(this.configuration).listDashboards(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const YX=function(e){return{listDataApps:async(t,n,r={})=>{ft("listDataApps","environmentName",t),ft("listDataApps","packageName",n);const o="/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Tn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Mn(a),options:l}}}},GX=function(e){const t=YX(e);return{async listDataApps(n,r,o){const a=await t.listDataApps(n,r,o),s=e?.serverIndex??0,l=Cn["DataAppsApi.listDataApps"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)}}};let KX=class extends As{listDataApps(t,n,r){return GX(this.configuration).listDataApps(t,n,r).then(o=>o(this.axios,this.basePath))}};const QX=function(e){return{listDatabases:async(t,n,r,o={})=>{ft("listDatabases","environmentName",t),ft("listDatabases","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},{url:Mn(s),options:u}}}},XX=function(e){const t=QX(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,u=Cn["DatabasesApi.listDatabases"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)}}};let ZX=class extends As{listDatabases(t,n,r,o){return XX(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const JX=function(e){return{createEnvironment:async(t,n={})=>{ft("createEnvironment","environment",t);const r="/environments",o=new URL(r,kn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",Tn(o,u);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Qo(t,s,e),{url:Mn(o),options:s}},deleteEnvironment:async(t,n={})=>{ft("deleteEnvironment","environmentName",t);const r="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,kn);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...n},l={};Tn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Mn(o),options:s}},getEnvironment:async(t,n,r={})=>{ft("getEnvironment","environmentName",t);const o="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={},f={};n!==void 0&&(f.reload=n),Tn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...u,...c,...r.headers},{url:Mn(a),options:l}},listEnvironments:async(t={})=>{const n="/environments",r=new URL(n,kn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};Tn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Mn(r),options:a}},updateEnvironment:async(t,n,r={})=>{ft("updateEnvironment","environmentName",t),ft("updateEnvironment","environment",n);const o="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...r},u={},f={};u["Content-Type"]="application/json",Tn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...u,...c,...r.headers},l.data=Qo(n,l,e),{url:Mn(a),options:l}}}},wm=function(e){const t=JX(e);return{async createEnvironment(n,r){const o=await t.createEnvironment(n,r),a=e?.serverIndex??0,s=Cn["EnvironmentsApi.createEnvironment"]?.[a]?.url;return(l,u)=>En(o,Bt,vn,e)(l,s||u)},async deleteEnvironment(n,r){const o=await t.deleteEnvironment(n,r),a=e?.serverIndex??0,s=Cn["EnvironmentsApi.deleteEnvironment"]?.[a]?.url;return(l,u)=>En(o,Bt,vn,e)(l,s||u)},async getEnvironment(n,r,o){const a=await t.getEnvironment(n,r,o),s=e?.serverIndex??0,l=Cn["EnvironmentsApi.getEnvironment"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)},async listEnvironments(n){const r=await t.listEnvironments(n),o=e?.serverIndex??0,a=Cn["EnvironmentsApi.listEnvironments"]?.[o]?.url;return(s,l)=>En(r,Bt,vn,e)(s,a||l)},async updateEnvironment(n,r,o){const a=await t.updateEnvironment(n,r,o),s=e?.serverIndex??0,l=Cn["EnvironmentsApi.updateEnvironment"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)}}};let eZ=class extends As{createEnvironment(t,n){return wm(this.configuration).createEnvironment(t,n).then(r=>r(this.axios,this.basePath))}deleteEnvironment(t,n){return wm(this.configuration).deleteEnvironment(t,n).then(r=>r(this.axios,this.basePath))}getEnvironment(t,n,r){return wm(this.configuration).getEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}listEnvironments(t){return wm(this.configuration).listEnvironments(t).then(n=>n(this.axios,this.basePath))}updateEnvironment(t,n,r){return wm(this.configuration).updateEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}};const tZ=function(e){return{createMaterialization:async(t,n,r,o={})=>{ft("createMaterialization","environmentName",t),ft("createMaterialization","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}},deleteMaterialization:async(t,n,r,o,a={})=>{ft("deleteMaterialization","environmentName",t),ft("deleteMaterialization","packageName",n),ft("deleteMaterialization","materializationId",r);const s="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{materializationId}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"DELETE",...u,...a},c={},m={};o!==void 0&&(m.dropTables=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},getMaterialization:async(t,n,r,o={})=>{ft("getMaterialization","environmentName",t),ft("getMaterialization","packageName",n),ft("getMaterialization","materializationId",r);const a="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={};Tn(s,{});let c=l&&l.headers?l.headers:{};return u.headers={...f,...c,...o.headers},{url:Mn(s),options:u}},listEnvironmentMaterializations:async(t,n,r,o={})=>{ft("listEnvironmentMaterializations","environmentName",t);const a="/environments/{environmentName}/packages/materializations".replace("{environmentName}",encodeURIComponent(String(t))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={},c={};n!==void 0&&(c.limit=n),r!==void 0&&(c.offset=r),Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},{url:Mn(s),options:u}},listMaterializations:async(t,n,r,o,a={})=>{ft("listMaterializations","environmentName",t),ft("listMaterializations","packageName",n);const s="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},m={};r!==void 0&&(m.limit=r),o!==void 0&&(m.offset=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},materializationAction:async(t,n,r,o,a={})=>{ft("materializationAction","environmentName",t),ft("materializationAction","packageName",n),ft("materializationAction","materializationId",r),ft("materializationAction","action",o);const s="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{materializationId}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},m={};o!==void 0&&(m.action=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}}}},Wf=function(e){const t=tZ(e);return{async createMaterialization(n,r,o,a){const s=await t.createMaterialization(n,r,o,a),l=e?.serverIndex??0,u=Cn["MaterializationsApi.createMaterialization"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async deleteMaterialization(n,r,o,a,s){const l=await t.deleteMaterialization(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["MaterializationsApi.deleteMaterialization"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async getMaterialization(n,r,o,a){const s=await t.getMaterialization(n,r,o,a),l=e?.serverIndex??0,u=Cn["MaterializationsApi.getMaterialization"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async listEnvironmentMaterializations(n,r,o,a){const s=await t.listEnvironmentMaterializations(n,r,o,a),l=e?.serverIndex??0,u=Cn["MaterializationsApi.listEnvironmentMaterializations"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)},async listMaterializations(n,r,o,a,s){const l=await t.listMaterializations(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["MaterializationsApi.listMaterializations"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async materializationAction(n,r,o,a,s){const l=await t.materializationAction(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["MaterializationsApi.materializationAction"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)}}};let nZ=class extends As{createMaterialization(t,n,r,o){return Wf(this.configuration).createMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteMaterialization(t,n,r,o,a){return Wf(this.configuration).deleteMaterialization(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getMaterialization(t,n,r,o){return Wf(this.configuration).getMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}listEnvironmentMaterializations(t,n,r,o){return Wf(this.configuration).listEnvironmentMaterializations(t,n,r,o).then(a=>a(this.axios,this.basePath))}listMaterializations(t,n,r,o,a){return Wf(this.configuration).listMaterializations(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}materializationAction(t,n,r,o,a){return Wf(this.configuration).materializationAction(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}};const R5={Stop:"stop"},rZ=function(e){return{compileModelSource:async(t,n,r,o,a={})=>{ft("compileModelSource","environmentName",t),ft("compileModelSource","packageName",n),ft("compileModelSource","path",r),ft("compileModelSource","compileRequest",o);const s="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},m={};c["Content-Type"]="application/json",Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},f.data=Qo(o,f,e),{url:Mn(l),options:f}},executeQueryModel:async(t,n,r,o,a={})=>{ft("executeQueryModel","environmentName",t),ft("executeQueryModel","packageName",n),ft("executeQueryModel","path",r),ft("executeQueryModel","queryRequest",o);const s="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"POST",...u,...a},c={},m={};c["Content-Type"]="application/json",Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},f.data=Qo(o,f,e),{url:Mn(l),options:f}},getModel:async(t,n,r,o,a={})=>{ft("getModel","environmentName",t),ft("getModel","packageName",n),ft("getModel","path",r);const s="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},m={};o!==void 0&&(m.versionId=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},listModels:async(t,n,r,o={})=>{ft("listModels","environmentName",t),ft("listModels","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},{url:Mn(s),options:u}}}},eb=function(e){const t=rZ(e);return{async compileModelSource(n,r,o,a,s){const l=await t.compileModelSource(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ModelsApi.compileModelSource"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async executeQueryModel(n,r,o,a,s){const l=await t.executeQueryModel(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ModelsApi.executeQueryModel"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async getModel(n,r,o,a,s){const l=await t.getModel(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["ModelsApi.getModel"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async listModels(n,r,o,a){const s=await t.listModels(n,r,o,a),l=e?.serverIndex??0,u=Cn["ModelsApi.listModels"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)}}};let oZ=class extends As{compileModelSource(t,n,r,o,a){return eb(this.configuration).compileModelSource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}executeQueryModel(t,n,r,o,a){return eb(this.configuration).executeQueryModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getModel(t,n,r,o,a){return eb(this.configuration).getModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,o){return eb(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const aZ=function(e){return{executeNotebookCell:async(t,n,r,o,a,s,l,u,f={})=>{ft("executeNotebookCell","environmentName",t),ft("executeNotebookCell","packageName",n),ft("executeNotebookCell","path",r),ft("executeNotebookCell","cellIndex",o);const c="/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(o))),m=new URL(c,kn);let y;e&&(y=e.baseOptions);const v={method:"GET",...y,...f},b={},x={};a!==void 0&&(x.versionId=a),s!==void 0&&(x.filter_params=s),l!==void 0&&(x.bypass_filters=l),u!==void 0&&(x.givens=u),Tn(m,x);let w=y&&y.headers?y.headers:{};return v.headers={...b,...w,...f.headers},{url:Mn(m),options:v}},getNotebook:async(t,n,r,o,a={})=>{ft("getNotebook","environmentName",t),ft("getNotebook","packageName",n),ft("getNotebook","path",r);const s="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},m={};o!==void 0&&(m.versionId=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},listNotebooks:async(t,n,r,o={})=>{ft("listNotebooks","environmentName",t),ft("listNotebooks","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},{url:Mn(s),options:u}}}},ZS=function(e){const t=aZ(e);return{async executeNotebookCell(n,r,o,a,s,l,u,f,c){const m=await t.executeNotebookCell(n,r,o,a,s,l,u,f,c),y=e?.serverIndex??0,v=Cn["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(b,x)=>En(m,Bt,vn,e)(b,v||x)},async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["NotebooksApi.getNotebook"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,u=Cn["NotebooksApi.listNotebooks"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)}}};let iZ=class extends As{executeNotebookCell(t,n,r,o,a,s,l,u,f){return ZS(this.configuration).executeNotebookCell(t,n,r,o,a,s,l,u,f).then(c=>c(this.axios,this.basePath))}getNotebook(t,n,r,o,a){return ZS(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return ZS(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const sZ=function(e){return{createPackage:async(t,n,r={})=>{ft("createPackage","environmentName",t),ft("createPackage","_package",n);const o="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...r},u={},f={};u["Content-Type"]="application/json",Tn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...u,...c,...r.headers},l.data=Qo(n,l,e),{url:Mn(a),options:l}},deletePackage:async(t,n,r={})=>{ft("deletePackage","environmentName",t),ft("deletePackage","packageName",n);const o="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},u={};Tn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Mn(a),options:l}},getPackage:async(t,n,r,o,a={})=>{ft("getPackage","environmentName",t),ft("getPackage","packageName",n);const s="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,kn);let u;e&&(u=e.baseOptions);const f={method:"GET",...u,...a},c={},m={};r!==void 0&&(m.versionId=r),o!==void 0&&(m.reload=o),Tn(l,m);let y=u&&u.headers?u.headers:{};return f.headers={...c,...y,...a.headers},{url:Mn(l),options:f}},listPackages:async(t,n={})=>{ft("listPackages","environmentName",t);const r="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,kn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};Tn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Mn(o),options:s}},updatePackage:async(t,n,r,o={})=>{ft("updatePackage","environmentName",t),ft("updatePackage","packageName",n),ft("updatePackage","_package",r);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,kn);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},f={},c={};f["Content-Type"]="application/json",Tn(s,c);let m=l&&l.headers?l.headers:{};return u.headers={...f,...m,...o.headers},u.data=Qo(r,u,e),{url:Mn(s),options:u}}}},Cm=function(e){const t=sZ(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),s=e?.serverIndex??0,l=Cn["PackagesApi.createPackage"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),s=e?.serverIndex??0,l=Cn["PackagesApi.deletePackage"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),u=e?.serverIndex??0,f=Cn["PackagesApi.getPackage"]?.[u]?.url;return(c,m)=>En(l,Bt,vn,e)(c,f||m)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=Cn["PackagesApi.listPackages"]?.[a]?.url;return(l,u)=>En(o,Bt,vn,e)(l,s||u)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,u=Cn["PackagesApi.updatePackage"]?.[l]?.url;return(f,c)=>En(s,Bt,vn,e)(f,u||c)}}};let lZ=class extends As{createPackage(t,n,r){return Cm(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return Cm(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return Cm(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return Cm(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return Cm(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const cZ=function(e){return{deleteTheme:async(t={})=>{const n="/theme",r=new URL(n,kn);let o;e&&(o=e.baseOptions);const a={method:"DELETE",...o,...t},s={};Tn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Mn(r),options:a}},getStatus:async(t={})=>{const n="/status",r=new URL(n,kn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};Tn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Mn(r),options:a}},getTheme:async(t={})=>{const n="/theme",r=new URL(n,kn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};Tn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Mn(r),options:a}},updateTheme:async(t,n={})=>{ft("updateTheme","theme",t);const r="/theme",o=new URL(r,kn);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...n},l={},u={};l["Content-Type"]="application/json",Tn(o,u);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Qo(t,s,e),{url:Mn(o),options:s}}}},tb=function(e){const t=cZ(e);return{async deleteTheme(n){const r=await t.deleteTheme(n),o=e?.serverIndex??0,a=Cn["PublisherApi.deleteTheme"]?.[o]?.url;return(s,l)=>En(r,Bt,vn,e)(s,a||l)},async getStatus(n){const r=await t.getStatus(n),o=e?.serverIndex??0,a=Cn["PublisherApi.getStatus"]?.[o]?.url;return(s,l)=>En(r,Bt,vn,e)(s,a||l)},async getTheme(n){const r=await t.getTheme(n),o=e?.serverIndex??0,a=Cn["PublisherApi.getTheme"]?.[o]?.url;return(s,l)=>En(r,Bt,vn,e)(s,a||l)},async updateTheme(n,r){const o=await t.updateTheme(n,r),a=e?.serverIndex??0,s=Cn["PublisherApi.updateTheme"]?.[a]?.url;return(l,u)=>En(o,Bt,vn,e)(l,s||u)}}};let uZ=class extends As{deleteTheme(t){return tb(this.configuration).deleteTheme(t).then(n=>n(this.axios,this.basePath))}getStatus(t){return tb(this.configuration).getStatus(t).then(n=>n(this.axios,this.basePath))}getTheme(t){return tb(this.configuration).getTheme(t).then(n=>n(this.axios,this.basePath))}updateTheme(t,n){return tb(this.configuration).updateTheme(t,n).then(r=>r(this.axios,this.basePath))}};const dZ=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,kn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};Tn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Mn(r),options:a}},startWatching:async(t,n={})=>{ft("startWatching","startWatchRequest",t);const r="/watch-mode/start",o=new URL(r,kn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",Tn(o,u);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Qo(t,s,e),{url:Mn(o),options:s}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,kn);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...t},s={};Tn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Mn(r),options:a}},streamPackageEvents:async(t,n,r={})=>{ft("streamPackageEvents","environmentName",t),ft("streamPackageEvents","packageName",n);const o="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,kn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Tn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...u,...f,...r.headers},{url:Mn(a),options:l}}}},nb=function(e){const t=dZ(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),o=e?.serverIndex??0,a=Cn["WatchModeApi.getWatchStatus"]?.[o]?.url;return(s,l)=>En(r,Bt,vn,e)(s,a||l)},async startWatching(n,r){const o=await t.startWatching(n,r),a=e?.serverIndex??0,s=Cn["WatchModeApi.startWatching"]?.[a]?.url;return(l,u)=>En(o,Bt,vn,e)(l,s||u)},async stopWatching(n){const r=await t.stopWatching(n),o=e?.serverIndex??0,a=Cn["WatchModeApi.stopWatching"]?.[o]?.url;return(s,l)=>En(r,Bt,vn,e)(s,a||l)},async streamPackageEvents(n,r,o){const a=await t.streamPackageEvents(n,r,o),s=e?.serverIndex??0,l=Cn["WatchModeApi.streamPackageEvents"]?.[s]?.url;return(u,f)=>En(a,Bt,vn,e)(u,l||f)}}};let fZ=class extends As{getWatchStatus(t){return nb(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return nb(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return nb(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}streamPackageEvents(t,n,r){return nb(this.configuration).streamPackageEvents(t,n,r).then(o=>o(this.axios,this.basePath))}},pZ=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const qi={teal:"#14b3cb",orange:"#e47404",darkBlue:"#1474a4"},JS={violet:"#7c4dcc",magenta:"#c2478f",moss:"#5c8f3f"},di='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',hZ=Je(Qp)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),mZ=Je(Xp)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),O5=Je(o7)({padding:"0"}),gZ=Je("div")(({theme:e})=>({backgroundColor:e.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"})),yZ=Je("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Jm=Je("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),vZ=Je("div")({height:"100%"});Je("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const P5=Je("div")({height:"75vh",width:"100%",overflowY:"auto"});Je("div")({position:"relative",height:"100%",flex:"0 0 auto"});const bZ=Je(Qp)(({theme:e})=>({backgroundColor:e.palette.background.paper,padding:"24px",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}})),xZ=Je(Xp)({padding:"0","&:last-child":{paddingBottom:"0"}}),SZ=Je("div")(({theme:e})=>({fontSize:"0.875rem",fontWeight:500,color:e.palette.text.secondary,marginBottom:"16px",paddingBottom:"8px",borderBottom:`1px solid ${e.palette.divider}`}));Je("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});const wZ=[qi.teal,qi.orange,qi.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],CZ="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",M$={palette:{series:wZ,background:{light:"#ffffff",dark:"#1e293b"},tableHeader:{light:"#5d626b",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f5fafc",dark:"#1e293b"},tableBody:{light:"#727883",dark:"#e2e8f0"},tile:{light:"#f5fafc",dark:"#0f172a"},tileTitle:{light:"#5d626b",dark:"#94a3b8"},mapColor:{light:qi.teal,dark:qi.teal}},font:{family:CZ,size:12}},kZ=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function $5(e,t){const n=M$.palette??{},r=M$.font??{family:"sans-serif",size:12};let o=[...n.series??[]],a=r.family??"sans-serif",s=r.size??12;const l={background:{...n.background??{}},tableHeader:{...n.tableHeader??{}},tableHeaderBackground:{...n.tableHeaderBackground??{}},tableBody:{...n.tableBody??{}},tile:{...n.tile??{}},tileTitle:{...n.tileTitle??{}},mapColor:{...n.mapColor??{}}};for(const m of e)if(m){Array.isArray(m.palette?.series)&&(o=[...m.palette.series]);for(const y of kZ){const v=m.palette?.[y];v&&(l[y]={...l[y],...v})}typeof m.font?.family=="string"&&(a=m.font.family),typeof m.font?.size=="number"&&(s=m.font.size)}const u=t==="dark",f=m=>l[m][t]??n[m]?.[t],c=f("background");return{mode:t,series:o,font:{family:a,size:s},background:c,tableHeader:f("tableHeader"),tableHeaderBackground:f("tableHeaderBackground"),tableBody:f("tableBody"),tile:f("tile"),tileTitle:f("tileTitle"),mapColor:f("mapColor"),tableBackground:c,border:u?"1px solid #334155":"1px solid #e5e7eb",pinnedBorder:u?"1px solid #475569":"1px solid #daedf3",valueColor:u?"#f1f5f9":"#1f2937",foreground:u?"#e2e8f0":"#1f2937",axisFaint:u?"#475569":"#d1d5db",dashboardRoot:u?"#1e293b":"#ffffff",drillLink:u?"#60a5fa":"#2563eb"}}function TZ(e,t,n){const r=t??e??"light";return r==="auto"?n?"dark":"light":r}const D5=C.createContext(void 0);function MZ({layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o=!0,children:a}){const s=C.useMemo(()=>$5(e,t),[e,t]),l=C.useMemo(()=>({theme:s,layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o}),[s,e,t,n,r,o]);return h.jsx(D5.Provider,{value:l,children:a})}function ku(){return C.useContext(D5)||{theme:$5([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const TT=new sQ({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),EZ={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},TC="publisher:themeMode";function RZ(){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(TC);if(e==="light"||e==="dark"||e==="auto")return e}catch{}}function OZ(e){if(!(typeof window>"u"))try{e===void 0?window.localStorage.removeItem(TC):window.localStorage.setItem(TC,e)}catch{}}function PZ(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}Bt.defaults.baseURL||(Bt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const A5=C.createContext(void 0),$Z=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=Bt.create({baseURL:e||n,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async a=>{const s=await t?.();return a.headers.Authorization=s||"",a});const o=new pZ({basePath:n});return{models:new oZ(o,n,r),publisher:new uZ(o,n,r),environments:new eZ(o,n,r),packages:new lZ(o,n,r),dashboards:new qX(o,n,r),dataApps:new KX(o,n,r),notebooks:new iZ(o,n,r),connections:new HX(o,n,r),databases:new ZX(o,n,r),materializations:new nZ(o,n,r),watchMode:new fZ(o,n,r)}},DZ=e=>h.jsx(lQ,{client:TT,children:h.jsx(AZ,{...e})}),AZ=({children:e,getAccessToken:t,baseURL:n,mutable:r,theme:o})=>{const a=C.useMemo(()=>$Z(n,t),[n,t]),s=n||`${window.location.protocol}//${window.location.host}/api/v0`,l=n5({queryKey:["status"],queryFn:async()=>(await a.publisher.getStatus()).data});l.error&&console.error("Failed to fetch publisher status:",l.error);const u=l.data?.frozenConfig,f=l.data?.theme,c=l.isLoading;let m;l.isLoading||l.error?m=r:u?m=!1:m=r??!0;const y=C.useMemo(()=>[f,o],[f,o]),[v,b]=C.useState(RZ),[x,w]=C.useState(PZ);C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const $=window.matchMedia("(prefers-color-scheme: dark)"),I=F=>w(F.matches);return $.addEventListener("change",I),()=>$.removeEventListener("change",I)},[]);const S=C.useCallback($=>{b($),OZ($)},[]),k=f?.allowUserToggle??!0,T=k?v:void 0,O=C.useMemo(()=>TZ(f?.defaultMode,T,x),[f?.defaultMode,T,x]),P={server:s,getAccessToken:t,apiClients:a,mutable:m,isLoadingStatus:c,instanceTheme:f};return h.jsx(A5.Provider,{value:P,children:h.jsx(MZ,{layers:y,mode:O,userChoice:T,setMode:S,allowUserToggle:k,children:e})})},_r=()=>{const e=C.useContext(A5);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dd.apply(this,arguments)}const jZ=["children","options"],E$=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),R$={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},NZ=["style","script","pre"],IZ=["src","href","data","formAction","srcDoc","action"],LZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,zZ=/mailto:/i,FZ=/\n{2,}$/,O$=/^(\s*>[\s\S]*?)(?=\n\n|$)/,BZ=/^ *> ?/gm,_Z=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,UZ=/^ {2,}\n/,VZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,P$=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,$$=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,HZ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,WZ=/^(?:\n *)*\n/,qZ=/\r\n?/g,YZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,GZ=/^\[\^([^\]]+)]/,KZ=/\f/g,QZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,XZ=/^\s*?\[(x|\s)\]/,D$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,j$=/^([^\n]+)\n *(=|-){3,} *\n/,ew=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,ZZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,N$=/^<!--[\s\S]*?(?:-->)/,JZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,tw=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,eJ=/^\{.*\}$/,tJ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,nJ=/^<([^ >]+@[^ >]+)>/,rJ=/^<([^ >]+:\/[^ >]+)>/,oJ=/-([a-z])?/gi,I$=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,aJ=/^[^\n]+(?: \n|\n{2,})/,iJ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,sJ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,lJ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,cJ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,uJ=/\t/g,dJ=/(^ *\||\| *$)/g,fJ=/^ *:-+: *$/,pJ=/^ *:-+ *$/,hJ=/^ *-+: *$/,ix=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,sx="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",mJ=RegExp(`^([*_])\\1${ix(1)}${sx}\\1\\1(?!\\1)`),gJ=RegExp(`^([*_])${ix(0)}${sx}\\1(?!\\1)`),yJ=RegExp(`^(==)${ix(0)}${sx}\\1`),vJ=RegExp(`^(~~)${ix(0)}${sx}\\1`),bJ=/^(:[a-zA-Z0-9-_]+:)/,xJ=/^\\([^0-9A-Za-z\s])/,SJ=/\\([^0-9A-Za-z\s])/g,wJ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,CJ=/^\n+/,kJ=/^([ \t]*)/,TJ=/(?:^|\n)( *)$/,MT="(?:\\d+\\.)",ET="(?:[*+-])";function j5(e){return"( *)("+(e===1?MT:ET)+") +"}const N5=j5(1),I5=j5(2);function L5(e){return RegExp("^"+(e===1?N5:I5))}const MJ=L5(1),EJ=L5(2);function z5(e){return RegExp("^"+(e===1?N5:I5)+"[^\\n]*(?:\\n(?!\\1"+(e===1?MT:ET)+" )[^\\n]*)*(\\n|$)","gm")}const RJ=z5(1),OJ=z5(2);function F5(e){const t=e===1?MT:ET;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const B5=F5(1),_5=F5(2);function L$(e,t){const n=t===1,r=n?B5:_5,o=n?RJ:OJ,a=n?MJ:EJ;return{t:s=>a.test(s),o:jp(function(s,l){const u=TJ.exec(l.prevCapture);return u&&(l.list||!l.inline&&!l.simple)?r.exec(s=u[1]+s):null}),i:1,u(s,l,u){const f=n?+s[2]:void 0,c=s[0].replace(FZ,`
287
- `).match(o);let m=!1;return{items:c.map(function(y,v){const b=a.exec(y)[0].length,x=RegExp("^ {1,"+b+"}","gm"),w=y.replace(x,"").replace(a,""),S=v===c.length-1,k=w.indexOf(`
288
-
289
- `)!==-1||S&&m;m=k;const T=u.inline,O=u.list;let P;u.list=!0,k?(u.inline=!1,P=pg(w)+`
290
-
291
- `):(u.inline=!0,P=pg(w));const $=l(P,u);return u.inline=T,u.list=O,$}),ordered:n,start:f}},l:(s,l,u)=>e(s.ordered?"ol":"ul",{key:u.key,start:s.type==="20"?s.start:void 0},s.items.map(function(f,c){return e("li",{key:c},l(f,u))}))}}const PJ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),$J=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function pg(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Pb(e,t){return e.startsWith(t)}function DJ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Pb(e,n[r]))return!0;return!1}return n(e,t)}function km(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function AJ(e){return hJ.test(e)?"right":fJ.test(e)?"center":pJ.test(e)?"left":null}function z$(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){if(!s)return;const u=a[a.length-1];u.push.apply(u,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,f,c)=>{u.trim()==="|"&&(l(),r)?f!==0&&f!==c.length-1&&a.push([]):s+=u}),l(),n.inTable=o,a}function jJ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(dJ,"").split("|").map(AJ):[],o=e[3]?(function(s,l,u){return s.trim().split(`
292
- `).map(function(f){return z$(f,l,u,!0)})})(e[3],t,n):[],a=z$(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function F$(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function jp(e){return e.inline=1,e}function qc(e){return jp(function(t,n){return n.inline?e.exec(t):null})}function Yc(e){return jp(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Xl(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function rb(e){return jp(function(t){return e.exec(t)})}const NJ=/(javascript|vbscript|data(?!:image)):/i;function IJ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(NJ.test(t))return null}catch{return null}return e}function Js(e){return e&&e.replace(SJ,"$1")}function $b(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function LJ(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function zJ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const nw=(e,t,n)=>({children:$b(t,e[2],n)});function rw(){return{}}function ow(){return null}function FJ(...e){return e.filter(Boolean).join(" ")}function aw(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}function BJ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?dd({},R$,t.namedCodesToUnicode):R$;const n=t.slugify||km,r=t.sanitizer||IJ,o=t.createElement||C.createElement,a=[O$,P$,$$,t.enforceAtxHeadings?A$:D$,j$,I$,B5,_5],s=[...a,aJ,ew,N$,tw];function l(S,k,...T){const O=aw(t.overrides,S+".props",{});return o((function(P,$){const I=aw($,P);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:aw($,P+".component",P):P})(S,t.overrides),dd({},k,O,{className:FJ(k?.className,O.className)||void 0}),...T)}function u(S){S=S.replace(QZ,"");let k=!1;t.forceInline?k=!0:t.forceBlock||(k=cJ.test(S)===!1);const T=b(v(k?S:pg(S).replace(CJ,"")+`
293
-
294
- `,{inline:k}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(t.wrapper===null)return T;const O=t.wrapper||(k?"span":"div");let P;if(T.length>1||t.forceWrapper)P=T;else{if(T.length===1)return P=T[0],typeof P=="string"?l("span",{key:"outer"},P):P;P=null}return o(O,{key:"outer"},P)}function f(S,k){if(!k||!k.trim())return null;const T=k.match(LZ);return T?T.reduce(function(O,P){const $=P.indexOf("=");if($!==-1){const I=(function(L){return L.indexOf("-")!==-1&&L.match(JZ)===null&&(L=L.replace(oJ,function(M,_){return _.toUpperCase()})),L})(P.slice(0,$)).trim(),F=(function(L){const M=L[0];return(M==='"'||M==="'")&&L.length>=2&&L[L.length-1]===M?L.slice(1,-1):L})(P.slice($+1).trim()),A=E$[I]||I;if(A==="ref")return O;const H=O[A]=(function(L,M,_,B){return M==="style"?(function(W){const j=[];let Q="",K=!1,te=!1,X="";if(!W)return j;for(let ne=0;ne<W.length;ne++){const oe=W[ne];if(oe!=='"'&&oe!=="'"||K||(te?oe===X&&(te=!1,X=""):(te=!0,X=oe)),oe==="("&&Q.endsWith("url")?K=!0:oe===")"&&K&&(K=!1),oe!==";"||te||K)Q+=oe;else{const se=Q.trim();if(se){const re=se.indexOf(":");if(re>0){const ie=se.slice(0,re).trim(),ce=se.slice(re+1).trim();j.push([ie,ce])}}Q=""}}const J=Q.trim();if(J){const ne=J.indexOf(":");if(ne>0){const oe=J.slice(0,ne).trim(),se=J.slice(ne+1).trim();j.push([oe,se])}}return j})(_).reduce(function(W,[j,Q]){return W[j.replace(/(-[a-z])/g,K=>K[1].toUpperCase())]=B(Q,L,j),W},{}):IZ.indexOf(M)!==-1?B(Js(_),L,M):(_.match(eJ)&&(_=Js(_.slice(1,_.length-1))),_==="true"||_!=="false"&&_)})(S,I,F,r);typeof H=="string"&&(ew.test(H)||tw.test(H))&&(O[A]=u(H.trim()))}else P!=="style"&&(O[E$[P]||P]=!0);return O},{}):null}const c=[],m={},y={0:{t:[">"],o:Xl(O$),i:1,u(S,k,T){const[,O,P]=S[0].replace(BZ,"").match(_Z);return{alert:O,children:k(P,T)}},l(S,k,T){const O={key:T.key};return S.alert&&(O.className="markdown-alert-"+n(S.alert.toLowerCase(),km),S.children.unshift({attrs:{},children:[{type:"27",text:S.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",O,k(S.children,T))}},1:{o:rb(UZ),i:1,u:rw,l:(S,k,T)=>l("br",{key:T.key})},2:{t:S=>{const k=S[0];return k==="-"||k==="*"||k==="_"},o:Xl(VZ),i:1,u:rw,l:(S,k,T)=>l("hr",{key:T.key})},3:{t:[" "],o:Xl($$),i:0,u:S=>({lang:void 0,text:Js(pg(S[0].replace(/^ {4}/gm,"")))}),l:(S,k,T)=>l("pre",{key:T.key},l("code",dd({},S.attrs,{className:S.lang?"lang-"+S.lang:""}),S.text))},4:{t:["```","~~~"],o:Xl(P$),i:0,u:S=>({attrs:f("code",S[3]||""),lang:S[2]||void 0,text:S[4],type:"3"})},5:{t:["`"],o:Yc(HZ),i:3,u:S=>({text:Js(S[2])}),l:(S,k,T)=>l("code",{key:T.key},S.text)},6:{t:["[^"],o:Xl(YZ),i:0,u:S=>(c.push({footnote:S[2],identifier:S[1]}),{}),l:ow},7:{t:["[^"],o:qc(GZ),i:1,u:S=>({target:"#"+n(S[1],km),text:S[1]}),l:(S,k,T)=>l("a",{key:T.key,href:r(S.target,"a","href")},l("sup",{key:T.key},S.text))},8:{t:["[ ]","[x]"],o:qc(XZ),i:1,u:S=>({completed:S[1].toLowerCase()==="x"}),l:(S,k,T)=>l("input",{checked:S.completed,key:T.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Xl(t.enforceAtxHeadings?A$:D$),i:1,u:(S,k,T)=>({children:$b(k,S[2],T),id:n(S[2],km),level:S[1].length}),l:(S,k,T)=>l("h"+S.level,{id:S.id,key:T.key},k(S.children,T))},10:{o:Xl(j$),i:0,u:(S,k,T)=>({children:$b(k,S[1],T),level:S[2]==="="?1:2,type:"9"})},11:{t:["<"],o:rb(ew),i:1,u(S,k,T){const[,O]=S[3].match(kJ),P=RegExp("^"+O,"gm"),$=S[3].replace(P,""),I=(F=$,s.some(_=>_.test(F))?zJ:$b);var F;const A=S[1].toLowerCase(),H=NZ.indexOf(A)!==-1,L=(H?A:S[1]).trim(),M={attrs:f(L,S[2]),noInnerParse:H,tag:L};if(T.inAnchor=T.inAnchor||A==="a",H)M.text=S[3];else{const _=T.inHTML;T.inHTML=!0,M.children=I(k,$,T),T.inHTML=_}return T.inAnchor=!1,M},l:(S,k,T)=>l(S.tag,dd({key:T.key},S.attrs),S.text||(S.children?k(S.children,T):""))},13:{t:["<"],o:rb(tw),i:1,u(S){const k=S[1].trim();return{attrs:f(k,S[2]||""),tag:k}},l:(S,k,T)=>l(S.tag,dd({},S.attrs,{key:T.key}))},12:{t:["<!--"],o:rb(N$),i:1,u:()=>({}),l:ow},14:{t:["!["],o:Yc($J),i:1,u:S=>({alt:Js(S[1]),target:Js(S[2]),title:Js(S[3])}),l:(S,k,T)=>l("img",{key:T.key,alt:S.alt||void 0,title:S.title||void 0,src:r(S.target,"img","src")})},15:{t:["["],o:qc(PJ),i:3,u:(S,k,T)=>({children:LJ(k,S[1],T),target:Js(S[2]),title:Js(S[3])}),l:(S,k,T)=>l("a",{key:T.key,href:r(S.target,"a","href"),title:S.title},k(S.children,T))},16:{t:["<"],o:qc(rJ),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],type:"15"})},17:{t:(S,k)=>!k.inAnchor&&!t.disableAutoLink&&(Pb(S,"http://")||Pb(S,"https://")),o:qc(tJ),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],title:void 0,type:"15"})},18:{t:["<"],o:qc(nJ),i:0,u(S){let k=S[1],T=S[1];return zZ.test(T)||(T="mailto:"+T),{children:[{text:k.replace("mailto:",""),type:"27"}],target:T,type:"15"}}},20:L$(l,1),33:L$(l,2),19:{o:Xl(WZ),i:3,u:rw,l:()=>`
295
- `},21:{o:jp(function(S,k){if(k.inline||k.simple||k.inHTML&&S.indexOf(`
296
-
297
- `)===-1&&k.prevCapture.indexOf(`
298
-
299
- `)===-1)return null;let T="";S.split(`
300
- `).every(P=>(P+=`
301
- `,!a.some($=>$.test(P))&&(T+=P,!!P.trim())));const O=pg(T);return O===""?null:[T,,O]}),i:3,u:nw,l:(S,k,T)=>l("p",{key:T.key},k(S.children,T))},22:{t:["["],o:qc(iJ),i:0,u:S=>(m[S[1]]={target:S[2],title:S[4]},{}),l:ow},23:{t:["!["],o:Yc(sJ),i:0,u:S=>({alt:S[1]?Js(S[1]):void 0,ref:S[2]}),l:(S,k,T)=>m[S.ref]?l("img",{key:T.key,alt:S.alt,src:r(m[S.ref].target,"img","src"),title:m[S.ref].title}):null},24:{t:S=>S[0]==="["&&S.indexOf("](")===-1,o:qc(lJ),i:0,u:(S,k,T)=>({children:k(S[1],T),fallbackChildren:S[0],ref:S[2]}),l:(S,k,T)=>m[S.ref]?l("a",{key:T.key,href:r(m[S.ref].target,"a","href"),title:m[S.ref].title},k(S.children,T)):l("span",{key:T.key},S.fallbackChildren)},25:{t:["|"],o:Xl(I$),i:1,u:jJ,l(S,k,T){const O=S;return l("table",{key:T.key},l("thead",null,l("tr",null,O.header.map(function(P,$){return l("th",{key:$,style:F$(O,$)},k(P,T))}))),l("tbody",null,O.cells.map(function(P,$){return l("tr",{key:$},P.map(function(I,F){return l("td",{key:F,style:F$(O,F)},k(I,T))}))})))}},27:{o:jp(function(S,k){let T;return Pb(S,":")&&(T=bJ.exec(S)),T||wJ.exec(S)}),i:4,u(S){const k=S[0];return{text:k.indexOf("&")===-1?k:k.replace(ZZ,(T,O)=>t.namedCodesToUnicode[O]||T)}},l:S=>S.text},28:{t:["**","__"],o:Yc(mJ),i:2,u:(S,k,T)=>({children:k(S[2],T)}),l:(S,k,T)=>l("strong",{key:T.key},k(S.children,T))},29:{t:S=>{const k=S[0];return(k==="*"||k==="_")&&S[1]!==k},o:Yc(gJ),i:3,u:(S,k,T)=>({children:k(S[2],T)}),l:(S,k,T)=>l("em",{key:T.key},k(S.children,T))},30:{t:["\\"],o:Yc(xJ),i:1,u:S=>({text:S[1],type:"27"})},31:{t:["=="],o:Yc(yJ),i:3,u:nw,l:(S,k,T)=>l("mark",{key:T.key},k(S.children,T))},32:{t:["~~"],o:Yc(vJ),i:3,u:nw,l:(S,k,T)=>l("del",{key:T.key},k(S.children,T))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const v=(function(S){var k=Object.keys(S);function T(O,P){var $=[];if(P.prevCapture=P.prevCapture||"",O.trim())for(;O;)for(var I=0;I<k.length;){var F=k[I],A=S[F];if(!A.t||DJ(O,P,A.t)){var H=A.o(O,P);if(H&&H[0]){O=O.substring(H[0].length);var L=A.u(H,T,P);P.prevCapture+=H[0],L.type||(L.type=F),$.push(L);break}I++}else I++}return P.prevCapture="",$}return k.sort(function(O,P){return S[O].i-S[P].i||(O<P?-1:1)}),function(O,P){return T((function($){return $.replace(qZ,`
302
- `).replace(KZ,"").replace(uJ," ")})(O),P)}})(y),b=(x=(function(S,k){return function(T,O,P){const $=S[T.type].l;return k?k(()=>$(T,O,P),T,O,P):$(T,O,P)}})(y,t.renderRule),function S(k,T={}){if(Array.isArray(k)){const O=T.key,P=[];let $=!1;for(let I=0;I<k.length;I++){T.key=I;const F=S(k[I],T),A=typeof F=="string";A&&$?P[P.length-1]+=F:F!==null&&P.push(F),$=A}return T.key=O,P}return x(k,S,T)});var x;const w=u(e);return c.length?l("div",null,w,l("footer",{key:"footer"},c.map(function(S){return l("div",{id:n(S.identifier,km),key:S.identifier},S.identifier,b(v(S.footnote,{inline:!0})))}))):w}const _J=e=>{let{children:t="",options:n}=e,r=(function(o,a){if(o==null)return{};var s,l,u={},f=Object.keys(o);for(l=0;l<f.length;l++)a.indexOf(s=f[l])>=0||(u[s]=o[s]);return u})(e,jZ);return C.cloneElement(BJ(t,n),r)},UJ=da(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),VJ=da(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1"})),lx=da(h.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),RT=da(h.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),cx=da(h.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),HJ=da(h.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function ca({error:e,context:t}){const n=e.data?.message||"Unknown Error";return h.jsxs(h.Fragment,{children:[t&&h.jsx(St,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WJ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var MC={exports:{}},qJ=MC.exports,B$;function YJ(){return B$||(B$=1,(function(e,t){(function(n,r){e.exports=r()})(qJ,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",u="hour",f="day",c="week",m="month",y="quarter",v="year",b="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var W=["th","st","nd","rd"],j=B%100;return"["+B+(W[(j-20)%10]||W[j]||W[0])+"]"}},T=function(B,W,j){var Q=String(B);return!Q||Q.length>=W?B:""+Array(W+1-Q.length).join(j)+B},O={s:T,z:function(B){var W=-B.utcOffset(),j=Math.abs(W),Q=Math.floor(j/60),K=j%60;return(W<=0?"+":"-")+T(Q,2,"0")+":"+T(K,2,"0")},m:function B(W,j){if(W.date()<j.date())return-B(j,W);var Q=12*(j.year()-W.year())+(j.month()-W.month()),K=W.clone().add(Q,m),te=j-K<0,X=W.clone().add(Q+(te?-1:1),m);return+(-(Q+(j-K)/(te?K-X:X-K))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:m,y:v,w:c,d:f,D:b,h:u,m:l,s,ms:a,Q:y}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},P="en",$={};$[P]=k;var I="$isDayjsObject",F=function(B){return B instanceof M||!(!B||!B[I])},A=function B(W,j,Q){var K;if(!W)return P;if(typeof W=="string"){var te=W.toLowerCase();$[te]&&(K=te),j&&($[te]=j,K=te);var X=W.split("-");if(!K&&X.length>1)return B(X[0])}else{var J=W.name;$[J]=W,K=J}return!Q&&K&&(P=K),K||!Q&&P},H=function(B,W){if(F(B))return B.clone();var j=typeof W=="object"?W:{};return j.date=B,j.args=arguments,new M(j)},L=O;L.l=A,L.i=F,L.w=function(B,W){return H(B,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var M=(function(){function B(j){this.$L=A(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[I]=!0}var W=B.prototype;return W.parse=function(j){this.$d=(function(Q){var K=Q.date,te=Q.utc;if(K===null)return new Date(NaN);if(L.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var X=K.match(w);if(X){var J=X[2]-1||0,ne=(X[7]||"0").substring(0,3);return te?new Date(Date.UTC(X[1],J,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)):new Date(X[1],J,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)}}return new Date(K)})(j),this.init()},W.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},W.$utils=function(){return L},W.isValid=function(){return this.$d.toString()!==x},W.isSame=function(j,Q){var K=H(j);return this.startOf(Q)<=K&&K<=this.endOf(Q)},W.isAfter=function(j,Q){return H(j)<this.startOf(Q)},W.isBefore=function(j,Q){return this.endOf(Q)<H(j)},W.$g=function(j,Q,K){return L.u(j)?this[Q]:this.set(K,j)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(j,Q){var K=this,te=!!L.u(Q)||Q,X=L.p(j),J=function(ye,we){var Ce=L.w(K.$u?Date.UTC(K.$y,we,ye):new Date(K.$y,we,ye),K);return te?Ce:Ce.endOf(f)},ne=function(ye,we){return L.w(K.toDate()[ye].apply(K.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(we)),K)},oe=this.$W,se=this.$M,re=this.$D,ie="set"+(this.$u?"UTC":"");switch(X){case v:return te?J(1,0):J(31,11);case m:return te?J(1,se):J(0,se+1);case c:var ce=this.$locale().weekStart||0,me=(oe<ce?oe+7:oe)-ce;return J(te?re-me:re+(6-me),se);case f:case b:return ne(ie+"Hours",0);case u:return ne(ie+"Minutes",1);case l:return ne(ie+"Seconds",2);case s:return ne(ie+"Milliseconds",3);default:return this.clone()}},W.endOf=function(j){return this.startOf(j,!1)},W.$set=function(j,Q){var K,te=L.p(j),X="set"+(this.$u?"UTC":""),J=(K={},K[f]=X+"Date",K[b]=X+"Date",K[m]=X+"Month",K[v]=X+"FullYear",K[u]=X+"Hours",K[l]=X+"Minutes",K[s]=X+"Seconds",K[a]=X+"Milliseconds",K)[te],ne=te===f?this.$D+(Q-this.$W):Q;if(te===m||te===v){var oe=this.clone().set(b,1);oe.$d[J](ne),oe.init(),this.$d=oe.set(b,Math.min(this.$D,oe.daysInMonth())).$d}else J&&this.$d[J](ne);return this.init(),this},W.set=function(j,Q){return this.clone().$set(j,Q)},W.get=function(j){return this[L.p(j)]()},W.add=function(j,Q){var K,te=this;j=Number(j);var X=L.p(Q),J=function(se){var re=H(te);return L.w(re.date(re.date()+Math.round(se*j)),te)};if(X===m)return this.set(m,this.$M+j);if(X===v)return this.set(v,this.$y+j);if(X===f)return J(1);if(X===c)return J(7);var ne=(K={},K[l]=r,K[u]=o,K[s]=n,K)[X]||1,oe=this.$d.getTime()+j*ne;return L.w(oe,this)},W.subtract=function(j,Q){return this.add(-1*j,Q)},W.format=function(j){var Q=this,K=this.$locale();if(!this.isValid())return K.invalidDate||x;var te=j||"YYYY-MM-DDTHH:mm:ssZ",X=L.z(this),J=this.$H,ne=this.$m,oe=this.$M,se=K.weekdays,re=K.months,ie=K.meridiem,ce=function(we,Ce,$e,fe){return we&&(we[Ce]||we(Q,te))||$e[Ce].slice(0,fe)},me=function(we){return L.s(J%12||12,we,"0")},ye=ie||function(we,Ce,$e){var fe=we<12?"AM":"PM";return $e?fe.toLowerCase():fe};return te.replace(S,(function(we,Ce){return Ce||(function($e){switch($e){case"YY":return String(Q.$y).slice(-2);case"YYYY":return L.s(Q.$y,4,"0");case"M":return oe+1;case"MM":return L.s(oe+1,2,"0");case"MMM":return ce(K.monthsShort,oe,re,3);case"MMMM":return ce(re,oe);case"D":return Q.$D;case"DD":return L.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return ce(K.weekdaysMin,Q.$W,se,2);case"ddd":return ce(K.weekdaysShort,Q.$W,se,3);case"dddd":return se[Q.$W];case"H":return String(J);case"HH":return L.s(J,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ye(J,ne,!0);case"A":return ye(J,ne,!1);case"m":return String(ne);case"mm":return L.s(ne,2,"0");case"s":return String(Q.$s);case"ss":return L.s(Q.$s,2,"0");case"SSS":return L.s(Q.$ms,3,"0");case"Z":return X}return null})(we)||X.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(j,Q,K){var te,X=this,J=L.p(Q),ne=H(j),oe=(ne.utcOffset()-this.utcOffset())*r,se=this-ne,re=function(){return L.m(X,ne)};switch(J){case v:te=re()/12;break;case m:te=re();break;case y:te=re()/3;break;case c:te=(se-oe)/6048e5;break;case f:te=(se-oe)/864e5;break;case u:te=se/o;break;case l:te=se/r;break;case s:te=se/n;break;default:te=se}return K?te:L.a(te)},W.daysInMonth=function(){return this.endOf(m).$D},W.$locale=function(){return $[this.$L]},W.locale=function(j,Q){if(!j)return this.$L;var K=this.clone(),te=A(j,Q,!0);return te&&(K.$L=te),K},W.clone=function(){return L.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},B})(),_=M.prototype;return H.prototype=_,[["$ms",a],["$s",s],["$m",l],["$H",u],["$W",f],["$M",m],["$y",v],["$D",b]].forEach((function(B){_[B[1]]=function(W){return this.$g(W,B[0],B[1])}})),H.extend=function(B,W){return B.$i||(B(W,M,H),B.$i=!0),H},H.locale=A,H.isDayjs=F,H.unix=function(B){return H(1e3*B)},H.en=$[P],H.Ls=$,H.p={},H}))})(MC)),MC.exports}var GJ=YJ();const Ar=fc(GJ);var EC={exports:{}},KJ=EC.exports,_$;function QJ(){return _$||(_$=1,(function(e,t){(function(n,r){e.exports=r()})(KJ,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,s,l){var u=s.prototype;l.utc=function(x){var w={date:x,utc:!0,args:arguments};return new s(w)},u.utc=function(x){var w=l(this.toDate(),{locale:this.$L,utc:!0});return x?w.add(this.utcOffset(),n):w},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var f=u.parse;u.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),f.call(this,x)};var c=u.init;u.init=function(){if(this.$u){var x=this.$d;this.$y=x.getUTCFullYear(),this.$M=x.getUTCMonth(),this.$D=x.getUTCDate(),this.$W=x.getUTCDay(),this.$H=x.getUTCHours(),this.$m=x.getUTCMinutes(),this.$s=x.getUTCSeconds(),this.$ms=x.getUTCMilliseconds()}else c.call(this)};var m=u.utcOffset;u.utcOffset=function(x,w){var S=this.$utils().u;if(S(x))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof x=="string"&&(x=(function(P){P===void 0&&(P="");var $=P.match(r);if(!$)return null;var I=(""+$[0]).match(o)||["-",0,0],F=I[0],A=60*+I[1]+ +I[2];return A===0?0:F==="+"?A:-A})(x),x===null))return this;var k=Math.abs(x)<=16?60*x:x;if(k===0)return this.utc(w);var T=this.clone();if(w)return T.$offset=k,T.$u=!1,T;var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(T=this.local().add(k+O,n)).$offset=k,T.$x.$localOffset=O,T};var y=u.format;u.format=function(x){var w=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,w)},u.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var v=u.toDate;u.toDate=function(x){return x==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var b=u.diff;u.diff=function(x,w,S){if(x&&this.$u===x.$u)return b.call(this,x,w,S);var k=this.local(),T=l(x).local();return b.call(k,T,w,S)}}}))})(EC)),EC.exports}var XJ=QJ();const OT=fc(XJ);Ar.extend(OT);function fd(e){return(e??"").startsWith("filter<")}function hg(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function PT(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":as.StringFilterExpression.unparse({operator:"=",values:[...t]})}function ZJ(e){if(e.trim()==="")return[];const{parsed:t}=as.StringFilterExpression.parse(e);return U5(t)?t.values:[e]}function JJ(e){return e===void 0||e.trim()===""?!0:U5(as.StringFilterExpression.parse(e).parsed)}function U5(e){return e!==null&&as.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function eee(e){return as.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function tee(e){const t=e.trim();if(t==="")return;const{parsed:n}=as.NumberFilterExpression.parse(t);if(n===null||n.operator!==">="||n.not===!0||n.values?.length!==1)return;const r=Number(n.values[0]);return Number.isFinite(r)?r:void 0}function nee(e,t){return as.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function ree(e){const t=e.trim();if(t==="")return;const{parsed:n}=as.NumberFilterExpression.parse(t);if(n===null||n.operator!=="range"||n.not===!0||n.startOperator!==">="||n.endOperator!=="<=")return;const r=Number(n.startValue),o=Number(n.endValue);return Number.isFinite(r)&&Number.isFinite(o)&&r<=o?[r,o]:void 0}const n0=[{key:"today",label:"Today",clause:{operator:"in",in:{moment:"today"}}},{key:"7d",label:"Last 7 days",clause:{operator:"in_last",units:"day",n:"7"}},{key:"30d",label:"Last 30 days",clause:{operator:"in_last",units:"day",n:"30"}},{key:"90d",label:"Last 90 days",clause:{operator:"in_last",units:"day",n:"90"}},{key:"12m",label:"Last 12 months",clause:{operator:"in_last",units:"month",n:"12"}}];function oee(e){const t=n0.find(n=>n.key===e);return t?as.TemporalFilterExpression.unparse(t.clause):void 0}function aee(e){const t=e.trim();if(t==="")return;const{parsed:n}=as.TemporalFilterExpression.parse(t);if(n!==null)for(const r of n0){const o=r.clause;if(o.operator===n.operator&&(o.operator==="in"&&n.operator==="in"&&n.not!==!0&&n.in.moment===o.in.moment||o.operator==="in_last"&&n.operator==="in_last"&&n.not!==!0&&n.units===o.units&&Number(n.n)===Number(o.n)))return r.key}}const iee=/^\d{4}-\d{2}-\d{2}$/;function see(e,t){const n=Ar.utc(t,"YYYY-MM-DD").add(1,"day");return as.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function lee(e){const t=e.trim();if(t==="")return;const{parsed:n}=as.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=U$(n.fromMoment),o=U$(n.toMoment);if(r===void 0||o===void 0)return;const a=Ar.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!a.isValid()||a.isBefore(Ar.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:a.format("YYYY-MM-DD")}}function U$(e){return e.moment==="literal"&&iee.test(e.literal)?e.literal:void 0}const iw="self";function V5(e){if(!e)return[];if(e.wasDimension&&!e.wasDimension())return[];const t=e.tag?.tag("drill");return t?(t.textArray("to")??[t.text("to")].filter(V$)).filter(V$):[]}function H5(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function W5(e){return e.tag?.tag("drill")?.text("given")??e.name}function ux(e){if(typeof e=="string"){const t=PT([e]);return t===""?void 0:t}if(typeof e=="boolean")return String(e);if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(e instanceof Date){const t=e.toISOString();return t.slice(0,t.indexOf("T"))}}function q5(e){return e instanceof Date?ux(e)??"":String(e)}function cee(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=V5(t);if(n.length===0)return;const r=ux(e.value);if(r!==void 0)return{to:n,given:W5(t),value:r,rawValue:e.value,label:q5(e.value)}}function V$(e){return typeof e=="string"&&e!==""}function uee(e,t){if(t!==void 0&&!fd(t)){if(t==="number"){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string"||e.trim()==="")return;const n=Number(e);return Number.isFinite(n)?n:void 0}if(t==="date"||t==="timestamp"||t==="timestamptz")return e instanceof Date?e:void 0;if(t==="boolean")return typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0;if(typeof e=="string")return e.trim()===""?void 0:e;if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(typeof e=="boolean")return String(e)}return hg(t)==="string"&&typeof e=="number"?Number.isFinite(e)?PT([String(e)]):void 0:hg(t)==="number"?typeof e=="number"?Number.isFinite(e)?String(e):void 0:typeof e!="string"||e.trim()===""?void 0:Number.isFinite(Number(e))?e.trim():void 0:ux(e)}function dee({declaredTypes:e,setGiven:t,documentName:n}){const r=C.useMemo(()=>{const l=new Map;for(const u of e.keys())l.has(u.toLowerCase())||l.set(u.toLowerCase(),u);return l},[e]),o=C.useCallback(l=>e.has(l)?l:r.get(l.toLowerCase()),[e,r]),a=C.useCallback(l=>o(l)!==void 0,[o]),s=C.useCallback((l,u)=>{const f=o(l);if(f===void 0){console.warn(`# drill { to=self } tried to set '${l}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const c=e.get(f),m=uee(u,c);if(m===void 0){console.warn(`Drill declined: ${JSON.stringify(u)} cannot be a value for given "${f}"`+(c?` of type ${c}`:""));return}t(f,m)},[e,n,o,t]);return{resolveGiven:o,canSelf:a,onSelf:s}}function fee(e,t){if(e!=null){if(e instanceof Date)return K5(e,t);if(!Array.isArray(e))return String(e)}}function pee(e,t){return new Date(Date.UTC(e.year(),e.month(),e.date(),t?.getUTCHours()??0,t?.getUTCMinutes()??0,t?.getUTCSeconds()??0,t?.getUTCMilliseconds()??0))}const hee=/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s]+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?)?\s*(Z|[+-]\d{2}:?\d{2}|[+-]\d{2}|UTC|GMT)?$/i;function Y5(e){const t=e.trim();return t===""?e:t.replace(/^(\d{4}-\d{1,2}-\d{1,2}[T\s]+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d{1,9})?)\s+(\d{2}:?\d{2}|\d{2})$/,"$1+$2")}function mee(e,t=!1){const n=Y5(e);if(n==="")return;const r=hee.exec(n);if(!r)return;const[,o,a,s,l,u,f,c,m]=r,y={year:Number(o),month:Number(a),day:Number(s),hour:Number(l??0),minute:Number(u??0),second:Number(f??0),milli:Number((c??"").slice(0,3).padEnd(3,"0")||0)},v=Date.UTC(y.year,y.month-1,y.day,y.hour,y.minute,y.second,y.milli),b=new Date(v);if(!(b.getUTCFullYear()===y.year&&b.getUTCMonth()===y.month-1&&b.getUTCDate()===y.day&&b.getUTCHours()===y.hour&&b.getUTCMinutes()===y.minute&&b.getUTCSeconds()===y.second)||m!==void 0&&l===void 0)return;const x=gee(m);if(x===void 0)return;const w=new Date(v-x*6e4);if(!(t&&m!==void 0&&w.getUTCDate()!==y.day))return w}function gee(e){if(e===void 0)return 0;const t=e.toUpperCase();if(t==="Z"||t==="UTC"||t==="GMT")return 0;const n=/^([+-])(\d{2}):?(\d{2})?$/.exec(t);if(!n)return;const r=Number(n[3]??0);if(r>59)return;const o=Number(n[2])*60+r,a=n[1]!=="-";if(!(o>(a?840:720)))return a?o:-o}function yee(e){return!vee.has(e??"")}const vee=new Set(["boolean","number","date","timestamp","timestamptz"]);function G5(e,t){if(t===""&&!yee(e))return null;if(fd(e))return t;switch(e){case"number":{const n=t.trim()===""?NaN:Number(t);return Number.isFinite(n)?n:t}case"boolean":return t==="true"?!0:t==="false"?!1:t;case"date":case"timestamp":case"timestamptz":{const n=Y5(t);return mee(n,e==="date")??n}default:return t}}function bee(e,t){const n={};for(const[r,o]of e){const a=fee(o,t.get(r));a!==void 0&&(n[r]=a)}return n}function K5(e,t){const n=e.toISOString();switch(t){case"timestamptz":return n;case"timestamp":return n.slice(0,-1);default:return n.slice(0,10)}}function dx(e,t,n){const r=n?new Set(n):void 0,o={};for(const[a,s]of e)r&&!r.has(a)||s!=null&&(Array.isArray(s)||(o[a]=s instanceof Date?K5(s,t.get(a)):s));return o}function H$(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,G5(t.get(r),o));return n}function W$(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function q$(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function xee(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function Y$(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function See({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:a}){const s=C.useMemo(()=>H$(t??{},e),[e,JSON.stringify(t)]),l=C.useRef(null),u=C.useRef(null),f=C.useRef({documentKey:o,params:n}),c=L=>L!==null&&xee(n??{},L,e);c(l.current)&&(u.current=null),(f.current.documentKey!==o||!Y$(n??{},f.current.params??{})&&!c(l.current)&&!c(u.current))&&(f.current={documentKey:o,params:n});const m=f.current.params,y=JSON.stringify(t),v=JSON.stringify(m),b=C.useMemo(()=>H$({...t??{},...m??{}},e),[e,y,v]),x=C.useMemo(()=>JSON.stringify([o??null,q$(t),q$(m)]),[o,y,v]),[w,S]=C.useState(null),k=w?.key===x?w:null;C.useEffect(()=>{w!==null&&w.key!==x&&S(null)},[w,x]);const T=C.useMemo(()=>W$(k?.draft??b,e),[k,b,e]),O=C.useMemo(()=>W$(k?.applied??b,e),[k,b,e]),P=C.useCallback(L=>L?.key===x?L:{key:x,draft:b,applied:b},[x,b]),$=C.useMemo(()=>bee(O,e),[O,e]);l.current===null&&(l.current=$),C.useEffect(()=>{r&&(Y$(l.current??{},$)||(u.current=l.current,l.current=$,r($)))},[$,r]);const I=C.useCallback((L,M)=>{S(_=>{const B=P(_),W=new Map(B.draft);return M===null?W.delete(L):W.set(L,M),{key:B.key,draft:W,applied:a?W:B.applied}})},[a,P]),F=C.useCallback(()=>{S(L=>({key:P(L).key,draft:s,applied:s}))},[P,s]),A=C.useCallback(()=>{S(L=>{const M=P(L);return{key:M.key,draft:M.draft,applied:M.draft}})},[P]),H=C.useMemo(()=>{if(a)return!1;if(T.size!==O.size)return!0;for(const[L,M]of T){const _=O.get(L);if(M instanceof Date&&_ instanceof Date){if(M.getTime()!==_.getTime())return!0}else if(Array.isArray(M)&&Array.isArray(_)){if(String(M)!==String(_))return!0}else if(M!==_)return!0}return!1},[a,T,O]);return{draft:T,applied:O,setGiven:I,reset:F,apply:A,pending:H}}const wee=1e3;function Q5(e){const t=e.split(".");return t[t.length-1]}function Cee(e,t){return`run: ${e} -> {
303
- group_by: ${t}
304
- order_by: ${Q5(t)} asc
305
- limit: ${wee}
306
- }`}function kee(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=dx(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function Tee(e,t,n,r,o,a){const{apiClients:s}=_r(),l=C.useMemo(()=>r.filter(m=>m.name!==void 0&&(m.control==="select"||m.control==="multiselect")&&(m.suggest?.query!==void 0||m.suggest?.source!==void 0&&m.suggest?.dimension!==void 0)),[r]),u=dQ({queries:l.map(m=>{const y=kee(m,a);return{queryKey:["givenSuggest",e,t,o,n,m.name,m.suggest?.query,m.suggest?.source,m.suggest?.dimension,y===void 0?null:JSON.stringify(y)],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async()=>{const v=m.suggest??{},b=await s.models.executeQueryModel(e,t,n,v.query!==void 0?{queryName:v.query,compactJson:!0,versionId:o,givens:y}:{query:Cee(v.source,v.dimension),compactJson:!0,versionId:o,givens:y});return Mee(b.data.result,v.dimension===void 0?void 0:Q5(v.dimension))}}})}),f=C.useMemo(()=>{const m=new Map;return l.forEach((y,v)=>{const b=u[v]?.data;y.name&&b&&m.set(y.name,b)}),m},[l,JSON.stringify(u.map(m=>m.data))]),c=C.useMemo(()=>{const m=new Set;return l.forEach((y,v)=>{y.name&&u[v]?.isError&&m.add(y.name)}),m},[l,u.map(m=>m.isError).join("|")]);return{options:f,isLoading:u.some(m=>m.isLoading),failed:c}}function Mee(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const a of n){if(a===null||typeof a!="object")continue;const s=a,l=Object.keys(s),u=t!==void 0&&Object.prototype.hasOwnProperty.call(s,t)?t:l[0],f=u===void 0?void 0:s[u];if(f==null)continue;const c=String(f);o.has(c)||(o.add(c),r.push(c))}return r}function X5({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:a,autorun:s,environmentName:l,packageName:u,modelPath:f,versionId:c,documentName:m}){const y=C.useMemo(()=>new Map(e.filter(O=>O.name!==void 0).map(O=>[O.name,O.type])),[e]),v=C.useCallback(O=>{t&&o?.(O,Array.from(y.keys()))},[t,o,y]),b=See({declaredTypes:y,startingValues:n,params:r,onParamsChange:t?v:void 0,documentKey:a,autorun:s}),{options:x,isLoading:w,failed:S}=Tee(l,u,f,e,c,{values:b.applied,declaredTypes:y}),{canSelf:k,onSelf:T}=dee({declaredTypes:y,setGiven:b.setGiven,documentName:m});return{...b,declaredTypes:y,options:x,optionsLoading:w,optionsFailed:S,canSelf:k,onSelf:T,panel:{givens:e,values:b.draft,onChange:b.setGiven,onReset:b.reset,options:x,optionsLoading:w,optionsFailed:S,apply:s?void 0:{onApply:b.apply,pending:b.pending}}}}function ho(e){const{server:t}=_r(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const a=new Error(o.response.data.message||o.message);throw a.status=o.response.status,a.data=o.response.data,a}}throw r}},retry:!1,throwOnError:!1};return n5(n,TT)}function Vo(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const a=new Error(o.response.data.message||o.message);throw a.status=o.response.status,a.data=o.response.data,a}}throw r}},retry:!1,throwOnError:!1};return pQ(t,TT)}const yo=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const a=r[o];a==="environments"?n.environmentName=decodeURI(r[o+1])||void 0:a==="packages"?n.packageName=decodeURI(r[o+1])||void 0:a==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:a==="models"&&(n.modelPath=decodeURI(r.slice(o+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.environmentName)throw new Error(`Failed to parse resource URI: ${e}`);return n},fx=e=>{if(!e.environmentName)throw new Error(`Failed to encode resource URI, missing environment name: ${e}`);let t=`publisher://environments/${e.environmentName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};function Z5({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[a,s]=C.useState(null),l=C.useCallback((b,x)=>b.filter(w=>w===iw?t!==void 0&&(r?.(x)??!0):e!==void 0),[e,t,r]),u=C.useCallback((b,x,w)=>{if(x===iw){t?.(b.given,b.rawValue);return}e?.({dashboard:x,givens:{[b.given]:b.value}},w)},[e,t]),f=C.useCallback(b=>{if(!(!o||b.isHeader||!b.field)&&(b.field.wasDimension?.()??!1)&&ux(b.value)!==void 0)return{field:b.field.name,rawValue:b.value,label:q5(b.value),...b.context===void 0?{}:{context:b.context}}},[o]),c=C.useCallback(b=>{const x=cee(b),w=f(b),S=x?l(x.to,x.given):[];if(S.length===0){w&&o?.(w);return}if(S.length===1&&x){u(x,S[0],b.event);return}s({...x?{intent:x}:{},destinations:S,event:b.event,top:b.event?.clientY??0,left:b.event?.clientX??0,label:x?.label??w?.label??""})},[u,l,o,f]),m=C.useCallback(b=>l(V5(b),W5(b)).length>0||o!==void 0&&(b.wasDimension?.()??!1),[l,o]),y=C.useMemo(()=>({onClick:c,canDrill:m}),[c,m]),v=C.useCallback(()=>s(null),[]);return{drill:y,drillMenu:h.jsxs(Zp,{open:a!==null,onClose:v,anchorReference:"anchorPosition",anchorPosition:{top:a?.top??0,left:a?.left??0},children:[h.jsx(Qb,{sx:{lineHeight:"32px"},children:a?`${a.label} →`:""}),Array.from(new Set(a?.destinations??[])).map(b=>h.jsx(rc,{onClick:()=>{v(),a?.intent&&u(a.intent,b,a.event)},children:b===iw?n:H5(b)},b))]})}}const G$=e=>e,Eee=()=>{let e=G$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=G$}}},J5=Eee();function lc(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Et(e){if(typeof e!="string")throw new Error(lc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function K$(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var Q$={exports:{}},sw,X$;function Ree(){if(X$)return sw;X$=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return sw=e,sw}var lw,Z$;function Oee(){if(Z$)return lw;Z$=1;var e=Ree();function t(){}function n(){}return n.resetWarningCache=t,lw=function(){function r(s,l,u,f,c,m){if(m!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},lw}var J$;function Pee(){return J$||(J$=1,Q$.exports=Oee()()),Q$.exports}var $ee=Pee();const rt=fc($ee);function eL(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=eL(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function It(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=eL(e))&&(r&&(r+=" "),r+=t);return r}function Zt(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const f=a[u];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}var eD={exports:{}},Fr={};/**
307
- * @license React
308
- * react-is.production.js
309
- *
310
- * Copyright (c) Meta Platforms, Inc. and affiliates.
311
- *
312
- * This source code is licensed under the MIT license found in the
313
- * LICENSE file in the root directory of this source tree.
314
- */var tD;function Dee(){if(tD)return Fr;tD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function b(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case u:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case m:case c:return x;case a:return x;default:return w}}case t:return w}}}return Fr.ContextConsumer=a,Fr.ContextProvider=s,Fr.Element=e,Fr.ForwardRef=l,Fr.Fragment=n,Fr.Lazy=m,Fr.Memo=c,Fr.Portal=t,Fr.Profiler=o,Fr.StrictMode=r,Fr.Suspense=u,Fr.SuspenseList=f,Fr.isContextConsumer=function(x){return b(x)===a},Fr.isContextProvider=function(x){return b(x)===s},Fr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Fr.isForwardRef=function(x){return b(x)===l},Fr.isFragment=function(x){return b(x)===n},Fr.isLazy=function(x){return b(x)===m},Fr.isMemo=function(x){return b(x)===c},Fr.isPortal=function(x){return b(x)===t},Fr.isProfiler=function(x){return b(x)===o},Fr.isStrictMode=function(x){return b(x)===r},Fr.isSuspense=function(x){return b(x)===u},Fr.isSuspenseList=function(x){return b(x)===f},Fr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===c||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===v||x.getModuleId!==void 0)},Fr.typeOf=b,Fr}var nD;function Aee(){return nD||(nD=1,eD.exports=Dee()),eD.exports}var tL=Aee();function cl(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 nL(e){if(C.isValidElement(e)||tL.isValidElementType(e)||!cl(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=nL(e[n])}),t}function la(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return cl(e)&&cl(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||tL.isValidElementType(t[o])?r[o]=t[o]:cl(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&cl(e[o])?r[o]=la(e[o],t[o],n):n.clone?r[o]=cl(t[o])?nL(t[o]):t[o]:r[o]=t[o]}),r}function mg(e,t){return t?la(e,t,{clone:!1}):e}function rD(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function jee(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Nee(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Iee(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const px={xs:0,sm:600,md:900,lg:1200,xl:1536},oD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${px[e]}px)`},Lee={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:px[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function cc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||oD;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||oD;return Object.keys(t).reduce((a,s)=>{if(jee(o.keys,s)){const l=Nee(r.containerQueries?r:Lee,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||px).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function zee(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function aD(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function hx(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function r0(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=hx(e,n)||r,t&&(o=t(o,r,e)),o}function ko(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,f=hx(u,r)||{};return cc(s,l,c=>{let m=r0(f,o,c);return c===m&&typeof c=="string"&&(m=r0(f,o,`${t}${c==="default"?"":Et(c)}`,c)),n===!1?m:{[n]:m}})};return a.propTypes={},a.filterProps=[t],a}function Fee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Bee={m:"margin",p:"padding"},_ee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},iD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uee=Fee(e=>{if(e.length>2)if(iD[e])e=iD[e];else return[e];const[t,n]=e.split(""),r=Bee[t],o=_ee[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),$T=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],DT=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$T,...DT];function Ty(e,t,n,r){const o=hx(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function AT(e){return Ty(e,"spacing",8)}function My(e,t){return typeof t=="string"||t==null?t:e(t)}function Vee(e,t){return n=>e.reduce((r,o)=>(r[o]=My(t,n),r),{})}function Hee(e,t,n,r){if(!t.includes(n))return null;const o=Uee(n),a=Vee(o,r),s=e[n];return cc(e,s,a)}function rL(e,t){const n=AT(e.theme);return Object.keys(e).map(r=>Hee(e,t,r,n)).reduce(mg,{})}function co(e){return rL(e,$T)}co.propTypes={};co.filterProps=$T;function uo(e){return rL(e,DT)}uo.propTypes={};uo.filterProps=DT;function mx(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?mg(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Bi(e){return typeof e!="number"?e:`${e}px solid`}function ss(e,t){return ko({prop:e,themeKey:"borders",transform:t})}const Wee=ss("border",Bi),qee=ss("borderTop",Bi),Yee=ss("borderRight",Bi),Gee=ss("borderBottom",Bi),Kee=ss("borderLeft",Bi),Qee=ss("borderColor"),Xee=ss("borderTopColor"),Zee=ss("borderRightColor"),Jee=ss("borderBottomColor"),ete=ss("borderLeftColor"),tte=ss("outline",Bi),nte=ss("outlineColor"),gx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ty(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:My(t,r)});return cc(e,e.borderRadius,n)}return null};gx.propTypes={};gx.filterProps=["borderRadius"];mx(Wee,qee,Yee,Gee,Kee,Qee,Xee,Zee,Jee,ete,gx,tte,nte);const yx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ty(e.theme,"spacing",8),n=r=>({gap:My(t,r)});return cc(e,e.gap,n)}return null};yx.propTypes={};yx.filterProps=["gap"];const vx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ty(e.theme,"spacing",8),n=r=>({columnGap:My(t,r)});return cc(e,e.columnGap,n)}return null};vx.propTypes={};vx.filterProps=["columnGap"];const bx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ty(e.theme,"spacing",8),n=r=>({rowGap:My(t,r)});return cc(e,e.rowGap,n)}return null};bx.propTypes={};bx.filterProps=["rowGap"];const rte=ko({prop:"gridColumn"}),ote=ko({prop:"gridRow"}),ate=ko({prop:"gridAutoFlow"}),ite=ko({prop:"gridAutoColumns"}),ste=ko({prop:"gridAutoRows"}),lte=ko({prop:"gridTemplateColumns"}),cte=ko({prop:"gridTemplateRows"}),ute=ko({prop:"gridTemplateAreas"}),dte=ko({prop:"gridArea"});mx(yx,vx,bx,rte,ote,ate,ite,ste,lte,cte,ute,dte);function vp(e,t){return t==="grey"?t:e}const fte=ko({prop:"color",themeKey:"palette",transform:vp}),pte=ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vp}),hte=ko({prop:"backgroundColor",themeKey:"palette",transform:vp});mx(fte,pte,hte);function fi(e){return e<=1&&e!==0?`${e*100}%`:e}const mte=ko({prop:"width",transform:fi}),jT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||px[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:fi(n)}};return cc(e,e.maxWidth,t)}return null};jT.filterProps=["maxWidth"];const gte=ko({prop:"minWidth",transform:fi}),yte=ko({prop:"height",transform:fi}),vte=ko({prop:"maxHeight",transform:fi}),bte=ko({prop:"minHeight",transform:fi});ko({prop:"size",cssProperty:"width",transform:fi});ko({prop:"size",cssProperty:"height",transform:fi});const xte=ko({prop:"boxSizing"});mx(mte,jT,gte,yte,vte,bte,xte);const Ey={border:{themeKey:"borders",transform:Bi},borderTop:{themeKey:"borders",transform:Bi},borderRight:{themeKey:"borders",transform:Bi},borderBottom:{themeKey:"borders",transform:Bi},borderLeft:{themeKey:"borders",transform:Bi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gx},color:{themeKey:"palette",transform:vp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vp},backgroundColor:{themeKey:"palette",transform:vp},p:{style:uo},pt:{style:uo},pr:{style:uo},pb:{style:uo},pl:{style:uo},px:{style:uo},py:{style:uo},padding:{style:uo},paddingTop:{style:uo},paddingRight:{style:uo},paddingBottom:{style:uo},paddingLeft:{style:uo},paddingX:{style:uo},paddingY:{style:uo},paddingInline:{style:uo},paddingInlineStart:{style:uo},paddingInlineEnd:{style:uo},paddingBlock:{style:uo},paddingBlockStart:{style:uo},paddingBlockEnd:{style:uo},m:{style:co},mt:{style:co},mr:{style:co},mb:{style:co},ml:{style:co},mx:{style:co},my:{style:co},margin:{style:co},marginTop:{style:co},marginRight:{style:co},marginBottom:{style:co},marginLeft:{style:co},marginX:{style:co},marginY:{style:co},marginInline:{style:co},marginInlineStart:{style:co},marginInlineEnd:{style:co},marginBlock:{style:co},marginBlockStart:{style:co},marginBlockEnd:{style:co},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:yx},rowGap:{style:bx},columnGap:{style:vx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fi},maxWidth:{style:jT},minWidth:{transform:fi},height:{transform:fi},maxHeight:{transform:fi},minHeight:{transform:fi},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 Ste(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function wte(e,t){return typeof e=="function"?e(t):e}function Cte(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:f,transform:c,style:m}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=hx(o,f)||{};return m?m(s):cc(s,r,v=>{let b=r0(y,c,v);return v===b&&typeof v=="string"&&(b=r0(y,c,`${n}${v==="default"?"":Et(v)}`,v)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Ey;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 c=zee(o.breakpoints),m=Object.keys(c);let y=c;return Object.keys(f).forEach(v=>{const b=wte(f[v],o);if(b!=null)if(typeof b=="object")if(s[v])y=mg(y,e(v,b,o,s));else{const x=cc({theme:o},b,w=>({[v]:w}));Ste(x,b)?y[v]=t({sx:b,theme:o,nested:!0}):y=mg(y,x)}else y=mg(y,e(v,b,o,s))}),!a&&o.modularCssLayers?{"@layer sx":rD(o,aD(m,y))}:rD(o,aD(m,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Np=Cte();Np.filterProps=["sx"];const kte=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ey;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Tte(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=kte(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return cl(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function Mte(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function NT(e,t=0,n=1){return Mte(e,t,n)}function Ete(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yu(e){if(e.type)return e;if(e.charAt(0)==="#")return yu(Ete(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(lc(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(lc(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Rte=e=>{const t=yu(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},eg=(e,t)=>{try{return Rte(e)}catch{return e}};function xx(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function oL(e){e=yu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(f,c=(f+n/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),xx({type:l,values:u})}function RC(e){e=yu(e);let t=e.type==="hsl"||e.type==="hsla"?yu(oL(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ote(e,t){const n=RC(e),r=RC(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function o0(e,t){return e=yu(e),t=NT(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,xx(e)}function nd(e,t,n){try{return o0(e,t)}catch{return e}}function Sx(e,t){if(e=yu(e),t=NT(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return xx(e)}function $r(e,t,n){try{return Sx(e,t)}catch{return e}}function wx(e,t){if(e=yu(e),t=NT(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return xx(e)}function Dr(e,t,n){try{return wx(e,t)}catch{return e}}function OC(e,t=.15){return RC(e)>.5?Sx(e,t):wx(e,t)}function ob(e,t,n){try{return OC(e,t)}catch{return e}}const Fg={black:"#000",white:"#fff"},Pte={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"},qf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Yf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Tm={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Gf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Kf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Qf={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function aL(){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:Fg.white,default:Fg.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 iL=aL();function sL(){return{text:{primary:Fg.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:Fg.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 PC=sL();function sD(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=wx(e.main,o):t==="dark"&&(e.dark=Sx(e.main,a)))}function lD(e,t,n,r,o){const a=o.light||o,s=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function $te(e="light"){return e==="dark"?{main:Gf[200],light:Gf[50],dark:Gf[400]}:{main:Gf[700],light:Gf[400],dark:Gf[800]}}function Dte(e="light"){return e==="dark"?{main:qf[200],light:qf[50],dark:qf[400]}:{main:qf[500],light:qf[300],dark:qf[700]}}function Ate(e="light"){return e==="dark"?{main:Yf[500],light:Yf[300],dark:Yf[700]}:{main:Yf[700],light:Yf[400],dark:Yf[800]}}function jte(e="light"){return e==="dark"?{main:Kf[400],light:Kf[300],dark:Kf[700]}:{main:Kf[700],light:Kf[500],dark:Kf[900]}}function Nte(e="light"){return e==="dark"?{main:Qf[400],light:Qf[300],dark:Qf[700]}:{main:Qf[800],light:Qf[500],dark:Qf[900]}}function Ite(e="light"){return e==="dark"?{main:Tm[400],light:Tm[300],dark:Tm[700]}:{main:"#ed6c02",light:Tm[500],dark:Tm[900]}}function Lte(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function IT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||$te(t),l=e.secondary||Dte(t),u=e.error||Ate(t),f=e.info||jte(t),c=e.success||Nte(t),m=e.warning||Ite(t);function y(x){return o?Lte(x):Ote(x,PC.text.primary)>=n?PC.text.primary:iL.text.primary}const v=({color:x,name:w,mainShade:S=500,lightShade:k=300,darkShade:T=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(lc(11,w?` (${w})`:"",S));if(typeof x.main!="string")throw new Error(lc(12,w?` (${w})`:"",JSON.stringify(x.main)));return o?(lD(o,x,"light",k,r),lD(o,x,"dark",T,r)):(sD(x,"light",k,r),sD(x,"dark",T,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=aL():t==="dark"&&(b=sL()),la({common:{...Fg},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:u,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:c,name:"success"}),grey:Pte,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...b},a)}function zte(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Fte={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 Bte(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _te=/[A-Z]|^ms/g,Ute=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lL=function(e){return e.charCodeAt(1)===45},cD=function(e){return e!=null&&typeof e!="boolean"},cw=Bte(function(e){return lL(e)?e:e.replace(_te,"-$&").toLowerCase()}),uD=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Ute,function(n,r,o){return nu={name:r,styles:o,next:nu},r})}return Fte[e]!==1&&!lL(e)&&typeof t=="number"&&t!==0?t+"px":t};function a0(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return nu={name:o.name,styles:o.styles,next:nu},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)nu={name:s.name,styles:s.styles,next:nu},s=s.next;var l=a.styles+";";return l}return Vte(e,t,n)}}var u=n;return u}function Vte(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=a0(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;cD(l)&&(r+=cw(a)+":"+uD(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)cD(s[u])&&(r+=cw(a)+":"+uD(a,s[u])+";");else{var f=a0(e,t,s);switch(a){case"animation":case"animationName":{r+=cw(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var dD=/label:\s*([^\s;{]+)\s*(;|$)/g,nu;function Hte(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";nu=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=a0(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=a0(n,t,e[l]),r){var u=a;o+=u[l]}dD.lastIndex=0;for(var f="",c;(c=dD.exec(o))!==null;)f+="-"+c[1];var m=zte(o)+f;return{name:m,styles:o,next:nu}}function Wte(e,t){return Vb(e,t)}function qte(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fD=[];function Md(e){return fD[0]=e,Hte(fD)}const Lo=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Yte(e){return Object.keys(e).length===0}function cL(e=null){const t=C.useContext(qp);return!t||Yte(t)?e:t}const Gte=C.createContext(),js=()=>C.useContext(Gte)??!1;function Bg(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const f=u;r[a][f]=Bg(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=It(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}const Kte=C.createContext(void 0);function Qte(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Bg(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Bg(o,r,t.components.mergeClassNameAndStyle):r}function Xte({props:e,name:t}){const n=C.useContext(Kte);return Qte({props:e,name:t,theme:{components:n}})}let pD=0;function Zte(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(pD+=1,n(`mui-${pD}`))},[t]),r}const Jte={...Mg},hD=Jte.useId;function Ns(e){if(hD!==void 0){const t=hD();return e??t}return Zte(e)}const ene=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function tne(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=ene(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-r/100}${n})`}function c(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function m(y){const v=s.indexOf(y);return v===0?l(s[1]):v===s.length-1?u(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:u,between:f,only:c,not:m,unit:n,...o}}const nne={borderRadius:4};function rne(e=8,t=AT({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function one(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function LT(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=tne(n),u=rne(o);let f=la({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...nne,...a}},s);return f=Iee(f),f.applyStyles=one,f=t.reduce((c,m)=>la(c,m),f),f.unstable_sxConfig={...Ey,...s?.unstable_sxConfig},f.unstable_sx=function(c){return Np({sx:c,theme:this})},f}const ane=LT();function ine(e=ane){return cL(e)}const mD=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},sne=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},lne=(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 uw(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return sne(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const c=`--${n?`${n}-`:""}${l.join("-")}`,m=lne(l,u);Object.assign(o,{[c]:m}),mD(a,l,`var(${c})`,f),mD(s,l,`var(${c}, ${m})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function cne(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...f}=e,{vars:c,css:m,varsWithDefaults:y}=uw(f,t);let v=y;const b={},{[u]:x,...w}=s;if(Object.entries(w||{}).forEach(([k,T])=>{const{vars:O,css:P,varsWithDefaults:$}=uw(T,t);v=la(v,$),b[k]={css:P,vars:O}}),x){const{css:k,vars:T,varsWithDefaults:O}=uw(x,t);v=la(v,O),b[u]={css:k,vars:T}}function S(k,T){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),k){if(O==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${s[k]?.palette?.mode||k})`]:{":root":T}};if(O)return e.defaultColorScheme===k?`:root, ${O.replace("%s",String(k))}`:O.replace("%s",String(k))}return":root"}return{vars:v,generateThemeVars:()=>{let k={...c};return Object.entries(b).forEach(([,{vars:T}])=>{k=la(k,T)}),k},generateStyleSheets:()=>{const k=[],T=e.defaultColorScheme||"light";function O(I,F){Object.keys(F).length&&k.push(typeof I=="string"?{[I]:{...F}}:I)}O(n(void 0,{...m}),m);const{[T]:P,...$}=b;if(P){const{css:I}=P,F=s[T]?.palette?.mode,A=!r&&F?{colorScheme:F,...I}:{...I};O(n(T,{...A}),A)}return Object.entries($).forEach(([I,{css:F}])=>{const A=s[I]?.palette?.mode,H=!r&&A?{colorScheme:A,...F}:{...F};O(n(I,{...H}),H)}),a&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}function une(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function dne(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const fne={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 tn(e,t,n="Mui"){const r=fne[t];return r?`${n}-${r}`:`${J5.generate(e)}-${t}`}function pne(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function hne(e){return Math.round(e*1e5)/1e5}const gD={textTransform:"uppercase"},yD='"Roboto", "Helvetica", "Arial", sans-serif';function mne(e,t){const{fontFamily:n=yD,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:c,...m}=typeof t=="function"?t(e):t,y=r/14,v=c||(w=>`${w/u*y}rem`),b=(w,S,k,T,O)=>({fontFamily:n,fontWeight:w,fontSize:v(S),lineHeight:k,...n===yD?{letterSpacing:`${hne(T/S)}em`}:{},...O,...f}),x={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,gD),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,gD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return la({htmlFontSize:u,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},m,{clone:!1})}const gne=.2,yne=.14,vne=.12;function Zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${gne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vne})`].join(",")}const bne=["none",Zr(0,2,1,-1,0,1,1,0,0,1,3,0),Zr(0,3,1,-2,0,2,2,0,0,1,5,0),Zr(0,3,3,-2,0,3,4,0,0,1,8,0),Zr(0,2,4,-1,0,4,5,0,0,1,10,0),Zr(0,3,5,-1,0,5,8,0,0,1,14,0),Zr(0,3,5,-1,0,6,10,0,0,1,18,0),Zr(0,4,5,-2,0,7,10,1,0,2,16,1),Zr(0,5,5,-3,0,8,10,1,0,3,14,2),Zr(0,5,6,-3,0,9,12,1,0,3,16,2),Zr(0,6,6,-3,0,10,14,1,0,4,18,3),Zr(0,6,7,-4,0,11,15,1,0,4,20,3),Zr(0,7,8,-4,0,12,17,2,0,5,22,4),Zr(0,7,8,-4,0,13,19,2,0,5,24,4),Zr(0,7,9,-4,0,14,21,2,0,5,26,4),Zr(0,8,9,-5,0,15,22,2,0,6,28,5),Zr(0,8,10,-5,0,16,24,2,0,6,30,5),Zr(0,8,11,-5,0,17,26,2,0,6,32,5),Zr(0,9,11,-5,0,18,28,2,0,7,34,6),Zr(0,9,12,-6,0,19,29,2,0,7,36,6),Zr(0,10,13,-6,0,20,31,3,0,8,38,7),Zr(0,10,13,-6,0,21,33,3,0,8,40,7),Zr(0,10,14,-6,0,22,35,3,0,8,42,7),Zr(0,11,14,-7,0,23,36,3,0,9,44,8),Zr(0,11,15,-7,0,24,38,3,0,9,46,8)],xne={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)"},uL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vD(e){return`${Math.round(e)}ms`}function Sne(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function wne(e){const t={...xne,...e.easing},n={...uL,...e.duration};return{getAutoHeightDuration:Sne,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:vD(a)} ${s} ${typeof l=="string"?l:vD(l)}`).join(",")},...e,easing:t,duration:n}}const Cne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kne(e){return cl(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function dL(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!kne(l)||s.startsWith("unstable_")?delete r[s]:cl(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
315
-
316
- const theme = ${JSON.stringify(t,null,2)};
317
-
318
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
319
- theme.transitions = createTransitions(theme.transitions || {});
320
-
321
- export default theme;`}function bD(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Tne=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Mne(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:o0(t,Tne(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${bD(n)})`:wx(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${bD(n)})`:Sx(t,n)}})}function $C(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,colorSpace:f,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(lc(20));const m=IT({...a,colorSpace:f}),y=LT(e);let v=la(y,{mixins:pne(y.breakpoints,r),palette:m,shadows:bne.slice(),typography:mne(m,l),transitions:wne(s),zIndex:{...Cne}});return v=la(v,c),v=t.reduce((b,x)=>la(b,x),v),v.unstable_sxConfig={...Ey,...c?.unstable_sxConfig},v.unstable_sx=function(b){return Np({sx:b,theme:this})},v.toRuntimeSource=dL,Mne(v),v}function DC(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 Ene=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=DC(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fL(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function pL(e){return e==="dark"?Ene:[]}function Rne(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=IT({...t,colorSpace:o});return{palette:s,opacity:{...fL(s.mode),...n},overlays:r||pL(s.mode),...a}}function One(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 Pne=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$ne=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Pne(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function Dne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function lt(e,t,n){!e[t]&&n&&(e[t]=n)}function tg(e){return typeof e!="string"||!e.startsWith("hsl")?e:oL(e)}function Zl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=eg(tg(e[t])))}function Ane(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const el=e=>{try{return e()}catch{}},jne=(e="mui")=>HN(e);function dw(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=Rne({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=$C({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...fL(a),...n?.opacity},overlays:n?.overlays||pL(a)},l}function Nne(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=One,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...c}=e,m=Object.keys(n)[0],y=r||(n.light&&m!=="light"?"light":m),v=jne(a),{[y]:b,light:x,dark:w,...S}=n,k={...S};let T=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(lc(21,y));let O;s&&(O="oklch");const P=dw(O,k,T,c,y);x&&!k.light&&dw(O,k,x,void 0,"light"),w&&!k.dark&&dw(O,k,w,void 0,"dark");let $={defaultColorScheme:y,...P,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:v,colorSchemes:k,font:{...une(P.typography),...P.font},spacing:Ane(c.spacing)};Object.keys($.colorSchemes).forEach(L=>{const M=$.colorSchemes[L].palette,_=W=>{const j=W.split("-"),Q=j[1],K=j[2];return v(W,M[Q][K])};M.mode==="light"&&(lt(M.common,"background","#fff"),lt(M.common,"onBackground","#000")),M.mode==="dark"&&(lt(M.common,"background","#000"),lt(M.common,"onBackground","#fff"));function B(W,j,Q){if(O){let K;return W===nd&&(K=`transparent ${((1-Q)*100).toFixed(0)}%`),W===$r&&(K=`#000 ${(Q*100).toFixed(0)}%`),W===Dr&&(K=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${O}, ${j}, ${K})`}return W(j,Q)}if(Dne(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){lt(M.Alert,"errorColor",B($r,M.error.light,.6)),lt(M.Alert,"infoColor",B($r,M.info.light,.6)),lt(M.Alert,"successColor",B($r,M.success.light,.6)),lt(M.Alert,"warningColor",B($r,M.warning.light,.6)),lt(M.Alert,"errorFilledBg",_("palette-error-main")),lt(M.Alert,"infoFilledBg",_("palette-info-main")),lt(M.Alert,"successFilledBg",_("palette-success-main")),lt(M.Alert,"warningFilledBg",_("palette-warning-main")),lt(M.Alert,"errorFilledColor",el(()=>M.getContrastText(M.error.main))),lt(M.Alert,"infoFilledColor",el(()=>M.getContrastText(M.info.main))),lt(M.Alert,"successFilledColor",el(()=>M.getContrastText(M.success.main))),lt(M.Alert,"warningFilledColor",el(()=>M.getContrastText(M.warning.main))),lt(M.Alert,"errorStandardBg",B(Dr,M.error.light,.9)),lt(M.Alert,"infoStandardBg",B(Dr,M.info.light,.9)),lt(M.Alert,"successStandardBg",B(Dr,M.success.light,.9)),lt(M.Alert,"warningStandardBg",B(Dr,M.warning.light,.9)),lt(M.Alert,"errorIconColor",_("palette-error-main")),lt(M.Alert,"infoIconColor",_("palette-info-main")),lt(M.Alert,"successIconColor",_("palette-success-main")),lt(M.Alert,"warningIconColor",_("palette-warning-main")),lt(M.AppBar,"defaultBg",_("palette-grey-100")),lt(M.Avatar,"defaultBg",_("palette-grey-400")),lt(M.Button,"inheritContainedBg",_("palette-grey-300")),lt(M.Button,"inheritContainedHoverBg",_("palette-grey-A100")),lt(M.Chip,"defaultBorder",_("palette-grey-400")),lt(M.Chip,"defaultAvatarColor",_("palette-grey-700")),lt(M.Chip,"defaultIconColor",_("palette-grey-700")),lt(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),lt(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),lt(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),lt(M.LinearProgress,"primaryBg",B(Dr,M.primary.main,.62)),lt(M.LinearProgress,"secondaryBg",B(Dr,M.secondary.main,.62)),lt(M.LinearProgress,"errorBg",B(Dr,M.error.main,.62)),lt(M.LinearProgress,"infoBg",B(Dr,M.info.main,.62)),lt(M.LinearProgress,"successBg",B(Dr,M.success.main,.62)),lt(M.LinearProgress,"warningBg",B(Dr,M.warning.main,.62)),lt(M.Skeleton,"bg",O?B(nd,M.text.primary,.11):`rgba(${_("palette-text-primaryChannel")} / 0.11)`),lt(M.Slider,"primaryTrack",B(Dr,M.primary.main,.62)),lt(M.Slider,"secondaryTrack",B(Dr,M.secondary.main,.62)),lt(M.Slider,"errorTrack",B(Dr,M.error.main,.62)),lt(M.Slider,"infoTrack",B(Dr,M.info.main,.62)),lt(M.Slider,"successTrack",B(Dr,M.success.main,.62)),lt(M.Slider,"warningTrack",B(Dr,M.warning.main,.62));const W=O?B($r,M.background.default,.6825):ob(M.background.default,.8);lt(M.SnackbarContent,"bg",W),lt(M.SnackbarContent,"color",el(()=>O?PC.text.primary:M.getContrastText(W))),lt(M.SpeedDialAction,"fabHoverBg",ob(M.background.paper,.15)),lt(M.StepConnector,"border",_("palette-grey-400")),lt(M.StepContent,"border",_("palette-grey-400")),lt(M.Switch,"defaultColor",_("palette-common-white")),lt(M.Switch,"defaultDisabledColor",_("palette-grey-100")),lt(M.Switch,"primaryDisabledColor",B(Dr,M.primary.main,.62)),lt(M.Switch,"secondaryDisabledColor",B(Dr,M.secondary.main,.62)),lt(M.Switch,"errorDisabledColor",B(Dr,M.error.main,.62)),lt(M.Switch,"infoDisabledColor",B(Dr,M.info.main,.62)),lt(M.Switch,"successDisabledColor",B(Dr,M.success.main,.62)),lt(M.Switch,"warningDisabledColor",B(Dr,M.warning.main,.62)),lt(M.TableCell,"border",B(Dr,B(nd,M.divider,1),.88)),lt(M.Tooltip,"bg",B(nd,M.grey[700],.92))}if(M.mode==="dark"){lt(M.Alert,"errorColor",B(Dr,M.error.light,.6)),lt(M.Alert,"infoColor",B(Dr,M.info.light,.6)),lt(M.Alert,"successColor",B(Dr,M.success.light,.6)),lt(M.Alert,"warningColor",B(Dr,M.warning.light,.6)),lt(M.Alert,"errorFilledBg",_("palette-error-dark")),lt(M.Alert,"infoFilledBg",_("palette-info-dark")),lt(M.Alert,"successFilledBg",_("palette-success-dark")),lt(M.Alert,"warningFilledBg",_("palette-warning-dark")),lt(M.Alert,"errorFilledColor",el(()=>M.getContrastText(M.error.dark))),lt(M.Alert,"infoFilledColor",el(()=>M.getContrastText(M.info.dark))),lt(M.Alert,"successFilledColor",el(()=>M.getContrastText(M.success.dark))),lt(M.Alert,"warningFilledColor",el(()=>M.getContrastText(M.warning.dark))),lt(M.Alert,"errorStandardBg",B($r,M.error.light,.9)),lt(M.Alert,"infoStandardBg",B($r,M.info.light,.9)),lt(M.Alert,"successStandardBg",B($r,M.success.light,.9)),lt(M.Alert,"warningStandardBg",B($r,M.warning.light,.9)),lt(M.Alert,"errorIconColor",_("palette-error-main")),lt(M.Alert,"infoIconColor",_("palette-info-main")),lt(M.Alert,"successIconColor",_("palette-success-main")),lt(M.Alert,"warningIconColor",_("palette-warning-main")),lt(M.AppBar,"defaultBg",_("palette-grey-900")),lt(M.AppBar,"darkBg",_("palette-background-paper")),lt(M.AppBar,"darkColor",_("palette-text-primary")),lt(M.Avatar,"defaultBg",_("palette-grey-600")),lt(M.Button,"inheritContainedBg",_("palette-grey-800")),lt(M.Button,"inheritContainedHoverBg",_("palette-grey-700")),lt(M.Chip,"defaultBorder",_("palette-grey-700")),lt(M.Chip,"defaultAvatarColor",_("palette-grey-300")),lt(M.Chip,"defaultIconColor",_("palette-grey-300")),lt(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),lt(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),lt(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),lt(M.LinearProgress,"primaryBg",B($r,M.primary.main,.5)),lt(M.LinearProgress,"secondaryBg",B($r,M.secondary.main,.5)),lt(M.LinearProgress,"errorBg",B($r,M.error.main,.5)),lt(M.LinearProgress,"infoBg",B($r,M.info.main,.5)),lt(M.LinearProgress,"successBg",B($r,M.success.main,.5)),lt(M.LinearProgress,"warningBg",B($r,M.warning.main,.5)),lt(M.Skeleton,"bg",O?B(nd,M.text.primary,.13):`rgba(${_("palette-text-primaryChannel")} / 0.13)`),lt(M.Slider,"primaryTrack",B($r,M.primary.main,.5)),lt(M.Slider,"secondaryTrack",B($r,M.secondary.main,.5)),lt(M.Slider,"errorTrack",B($r,M.error.main,.5)),lt(M.Slider,"infoTrack",B($r,M.info.main,.5)),lt(M.Slider,"successTrack",B($r,M.success.main,.5)),lt(M.Slider,"warningTrack",B($r,M.warning.main,.5));const W=O?B(Dr,M.background.default,.985):ob(M.background.default,.98);lt(M.SnackbarContent,"bg",W),lt(M.SnackbarContent,"color",el(()=>O?iL.text.primary:M.getContrastText(W))),lt(M.SpeedDialAction,"fabHoverBg",ob(M.background.paper,.15)),lt(M.StepConnector,"border",_("palette-grey-600")),lt(M.StepContent,"border",_("palette-grey-600")),lt(M.Switch,"defaultColor",_("palette-grey-300")),lt(M.Switch,"defaultDisabledColor",_("palette-grey-600")),lt(M.Switch,"primaryDisabledColor",B($r,M.primary.main,.55)),lt(M.Switch,"secondaryDisabledColor",B($r,M.secondary.main,.55)),lt(M.Switch,"errorDisabledColor",B($r,M.error.main,.55)),lt(M.Switch,"infoDisabledColor",B($r,M.info.main,.55)),lt(M.Switch,"successDisabledColor",B($r,M.success.main,.55)),lt(M.Switch,"warningDisabledColor",B($r,M.warning.main,.55)),lt(M.TableCell,"border",B($r,B(nd,M.divider,1),.68)),lt(M.Tooltip,"bg",B(nd,M.grey[700],.92))}Zl(M.background,"default"),Zl(M.background,"paper"),Zl(M.common,"background"),Zl(M.common,"onBackground"),Zl(M,"divider"),Object.keys(M).forEach(W=>{const j=M[W];W!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&lt(M[W],"mainChannel",eg(tg(j.main))),j.light&&lt(M[W],"lightChannel",eg(tg(j.light))),j.dark&&lt(M[W],"darkChannel",eg(tg(j.dark))),j.contrastText&&lt(M[W],"contrastTextChannel",eg(tg(j.contrastText))),W==="text"&&(Zl(M[W],"primary"),Zl(M[W],"secondary")),W==="action"&&(j.active&&Zl(M[W],"active"),j.selected&&Zl(M[W],"selected")))})}),$=t.reduce((L,M)=>la(L,M),$);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:$ne($),enableContrastVars:s},{vars:F,generateThemeVars:A,generateStyleSheets:H}=cne($,I);return $.vars=F,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([L,M])=>{$[L]=M}),$.generateThemeVars=A,$.generateStyleSheets=H,$.generateSpacing=function(){return jk(c.spacing,AT(this))},$.getColorSchemeSelector=dne(u),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=l,$.unstable_sxConfig={...Ey,...c?.unstable_sxConfig},$.unstable_sx=function(L){return Np({sx:L,theme:this})},$.toRuntimeSource=dL,$}function xD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:IT({...n===!0?{}:n.palette,mode:t})})}function hL(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],f={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return $C(e,...t);let c=n;"palette"in e||f[l]&&(f[l]!==!0?c=f[l].palette:l==="dark"&&(c={mode:"dark"}));const m=$C({...e,palette:c},...t);return m.defaultColorScheme=l,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},xD(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},xD(m,"light",f.light)),m}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),Nne({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Cx=hL(),nh="$$material";function Tu(){const e=Gp(Cx);return e[nh]||e}function Ine(e){return h.jsx(Lk,{...e,defaultTheme:Cx,themeId:nh})}function Lne(e){const{variants:t,...n}=e,r={variants:t,style:Md(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Md(o.style))}),r}const zne=LT();function cu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Sd(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Fne(e){return e?(t,n)=>n[e]:null}function Bne(e,t,n){e.theme=Une(e.theme)?n:e.theme[t]||e.theme}function Db(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Db(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Sd(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?Sd(Md(s),n):s}return mL(e,r.variants,[o],n)}return r?.isProcessed?n?Sd(Md(r.style),n):r.style:n?Sd(Md(r),n):r}function mL(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const s=t[a];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},n.push(r?Sd(Md(s.style(o)),r):s.style(o))):n.push(r?Sd(Md(s.style),r):s.style)}return n}function _ne(e={}){const{themeId:t,defaultTheme:n=zne,rootShouldForwardProp:r=cu,slotShouldForwardProp:o=cu}=e;function a(s){Bne(s,t,n)}return(s,l={})=>{qte(s,P=>P.filter($=>$!==Np));const{name:u,slot:f,skipVariantsResolver:c,skipSx:m,overridesResolver:y=Fne(Hne(f)),...v}=l,b=u&&u.startsWith("Mui")||f?"components":"custom",x=c!==void 0?c:f&&f!=="Root"&&f!=="root"||!1,w=m||!1;let S=cu;f==="Root"||f==="root"?S=r:f?S=o:Vne(s)&&(S=void 0);const k=Wte(s,{shouldForwardProp:S,label:void 0,...v}),T=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function($){return Db($,P,$.theme.modularCssLayers?b:void 0)};if(cl(P)){const $=Lne(P);return function(I){return $.variants?Db(I,$,I.theme.modularCssLayers?b:void 0):I.theme.modularCssLayers?Sd($.style,b):$.style}}return P},O=(...P)=>{const $=[],I=P.map(T),F=[];if($.push(a),u&&y&&F.push(function(L){const M=L.theme.components?.[u]?.styleOverrides;if(!M)return null;const _={};for(const B in M)_[B]=Db(L,M[B],L.theme.modularCssLayers?"theme":void 0);return y(L,_)}),u&&!x&&F.push(function(L){const M=L.theme?.components?.[u]?.variants;return M?mL(L,M,[],L.theme.modularCssLayers?"theme":void 0):null}),w||F.push(Np),Array.isArray(I[0])){const L=I.shift(),M=new Array($.length).fill(""),_=new Array(F.length).fill("");let B;B=[...M,...L,..._],B.raw=[...M,...L.raw,..._],$.unshift(B)}const A=[...$,...I,...F],H=k(...A);return s.muiName&&(H.muiName=s.muiName),H};return k.withConfig&&(O.withConfig=k.withConfig),O}}function Une(e){for(const t in e)return!1;return!0}function Vne(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Hne(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sa=e=>gL(e)&&e!=="classes",Fe=_ne({themeId:nh,defaultTheme:Cx,rootShouldForwardProp:Sa});function Wne(e){return function(t){return h.jsx(Ine,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function qne(){return Tte}const qn=UN;function Vn(e){return Xte(e)}function Kt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tn(e,o,n)}),r}function Yne(e){return tn("MuiSvgIcon",e)}Kt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Gne=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Et(t)}`,`fontSize${Et(n)}`]};return Zt(o,Yne,r)},Kne=Fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Et(n.color)}`],t[`fontSize${Et(n.fontSize)}`]]}})(qn(({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}}]}))),i0=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:c,viewBox:m="0 0 24 24",...y}=n,v=C.isValidElement(r)&&r.type==="svg",b={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:v},x={};f||(x.viewBox=m);const w=Gne(b);return h.jsxs(Kne,{as:s,className:It(w.root,o),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:t,...x,...y,...v&&r.props,ownerState:b,children:[v?r.props.children:r,c?h.jsx("title",{children:c}):null]})});i0.muiName="SvgIcon";function tr(e,t){function n(r,o){return h.jsx(i0,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=i0.muiName,C.memo(C.forwardRef(n))}function yL(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Ab(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Io(e){return e&&e.ownerDocument||document}function uc(e){return Io(e).defaultView||window}function AC(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mi(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),u=a?t:s,f=C.useCallback(c=>{a||l(c)},[]);return[u,f]}function Ft(e){const t=C.useRef(e);return Lo(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function pr(...e){const t=C.useRef(void 0),n=C.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return C.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Qne(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function vL(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(f=>{Qne(f,l[f])&&typeof s[f]=="function"&&(u[f]=(...c)=>{s[f](...c),l[f](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,f=It(s?.className,l?.className,u?.className),c=n(u,l);return{...l,...u,...c,...!!f&&{className:f},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=It(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const s0=tr(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}var jC={exports:{}},Xne=jC.exports,SD;function Zne(){return SD||(SD=1,(function(e,t){(function(n,r){e.exports=r()})(Xne,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(r).add(1,r).date(f),m=s(this).endOf(n);if(c.isBefore(m))return 1}var y=s(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),v=this.diff(y,n,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},l.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}}))})(jC)),jC.exports}var Jne=Zne();const ere=fc(Jne);var NC={exports:{}},tre=NC.exports,wD;function nre(){return wD||(wD=1,(function(e,t){(function(n,r){e.exports=r()})(tre,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,u={},f=function(w){return(w=+w)+(w>68?1900:2e3)},c=function(w){return function(S){this[w]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var k=S.match(/([+-]|\d\d)/g),T=60*k[1]+(+k[2]||0);return T===0?0:k[0]==="+"?-T:T})(w)}],y=function(w){var S=u[w];return S&&(S.indexOf?S:S.s.concat(S.f))},v=function(w,S){var k,T=u.meridiem;if(T){for(var O=1;O<=24;O+=1)if(w.indexOf(T(O,0,S))>-1){k=O>12;break}}else k=w===(S?"pm":"PM");return k},b={A:[l,function(w){this.afternoon=v(w,!1)}],a:[l,function(w){this.afternoon=v(w,!0)}],Q:[o,function(w){this.month=3*(w-1)+1}],S:[o,function(w){this.milliseconds=100*+w}],SS:[a,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[a,c("day")],Do:[l,function(w){var S=u.ordinal,k=w.match(/\d+/);if(this.day=k[0],S)for(var T=1;T<=31;T+=1)S(T).replace(/\[|\]/g,"")===w&&(this.day=T)}],w:[s,c("week")],ww:[a,c("week")],M:[s,c("month")],MM:[a,c("month")],MMM:[l,function(w){var S=y("months"),k=(y("monthsShort")||S.map((function(T){return T.slice(0,3)}))).indexOf(w)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[l,function(w){var S=y("months").indexOf(w)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,c("year")],YY:[a,function(w){this.year=f(w)}],YYYY:[/\d{4}/,c("year")],Z:m,ZZ:m};function x(w){var S,k;S=w,k=u&&u.formats;for(var T=(w=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(H,L,M){var _=M&&M.toUpperCase();return L||k[M]||n[M]||k[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(B,W,j){return W||j.slice(1)}))}))).match(r),O=T.length,P=0;P<O;P+=1){var $=T[P],I=b[$],F=I&&I[0],A=I&&I[1];T[P]=A?{regex:F,parser:A}:$.replace(/^\[|\]$/g,"")}return function(H){for(var L={},M=0,_=0;M<O;M+=1){var B=T[M];if(typeof B=="string")_+=B.length;else{var W=B.regex,j=B.parser,Q=H.slice(_),K=W.exec(Q)[0];j.call(L,K),H=H.replace(K,"")}}return(function(te){var X=te.afternoon;if(X!==void 0){var J=te.hours;X?J<12&&(te.hours+=12):J===12&&(te.hours=0),delete te.afternoon}})(L),L}}return function(w,S,k){k.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(f=w.parseTwoDigitYear);var T=S.prototype,O=T.parse;T.parse=function(P){var $=P.date,I=P.utc,F=P.args;this.$u=I;var A=F[1];if(typeof A=="string"){var H=F[2]===!0,L=F[3]===!0,M=H||L,_=F[2];L&&(_=F[2]),u=this.$locale(),!H&&_&&(u=k.Ls[_]),this.$d=(function(Q,K,te,X){try{if(["x","X"].indexOf(K)>-1)return new Date((K==="X"?1e3:1)*Q);var J=x(K)(Q),ne=J.year,oe=J.month,se=J.day,re=J.hours,ie=J.minutes,ce=J.seconds,me=J.milliseconds,ye=J.zone,we=J.week,Ce=new Date,$e=se||(ne||oe?1:Ce.getDate()),fe=ne||Ce.getFullYear(),Te=0;ne&&!oe||(Te=oe>0?oe-1:Ce.getMonth());var nt,ze=re||0,Ae=ie||0,ue=ce||0,bt=me||0;return ye?new Date(Date.UTC(fe,Te,$e,ze,Ae,ue,bt+60*ye.offset*1e3)):te?new Date(Date.UTC(fe,Te,$e,ze,Ae,ue,bt)):(nt=new Date(fe,Te,$e,ze,Ae,ue,bt),we&&(nt=X(nt).week(we).toDate()),nt)}catch{return new Date("")}})($,A,I,k),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),M&&$!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var B=A.length,W=1;W<=B;W+=1){F[1]=A[W-1];var j=k.apply(this,F);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}W===B&&(this.$d=new Date(""))}else O.call(this,P)}}}))})(NC)),NC.exports}var rre=nre();const ore=fc(rre);var IC={exports:{}},are=IC.exports,CD;function ire(){return CD||(CD=1,(function(e,t){(function(n,r){e.exports=r()})(are,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var s=o.prototype,l=s.format;a.en.formats=n,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,c=(function(m,y){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,b,x){var w=x&&x.toUpperCase();return b||y[x]||n[x]||y[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,k,T){return k||T.slice(1)}))}))})(u,f===void 0?{}:f);return l.call(this,c)}}}))})(IC)),IC.exports}var sre=ire();const lre=fc(sre);var LC={exports:{}},cre=LC.exports,kD;function ure(){return kD||(kD=1,(function(e,t){(function(n,r){e.exports=r()})(cre,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,u){var f=o(a),c=o(s),m=(u=u||"()")[0]==="(",y=u[1]===")";return(m?this.isAfter(f,l):!this.isBefore(f,l))&&(y?this.isBefore(c,l):!this.isAfter(c,l))||(m?this.isBefore(f,l):!this.isAfter(f,l))&&(y?this.isAfter(c,l):!this.isBefore(c,l))}}}))})(LC)),LC.exports}var dre=ure();const fre=fc(dre);var zC={exports:{}},pre=zC.exports,TD;function hre(){return TD||(TD=1,(function(e,t){(function(n,r){e.exports=r()})(pre,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var f=this.$utils(),c=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return f.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return f.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return f.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}}));return a.bind(this)(c)}}}))})(zC)),zC.exports}var mre=hre();const gre=fc(mre);Ar.extend(lre);Ar.extend(ere);Ar.extend(fre);Ar.extend(gre);const yre={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},vre={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},fw=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
322
- `),MD=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
323
- `),bre=(e,t)=>t?(...n)=>e(...n).locale(t):e;class FC{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=yre,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Ar.utc<"u",this.hasTimezonePlugin=()=>typeof Ar.tz<"u",this.isSame=(r,o,a)=>{const s=this.setTimezone(o,this.getTimezone(r));return r.format(a)===s.format(a)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Ar.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Ar.tz.guess();return o!=="UTC"?Ar.tz(r,o):Ar(r)}return Ar(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(fw);return Ar.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(fw);if(!this.hasTimezonePlugin())throw new Error(MD);const a=r!==void 0&&!r.endsWith("Z");return Ar(r).tz(this.cleanTimezone(o),a)},this.getLocaleFormats=()=>{const r=Ar.Ls,o=this.locale||"en";let a=r[o];return a===void 0&&(a=r.en),a.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const a=r.tz(this.cleanTimezone(o),!0);if(a.$offset===(r.$offset??0))return r;r.$offset=a.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let a;return o==="UTC"?a=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?a=this.createSystemDate(r):a=this.createTZDate(r,o),this.locale===void 0?a:a.locale(this.locale)},this.getInvalidDate=()=>Ar(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const o=r.$x?.$timezone;if(o)return o}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(fw);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(MD)}return Ar.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),a=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(l,u,f)=>u||f.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,l,u)=>{const f=u&&u.toUpperCase();return l||o[u]||a(o[f])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,a])=>r>=o&&r<=a,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let s=0,l=o;const u=[];for(;l<a;){const f=Math.floor(s/7);u[f]=u[f]||[],u[f].push(l),l=this.addDays(l,1),s+=1}return u},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const a=this.startOfYear(r),s=this.endOfYear(o),l=[];let u=a;for(;this.isBefore(u,s);)l.push(u),u=this.addYears(u,1);return l},this.dayjs=bre(Ar,t),this.locale=t,this.formats=ke({},vre,n),Ar.extend(ore)}getDayOfWeek(t){return t.day()+1}}function Fn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bL(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Bg(t.components[n].defaultProps,r)}function xre({props:e,name:t,defaultTheme:n,themeId:r}){let o=ine(n);return o=o[r]||o,bL({theme:o,name:t,props:e})}function Sre(e,t,n,r,o){const[a,s]=C.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Lo(()=>{if(!n)return;const l=n(e),u=()=>{s(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[e,n]),a}const wre={...Mg},xL=wre.useSyncExternalStore;function Cre(e,t,n,r,o){const a=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return a},[a,e,r,o,n]),[l,u]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const f=n(e);return[()=>f.matches,c=>(f.addEventListener("change",c),()=>{f.removeEventListener("change",c)})]},[a,n,e]);return xL(u,l,s)}function SL(e={}){const{themeId:t}=e;return function(n,r={}){let o=cL();o&&t&&(o=o[t]||o);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=bL({name:"MuiUseMediaQuery",props:r,theme:o});let c=typeof n=="function"?n(o):n;return c=c.replace(/^@media( ?)/m,""),c.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
324
- `)),(xL!==void 0?Cre:Sre)(c,s,l,u,f)}}SL();const wL=SL({themeId:nh});function qr({props:e,name:t}){return xre({props:e,name:t,defaultTheme:Cx,themeId:nh})}const CL=rt.oneOfType([rt.func,rt.object]),ED={};function kL(e,t){const n=C.useRef(ED);return n.current===ED&&(n.current=e(t)),n}const kre=[];function Tre(e){C.useEffect(e,kre)}class zT{static create(){return new zT}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function kx(){const e=kL(zT.create).current;return Tre(e.disposeEffect),e}function RD(e){try{return e.matches(":focus-visible")}catch{}return!1}function TL(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Mre=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current},Ere={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ip(e){return typeof e=="string"}function ML(e,t,n){return e===void 0||Ip(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function oi(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function OD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function EL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=It(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return v.length>0&&(x.className=v),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=oi({...o,...r}),l=OD(r),u=OD(o),f=t(s),c=It(f?.className,n?.className,a,o?.className,r?.className),m={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...u,...l};return c.length>0&&(y.className=c),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function Lp(e,t,n){return typeof e=="function"?e(t,n):e}function br(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:Lp(n,r),{props:l,internalRef:u}=EL({...a,externalSlotProps:s}),f=pr(u,s?.ref,e.additionalProps?.ref);return ML(t,{...l,ref:f},r)}function rh(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Mm=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Rre=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:a}},l0=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},gg=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const u=l0(s,s.date(void 0,l),e);n&&s.isBefore(o,u)&&(o=u),t&&s.isAfter(r,u)&&(r=u);let f=e,c=e;for(s.isBefore(e,o)&&(f=o,c=null),s.isAfter(e,r)&&(c&&(c=r),f=null);f||c;){if(f&&s.isAfter(f,r)&&(f=null),c&&s.isBefore(c,o)&&(c=null),f){if(!a(f))return f;f=s.addDays(f,1)}if(c){if(!a(c))return c;c=s.addDays(c,-1)}}return null},Ore=(e,t)=>t==null||!e.isValid(t)?null:t,es=(e,t,n)=>t==null||!e.isValid(t)?n:t,Pre=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),FT=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const r=n[n.length-1];n.push(e.addMonths(r,1))}return n},RL=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),$re=["year","month","day"],PD=e=>$re.includes(e),BT=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Mm(n,["year"])?o.year:Mm(n,["month"])?o.month:Mm(n,["day"])?o.dayOfMonth:Mm(n,["month","year"])?`${o.month} ${o.year}`:Mm(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Dre=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Are=["hours","minutes","seconds"],jre=e=>Are.includes(e),$D=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Nre=(e,t)=>(n,r)=>e?t.isAfter(n,r):$D(n,t)>$D(r,t),il={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Ire=e=>Math.max(...e.map(t=>il[t.type]??1)),Em=(e,t,n)=>{if(t===il.year)return e.startOfYear(n);if(t===il.month)return e.startOfMonth(n);if(t===il.day)return e.startOfDay(n);let r=n;return t<il.minutes&&(r=e.setMinutes(r,0)),t<il.seconds&&(r=e.setSeconds(r,0)),t<il.milliseconds&&(r=e.setMilliseconds(r,0)),r},Lre=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():Em(t,n,RL(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=Em(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=Em(t,n,e.maxDate));const s=Nre(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=Em(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:l0(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=Em(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:l0(t,a,e.maxTime))),a},OL=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
325
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},zre=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Tx=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),a=e.endOfWeek(r);let s=o;for(;e.isBefore(s,a);)n.push(s),s=e.addDays(s,1);return n.map(l=>e.formatByString(l,t))},PL=(e,t,n,r)=>{switch(n){case"month":return FT(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Tx(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},DD="s",Fre=["0","1","2","3","4","5","6","7","8","9"],Bre=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),DD)==="0"?Fre:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),DD))},jd=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const a=t.indexOf(r);a>-1&&(n.push(a.toString()),r="")}return n.join("")},_T=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),AD=(e,t)=>{const n=jd(e,t);return n!==" "&&!Number.isNaN(Number(n))},$L=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},DL=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=e.setDate(n.longestMonth,t);return e.formatByString(s,o.format)}let a=t.toString();return o.hasLeadingZerosInInput&&(a=$L(a,o.maxLength)),_T(a,r)},_re=(e,t,n,r,o,a,s,l)=>{const u=zre(r),f=r==="Home",c=r==="End",m=n.value===""||f||c,y=()=>{const b=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),x=k=>DL(e,k,b,a,n),w=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let S;if(m){if(n.type==="year"&&!c&&!f)return e.formatByString(e.date(void 0,t),n.format);u>0||f?S=b.minimum:S=b.maximum}else S=parseInt(jd(n.value,a),10)+u*w;return S%w!==0&&((u<0||f)&&(S+=w-(w+S)%w),(u>0||c)&&(S-=S%w)),S>b.maximum?x(b.minimum+(S-b.maximum-1)%(b.maximum-b.minimum+1)):S<b.minimum?x(b.maximum-(b.minimum-S-1)%(b.maximum-b.minimum+1)):x(S)},v=()=>{const b=PL(e,t,n.type,n.format);if(b.length===0)return n.value;if(m)return u>0||f?b[0]:b[b.length-1];const x=((b.indexOf(n.value)+u)%b.length+b.length)%b.length;return b[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():v()},UT=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(jd(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},jD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Ure=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,AL=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Vre=(e,t,n)=>{const r=t.some(u=>u.type==="day"),o=[],a=[];for(let u=0;u<t.length;u+=1){const f=t[u];r&&f.type==="weekDay"||(o.push(f.format),a.push(UT(f,"non-input",n)))}const s=o.join(" "),l=a.join(" ");return e.parse(l,s)},Hre=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Wre=(e,t,n)=>{const r=e.map(o=>{const a=UT(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},qre=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=FT(e,r).reduce((u,f)=>{const c=e.getDaysInMonth(f);return c>u.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:f}:u},{maxDaysInMonth:0,longestMonth:null});return{year:({format:u})=>({minimum:0,maximum:Ure(e,u)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:u})=>({minimum:1,maximum:u!=null&&e.isValid(u)?e.getDaysInMonth(u):s,longestMonth:l}),weekDay:({format:u,contentType:f})=>{if(f==="digit"){const c=Tx(e,u).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:u})=>{const f=e.getHours(a);return jd(e.formatByString(e.endOfDay(r),u),t)!==f.toString()?{minimum:1,maximum:Number(jd(e.formatByString(e.startOfDay(r),u),t))}:{minimum:0,maximum:f}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Yre=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=Tx(e,t.format),a=e.formatByString(n,t.format),s=o.indexOf(a),l=o.indexOf(t.value)-s;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,a=e.getHours(r);return o&&a>=12?e.addHours(r,-12):!o&&a<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},ND={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},ID=(e,t,n,r,o)=>[...n].sort((a,s)=>ND[a.type]-ND[s.type]).reduce((a,s)=>!o||s.modified?Yre(e,s,t,a):a,r),Gre=()=>navigator.userAgent.toLowerCase().includes("android"),Kre=(e,t)=>{const n={};if(!t)return e.forEach((u,f)=>{const c=f===0?null:f-1,m=f===e.length-1?null:f+1;n[f]={leftIndex:c,rightIndex:m}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,s=0,l=e.length-1;for(;l>=0;){s=e.findIndex((u,f)=>f>=a&&u.endSeparator?.includes(" ")&&u.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let u=s;u>=a;u-=1)o[u]=l,r[l]=u,l-=1;a=s+1}return e.forEach((u,f)=>{const c=o[f],m=c===0?null:r[c-1],y=c===e.length-1?null:r[c+1];n[f]={leftIndex:m,rightIndex:y}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},BC=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Qre=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Xre=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},Zre=["value","referenceDate"],bl={emptyValue:null,getTodayValue:RL,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Fn(e,Zre);return t!=null&&r.utils.isValid(t)?t:n??Lre(r)},cleanValue:Ore,areValuesEqual:Pre,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Jre={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:Hre,getV6InputValueFromSections:Wre,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},eoe=["localeText"],_C=C.createContext(null),c0=function(e){const{localeText:t}=e,n=Fn(e,eoe),{utils:r,localeText:o}=C.useContext(_C)??{utils:void 0,localeText:void 0},a=qr({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:u,dateLibInstance:f,adapterLocale:c,localeText:m}=a,y=C.useMemo(()=>ke({},m,o,t),[m,o,t]),v=C.useMemo(()=>{if(!l)return r||null;const w=new l({locale:c,formats:u,instance:f});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
326
- `));return w},[l,c,u,f,r]),b=C.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=C.useMemo(()=>({utils:v,defaultDates:b,localeText:y}),[b,v,y]);return h.jsx(_C.Provider,{value:x,children:s})},toe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ke({},e)}}}}),jL=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return a=>{const s=a!==null&&t.isValid(a)?t.format(a,n):null;return(o??r)(a,t,s)}},NL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},noe=NL;toe(NL);const Vd=()=>{const e=C.useContext(_C);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
327
- `));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
328
- `));const t=C.useMemo(()=>ke({},noe,e.localeText),[e.localeText]);return C.useMemo(()=>ke({},e,{localeText:t}),[e,t])},Yr=()=>Vd().utils,Ry=()=>Vd().defaultDates,Mx=e=>{const t=Yr(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function roe(e){return typeof e.main=="string"}function ooe(e,t=[]){if(!roe(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ba(e=[]){return([,t])=>t&&ooe(t,e)}function aoe(e){return tn("MuiTypography",e)}const LD=Kt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),ioe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},soe=qne(),loe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${Et(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Zt(l,aoe,s)},coe=Fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Et(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(qn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Et(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),zD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gr=C.forwardRef(function(e,t){const{color:n,...r}=Vn({props:e,name:"MuiTypography"}),o=!ioe[n],a=soe({...r,...o&&{color:n}}),{align:s="inherit",className:l,component:u,gutterBottom:f=!1,noWrap:c=!1,paragraph:m=!1,variant:y="body1",variantMapping:v=zD,...b}=a,x={...a,align:s,color:n,className:l,component:u,gutterBottom:f,noWrap:c,paragraph:m,variant:y,variantMapping:v},w=u||(m?"p":v[y]||zD[y])||"span",S=loe(x);return h.jsx(coe,{as:w,ref:t,className:It(S.root,l),...b,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})});function uoe(e){return tn("MuiPickersToolbar",e)}Kt("MuiPickersToolbar",["root","content"]);const doe=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],foe=e=>{const{classes:t}=e;return Zt({root:["root"],content:["content"]},uoe,t)},poe=Fe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),hoe=Fe("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),moe=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:a,hidden:s,titleId:l}=n,u=Fn(n,doe),f=n,c=foe(f);return s?null:h.jsxs(poe,ke({ref:t,className:It(c.root,o),ownerState:f},u,{children:[h.jsx(gr,{color:"text.secondary",variant:"overline",id:l,children:a}),h.jsx(hoe,{className:c.content,ownerState:f,children:r})]}))}),pc=()=>Vd().localeText;function goe(e){return tn("MuiDatePickerToolbar",e)}Kt("MuiDatePickerToolbar",["root","title"]);const yoe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],voe=e=>{const{classes:t}=e;return Zt({root:["root"],title:["title"]},goe,t)},boe=Fe(moe,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xoe=Fe(gr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Soe=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:u}=n,f=Fn(n,yoe),c=Yr(),m=pc(),y=voe(n),v=C.useMemo(()=>{if(!r)return s;const x=BT(c,{format:a,views:l},!0);return c.formatByString(r,x)},[r,a,s,c,l]),b=n;return h.jsx(boe,ke({ref:t,toolbarTitle:m.datePickerToolbarTitle,isLandscape:o,className:It(y.root,u)},f,{children:h.jsx(xoe,{variant:"h4",align:o?"left":"center",ownerState:b,className:y.title,children:v})}))});function IL(e,t){const n=Yr(),r=Ry(),o=qr({props:e,name:t}),a=C.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:ke({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return ke({},o,{localeText:a},Rre({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:es(n,o.minDate,r.minDate),maxDate:es(n,o.maxDate,r.maxDate),slots:ke({toolbar:Soe},o.slots)})}const Oy=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:u}=e,f=r.utils.date(void 0,n),c=es(r.utils,e.minDate,r.defaultDates.minDate),m=es(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(u&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(m&&r.utils.isAfterDay(t,m)):return"maxDate";default:return null}};Oy.valueManager=bl;const LL=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],woe=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Coe=["minDateTime","maxDateTime"],koe=[...LL,...woe,...Coe],zL=e=>koe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function FL(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,s=Vd(),l=C.useRef(n.valueManager.defaultErrorState),u=n({adapter:s,value:r,timezone:o,props:t}),f=n.valueManager.hasError(u);C.useEffect(()=>{a&&!n.valueManager.isSameError(u,l.current)&&a(u,r),l.current=u},[n,a,u,r]);const c=Ft(m=>n({adapter:s,value:m,timezone:o,props:t}));return{validationError:u,hasValidationError:f,getValidationErrorForNewValue:c}}const Ex=C.createContext(void 0);function bi(){return C.useContext(Ex)}function Toe(e){return tn("MuiInputAdornment",e)}const FD=Kt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var BD;const Moe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Et(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Eoe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Et(o)}`,s,r&&"hiddenLabel",a&&`size${Et(a)}`]};return Zt(l,Toe,t)},Roe=Fe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Moe})(qn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${FD.positionStart}&:not(.${FD.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),BL=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:f,...c}=n,m=bi()||{};let y=f;f&&m.variant,m&&!y&&(y=m.variant);const v={...n,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:s,position:u,variant:y},b=Eoe(v);return h.jsx(Ex.Provider,{value:null,children:h.jsx(Roe,{as:a,ownerState:v,className:It(b.root,o),ref:t,...c,children:typeof r=="string"&&!l?h.jsx(gr,{color:"textSecondary",children:r}):h.jsxs(C.Fragment,{children:[u==="start"?BD||(BD=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});class u0{static create(){return new u0}static use(){const t=kL(u0.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Poe(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Ooe(){return u0.use()}function Poe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function UC(e,t){return UC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},UC(e,t)}function VT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UC(e,t)}function $oe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Doe(e,t){e.classList?e.classList.add(t):$oe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function _D(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Aoe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=_D(e.className,t):e.setAttribute("class",_D(e.className&&e.className.baseVal||"",t))}const UD={disabled:!1},d0=hn.createContext(null);var _L=function(e){return e.scrollTop},ng="unmounted",cd="exited",ud="entering",lp="entered",VC="exiting",ls=(function(e){VT(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=cd,a.appearStatus=ud):u=lp:r.unmountOnExit||r.mountOnEnter?u=ng:u=cd,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ng?{status:cd}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==ud&&a!==lp&&(o=ud):(a===ud||a===lp)&&(o=VC)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===ud){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:tu.findDOMNode(this);a&&_L(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cd&&this.setState({status:ng})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[tu.findDOMNode(this),s],u=l[0],f=l[1],c=this.getTimeouts(),m=s?c.appear:c.enter;if(!r&&!a||UD.disabled){this.safeSetState({status:lp},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:ud},function(){o.props.onEntering(u,f),o.onTransitionEnd(m,function(){o.safeSetState({status:lp},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:tu.findDOMNode(this);if(!o||UD.disabled){this.safeSetState({status:cd},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:VC},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:cd},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:tu.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ng)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Fn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(d0.Provider,{value:null},typeof a=="function"?a(r,s):hn.cloneElement(hn.Children.only(a),s))},t})(hn.Component);ls.contextType=d0;ls.propTypes={};function Xf(){}ls.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xf,onEntering:Xf,onEntered:Xf,onExit:Xf,onExiting:Xf,onExited:Xf};ls.UNMOUNTED=ng;ls.EXITED=cd;ls.ENTERING=ud;ls.ENTERED=lp;ls.EXITING=VC;var joe=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Doe(e,n)})},pw=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Aoe(e,n)})},HT=(function(e){VT(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,u){var f=r.resolveArguments(l,u),c=f[0],m=f[1];r.removeClasses(c,"exit"),r.addClass(c,m?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,u)},r.onEntering=function(l,u){var f=r.resolveArguments(l,u),c=f[0],m=f[1],y=m?"appear":"enter";r.addClass(c,y,"active"),r.props.onEntering&&r.props.onEntering(l,u)},r.onEntered=function(l,u){var f=r.resolveArguments(l,u),c=f[0],m=f[1],y=m?"appear":"enter";r.removeClasses(c,y),r.addClass(c,y,"done"),r.props.onEntered&&r.props.onEntered(l,u)},r.onExit=function(l){var u=r.resolveArguments(l),f=u[0];r.removeClasses(f,"appear"),r.removeClasses(f,"enter"),r.addClass(f,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var u=r.resolveArguments(l),f=u[0];r.addClass(f,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var u=r.resolveArguments(l),f=u[0];r.removeClasses(f,"exit"),r.addClass(f,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,u){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,u]},r.getClassNames=function(l){var u=r.props.classNames,f=typeof u=="string",c=f&&u?u+"-":"",m=f?""+c+l:u[l],y=f?m+"-active":u[l+"Active"],v=f?m+"-done":u[l+"Done"];return{baseClassName:m,activeClassName:y,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(r,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&a==="done"&&u&&(s+=" "+u),a==="active"&&r&&_L(r),s&&(this.appliedClasses[o][a]=s,joe(r,s))},n.removeClasses=function(r,o){var a=this.appliedClasses[o],s=a.base,l=a.active,u=a.done;this.appliedClasses[o]={},s&&pw(r,s),l&&pw(r,l),u&&pw(r,u)},n.render=function(){var r=this.props;r.classNames;var o=Fn(r,["classNames"]);return hn.createElement(ls,ke({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(hn.Component);HT.defaultProps={classNames:""};HT.propTypes={};function Noe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WT(e,t){var n=function(o){return t&&C.isValidElement(o)?t(o):o},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Ioe(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var f=r[u][s];l[r[u][s]]=n(f)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function wd(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Loe(e,t){return WT(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:wd(n,"appear",e),enter:wd(n,"enter",e),exit:wd(n,"exit",e)})})}function zoe(e,t,n){var r=WT(e.children),o=Ioe(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,u=a in r,f=t[a],c=C.isValidElement(f)&&!f.props.in;u&&(!l||c)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:wd(s,"exit",e),enter:wd(s,"enter",e)}):!u&&l&&!c?o[a]=C.cloneElement(s,{in:!1}):u&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:wd(s,"exit",e),enter:wd(s,"enter",e)}))}}),o}var Foe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Boe={component:"div",childFactory:function(e){return e}},Py=(function(e){VT(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Noe(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?Loe(r,s):zoe(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=WT(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=ke({},s.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=Fn(r,["component","childFactory"]),l=this.state.contextValue,u=Foe(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?hn.createElement(d0.Provider,{value:l},u):hn.createElement(d0.Provider,{value:l},hn.createElement(o,s,u))},t})(hn.Component);Py.propTypes={};Py.defaultProps=Boe;function _oe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:f}=e,[c,m]=C.useState(!1),y=It(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=It(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&m(!0),C.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,f);return()=>{clearTimeout(x)}}},[u,l,f]),h.jsx("span",{className:y,style:v,children:h.jsx("span",{className:b})})}const zi=Kt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),HC=550,Uoe=80,Voe=vi`
329
- 0% {
330
- transform: scale(0);
331
- opacity: 0.1;
332
- }
333
-
334
- 100% {
335
- transform: scale(1);
336
- opacity: 0.3;
337
- }
338
- `,Hoe=vi`
339
- 0% {
340
- opacity: 1;
341
- }
342
-
343
- 100% {
344
- opacity: 0;
345
- }
346
- `,Woe=vi`
347
- 0% {
348
- transform: scale(1);
349
- }
350
-
351
- 50% {
352
- transform: scale(0.92);
353
- }
354
-
355
- 100% {
356
- transform: scale(1);
357
- }
358
- `,qoe=Fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Yoe=Fe(_oe,{name:"MuiTouchRipple",slot:"Ripple"})`
359
- opacity: 0;
360
- position: absolute;
361
-
362
- &.${zi.rippleVisible} {
363
- opacity: 0.3;
364
- transform: scale(1);
365
- animation-name: ${Voe};
366
- animation-duration: ${HC}ms;
367
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
368
- }
369
-
370
- &.${zi.ripplePulsate} {
371
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
372
- }
373
-
374
- & .${zi.child} {
375
- opacity: 1;
376
- display: block;
377
- width: 100%;
378
- height: 100%;
379
- border-radius: 50%;
380
- background-color: currentColor;
381
- }
382
-
383
- & .${zi.childLeaving} {
384
- opacity: 0;
385
- animation-name: ${Hoe};
386
- animation-duration: ${HC}ms;
387
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
388
- }
389
-
390
- & .${zi.childPulsate} {
391
- position: absolute;
392
- /* @noflip */
393
- left: 0px;
394
- top: 0;
395
- animation-name: ${Woe};
396
- animation-duration: 2500ms;
397
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
398
- animation-iteration-count: infinite;
399
- animation-delay: 200ms;
400
- }
401
- `,Goe=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,u]=C.useState([]),f=C.useRef(0),c=C.useRef(null);C.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const m=C.useRef(!1),y=kx(),v=C.useRef(null),b=C.useRef(null),x=C.useCallback(T=>{const{pulsate:O,rippleX:P,rippleY:$,rippleSize:I,cb:F}=T;u(A=>[...A,h.jsx(Yoe,{classes:{ripple:It(o.ripple,zi.ripple),rippleVisible:It(o.rippleVisible,zi.rippleVisible),ripplePulsate:It(o.ripplePulsate,zi.ripplePulsate),child:It(o.child,zi.child),childLeaving:It(o.childLeaving,zi.childLeaving),childPulsate:It(o.childPulsate,zi.childPulsate)},timeout:HC,pulsate:O,rippleX:P,rippleY:$,rippleSize:I},f.current)]),f.current+=1,c.current=F},[o]),w=C.useCallback((T={},O={},P=()=>{})=>{const{pulsate:$=!1,center:I=r||O.pulsate,fakeElement:F=!1}=O;if(T?.type==="mousedown"&&m.current){m.current=!1;return}T?.type==="touchstart"&&(m.current=!0);const A=F?null:b.current,H=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,M,_;if(I||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)L=Math.round(H.width/2),M=Math.round(H.height/2);else{const{clientX:B,clientY:W}=T.touches&&T.touches.length>0?T.touches[0]:T;L=Math.round(B-H.left),M=Math.round(W-H.top)}if(I)_=Math.sqrt((2*H.width**2+H.height**2)/3),_%2===0&&(_+=1);else{const B=Math.max(Math.abs((A?A.clientWidth:0)-L),L)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-M),M)*2+2;_=Math.sqrt(B**2+W**2)}T?.touches?v.current===null&&(v.current=()=>{x({pulsate:$,rippleX:L,rippleY:M,rippleSize:_,cb:P})},y.start(Uoe,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:$,rippleX:L,rippleY:M,rippleSize:_,cb:P})},[r,x,y]),S=C.useCallback(()=>{w({},{pulsate:!0})},[w]),k=C.useCallback((T,O)=>{if(y.clear(),T?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{k(T,O)});return}v.current=null,u(P=>P.length>0?P.slice(1):P),c.current=O},[y]);return C.useImperativeHandle(t,()=>({pulsate:S,start:w,stop:k}),[S,w,k]),h.jsx(qoe,{className:It(zi.root,o.root,a),ref:b,...s,children:h.jsx(Py,{component:null,exit:!0,children:l})})});function Koe(e){return tn("MuiButtonBase",e)}const Qoe=Kt("MuiButtonBase",["root","disabled","focusVisible"]),Xoe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Zt({root:["root",t&&"disabled",n&&"focusVisible"]},Koe,o);return n&&r&&(a.root+=` ${r}`),a},Zoe=Fe("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qoe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nd=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:c=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:b,onClick:x,onContextMenu:w,onDragLeave:S,onFocus:k,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:$,onMouseLeave:I,onMouseUp:F,onTouchEnd:A,onTouchMove:H,onTouchStart:L,tabIndex:M=0,TouchRippleProps:_,touchRippleRef:B,type:W,...j}=n,Q=C.useRef(null),K=Ooe(),te=pr(K.ref,B),[X,J]=C.useState(!1);u&&X&&J(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{J(!0),Q.current.focus()}}),[]);const ne=K.shouldMount&&!f&&!u;C.useEffect(()=>{X&&m&&!f&&K.pulsate()},[f,m,X,K]);const oe=Jl(K,"start",$,c),se=Jl(K,"stop",w,c),re=Jl(K,"stop",S,c),ie=Jl(K,"stop",F,c),ce=Jl(K,"stop",it=>{X&&it.preventDefault(),I&&I(it)},c),me=Jl(K,"start",L,c),ye=Jl(K,"stop",A,c),we=Jl(K,"stop",H,c),Ce=Jl(K,"stop",it=>{RD(it.target)||J(!1),b&&b(it)},!1),$e=Ft(it=>{Q.current||(Q.current=it.currentTarget),RD(it.target)&&(J(!0),T&&T(it)),k&&k(it)}),fe=()=>{const it=Q.current;return l&&l!=="button"&&!(it.tagName==="A"&&it.href)},Te=Ft(it=>{m&&!it.repeat&&X&&it.key===" "&&K.stop(it,()=>{K.start(it)}),it.target===it.currentTarget&&fe()&&it.key===" "&&it.preventDefault(),O&&O(it),it.target===it.currentTarget&&fe()&&it.key==="Enter"&&!u&&(it.preventDefault(),x&&x(it))}),nt=Ft(it=>{m&&it.key===" "&&X&&!it.defaultPrevented&&K.stop(it,()=>{K.pulsate(it)}),P&&P(it),x&&it.target===it.currentTarget&&fe()&&it.key===" "&&!it.defaultPrevented&&x(it)});let ze=l;ze==="button"&&(j.href||j.to)&&(ze=v);const Ae={};ze==="button"?(Ae.type=W===void 0?"button":W,Ae.disabled=u):(!j.href&&!j.to&&(Ae.role="button"),u&&(Ae["aria-disabled"]=u));const ue=pr(t,Q),bt={...n,centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:c,focusRipple:m,tabIndex:M,focusVisible:X},Be=Xoe(bt);return h.jsxs(Zoe,{as:ze,className:It(Be.root,s),ownerState:bt,onBlur:Ce,onClick:x,onContextMenu:se,onFocus:$e,onKeyDown:Te,onKeyUp:nt,onMouseDown:oe,onMouseLeave:ce,onMouseUp:ie,onDragLeave:re,onTouchEnd:ye,onTouchMove:we,onTouchStart:me,ref:ue,tabIndex:u?-1:M,type:W,...Ae,...j,children:[a,ne?h.jsx(Goe,{ref:te,center:o,..._}):null]})});function Jl(e,t,n,r=!1){return Ft(o=>(n&&n(o),r||e[t](o),!0))}function Joe(e){return tn("MuiCircularProgress",e)}Kt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Gc=44,WC=vi`
402
- 0% {
403
- transform: rotate(0deg);
404
- }
405
-
406
- 100% {
407
- transform: rotate(360deg);
408
- }
409
- `,qC=vi`
410
- 0% {
411
- stroke-dasharray: 1px, 200px;
412
- stroke-dashoffset: 0;
413
- }
414
-
415
- 50% {
416
- stroke-dasharray: 100px, 200px;
417
- stroke-dashoffset: -15px;
418
- }
419
-
420
- 100% {
421
- stroke-dasharray: 1px, 200px;
422
- stroke-dashoffset: -126px;
423
- }
424
- `,eae=typeof WC!="string"?bu`
425
- animation: ${WC} 1.4s linear infinite;
426
- `:null,tae=typeof qC!="string"?bu`
427
- animation: ${qC} 1.4s ease-in-out infinite;
428
- `:null,nae=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${Et(r)}`],svg:["svg"],circle:["circle",`circle${Et(n)}`,o&&"circleDisableShrink"]};return Zt(a,Joe,t)},rae=Fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Et(n.color)}`]]}})(qn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:eae||{animation:`${WC} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),oae=Fe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),aae=Fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Et(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(qn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:tae||{animation:`${qC} 1.4s ease-in-out infinite`}}]}))),UL=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:f=0,variant:c="indeterminate",...m}=n,y={...n,color:o,disableShrink:a,size:s,thickness:u,value:f,variant:c},v=nae(y),b={},x={},w={};if(c==="determinate"){const S=2*Math.PI*((Gc-u)/2);b.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,x.transform="rotate(-90deg)"}return h.jsx(rae,{className:It(v.root,r),style:{width:s,height:s,...x,...l},ownerState:y,ref:t,role:"progressbar",...w,...m,children:h.jsx(oae,{className:v.svg,ownerState:y,viewBox:`${Gc/2} ${Gc/2} ${Gc} ${Gc}`,children:h.jsx(aae,{className:v.circle,style:b,ownerState:y,cx:Gc,cy:Gc,r:(Gc-u)/2,fill:"none",strokeWidth:u})})})});function iae(e){return tn("MuiIconButton",e)}const VD=Kt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),sae=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Et(r)}`,o&&`edge${Et(o)}`,`size${Et(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Zt(l,iae,t)},lae=Fe(Nd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Et(n.color)}`],n.edge&&t[`edge${Et(n.edge)}`],t[`size${Et(n.size)}`]]}})(qn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),qn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${VD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${VD.loading}`]:{color:"transparent"}}))),cae=Fe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),cs=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:f="medium",id:c,loading:m=null,loadingIndicator:y,...v}=n,b=Ns(c),x=y??h.jsx(UL,{"aria-labelledby":b,color:"inherit",size:16}),w={...n,edge:r,color:s,disabled:l,disableFocusRipple:u,loading:m,loadingIndicator:x,size:f},S=sae(w);return h.jsxs(lae,{id:m?b:c,className:It(S.root,a),centerRipple:!0,focusRipple:!u,disabled:l||m,ref:t,...v,ownerState:w,children:[typeof m=="boolean"&&h.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:h.jsx(cae,{className:S.loadingIndicator,ownerState:w,children:m&&x})}),o]})}),VL=e=>e.scrollTop;function zp(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function YC(e){return`scale(${e}, ${e**2})`}const uae={entering:{opacity:1,transform:YC(1)},entered:{opacity:1,transform:"none"}},hw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_g=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:f,onExit:c,onExited:m,onExiting:y,style:v,timeout:b="auto",TransitionComponent:x=ls,...w}=e,S=kx(),k=C.useRef(),T=Tu(),O=C.useRef(null),P=pr(O,rh(o),t),$=_=>B=>{if(_){const W=O.current;B===void 0?_(W):_(W,B)}},I=$(f),F=$((_,B)=>{VL(_);const{duration:W,delay:j,easing:Q}=zp({style:v,timeout:b,easing:a},{mode:"enter"});let K;b==="auto"?(K=T.transitions.getAutoHeightDuration(_.clientHeight),k.current=K):K=W,_.style.transition=[T.transitions.create("opacity",{duration:K,delay:j}),T.transitions.create("transform",{duration:hw?K:K*.666,delay:j,easing:Q})].join(","),l&&l(_,B)}),A=$(u),H=$(y),L=$(_=>{const{duration:B,delay:W,easing:j}=zp({style:v,timeout:b,easing:a},{mode:"exit"});let Q;b==="auto"?(Q=T.transitions.getAutoHeightDuration(_.clientHeight),k.current=Q):Q=B,_.style.transition=[T.transitions.create("opacity",{duration:Q,delay:W}),T.transitions.create("transform",{duration:hw?Q:Q*.666,delay:hw?W:W||Q*.333,easing:j})].join(","),_.style.opacity=0,_.style.transform=YC(.75),c&&c(_)}),M=$(m);return h.jsx(x,{appear:r,in:s,nodeRef:O,onEnter:F,onEntered:A,onEntering:I,onExit:L,onExited:M,onExiting:H,addEndListener:_=>{b==="auto"&&S.start(k.current||0,_),n&&n(O.current,_)},timeout:b==="auto"?null:b,...w,children:(_,{ownerState:B,...W})=>C.cloneElement(o,{style:{opacity:0,transform:YC(.75),visibility:_==="exited"&&!s?"hidden":void 0,...uae[_],...v,...o.props.style},ref:P,...W})})});_g&&(_g.muiSupportAuto=!0);const dae={entering:{opacity:1},entered:{opacity:1}},Id=C.forwardRef(function(e,t){const n=Tu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:f,onEntered:c,onEntering:m,onExit:y,onExited:v,onExiting:b,style:x,timeout:w=r,TransitionComponent:S=ls,...k}=e,T=C.useRef(null),O=pr(T,rh(s),t),P=M=>_=>{if(M){const B=T.current;_===void 0?M(B):M(B,_)}},$=P(m),I=P((M,_)=>{VL(M);const B=zp({style:x,timeout:w,easing:l},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",B),M.style.transition=n.transitions.create("opacity",B),f&&f(M,_)}),F=P(c),A=P(b),H=P(M=>{const _=zp({style:x,timeout:w,easing:l},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",_),M.style.transition=n.transitions.create("opacity",_),y&&y(M)}),L=P(v);return h.jsx(S,{appear:a,in:u,nodeRef:T,onEnter:I,onEntered:F,onEntering:$,onExit:H,onExited:L,onExiting:A,addEndListener:M=>{o&&o(T.current,M)},timeout:w,...k,children:(M,{ownerState:_,...B})=>C.cloneElement(s,{style:{opacity:0,visibility:M==="exited"&&!u?"hidden":void 0,...dae[M],...x,...s.props.style},ref:O,...B})})});function fae(e){return tn("MuiPaper",e)}Kt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const pae=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Zt(a,fae,o)},hae=Fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(qn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Hd=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiPaper"}),r=Tu(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:u="elevation",...f}=n,c={...n,component:a,elevation:s,square:l,variant:u},m=pae(c);return h.jsx(hae,{as:a,ownerState:c,className:It(m.root,o),ref:t,...f,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[s]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${o0("#fff",DC(s))}, ${o0("#fff",DC(s))})`}},...f.style}})});var za="top",ts="bottom",ns="right",Fa="left",qT="auto",$y=[za,ts,ns,Fa],Fp="start",Ug="end",mae="clippingParents",HL="viewport",Rm="popper",gae="reference",HD=$y.reduce(function(e,t){return e.concat([t+"-"+Fp,t+"-"+Ug])},[]),WL=[].concat($y,[qT]).reduce(function(e,t){return e.concat([t,t+"-"+Fp,t+"-"+Ug])},[]),yae="beforeRead",vae="read",bae="afterRead",xae="beforeMain",Sae="main",wae="afterMain",Cae="beforeWrite",kae="write",Tae="afterWrite",Mae=[yae,vae,bae,xae,Sae,wae,Cae,kae,Tae];function xl(e){return e?(e.nodeName||"").toLowerCase():null}function yi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ld(e){var t=yi(e).Element;return e instanceof t||e instanceof Element}function Yi(e){var t=yi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function YT(e){if(typeof ShadowRoot>"u")return!1;var t=yi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Eae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Yi(a)||!xl(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function Rae(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,f){return u[f]="",u},{});!Yi(o)||!xl(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const Oae={name:"applyStyles",enabled:!0,phase:"write",fn:Eae,effect:Rae,requires:["computeStyles"]};function ml(e){return e.split("-")[0]}var Ed=Math.max,f0=Math.min,Bp=Math.round;function GC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qL(){return!/^((?!chrome|android).)*safari/i.test(GC())}function _p(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Yi(e)&&(o=e.offsetWidth>0&&Bp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Bp(r.height)/e.offsetHeight||1);var s=Ld(e)?yi(e):window,l=s.visualViewport,u=!qL()&&n,f=(r.left+(u&&l?l.offsetLeft:0))/o,c=(r.top+(u&&l?l.offsetTop:0))/a,m=r.width/o,y=r.height/a;return{width:m,height:y,top:c,right:f+m,bottom:c+y,left:f,x:f,y:c}}function GT(e){var t=_p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function YL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&YT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dc(e){return yi(e).getComputedStyle(e)}function Pae(e){return["table","td","th"].indexOf(xl(e))>=0}function Mu(e){return((Ld(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rx(e){return xl(e)==="html"?e:e.assignedSlot||e.parentNode||(YT(e)?e.host:null)||Mu(e)}function WD(e){return!Yi(e)||dc(e).position==="fixed"?null:e.offsetParent}function $ae(e){var t=/firefox/i.test(GC()),n=/Trident/i.test(GC());if(n&&Yi(e)){var r=dc(e);if(r.position==="fixed")return null}var o=Rx(e);for(YT(o)&&(o=o.host);Yi(o)&&["html","body"].indexOf(xl(o))<0;){var a=dc(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Dy(e){for(var t=yi(e),n=WD(e);n&&Pae(n)&&dc(n).position==="static";)n=WD(n);return n&&(xl(n)==="html"||xl(n)==="body"&&dc(n).position==="static")?t:n||$ae(e)||t}function KT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yg(e,t,n){return Ed(e,f0(t,n))}function Dae(e,t,n){var r=yg(e,t,n);return r>n?n:r}function GL(){return{top:0,right:0,bottom:0,left:0}}function KL(e){return Object.assign({},GL(),e)}function QL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Aae=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,KL(typeof e!="number"?e:QL(e,$y))};function jae(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=ml(n.placement),u=KT(l),f=[Fa,ns].indexOf(l)>=0,c=f?"height":"width";if(!(!a||!s)){var m=Aae(o.padding,n),y=GT(a),v=u==="y"?za:Fa,b=u==="y"?ts:ns,x=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],w=s[u]-n.rects.reference[u],S=Dy(a),k=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,T=x/2-w/2,O=m[v],P=k-y[c]-m[b],$=k/2-y[c]/2+T,I=yg(O,$,P),F=u;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-$,t)}}function Nae(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YL(t.elements.popper,o)&&(t.elements.arrow=o))}const Iae={name:"arrow",enabled:!0,phase:"main",fn:jae,effect:Nae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Up(e){return e.split("-")[1]}var Lae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zae(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Bp(n*o)/o||0,y:Bp(r*o)/o||0}}function qD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,c=e.roundOffsets,m=e.isFixed,y=s.x,v=y===void 0?0:y,b=s.y,x=b===void 0?0:b,w=typeof c=="function"?c({x:v,y:x}):{x:v,y:x};v=w.x,x=w.y;var S=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),T=Fa,O=za,P=window;if(f){var $=Dy(n),I="clientHeight",F="clientWidth";if($===yi(n)&&($=Mu(n),dc($).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),$=$,o===za||(o===Fa||o===ns)&&a===Ug){O=ts;var A=m&&$===P&&P.visualViewport?P.visualViewport.height:$[I];x-=A-r.height,x*=u?1:-1}if(o===Fa||(o===za||o===ts)&&a===Ug){T=ns;var H=m&&$===P&&P.visualViewport?P.visualViewport.width:$[F];v-=H-r.width,v*=u?1:-1}}var L=Object.assign({position:l},f&&Lae),M=c===!0?zae({x:v,y:x},yi(n)):{x:v,y:x};if(v=M.x,x=M.y,u){var _;return Object.assign({},L,(_={},_[O]=k?"0":"",_[T]=S?"0":"",_.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",_))}return Object.assign({},L,(t={},t[O]=k?x+"px":"",t[T]=S?v+"px":"",t.transform="",t))}function Fae(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:ml(t.placement),variation:Up(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qD(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qD(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Bae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fae,data:{}};var ab={passive:!0};function _ae(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=yi(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(c){c.addEventListener("scroll",n.update,ab)}),l&&u.addEventListener("resize",n.update,ab),function(){a&&f.forEach(function(c){c.removeEventListener("scroll",n.update,ab)}),l&&u.removeEventListener("resize",n.update,ab)}}const Uae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_ae,data:{}};var Vae={left:"right",right:"left",bottom:"top",top:"bottom"};function jb(e){return e.replace(/left|right|bottom|top/g,function(t){return Vae[t]})}var Hae={start:"end",end:"start"};function YD(e){return e.replace(/start|end/g,function(t){return Hae[t]})}function QT(e){var t=yi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function XT(e){return _p(Mu(e)).left+QT(e).scrollLeft}function Wae(e,t){var n=yi(e),r=Mu(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var f=qL();(f||!f&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+XT(e),y:u}}function qae(e){var t,n=Mu(e),r=QT(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ed(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ed(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+XT(e),u=-r.scrollTop;return dc(o||n).direction==="rtl"&&(l+=Ed(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function ZT(e){var t=dc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function XL(e){return["html","body","#document"].indexOf(xl(e))>=0?e.ownerDocument.body:Yi(e)&&ZT(e)?e:XL(Rx(e))}function vg(e,t){var n;t===void 0&&(t=[]);var r=XL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=yi(r),s=o?[a].concat(a.visualViewport||[],ZT(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(vg(Rx(s)))}function KC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yae(e,t){var n=_p(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function GD(e,t,n){return t===HL?KC(Wae(e,n)):Ld(t)?Yae(t,n):KC(qae(Mu(e)))}function Gae(e){var t=vg(Rx(e)),n=["absolute","fixed"].indexOf(dc(e).position)>=0,r=n&&Yi(e)?Dy(e):e;return Ld(r)?t.filter(function(o){return Ld(o)&&YL(o,r)&&xl(o)!=="body"}):[]}function Kae(e,t,n,r){var o=t==="clippingParents"?Gae(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,f){var c=GD(e,f,r);return u.top=Ed(c.top,u.top),u.right=f0(c.right,u.right),u.bottom=f0(c.bottom,u.bottom),u.left=Ed(c.left,u.left),u},GD(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ZL(e){var t=e.reference,n=e.element,r=e.placement,o=r?ml(r):null,a=r?Up(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case za:u={x:s,y:t.y-n.height};break;case ts:u={x:s,y:t.y+t.height};break;case ns:u={x:t.x+t.width,y:l};break;case Fa:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=o?KT(o):null;if(f!=null){var c=f==="y"?"height":"width";switch(a){case Fp:u[f]=u[f]-(t[c]/2-n[c]/2);break;case Ug:u[f]=u[f]+(t[c]/2-n[c]/2);break}}return u}function Vg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?mae:l,f=n.rootBoundary,c=f===void 0?HL:f,m=n.elementContext,y=m===void 0?Rm:m,v=n.altBoundary,b=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,S=KL(typeof w!="number"?w:QL(w,$y)),k=y===Rm?gae:Rm,T=e.rects.popper,O=e.elements[b?k:y],P=Kae(Ld(O)?O:O.contextElement||Mu(e.elements.popper),u,c,s),$=_p(e.elements.reference),I=ZL({reference:$,element:T,placement:o}),F=KC(Object.assign({},T,I)),A=y===Rm?F:$,H={top:P.top-A.top+S.top,bottom:A.bottom-P.bottom+S.bottom,left:P.left-A.left+S.left,right:A.right-P.right+S.right},L=e.modifiersData.offset;if(y===Rm&&L){var M=L[o];Object.keys(H).forEach(function(_){var B=[ns,ts].indexOf(_)>=0?1:-1,W=[za,ts].indexOf(_)>=0?"y":"x";H[_]+=M[W]*B})}return H}function Qae(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?WL:u,c=Up(r),m=c?l?HD:HD.filter(function(b){return Up(b)===c}):$y,y=m.filter(function(b){return f.indexOf(b)>=0});y.length===0&&(y=m);var v=y.reduce(function(b,x){return b[x]=Vg(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[ml(x)],b},{});return Object.keys(v).sort(function(b,x){return v[b]-v[x]})}function Xae(e){if(ml(e)===qT)return[];var t=jb(e);return[YD(e),t,YD(t)]}function Zae(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,f=n.padding,c=n.boundary,m=n.rootBoundary,y=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,x=n.allowedAutoPlacements,w=t.options.placement,S=ml(w),k=S===w,T=u||(k||!b?[jb(w)]:Xae(w)),O=[w].concat(T).reduce(function(se,re){return se.concat(ml(re)===qT?Qae(t,{placement:re,boundary:c,rootBoundary:m,padding:f,flipVariations:b,allowedAutoPlacements:x}):re)},[]),P=t.rects.reference,$=t.rects.popper,I=new Map,F=!0,A=O[0],H=0;H<O.length;H++){var L=O[H],M=ml(L),_=Up(L)===Fp,B=[za,ts].indexOf(M)>=0,W=B?"width":"height",j=Vg(t,{placement:L,boundary:c,rootBoundary:m,altBoundary:y,padding:f}),Q=B?_?ns:Fa:_?ts:za;P[W]>$[W]&&(Q=jb(Q));var K=jb(Q),te=[];if(a&&te.push(j[M]<=0),l&&te.push(j[Q]<=0,j[K]<=0),te.every(function(se){return se})){A=L,F=!1;break}I.set(L,te)}if(F)for(var X=b?3:1,J=function(se){var re=O.find(function(ie){var ce=I.get(ie);if(ce)return ce.slice(0,se).every(function(me){return me})});if(re)return A=re,"break"},ne=X;ne>0;ne--){var oe=J(ne);if(oe==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const Jae={name:"flip",enabled:!0,phase:"main",fn:Zae,requiresIfExists:["offset"],data:{_skip:!1}};function KD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QD(e){return[za,ns,ts,Fa].some(function(t){return e[t]>=0})}function eie(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Vg(t,{elementContext:"reference"}),l=Vg(t,{altBoundary:!0}),u=KD(s,r),f=KD(l,o,a),c=QD(u),m=QD(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}const tie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eie};function nie(e,t,n){var r=ml(e),o=[Fa,za].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Fa,ns].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function rie(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=WL.reduce(function(c,m){return c[m]=nie(m,t.rects,a),c},{}),l=s[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const oie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rie};function aie(e){var t=e.state,n=e.name;t.modifiersData[n]=ZL({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const iie={name:"popperOffsets",enabled:!0,phase:"read",fn:aie,data:{}};function sie(e){return e==="x"?"y":"x"}function lie(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,f=n.rootBoundary,c=n.altBoundary,m=n.padding,y=n.tether,v=y===void 0?!0:y,b=n.tetherOffset,x=b===void 0?0:b,w=Vg(t,{boundary:u,rootBoundary:f,padding:m,altBoundary:c}),S=ml(t.placement),k=Up(t.placement),T=!k,O=KT(S),P=sie(O),$=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,A=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,H=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if($){if(a){var _,B=O==="y"?za:Fa,W=O==="y"?ts:ns,j=O==="y"?"height":"width",Q=$[O],K=Q+w[B],te=Q-w[W],X=v?-F[j]/2:0,J=k===Fp?I[j]:F[j],ne=k===Fp?-F[j]:-I[j],oe=t.elements.arrow,se=v&&oe?GT(oe):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GL(),ie=re[B],ce=re[W],me=yg(0,I[j],se[j]),ye=T?I[j]/2-X-me-ie-H.mainAxis:J-me-ie-H.mainAxis,we=T?-I[j]/2+X+me+ce+H.mainAxis:ne+me+ce+H.mainAxis,Ce=t.elements.arrow&&Dy(t.elements.arrow),$e=Ce?O==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,fe=(_=L?.[O])!=null?_:0,Te=Q+ye-fe-$e,nt=Q+we-fe,ze=yg(v?f0(K,Te):K,Q,v?Ed(te,nt):te);$[O]=ze,M[O]=ze-Q}if(l){var Ae,ue=O==="x"?za:Fa,bt=O==="x"?ts:ns,Be=$[P],it=P==="y"?"height":"width",pt=Be+w[ue],_t=Be-w[bt],Ht=[za,Fa].indexOf(S)!==-1,at=(Ae=L?.[P])!=null?Ae:0,Xe=Ht?pt:Be-I[it]-F[it]-at+H.altAxis,ot=Ht?Be+I[it]+F[it]-at-H.altAxis:_t,Ne=v&&Ht?Dae(Xe,Be,ot):yg(v?Xe:pt,Be,v?ot:_t);$[P]=Ne,M[P]=Ne-Be}t.modifiersData[r]=M}}const cie={name:"preventOverflow",enabled:!0,phase:"main",fn:lie,requiresIfExists:["offset"]};function uie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function die(e){return e===yi(e)||!Yi(e)?QT(e):uie(e)}function fie(e){var t=e.getBoundingClientRect(),n=Bp(t.width)/e.offsetWidth||1,r=Bp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pie(e,t,n){n===void 0&&(n=!1);var r=Yi(t),o=Yi(t)&&fie(t),a=Mu(t),s=_p(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((xl(t)!=="body"||ZT(a))&&(l=die(t)),Yi(t)?(u=_p(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=XT(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function hie(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function mie(e){var t=hie(e);return Mae.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function gie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yie(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XD={placement:"bottom",modifiers:[],strategy:"absolute"};function ZD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function vie(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?XD:o;return function(s,l,u){u===void 0&&(u=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},XD,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},c=[],m=!1,y={state:f,setOptions:function(x){var w=typeof x=="function"?x(f.options):x;b(),f.options=Object.assign({},a,f.options,w),f.scrollParents={reference:Ld(s)?vg(s):s.contextElement?vg(s.contextElement):[],popper:vg(l)};var S=mie(yie([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(k){return k.enabled}),v(),y.update()},forceUpdate:function(){if(!m){var x=f.elements,w=x.reference,S=x.popper;if(ZD(w,S)){f.rects={reference:pie(w,Dy(S),f.options.strategy==="fixed"),popper:GT(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(F){return f.modifiersData[F.name]=Object.assign({},F.data)});for(var k=0;k<f.orderedModifiers.length;k++){if(f.reset===!0){f.reset=!1,k=-1;continue}var T=f.orderedModifiers[k],O=T.fn,P=T.options,$=P===void 0?{}:P,I=T.name;typeof O=="function"&&(f=O({state:f,options:$,name:I,instance:y})||f)}}}},update:gie(function(){return new Promise(function(x){y.forceUpdate(),x(f)})}),destroy:function(){b(),m=!0}};if(!ZD(s,l))return y;y.setOptions(u).then(function(x){!m&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var w=x.name,S=x.options,k=S===void 0?{}:S,T=x.effect;if(typeof T=="function"){var O=T({state:f,name:w,instance:y,options:k}),P=function(){};c.push(O||P)}})}function b(){c.forEach(function(x){return x()}),c=[]}return y}}var bie=[Uae,iie,Bae,Oae,oie,Jae,cie,Iae,tie],xie=vie({defaultModifiers:bie});function Sie(e){return typeof e=="function"?e():e}const JL=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=C.useState(null),l=pr(C.isValidElement(n)?rh(n):null,t);if(Lo(()=>{o||s(Sie(r)||document.body)},[r,o]),Lo(()=>{if(a&&!o)return AC(t,a),()=>{AC(t,null)}},[t,a,o]),o){if(C.isValidElement(n)){const u={ref:l};return C.cloneElement(n,u)}return n}return a&&sy.createPortal(n,a)});function wie(e){return tn("MuiPopper",e)}Kt("MuiPopper",["root"]);function Cie(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function QC(e){return typeof e=="function"?e():e}function kie(e){return e.nodeType!==void 0}const Tie=e=>{const{classes:t}=e;return Zt({root:["root"]},wie,t)},Mie={},Eie=C.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:f,popperRef:c,slotProps:m={},slots:y={},TransitionProps:v,ownerState:b,...x}=e,w=C.useRef(null),S=pr(w,t),k=C.useRef(null),T=pr(k,c),O=C.useRef(T);Lo(()=>{O.current=T},[T]),C.useImperativeHandle(c,()=>k.current,[]);const P=Cie(u,o),[$,I]=C.useState(P),[F,A]=C.useState(QC(n));C.useEffect(()=>{k.current&&k.current.forceUpdate()}),C.useEffect(()=>{n&&A(QC(n))},[n]),Lo(()=>{if(!F||!l)return;const B=Q=>{I(Q.placement)};let W=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{B(Q)}}];s!=null&&(W=W.concat(s)),f&&f.modifiers!=null&&(W=W.concat(f.modifiers));const j=xie(F,w.current,{placement:P,...f,modifiers:W});return O.current(j),()=>{j.destroy(),O.current(null)}},[F,a,s,l,f,P]);const H={placement:$};v!==null&&(H.TransitionProps=v);const L=Tie(e),M=y.root??"div",_=br({elementType:M,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:L.root});return h.jsx(M,{..._,children:typeof r=="function"?r(H):r})}),Rie=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:f,placement:c="bottom",popperOptions:m=Mie,popperRef:y,style:v,transition:b=!1,slotProps:x={},slots:w={},...S}=e,[k,T]=C.useState(!0),O=()=>{T(!1)},P=()=>{T(!0)};if(!l&&!f&&(!b||k))return null;let $;if(o)$=o;else if(n){const A=QC(n);$=A&&kie(A)?Io(A).body:Io(null).body}const I=!f&&l&&(!b||k)?"none":void 0,F=b?{in:f,onEnter:O,onExited:P}:void 0;return h.jsx(JL,{disablePortal:s,container:$,children:h.jsx(Eie,{anchorEl:n,direction:a,disablePortal:s,modifiers:u,ref:t,open:b?!k:f,placement:c,popperOptions:m,popperRef:y,slotProps:x,slots:w,...S,style:{position:"fixed",top:0,left:0,display:I,...v},TransitionProps:F,children:r})})}),Oie=Fe(Rie,{name:"MuiPopper",slot:"Root"})({}),JT=C.forwardRef(function(e,t){const n=js(),r=Vn({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:u,disablePortal:f,keepMounted:c,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:w,slots:S,slotProps:k,...T}=r,O=S?.root??s?.Root,P={anchorEl:o,container:u,disablePortal:f,keepMounted:c,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:w,...T};return h.jsx(Oie,{as:a,direction:n?"rtl":"ltr",slots:{root:O},slotProps:k??l,...P,ref:t})}),Pie=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $ie(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Die(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Aie(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Die(e))}function jie(e){const t=[],n=[];return Array.from(e.querySelectorAll(Pie)).forEach((r,o)=>{const a=$ie(r);a===-1||!Aie(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Nie(){return!0}function ez(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=jie,isEnabled:s=Nie,open:l}=e,u=C.useRef(!1),f=C.useRef(null),c=C.useRef(null),m=C.useRef(null),y=C.useRef(null),v=C.useRef(!1),b=C.useRef(null),x=pr(rh(t),b),w=C.useRef(null);C.useEffect(()=>{!l||!b.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!b.current)return;const T=Io(b.current);return b.current.contains(T.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),v.current&&b.current.focus()),()=>{o||(m.current&&m.current.focus&&(u.current=!0,m.current.focus()),m.current=null)}},[l]),C.useEffect(()=>{if(!l||!b.current)return;const T=Io(b.current),O=I=>{w.current=I,!(r||!s()||I.key!=="Tab")&&T.activeElement===b.current&&I.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const I=b.current;if(I===null)return;if(!T.hasFocus()||!s()||u.current){u.current=!1;return}if(I.contains(T.activeElement)||r&&T.activeElement!==f.current&&T.activeElement!==c.current)return;if(T.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let F=[];if((T.activeElement===f.current||T.activeElement===c.current)&&(F=a(b.current)),F.length>0){const A=!!(w.current?.shiftKey&&w.current?.key==="Tab"),H=F[0],L=F[F.length-1];typeof H!="string"&&typeof L!="string"&&(A?L.focus():H.focus())}else I.focus()};T.addEventListener("focusin",P),T.addEventListener("keydown",O,!0);const $=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval($),T.removeEventListener("focusin",P),T.removeEventListener("keydown",O,!0)}},[n,r,o,s,l,a]);const S=T=>{m.current===null&&(m.current=T.relatedTarget),v.current=!0,y.current=T.target;const O=t.props.onFocus;O&&O(T)},k=T=>{m.current===null&&(m.current=T.relatedTarget),v.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:S}),h.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function Iie(e){return tn("MuiPickersPopper",e)}Kt("MuiPickersPopper",["root","paper"]);function Lie(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const zie=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},$a=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?$a(t.shadowRoot):t:null},Fie="@media (pointer: fine)",Bie="@media (prefers-reduced-motion: reduce)",bp=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),JD=bp&&bp[1]?parseInt(bp[1],10):null,eA=bp&&bp[2]?parseInt(bp[2],10):null,_ie=JD&&JD<10||eA&&eA<13||!1,tz=()=>wL(Bie,{defaultMatches:!1})||_ie,Uie=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Vie=e=>{const{classes:t}=e;return Zt({root:["root"],paper:["paper"]},Iie,t)},Hie=Fe(JT,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Wie=Fe(Hd,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function qie(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Yie(e,t){const n=C.useRef(!1),r=C.useRef(!1),o=C.useRef(null),a=C.useRef(!1);C.useEffect(()=>{if(!e)return;function u(){a.current=!0}return document.addEventListener("mousedown",u,!0),document.addEventListener("touchstart",u,!0),()=>{document.removeEventListener("mousedown",u,!0),document.removeEventListener("touchstart",u,!0),a.current=!1}},[e]);const s=Ft(u=>{if(!a.current)return;const f=r.current;r.current=!1;const c=Io(o.current);if(!o.current||"clientX"in u&&qie(u,c))return;if(n.current){n.current=!1;return}let m;u.composedPath?m=u.composedPath().indexOf(o.current)>-1:m=!c.documentElement.contains(u.target)||o.current.contains(u.target),!m&&!f&&t(u)}),l=()=>{r.current=!0};return C.useEffect(()=>{if(e){const u=Io(o.current),f=()=>{n.current=!0};return u.addEventListener("touchstart",s),u.addEventListener("touchmove",f),()=>{u.removeEventListener("touchstart",s),u.removeEventListener("touchmove",f)}}},[e,s]),C.useEffect(()=>{if(e){const u=Io(o.current);return u.addEventListener("click",s),()=>{u.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,l,l]}const Gie=C.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:s,paperClasses:l,onPaperClick:u,onPaperTouchStart:f}=e,c=Fn(e,Uie),m=ke({},o,{placement:r}),y=br({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:m});return h.jsx(n,ke({},c,y,{onClick:v=>{u(v),y.onClick?.(v)},onTouchStart:v=>{f(v),y.onTouchStart?.(v)},ownerState:m,children:a}))});function Kie(e){const t=qr({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:a,onBlur:s,onDismiss:l,open:u,role:f,placement:c,slots:m,slotProps:y,reduceAnimations:v}=t;C.useEffect(()=>{function W(j){u&&j.key==="Escape"&&l()}return document.addEventListener("keydown",W),()=>{document.removeEventListener("keydown",W)}},[l,u]);const b=C.useRef(null);C.useEffect(()=>{f==="tooltip"||a&&!a()||(u?b.current=$a(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[u,f,a]);const[x,w,S]=Yie(u,s??l),k=C.useRef(null),T=pr(k,o),O=pr(T,x),P=t,$=Vie(P),I=tz(),F=v??I,A=W=>{W.key==="Escape"&&(W.stopPropagation(),l())},H=m?.desktopTransition??F?Id:_g,L=m?.desktopTrapFocus??ez,M=m?.desktopPaper??Wie,_=m?.popper??Hie,B=br({elementType:_,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:f,open:u,anchorEl:n,placement:c,onKeyDown:A},className:$.root,ownerState:t});return h.jsx(_,ke({},B,{children:({TransitionProps:W,placement:j})=>h.jsx(L,ke({open:u,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:f==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:h.jsx(H,ke({},W,y?.desktopTransition,{children:h.jsx(Gie,{PaperComponent:M,ownerState:P,popperPlacement:j,ref:O,onPaperClick:w,onPaperTouchStart:S,paperClasses:$.paper,paperSlotProps:y?.desktopPaper,children:r})}))}))}))}const Qie=({open:e,onOpen:t,onClose:n})=>{const r=C.useRef(typeof e=="boolean").current,[o,a]=C.useState(!1);C.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=C.useCallback(l=>{r||a(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:s}},e2=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const s=Yr(),l=C.useRef(n),u=t??l.current??a.emptyValue,f=C.useMemo(()=>a.getTimezone(s,u),[s,a,u]),c=Ft(b=>f==null?b:a.setTimezone(s,f,b));let m;e?m=e:f?m=f:r?m=s.getTimezone(r):m="default";const y=C.useMemo(()=>a.setTimezone(s,m,u),[a,s,m,u]),v=Ft((b,...x)=>{const w=c(b);o?.(w,...x)});return{value:y,handleValueChange:v,timezone:m}},t2=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:s})=>{const[l,u]=mi({name:e,state:"value",controlled:n,default:r??s.emptyValue}),f=Ft((c,...m)=>{u(c),a?.(c,...m)});return e2({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:f,valueManager:s})},Xie=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},Zie=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Jie=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},ese=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:s,value:l,defaultValue:u,closeOnSelect:f=r==="desktop",timezone:c,referenceDate:m}=e,{current:y}=C.useRef(u),{current:v}=C.useRef(l!==void 0),[b,x]=C.useState(c),w=Yr(),S=Vd(),{isOpen:k,setIsOpen:T}=Qie(e),{timezone:O,value:P,handleValueChange:$}=e2({timezone:c,value:l,defaultValue:y,referenceDate:m,onChange:s,valueManager:t}),[I,F]=C.useState(()=>{let me;return P!==void 0?me=P:y!==void 0?me=y:me=t.emptyValue,{draft:me,lastPublishedValue:me,lastCommittedValue:me,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),A=t.getTimezone(w,I.draft);b!==c&&(x(c),c&&A&&c!==A&&F(me=>ke({},me,{draft:t.setTimezone(w,c,me.draft)})));const{getValidationErrorForNewValue:H}=FL({props:e,validator:o,timezone:O,value:I.draft,onError:e.onError}),L=Ft(me=>{const ye={action:me,dateState:I,hasChanged:nt=>!t.areValuesEqual(w,me.value,nt),isControlled:v,closeOnSelect:f},we=Xie(ye),Ce=Zie(ye),$e=Jie(ye);F(nt=>ke({},nt,{draft:me.value,lastPublishedValue:we?me.value:nt.lastPublishedValue,lastCommittedValue:Ce?me.value:nt.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let fe=null;const Te=()=>(fe||(fe={validationError:me.name==="setValueFromField"?me.context.validationError:H(me.value)},me.name==="setValueFromShortcut"&&(fe.shortcut=me.shortcut)),fe);we&&$(me.value,Te()),Ce&&a&&a(me.value,Te()),$e&&T(!1)});if(I.lastControlledValue!==l){const me=t.areValuesEqual(w,I.draft,P);F(ye=>ke({},ye,{lastControlledValue:l},me?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const M=Ft(()=>{L({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),_=Ft(()=>{L({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),B=Ft(()=>{L({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),W=Ft(()=>{L({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=Ft(()=>{L({value:t.getTodayValue(w,O,n),name:"setValueFromAction",pickerAction:"today"})}),Q=Ft(me=>{me.preventDefault(),T(!0)}),K=Ft(me=>{me?.preventDefault(),T(!1)}),te=Ft((me,ye="partial")=>L({name:"setValueFromView",value:me,selectionState:ye})),X=Ft((me,ye,we)=>L({name:"setValueFromShortcut",value:me,changeImportance:ye,shortcut:we})),J=Ft((me,ye)=>L({name:"setValueFromField",value:me,context:ye})),ne={onClear:M,onAccept:_,onDismiss:B,onCancel:W,onSetToday:j,onOpen:Q,onClose:K},oe={value:I.draft,onChange:J},se=C.useMemo(()=>t.cleanValue(w,I.draft),[w,t,I.draft]),re={value:se,onChange:te,onClose:K,open:k},ie=ke({},ne,{value:se,onChange:te,onSelectShortcut:X,isValid:me=>{const ye=o({adapter:S,value:me,timezone:O,props:e});return!t.hasError(ye)}}),ce=C.useMemo(()=>({onOpen:Q,onClose:K,open:k}),[k,K,Q]);return{open:k,fieldProps:oe,viewProps:re,layoutProps:ie,actions:ne,contextValue:ce}};function nz({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:s,onFocusedViewChange:l}){const u=C.useRef(n),f=C.useRef(o),c=C.useRef(o.includes(n)?n:o[0]),[m,y]=mi({name:"useViews",state:"view",controlled:r,default:c.current}),v=C.useRef(a?m:null),[b,x]=mi({name:"useViews",state:"focusedView",controlled:s,default:v.current});C.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(I=>!o.includes(I)))&&(y(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,y,m,o]);const w=o.indexOf(m),S=o[w-1]??null,k=o[w+1]??null,T=Ft((I,F)=>{x(F?I:A=>I===A?null:A),l?.(I,F)}),O=Ft(I=>{T(I,!0),I!==m&&(y(I),t&&t(I))}),P=Ft(()=>{k&&O(k)}),$=Ft((I,F,A)=>{const H=F==="finish",L=A?o.indexOf(A)<o.length-1:!!k;if(e(I,H&&L?"partial":F,A),A&&A!==m){const M=o[o.indexOf(A)+1];M&&O(M)}else H&&P()});return{view:m,setView:O,focusedView:b,setFocusedView:T,nextView:k,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:$}}const tse=["className","sx"],nse=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:s,open:l,onClose:u}=t,{view:f,views:c,openTo:m,onViewChange:y,viewRenderers:v,timezone:b}=e,x=Fn(e,tse),{view:w,setView:S,defaultView:k,focusedView:T,setFocusedView:O,setValueAndGoToNextView:P}=nz({view:f,views:c,openTo:m,onChange:s,onViewChange:y,autoFocus:r}),{hasUIView:$,viewModeLookup:I}=C.useMemo(()=>c.reduce((_,B)=>{let W;return v[B]!=null?W="UI":W="field",_.viewModeLookup[B]=W,W==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[v,c]),F=C.useMemo(()=>c.reduce((_,B)=>v[B]!=null&&jre(B)?_+1:_,0),[v,c]),A=I[w],H=Ft(()=>A==="UI"),[L,M]=C.useState(A==="UI"?w:null);return L!==w&&I[w]==="UI"&&M(w),Lo(()=>{A==="field"&&l&&(u(),setTimeout(()=>{a?.current?.setSelectedSections(w),a?.current?.focusField(w)}))},[w]),Lo(()=>{if(!l)return;let _=w;A==="field"&&L!=null&&(_=L),_!==k&&I[_]==="UI"&&I[k]==="UI"&&(_=k),_!==w&&S(_),O(_,!0)},[l]),{hasUIView:$,shouldRestoreFocus:H,layoutProps:{views:c,view:L,onViewChange:S},renderCurrentView:()=>{if(L==null)return null;const _=v[L];if(_==null)return null;const B=ke({},x,n,t,{views:c,timezone:b,onChange:P,view:L,onViewChange:S,focusedView:T,onFocusedViewChange:O,showViewSwitcher:F>1,timeViewsCount:F});return o?o(v,L,B):_(B)}}};function tA(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const rse=(e,t)=>{const[n,r]=C.useState(tA);return Lo(()=>{const o=()=>{r(tA())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Lie(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},ose=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=rse(n.views,o),s=js();return{layoutProps:ke({},n,t,{isLandscape:a,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function ase(e){const{props:t,pickerValueResponse:n}=e;return C.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const rz=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:s,rendererInterceptor:l,fieldRef:u})=>{const f=ese({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),c=nse({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:u,propsFromPickerValue:f.viewProps,rendererInterceptor:l}),m=ose({props:e,wrapperVariant:r,propsFromPickerValue:f.layoutProps,propsFromPickerViews:c.layoutProps}),y=ase({props:e,pickerValueResponse:f});return{open:f.open,actions:f.actions,fieldProps:f.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:m.layoutProps,contextValue:f.contextValue,ownerState:y}};function oz(e){return tn("MuiPickersLayout",e)}const rd=Kt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function ise(e){return tn("MuiButton",e)}const od=Kt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),sse=C.createContext({}),lse=C.createContext(void 0),cse=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=e,f={root:["root",s&&"loading",a,`${a}${Et(t)}`,`size${Et(o)}`,`${a}Size${Et(o)}`,`color${Et(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Et(l)}`],startIcon:["icon","startIcon",`iconSize${Et(o)}`],endIcon:["icon","endIcon",`iconSize${Et(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=Zt(f,ise,u);return{...u,...c}},az=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],use=Fe(Nd,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Et(n.color)}`],t[`size${Et(n.size)}`],t[`${n.variant}Size${Et(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(qn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${od.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${od.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${od.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${od.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ba()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${od.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${od.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${od.loading}`]:{color:"transparent"}}}]}})),dse=Fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Et(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...az]})),fse=Fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Et(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...az]})),pse=Fe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),nA=Fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Jr=C.forwardRef(function(e,t){const n=C.useContext(sse),r=C.useContext(lse),o=Bg(n,e),a=Vn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:f,disabled:c=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:x=!1,id:w,loading:S=null,loadingIndicator:k,loadingPosition:T="center",size:O="medium",startIcon:P,type:$,variant:I="text",...F}=a,A=Ns(w),H=k??h.jsx(UL,{"aria-labelledby":A,color:"inherit",size:16}),L={...a,color:l,component:u,disabled:c,disableElevation:m,disableFocusRipple:y,fullWidth:x,loading:S,loadingIndicator:H,loadingPosition:T,size:O,type:$,variant:I},M=cse(L),_=(P||S&&T==="start")&&h.jsx(dse,{className:M.startIcon,ownerState:L,children:P||h.jsx(nA,{className:M.loadingIconPlaceholder,ownerState:L})}),B=(v||S&&T==="end")&&h.jsx(fse,{className:M.endIcon,ownerState:L,children:v||h.jsx(nA,{className:M.loadingIconPlaceholder,ownerState:L})}),W=r||"",j=typeof S=="boolean"?h.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:S&&h.jsx(pse,{className:M.loadingIndicator,ownerState:L,children:H})}):null;return h.jsxs(use,{ownerState:L,className:It(n.className,M.root,f,W),component:u,disabled:c||S,focusRipple:!y,focusVisibleClassName:It(M.focusVisible,b),ref:t,type:$,id:S?A:w,...F,classes:M,children:[_,T!=="end"&&j,s,T==="end"&&j,B]})});function hse(e){return tn("MuiDialogActions",e)}Kt("MuiDialogActions",["root","spacing"]);const mse=e=>{const{classes:t,disableSpacing:n}=e;return Zt({root:["root",!n&&"spacing"]},hse,t)},gse=Fe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Tl=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,s={...n,disableSpacing:o},l=mse(s);return h.jsx(gse,{className:It(l.root,r),ownerState:s,ref:t,...a})}),yse=["onAccept","onClear","onCancel","onSetToday","actions"];function vse(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,s=Fn(e,yse),l=pc();if(a==null||a.length===0)return null;const u=a?.map(f=>{switch(f){case"clear":return h.jsx(Jr,{onClick:n,children:l.clearButtonLabel},f);case"cancel":return h.jsx(Jr,{onClick:r,children:l.cancelButtonLabel},f);case"accept":return h.jsx(Jr,{onClick:t,children:l.okButtonLabel},f);case"today":return h.jsx(Jr,{onClick:o,children:l.todayButtonLabel},f);default:return null}});return h.jsx(Tl,ke({},s,{children:u}))}const oc=C.createContext({});function bse(e){return tn("MuiList",e)}Kt("MuiList",["root","padding","dense","subheader"]);const xse=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Zt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},bse,t)},Sse=Fe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),iz=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u,...f}=n,c=C.useMemo(()=>({dense:s}),[s]),m={...n,component:a,dense:s,disablePadding:l},y=xse(m);return h.jsx(oc.Provider,{value:c,children:h.jsxs(Sse,{as:a,className:It(y.root,o),ref:t,ownerState:m,...f,children:[u,r]})})});function wse(e){return tn("MuiListItem",e)}Kt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Cse=Kt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function kse(e){return tn("MuiListItemSecondaryAction",e)}Kt("MuiListItemSecondaryAction",["root","disableGutters"]);const Tse=e=>{const{disableGutters:t,classes:n}=e;return Zt({root:["root",t&&"disableGutters"]},kse,n)},Mse=Fe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),sz=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=C.useContext(oc),s={...n,disableGutters:a.disableGutters},l=Tse(s);return h.jsx(Mse,{className:It(l.root,r),ownerState:s,ref:t,...o})});sz.muiName="ListItemSecondaryAction";const Ese=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Rse=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return Zt({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},wse,n)},Ose=Fe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ese})(qn(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Cse.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Pse=Fe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),$se=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:s,components:l={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:c,...m}={},dense:y=!1,disableGutters:v=!1,disablePadding:b=!1,divider:x=!1,secondaryAction:w,slotProps:S={},slots:k={},...T}=n,O=C.useContext(oc),P=C.useMemo(()=>({dense:y||O.dense||!1,alignItems:r,disableGutters:v}),[r,O.dense,y,v]),$=C.useRef(null),I=C.Children.toArray(o),F=I.length&&Ab(I[I.length-1],["ListItemSecondaryAction"]),A={...n,alignItems:r,dense:P.dense,disableGutters:v,disablePadding:b,divider:x,hasSecondaryAction:F},H=Rse(A),L=pr($,t),M=k.root||l.Root||Ose,_=S.root||u.root||{},B={className:It(H.root,_.className,a),...T};let W=s||"li";return F?(W=!B.component&&!s?"div":W,f==="li"&&(W==="li"?W="div":B.component==="li"&&(B.component="div")),h.jsx(oc.Provider,{value:P,children:h.jsxs(Pse,{as:f,className:It(H.container,c),ref:L,ownerState:A,...m,children:[h.jsx(M,{..._,...!Ip(M)&&{as:W,ownerState:{...A,..._.ownerState}},...B,children:I}),I.pop()]})})):h.jsx(oc.Provider,{value:P,children:h.jsxs(M,{..._,as:W,ref:L,...!Ip(M)&&{ownerState:{...A,..._.ownerState}},...B,children:[I,w&&h.jsx(sz,{children:w})]})})}),Dse=tr(h.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Ase(e){return tn("MuiChip",e)}const lr=Kt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function cr(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:f,slots:c={[e]:void 0},slotProps:m={[e]:void 0},...y}=a,v=c[e]||r,b=Lp(m[e],o),{props:{component:x,...w},internalRef:S}=EL({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),k=pr(S,b?.ref,t.ref),T=e==="root"?x||f:x,O=ML(v,{...e==="root"&&!f&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...w,...T&&!l&&{as:T},...T&&l&&{component:T},ref:k},o);return[v,O]}const jse=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:u}=e,f={root:["root",u,n&&"disabled",`size${Et(r)}`,`color${Et(o)}`,l&&"clickable",l&&`clickableColor${Et(o)}`,s&&"deletable",s&&`deletableColor${Et(o)}`,`${u}${Et(o)}`],label:["label",`label${Et(r)}`],avatar:["avatar",`avatar${Et(r)}`,`avatarColor${Et(o)}`],icon:["icon",`icon${Et(r)}`,`iconColor${Et(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Et(r)}`,`deleteIconColor${Et(o)}`,`deleteIcon${Et(u)}Color${Et(o)}`]};return Zt(f,Ase,t)},Nse=Fe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:u}=n;return[{[`& .${lr.avatar}`]:t.avatar},{[`& .${lr.avatar}`]:t[`avatar${Et(l)}`]},{[`& .${lr.avatar}`]:t[`avatarColor${Et(r)}`]},{[`& .${lr.icon}`]:t.icon},{[`& .${lr.icon}`]:t[`icon${Et(l)}`]},{[`& .${lr.icon}`]:t[`iconColor${Et(o)}`]},{[`& .${lr.deleteIcon}`]:t.deleteIcon},{[`& .${lr.deleteIcon}`]:t[`deleteIcon${Et(l)}`]},{[`& .${lr.deleteIcon}`]:t[`deleteIconColor${Et(r)}`]},{[`& .${lr.deleteIcon}`]:t[`deleteIcon${Et(u)}Color${Et(r)}`]},t.root,t[`size${Et(l)}`],t[`color${Et(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Et(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Et(r)}`],t[u],t[`${u}${Et(r)}`]]}})(qn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${lr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${lr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${lr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${lr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${lr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${lr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${lr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${lr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${lr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(ba(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${lr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${lr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${lr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${lr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(ba(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${lr.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${lr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(ba(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${lr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${lr.avatar}`]:{marginLeft:4},[`& .${lr.avatarSmall}`]:{marginLeft:2},[`& .${lr.icon}`]:{marginLeft:4},[`& .${lr.iconSmall}`]:{marginLeft:2},[`& .${lr.deleteIcon}`]:{marginRight:5},[`& .${lr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(ba()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${lr.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${lr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${lr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Ise=Fe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Et(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function rA(e){return e.key==="Backspace"||e.key==="Delete"}const lz=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:f=!1,icon:c,label:m,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:x,size:w="medium",variant:S="filled",tabIndex:k,skipFocusWhenDisabled:T=!1,slots:O={},slotProps:P={},...$}=n,I=C.useRef(null),F=pr(I,t),A=re=>{re.stopPropagation(),v&&v(re)},H=re=>{re.currentTarget===re.target&&rA(re)&&re.preventDefault(),b&&b(re)},L=re=>{re.currentTarget===re.target&&v&&rA(re)&&v(re),x&&x(re)},M=a!==!1&&y?!0:a,_=M||v?Nd:l||"div",B={...n,component:_,disabled:f,size:w,color:s,iconColor:C.isValidElement(c)&&c.props.color||s,onDelete:!!v,clickable:M,variant:S},W=jse(B),j=_===Nd?{component:l||"div",focusVisibleClassName:W.focusVisible,...v&&{disableRipple:!0}}:{};let Q=null;v&&(Q=u&&C.isValidElement(u)?C.cloneElement(u,{className:It(u.props.className,W.deleteIcon),onClick:A}):h.jsx(Dse,{className:W.deleteIcon,onClick:A}));let K=null;r&&C.isValidElement(r)&&(K=C.cloneElement(r,{className:It(W.avatar,r.props.className)}));let te=null;c&&C.isValidElement(c)&&(te=C.cloneElement(c,{className:It(W.icon,c.props.className)}));const X={slots:O,slotProps:P},[J,ne]=cr("root",{elementType:Nse,externalForwardedProps:{...X,...$},ownerState:B,shouldForwardComponentProp:!0,ref:F,className:It(W.root,o),additionalProps:{disabled:M&&f?!0:void 0,tabIndex:T&&f?-1:k,...j},getSlotProps:re=>({...re,onClick:ie=>{re.onClick?.(ie),y?.(ie)},onKeyDown:ie=>{re.onKeyDown?.(ie),H(ie)},onKeyUp:ie=>{re.onKeyUp?.(ie),L(ie)}})}),[oe,se]=cr("label",{elementType:Ise,externalForwardedProps:X,ownerState:B,className:W.label});return h.jsxs(J,{as:_,...ne,children:[K||te,h.jsx(oe,{...se,children:m}),Q]})}),Hg=36,Ox=2,Px=320,Lse=280,n2=336,zse=["items","changeImportance","isLandscape","onChange","isValid"],Fse=["getValue"];function Bse(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Fn(e,zse);if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:u}=l,f=Fn(l,Fse);const c=u({isValid:o});return ke({},f,{label:f.label,onClick:()=>{r(c,n,f)},disabled:!o(c)})});return h.jsx(iz,ke({dense:!0,sx:[{maxHeight:n2,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(l=>h.jsx($se,{children:h.jsx(lz,ke({},l))},l.id??l.label))}))}function _se(e){return e.view!==null}const Use=e=>{const{classes:t,isLandscape:n}=e;return Zt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},oz,t)},Vse=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:s,views:l,onViewChange:u,value:f,onChange:c,onSelectShortcut:m,isValid:y,isLandscape:v,disabled:b,readOnly:x,children:w,slots:S,slotProps:k}=e,T=Use(e),O=S?.actionBar??vse,P=br({elementType:O,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:T.actionBar,ownerState:ke({},e,{wrapperVariant:t})}),$=h.jsx(O,ke({},P)),I=S?.toolbar,F=br({elementType:I,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:v,onChange:c,value:f,view:s,onViewChange:u,views:l,disabled:b,readOnly:x},className:T.toolbar,ownerState:ke({},e,{wrapperVariant:t})}),A=_se(F)&&I?h.jsx(I,ke({},F)):null,H=w,L=S?.tabs,M=s&&L?h.jsx(L,ke({view:s,onViewChange:u,className:T.tabs},k?.tabs)):null,_=S?.shortcuts??Bse,B=br({elementType:_,externalSlotProps:k?.shortcuts,additionalProps:{isValid:y,isLandscape:v,onChange:m},className:T.shortcuts,ownerState:{isValid:y,isLandscape:v,onChange:m,wrapperVariant:t}}),W=s&&_?h.jsx(_,ke({},B)):null;return{toolbar:A,content:H,tabs:M,actionBar:$,shortcuts:W}},Hse=e=>{const{isLandscape:t,classes:n}=e;return Zt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},oz,n)},Wse=Fe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${rd.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${rd.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${rd.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${rd.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${rd.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${rd.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${rd.shortcuts}`]:{gridColumn:3}}}]}),qse=Fe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),cz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:s,shortcuts:l}=Vse(n),{sx:u,className:f,isLandscape:c,wrapperVariant:m}=n,y=Hse(n);return h.jsxs(Wse,{ref:t,sx:u,className:It(y.root,f),ownerState:n,children:[c?l:r,c?r:l,h.jsx(qse,{className:y.contentWrapper,children:m==="desktop"?h.jsxs(C.Fragment,{children:[o,a]}):h.jsxs(C.Fragment,{children:[a,o]})}),s]})}),Yse=C.createContext(null);function uz(e){const{contextValue:t,localeText:n,children:r}=e;return h.jsx(Yse.Provider,{value:t,children:h.jsx(c0,{localeText:n,children:r})})}const Gse=["props","getOpenDialogAriaText"],Kse=["ownerState"],Qse=["ownerState"],Xse=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Fn(e,Gse);const{slots:o,slotProps:a,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,name:b,label:x,inputRef:w,readOnly:S,disabled:k,autoFocus:T,localeText:O,reduceAnimations:P}=t,$=C.useRef(null),I=C.useRef(null),F=Ns(),A=a?.toolbar?.hidden??!1,{open:H,actions:L,hasUIView:M,layoutProps:_,renderCurrentView:B,shouldRestoreFocus:W,fieldProps:j,contextValue:Q,ownerState:K}=rz(ke({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),te=o.inputAdornment??BL,X=br({elementType:te,externalSlotProps:a?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),J=Fn(X,Kse),ne=o.openPickerButton??cs,oe=br({elementType:ne,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:k||S,onClick:H?L.onClose:L.onOpen,"aria-label":n(j.value),edge:J.position},ownerState:t}),se=Fn(oe,Qse),re=o.openPickerIcon,ie=br({elementType:re,externalSlotProps:a?.openPickerIcon,ownerState:K}),ce=o.field,me=br({elementType:ce,externalSlotProps:a?.field,additionalProps:ke({},j,A&&{id:F},{readOnly:S,disabled:k,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,label:x,name:b,autoFocus:T&&!t.open,focused:H?!0:void 0},w?{inputRef:w}:{}),ownerState:t});M&&(me.InputProps=ke({},me.InputProps,{ref:$},!t.disableOpenPicker&&{[`${J.position}Adornment`]:h.jsx(te,ke({},J,{children:h.jsx(ne,ke({},se,{children:h.jsx(re,ke({},ie))}))}))}));const ye=ke({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},me.slots),we=o.layout??cz;let Ce=F;A&&(x?Ce=`${F}-label`:Ce=void 0);const $e=ke({},a,{toolbar:ke({},a?.toolbar,{titleId:F}),popper:ke({"aria-labelledby":Ce},a?.popper)}),fe=pr(I,me.unstableFieldRef);return{renderPicker:()=>h.jsxs(uz,{contextValue:Q,localeText:O,children:[h.jsx(ce,ke({},me,{slots:ye,slotProps:$e,unstableFieldRef:fe})),h.jsx(Kie,ke({role:"dialog",placement:"bottom-start",anchorEl:$.current},L,{open:H,slots:o,slotProps:$e,shouldRestoreFocus:W,reduceAnimations:P,children:h.jsx(we,ke({},_,$e?.layout,{slots:o,slotProps:$e,children:B()}))}))]})}},Zse=tr(h.jsx("path",{d:"M7 10l5 5 5-5z"})),Jse=tr(h.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),ele=tr(h.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),tle=tr(h.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}));tr(h.jsxs(C.Fragment,{children:[h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));tr(h.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}));tr(h.jsxs(C.Fragment,{children:[h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const nle=tr(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function ib(e){return parseInt(e,10)||0}const rle={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ole(e){for(const t in e)return!1;return!0}function oA(e){return ole(e)||e.outerHeightStyle===0&&!e.overflowing}const ale=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s,...l}=e,{current:u}=C.useRef(s!=null),f=C.useRef(null),c=pr(t,f),m=C.useRef(null),y=C.useRef(null),v=C.useCallback(()=>{const k=f.current,T=y.current;if(!k||!T)return;const O=uc(k).getComputedStyle(k);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};T.style.width=O.width,T.value=k.value||e.placeholder||"x",T.value.slice(-1)===`
429
- `&&(T.value+=" ");const P=O.boxSizing,$=ib(O.paddingBottom)+ib(O.paddingTop),I=ib(O.borderBottomWidth)+ib(O.borderTopWidth),F=T.scrollHeight;T.value="x";const A=T.scrollHeight;let H=F;o&&(H=Math.max(Number(o)*A,H)),r&&(H=Math.min(Number(r)*A,H)),H=Math.max(H,A);const L=H+(P==="border-box"?$+I:0),M=Math.abs(H-F)<=1;return{outerHeightStyle:L,overflowing:M}},[r,o,e.placeholder]),b=Ft(()=>{const k=f.current,T=v();if(!k||!T||oA(T))return!1;const O=T.outerHeightStyle;return m.current!=null&&m.current!==O}),x=C.useCallback(()=>{const k=f.current,T=v();if(!k||!T||oA(T))return;const O=T.outerHeightStyle;m.current!==O&&(m.current=O,k.style.height=`${O}px`),k.style.overflow=T.overflowing?"hidden":""},[v]),w=C.useRef(-1);Lo(()=>{const k=yL(x),T=f?.current;if(!T)return;const O=uc(T);O.addEventListener("resize",k);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{b()&&(P.unobserve(T),cancelAnimationFrame(w.current),x(),w.current=requestAnimationFrame(()=>{P.observe(T)}))}),P.observe(T)),()=>{k.clear(),cancelAnimationFrame(w.current),O.removeEventListener("resize",k),P&&P.disconnect()}},[v,x,b]),Lo(()=>{x()});const S=k=>{u||x();const T=k.target,O=T.value.length,P=T.value.endsWith(`
430
- `),$=T.selectionStart===O;P&&$&&T.setSelectionRange(O,O),n&&n(k)};return h.jsxs(C.Fragment,{children:[h.jsx("textarea",{value:s,onChange:S,ref:c,rows:o,style:a,...l}),h.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...rle.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Wd({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function aA(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function p0(e,t=!1){return e&&(aA(e.value)&&e.value!==""||t&&aA(e.defaultValue)&&e.defaultValue!=="")}function ile(e){return e.startAdornment}function sle(e){return tn("MuiInputBase",e)}const li=Kt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var iA;const $x=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Et(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dx=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},lle=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:f,multiline:c,readOnly:m,size:y,startAdornment:v,type:b}=e,x={root:["root",`color${Et(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${Et(y)}`,c&&"multiline",v&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return Zt(x,sle,t)},Ax=Fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$x})(qn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),jx=Fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dx})(qn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${li.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),sA=Wne({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),r2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:s,color:l,components:u={},componentsProps:f={},defaultValue:c,disabled:m,disableInjectingGlobalStyles:y,endAdornment:v,error:b,fullWidth:x=!1,id:w,inputComponent:S="input",inputProps:k={},inputRef:T,margin:O,maxRows:P,minRows:$,multiline:I=!1,name:F,onBlur:A,onChange:H,onClick:L,onFocus:M,onKeyDown:_,onKeyUp:B,placeholder:W,readOnly:j,renderSuffix:Q,rows:K,size:te,slotProps:X={},slots:J={},startAdornment:ne,type:oe="text",value:se,...re}=n,ie=k.value!=null?k.value:se,{current:ce}=C.useRef(ie!=null),me=C.useRef(),ye=C.useCallback(qe=>{},[]),we=pr(me,T,k.ref,ye),[Ce,$e]=C.useState(!1),fe=bi(),Te=Wd({props:n,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=fe?fe.focused:Ce,C.useEffect(()=>{!fe&&m&&Ce&&($e(!1),A&&A())},[fe,m,Ce,A]);const nt=fe&&fe.onFilled,ze=fe&&fe.onEmpty,Ae=C.useCallback(qe=>{p0(qe)?nt&&nt():ze&&ze()},[nt,ze]);Lo(()=>{ce&&Ae({value:ie})},[ie,Ae,ce]);const ue=qe=>{M&&M(qe),k.onFocus&&k.onFocus(qe),fe&&fe.onFocus?fe.onFocus(qe):$e(!0)},bt=qe=>{A&&A(qe),k.onBlur&&k.onBlur(qe),fe&&fe.onBlur?fe.onBlur(qe):$e(!1)},Be=(qe,...Me)=>{if(!ce){const Mt=qe.target||me.current;if(Mt==null)throw new Error(lc(1));Ae({value:Mt.value})}k.onChange&&k.onChange(qe,...Me),H&&H(qe,...Me)};C.useEffect(()=>{Ae(me.current)},[]);const it=qe=>{me.current&&qe.currentTarget===qe.target&&me.current.focus(),L&&L(qe)};let pt=S,_t=k;I&&pt==="input"&&(K?_t={type:void 0,minRows:K,maxRows:K,..._t}:_t={type:void 0,maxRows:P,minRows:$,..._t},pt=ale);const Ht=qe=>{Ae(qe.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};C.useEffect(()=>{fe&&fe.setAdornedStart(!!ne)},[fe,ne]);const at={...n,color:Te.color||"primary",disabled:Te.disabled,endAdornment:v,error:Te.error,focused:Te.focused,formControl:fe,fullWidth:x,hiddenLabel:Te.hiddenLabel,multiline:I,size:Te.size,startAdornment:ne,type:oe},Xe=lle(at),ot=J.root||u.Root||Ax,Ne=X.root||f.root||{},he=J.input||u.Input||jx;return _t={..._t,...X.input??f.input},h.jsxs(C.Fragment,{children:[!y&&typeof sA=="function"&&(iA||(iA=h.jsx(sA,{}))),h.jsxs(ot,{...Ne,ref:t,onClick:it,...re,...!Ip(ot)&&{ownerState:{...at,...Ne.ownerState}},className:It(Xe.root,Ne.className,s,j&&"MuiInputBase-readOnly"),children:[ne,h.jsx(Ex.Provider,{value:null,children:h.jsx(he,{"aria-invalid":Te.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:c,disabled:Te.disabled,id:w,onAnimationStart:Ht,name:F,placeholder:W,readOnly:j,required:Te.required,rows:K,value:ie,onKeyDown:_,onKeyUp:B,type:oe,..._t,...!Ip(he)&&{as:pt,ownerState:{...at,..._t.ownerState}},ref:we,className:It(Xe.input,_t.className,j&&"MuiInputBase-readOnly"),onBlur:bt,onChange:Be,onFocus:ue})}),v,Q?Q({...Te,startAdornment:ne}):null]})]})});function cle(e){return tn("MuiInput",e)}const eu={...li,...Kt("MuiInput",["root","underline","input"])},ule=e=>{const{classes:t,disableUnderline:n}=e,r=Zt({root:["root",!n&&"underline"],input:["input"]},cle,t);return{...t,...r}},dle=Fe(Ax,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...$x(e,t),!n.disableUnderline&&t.underline]}})(qn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${eu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${eu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${eu.disabled}, .${eu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${eu.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ba()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),fle=Fe(jx,{name:"MuiInput",slot:"Input",overridesResolver:Dx})({}),o2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:u=!1,slotProps:f,slots:c={},type:m="text",...y}=n,v=ule(n),b={root:{ownerState:{disableUnderline:r}}},x=f??a?la(f??a,b):b,w=c.root??o.Root??dle,S=c.input??o.Input??fle;return h.jsx(r2,{slots:{root:w,input:S},slotProps:x,fullWidth:s,inputComponent:l,multiline:u,ref:t,type:m,...y,classes:v})});o2.muiName="Input";function ple(e){return tn("MuiFilledInput",e)}const ci={...li,...Kt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},hle=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Et(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=Zt(u,ple,t);return{...t,...f}},mle=Fe(Ax,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...$x(e,t),!n.disableUnderline&&t.underline]}})(qn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ci.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ci.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ci.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ci.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ci.disabled}, .${ci.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ci.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ba()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),gle=Fe(jx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dx})(qn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),a2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:u="input",multiline:f=!1,slotProps:c,slots:m={},type:y="text",...v}=n,b={...n,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:f,type:y},x=hle(n),w={root:{ownerState:b},input:{ownerState:b}},S=c??a?la(w,c??a):w,k=m.root??o.Root??mle,T=m.input??o.Input??gle;return h.jsx(r2,{slots:{root:k,input:T},slotProps:S,fullWidth:s,inputComponent:u,multiline:f,ref:t,type:y,...v,classes:x})});a2.muiName="Input";var lA;const yle=Fe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Sa})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vle=Fe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Sa})(qn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function ble(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return h.jsx(yle,{"aria-hidden":!0,className:r,ownerState:u,...s,children:h.jsx(vle,{ownerState:u,children:l?h.jsx("span",{children:o}):lA||(lA=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function xle(e){return tn("MuiOutlinedInput",e)}const ji={...li,...Kt("MuiOutlinedInput",["root","notchedOutline","input"])},Sle=e=>{const{classes:t}=e,n=Zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xle,t);return{...t,...n}},wle=Fe(Ax,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$x})(qn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ji.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ji.focused} .${ji.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ba()).map(([n])=>({props:{color:n},style:{[`&.${ji.focused} .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ji.error} .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ji.disabled} .${ji.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Cle=Fe(ble,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(qn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),kle=Fe(jx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dx})(qn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),i2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:u,slots:f={},slotProps:c={},type:m="text",...y}=n,v=Sle(n),b=bi(),x=Wd({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:o,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:m},S=f.root??r.Root??wle,k=f.input??r.Input??kle,[T,O]=cr("notchedOutline",{elementType:Cle,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:f,slotProps:c},additionalProps:{label:s!=null&&s!==""&&x.required?h.jsxs(C.Fragment,{children:[s," ","*"]}):s}});return h.jsx(r2,{slots:{root:S,input:k},slotProps:c,renderSuffix:P=>h.jsx(T,{...O,notched:typeof u<"u"?u:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:m,...y,classes:{...v,notchedOutline:null}})});i2.muiName="Input";function Tle(e){return tn("MuiFormLabel",e)}const bg=Kt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mle=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,u={root:["root",`color${Et(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return Zt(u,Tle,t)},Ele=Fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(qn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t},style:{[`&.${bg.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${bg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bg.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Rle=Fe("span",{name:"MuiFormLabel",slot:"Asterisk"})(qn(({theme:e})=>({[`&.${bg.error}`]:{color:(e.vars||e).palette.error.main}}))),Ole=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:s="label",disabled:l,error:u,filled:f,focused:c,required:m,...y}=n,v=bi(),b=Wd({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:b.color||"primary",component:s,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},w=Mle(x);return h.jsxs(Ele,{as:s,ownerState:x,className:It(w.root,o),ref:t,...y,children:[r,b.required&&h.jsxs(Rle,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function Ple(e){return tn("MuiInputLabel",e)}Kt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $le=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Et(r)}`,s],asterisk:[l&&"asterisk"]},f=Zt(u,Ple,t);return{...t,...f}},Dle=Fe(Ole,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bg.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(qn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),dz=C.forwardRef(function(e,t){const n=Vn({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:s,className:l,...u}=n,f=bi();let c=a;typeof c>"u"&&f&&(c=f.filled||f.focused||f.adornedStart);const m=Wd({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:f,shrink:c,size:m.size,variant:m.variant,required:m.required,focused:m.focused},v=$le(y);return h.jsx(Dle,{"data-shrink":c,ref:t,className:It(v.root,l),...u,ownerState:y,classes:v})});function Ale(e){return tn("MuiFormControl",e)}Kt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jle=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Et(n)}`,r&&"fullWidth"]};return Zt(o,Ale,t)},Nle=Fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Et(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),fz=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:c=!1,hiddenLabel:m=!1,margin:y="none",required:v=!1,size:b="medium",variant:x="outlined",...w}=n,S={...n,color:a,component:s,disabled:l,error:u,fullWidth:c,hiddenLabel:m,margin:y,required:v,size:b,variant:x},k=jle(S),[T,O]=C.useState(()=>{let B=!1;return r&&C.Children.forEach(r,W=>{if(!Ab(W,["Input","Select"]))return;const j=Ab(W,["Select"])?W.props.input:W;j&&ile(j.props)&&(B=!0)}),B}),[P,$]=C.useState(()=>{let B=!1;return r&&C.Children.forEach(r,W=>{Ab(W,["Input","Select"])&&(p0(W.props,!0)||p0(W.props.inputProps,!0))&&(B=!0)}),B}),[I,F]=C.useState(!1);l&&I&&F(!1);const A=f!==void 0&&!l?f:I;let H;C.useRef(!1);const L=C.useCallback(()=>{$(!0)},[]),M=C.useCallback(()=>{$(!1)},[]),_=C.useMemo(()=>({adornedStart:T,setAdornedStart:O,color:a,disabled:l,error:u,filled:P,focused:A,fullWidth:c,hiddenLabel:m,size:b,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:M,onFilled:L,registerEffect:H,required:v,variant:x}),[T,a,l,u,P,A,c,m,H,M,L,v,b,x]);return h.jsx(Ex.Provider,{value:_,children:h.jsx(Nle,{as:s,ownerState:S,className:It(k.root,o),ref:t,...w,children:r})})});function Ile(e){return tn("MuiFormHelperText",e)}const cA=Kt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var uA;const Lle=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:u}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${Et(r)}`,n&&"contained",l&&"focused",s&&"filled",u&&"required"]};return Zt(f,Ile,t)},zle=Fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Et(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(qn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${cA.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cA.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),pz=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:s,error:l,filled:u,focused:f,margin:c,required:m,variant:y,...v}=n,b=bi(),x=Wd({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),w={...n,component:a,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete w.ownerState;const S=Lle(w);return h.jsx(zle,{as:a,className:It(S.root,o),ref:t,...v,ownerState:w,children:r===" "?uA||(uA=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function mw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dA(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hz(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Om(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!hz(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const Fle=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:c="selectedMenu",...m}=e,y=C.useRef(null),v=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lo(()=>{r&&y.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(k,{direction:T})=>{const O=!y.current.style.width;if(k.clientHeight<y.current.clientHeight&&O){const P=`${TL(uc(k))}px`;y.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=P,y.current.style.width=`calc(100% + ${P})`}return y.current}}),[]);const b=k=>{const T=y.current,O=k.key;if(k.ctrlKey||k.metaKey||k.altKey){f&&f(k);return}const P=Io(T).activeElement;if(O==="ArrowDown")k.preventDefault(),Om(T,P,u,l,mw);else if(O==="ArrowUp")k.preventDefault(),Om(T,P,u,l,dA);else if(O==="Home")k.preventDefault(),Om(T,null,u,l,mw);else if(O==="End")k.preventDefault(),Om(T,null,u,l,dA);else if(O.length===1){const $=v.current,I=O.toLowerCase(),F=performance.now();$.keys.length>0&&(F-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&I!==$.keys[0]&&($.repeating=!1)),$.lastTime=F,$.keys.push(I);const A=P&&!$.repeating&&hz(P,$);$.previousKeyMatched&&(A||Om(T,P,!1,l,mw,$))?k.preventDefault():$.previousKeyMatched=!1}f&&f(k)},x=pr(y,t);let w=-1;C.Children.forEach(a,(k,T)=>{if(!C.isValidElement(k)){w===T&&(w+=1,w>=a.length&&(w=-1));return}k.props.disabled||(c==="selectedMenu"&&k.props.selected||w===-1)&&(w=T),w===T&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const S=C.Children.map(a,(k,T)=>{if(T===w){const O={};return o&&(O.autoFocus=!0),k.props.tabIndex===void 0&&c==="selectedMenu"&&(O.tabIndex=0),C.cloneElement(k,O)}return k});return h.jsx(iz,{role:"menu",ref:x,className:s,onKeyDown:b,tabIndex:r?0:-1,...m,children:S})});function Ble(e){const t=Io(e);return t.body===e?uc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fA(e){return parseInt(uc(e).getComputedStyle(e).paddingRight,10)||0}function _le(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function pA(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),u=!_le(s);l&&u&&xg(s,o)})}function gw(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Ule(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ble(r)){const a=TL(uc(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${fA(r)+a}px`;const s=Io(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${fA(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Io(r).body;else{const a=r.parentElement,s=uc(r);o=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function Vle(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Hle{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&xg(t.modalRef,!1);const o=Vle(n);pA(n,t.mount,t.modalRef,o,!0);const a=gw(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=gw(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Ule(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=gw(this.containers,s=>s.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&xg(t.modalRef,n),pA(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&xg(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Wle(e){return tn("MuiBackdrop",e)}Kt("MuiBackdrop",["root","invisible"]);const qle=e=>{const{classes:t,invisible:n}=e;return Zt({root:["root",n&&"invisible"]},Wle,t)},Yle=Fe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),mz=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:s=!1,open:l,components:u={},componentsProps:f={},slotProps:c={},slots:m={},TransitionComponent:y,transitionDuration:v,...b}=n,x={...n,component:a,invisible:s},w=qle(x),S={transition:y,root:u.Root,...m},k={...f,...c},T={component:a,slots:S,slotProps:k},[O,P]=cr("root",{elementType:Yle,externalForwardedProps:T,className:It(w.root,o),ownerState:x}),[$,I]=cr("transition",{elementType:Id,externalForwardedProps:T,ownerState:x});return h.jsx($,{in:l,timeout:v,...b,...I,children:h.jsx(O,{"aria-hidden":!0,...P,classes:w,ref:t,children:r})})});function Gle(e){return typeof e=="function"?e():e}function Kle(e){return e?e.props.hasOwnProperty("in"):!1}const hA=()=>{},sb=new Hle;function Qle(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:f,rootRef:c}=e,m=C.useRef({}),y=C.useRef(null),v=C.useRef(null),b=pr(v,c),[x,w]=C.useState(!f),S=Kle(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const T=()=>Io(y.current),O=()=>(m.current.modalRef=v.current,m.current.mount=y.current,m.current),P=()=>{sb.mount(O(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},$=Ft(()=>{const M=Gle(t)||T().body;sb.add(O(),M),v.current&&P()}),I=()=>sb.isTopModal(O()),F=Ft(M=>{y.current=M,M&&(f&&I()?P():v.current&&xg(v.current,k))}),A=C.useCallback(()=>{sb.remove(O(),k)},[k]);C.useEffect(()=>()=>{A()},[A]),C.useEffect(()=>{f?$():(!S||!o)&&A()},[f,A,S,o,$]);const H=M=>_=>{M.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!I())&&(n||(_.stopPropagation(),u&&u(_,"escapeKeyDown")))},L=M=>_=>{M.onClick?.(_),_.target===_.currentTarget&&u&&u(_,"backdropClick")};return{getRootProps:(M={})=>{const _=oi(e);delete _.onTransitionEnter,delete _.onTransitionExited;const B={..._,...M};return{role:"presentation",...B,onKeyDown:H(B),ref:b}},getBackdropProps:(M={})=>{const _=M;return{"aria-hidden":!0,..._,onClick:L(_),open:f}},getTransitionProps:()=>{const M=()=>{w(!1),a&&a()},_=()=>{w(!0),s&&s(),o&&A()};return{onEnter:K$(M,l?.props.onEnter??hA),onExited:K$(_,l?.props.onExited??hA)}},rootRef:b,portalRef:F,isTopModal:I,exited:x,hasTransition:S}}function Xle(e){return tn("MuiModal",e)}Kt("MuiModal",["root","hidden","backdrop"]);const Zle=e=>{const{open:t,exited:n,classes:r}=e;return Zt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Xle,r)},Jle=Fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(qn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),ece=Fe(mz,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),gz=C.forwardRef(function(e,t){const n=Vn({name:"MuiModal",props:e}),{BackdropComponent:r=ece,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:u,container:f,component:c,components:m={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:k=!1,hideBackdrop:T=!1,keepMounted:O=!1,onClose:P,onTransitionEnter:$,onTransitionExited:I,open:F,slotProps:A={},slots:H={},theme:L,...M}=n,_={...n,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:S,disableScrollLock:k,hideBackdrop:T,keepMounted:O},{getRootProps:B,getBackdropProps:W,getTransitionProps:j,portalRef:Q,isTopModal:K,exited:te,hasTransition:X}=Qle({..._,rootRef:t}),J={..._,exited:te},ne=Zle(J),oe={};if(u.props.tabIndex===void 0&&(oe.tabIndex="-1"),X){const{onEnter:ye,onExited:we}=j();oe.onEnter=ye,oe.onExited=we}const se={slots:{root:m.Root,backdrop:m.Backdrop,...H},slotProps:{...y,...A}},[re,ie]=cr("root",{ref:t,elementType:Jle,externalForwardedProps:{...se,...M,component:c},getSlotProps:B,ownerState:J,className:It(s,ne?.root,!J.open&&J.exited&&ne?.hidden)}),[ce,me]=cr("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ye=>W({...ye,onClick:we=>{ye?.onClick&&ye.onClick(we)}}),className:It(o?.className,ne?.backdrop),ownerState:J});return!O&&!F&&(!X||te)?null:h.jsx(JL,{ref:Q,container:f,disablePortal:w,children:h.jsxs(re,{...ie,children:[!T&&r?h.jsx(ce,{...me}):null,h.jsx(ez,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:K,open:F,children:C.cloneElement(u,oe)})]})})});function tce(e){return tn("MuiPopover",e)}Kt("MuiPopover",["root","paper"]);function mA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function gA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function yA(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function lb(e){return typeof e=="function"?e():e}const nce=e=>{const{classes:t}=e;return Zt({root:["root"],paper:["paper"]},tce,t)},rce=Fe(gz,{name:"MuiPopover",slot:"Root"})({}),yz=Fe(Hd,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),oce=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:f,container:c,elevation:m=8,marginThreshold:y=16,open:v,PaperProps:b={},slots:x={},slotProps:w={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:k,transitionDuration:T="auto",TransitionProps:O={},disableScrollLock:P=!1,...$}=n,I=C.useRef(),F={...n,anchorOrigin:a,anchorReference:l,elevation:m,marginThreshold:y,transformOrigin:S,TransitionComponent:k,transitionDuration:T,TransitionProps:O},A=nce(F),H=C.useCallback(()=>{if(l==="anchorPosition")return s;const ye=lb(o),we=(ye&&ye.nodeType===1?ye:Io(I.current).body).getBoundingClientRect();return{top:we.top+mA(we,a.vertical),left:we.left+gA(we,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),L=C.useCallback(ye=>({vertical:mA(ye,S.vertical),horizontal:gA(ye,S.horizontal)}),[S.horizontal,S.vertical]),M=C.useCallback(ye=>{const we={width:ye.offsetWidth,height:ye.offsetHeight},Ce=L(we);if(l==="none")return{top:null,left:null,transformOrigin:yA(Ce)};const $e=H();let fe=$e.top-Ce.vertical,Te=$e.left-Ce.horizontal;const nt=fe+we.height,ze=Te+we.width,Ae=uc(lb(o)),ue=Ae.innerHeight-y,bt=Ae.innerWidth-y;if(y!==null&&fe<y){const Be=fe-y;fe-=Be,Ce.vertical+=Be}else if(y!==null&&nt>ue){const Be=nt-ue;fe-=Be,Ce.vertical+=Be}if(y!==null&&Te<y){const Be=Te-y;Te-=Be,Ce.horizontal+=Be}else if(ze>bt){const Be=ze-bt;Te-=Be,Ce.horizontal+=Be}return{top:`${Math.round(fe)}px`,left:`${Math.round(Te)}px`,transformOrigin:yA(Ce)}},[o,l,H,L,y]),[_,B]=C.useState(v),W=C.useCallback(()=>{const ye=I.current;if(!ye)return;const we=M(ye);we.top!==null&&ye.style.setProperty("top",we.top),we.left!==null&&(ye.style.left=we.left),ye.style.transformOrigin=we.transformOrigin,B(!0)},[M]);C.useEffect(()=>(P&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[o,P,W]);const j=()=>{W()},Q=()=>{B(!1)};C.useEffect(()=>{v&&W()}),C.useImperativeHandle(r,()=>v?{updatePosition:()=>{W()}}:null,[v,W]),C.useEffect(()=>{if(!v)return;const ye=yL(()=>{W()}),we=uc(lb(o));return we.addEventListener("resize",ye),()=>{ye.clear(),we.removeEventListener("resize",ye)}},[o,v,W]);let K=T;const te={slots:{transition:k,...x},slotProps:{transition:O,paper:b,...w}},[X,J]=cr("transition",{elementType:_g,externalForwardedProps:te,ownerState:F,getSlotProps:ye=>({...ye,onEntering:(we,Ce)=>{ye.onEntering?.(we,Ce),j()},onExited:we=>{ye.onExited?.(we),Q()}}),additionalProps:{appear:!0,in:v}});T==="auto"&&!X.muiSupportAuto&&(K=void 0);const ne=c||(o?Io(lb(o)).body:void 0),[oe,{slots:se,slotProps:re,...ie}]=cr("root",{ref:t,elementType:rce,externalForwardedProps:{...te,...$},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:vL(typeof w.backdrop=="function"?w.backdrop(F):w.backdrop,{invisible:!0})},container:ne,open:v},ownerState:F,className:It(A.root,f)}),[ce,me]=cr("paper",{ref:I,className:A.paper,elementType:yz,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:_?void 0:{opacity:0}},ownerState:F});return h.jsx(oe,{...ie,...!Ip(oe)&&{slots:se,slotProps:re,disableScrollLock:P},children:h.jsx(X,{...J,timeout:K,children:h.jsx(ce,{...me,children:u})})})});function ace(e){return tn("MuiMenu",e)}Kt("MuiMenu",["root","paper","list"]);const ice={vertical:"top",horizontal:"right"},sce={vertical:"top",horizontal:"left"},lce=e=>{const{classes:t}=e;return Zt({root:["root"],paper:["paper"],list:["list"]},ace,t)},cce=Fe(oce,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),uce=Fe(yz,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dce=Fe(Fle,{name:"MuiMenu",slot:"List"})({outline:0}),fce=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:u,open:f,PaperProps:c={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:v,...b}={},variant:x="selectedMenu",slots:w={},slotProps:S={},...k}=n,T=js(),O={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:l,onEntering:v,PaperProps:c,transitionDuration:y,TransitionProps:b,variant:x},P=lce(O),$=r&&!s&&f,I=C.useRef(null),F=(K,te)=>{I.current&&I.current.adjustStyleForScrollbar(K,{direction:T?"rtl":"ltr"}),v&&v(K,te)},A=K=>{K.key==="Tab"&&(K.preventDefault(),u&&u(K,"tabKeyDown"))};let H=-1;C.Children.map(o,(K,te)=>{C.isValidElement(K)&&(K.props.disabled||(x==="selectedMenu"&&K.props.selected||H===-1)&&(H=te))});const L={slots:w,slotProps:{list:l,transition:b,paper:c,...S}},M=br({elementType:w.root,externalSlotProps:S.root,ownerState:O,className:[P.root,a]}),[_,B]=cr("paper",{className:P.paper,elementType:uce,externalForwardedProps:L,shouldForwardComponentProp:!0,ownerState:O}),[W,j]=cr("list",{className:It(P.list,l.className),elementType:dce,shouldForwardComponentProp:!0,externalForwardedProps:L,getSlotProps:K=>({...K,onKeyDown:te=>{A(te),K.onKeyDown?.(te)}}),ownerState:O}),Q=typeof L.slotProps.transition=="function"?L.slotProps.transition(O):L.slotProps.transition;return h.jsx(cce,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?ice:sce,slots:{root:w.root,paper:_,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:M,paper:B,backdrop:typeof S.backdrop=="function"?S.backdrop(O):S.backdrop,transition:{...Q,onEntering:(...K)=>{F(...K),Q?.onEntering?.(...K)}}},open:f,ref:t,transitionDuration:y,ownerState:O,...k,classes:m,children:h.jsx(W,{actions:I,autoFocus:r&&(H===-1||s),autoFocusItem:$,variant:x,...j,children:o})})});function pce(e){return tn("MuiNativeSelect",e)}const s2=Kt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hce=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Et(n)}`,a&&"iconOpen",r&&"disabled"]};return Zt(l,pce,t)},vz=Fe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${s2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),mce=Fe(vz,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${s2.multiple}`]:t.multiple}]}})({}),bz=Fe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${s2.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),gce=Fe(bz,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Et(n.variant)}`],n.open&&t.iconOpen]}})({}),yce=C.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard",...u}=e,f={...e,disabled:r,variant:l,error:o},c=hce(f);return h.jsxs(C.Fragment,{children:[h.jsx(mce,{ownerState:f,className:It(c.select,n),disabled:r,ref:s||t,...u}),e.multiple?null:h.jsx(gce,{as:a,ownerState:f,className:c.icon})]})});function xz(e){return tn("MuiSelect",e)}const Pm=Kt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vA;const vce=Fe(vz,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Pm.select}`]:t.select},{[`&.${Pm.select}`]:t[n.variant]},{[`&.${Pm.error}`]:t.error},{[`&.${Pm.multiple}`]:t.multiple}]}})({[`&.${Pm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bce=Fe(bz,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Et(n.variant)}`],n.open&&t.iconOpen]}})({}),xce=Fe("input",{shouldForwardProp:e=>gL(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function bA(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Sce(e){return e==null||typeof e=="string"&&!e.trim()}const wce=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Et(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Zt(l,xz,t)},Cce=C.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:f,disabled:c,displayEmpty:m,error:y=!1,IconComponent:v,inputRef:b,labelId:x,MenuProps:w={},multiple:S,name:k,onBlur:T,onChange:O,onClose:P,onFocus:$,onOpen:I,open:F,readOnly:A,renderValue:H,required:L,SelectDisplayProps:M={},tabIndex:_,type:B,value:W,variant:j="standard",...Q}=e,[K,te]=mi({controlled:W,default:f,name:"Select"}),[X,J]=mi({controlled:F,default:u,name:"Select"}),ne=C.useRef(null),oe=C.useRef(null),[se,re]=C.useState(null),{current:ie}=C.useRef(F!=null),[ce,me]=C.useState(),ye=pr(t,b),we=C.useCallback(gt=>{oe.current=gt,gt&&re(gt)},[]),Ce=se?.parentNode;C.useImperativeHandle(ye,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:K}),[K]),C.useEffect(()=>{u&&X&&se&&!ie&&(me(a?null:Ce.clientWidth),oe.current.focus())},[se,a]),C.useEffect(()=>{o&&oe.current.focus()},[o]),C.useEffect(()=>{if(!x)return;const gt=Io(oe.current).getElementById(x);if(gt){const ct=()=>{getSelection().isCollapsed&&oe.current.focus()};return gt.addEventListener("click",ct),()=>{gt.removeEventListener("click",ct)}}},[x]);const $e=(gt,ct)=>{gt?I&&I(ct):P&&P(ct),ie||(me(a?null:Ce.clientWidth),J(gt))},fe=gt=>{gt.button===0&&(gt.preventDefault(),oe.current.focus(),$e(!0,gt))},Te=gt=>{$e(!1,gt)},nt=C.Children.toArray(s),ze=gt=>{const ct=nt.find(At=>At.props.value===gt.target.value);ct!==void 0&&(te(ct.props.value),O&&O(gt,ct))},Ae=gt=>ct=>{let At;if(ct.currentTarget.hasAttribute("tabindex")){if(S){At=Array.isArray(K)?K.slice():[];const Wt=K.indexOf(gt.props.value);Wt===-1?At.push(gt.props.value):At.splice(Wt,1)}else At=gt.props.value;if(gt.props.onClick&&gt.props.onClick(ct),K!==At&&(te(At),O)){const Wt=ct.nativeEvent||ct,dn=new Wt.constructor(Wt.type,Wt);Object.defineProperty(dn,"target",{writable:!0,value:{value:At,name:k}}),O(dn,gt)}S||$e(!1,ct)}},ue=gt=>{A||[" ","ArrowUp","ArrowDown","Enter"].includes(gt.key)&&(gt.preventDefault(),$e(!0,gt))},bt=se!==null&&X,Be=gt=>{!bt&&T&&(Object.defineProperty(gt,"target",{writable:!0,value:{value:K,name:k}}),T(gt))};delete Q["aria-invalid"];let it,pt;const _t=[];let Ht=!1;(p0({value:K})||m)&&(H?it=H(K):Ht=!0);const at=nt.map(gt=>{if(!C.isValidElement(gt))return null;let ct;if(S){if(!Array.isArray(K))throw new Error(lc(2));ct=K.some(At=>bA(At,gt.props.value)),ct&&Ht&&_t.push(gt.props.children)}else ct=bA(K,gt.props.value),ct&&Ht&&(pt=gt.props.children);return C.cloneElement(gt,{"aria-selected":ct?"true":"false",onClick:Ae(gt),onKeyUp:At=>{At.key===" "&&At.preventDefault(),gt.props.onKeyUp&&gt.props.onKeyUp(At)},role:"option",selected:ct,value:void 0,"data-value":gt.props.value})});Ht&&(S?_t.length===0?it=null:it=_t.reduce((gt,ct,At)=>(gt.push(ct),At<_t.length-1&&gt.push(", "),gt),[]):it=pt);let Xe=ce;!a&&ie&&se&&(Xe=Ce.clientWidth);let ot;typeof _<"u"?ot=_:ot=c?null:0;const Ne=M.id||(k?`mui-component-select-${k}`:void 0),he={...e,variant:j,value:K,open:bt,error:y},qe=wce(he),Me={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(he):w.slotProps?.paper},Mt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(he):w.slotProps?.list},Rt=Ns();return h.jsxs(C.Fragment,{children:[h.jsx(vce,{as:"div",ref:we,tabIndex:ot,role:"combobox","aria-controls":bt?Rt:void 0,"aria-disabled":c?"true":void 0,"aria-expanded":bt?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,Ne].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":L?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ue,onMouseDown:c||A?null:fe,onBlur:Be,onFocus:$,...M,ownerState:he,className:It(M.className,qe.select,l),id:Ne,children:Sce(it)?vA||(vA=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):it}),h.jsx(xce,{"aria-invalid":y,value:Array.isArray(K)?K.join(","):K,name:k,ref:ne,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:c,className:qe.nativeInput,autoFocus:o,required:L,...Q,ownerState:he}),h.jsx(bce,{as:v,className:qe.icon,ownerState:he}),h.jsx(fce,{id:`menu-${k||""}`,anchorEl:Ce,open:bt,onClose:Te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Rt,...Mt},paper:{...Me,style:{minWidth:Xe,...Me!=null?Me.style:null}}},children:at})]})}),Sz=tr(h.jsx("path",{d:"M7 10l5 5 5-5z"})),kce=e=>{const{classes:t}=e,n=Zt({root:["root"]},xz,t);return{...t,...n}},l2={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Sa(e)&&e!=="variant"},Tce=Fe(o2,l2)(""),Mce=Fe(i2,l2)(""),Ece=Fe(a2,l2)(""),wz=C.forwardRef(function(e,t){const n=Vn({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=Sz,id:c,input:m,inputProps:y,label:v,labelId:b,MenuProps:x,multiple:w=!1,native:S=!1,onClose:k,onOpen:T,open:O,renderValue:P,SelectDisplayProps:$,variant:I="outlined",...F}=n,A=S?yce:Cce,H=bi(),L=Wd({props:n,muiFormControl:H,states:["variant","error"]}),M=L.variant||I,_={...n,variant:M,classes:a},B=kce(_),{root:W,...j}=B,Q=m||{standard:h.jsx(Tce,{ownerState:_}),outlined:h.jsx(Mce,{label:v,ownerState:_}),filled:h.jsx(Ece,{ownerState:_})}[M],K=pr(t,rh(Q));return h.jsx(C.Fragment,{children:C.cloneElement(Q,{inputComponent:A,inputProps:{children:o,error:L.error,IconComponent:f,variant:M,type:void 0,multiple:w,...S?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:x,onClose:k,onOpen:T,open:O,renderValue:P,SelectDisplayProps:{id:c,...$}},...y,classes:y?la(j,y.classes):j,...m?m.props.inputProps:{}},...(w&&S||u)&&M==="outlined"?{notched:!0}:{},ref:K,className:It(Q.props.className,s,B.root),...!m&&{variant:M},...F})})});wz.muiName="Select";function Rce(e){return tn("MuiTextField",e)}Kt("MuiTextField",["root"]);const Oce={standard:o2,filled:a2,outlined:i2},Pce=e=>{const{classes:t}=e;return Zt({root:["root"]},Rce,t)},$ce=Fe(fz,{name:"MuiTextField",slot:"Root"})({}),vr=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:f=!1,error:c=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:x,inputProps:w,InputProps:S,inputRef:k,label:T,maxRows:O,minRows:P,multiline:$=!1,name:I,onBlur:F,onChange:A,onFocus:H,placeholder:L,required:M=!1,rows:_,select:B=!1,SelectProps:W,slots:j={},slotProps:Q={},type:K,value:te,variant:X="outlined",...J}=n,ne={...n,autoFocus:o,color:l,disabled:f,error:c,fullWidth:y,multiline:$,required:M,select:B,variant:X},oe=Pce(ne),se=Ns(b),re=v&&se?`${se}-helper-text`:void 0,ie=T&&se?`${se}-label`:void 0,ce=Oce[X],me={slots:j,slotProps:{input:S,inputLabel:x,htmlInput:w,formHelperText:m,select:W,...Q}},ye={},we=me.slotProps.inputLabel;X==="outlined"&&(we&&typeof we.shrink<"u"&&(ye.notched=we.shrink),ye.label=T),B&&((!W||!W.native)&&(ye.id=void 0),ye["aria-describedby"]=void 0);const[Ce,$e]=cr("root",{elementType:$ce,shouldForwardComponentProp:!0,externalForwardedProps:{...me,...J},ownerState:ne,className:It(oe.root,s),ref:t,additionalProps:{disabled:f,error:c,fullWidth:y,required:M,color:l,variant:X}}),[fe,Te]=cr("input",{elementType:ce,externalForwardedProps:me,additionalProps:ye,ownerState:ne}),[nt,ze]=cr("inputLabel",{elementType:dz,externalForwardedProps:me,ownerState:ne}),[Ae,ue]=cr("htmlInput",{elementType:"input",externalForwardedProps:me,ownerState:ne}),[bt,Be]=cr("formHelperText",{elementType:pz,externalForwardedProps:me,ownerState:ne}),[it,pt]=cr("select",{elementType:wz,externalForwardedProps:me,ownerState:ne}),_t=h.jsx(fe,{"aria-describedby":re,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:y,multiline:$,name:I,rows:_,maxRows:O,minRows:P,type:K,value:te,id:se,inputRef:k,onBlur:F,onChange:A,onFocus:H,placeholder:L,inputProps:ue,slots:{input:j.htmlInput?Ae:void 0},...Te});return h.jsxs(Ce,{...$e,children:[T!=null&&T!==""&&h.jsx(nt,{htmlFor:se,id:ie,...ze,children:T}),B?h.jsx(it,{"aria-describedby":re,id:se,labelId:ie,value:te,input:_t,...pt,children:a}):_t,v&&h.jsx(bt,{id:re,...Be,children:v})]})}),Dce=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},Ace=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},jce=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},Nce=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:a,token:s,startSeparator:l})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const u=OL(e,s),f=AL(e,u.contentType,u.type,s),c=n?f:u.contentType==="digit",m=t!=null&&e.isValid(t);let y=m?e.formatByString(t,s):"",v=null;if(c)if(f)v=y===""?e.formatByString(a,s).length:y.length;else{if(u.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);v=u.maxLength,m&&(y=_T($L(jd(y,o),v),o))}return ke({},u,{format:s,maxLength:v,value:y,placeholder:jce(e,r,u,s),hasLeadingZerosInFormat:f,hasLeadingZerosInInput:c,startSeparator:l,endSeparator:"",modified:!1})},Ice=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),a=[];let s="";const l=Object.keys(t.formatTokenMap).sort((v,b)=>b.length-v.length),u=/^([a-zA-Z]+)/,f=new RegExp(`^(${l.join("|")})*$`),c=new RegExp(`^(${l.join("|")})`),m=v=>r.find(b=>b.start<=v&&b.end>=v);let y=0;for(;y<n.length;){const v=m(y),b=v!=null,x=u.exec(n.slice(y))?.[1];if(!b&&x!=null&&f.test(x)){let w=x;for(;w.length>0;){const S=c.exec(w)[1];w=w.slice(S.length),a.push(Nce(ke({},e,{now:o,token:S,startSeparator:s}))),s=""}y+=x.length}else{const w=n[y];b&&v?.start===y||v?.end===y||(a.length===0?s+=w:a[a.length-1].endSeparator+=w),y+=1}}return a.length===0&&s.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),a},Lce=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=a=>{let s=a;return e&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),t==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),xA=e=>{let t=Dce(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Ace(ke({},e,{expandedFormat:t})),r=Ice(ke({},e,{expandedFormat:t,escapedParts:n}));return Lce(ke({},e,{sections:r}))},zce=e=>{const t=Yr(),n=pc(),r=Vd(),o=js(),{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:f,internalProps:{value:c,defaultValue:m,referenceDate:y,onChange:v,format:b,formatDensity:x="dense",selectedSections:w,onSelectedSectionsChange:S,shouldRespectLeadingZeros:k=!1,timezone:T,enableAccessibleFieldDOMStructure:O=!1}}=e,{timezone:P,value:$,handleValueChange:I}=e2({timezone:T,value:c,defaultValue:m,referenceDate:y,onChange:v,valueManager:a}),F=C.useMemo(()=>Bre(t),[t]),A=C.useMemo(()=>qre(t,F,P),[t,F,P]),H=C.useCallback((re,ie=null)=>s.getSectionsFromValue(t,re,ie,ce=>xA({utils:t,localeText:n,localizedDigits:F,format:b,date:ce,formatDensity:x,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:O,isRtl:o})),[s,b,n,F,o,k,t,x,O]),[L,M]=C.useState(()=>{const re=H($),ie={sections:re,value:$,referenceValue:a.emptyValue,tempValueStrAndroid:null},ce=Ire(re),me=a.getInitialReferenceValue({referenceDate:y,value:$,utils:t,props:f,granularity:ce,timezone:P});return ke({},ie,{referenceValue:me})}),[_,B]=mi({controlled:w,default:null,name:"useField",state:"selectedSections"}),W=re=>{B(re),S?.(re)},j=C.useMemo(()=>BC(_,L.sections),[_,L.sections]),Q=j==="all"?0:j,K=({value:re,referenceValue:ie,sections:ce})=>{if(M(ye=>ke({},ye,{sections:ce,value:re,referenceValue:ie,tempValueStrAndroid:null})),a.areValuesEqual(t,L.value,re))return;const me={validationError:u({adapter:r,value:re,timezone:P,props:f})};I(re,me)},te=(re,ie)=>{const ce=[...L.sections];return ce[re]=ke({},ce[re],{value:ie,modified:!0}),ce},X=()=>{K({value:a.emptyValue,referenceValue:L.referenceValue,sections:H(a.emptyValue)})},J=()=>{if(Q==null)return;const re=L.sections[Q],ie=s.getActiveDateManager(t,L,re),ce=ie.getSections(L.sections).filter(Ce=>Ce.value!=="").length===(re.value===""?0:1),me=te(Q,""),ye=ce?null:t.getInvalidDate(),we=ie.getNewValuesFromNewActiveDate(ye);K(ke({},we,{sections:me}))},ne=re=>{const ie=(ye,we)=>{const Ce=t.parse(ye,b);if(Ce==null||!t.isValid(Ce))return null;const $e=xA({utils:t,localeText:n,localizedDigits:F,format:b,date:Ce,formatDensity:x,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:O,isRtl:o});return ID(t,Ce,$e,we,!1)},ce=s.parseValueStr(re,L.referenceValue,ie),me=s.updateReferenceValue(t,ce,L.referenceValue);K({value:ce,referenceValue:me,sections:H(ce,L.sections)})},oe=({activeSection:re,newSectionValue:ie,shouldGoToNextSection:ce})=>{ce&&Q<L.sections.length-1&&W(Q+1);const me=s.getActiveDateManager(t,L,re),ye=te(Q,ie),we=me.getSections(ye),Ce=Vre(t,we,F);let $e,fe;if(Ce!=null&&t.isValid(Ce)){const Te=ID(t,Ce,we,me.referenceDate,!0);$e=me.getNewValuesFromNewActiveDate(Te),fe=!0}else $e=me.getNewValuesFromNewActiveDate(Ce),fe=(Ce!=null&&!t.isValid(Ce))!=(me.date!=null&&!t.isValid(me.date));return fe?K(ke({},$e,{sections:ye})):M(Te=>ke({},Te,$e,{sections:ye,tempValueStrAndroid:null}))},se=re=>M(ie=>ke({},ie,{tempValueStrAndroid:re}));return C.useEffect(()=>{const re=H(L.value);M(ie=>ke({},ie,{sections:re}))},[b,t.locale,o]),C.useEffect(()=>{let re;a.areValuesEqual(t,L.value,$)?re=a.getTimezone(t,L.value)!==a.getTimezone(t,$):re=!0,re&&M(ie=>ke({},ie,{value:$,referenceValue:s.updateReferenceValue(t,$,ie.referenceValue),sections:H($)}))},[$]),{state:L,activeSectionIndex:Q,parsedSelectedSections:j,setSelectedSections:W,clearValue:X,clearActiveSection:J,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:H,sectionsValueBoundaries:A,localizedDigits:F,timezone:P}},Fce=5e3,Zf=e=>e.saveQuery!=null,Bce=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:a})=>{const s=Yr(),[l,u]=C.useState(null),f=Ft(()=>u(null));C.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&f()},[e,l,f]),C.useEffect(()=>{if(l!=null){const v=setTimeout(()=>f(),Fce);return()=>{clearTimeout(v)}}return()=>{}},[l,f]);const c=({keyPressed:v,sectionIndex:b},x,w)=>{const S=v.toLowerCase(),k=e[b];if(l!=null&&(!w||w(l.value))&&l.sectionIndex===b){const O=`${l.value}${S}`,P=x(O,k);if(!Zf(P))return u({sectionIndex:b,value:O,sectionType:k.type}),P}const T=x(S,k);return Zf(T)&&!T.saveQuery?(f(),null):(u({sectionIndex:b,value:S,sectionType:k.type}),Zf(T)?null:T)},m=v=>{const b=(w,S,k)=>{const T=S.filter(O=>O.toLowerCase().startsWith(k));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},x=(w,S,k,T)=>{const O=P=>PL(s,a,S.type,P);if(S.contentType==="letter")return b(S.format,O(S.format),w);if(k&&T!=null&&OL(s,k).contentType==="letter"){const P=O(k),$=b(k,P,w);return Zf($)?{saveQuery:!1}:ke({},$,{sectionValue:T($.sectionValue,P)})}return{saveQuery:!1}};return c(v,(w,S)=>{switch(S.type){case"month":{const k=T=>jD(s,T,s.formats.month,S.format);return x(w,S,s.formats.month,k)}case"weekDay":{const k=(T,O)=>O.indexOf(T).toString();return x(w,S,s.formats.weekday,k)}case"meridiem":return x(w,S);default:return{saveQuery:!1}}})},y=v=>{const b=(x,w)=>{const S=jd(x,r),k=Number(S),T=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(k>T.maximum)return{saveQuery:!1};if(k<T.minimum)return{saveQuery:!0};const O=k*10>T.maximum||S.length===T.maximum.toString().length;return{sectionValue:DL(s,k,T,r,w),shouldGoToNextSection:O}};return c(v,(x,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return b(x,w);if(w.type==="month"){AL(s,"digit","month","MM");const S=b(x,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Zf(S))return S;const k=jD(s,S.sectionValue,"MM",w.format);return ke({},S,{sectionValue:k})}if(w.type==="weekDay"){const S=b(x,w);if(Zf(S))return S;const k=Tx(s,w.format)[Number(S.sectionValue)-1];return ke({},S,{sectionValue:k})}return{saveQuery:!1}},x=>AD(x,r))};return{applyCharacterEditing:Ft(v=>{const b=e[v.sectionIndex],x=AD(v.keyPressed,r)?y(ke({},v,{keyPressed:_T(v.keyPressed,r)})):m(v);if(x==null){o(null);return}t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:f}},_ce=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:a,onFocus:s,onInput:l,onPaste:u,focused:f,autoFocus:c=!1},fieldValueManager:m,applyCharacterEditing:y,resetCharacterQuery:v,setSelectedSections:b,parsedSelectedSections:x,state:w,clearActiveSection:S,clearValue:k,updateSectionValue:T,updateValueFromValueStr:O,sectionOrder:P,areAllSectionsEmpty:$,sectionsValueBoundaries:I}=e,F=C.useRef(null),A=pr(r,F),H=pc(),L=Yr(),M=Ns(),[_,B]=C.useState(!1),W=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const fe=document.getSelection();if(!fe)return;if(x==null){fe.rangeCount>0&&F.current.getRoot().contains(fe.getRangeAt(0).startContainer)&&fe.removeAllRanges(),_&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains($a(document)))return;const Te=new window.Range;let nt;x==="all"?nt=F.current.getRoot():w.sections[x].type==="empty"?nt=F.current.getSectionContainer(x):nt=F.current.getSectionContent(x),Te.selectNodeContents(nt),nt.focus(),fe.removeAllRanges(),fe.addRange(Te)},getActiveSectionIndexFromDOM:()=>{const fe=$a(document);return!fe||!F.current||!F.current.getRoot().contains(fe)?null:F.current.getSectionIndexFromDOMElement(fe)},focusField:(fe=0)=>{if(!F.current||W.getActiveSectionIndexFromDOM()!=null)return;const Te=BC(fe,w.sections);B(!0),F.current.getSectionContent(Te).focus()},setSelectedSections:fe=>{if(!F.current)return;const Te=BC(fe,w.sections);B((Te==="all"?0:Te)!==null),b(fe)},isFieldFocused:()=>{const fe=$a(document);return!!F.current&&F.current.getRoot().contains(fe)}}),[x,b,w.sections,_]),j=Ft(fe=>{if(!F.current)return;const Te=w.sections[fe];F.current.getSectionContent(fe).innerHTML=Te.value||Te.placeholder,W.syncSelectionToDOM()}),Q=Ft((fe,...Te)=>{fe.isDefaultPrevented()||!F.current||(B(!0),a?.(fe,...Te),x==="all"?setTimeout(()=>{const nt=document.getSelection().getRangeAt(0).startOffset;if(nt===0){b(P.startIndex);return}let ze=0,Ae=0;for(;Ae<nt&&ze<w.sections.length;){const ue=w.sections[ze];ze+=1,Ae+=`${ue.startSeparator}${ue.value||ue.placeholder}${ue.endSeparator}`.length}b(ze-1)}):_?F.current.getRoot().contains(fe.target)||b(P.startIndex):(B(!0),b(P.startIndex)))}),K=Ft(fe=>{if(l?.(fe),!F.current||x!=="all")return;const Te=fe.target.textContent??"";F.current.getRoot().innerHTML=w.sections.map(nt=>`${nt.startSeparator}${nt.value||nt.placeholder}${nt.endSeparator}`).join(""),W.syncSelectionToDOM(),Te.length===0||Te.charCodeAt(0)===10?(v(),k(),b("all")):Te.length>1?O(Te):(x==="all"&&b(0),y({keyPressed:Te,sectionIndex:0}))}),te=Ft(fe=>{if(u?.(fe),n||x!=="all"){fe.preventDefault();return}const Te=fe.clipboardData.getData("text");fe.preventDefault(),v(),O(Te)}),X=Ft((...fe)=>{s?.(...fe),!(_||!F.current)&&(B(!0),F.current.getSectionIndexFromDOMElement($a(document))!=null||b(P.startIndex))}),J=Ft((...fe)=>{o?.(...fe),setTimeout(()=>{if(!F.current)return;const Te=$a(document);!F.current.getRoot().contains(Te)&&(B(!1),b(null))})}),ne=Ft(fe=>Te=>{Te.isDefaultPrevented()||b(fe)}),oe=Ft(fe=>{fe.preventDefault()}),se=Ft(fe=>()=>{b(fe)}),re=Ft(fe=>{if(fe.preventDefault(),n||t||typeof x!="number")return;const Te=w.sections[x],nt=fe.clipboardData.getData("text"),ze=/^[a-zA-Z]+$/.test(nt),Ae=/^[0-9]+$/.test(nt),ue=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(nt);Te.contentType==="letter"&&ze||Te.contentType==="digit"&&Ae||Te.contentType==="digit-with-letter"&&ue?(v(),T({activeSection:Te,newSectionValue:nt,shouldGoToNextSection:!0})):!ze&&!Ae&&(v(),O(nt))}),ie=Ft(fe=>{fe.preventDefault(),fe.dataTransfer.dropEffect="none"}),ce=Ft(fe=>{if(!F.current)return;const Te=fe.target,nt=Te.textContent??"",ze=F.current.getSectionIndexFromDOMElement(Te),Ae=w.sections[ze];if(n||!F.current){j(ze);return}if(nt.length===0){if(Ae.value===""){j(ze);return}const ue=fe.nativeEvent.inputType;if(ue==="insertParagraph"||ue==="insertLineBreak"){j(ze);return}v(),S();return}y({keyPressed:nt,sectionIndex:ze}),j(ze)});Lo(()=>{if(!(!_||!F.current)){if(x==="all")F.current.getRoot().focus();else if(typeof x=="number"){const fe=F.current.getSectionContent(x);fe&&fe.focus()}}},[x,_]);const me=C.useMemo(()=>w.sections.reduce((fe,Te)=>(fe[Te.type]=I[Te.type]({currentDate:null,contentType:Te.contentType,format:Te.format}),fe),{}),[I,w.sections]),ye=x==="all",we=C.useMemo(()=>w.sections.map((fe,Te)=>{const nt=!ye&&!t&&!n;return{container:{"data-sectionindex":Te,onClick:ne(Te)},content:{tabIndex:ye||Te>0?-1:0,contentEditable:!ye&&!t&&!n,role:"spinbutton",id:`${M}-${fe.type}`,"aria-labelledby":`${M}-${fe.type}`,"aria-readonly":n,"aria-valuenow":Xre(fe,L),"aria-valuemin":me[fe.type].minimum,"aria-valuemax":me[fe.type].maximum,"aria-valuetext":fe.value?Qre(fe,L):H.empty,"aria-label":H[fe.type],"aria-disabled":t,spellCheck:nt?!1:void 0,autoCapitalize:nt?"off":void 0,autoCorrect:nt?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:nt?"next":void 0,children:fe.value||fe.placeholder,onInput:ce,onPaste:re,onFocus:se(Te),onDragOver:ie,onMouseUp:oe,inputMode:fe.contentType==="letter"?"text":"numeric"},before:{children:fe.startSeparator},after:{children:fe.endSeparator}}}),[w.sections,se,re,ie,ce,ne,oe,t,n,ye,H,L,me,M]),Ce=Ft(fe=>{O(fe.target.value)}),$e=C.useMemo(()=>$?"":m.getV7HiddenInputValueFromSections(w.sections),[$,w.sections,m]);return C.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
431
- `));c&&F.current&&F.current.getSectionContent(P.startIndex).focus()},[]),{interactions:W,returnedValue:{autoFocus:c,readOnly:n,focused:f??_,sectionListRef:A,onBlur:J,onClick:Q,onFocus:X,onInput:K,onPaste:te,enableAccessibleFieldDOMStructure:!0,elements:we,tabIndex:x===0?-1:0,contentEditable:ye,value:$e,onChange:Ce,areAllSectionsEmpty:$}}},dp=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Uce=(e,t,n)=>{let r=0,o=n?1:0;const a=[];for(let s=0;s<e.length;s+=1){const l=e[s],u=UT(l,n?"input-rtl":"input-ltr",t),f=`${l.startSeparator}${u}${l.endSeparator}`,c=dp(f).length,m=f.length,y=dp(u),v=o+(y===""?0:u.indexOf(y[0]))+l.startSeparator.length,b=v+y.length;a.push(ke({},l,{start:r,end:r+c,startInInput:v,endInInput:b})),r+=c,o+=m}return a},Vce=e=>{const t=js(),n=C.useRef(void 0),r=C.useRef(void 0),{forwardedProps:{onFocus:o,onClick:a,onPaste:s,onBlur:l,inputRef:u,placeholder:f},internalProps:{readOnly:c=!1,disabled:m=!1},parsedSelectedSections:y,activeSectionIndex:v,state:b,fieldValueManager:x,valueManager:w,applyCharacterEditing:S,resetCharacterQuery:k,updateSectionValue:T,updateValueFromValueStr:O,clearActiveSection:P,clearValue:$,setTempAndroidValueStr:I,setSelectedSections:F,getSectionsFromValue:A,areAllSectionsEmpty:H,localizedDigits:L}=e,M=C.useRef(null),_=pr(u,M),B=C.useMemo(()=>Uce(b.sections,L,t),[b.sections,L,t]),W=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!M.current)return;if(y==null){M.current.scrollLeft&&(M.current.scrollLeft=0);return}if(M.current!==$a(document))return;const ie=M.current.scrollTop;if(y==="all")M.current.select();else{const ce=B[y],me=ce.type==="empty"?ce.startInInput-ce.startSeparator.length:ce.startInInput,ye=ce.type==="empty"?ce.endInInput+ce.endSeparator.length:ce.endInInput;(me!==M.current.selectionStart||ye!==M.current.selectionEnd)&&M.current===$a(document)&&M.current.setSelectionRange(me,ye),clearTimeout(r.current),r.current=setTimeout(()=>{M.current&&M.current===$a(document)&&M.current.selectionStart===M.current.selectionEnd&&(M.current.selectionStart!==me||M.current.selectionEnd!==ye)&&W.syncSelectionToDOM()})}M.current.scrollTop=ie},getActiveSectionIndexFromDOM:()=>{const ie=M.current.selectionStart??0,ce=M.current.selectionEnd??0;if(ie===0&&ce===0)return null;const me=ie<=B[0].startInInput?1:B.findIndex(ye=>ye.startInInput-ye.startSeparator.length>ie);return me===-1?B.length-1:me-1},focusField:(ie=0)=>{$a(document)!==M.current&&(M.current?.focus(),F(ie))},setSelectedSections:ie=>F(ie),isFieldFocused:()=>M.current===$a(document)}),[M,y,B,F]),j=()=>{const ie=M.current.selectionStart??0;let ce;ie<=B[0].startInInput||ie>=B[B.length-1].endInInput?ce=1:ce=B.findIndex(ye=>ye.startInInput-ye.startSeparator.length>ie);const me=ce===-1?B.length-1:ce-1;F(me)},Q=Ft((...ie)=>{o?.(...ie);const ce=M.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ce||ce!==M.current||v==null&&(ce.value.length&&Number(ce.selectionEnd)-Number(ce.selectionStart)===ce.value.length?F("all"):j())})}),K=Ft((ie,...ce)=>{ie.isDefaultPrevented()||(a?.(ie,...ce),j())}),te=Ft(ie=>{if(s?.(ie),ie.preventDefault(),c||m)return;const ce=ie.clipboardData.getData("text");if(typeof y=="number"){const me=b.sections[y],ye=/^[a-zA-Z]+$/.test(ce),we=/^[0-9]+$/.test(ce),Ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ce);if(me.contentType==="letter"&&ye||me.contentType==="digit"&&we||me.contentType==="digit-with-letter"&&Ce){k(),T({activeSection:me,newSectionValue:ce,shouldGoToNextSection:!0});return}if(ye||we)return}k(),O(ce)}),X=Ft((...ie)=>{l?.(...ie),F(null)}),J=Ft(ie=>{if(c)return;const ce=ie.target.value;if(ce===""){k(),$();return}const me=ie.nativeEvent.data,ye=me&&me.length>1,we=ye?me:ce,Ce=dp(we);if(y==="all"&&F(v),v==null||ye){O(ye?me:Ce);return}let $e;if(y==="all"&&Ce.length===1)$e=Ce;else{const fe=dp(x.getV6InputValueFromSections(B,L,t));let Te=-1,nt=-1;for(let ue=0;ue<fe.length;ue+=1)Te===-1&&fe[ue]!==Ce[ue]&&(Te=ue),nt===-1&&fe[fe.length-ue-1]!==Ce[Ce.length-ue-1]&&(nt=ue);const ze=B[v];if(Te<ze.start||fe.length-nt-1>ze.end)return;const Ae=Ce.length-fe.length+ze.end-dp(ze.endSeparator||"").length;$e=Ce.slice(ze.start+dp(ze.startSeparator||"").length,Ae)}if($e.length===0){Gre()&&I(we),k(),P();return}S({keyPressed:$e,sectionIndex:v})}),ne=C.useMemo(()=>f!==void 0?f:x.getV6InputValueFromSections(A(w.emptyValue),L,t),[f,x,A,w.emptyValue,L,t]),oe=C.useMemo(()=>b.tempValueStrAndroid??x.getV6InputValueFromSections(b.sections,L,t),[b.sections,x,b.tempValueStrAndroid,L,t]);C.useEffect(()=>(M.current&&M.current===$a(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const se=C.useMemo(()=>v==null||b.sections[v].contentType==="letter"?"text":"numeric",[v,b.sections]),re=!(M.current&&M.current===$a(document))&&H;return{interactions:W,returnedValue:{readOnly:c,onBlur:X,onClick:K,onFocus:Q,onPaste:te,inputRef:_,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:re?"":oe,onChange:J}}},Hce=e=>{const t=Yr(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:s=!1,readOnly:l=!1},forwardedProps:{onKeyDown:u,error:f,clearable:c,onClear:m},fieldValueManager:y,valueManager:v,validator:b}=e,x=js(),w=zce(e),{state:S,activeSectionIndex:k,parsedSelectedSections:T,setSelectedSections:O,clearValue:P,clearActiveSection:$,updateSectionValue:I,setTempAndroidValueStr:F,sectionsValueBoundaries:A,localizedDigits:H,timezone:L}=w,M=Bce({sections:S.sections,updateSectionValue:I,sectionsValueBoundaries:A,localizedDigits:H,setTempAndroidValueStr:F,timezone:L}),{resetCharacterQuery:_}=M,B=v.areValuesEqual(t,S.value,v.emptyValue),W=a?_ce:Vce,j=C.useMemo(()=>Kre(S.sections,x&&!a),[S.sections,x,a]),{returnedValue:Q,interactions:K}=W(ke({},e,w,M,{areAllSectionsEmpty:B,sectionOrder:j})),te=Ft(re=>{if(u?.(re),!s)switch(!0){case((re.ctrlKey||re.metaKey)&&String.fromCharCode(re.keyCode)==="A"&&!re.shiftKey&&!re.altKey):{re.preventDefault(),O("all");break}case re.key==="ArrowRight":{if(re.preventDefault(),T==null)O(j.startIndex);else if(T==="all")O(j.endIndex);else{const ie=j.neighbors[T].rightIndex;ie!==null&&O(ie)}break}case re.key==="ArrowLeft":{if(re.preventDefault(),T==null)O(j.endIndex);else if(T==="all")O(j.startIndex);else{const ie=j.neighbors[T].leftIndex;ie!==null&&O(ie)}break}case re.key==="Delete":{if(re.preventDefault(),l)break;T==null||T==="all"?P():$(),_();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(re.key):{if(re.preventDefault(),l||k==null)break;T==="all"&&O(k);const ie=S.sections[k],ce=y.getActiveDateManager(t,S,ie),me=_re(t,L,ie,re.key,A,H,ce.date,{minutesStep:o});I({activeSection:ie,newSectionValue:me,shouldGoToNextSection:!1});break}}});Lo(()=>{K.syncSelectionToDOM()});const{hasValidationError:X}=FL({props:n,validator:b,timezone:L,value:S.value,onError:n.onError}),J=C.useMemo(()=>f!==void 0?f:X,[X,f]);C.useEffect(()=>{!J&&k==null&&_()},[S.referenceValue,k,J]),C.useEffect(()=>{S.tempValueStrAndroid!=null&&k!=null&&(_(),$())},[S.sections]),C.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:K.getActiveSectionIndexFromDOM,setSelectedSections:K.setSelectedSections,focusField:K.focusField,isFieldFocused:K.isFieldFocused}));const ne=Ft((re,...ie)=>{re.preventDefault(),m?.(re,...ie),P(),K.isFieldFocused()?O(j.startIndex):K.focusField(0)}),oe={onKeyDown:te,onClear:ne,error:J,clearable:!!(c&&!B&&!l&&!s)},se={disabled:s,readOnly:l};return ke({},e.forwardedProps,oe,se,Q)},Wce=["clearable","onClear","InputProps","sx","slots","slotProps"],qce=["ownerState"],Yce=e=>{const t=pc(),{clearable:n,onClear:r,InputProps:o,sx:a,slots:s,slotProps:l}=e,u=Fn(e,Wce),f=s?.clearButton??cs,c=br({elementType:f,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),m=Fn(c,qce),y=s?.clearIcon??nle,v=br({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return ke({},u,{InputProps:ke({},o,{endAdornment:h.jsxs(C.Fragment,{children:[n&&h.jsx(BL,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:h.jsx(f,ke({},m,{onClick:r,children:h.jsx(y,ke({fontSize:"small"},v))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})},Gce=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Kce=(e,t)=>C.useMemo(()=>{const n=ke({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return Gce.forEach(o),LL.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),Qce=e=>{const t=Yr(),n=Ry();return ke({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:es(t,e.minDate,n.minDate),maxDate:es(t,e.maxDate,n.maxDate)})},Xce=e=>{const t=Qce(e),{forwardedProps:n,internalProps:r}=Kce(t,"date");return Hce({forwardedProps:n,internalProps:r,valueManager:bl,fieldValueManager:Jre,validator:Oy,valueType:"date"})};function Zce(e){return tn("MuiPickersTextField",e)}Kt("MuiPickersTextField",["root","focused","disabled","error","required"]);function Jce(e){return tn("MuiPickersInputBase",e)}const xp=Kt("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function eue(e){return tn("MuiPickersSectionList",e)}const $m=Kt("MuiPickersSectionList",["root","section","sectionContent"]),tue=["slots","slotProps","elements","sectionListRef"],Cz=Fe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),kz=Fe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Tz=Fe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Mz=Fe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),nue=e=>{const{classes:t}=e;return Zt({root:["root"],section:["section"],sectionContent:["sectionContent"]},eue,t)};function rue(e){const{slots:t,slotProps:n,element:r,classes:o}=e,a=t?.section??kz,s=br({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??Mz,u=br({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),f=t?.sectionSeparator??Tz,c=br({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),m=br({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return h.jsxs(a,ke({},s,{children:[h.jsx(f,ke({},c)),h.jsx(l,ke({},u)),h.jsx(f,ke({},m))]}))}const oue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:a,sectionListRef:s}=n,l=Fn(n,tue),u=nue(n),f=C.useRef(null),c=pr(t,f),m=b=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return f.current};C.useImperativeHandle(s,()=>({getRoot(){return m("getRoot")},getSectionContainer(b){return m("getSectionContainer").querySelector(`.${$m.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return m("getSectionContent").querySelector(`.${$m.section}[data-sectionindex="${b}"] .${$m.sectionContent}`)},getSectionIndexFromDOMElement(b){const x=m("getSectionIndexFromDOMElement");if(b==null||!x.contains(b))return null;let w=null;return b.classList.contains($m.section)?w=b:b.classList.contains($m.sectionContent)&&(w=b.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const y=r?.root??Cz,v=br({elementType:y,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:c,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return h.jsx(y,ke({},v,{children:v.contentEditable?a.map(({content:b,before:x,after:w})=>`${x.children}${b.children}${w.children}`).join(""):h.jsx(C.Fragment,{children:a.map((b,x)=>h.jsx(rue,{slots:r,slotProps:o,element:b,classes:u},x))})}))}),aue=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],iue=e=>Math.round(e*1e5)/1e5,Nx=Fe("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>ke({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${iue(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),c2=Fe(Cz,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),sue=Fe(kz,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),lue=Fe(Mz,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),cue=Fe(Tz,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),uue=Fe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(ke({},Ere)),due=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:a,readOnly:s,color:l,size:u,endAdornment:f,startAdornment:c}=e,m={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",a&&"fullWidth",`color${Et(l)}`,u==="small"&&"inputSizeSmall",!!c&&"adornedStart",!!f&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Zt(m,Jce,o)},u2=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:u,startAdornment:f,renderSuffix:c,slots:m,slotProps:y,contentEditable:v,tabIndex:b,onInput:x,onPaste:w,onKeyDown:S,name:k,readOnly:T,inputProps:O,inputRef:P,sectionListRef:$}=n,I=Fn(n,aue),F=C.useRef(null),A=pr(t,F),H=pr(O?.ref,P),L=js(),M=bi();if(!M)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const _=te=>{if(M.disabled){te.stopPropagation();return}M.onFocus?.(te)};C.useEffect(()=>{M&&M.setAdornedStart(!!f)},[M,f]),C.useEffect(()=>{M&&(o?M.onEmpty():M.onFilled())},[M,o]);const B=ke({},n,M,{isRtl:L}),W=due(B),j=m?.root||Nx,Q=br({elementType:j,externalSlotProps:y?.root,externalForwardedProps:I,additionalProps:{"aria-invalid":M.error,ref:A},className:W.root,ownerState:B}),K=m?.input||c2;return h.jsxs(j,ke({},Q,{children:[f,h.jsx(oue,{sectionListRef:$,elements:r,contentEditable:v,tabIndex:b,className:W.sectionsContainer,onFocus:_,onBlur:M.onBlur,onInput:x,onPaste:w,onKeyDown:S,slots:{root:K,section:sue,sectionContent:lue,sectionSeparator:cue},slotProps:{root:{ownerState:B},sectionContent:{className:xp.sectionContent},sectionSeparator:({position:te})=>({className:te==="before"?xp.sectionBefore:xp.sectionAfter})}}),u,c?c(ke({},M)):null,h.jsx(uue,ke({name:k,className:W.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:T,required:M.required,disabled:M.disabled},O,{ref:H}))]}))});function fue(e){return tn("MuiPickersOutlinedInput",e)}const Cs=ke({},xp,Kt("MuiPickersOutlinedInput",["root","notchedOutline","input"])),pue=["children","className","label","notched","shrink"],hue=Fe("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),SA=Fe("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),mue=Fe("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function gue(e){const{className:t,label:n}=e,r=Fn(e,pue),o=n!=null&&n!=="",a=ke({},e,{withLabel:o});return h.jsx(hue,ke({"aria-hidden":!0,className:t},r,{ownerState:a,children:h.jsx(mue,{ownerState:a,children:o?h.jsx(SA,{children:n}):h.jsx(SA,{className:"notranslate",children:"​"})})}))}const yue=["label","autoFocus","ownerState","notched"],vue=Fe(Nx,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Cs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Cs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Cs.focused} .${Cs.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Cs.disabled}`]:{[`& .${Cs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Cs.error} .${Cs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${Cs.focused}:not(.${Cs.error}) .${Cs.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),bue=Fe(c2,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),xue=e=>{const{classes:t}=e,n=Zt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},fue,t);return ke({},t,n)},Ez=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:a}=n,s=Fn(n,yue),l=bi(),u=ke({},n,o,l,{color:l?.color||"primary"}),f=xue(u);return h.jsx(u2,ke({slots:{root:vue,input:bue},renderSuffix:c=>h.jsx(gue,{shrink:!!(a||c.adornedStart||c.focused||c.filled),notched:!!(a||c.adornedStart||c.focused||c.filled),className:f.notchedOutline,label:r!=null&&r!==""&&l?.required?h.jsxs(C.Fragment,{children:[r," ","*"]}):r,ownerState:u})},s,{label:r,classes:f,ref:t}))});Ez.muiName="Input";function Sue(e){return tn("MuiPickersFilledInput",e)}const ad=ke({},xp,Kt("MuiPickersFilledInput",["root","underline","input"])),wue=["label","autoFocus","disableUnderline","ownerState"],Cue=Fe(Nx,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lg(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ad.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ad.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(s=>(e.vars??e).palette[s].main).map(s=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ad.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ad.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ad.disabled}, .${ad.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ad.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),kue=Fe(c2,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Tue=e=>{const{classes:t,disableUnderline:n}=e,r=Zt({root:["root",!n&&"underline"],input:["input"]},Sue,t);return ke({},t,r)},Rz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Fn(n,wue),l=bi(),u=ke({},n,a,l,{color:l?.color||"primary"}),f=Tue(u);return h.jsx(u2,ke({slots:{root:Cue,input:kue},slotProps:{root:{disableUnderline:o}}},s,{label:r,classes:f,ref:t}))});Rz.muiName="Input";function Mue(e){return tn("MuiPickersFilledInput",e)}const Dm=ke({},xp,Kt("MuiPickersInput",["root","input"])),Eue=["label","autoFocus","disableUnderline","ownerState"],Rue=Fe(Nx,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n].main).map(n=>({props:{color:n},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Dm.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dm.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Dm.disabled}, .${Dm.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Dm.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Oue=e=>{const{classes:t,disableUnderline:n}=e,r=Zt({root:["root",!n&&"underline"],input:["input"]},Mue,t);return ke({},t,r)},Oz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Fn(n,Eue),l=bi(),u=ke({},n,a,l,{disableUnderline:o,color:l?.color||"primary"}),f=Oue(u);return h.jsx(u2,ke({slots:{root:Rue}},s,{label:r,classes:f,ref:t}))});Oz.muiName="Input";const Pue=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],$ue={standard:Oz,filled:Rz,outlined:Ez},Due=Fe(fz,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Aue=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return Zt({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Zce,r)},jue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:a,color:s="primary",disabled:l=!1,error:u=!1,variant:f="outlined",required:c=!1,InputProps:m,inputProps:y,inputRef:v,sectionListRef:b,elements:x,areAllSectionsEmpty:w,onClick:S,onKeyDown:k,onKeyUp:T,onPaste:O,onInput:P,endAdornment:$,startAdornment:I,tabIndex:F,contentEditable:A,focused:H,value:L,onChange:M,fullWidth:_,id:B,name:W,helperText:j,FormHelperTextProps:Q,label:K,InputLabelProps:te}=n,X=Fn(n,Pue),J=C.useRef(null),ne=pr(t,J),oe=Ns(B),se=j&&oe?`${oe}-helper-text`:void 0,re=K&&oe?`${oe}-label`:void 0,ie=ke({},n,{color:s,disabled:l,error:u,focused:H,required:c,variant:f}),ce=Aue(ie),me=$ue[f];return h.jsxs(Due,ke({className:It(ce.root,a),ref:ne,focused:H,onFocus:r,onBlur:o,disabled:l,variant:f,error:u,color:s,fullWidth:_,required:c,ownerState:ie},X,{children:[h.jsx(dz,ke({htmlFor:oe,id:re},te,{children:K})),h.jsx(me,ke({elements:x,areAllSectionsEmpty:w,onClick:S,onKeyDown:k,onKeyUp:T,onInput:P,onPaste:O,endAdornment:$,startAdornment:I,tabIndex:F,contentEditable:A,value:L,onChange:M,id:oe,fullWidth:_,inputProps:y,inputRef:v,sectionListRef:b,label:K,name:W,role:"group","aria-labelledby":re,"aria-describedby":se,"aria-live":se?"polite":void 0},m)),j&&h.jsx(pz,ke({id:se},Q,{children:j}))]}))}),Nue=["enableAccessibleFieldDOMStructure"],Iue=["InputProps","readOnly"],Lue=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],zue=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Fn(e,Nue);if(t){const{InputProps:m,readOnly:y}=n,v=Fn(n,Iue);return ke({},v,{InputProps:ke({},m??{},{readOnly:y})})}const{onPaste:r,onKeyDown:o,inputMode:a,readOnly:s,InputProps:l,inputProps:u,inputRef:f}=n,c=Fn(n,Lue);return ke({},c,{InputProps:ke({},l??{},{readOnly:s}),inputProps:ke({},u??{},{inputMode:a,onPaste:r,onKeyDown:o,ref:f})})},Fue=["slots","slotProps","InputProps","inputProps"],Pz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:a,inputProps:s}=n,l=Fn(n,Fue),u=n,f=r?.textField??(e.enableAccessibleFieldDOMStructure?jue:vr),c=br({elementType:f,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:t},ownerState:u});c.inputProps=ke({},s,c.inputProps),c.InputProps=ke({},a,c.InputProps);const m=Xce(c),y=zue(m),v=Yce(ke({},y,{slots:r,slotProps:o}));return h.jsx(f,ke({},v))}),$z=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s,timezone:l})=>{const u=Vd();return C.useCallback(f=>Oy({adapter:u,value:f,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s}})!==null,[u,e,t,n,r,o,a,s,l])},Bue=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return ke({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const a=o.newTimezone;if(n.getTimezone(r.currentMonth)===a)return r;let s=n.setTimezone(r.currentMonth,a);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),ke({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return ke({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return ke({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},_ue=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:f,shouldDisableDate:c,timezone:m}=e,y=Yr(),v=C.useRef(Bue(!!f,a,y)).current,b=C.useMemo(()=>bl.getInitialReferenceValue({value:t,utils:y,timezone:m,props:e,referenceDate:n,granularity:il.day}),[n,m]),[x,w]=C.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});C.useEffect(()=>{w({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const S=C.useCallback($=>{w(ke({type:"changeMonth"},$)),u&&u($.newMonth)},[u]),k=C.useCallback($=>{const I=$;y.isSameMonth(I,x.currentMonth)||S({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,x.currentMonth)?"left":"right"})},[x.currentMonth,S,y]),T=$z({shouldDisableDate:c,minDate:l,maxDate:s,disableFuture:r,disablePast:o,timezone:m}),O=C.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),P=Ft(($,I)=>{T($)||w({type:"changeFocusedDay",focusedDay:$,withoutMonthSwitchingAnimation:I})});return{referenceDate:b,calendarState:x,changeMonth:k,changeFocusedDay:P,isDateDisabled:T,onMonthSwitchingAnimationEnd:O,handleChangeMonth:S}},Uue=e=>tn("MuiPickersFadeTransitionGroup",e);Kt("MuiPickersFadeTransitionGroup",["root"]);const Vue=e=>{const{classes:t}=e;return Zt({root:["root"]},Uue,t)},Hue=Fe(Py,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Dz(e){const t=qr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Vue(t),l=Tu();return o?n:h.jsx(Hue,{className:It(s.root,r),children:h.jsx(Id,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Wue(e){return tn("MuiPickersDay",e)}const id=Kt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),que=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Yue=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:l,classes:u}=e,f=s&&!l;return Zt({root:["root",t&&!f&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&l&&"dayOutsideMonth",f&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Wue,u)},Az=({theme:e})=>ke({},e.typography.caption,{width:Hg,height:Hg,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Oo(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Oo(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${id.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${id.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${id.disabled}:not(.${id.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${id.disabled}&.${id.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ox}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${id.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),jz=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Gue=Fe(Nd,{name:"MuiPickersDay",slot:"Root",overridesResolver:jz})(Az),Kue=Fe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:jz})(({theme:e})=>ke({},Az({theme:e}),{opacity:0,pointerEvents:"none"})),Am=()=>{},Que=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:f,onClick:c,onDaySelect:m,onFocus:y=Am,onBlur:v=Am,onKeyDown:b=Am,onMouseDown:x=Am,onMouseEnter:w=Am,outsideCurrentMonth:S,selected:k=!1,showDaysOutsideCurrentMonth:T=!1,children:O,today:P=!1}=n,$=Fn(n,que),I=ke({},n,{autoFocus:r,disabled:s,disableHighlightToday:l,disableMargin:u,selected:k,showDaysOutsideCurrentMonth:T,today:P}),F=Yue(I),A=Yr(),H=C.useRef(null),L=pr(H,t);Lo(()=>{r&&!s&&!f&&!S&&H.current.focus()},[r,s,f,S]);const M=B=>{x(B),S&&B.preventDefault()},_=B=>{s||m(a),S&&B.currentTarget.focus(),c&&c(B)};return S&&!T?h.jsx(Kue,{className:It(F.root,F.hiddenDaySpacingFiller,o),ownerState:I,role:$.role}):h.jsx(Gue,ke({className:It(F.root,o),ref:L,centerRipple:!0,disabled:s,tabIndex:k?0:-1,onKeyDown:B=>b(B,a),onFocus:B=>y(B,a),onBlur:B=>v(B,a),onMouseEnter:B=>w(B,a),onClick:_,onMouseDown:M},$,{ownerState:I,children:O||A.format(a,"dayOfMonth")}))}),Xue=C.memo(Que),Zue=e=>tn("MuiPickersSlideTransition",e),$i=Kt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Jue=["children","className","reduceAnimations","slideDirection","transKey","classes"],ede=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Zt(r,Zue,t)},tde=Fe(Py,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${$i["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${$i["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${$i.slideEnterActive}`]:t.slideEnterActive},{[`.${$i.slideExit}`]:t.slideExit},{[`.${$i["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${$i["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${$i["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${$i["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${$i.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${$i.slideExit}`]:{transform:"translate(0%)"},[`& .${$i["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${$i["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function nde(e){const t=qr({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Fn(t,Jue),l=ede(t),u=Tu();if(o)return h.jsx("div",{className:It(l.root,r),children:n});const f={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return h.jsx(tde,{className:It(l.root,r),childFactory:c=>C.cloneElement(c,{classNames:f}),role:"presentation",children:h.jsx(HT,ke({mountOnEnter:!0,unmountOnExit:!0,timeout:u.transitions.duration.complex,classNames:f},s,{children:n}),a)})}const rde=e=>tn("MuiDayCalendar",e);Kt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const ode=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],ade=["ownerState"],ide=e=>{const{classes:t}=e;return Zt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},rde,t)},Nz=(Hg+Ox*2)*6,sde=Fe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lde=Fe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),cde=Fe(gr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),ude=Fe(gr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),dde=Fe(gr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>ke({},e.typography.caption,{width:Hg,height:Hg,padding:0,margin:`0 ${Ox}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),fde=Fe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Nz}),pde=Fe(nde,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Nz}),hde=Fe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),mde=Fe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ox}px 0`,display:"flex",justifyContent:"center"});function gde(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,u=Fn(e,ode);const{disabled:f,disableHighlightToday:c,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:y,slots:v,slotProps:b,timezone:x}=t,w=Yr(),S=Mx(x),k=r!==null&&w.isSameDay(n,r),T=o.some(M=>w.isSameDay(M,n)),O=w.isSameDay(n,S),P=v?.day??Xue,$=br({elementType:P,externalSlotProps:b?.day,additionalProps:ke({disableHighlightToday:c,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:m,"data-timestamp":w.toJsDate(n).valueOf()},u),ownerState:ke({},t,{day:n,selected:T})}),I=Fn($,ade),F=C.useMemo(()=>f||a(n),[f,a,n]),A=C.useMemo(()=>w.getMonth(n)!==s,[w,n,s]),H=C.useMemo(()=>{const M=w.startOfMonth(w.setMonth(n,s));return y?w.isSameDay(n,w.startOfWeek(M)):w.isSameDay(n,M)},[s,n,y,w]),L=C.useMemo(()=>{const M=w.endOfMonth(w.setMonth(n,s));return y?w.isSameDay(n,w.endOfWeek(M)):w.isSameDay(n,M)},[s,n,y,w]);return h.jsx(P,ke({},I,{day:n,disabled:F,autoFocus:l&&k,today:O,outsideCurrentMonth:A,isFirstVisibleCell:H,isLastVisibleCell:L,selected:T,tabIndex:k?0:-1,"aria-selected":T,"aria-current":O?"date":void 0}))}function yde(e){const t=qr({props:e,name:"MuiDayCalendar"}),n=Yr(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:s,focusedDay:l,loading:u,onSelectedDaysChange:f,onMonthSwitchingAnimationEnd:c,readOnly:m,reduceAnimations:y,renderLoading:v=()=>h.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:x,disablePast:w,disableFuture:S,minDate:k,maxDate:T,shouldDisableDate:O,shouldDisableMonth:P,shouldDisableYear:$,dayOfWeekFormatter:I=ze=>n.format(ze,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:A,gridLabelId:H,displayWeekNumber:L,fixedWeekNumber:M,autoFocus:_,timezone:B}=t,W=Mx(B),j=ide(t),Q=js(),K=$z({shouldDisableDate:O,shouldDisableMonth:P,shouldDisableYear:$,minDate:k,maxDate:T,disablePast:w,disableFuture:S,timezone:B}),te=pc(),[X,J]=mi({name:"DayCalendar",state:"hasFocus",controlled:F,default:_??!1}),[ne,oe]=C.useState(()=>l||W),se=Ft(ze=>{m||f(ze)}),re=ze=>{K(ze)||(r(ze),oe(ze),A?.(!0),J(!0))},ie=Ft((ze,Ae)=>{switch(ze.key){case"ArrowUp":re(n.addDays(Ae,-7)),ze.preventDefault();break;case"ArrowDown":re(n.addDays(Ae,7)),ze.preventDefault();break;case"ArrowLeft":{const ue=n.addDays(Ae,Q?1:-1),bt=n.addMonths(Ae,Q?1:-1),Be=gg({utils:n,date:ue,minDate:Q?ue:n.startOfMonth(bt),maxDate:Q?n.endOfMonth(bt):ue,isDateDisabled:K,timezone:B});re(Be||ue),ze.preventDefault();break}case"ArrowRight":{const ue=n.addDays(Ae,Q?-1:1),bt=n.addMonths(Ae,Q?-1:1),Be=gg({utils:n,date:ue,minDate:Q?n.startOfMonth(bt):ue,maxDate:Q?ue:n.endOfMonth(bt),isDateDisabled:K,timezone:B});re(Be||ue),ze.preventDefault();break}case"Home":re(n.startOfWeek(Ae)),ze.preventDefault();break;case"End":re(n.endOfWeek(Ae)),ze.preventDefault();break;case"PageUp":re(n.addMonths(Ae,1)),ze.preventDefault();break;case"PageDown":re(n.addMonths(Ae,-1)),ze.preventDefault();break}}),ce=Ft((ze,Ae)=>re(Ae)),me=Ft((ze,Ae)=>{X&&n.isSameDay(ne,Ae)&&A?.(!1)}),ye=n.getMonth(a),we=n.getYear(a),Ce=C.useMemo(()=>s.filter(ze=>!!ze).map(ze=>n.startOfDay(ze)),[n,s]),$e=`${we}-${ye}`,fe=C.useMemo(()=>C.createRef(),[$e]),Te=C.useMemo(()=>{const ze=n.startOfMonth(a),Ae=n.endOfMonth(a);return K(ne)||n.isAfterDay(ne,Ae)||n.isBeforeDay(ne,ze)?gg({utils:n,date:ne,minDate:ze,maxDate:Ae,disablePast:w,disableFuture:S,isDateDisabled:K,timezone:B}):ne},[a,S,w,ne,K,n,B]),nt=C.useMemo(()=>{const ze=n.getWeekArray(a);let Ae=n.addMonths(a,1);for(;M&&ze.length<M;){const ue=n.getWeekArray(Ae),bt=n.isSameDay(ze[ze.length-1][0],ue[0][0]);ue.slice(bt?1:0).forEach(Be=>{ze.length<M&&ze.push(Be)}),Ae=n.addMonths(Ae,1)}return ze},[a,M,n]);return h.jsxs(sde,{role:"grid","aria-labelledby":H,className:j.root,children:[h.jsxs(lde,{role:"row",className:j.header,children:[L&&h.jsx(ude,{variant:"caption",role:"columnheader","aria-label":te.calendarWeekNumberHeaderLabel,className:j.weekNumberLabel,children:te.calendarWeekNumberHeaderText}),Dre(n,W).map((ze,Ae)=>h.jsx(cde,{variant:"caption",role:"columnheader","aria-label":n.format(ze,"weekday"),className:j.weekDayLabel,children:I(ze)},Ae.toString()))]}),u?h.jsx(fde,{className:j.loadingContainer,children:v()}):h.jsx(pde,ke({transKey:$e,onExited:c,reduceAnimations:y,slideDirection:b,className:It(o,j.slideTransition)},x,{nodeRef:fe,children:h.jsx(hde,{ref:fe,role:"rowgroup",className:j.monthContainer,children:nt.map((ze,Ae)=>h.jsxs(mde,{role:"row",className:j.weekContainer,"aria-rowindex":Ae+1,children:[L&&h.jsx(dde,{className:j.weekNumber,role:"rowheader","aria-label":te.calendarWeekNumberAriaLabelText(n.getWeekNumber(ze[0])),children:te.calendarWeekNumberText(n.getWeekNumber(ze[0]))}),ze.map((ue,bt)=>h.jsx(gde,{parentProps:t,day:ue,selectedDays:Ce,focusableDay:Te,onKeyDown:ie,onFocus:ce,onBlur:me,onDaySelect:se,isDateDisabled:K,currentMonthNumber:ye,isViewFocused:X,"aria-colindex":bt+1},ue.toString()))]},`week-${ze[0]}`))})}))]})}function vde(e){return tn("MuiPickersMonth",e)}const cb=Kt("MuiPickersMonth",["root","monthButton","disabled","selected"]),bde=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],xde=e=>{const{disabled:t,selected:n,classes:r}=e;return Zt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vde,r)},Sde=Fe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),wde=Fe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${cb.disabled}`]:t.disabled},{[`&.${cb.selected}`]:t.selected}]})(({theme:e})=>ke({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Oo(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Oo(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${cb.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${cb.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Cde=C.memo(function(e){const t=qr({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:f,onKeyDown:c,onFocus:m,onBlur:y,"aria-current":v,"aria-label":b,slots:x,slotProps:w}=t,S=Fn(t,bde),k=C.useRef(null),T=xde(t);Lo(()=>{n&&k.current?.focus()},[n]);const O=x?.monthButton??wde,P=br({elementType:O,externalSlotProps:w?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":v,"aria-checked":s,"aria-label":b,onClick:$=>f($,l),onKeyDown:$=>c($,l),onFocus:$=>m($,l),onBlur:$=>y($,l)},ownerState:t,className:T.monthButton});return h.jsx(Sde,ke({className:It(T.root,r),ownerState:t},S,{children:h.jsx(O,ke({},P))}))});function kde(e){return tn("MuiMonthCalendar",e)}Kt("MuiMonthCalendar",["root"]);const Tde=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Mde=e=>{const{classes:t}=e;return Zt({root:["root"]},kde,t)};function Ede(e,t){const n=Yr(),r=Ry(),o=qr({props:e,name:t});return ke({disableFuture:!1,disablePast:!1},o,{minDate:es(n,o.minDate,r.minDate),maxDate:es(n,o.maxDate,r.maxDate)})}const Rde=Fe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Px,boxSizing:"border-box"}),Ode=C.forwardRef(function(e,t){const n=Ede(e,"MuiMonthCalendar"),{className:r,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:f,maxDate:c,minDate:m,onChange:y,shouldDisableMonth:v,readOnly:b,autoFocus:x=!1,onMonthFocus:w,hasFocus:S,onFocusedViewChange:k,monthsPerRow:T=3,timezone:O,gridLabelId:P,slots:$,slotProps:I}=n,F=Fn(n,Tde),{value:A,handleValueChange:H,timezone:L}=t2({name:"MonthCalendar",timezone:O,value:o,defaultValue:a,referenceDate:s,onChange:y,valueManager:bl}),M=Mx(L),_=js(),B=Yr(),W=C.useMemo(()=>bl.getInitialReferenceValue({value:A,utils:B,props:n,timezone:L,referenceDate:s,granularity:il.month}),[]),j=n,Q=Mde(j),K=C.useMemo(()=>B.getMonth(M),[B,M]),te=C.useMemo(()=>A!=null?B.getMonth(A):null,[A,B]),[X,J]=C.useState(()=>te||B.getMonth(W)),[ne,oe]=mi({name:"MonthCalendar",state:"hasFocus",controlled:S,default:x??!1}),se=Ft(Ce=>{oe(Ce),k&&k(Ce)}),re=C.useCallback(Ce=>{const $e=B.startOfMonth(f&&B.isAfter(M,m)?M:m),fe=B.startOfMonth(u&&B.isBefore(M,c)?M:c),Te=B.startOfMonth(Ce);return B.isBefore(Te,$e)||B.isAfter(Te,fe)?!0:v?v(Te):!1},[u,f,c,m,M,v,B]),ie=Ft((Ce,$e)=>{if(b)return;const fe=B.setMonth(A??W,$e);H(fe)}),ce=Ft(Ce=>{re(B.setMonth(A??W,Ce))||(J(Ce),se(!0),w&&w(Ce))});C.useEffect(()=>{J(Ce=>te!==null&&Ce!==te?te:Ce)},[te]);const me=Ft((Ce,$e)=>{switch(Ce.key){case"ArrowUp":ce((12+$e-3)%12),Ce.preventDefault();break;case"ArrowDown":ce((12+$e+3)%12),Ce.preventDefault();break;case"ArrowLeft":ce((12+$e+(_?1:-1))%12),Ce.preventDefault();break;case"ArrowRight":ce((12+$e+(_?-1:1))%12),Ce.preventDefault();break}}),ye=Ft((Ce,$e)=>{ce($e)}),we=Ft((Ce,$e)=>{X===$e&&se(!1)});return h.jsx(Rde,ke({ref:t,className:It(Q.root,r),ownerState:j,role:"radiogroup","aria-labelledby":P},F,{children:FT(B,A??W).map(Ce=>{const $e=B.getMonth(Ce),fe=B.format(Ce,"monthShort"),Te=B.format(Ce,"month"),nt=$e===te,ze=l||re(Ce);return h.jsx(Cde,{selected:nt,value:$e,onClick:ie,onKeyDown:me,autoFocus:ne&&$e===X,disabled:ze,tabIndex:$e===X&&!ze?0:-1,onFocus:ye,onBlur:we,"aria-current":K===$e?"date":void 0,"aria-label":Te,monthsPerRow:T,slots:$,slotProps:I,children:fe},fe)})}))});function Pde(e){return tn("MuiPickersYear",e)}const ub=Kt("MuiPickersYear",["root","yearButton","selected","disabled"]),$de=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Dde=e=>{const{disabled:t,selected:n,classes:r}=e;return Zt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Pde,r)},Ade=Fe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),jde=Fe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ub.disabled}`]:t.disabled},{[`&.${ub.selected}`]:t.selected}]})(({theme:e})=>ke({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Oo(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Oo(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ub.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ub.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Nde=C.memo(function(e){const t=qr({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:f,onKeyDown:c,onFocus:m,onBlur:y,"aria-current":v,slots:b,slotProps:x}=t,w=Fn(t,$de),S=C.useRef(null),k=Dde(t);Lo(()=>{n&&S.current?.focus()},[n]);const T=b?.yearButton??jde,O=br({elementType:T,externalSlotProps:x?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:u,ref:S,type:"button",role:"radio","aria-current":v,"aria-checked":s,onClick:P=>f(P,l),onKeyDown:P=>c(P,l),onFocus:P=>m(P,l),onBlur:P=>y(P,l)},ownerState:t,className:k.yearButton});return h.jsx(Ade,ke({className:It(k.root,r),ownerState:t},w,{children:h.jsx(T,ke({},O))}))});function Ide(e){return tn("MuiYearCalendar",e)}Kt("MuiYearCalendar",["root"]);const Lde=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],zde=e=>{const{classes:t}=e;return Zt({root:["root"]},Ide,t)};function Fde(e,t){const n=Yr(),r=Ry(),o=qr({props:e,name:t});return ke({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:es(n,o.minDate,r.minDate),maxDate:es(n,o.maxDate,r.maxDate)})}const Bde=Fe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Px,maxHeight:Lse,boxSizing:"border-box",position:"relative"}),_de=C.forwardRef(function(e,t){const n=Fde(e,"MuiYearCalendar"),{autoFocus:r,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:f,disablePast:c,maxDate:m,minDate:y,onChange:v,readOnly:b,shouldDisableYear:x,onYearFocus:w,hasFocus:S,onFocusedViewChange:k,yearsOrder:T="asc",yearsPerRow:O,timezone:P,gridLabelId:$,slots:I,slotProps:F}=n,A=Fn(n,Lde),{value:H,handleValueChange:L,timezone:M}=t2({name:"YearCalendar",timezone:P,value:a,defaultValue:s,referenceDate:l,onChange:v,valueManager:bl}),_=Mx(M),B=js(),W=Yr(),j=C.useMemo(()=>bl.getInitialReferenceValue({value:H,utils:W,props:n,timezone:M,referenceDate:l,granularity:il.year}),[]),Q=n,K=zde(Q),te=C.useMemo(()=>W.getYear(_),[W,_]),X=C.useMemo(()=>H!=null?W.getYear(H):null,[H,W]),[J,ne]=C.useState(()=>X||W.getYear(j)),[oe,se]=mi({name:"YearCalendar",state:"hasFocus",controlled:S,default:r??!1}),re=Ft(Ae=>{se(Ae),k&&k(Ae)}),ie=C.useCallback(Ae=>{if(c&&W.isBeforeYear(Ae,_)||f&&W.isAfterYear(Ae,_)||y&&W.isBeforeYear(Ae,y)||m&&W.isAfterYear(Ae,m))return!0;if(!x)return!1;const ue=W.startOfYear(Ae);return x(ue)},[f,c,m,y,_,x,W]),ce=Ft((Ae,ue)=>{if(b)return;const bt=W.setYear(H??j,ue);L(bt)}),me=Ft(Ae=>{ie(W.setYear(H??j,Ae))||(ne(Ae),re(!0),w?.(Ae))});C.useEffect(()=>{ne(Ae=>X!==null&&Ae!==X?X:Ae)},[X]);const ye=T!=="desc"?O*1:O*-1,we=B&&T==="asc"||!B&&T==="desc"?-1:1,Ce=Ft((Ae,ue)=>{switch(Ae.key){case"ArrowUp":me(ue-ye),Ae.preventDefault();break;case"ArrowDown":me(ue+ye),Ae.preventDefault();break;case"ArrowLeft":me(ue-we),Ae.preventDefault();break;case"ArrowRight":me(ue+we),Ae.preventDefault();break}}),$e=Ft((Ae,ue)=>{me(ue)}),fe=Ft((Ae,ue)=>{J===ue&&re(!1)}),Te=C.useRef(null),nt=pr(t,Te);C.useEffect(()=>{if(r||Te.current===null)return;const Ae=Te.current.querySelector('[tabindex="0"]');if(!Ae)return;const ue=Ae.offsetHeight,bt=Ae.offsetTop,Be=Te.current.clientHeight,it=Te.current.scrollTop,pt=bt+ue;ue>Be||bt<it||(Te.current.scrollTop=pt-Be/2-ue/2)},[r]);const ze=W.getYearRange([y,m]);return T==="desc"&&ze.reverse(),h.jsx(Bde,ke({ref:nt,className:It(K.root,o),ownerState:Q,role:"radiogroup","aria-labelledby":$},A,{children:ze.map(Ae=>{const ue=W.getYear(Ae),bt=ue===X,Be=u||ie(Ae);return h.jsx(Nde,{selected:bt,value:ue,onClick:ce,onKeyDown:Ce,autoFocus:oe&&ue===J,disabled:Be,tabIndex:ue===J&&!Be?0:-1,onFocus:$e,onBlur:fe,"aria-current":te===ue?"date":void 0,yearsPerRow:O,slots:I,slotProps:F,children:W.format(Ae,"year")},W.format(Ae,"year"))})}))}),Ude=e=>tn("MuiPickersCalendarHeader",e),Vde=Kt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Hde(e){return tn("MuiPickersArrowSwitcher",e)}Kt("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Wde=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],qde=["ownerState"],Yde=["ownerState"],Gde=Fe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Kde=Fe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),wA=Fe(cs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Qde=e=>{const{classes:t}=e;return Zt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Hde,t)},Xde=C.forwardRef(function(e,t){const n=js(),r=qr({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:u,isNextHidden:f,onGoToNext:c,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:v,onGoToPrevious:b,previousLabel:x,labelId:w}=r,S=Fn(r,Wde),k=r,T=Qde(k),O={isDisabled:u,isHidden:f,goTo:c,label:m},P={isDisabled:y,isHidden:v,goTo:b,label:x},$=s?.previousIconButton??wA,I=br({elementType:$,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"end",onClick:P.goTo},ownerState:ke({},k,{hidden:P.isHidden}),className:It(T.button,T.previousIconButton)}),F=s?.nextIconButton??wA,A=br({elementType:F,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:ke({},k,{hidden:O.isHidden}),className:It(T.button,T.nextIconButton)}),H=s?.leftArrowIcon??Jse,L=br({elementType:H,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:T.leftArrowIcon}),M=Fn(L,qde),_=s?.rightArrowIcon??ele,B=br({elementType:_,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:T.rightArrowIcon}),W=Fn(B,Yde);return h.jsxs(Gde,ke({ref:t,className:It(T.root,a),ownerState:k},S,{children:[h.jsx($,ke({},I,{children:n?h.jsx(_,ke({},W)):h.jsx(H,ke({},M))})),o?h.jsx(gr,{variant:"subtitle1",component:"span",id:w,children:o}):h.jsx(Kde,{className:T.spacer,ownerState:k}),h.jsx(F,ke({},A,{children:n?h.jsx(H,ke({},M)):h.jsx(_,ke({},W))}))]}))});function Zde(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Yr();return C.useMemo(()=>{const a=o.date(void 0,r),s=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function Jde(e,{disablePast:t,minDate:n,timezone:r}){const o=Yr();return C.useMemo(()=>{const a=o.date(void 0,r),s=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const efe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],tfe=["ownerState"],nfe=e=>{const{classes:t}=e;return Zt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Ude,t)},rfe=Fe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),ofe=Fe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>ke({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),afe=Fe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),ife=Fe(cs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Vde.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),sfe=Fe(Zse,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),lfe=C.forwardRef(function(e,t){const n=pc(),r=Yr(),o=qr({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:u,disableFuture:f,disablePast:c,maxDate:m,minDate:y,onMonthChange:v,onViewChange:b,view:x,reduceAnimations:w,views:S,labelId:k,className:T,timezone:O,format:P=`${r.formats.month} ${r.formats.year}`}=o,$=Fn(o,efe),I=o,F=nfe(o),A=a?.switchViewButton??ife,H=br({elementType:A,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:I,className:F.switchViewButton}),L=a?.switchViewIcon??sfe,M=br({elementType:L,externalSlotProps:s?.switchViewIcon,ownerState:I,className:F.switchViewIcon}),_=Fn(M,tfe),B=()=>v(r.addMonths(l,1),"left"),W=()=>v(r.addMonths(l,-1),"right"),j=Zde(l,{disableFuture:f,maxDate:m,timezone:O}),Q=Jde(l,{disablePast:c,minDate:y,timezone:O}),K=()=>{if(!(S.length===1||!b||u))if(S.length===2)b(S.find(X=>X!==x)||S[0]);else{const X=S.indexOf(x)!==0?0:1;b(S[X])}};if(S.length===1&&S[0]==="year")return null;const te=r.formatByString(l,P);return h.jsxs(rfe,ke({},$,{ownerState:I,className:It(F.root,T),ref:t,children:[h.jsxs(ofe,{role:"presentation",onClick:K,ownerState:I,"aria-live":"polite",className:F.labelContainer,children:[h.jsx(Dz,{reduceAnimations:w,transKey:te,children:h.jsx(afe,{id:k,ownerState:I,className:F.label,children:te})}),S.length>1&&!u&&h.jsx(A,ke({},H,{children:h.jsx(L,ke({},_))}))]}),h.jsx(Id,{in:x==="day",appear:!w,enter:!w,children:h.jsx(Xde,{slots:a,slotProps:s,onGoToPrevious:W,isPreviousDisabled:Q,previousLabel:n.previousMonth,onGoToNext:B,isNextDisabled:j,nextLabel:n.nextMonth})})]}))}),cfe=Fe("div")({overflow:"hidden",width:Px,maxHeight:n2,display:"flex",flexDirection:"column",margin:"0 auto"}),ufe=e=>tn("MuiDateCalendar",e);Kt("MuiDateCalendar",["root","viewTransitionContainer"]);const dfe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],ffe=e=>{const{classes:t}=e;return Zt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ufe,t)};function pfe(e,t){const n=Yr(),r=Ry(),o=tz(),a=qr({props:e,name:t});return ke({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??"day",views:a.views??["year","day"],reduceAnimations:a.reduceAnimations??o,renderLoading:a.renderLoading??(()=>h.jsx("span",{children:"..."})),minDate:es(n,a.minDate,r.minDate),maxDate:es(n,a.maxDate,r.maxDate)})}const hfe=Fe(cfe,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:n2}),mfe=Fe(Dz,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),gfe=C.forwardRef(function(e,t){const n=Yr(),r=Ns(),o=pfe(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:u,referenceDate:f,disableFuture:c,disablePast:m,onChange:y,onYearChange:v,onMonthChange:b,reduceAnimations:x,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:k,view:T,views:O,openTo:P,className:$,disabled:I,readOnly:F,minDate:A,maxDate:H,disableHighlightToday:L,focusedView:M,onFocusedViewChange:_,showDaysOutsideCurrentMonth:B,fixedWeekNumber:W,dayOfWeekFormatter:j,slots:Q,slotProps:K,loading:te,renderLoading:X,displayWeekNumber:J,yearsOrder:ne,yearsPerRow:oe,monthsPerRow:se,timezone:re}=o,ie=Fn(o,dfe),{value:ce,handleValueChange:me,timezone:ye}=t2({name:"DateCalendar",timezone:re,value:l,defaultValue:u,referenceDate:f,onChange:y,valueManager:bl}),{view:we,setView:Ce,focusedView:$e,setFocusedView:fe,goToNextView:Te,setValueAndGoToNextView:nt}=nz({view:T,views:O,openTo:P,onChange:me,onViewChange:s,autoFocus:a,focusedView:M,onFocusedViewChange:_}),{referenceDate:ze,calendarState:Ae,changeFocusedDay:ue,changeMonth:bt,handleChangeMonth:Be,isDateDisabled:it,onMonthSwitchingAnimationEnd:pt}=_ue({value:ce,referenceDate:f,reduceAnimations:x,onMonthChange:b,minDate:A,maxDate:H,shouldDisableDate:w,disablePast:m,disableFuture:c,timezone:ye}),_t=I&&ce||A,Ht=I&&ce||H,at=`${r}-grid-label`,Xe=$e!==null,ot=Q?.calendarHeader??lfe,Ne=br({elementType:ot,externalSlotProps:K?.calendarHeader,additionalProps:{views:O,view:we,currentMonth:Ae.currentMonth,onViewChange:Ce,onMonthChange:(dn,bn)=>Be({newMonth:dn,direction:bn}),minDate:_t,maxDate:Ht,disabled:I,disablePast:m,disableFuture:c,reduceAnimations:x,timezone:ye,labelId:at},ownerState:o}),he=Ft(dn=>{const bn=n.startOfMonth(dn),_n=n.endOfMonth(dn),Gn=it(dn)?gg({utils:n,date:dn,minDate:n.isBefore(A,bn)?bn:A,maxDate:n.isAfter(H,_n)?_n:H,disablePast:m,disableFuture:c,isDateDisabled:it,timezone:ye}):dn;Gn?(nt(Gn,"finish"),b?.(bn)):(Te(),bt(bn)),ue(Gn,!0)}),qe=Ft(dn=>{const bn=n.startOfYear(dn),_n=n.endOfYear(dn),Gn=it(dn)?gg({utils:n,date:dn,minDate:n.isBefore(A,bn)?bn:A,maxDate:n.isAfter(H,_n)?_n:H,disablePast:m,disableFuture:c,isDateDisabled:it,timezone:ye}):dn;Gn?(nt(Gn,"finish"),v?.(Gn)):(Te(),bt(bn)),ue(Gn,!0)}),Me=Ft(dn=>me(dn&&l0(n,dn,ce??ze),"finish",we));C.useEffect(()=>{ce!=null&&n.isValid(ce)&&bt(ce)},[ce]);const Mt=o,Rt=ffe(Mt),gt={disablePast:m,disableFuture:c,maxDate:H,minDate:A},ct={disableHighlightToday:L,readOnly:F,disabled:I,timezone:ye,gridLabelId:at,slots:Q,slotProps:K},At=C.useRef(we);C.useEffect(()=>{At.current!==we&&($e===At.current&&fe(we,!0),At.current=we)},[$e,fe,we]);const Wt=C.useMemo(()=>[ce],[ce]);return h.jsxs(hfe,ke({ref:t,className:It(Rt.root,$),ownerState:Mt},ie,{children:[h.jsx(ot,ke({},Ne,{slots:Q,slotProps:K})),h.jsx(mfe,{reduceAnimations:x,className:Rt.viewTransitionContainer,transKey:we,ownerState:Mt,children:h.jsxs("div",{children:[we==="year"&&h.jsx(_de,ke({},gt,ct,{value:ce,onChange:qe,shouldDisableYear:k,hasFocus:Xe,onFocusedViewChange:dn=>fe("year",dn),yearsOrder:ne,yearsPerRow:oe,referenceDate:ze})),we==="month"&&h.jsx(Ode,ke({},gt,ct,{hasFocus:Xe,className:$,value:ce,onChange:he,shouldDisableMonth:S,onFocusedViewChange:dn=>fe("month",dn),monthsPerRow:se,referenceDate:ze})),we==="day"&&h.jsx(yde,ke({},Ae,gt,ct,{onMonthSwitchingAnimationEnd:pt,onFocusedDayChange:ue,reduceAnimations:x,selectedDays:Wt,onSelectedDaysChange:Me,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:k,hasFocus:Xe,onFocusedViewChange:dn=>fe("day",dn),showDaysOutsideCurrentMonth:B,fixedWeekNumber:W,dayOfWeekFormatter:j,displayWeekNumber:J,loading:te,renderLoading:X}))]})})]}))}),Sp=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:u,className:f,classes:c,disableFuture:m,disablePast:y,minDate:v,maxDate:b,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:k,onMonthChange:T,monthsPerRow:O,onYearChange:P,yearsOrder:$,yearsPerRow:I,slots:F,slotProps:A,loading:H,renderLoading:L,disableHighlightToday:M,readOnly:_,disabled:B,showDaysOutsideCurrentMonth:W,dayOfWeekFormatter:j,sx:Q,autoFocus:K,fixedWeekNumber:te,displayWeekNumber:X,timezone:J})=>h.jsx(gfe,{view:e,onViewChange:t,views:n.filter(PD),focusedView:r&&PD(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:u,className:f,classes:c,disableFuture:m,disablePast:y,minDate:v,maxDate:b,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:k,onMonthChange:T,monthsPerRow:O,onYearChange:P,yearsOrder:$,yearsPerRow:I,slots:F,slotProps:A,loading:H,renderLoading:L,disableHighlightToday:M,readOnly:_,disabled:B,showDaysOutsideCurrentMonth:W,dayOfWeekFormatter:j,sx:Q,autoFocus:K,fixedWeekNumber:te,displayWeekNumber:X,timezone:J}),Iz=C.forwardRef(function(e,t){const n=pc(),r=Yr(),o=IL(e,"MuiDesktopDatePicker"),a=ke({day:Sp,month:Sp,year:Sp},o.viewRenderers),s=ke({},o,{viewRenderers:a,format:BT(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:ke({openPickerIcon:tle,field:Pz},o.slots),slotProps:ke({},o.slotProps,{field:u=>ke({},Lp(o.slotProps?.field,u),zL(o),{ref:t}),toolbar:ke({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=Xse({props:s,valueManager:bl,valueType:"date",getOpenDialogAriaText:jL({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Oy});return l()});Iz.propTypes={autoFocus:rt.bool,className:rt.string,closeOnSelect:rt.bool,dayOfWeekFormatter:rt.func,defaultValue:rt.object,disabled:rt.bool,disableFuture:rt.bool,disableHighlightToday:rt.bool,disableOpenPicker:rt.bool,disablePast:rt.bool,displayWeekNumber:rt.bool,enableAccessibleFieldDOMStructure:rt.any,fixedWeekNumber:rt.number,format:rt.string,formatDensity:rt.oneOf(["dense","spacious"]),inputRef:CL,label:rt.node,loading:rt.bool,localeText:rt.object,maxDate:rt.object,minDate:rt.object,monthsPerRow:rt.oneOf([3,4]),name:rt.string,onAccept:rt.func,onChange:rt.func,onClose:rt.func,onError:rt.func,onMonthChange:rt.func,onOpen:rt.func,onSelectedSectionsChange:rt.func,onViewChange:rt.func,onYearChange:rt.func,open:rt.bool,openTo:rt.oneOf(["day","month","year"]),orientation:rt.oneOf(["landscape","portrait"]),readOnly:rt.bool,reduceAnimations:rt.bool,referenceDate:rt.object,renderLoading:rt.func,selectedSections:rt.oneOfType([rt.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),rt.number]),shouldDisableDate:rt.func,shouldDisableMonth:rt.func,shouldDisableYear:rt.func,showDaysOutsideCurrentMonth:rt.bool,slotProps:rt.object,slots:rt.object,sx:rt.oneOfType([rt.arrayOf(rt.oneOfType([rt.func,rt.object,rt.bool])),rt.func,rt.object]),timezone:rt.string,value:rt.object,view:rt.oneOf(["day","month","year"]),viewRenderers:rt.shape({day:rt.func,month:rt.func,year:rt.func}),views:rt.arrayOf(rt.oneOf(["day","month","year"]).isRequired),yearsOrder:rt.oneOf(["asc","desc"]),yearsPerRow:rt.oneOf([3,4])};function yfe(e){return tn("MuiDialogContent",e)}Kt("MuiDialogContent",["root","dividers"]);function vfe(e){return tn("MuiDialogTitle",e)}const bfe=Kt("MuiDialogTitle",["root"]),xfe=e=>{const{classes:t,dividers:n}=e;return Zt({root:["root",n&&"dividers"]},yfe,t)},Sfe=Fe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(qn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${bfe.root} + &`]:{paddingTop:0}}}]}))),Ml=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,s={...n,dividers:o},l=xfe(s);return h.jsx(Sfe,{className:It(l.root,r),ownerState:s,ref:t,...a})});function wfe(e){return tn("MuiDialog",e)}const Sg=Kt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Lz=C.createContext({}),Cfe=Fe(mz,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),kfe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Et(n)}`],paper:["paper",`paperScroll${Et(n)}`,`paperWidth${Et(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Zt(s,wfe,t)},Tfe=Fe(gz,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Mfe=Fe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Et(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Efe=Fe(Hd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Et(n.scroll)}`],t[`paperWidth${Et(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(qn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Sg.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Sg.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Sg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),El=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiDialog"}),r=Tu(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:f,children:c,className:m,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:x="sm",onClick:w,onClose:S,open:k,PaperComponent:T=Hd,PaperProps:O={},scroll:P="paper",slots:$={},slotProps:I={},TransitionComponent:F=Id,transitionDuration:A=o,TransitionProps:H,...L}=n,M={...n,disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:x,scroll:P},_=kfe(M),B=C.useRef(),W=$e=>{B.current=$e.target===$e.currentTarget},j=$e=>{w&&w($e),B.current&&(B.current=null,S&&S($e,"backdropClick"))},Q=Ns(s),K=C.useMemo(()=>({titleId:Q}),[Q]),te={transition:F,...$},X={transition:H,paper:O,backdrop:f,...I},J={slots:te,slotProps:X},[ne,oe]=cr("root",{elementType:Tfe,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:M,className:It(_.root,m),ref:t}),[se,re]=cr("backdrop",{elementType:Cfe,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:M}),[ie,ce]=cr("paper",{elementType:Efe,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:M,className:It(_.paper,O.className)}),[me,ye]=cr("container",{elementType:Mfe,externalForwardedProps:J,ownerState:M,className:_.container}),[we,Ce]=cr("transition",{elementType:Id,externalForwardedProps:J,ownerState:M,additionalProps:{appear:!0,in:k,timeout:A,role:"presentation"}});return h.jsx(ne,{closeAfterTransition:!0,slots:{backdrop:se},slotProps:{backdrop:{transitionDuration:A,as:u,...re}},disableEscapeKeyDown:y,onClose:S,open:k,onClick:j,...oe,...L,children:h.jsx(we,{...Ce,children:h.jsx(me,{onMouseDown:W,...ye,children:h.jsx(ie,{as:T,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Q,"aria-modal":l,...ce,children:h.jsx(Lz.Provider,{value:K,children:c})})})})})}),Rfe=Fe(El)({[`& .${Sg.container}`]:{outline:0},[`& .${Sg.paper}`]:{outline:0,minWidth:Px}}),Ofe=Fe(Ml)({"&:first-of-type":{padding:0}});function Pfe(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:a}=e,s=o?.dialog??Rfe,l=o?.mobileTransition??Id;return h.jsx(s,ke({open:r,onClose:n},a?.dialog,{TransitionComponent:l,TransitionProps:a?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:a?.mobilePaper,children:h.jsx(Ofe,{children:t})}))}const $fe=["props","getOpenDialogAriaText"],Dfe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Fn(e,$fe);const{slots:o,slotProps:a,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,name:b,label:x,inputRef:w,readOnly:S,disabled:k,localeText:T}=t,O=C.useRef(null),P=Ns(),$=a?.toolbar?.hidden??!1,{open:I,actions:F,layoutProps:A,renderCurrentView:H,fieldProps:L,contextValue:M}=rz(ke({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),_=o.field,B=br({elementType:_,externalSlotProps:a?.field,additionalProps:ke({},L,$&&{id:P},!(k||S)&&{onClick:F.onOpen,onKeyDown:zie(F.onOpen)},{readOnly:S??!0,disabled:k,className:s,sx:l,format:u,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,label:x,name:b},w?{inputRef:w}:{}),ownerState:t});B.inputProps=ke({},B.inputProps,{"aria-label":n(L.value)});const W=ke({textField:o.textField},B.slots),j=o.layout??cz;let Q=P;$&&(x?Q=`${P}-label`:Q=void 0);const K=ke({},a,{toolbar:ke({},a?.toolbar,{titleId:P}),mobilePaper:ke({"aria-labelledby":Q},a?.mobilePaper)}),te=pr(O,B.unstableFieldRef);return{renderPicker:()=>h.jsxs(uz,{contextValue:M,localeText:T,children:[h.jsx(_,ke({},B,{slots:W,slotProps:K,unstableFieldRef:te})),h.jsx(Pfe,ke({},F,{open:I,slots:o,slotProps:K,children:h.jsx(j,ke({},A,K?.layout,{slots:o,slotProps:K,children:H()}))}))]})}},zz=C.forwardRef(function(e,t){const n=pc(),r=Yr(),o=IL(e,"MuiMobileDatePicker"),a=ke({day:Sp,month:Sp,year:Sp},o.viewRenderers),s=ke({},o,{viewRenderers:a,format:BT(r,o,!1),slots:ke({field:Pz},o.slots),slotProps:ke({},o.slotProps,{field:u=>ke({},Lp(o.slotProps?.field,u),zL(o),{ref:t}),toolbar:ke({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=Dfe({props:s,valueManager:bl,valueType:"date",getOpenDialogAriaText:jL({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Oy});return l()});zz.propTypes={autoFocus:rt.bool,className:rt.string,closeOnSelect:rt.bool,dayOfWeekFormatter:rt.func,defaultValue:rt.object,disabled:rt.bool,disableFuture:rt.bool,disableHighlightToday:rt.bool,disableOpenPicker:rt.bool,disablePast:rt.bool,displayWeekNumber:rt.bool,enableAccessibleFieldDOMStructure:rt.any,fixedWeekNumber:rt.number,format:rt.string,formatDensity:rt.oneOf(["dense","spacious"]),inputRef:CL,label:rt.node,loading:rt.bool,localeText:rt.object,maxDate:rt.object,minDate:rt.object,monthsPerRow:rt.oneOf([3,4]),name:rt.string,onAccept:rt.func,onChange:rt.func,onClose:rt.func,onError:rt.func,onMonthChange:rt.func,onOpen:rt.func,onSelectedSectionsChange:rt.func,onViewChange:rt.func,onYearChange:rt.func,open:rt.bool,openTo:rt.oneOf(["day","month","year"]),orientation:rt.oneOf(["landscape","portrait"]),readOnly:rt.bool,reduceAnimations:rt.bool,referenceDate:rt.object,renderLoading:rt.func,selectedSections:rt.oneOfType([rt.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),rt.number]),shouldDisableDate:rt.func,shouldDisableMonth:rt.func,shouldDisableYear:rt.func,showDaysOutsideCurrentMonth:rt.bool,slotProps:rt.object,slots:rt.object,sx:rt.oneOfType([rt.arrayOf(rt.oneOfType([rt.func,rt.object,rt.bool])),rt.func,rt.object]),timezone:rt.string,value:rt.object,view:rt.oneOf(["day","month","year"]),viewRenderers:rt.shape({day:rt.func,month:rt.func,year:rt.func}),views:rt.arrayOf(rt.oneOf(["day","month","year"]).isRequired),yearsOrder:rt.oneOf(["asc","desc"]),yearsPerRow:rt.oneOf([3,4])};const Afe=["desktopModeMediaQuery"],h0=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=Fie}=n,o=Fn(n,Afe);return wL(r,{defaultMatches:!0})?h.jsx(Iz,ke({ref:t},o)):h.jsx(zz,ke({ref:t},o))});function jfe(e,t){if(!t)return;const n=t.trim();if(!n)return;const r=e??"string";if(r==="date"||r==="timestamp"||r==="timestamptz")return n.replace(/^@/,"");if(r.startsWith("filter<")){const o=n.replace(/^f/,""),a=o.match(/^'([^'\\]*)'$/)??o.match(/^"([^"\\]*)"$/);return a?a[1]:o}return r==="string"?Nfe(n):n}function Nfe(e){const t=e[0];return e.length>=2&&(t==="'"||t==='"')&&e[e.length-1]===t?e.slice(1,-1).replace(/\\(["'\\ntr])/g,(n,r)=>r==="n"?`
432
- `:r==="t"?" ":r==="r"?"\r":r):e}Ar.extend(OT);const CA=14,Ife=42;function Lfe(e){const t=(e.annotations??[]).filter(r=>r.trim().startsWith("#("));if(t.length===0)return;const n=[];for(const r of t){const o=r.trim(),a=o.match(/description="([^"]*)"/);if(a){n.push(a[1]);continue}const s=o.replace(/^#\(/,"").replace(/\)\s*$/,"").trim();s&&n.push(s)}return n.length>0?n.join(`
433
- `):void 0}function zfe({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:a}){const s=e.label??e.name??"",l=e.type??"string",u=Lfe(e),f=jfe(l,e.default),c=f!==void 0?`Default: ${f===""?"(empty)":f}`:void 0,m=u||c?h.jsxs(h.Fragment,{children:[u,u&&c?h.jsx("br",{}):null,c]}):void 0,y=l==="string"||hg(l)==="string",v=!fd(l)||typeof t!="string"||JJ(t),b=W=>h.jsx(ul,{label:s,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:h.jsxs(h.Fragment,{children:[`Not a ${W}. Clear it to pick one.`,m?h.jsx("br",{}):null,m]}),slotProps:{input:{endAdornment:h.jsx(yw,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),x=fd(l),w=e.control==="multiselect"&&x,S=fd(l),k=e.control==="select"||e.control==="multiselect",T=k?S?typeof t=="string"?ZJ(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(k&&y&&v&&!(!w&&T.length>1)){const W=j=>{const Q=S?PT(j):void 0;if(j.length===0||Q===""){n(null);return}n(S?Q:j[0])};return h.jsx($W,{multiple:w,disableCloseOnSelect:w,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:a?"Options unavailable":"No matching values",value:w?T:T[0]??null,onChange:(j,Q)=>W(Q===null?[]:Array.isArray(Q)?Q:[Q]),renderInput:j=>h.jsx(ul,{...j,label:s,size:"small",placeholder:T.length!==0?void 0:t===""?"All":f??"All",error:a,helperText:a?h.jsxs(h.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",m?h.jsx("br",{}):null,m]}):m,slotProps:{input:{...j.InputProps,endAdornment:h.jsxs(h.Fragment,{children:[o&&h.jsx(py,{size:16}),j.InputProps.endAdornment]})}}}),fullWidth:!0})}const O=fd(l)&&hg(l)==="number",{rangeMin:P,rangeMax:$}=e,I=O&&typeof t=="string"?tee(t):void 0,F=O&&typeof t=="string"?ree(t):void 0;if((O||l==="number")&&P!==void 0&&$!==void 0&&(!O||t===void 0||t===null||t===""||I!==void 0||F!==void 0)){const W=F??(I!==void 0?[I,$]:void 0),j=O?W?.[0]:typeof t=="number"?t:void 0;if(j===void 0&&t!==void 0&&t!==null&&t!=="")return b("number");const Q=j??P,K=W??[P,$],te=K[1]>=$?`≥ ${K[0]}`:`${K[0]} to ${K[1]}`,X=O&&t==="",J=j!==void 0||X;return h.jsxs(aC,{fullWidth:!0,children:[h.jsxs(Ct,{sx:{height:Ife,px:`${CA}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[h.jsxs(kr,{direction:"row",alignItems:"center",spacing:1,children:[h.jsx(St,{variant:"body2",color:"text.secondary",noWrap:!0,children:s}),h.jsx(St,{variant:"body2",sx:{fontWeight:600},children:J?X?"Any":O?te:String(Q):O?"Any":f??"Unset"}),J&&h.jsx(eo,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:h.jsx(s0,{fontSize:"small"})})]}),h.jsx(EG,{size:"small",min:P,max:$,value:O?K:Q,disableSwap:O,valueLabelDisplay:"auto","aria-label":O?void 0:s,getAriaLabel:O?ne=>ne===0?`${s} from`:`${s} to`:void 0,sx:{py:0,mt:.5},onChange:(ne,oe)=>{if(O){const[se,re]=Array.isArray(oe)?[oe[0],oe[1]]:[oe,oe];if(se<=P&&re>=$){n(null);return}n(re>=$?eee(se):nee(se,re));return}n(Array.isArray(oe)?oe[0]:oe)}})]}),m&&h.jsx(iC,{sx:{mx:`${CA}px`},children:m})]})}const A=fd(l)?hg(l):void 0,H=A==="date"||A==="timestamp"||A==="timestamptz",L=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),M=t==null||L;if(H&&!L){const W=Ffe(t);if(W!==void 0)return h.jsx(Bfe,{label:s,state:W,onChange:n,helperNode:m,defaultDisplay:f})}if(H&&M){const W=L?Ar.utc(t):null;return h.jsx(c0,{dateAdapter:FC,children:h.jsx(h0,{label:s,value:W?.isValid()?W:null,onChange:j=>n(j?j.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:m},field:{clearable:!0,onClear:()=>n(null)}}})})}if(l==="boolean"){const W=typeof t=="boolean";if(!W&&t!==void 0&&t!==null)return b("true or false");const j=e.default?.trim()==="true";return h.jsxs(aC,{children:[h.jsxs(kr,{direction:"row",alignItems:"center",children:[h.jsx(yp,{control:h.jsx(rC,{checked:W?t:j,onChange:Q=>n(Q.target.checked)}),label:s}),W&&h.jsx(eo,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:h.jsx(s0,{fontSize:"small"})})]}),m&&h.jsx(iC,{children:m})]})}if(l==="number"){const W=typeof t=="number"?t:"",j=t!=null;return j&&t!==""&&typeof t!="number"?b("number"):h.jsx(ul,{label:s,type:"number",value:W,onChange:Q=>{const K=Q.target.value;n(K===""?null:Number(K))},placeholder:f,helperText:m,slotProps:{input:{endAdornment:j&&h.jsx(yw,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const W=t instanceof Date?t:typeof t=="string"?(Q=>Q instanceof Date?Q:null)(G5(l,t)):null,j=W?Ar.utc(W):null;return t!=null&&t!==""&&W===null?b("date"):h.jsx(c0,{dateAdapter:FC,children:h.jsx(h0,{label:s,value:j,onChange:Q=>n(Q?pee(Q,W??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:m},field:{clearable:!0,onClear:()=>n(null)}}})})}const _=typeof t=="string"?t:"",B=t!=null;return h.jsx(ul,{label:s,value:_,onChange:W=>n(W.target.value),placeholder:B?void 0:f??(l.startsWith("filter<")?l:void 0),helperText:m,slotProps:{input:{endAdornment:B&&h.jsx(yw,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function yw({onClear:e}){return h.jsx(Uq,{position:"end",children:h.jsx(eo,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:h.jsx(s0,{fontSize:"small"})})})}function Ffe(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=aee(e);if(t!==void 0)return{kind:"preset",key:t};const n=lee(e);if(n!==void 0)return{kind:"days",...n}}const db="__custom__",vw="__any__";function Bfe({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const a=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[s,l]=C.useState(t.kind==="days"),[u,f]=C.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});C.useEffect(()=>{t.kind==="days"?(l(!0),f({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&l(!1)},[a]);const c=t.kind!=="unset",m=s?db:t.kind==="preset"?t.key:t.kind==="any"?vw:"",y=b=>{f(b),b.from&&b.to&&!Ar.utc(b.to).isBefore(Ar.utc(b.from))&&n(see(b.from,b.to))},v=b=>{const x=b?Ar.utc(b):null;return x?.isValid()?x:null};return h.jsxs(kr,{direction:"row",spacing:1,"data-testid":"time-range",children:[h.jsxs(ul,{select:!0,label:e,value:m,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:b=>{if(b===db)return"Custom range";if(b===vw)return"Any time";const x=n0.find(w=>w.key===b);return x?x.label:o??"Any time"}},input:{endAdornment:c?h.jsx(eo,{size:"small","aria-label":"clear value",onClick:()=>{l(!1),f({}),n(null)},sx:{mr:2},children:h.jsx(s0,{fontSize:"small"})}):void 0}},onChange:b=>{const x=b.target.value;if(x===db){l(!0);return}l(!1);const w=oee(x);w!==void 0&&n(w)},children:[t.kind==="any"&&h.jsx(rc,{value:vw,children:"Any time"}),n0.map(b=>h.jsx(rc,{value:b.key,children:b.label},b.key)),h.jsx(rc,{value:db,children:"Custom range"})]}),s&&h.jsxs(c0,{dateAdapter:FC,children:[h.jsx(h0,{label:"From",value:v(u.from),onChange:b=>y({...u,from:b?b.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),h.jsx(h0,{label:"To",value:v(u.to),minDate:v(u.from)??void 0,onChange:b=>y({...u,to:b?b.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function Fz({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:a,optionsLoading:s,optionsFailed:l,apply:u,title:f}){if(e.length===0)return null;const c=Array.from(t.values()).some(v=>v!==null),m=e.map(v=>h.jsx(Ct,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:h.jsx(zfe,{given:v,value:v.name?t.get(v.name):void 0,onChange:b=>v.name&&n(v.name,b),options:v.name?a?.get(v.name):void 0,optionsLoading:s,optionsFailed:v.name?l?.has(v.name):void 0})},v.name)),y=h.jsxs(kr,{direction:"row",alignItems:"center",spacing:1,children:[u&&h.jsx(wo,{variant:"contained",size:"small",disableElevation:!0,onClick:u.onApply,disabled:!u.pending,sx:{textTransform:"none"},children:"Apply"}),c&&h.jsx(wo,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?h.jsx(Ua,{elevation:0,sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"background.paper"},children:h.jsxs(kr,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[m,h.jsx(Ct,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:y})]})}):h.jsxs(Ua,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[h.jsxs(kr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[h.jsx(St,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:f??"Parameters"}),y]}),h.jsx(Ct,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:m})]})}const _fe=/^(https?|mailto|tel):/i,Ufe=/^[a-z][a-z0-9+.-]*:/i;function Vfe({href:e,title:t,children:n,context:r}){const o=!!e&&Ufe.test(e),a=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!a||!r){const m=o&&!_fe.test(e??"");return h.jsx("a",{href:m?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const s=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",l=new URL(e,`https://malloy.invalid/${s}`),u=l.pathname.slice(1)+l.search+l.hash,f=`/${r.environmentName}/${r.packageName}/${u}`,{onNavigate:c}=r;return h.jsx("a",{href:f,title:t,onClick:c?m=>{m.preventDefault(),c(f,m)}:void 0,children:n})}const Hfe={document:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:600,color:"text.primary",mb:1,mt:2},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p, & ul, & ol":{color:"text.primary",lineHeight:1.7,mb:1,fontSize:"16px"},"& li":{mb:.5}},caption:{color:"text.secondary",typography:"body2","& > :first-of-type":{mt:0},"& > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontSize:"inherit",fontWeight:600,m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:"monospace",fontSize:"0.9em"}}};function m0({children:e,variant:t="caption",links:n,sx:r}){return h.jsx(Ct,{sx:[Hfe[t],...Array.isArray(r)?r:[r]],children:h.jsx(_J,{options:{overrides:{a:{component:Vfe,props:{context:n}}}},children:e})})}function Jo({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const l=h.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[h.jsx(py,{size:t,color:n,thickness:r}),e&&h.jsx(St,{variant:s,color:"text.secondary",children:e})]});return o?h.jsx(Ct,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}const Wfe=new Set(["bar","line","chart","scatter_chart"]),qfe=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function jbe(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":Wfe.has(e)?"container":"content"}function Nbe(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&qfe.has(e)}function Ibe(e){return e==="dashboard"?3:2}function Yfe(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function Lbe(e,t){const n=Yfe(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const Gfe=400,Kfe=700,Qfe=600,Xfe=800,Zfe=400,kA=2e3;function Jfe(e){return e===void 0?kA:Math.min(e,kA)}function epe({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??Zfe:t===void 0||t<=0?Jfe(n):n===void 0?t:Math.min(n,t)}const tpe=2,npe=16;function rpe(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function ope({tiles:e,columns:t,keyOf:n,renderTile:r}){return h.jsx(Ct,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${npe}px`},children:e.map((o,a)=>h.jsx(Ct,{sx:{display:"grid",minWidth:0,gridColumn:{md:rpe(o,t)}},children:r(o,a)},n(o,a)))})}const ape=tr(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"}));function ipe(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function d2(e,{enabled:t=!0}={}){const{apiClients:n}=_r();return ho({queryKey:ipe(e),queryFn:()=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId}),enabled:t,...EZ})}const Bz=tr(h.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));function wp({sx:e,...t}){const{theme:n}=ku();return h.jsx(eo,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const spe=new Set(["warn","error"]);function lpe(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!spe.has(r.severity??"")||(r.severity==="error"&&(n=!0),t.includes(r.message)||t.push(r.message));if(t.length)return{severity:n?"error":"warn",title:t.join(`
434
- `)}}const cpe=C.lazy(()=>jo(()=>import("./RenderedResult-mDE-4u8S.es-s0zwv__L.js"),[]).then(e=>e.c));function f2({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o}){const a=C.useRef(null),[s,l]=C.useState(void 0),[u,f]=C.useState(void 0),[c,m]=C.useState(!1),y=lpe(r);if(!e)return null;if(n>0&&e.length>n&&!c)return h.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[h.jsx(HJ,{sx:{fontSize:48,color:"#757575"}}),h.jsx(St,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),h.jsx(wo,{variant:"contained",color:"primary",onClick:()=>m(!0),children:"Proceed"})]});const v=h.jsx(Jo,{text:"Loading...",centered:!0,size:32}),b=epe({sizing:s,contentHeight:u,maxHeight:t});return h.jsxs(Ct,{ref:a,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden"},children:[e&&h.jsx(C.Suspense,{fallback:v,children:h.jsx(cpe,{result:e,height:b,onSizeChange:f,onSizing:l,drill:o})}),y&&h.jsx(Ct,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:h.jsx(xa,{title:y.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:h.jsx(wp,{"aria-label":"Render tag warnings",children:h.jsx(Bz,{fontSize:"small",color:y.severity==="error"?"error":"warning"})})})})]})}function p2({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:a,transform:s}){const{data:l,isSuccess:u,isError:f,error:c}=e,m=l?.data.result,y=C.useMemo(()=>m!==void 0&&s?s(m):m,[m,s]);return f?h.jsx(Ct,{sx:{p:2},children:h.jsx(ca,{context:t,error:c})}):u?h.jsx(f2,{result:y,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:a}):h.jsx(Jo,{text:n})}const upe=new Set(["bar_chart","line_chart","scatter_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),dpe={value:`# big_value
435
- `},fpe=/^#\(malloy\)[\s\S]*\bcalculation\b/;function ppe(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&fpe.test(t.value.trim())):!1}function hpe(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(ppe))return!1;const n=e.data;return n?n.kind==="record_cell"?!0:n.kind==="array_cell"&&Array.isArray(n.array_value)&&n.array_value.length===1:!1}function mpe(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=n.slice(1).replace(/"(?:[^"\\]|\\.)*"/g,'""');for(const o of r.split(/[\s{}=.,[\]]+/))if(upe.has(o))return!0}return!1}function gpe(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!hpe(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return mpe(r)?e:JSON.stringify({...t,annotations:[dpe,...n]})}const _z=20,ype={radius:"8px",padding:`${_z}px`};function zbe(e,t=ype){return{"--malloy-render--font-family":e.font.family,"--malloy-render--table-font-size":`${e.font.size}px`,"--malloy-render--table-header-color":e.tableHeader,"--malloy-render--table-body-color":e.tableBody,"--malloy-render--table-border":e.border,"--malloy-render--table-pinned-border":e.pinnedBorder,"--malloy-render--tile-background":e.tile,"--publisher-dashboard-root":e.dashboardRoot,"--malloy-render--label-color":e.tileTitle,"--malloy-render--value-color":e.valueColor,"--publisher-drill-link":e.drillLink,"--publisher-dashboard-card-radius":t.radius,"--publisher-dashboard-card-padding":t.padding}}function vpe({borderless:e=!1,sx:t,children:n}){const{theme:r}=ku();return h.jsx(Ua,{elevation:0,sx:[{border:e?"none":r.border,borderRadius:e?0:1,background:e?"none":r.tile,overflow:"hidden",minWidth:0,minHeight:120,p:e?"12px 0":`${_z}px`},...Array.isArray(t)?t:[t]],children:n})}function bpe({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=ku();return h.jsxs(Ct,{sx:{pb:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[h.jsxs(Ct,{sx:{minWidth:0,flex:1},children:[h.jsx(St,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&h.jsx(St,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function TA(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?H5(t):e}function MA({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:a,label:s,subtitle:l,borderless:u,givens:f,declaredTypes:c,givenNames:m,height:y,maxResultSize:v,drill:b,onExplore:x}){const{theme:w}=ku(),S=d2({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:a!==void 0?`run: ${a}`:void 0,givens:dx(f,c,m)});return h.jsxs(vpe,{borderless:u,sx:{"& .publisher-tile-explore":{opacity:0,transition:"opacity 120ms"},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[a!==void 0&&h.jsx(bpe,{title:s??TA(a),subtitle:l,tooltip:a,action:x&&h.jsx(xa,{title:"Explore from here",children:h.jsx(eo,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${s??TA(a)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:w.tileTitle},children:h.jsx(ape,{fontSize:"small"})})})}),h.jsx(p2,{state:S,context:a??o??r,maxHeight:y,maxResultSize:v,drill:b,transform:a!==void 0?gpe:void 0})]})}const Rs=tr(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function EA({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function RA(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function xpe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:u,getOptionLabel:f})=>{let c=s?u.trim():u;n&&(c=c.toLowerCase()),t&&(c=RA(c));const m=c?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=RA(v)),o==="start"?v.startsWith(c):v.includes(c)}):l;return typeof r=="number"?m.slice(0,r):m}}const Spe=xpe(),OA=5,wpe=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),Cpe=[];function PA(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function kpe(e){const{unstable_isActiveElementInListbox:t=wpe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:f="useAutocomplete",defaultValue:c=e.multiple?Cpe:null,disableClearable:m=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:b=!1,disableListWrap:x=!1,filterOptions:w=Spe,filterSelectedOptions:S=!1,freeSolo:k=!1,getOptionDisabled:T,getOptionKey:O,getOptionLabel:P=de=>de.label??de,groupBy:$,handleHomeEndKeys:I=!e.freeSolo,id:F,includeInputInList:A=!1,inputValue:H,isOptionEqualToValue:L=(de,pe)=>de===pe,multiple:M=!1,onChange:_,onClose:B,onHighlightChange:W,onInputChange:j,onOpen:Q,open:K,openOnFocus:te=!1,options:X,readOnly:J=!1,renderValue:ne,selectOnFocus:oe=!e.freeSolo,value:se}=e,re=Ns(F);let ie=P;ie=de=>{const pe=P(de);return typeof pe!="string"?String(pe):pe};const ce=C.useRef(!1),me=C.useRef(!0),ye=C.useRef(null),we=C.useRef(null),[Ce,$e]=C.useState(null),[fe,Te]=C.useState(-1),nt=o?0:-1,ze=C.useRef(nt),Ae=C.useRef(PA(c??se,M,ie)).current,[ue,bt]=mi({controlled:se,default:c,name:f}),[Be,it]=mi({controlled:H,default:Ae,name:f,state:"inputValue"}),[pt,_t]=C.useState(!1),Ht=C.useCallback((de,pe,He)=>{if(!(M?ue.length<pe.length:pe!==null)&&!l)return;const vt=PA(pe,M,ie,ne);Be!==vt&&(it(vt),j&&j(de,vt,He))},[ie,Be,M,j,it,l,ue,ne]),[at,Xe]=mi({controlled:K,default:!1,name:f,state:"open"}),[ot,Ne]=C.useState(!0),he=!M&&ue!=null&&Be===ie(ue),qe=at&&!J,Me=qe?w(X.filter(de=>!(S&&(M?ue:[ue]).some(pe=>pe!==null&&L(de,pe)))),{inputValue:he&&ot?"":Be,getOptionLabel:ie}):[],Mt=Mre({filteredOptions:Me,value:ue,inputValue:Be});C.useEffect(()=>{const de=ue!==Mt.value;pt&&!de||k&&!de||Ht(null,ue,"reset")},[ue,Ht,pt,Mt.value,k]);const Rt=at&&Me.length>0&&!J,gt=Ft(de=>{if(de===-1)ye.current.focus();else{const pe=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${pe}="${de}"]`).focus()}});C.useEffect(()=>{M&&fe>ue.length-1&&(Te(-1),gt(-1))},[ue,M,fe,gt]);function ct(de,pe){if(!we.current||de<0||de>=Me.length)return-1;let He=de;for(;;){const vt=we.current.querySelector(`[data-option-index="${He}"]`),Ke=b?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!Ke)return He;if(pe==="next"?He=(He+1)%Me.length:He=(He-1+Me.length)%Me.length,He===de)return-1}}const At=Ft(({event:de,index:pe,reason:He})=>{if(ze.current=pe,pe===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${re}-option-${pe}`),W&&["mouse","keyboard","touch"].includes(He)&&W(de,pe===-1?null:Me[pe],He),!we.current)return;const vt=we.current.querySelector(`[role="option"].${n}-focused`);vt&&(vt.classList.remove(`${n}-focused`),vt.classList.remove(`${n}-focusVisible`));let Ke=we.current;if(we.current.getAttribute("role")!=="listbox"&&(Ke=we.current.parentElement.querySelector('[role="listbox"]')),!Ke)return;if(pe===-1){Ke.scrollTop=0;return}const nn=we.current.querySelector(`[data-option-index="${pe}"]`);if(nn&&(nn.classList.add(`${n}-focused`),He==="keyboard"&&nn.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&He!=="mouse"&&He!=="touch")){const cn=nn,pn=Ke.clientHeight+Ke.scrollTop,ge=cn.offsetTop+cn.offsetHeight;ge>pn?Ke.scrollTop=ge-Ke.clientHeight:cn.offsetTop-cn.offsetHeight*($?1.3:0)<Ke.scrollTop&&(Ke.scrollTop=cn.offsetTop-cn.offsetHeight*($?1.3:0))}}),Wt=Ft(({event:de,diff:pe,direction:He="next",reason:vt})=>{if(!qe)return;const Ke=ct((()=>{const nn=Me.length-1;if(pe==="reset")return nt;if(pe==="start")return 0;if(pe==="end")return nn;const cn=ze.current+pe;return cn<0?cn===-1&&A?-1:x&&ze.current!==-1||Math.abs(pe)>1?0:nn:cn>nn?cn===nn+1&&A?-1:x||Math.abs(pe)>1?nn:0:cn})(),He);if(At({index:Ke,reason:vt,event:de}),r&&pe!=="reset")if(Ke===-1)ye.current.value=Be;else{const nn=ie(Me[Ke]);ye.current.value=nn,nn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&ye.current.setSelectionRange(Be.length,nn.length)}}),dn=!EA({array1:Mt.filteredOptions,array2:Me,parser:ie}),bn=()=>{const de=(pe,He)=>{const vt=pe?ie(pe):"",Ke=He?ie(He):"";return vt===Ke};if(ze.current!==-1&&!EA({array1:Mt.filteredOptions,array2:Me,parser:ie})&&Mt.inputValue===Be&&(M?ue.length===Mt.value.length&&Mt.value.every((pe,He)=>ie(ue[He])===ie(pe)):de(Mt.value,ue))){const pe=Mt.filteredOptions[ze.current];if(pe)return Me.findIndex(He=>ie(He)===ie(pe))}return-1},_n=C.useCallback(()=>{if(!qe)return;const de=bn();if(de!==-1){ze.current=de;return}const pe=M?ue[0]:ue;if(Me.length===0||pe==null){Wt({diff:"reset"});return}if(we.current){if(pe!=null){const He=Me[ze.current];if(M&&He&&ue.findIndex(Ke=>L(He,Ke))!==-1)return;const vt=Me.findIndex(Ke=>L(Ke,pe));vt===-1?Wt({diff:"reset"}):At({index:vt});return}if(ze.current>=Me.length-1){At({index:Me.length-1});return}At({index:ze.current})}},[Me.length,M?!1:ue,S,Wt,At,qe,Be,M]),Gn=Ft(de=>{AC(we,de),de&&_n()});C.useEffect(()=>{dn&&_n()},[_n,dn]);const Jt=de=>{at||(Xe(!0),Ne(!0),Q&&Q(de))},Ln=(de,pe)=>{at&&(Xe(!1),B&&B(de,pe))},be=(de,pe,He,vt)=>{if(M){if(ue.length===pe.length&&ue.every((Ke,nn)=>Ke===pe[nn]))return}else if(ue===pe)return;_&&_(de,pe,He,vt),bt(pe)},Bn=C.useRef(!1),Rn=(de,pe,He="selectOption",vt="options")=>{let Ke=He,nn=pe;if(M){nn=Array.isArray(ue)?ue.slice():[];const cn=nn.findIndex(pn=>L(pe,pn));cn===-1?nn.push(pe):vt!=="freeSolo"&&(nn.splice(cn,1),Ke="removeOption")}Ht(de,nn,Ke),be(de,nn,Ke,{option:pe}),!y&&(!de||!de.ctrlKey&&!de.metaKey)&&Ln(de,Ke),(s===!0||s==="touch"&&Bn.current||s==="mouse"&&!Bn.current)&&ye.current.blur()};function en(de,pe){if(de===-1)return-1;let He=de;for(;;){if(pe==="next"&&He===ue.length||pe==="previous"&&He===-1)return-1;const vt=ne?"data-item-index":"data-tag-index",Ke=Ce.querySelector(`[${vt}="${He}"]`);if(!Ke||!Ke.hasAttribute("tabindex")||Ke.disabled||Ke.getAttribute("aria-disabled")==="true")He+=pe==="next"?1:-1;else return He}}const le=(de,pe)=>{if(!M)return;Be===""&&Ln(de,"toggleInput");let He=fe;fe===-1?Be===""&&pe==="previous"&&(He=ue.length-1):(He+=pe==="next"?1:-1,He<0&&(He=0),He===ue.length&&(He=-1)),He=en(He,pe),Te(He),gt(He)},De=de=>{ce.current=!0,it(""),j&&j(de,"","clear"),be(de,M?[]:null,"clear")},Le=de=>pe=>{if(de.onKeyDown&&de.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&!["ArrowLeft","ArrowRight"].includes(pe.key)&&(Te(-1),gt(-1)),pe.which!==229))switch(pe.key){case"Home":qe&&I&&(pe.preventDefault(),Wt({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":qe&&I&&(pe.preventDefault(),Wt({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),Wt({diff:-OA,direction:"previous",reason:"keyboard",event:pe}),Jt(pe);break;case"PageDown":pe.preventDefault(),Wt({diff:OA,direction:"next",reason:"keyboard",event:pe}),Jt(pe);break;case"ArrowDown":pe.preventDefault(),Wt({diff:1,direction:"next",reason:"keyboard",event:pe}),Jt(pe);break;case"ArrowUp":pe.preventDefault(),Wt({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Jt(pe);break;case"ArrowLeft":!M&&ne?gt(0):le(pe,"previous");break;case"ArrowRight":!M&&ne?gt(-1):le(pe,"next");break;case"Enter":if(ze.current!==-1&&qe){const He=Me[ze.current],vt=T?T(He):!1;if(pe.preventDefault(),vt)return;Rn(pe,He,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else k&&Be!==""&&he===!1&&(M&&pe.preventDefault(),Rn(pe,Be,"createOption","freeSolo"));break;case"Escape":qe?(pe.preventDefault(),pe.stopPropagation(),Ln(pe,"escape")):u&&(Be!==""||M&&ue.length>0||ne)&&(pe.preventDefault(),pe.stopPropagation(),De(pe));break;case"Backspace":if(M&&!J&&Be===""&&ue.length>0){const He=fe===-1?ue.length-1:fe,vt=ue.slice();vt.splice(He,1),be(pe,vt,"removeOption",{option:ue[He]})}!M&&ne&&!J&&(bt(null),gt(-1));break;case"Delete":if(M&&!J&&Be===""&&ue.length>0&&fe!==-1){const He=fe,vt=ue.slice();vt.splice(He,1),be(pe,vt,"removeOption",{option:ue[He]})}!M&&ne&&!J&&(bt(null),gt(-1));break}},Ye=de=>{_t(!0),te&&!ce.current&&Jt(de)},ut=de=>{if(t(we)){ye.current.focus();return}_t(!1),me.current=!0,ce.current=!1,a&&ze.current!==-1&&qe?Rn(de,Me[ze.current],"blur"):a&&k&&Be!==""?Rn(de,Be,"blur","freeSolo"):l&&Ht(de,ue,"blur"),Ln(de,"blur")},zt=de=>{const pe=de.target.value;Be!==pe&&(it(pe),Ne(!1),j&&j(de,pe,"input")),pe===""?!m&&!M&&be(de,null,"clear"):Jt(de)},Ut=de=>{const pe=Number(de.currentTarget.getAttribute("data-option-index"));ze.current!==pe&&At({event:de,index:pe,reason:"mouse"})},jt=de=>{At({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Bn.current=!0},mt=de=>{const pe=Number(de.currentTarget.getAttribute("data-option-index"));Rn(de,Me[pe],"selectOption"),Bn.current=!1},Lt=de=>pe=>{const He=ue.slice();He.splice(de,1),be(pe,He,"removeOption",{option:ue[de]})},Ot=de=>{be(de,null,"removeOption",{option:ue})},kt=de=>{at?Ln(de,"toggleInput"):Jt(de)},qt=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==re&&de.preventDefault()},On=de=>{de.currentTarget.contains(de.target)&&(ye.current.focus(),oe&&me.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),me.current=!1)},Kn=de=>{!v&&(Be===""||!at)&&kt(de)};let xn=k&&Be.length>0;xn=xn||(M?ue.length>0:ue!==null);let fn=Me;return $&&(fn=Me.reduce((de,pe,He)=>{const vt=$(pe);return de.length>0&&de[de.length-1].group===vt?de[de.length-1].options.push(pe):de.push({key:He,index:He,group:vt,options:[pe]}),de},[])),v&&pt&&ut(),{getRootProps:(de={})=>({...de,onKeyDown:Le(de),onMouseDown:qt,onClick:On}),getInputLabelProps:()=>({id:`${re}-label`,htmlFor:re}),getInputProps:()=>({id:re,value:Be,onBlur:ut,onFocus:Ye,onChange:zt,onMouseDown:Kn,"aria-activedescendant":qe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Rt?`${re}-listbox`:void 0,"aria-expanded":Rt,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:De}),getItemProps:({index:de=0}={})=>({...M&&{key:de},...ne?{"data-item-index":de}:{"data-tag-index":de},tabIndex:-1,...!J&&{onDelete:M?Lt(de):Ot}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:kt}),getTagProps:({index:de})=>({key:de,"data-tag-index":de,tabIndex:-1,...!J&&{onDelete:Lt(de)}}),getListboxProps:()=>({role:"listbox",id:`${re}-listbox`,"aria-labelledby":`${re}-label`,ref:Gn,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:pe})=>{const He=(M?ue:[ue]).some(Ke=>Ke!=null&&L(pe,Ke)),vt=T?T(pe):!1;return{key:O?.(pe)??ie(pe),tabIndex:-1,role:"option",id:`${re}-option-${de}`,onMouseMove:Ut,onClick:mt,onTouchStart:jt,"data-option-index":de,"aria-disabled":vt,"aria-selected":He}},id:re,inputValue:Be,value:ue,dirty:xn,expanded:qe&&Ce,popupOpen:qe,focused:pt||fe!==-1,anchorEl:Ce,setAnchorEl:$e,focusedItem:fe,focusedTag:fe,groupedOptions:fn}}function Tpe(e){return tn("MuiListSubheader",e)}Kt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Mpe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${Et(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Zt(s,Tpe,t)},Epe=Fe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Et(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(qn(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),XC=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1,...f}=n,c={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:u},m=Mpe(c);return h.jsx(Epe,{as:a,className:It(m.root,r),ref:t,ownerState:c,...f})});XC&&(XC.muiSkipListHighlight=!0);const Rpe=tr(h.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function Ope(e){return tn("MuiAutocomplete",e)}const Jn=Kt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var $A,DA;const Ppe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:u,popupOpen:f,size:c}=e,m={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${Et(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Zt(m,Ope,t)},$pe=Fe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${Jn.tag}`]:t.tag},{[`& .${Jn.tag}`]:t[`tagSize${Et(l)}`]},{[`& .${Jn.inputRoot}`]:t.inputRoot},{[`& .${Jn.input}`]:t.input},{[`& .${Jn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Jn.focused} .${Jn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Jn.clearIndicator}`]:{visibility:"visible"}},[`& .${Jn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Jn.inputRoot}`]:{[`.${Jn.hasPopupIcon}&, .${Jn.hasClearIcon}&`]:{paddingRight:30},[`.${Jn.hasPopupIcon}.${Jn.hasClearIcon}&`]:{paddingRight:56},[`& .${Jn.input}`]:{width:0,minWidth:30}},[`& .${eu.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${eu.root}.${li.sizeSmall}`]:{[`& .${eu.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ji.root}`]:{padding:9,[`.${Jn.hasPopupIcon}&, .${Jn.hasClearIcon}&`]:{paddingRight:39},[`.${Jn.hasPopupIcon}.${Jn.hasClearIcon}&`]:{paddingRight:65},[`& .${Jn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Jn.endAdornment}`]:{right:9}},[`& .${ji.root}.${li.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Jn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ci.root}`]:{paddingTop:19,paddingLeft:8,[`.${Jn.hasPopupIcon}&, .${Jn.hasClearIcon}&`]:{paddingRight:39},[`.${Jn.hasPopupIcon}.${Jn.hasClearIcon}&`]:{paddingRight:65},[`& .${ci.input}`]:{padding:"7px 4px"},[`& .${Jn.endAdornment}`]:{right:9}},[`& .${ci.root}.${li.sizeSmall}`]:{paddingBottom:1,[`& .${ci.input}`]:{padding:"2.5px 4px"}},[`& .${li.hiddenLabel}`]:{paddingTop:8},[`& .${ci.root}.${li.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Jn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ci.root}.${li.hiddenLabel}.${li.sizeSmall}`]:{[`& .${Jn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Jn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Jn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Jn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Jn.inputRoot}`]:{flexWrap:"wrap"}}}]}),Dpe=Fe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ape=Fe(cs,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),jpe=Fe(cs,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Npe=Fe(JT,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(qn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Ipe=Fe(Hd,{name:"MuiAutocomplete",slot:"Paper"})(qn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Lpe=Fe("div",{name:"MuiAutocomplete",slot:"Loading"})(qn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),zpe=Fe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(qn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Fpe=Fe("ul",{name:"MuiAutocomplete",slot:"Listbox"})(qn(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Jn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Jn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Jn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Jn.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Jn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Bpe=Fe(XC,{name:"MuiAutocomplete",slot:"GroupLabel"})(qn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),_pe=Fe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Jn.option}`]:{paddingLeft:24}}),Upe=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:u,clearIcon:f=$A||($A=h.jsx(Rpe,{fontSize:"small"})),clearOnBlur:c=!n.freeSolo,clearOnEscape:m=!1,clearText:y="Clear",closeText:v="Close",componentsProps:b,defaultValue:x=n.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:k=!1,disabledItemsFocusable:T=!1,disableListWrap:O=!1,disablePortal:P=!1,filterOptions:$,filterSelectedOptions:I=!1,forcePopupIcon:F="auto",freeSolo:A=!1,fullWidth:H=!1,getLimitTagsText:L=ge=>`+${ge}`,getOptionDisabled:M,getOptionKey:_,getOptionLabel:B,isOptionEqualToValue:W,groupBy:j,handleHomeEndKeys:Q=!n.freeSolo,id:K,includeInputInList:te=!1,inputValue:X,limitTags:J=-1,ListboxComponent:ne,ListboxProps:oe,loading:se=!1,loadingText:re="Loading…",multiple:ie=!1,noOptionsText:ce="No options",onChange:me,onClose:ye,onHighlightChange:we,onInputChange:Ce,onOpen:$e,open:fe,openOnFocus:Te=!1,openText:nt="Open",options:ze,PaperComponent:Ae,PopperComponent:ue,popupIcon:bt=DA||(DA=h.jsx(Sz,{})),readOnly:Be=!1,renderGroup:it,renderInput:pt,renderOption:_t,renderTags:Ht,renderValue:at,selectOnFocus:Xe=!n.freeSolo,size:ot="medium",slots:Ne={},slotProps:he={},value:qe,...Me}=n,{getRootProps:Mt,getInputProps:Rt,getInputLabelProps:gt,getPopupIndicatorProps:ct,getClearProps:At,getItemProps:Wt,getListboxProps:dn,getOptionProps:bn,value:_n,dirty:Gn,expanded:Jt,id:Ln,popupOpen:be,focused:Bn,focusedItem:Rn,anchorEl:en,setAnchorEl:le,inputValue:De,groupedOptions:Le}=kpe({...n,componentName:"Autocomplete"}),Ye=!w&&!k&&Gn&&!Be,ut=(!A||F===!0)&&F!==!1,{onMouseDown:zt}=Rt(),{ref:Ut,...jt}=dn(),mt=B||(ge=>ge.label??ge),Lt={...n,disablePortal:P,expanded:Jt,focused:Bn,fullWidth:H,getOptionLabel:mt,hasClearIcon:Ye,hasPopupIcon:ut,inputFocused:Rn===-1,popupOpen:be,size:ot},Ot=Ppe(Lt),kt={slots:{paper:Ae,popper:ue,...Ne},slotProps:{chip:l,listbox:oe,...b,...he}},[qt,On]=cr("listbox",{elementType:Fpe,externalForwardedProps:kt,ownerState:Lt,className:Ot.listbox,additionalProps:jt,ref:Ut}),[Kn,xn]=cr("paper",{elementType:Hd,externalForwardedProps:kt,ownerState:Lt,className:Ot.paper}),[fn,de]=cr("popper",{elementType:JT,externalForwardedProps:kt,ownerState:Lt,className:Ot.popper,additionalProps:{disablePortal:P,style:{width:en?en.clientWidth:null},role:"presentation",anchorEl:en,open:be}});let pe;const He=ge=>({className:Ot.tag,disabled:k,...Wt(ge)});if(ie?_n.length>0&&(Ht?pe=Ht(_n,He,Lt):at?pe=at(_n,He,Lt):pe=_n.map((ge,Re)=>{const{key:We,...yt}=He({index:Re});return h.jsx(lz,{label:mt(ge),size:ot,...yt,...kt.slotProps.chip},We)})):at&&_n!=null&&(pe=at(_n,He,Lt)),J>-1&&Array.isArray(pe)){const ge=pe.length-J;!Bn&&ge>0&&(pe=pe.splice(0,J),pe.push(h.jsx("span",{className:Ot.tag,children:L(ge)},pe.length)))}const vt=it||(ge=>h.jsxs("li",{children:[h.jsx(Bpe,{className:Ot.groupLabel,ownerState:Lt,component:"div",children:ge.group}),h.jsx(_pe,{className:Ot.groupUl,ownerState:Lt,children:ge.children})]},ge.key)),Ke=_t||((ge,Re)=>{const{key:We,...yt}=ge;return h.jsx("li",{...yt,children:mt(Re)},We)}),nn=(ge,Re)=>{const We=bn({option:ge,index:Re});return Ke({...We,className:Ot.option},ge,{selected:We["aria-selected"],index:Re,inputValue:De},Lt)},cn=kt.slotProps.clearIndicator,pn=kt.slotProps.popupIndicator;return h.jsxs(C.Fragment,{children:[h.jsx($pe,{ref:t,className:It(Ot.root,u),ownerState:Lt,...Mt(Me),children:pt({id:Ln,disabled:k,fullWidth:!0,size:ot==="small"?"small":void 0,InputLabelProps:gt(),InputProps:{ref:le,className:Ot.inputRoot,startAdornment:pe,onMouseDown:ge=>{ge.target===ge.currentTarget&&zt(ge)},...(Ye||ut)&&{endAdornment:h.jsxs(Dpe,{className:Ot.endAdornment,ownerState:Lt,children:[Ye?h.jsx(Ape,{...At(),"aria-label":y,title:y,ownerState:Lt,...cn,className:It(Ot.clearIndicator,cn?.className),children:f}):null,ut?h.jsx(jpe,{...ct(),disabled:k,"aria-label":be?v:nt,title:be?v:nt,ownerState:Lt,...pn,className:It(Ot.popupIndicator,pn?.className),children:bt}):null]})}},inputProps:{className:Ot.input,disabled:k,readOnly:Be,...Rt()}})}),en?h.jsx(Npe,{as:fn,...de,children:h.jsxs(Ipe,{as:Kn,...xn,children:[se&&Le.length===0?h.jsx(Lpe,{className:Ot.loading,ownerState:Lt,children:re}):null,Le.length===0&&!A&&!se?h.jsx(zpe,{className:Ot.noOptions,ownerState:Lt,role:"presentation",onMouseDown:ge=>{ge.preventDefault()},children:ce}):null,Le.length>0?h.jsx(qt,{as:ne,...On,children:Le.map((ge,Re)=>j?vt({key:ge.key,group:ge.group,children:ge.options.map((We,yt)=>nn(We,ge.index+yt))}):nn(ge,Re))}):null]})}):null]})});function Vpe({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a}){return hn.useEffect(()=>{o&&o(t)},[t,o]),h.jsx(O5,{children:h.jsxs(qV,{spacing:2,component:"section",children:[h.jsx(Wpe,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:a}),h.jsx(AN,{height:"5px"})]})})}function bw(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Hpe({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a}){const[s,l]=hn.useState(n||bw()),[u,f]=hn.useState(void 0);hn.useEffect(()=>{n&&l(n)},[n]);const[c,m]=hn.useState([]),{MalloyExplorerProvider:y,QueryPanel:v,ResizableCollapsiblePanel:b,ResultPanel:x,SourcePanel:w}=r;hn.useEffect(()=>{t&&t(s)},[t,s]);const{environmentName:S,packageName:k,versionId:T}=yo(a),{apiClients:O}=_r(),P=Vo({mutationFn:()=>{const A=typeof s?.malloyQuery=="string"?s.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return f({executionState:"running",query:s?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{P.reset(),f(void 0)},response:{result:{}}}),l({...s,query:A}),O.models.executeQueryModel(S,k,e.modelPath,{query:A,sourceName:void 0,queryName:void 0,versionId:T})},onSuccess:A=>{if(A){const H=JSON.parse(A.data.result);l({...s,malloyResult:H}),f(L=>L?{...L,executionState:"finished",response:{result:H}}:void 0)}},onError:A=>{f(void 0),console.error("Query execution error:",A)}}),[$,I]=hn.useState(e.sourceInfo.name);hn.useEffect(()=>{$!==e.sourceInfo.name&&(I(e.sourceInfo.name),l(bw()),f(void 0))},[e,$]);const F=hn.useCallback(A=>{l({...s,malloyQuery:A,malloyResult:void 0})},[s]);return $!==e.sourceInfo.name?h.jsx("div",{children:"Loading..."}):h.jsx(P5,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:h.jsx(y,{source:e.sourceInfo,query:s?.malloyQuery,topValues:[],onFocusedNestViewPathChange:m,focusedNestViewPath:c,onQueryChange:F,children:h.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[h.jsx(b,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:h.jsx(w,{onRefresh:()=>l(bw())})}),h.jsx(b,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:h.jsx(v,{runQuery:()=>{console.log(`running query with: ${s?.malloyQuery}`);try{P.mutate()}catch(A){console.error("Error running query:",A)}}})}),h.jsx(x,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:A=>l({...s,malloyQuery:A}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Wpe(e){const[t,n]=C.useState(null),[r,o]=C.useState(null),[a,s]=C.useState(!0);return C.useEffect(()=>{let l=!0;return Promise.all([jo(()=>import("./index-DplzDOL2.js"),__vite__mapDeps([0,1,2,3,4,5,6])),jo(()=>import("./index-B5_U5YBb.js").then(u=>u.i),__vite__mapDeps([4,3,2]))]).then(([u,f])=>{l&&(n(u),o(f),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?h.jsx(vZ,{children:h.jsx(P5,{children:h.jsx(AN,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):h.jsx(Hpe,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function h2(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:a}=yo(e),{apiClients:s}=_r();return ho({queryKey:["package",r,o,n,a],queryFn:async()=>(await s.models.getModel(r,o,n,a)).data,enabled:t})}function Uz({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a}){const[s,l]=hn.useState(r);hn.useEffect(()=>{l(r)},[r]);const{data:u,isError:f,isLoading:c,error:m}=h2(a,!e),{modelPath:y}=yo(a),v=e||u;if(c&&!e)return h.jsx(Jo,{text:"Fetching Model..."});if(f&&!e)return console.log("error",m),h.jsx(ca,{error:m,context:`ModelExplorer > ${y}`});if(!v)return h.jsx(Jo,{text:"Loading..."});const b=(v?.sourceInfos||[]).map((w,S)=>{try{return JSON.parse(w)?.name||`Source ${S+1}`}catch{return`Source ${S+1}`}}),x=b[s]||"";return h.jsxs(hZ,{variant:"outlined",children:[h.jsx(mZ,{children:h.jsx(kr,{sx:{flexDirection:"row"},children:h.jsx(Upe,{size:"small",id:"size-small-standard",disablePortal:!0,options:b,value:x,onChange:(w,S)=>{if(!S)return;const k=b.indexOf(S);k>=0&&(l(k),o?.(k))},renderInput:w=>h.jsx(vr,{...w}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),h.jsx(O5,{children:h.jsxs(kr,{spacing:2,component:"section",children:[Array.isArray(v.sourceInfos)&&v.sourceInfos.length>0&&h.jsx(Vpe,{sourceAndPaths:v.sourceInfos.map(w=>({sourceInfo:JSON.parse(w),modelPath:y})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:a}),h.jsx(Ct,{height:"5px"})]})})]})}function m2({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:s,initialSelectedSourceIndex:l,onChange:u,onSourceChange:f}){return h.jsxs(Xi,{open:e,onClose:t,fullScreen:!0,children:[h.jsxs(Ji,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,h.jsx(eo,{onClick:t,sx:{color:"text.secondary"},children:h.jsx(Rs,{})})]}),h.jsx(Zi,{children:a?h.jsx(Uz,{resourceUri:n,data:r,existingQuery:s,initialSelectedSourceIndex:l,onChange:u,onSourceChange:f}):h.jsx("div",{children:"No valid import statement found in cell"})})]})}function qpe(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function Ype(e,t){if(e==null||e==="")return;const n=r=>`'${qpe(r)}'`;switch(t===void 0?Gpe(e):t.startsWith("filter<")?"filter":t){case"filter":return`f${n(String(e))}`;case"string":return n(String(e));case"number":{const r=typeof e=="number"?e:Number(e);return Number.isFinite(r)?String(r):void 0}case"boolean":return e===!0||e==="true"?"true":"false";case"date":{const r=AA(e);return r&&`@${r}`}case"timestamp":{const r=AA(e);if(!r)return;const o=e instanceof Date?e.toISOString().slice(11,19):/[T ](\d{2}:\d{2}(?::\d{2})?)/.exec(String(e))?.[1]??"00:00:00";return`@${r} ${o}`}default:return}}function Gpe(e){if(typeof e=="string")return"string";if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.toISOString().slice(11,19)==="00:00:00"?"date":"timestamp"}function AA(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const ZC="[A-Za-z_][A-Za-z0-9_]*",jA=e=>new RegExp(`^${ZC}$`).test(e);function Fbe(e,t,n){const r=new Map,o=new RegExp(`^\\s*${n}:\\s*(${ZC})\\s+is\\b\\s*(.*)$`);let a;for(let s=0;s<e.length;s++){const l=e[s],u=new RegExp(`^\\s*source:\\s*(${ZC})\\s+is\\b`).exec(l);if(u){a=u[1];continue}if((/^\s*(query|run|import|given)\b/.test(l)||l.startsWith("##"))&&(a=void 0),a!==t)continue;const f=o.exec(l);f&&r.set(f[1],{line:s,rest:f[2].trim()})}return r}function Bbe(e,t,n){const r=new RegExp(`^\\s*${t}:\\s*${n}\\s+is\\b`);return e.findIndex(o=>r.test(o))}const _be=e=>e.findIndex(t=>t.trimStart().startsWith("##")&&t.includes("artifact"));function Ube(e){const t=new Map,n=o=>/^([A-Z_][A-Z0-9_]*)\s*::/.exec(o)?.[1],r=(o,a,s)=>{const l=a.trim(),u=n(l);u&&t.set(u,{line:o,declaration:l,...s===void 0?{}:{blockHeader:s}})};for(let o=0;o<e.length;o++){const a=e[o].trim();if(a==="given:")for(let s=o+1;s<e.length;s++){const l=e[s].trim();if(l===""||/^(source|query|import|run|given|##)/.test(l))break;r(s,l,o)}else a.startsWith("given:")&&r(o,a.slice(6))}return t}function Kpe(e){const t=(e??"").split("->").map(a=>a.trim());if(t.length!==2)return;const n=t[1].indexOf("+"),r=n<0?t[1]:t[1].slice(0,n).trim(),o=n<0?void 0:t[1].slice(n).trim();return{source:t[0],view:r,...o===void 0?{}:{refinement:o}}}const NA=()=>typeof performance<"u"?performance.now():Date.now(),Vz=200;function Qpe(e){const t=Ype(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${Vz} }`}function g2(e){const t=Kpe(e);if(!(!t||t.refinement!==void 0||!jA(t.source)||!jA(t.view)))return{source:t.source,view:t.view}}const Xpe=e=>g2(e)?.source;function Zpe({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s,onDone:l}){const{theme:u}=ku(),f=e?Qpe(e):void 0;return h.jsxs(Xi,{open:e!==void 0,onClose:s,maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Ji,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[h.jsxs(Ct,{children:[e?h.jsxs(h.Fragment,{children:["Rows where"," ",h.jsx(Ct,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",h.jsx(St,{component:"div",variant:"caption",sx:{color:u.tileTitle,mt:.25},children:e?`The first ${Vz} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),h.jsx(eo,{onClick:s,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:h.jsx(Rs,{fontSize:"small"})})]}),h.jsxs(Zi,{dividers:!0,sx:{p:0,minHeight:240},children:[f===void 0&&e&&h.jsx(St,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),f!==void 0&&h.jsx(Jpe,{query:f,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:a,...l?{onDone:l}:{}})]}),h.jsxs(gy,{sx:{px:3,py:1.5},children:[f!==void 0&&h.jsx(St,{variant:"caption",sx:{mr:"auto",color:u.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:f,children:f}),h.jsx(wo,{onClick:s,children:"Close"})]})]})}function Jpe({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onDone:s}){const l=d2({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:a}),{isSuccess:u,isError:f}=l,c=C.useRef(void 0);return C.useEffect(()=>{c.current=NA()},[e]),C.useEffect(()=>{c.current===void 0||!u&&!f||(s?.(u,NA()-c.current),c.current=void 0)},[u,f,s]),h.jsx(Ct,{sx:{p:1},children:h.jsx(p2,{state:l,context:e})})}function ehe({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,onClose:a}){const s=fx({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:l}=h2(s,e!==void 0),u=C.useMemo(()=>{const c=Xpe(e);if(!l||c===void 0)return 0;const m=(l.sourceInfos??[]).findIndex(y=>{try{return JSON.parse(y)?.name===c}catch{return!1}});return m<0?0:m},[l,e]),f=C.useMemo(()=>{if(e===void 0)return;const c=g2(e),m=c?{definition:{kind:"arrow",source:{kind:"source_reference",name:c.source},view:{kind:"view_reference",name:c.view}}}:`run: ${e}`;return{query:`run: ${e}`,malloyQuery:m,malloyResult:void 0}},[e]);return e===void 0||!l?null:h.jsx(m2,{open:!0,onClose:a,resourceUri:s,data:l,title:`Explore: ${e}`,existingQuery:f,initialSelectedSourceIndex:u})}function Vbe({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:a,maxResultSize:s,onEvent:l}){const u=yo(e),{apiClients:f}=_r(),c=u.environmentName??"",m=u.packageName??"",y=u.versionId,v=!!u.environmentName&&!!u.packageName,{data:b,isSuccess:x,isError:w,error:S}=ho({queryKey:["dashboard",c,m,y,t],queryFn:()=>f.dashboards.getDashboard(c,m,t,y),enabled:v}),k=b?.data,T=C.useMemo(()=>k?.givens??[],[k]),O=X5({specs:T,loaded:x,startingValues:k?.startingGivens,params:n,onGivensChange:r,documentKey:`${c}/${m}/${y??""}/${t}`,autorun:k?.autorun!==!1,environmentName:c,packageName:m,modelPath:k?.path,versionId:y,documentName:t}),{applied:P,declaredTypes:$,canSelf:I,onSelf:F}=O,[A,H]=C.useState(void 0),[L,M]=C.useState(void 0),_=C.useCallback(J=>{const ne=g2(J.context);ne!==void 0&&H({...ne,field:J.field,rawValue:J.rawValue,label:J.label})},[]),B=C.useMemo(()=>dx(P,$),[P,$]),{drill:W,drillMenu:j}=Z5({onNavigate:o,onSelf:F,canSelf:I,selfLabel:"Filter this dashboard",onRows:_}),Q=C.useCallback(J=>({canDrill:W.canDrill,onClick:ne=>W.onClick({...ne,context:J})}),[W]);if(!v)return h.jsxs(cp,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(w)return h.jsx(ca,{context:`${c} > ${m} > ${t}`,error:S});if(!x||!k)return h.jsx(Jo,{text:"Loading dashboard…"});if(k.error)return h.jsxs(kr,{spacing:2,children:[h.jsx(IA,{manifest:k}),h.jsx(cp,{severity:"error",children:k.error})]});const K=k.path,te=k.tiles??[],X=k.dashboardColumns??tpe;return h.jsxs(kr,{spacing:2,children:[h.jsx(IA,{manifest:k}),h.jsx(Fz,{...O.panel,layout:"bar"}),K===void 0?h.jsx(cp,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):k.query!==void 0?h.jsx(MA,{environmentName:c,packageName:m,versionId:y,modelPath:K,queryName:k.query,givens:P,declaredTypes:$,height:a,maxResultSize:s,drill:W}):te.length>0?h.jsx(ope,{tiles:te,columns:X,keyOf:(J,ne)=>`${ne}:${J.query}`,renderTile:J=>h.jsx(MA,{environmentName:c,packageName:m,versionId:y,modelPath:K,tile:J.query,label:J.label,subtitle:J.subtitle,borderless:J.borderless,givens:P,declaredTypes:$,givenNames:J.givenNames,height:a??Gfe,maxResultSize:s,drill:Q(J.query),onExplore:()=>{M(J.query),l?.({type:"dashboard.explored",tile:J.query})}})}):h.jsx(cp,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),j,K!==void 0&&h.jsxs(h.Fragment,{children:[h.jsx(Zpe,{request:A,environmentName:c,packageName:m,...y===void 0?{}:{versionId:y},modelPath:K,givens:B,onClose:()=>H(void 0),onDone:(J,ne)=>{A&&l?.({type:"dashboard.rows_shown",source:A.source,view:A.view,field:A.field,ok:J,durationMs:ne})}}),h.jsx(ehe,{tile:L,environmentName:c,packageName:m,...y===void 0?{}:{versionId:y},modelPath:K,onClose:()=>M(void 0)})]})]})}function IA({manifest:e}){return h.jsx(the,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function the({title:e,description:t}){return h.jsxs(Ct,{children:[h.jsx(St,{variant:"h5",sx:{fontWeight:600},children:e}),t&&h.jsx(m0,{variant:"caption",children:t})]})}const Wg=tr(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Hz=C.createContext(void 0);function nhe({children:e,documentStorage:t}){const n=C.useMemo(()=>({documentStorage:t}),[t]);return h.jsx(Hz.Provider,{value:n,children:e})}function Hbe(){return C.useContext(Hz)}var y2=jy(),Un=e=>Ay(e,y2),v2=jy();Un.write=e=>Ay(e,v2);var Ix=jy();Un.onStart=e=>Ay(e,Ix);var b2=jy();Un.onFrame=e=>Ay(e,b2);var x2=jy();Un.onFinish=e=>Ay(e,x2);var Cp=[];Un.setTimeout=(e,t)=>{const n=Un.now()+t,r=()=>{const a=Cp.findIndex(s=>s.cancel==r);~a&&Cp.splice(a,1),ou-=~a?1:0},o={time:n,handler:e,cancel:r};return Cp.splice(Wz(n),0,o),ou+=1,qz(),o};var Wz=e=>~(~Cp.findIndex(t=>t.time>e)||~Cp.length);Un.cancel=e=>{Ix.delete(e),b2.delete(e),x2.delete(e),y2.delete(e),v2.delete(e)};Un.sync=e=>{JC=!0,Un.batchedUpdates(e),JC=!1};Un.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Un.onStart(n)}return r.handler=e,r.cancel=()=>{Ix.delete(n),t=null},r};var S2=typeof window<"u"?window.requestAnimationFrame:(()=>{});Un.use=e=>S2=e;Un.now=typeof performance<"u"?()=>performance.now():Date.now;Un.batchedUpdates=e=>e();Un.catch=console.error;Un.frameLoop="always";Un.advance=()=>{Un.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Gz()};var ru=-1,ou=0,JC=!1;function Ay(e,t){JC?(t.delete(e),e(0)):(t.add(e),qz())}function qz(){ru<0&&(ru=0,Un.frameLoop!=="demand"&&S2(Yz))}function rhe(){ru=-1}function Yz(){~ru&&(S2(Yz),Un.batchedUpdates(Gz))}function Gz(){const e=ru;ru=Un.now();const t=Wz(ru);if(t&&(Kz(Cp.splice(0,t),n=>n.handler()),ou-=t),!ou){rhe();return}Ix.flush(),y2.flush(e?Math.min(64,ru-e):16.667),b2.flush(),v2.flush(),x2.flush()}function jy(){let e=new Set,t=e;return{add(n){ou+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ou-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ou-=t.size,Kz(t,r=>r(n)&&e.add(r)),ou+=e.size,t=e)}}}function Kz(e,t){e.forEach(n=>{try{t(n)}catch(r){Un.catch(r)}})}var ohe=Object.defineProperty,ahe=(e,t)=>{for(var n in t)ohe(e,n,{get:t[n],enumerable:!0})},Os={};ahe(Os,{assign:()=>she,colors:()=>uu,createStringInterpolator:()=>C2,skipAnimation:()=>Xz,to:()=>Qz,willAdvance:()=>k2});function ek(){}var ihe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Nt={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function tc(e,t){if(Nt.arr(e)){if(!Nt.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var fr=(e,t)=>e.forEach(t);function Sl(e,t,n){if(Nt.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var pi=e=>Nt.und(e)?[]:Nt.arr(e)?e:[e];function wg(e,t){if(e.size){const n=Array.from(e);e.clear(),fr(n,t)}}var rg=(e,...t)=>wg(e,n=>n(...t)),w2=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),C2,Qz,uu=null,Xz=!1,k2=ek,she=e=>{e.to&&(Qz=e.to),e.now&&(Un.now=e.now),e.colors!==void 0&&(uu=e.colors),e.skipAnimation!=null&&(Xz=e.skipAnimation),e.createStringInterpolator&&(C2=e.createStringInterpolator),e.requestAnimationFrame&&Un.use(e.requestAnimationFrame),e.batchedUpdates&&(Un.batchedUpdates=e.batchedUpdates),e.willAdvance&&(k2=e.willAdvance),e.frameLoop&&(Un.frameLoop=e.frameLoop)},Cg=new Set,Ui=[],xw=[],g0=0,Lx={get idle(){return!Cg.size&&!Ui.length},start(e){g0>e.priority?(Cg.add(e),Un.onStart(lhe)):(Zz(e),Un(tk))},advance:tk,sort(e){if(g0)Un.onFrame(()=>Lx.sort(e));else{const t=Ui.indexOf(e);~t&&(Ui.splice(t,1),Jz(e))}},clear(){Ui=[],Cg.clear()}};function lhe(){Cg.forEach(Zz),Cg.clear(),Un(tk)}function Zz(e){Ui.includes(e)||Jz(e)}function Jz(e){Ui.splice(che(Ui,t=>t.priority>e.priority),0,e)}function tk(e){const t=xw;for(let n=0;n<Ui.length;n++){const r=Ui[n];g0=r.priority,r.idle||(k2(r),r.advance(e),r.idle||t.push(r))}return g0=0,xw=Ui,xw.length=0,Ui=t,Ui.length>0}function che(e,t){const n=e.findIndex(t);return n<0?e.length:n}var uhe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ms="[-+]?\\d*\\.?\\d+",y0=Ms+"%";function zx(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var dhe=new RegExp("rgb"+zx(Ms,Ms,Ms)),fhe=new RegExp("rgba"+zx(Ms,Ms,Ms,Ms)),phe=new RegExp("hsl"+zx(Ms,y0,y0)),hhe=new RegExp("hsla"+zx(Ms,y0,y0,Ms)),mhe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ghe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yhe=/^#([0-9a-fA-F]{6})$/,vhe=/^#([0-9a-fA-F]{8})$/;function bhe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yhe.exec(e))?parseInt(t[1]+"ff",16)>>>0:uu&&uu[e]!==void 0?uu[e]:(t=dhe.exec(e))?(Jf(t[1])<<24|Jf(t[2])<<16|Jf(t[3])<<8|255)>>>0:(t=fhe.exec(e))?(Jf(t[1])<<24|Jf(t[2])<<16|Jf(t[3])<<8|FA(t[4]))>>>0:(t=mhe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=vhe.exec(e))?parseInt(t[1],16)>>>0:(t=ghe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=phe.exec(e))?(LA(zA(t[1]),fb(t[2]),fb(t[3]))|255)>>>0:(t=hhe.exec(e))?(LA(zA(t[1]),fb(t[2]),fb(t[3]))|FA(t[4]))>>>0:null}function Sw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function LA(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=Sw(o,r,e+1/3),s=Sw(o,r,e),l=Sw(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function Jf(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function zA(e){return(parseFloat(e)%360+360)%360/360}function FA(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function fb(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function BA(e){let t=bhe(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${a})`}var qg=(e,t,n)=>{if(Nt.fun(e))return e;if(Nt.arr(e))return qg({range:e,output:t,extrapolate:n});if(Nt.str(e.output[0]))return C2(e);const r=e,o=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(f=>f);return f=>{const c=She(f,a);return xhe(f,a[c],a[c+1],o[c],o[c+1],u,s,l,r.map)}};function xhe(e,t,n,r,o,a,s,l,u){let f=u?u(e):e;if(f<t){if(s==="identity")return f;s==="clamp"&&(f=t)}if(f>n){if(l==="identity")return f;l==="clamp"&&(f=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=a(f),r===-1/0?f=-f:o===1/0?f=f+r:f=f*(o-r)+r,f)}function She(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var whe={linear:e=>e},Yg=Symbol.for("FluidValue.get"),Vp=Symbol.for("FluidValue.observers"),_i=e=>!!(e&&e[Yg]),Da=e=>e&&e[Yg]?e[Yg]():e,_A=e=>e[Vp]||null;function Che(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Gg(e,t){const n=e[Vp];n&&n.forEach(r=>{Che(r,t)})}var e4=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");khe(this,e)}},khe=(e,t)=>t4(e,Yg,t);function oh(e,t){if(e[Yg]){let n=e[Vp];n||t4(e,Vp,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Kg(e,t){const n=e[Vp];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Vp]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var t4=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Nb=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,The=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,UA=new RegExp(`(${Nb.source})(%|[a-z]+)`,"i"),Mhe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Fx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,n4=e=>{const[t,n]=Ehe(e);if(!t||w2())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&Fx.test(n))return n4(n);if(n)return n}return e},Ehe=e=>{const t=Fx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},ww,Rhe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,r4=e=>{ww||(ww=uu?new RegExp(`(${Object.keys(uu).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Da(a).replace(Fx,n4).replace(The,BA).replace(ww,BA)),n=t.map(a=>a.match(Nb).map(Number)),o=n[0].map((a,s)=>n.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(a=>qg({...e,output:a}));return a=>{const s=!UA.test(t[0])&&t.find(u=>UA.test(u))?.replace(Nb,"");let l=0;return t[0].replace(Nb,()=>`${o[l++](a)}${s||""}`).replace(Mhe,Rhe)}},T2="react-spring: ",o4=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${T2}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Ohe=o4(console.warn);function Phe(){Ohe(`${T2}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $he=o4(console.warn);function Dhe(){$he(`${T2}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Bx(e){return Nt.str(e)&&(e[0]=="#"||/\d/.test(e)||!w2()&&Fx.test(e)||e in(uu||{}))}var M2=w2()?C.useEffect:C.useLayoutEffect,Ahe=()=>{const e=C.useRef(!1);return M2(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function a4(){const e=C.useState()[1],t=Ahe();return()=>{t.current&&e(Math.random())}}var i4=e=>C.useEffect(e,jhe),jhe=[];function VA(e){const t=C.useRef(void 0);return C.useEffect(()=>{t.current=e}),t.current}var Qg=Symbol.for("Animated:node"),Nhe=e=>!!e&&e[Qg]===e,nl=e=>e&&e[Qg],E2=(e,t)=>ihe(e,Qg,t),_x=e=>e&&e[Qg]&&e[Qg].getPayload(),s4=class{constructor(){E2(this,this)}getPayload(){return this.payload||[]}},Ux=class l4 extends s4{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Nt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new l4(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return Nt.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Nt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},v0=class c4 extends Ux{constructor(t){super(0),this._string=null,this._toString=qg({output:[t,t]})}static create(t){return new c4(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Nt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=qg({output:[this.getValue(),t]})),this._value=0,super.reset()}},b0={dependencies:null},Vx=class extends s4{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Sl(this.source,(n,r)=>{Nhe(n)?t[r]=n.getValue(e):_i(n)?t[r]=Da(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&fr(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Sl(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){b0.dependencies&&_i(e)&&b0.dependencies.add(e);const t=_x(e);t&&fr(t,n=>this.add(n))}},Ihe=class u4 extends Vx{constructor(t){super(t)}static create(t){return new u4(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,o)=>r.setValue(t[o])).some(Boolean):(super.setValue(t.map(Lhe)),!0)}};function Lhe(e){return(Bx(e)?v0:Ux).create(e)}function nk(e){const t=nl(e);return t?t.constructor:Nt.arr(e)?Ihe:Bx(e)?v0:Ux}var HA=(e,t)=>{const n=!Nt.fun(e)||e.prototype&&e.prototype.isReactComponent;return C.forwardRef((r,o)=>{const a=C.useRef(null),s=n&&C.useCallback(b=>{a.current=Bhe(o,b)},[o]),[l,u]=Fhe(r,t),f=a4(),c=()=>{const b=a.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,l.getValue(!0)):!1)===!1&&f()},m=new zhe(c,u),y=C.useRef(void 0);M2(()=>(y.current=m,fr(u,b=>oh(b,m)),()=>{y.current&&(fr(y.current.deps,b=>Kg(b,y.current)),Un.cancel(y.current.update))})),C.useEffect(c,[]),i4(()=>()=>{const b=y.current;fr(b.deps,x=>Kg(x,b))});const v=t.getComponentProps(l.getValue());return C.createElement(e,{...v,ref:s})})},zhe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Un.write(this.update)}};function Fhe(e,t){const n=new Set;return b0.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Vx(e),b0.dependencies=null,[e,n]}function Bhe(e,t){return e&&(Nt.fun(e)?e(t):e.current=t),t}var WA=Symbol.for("AnimatedComponent"),_he=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Vx(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=s=>{const l=qA(s)||"Anonymous";return Nt.str(s)?s=a[s]||(a[s]=HA(s,o)):s=s[WA]||(s[WA]=HA(s,o)),s.displayName=`Animated(${l})`,s};return Sl(e,(s,l)=>{Nt.arr(e)&&(l=qA(s)),a[l]=a(s)}),{animated:a}},qA=e=>Nt.str(e)?e:e&&Nt.str(e.displayName)?e.displayName:Nt.fun(e)&&e.name||null;function pd(e,...t){return Nt.fun(e)?e(...t):e}var kg=(e,t)=>e===!0||!!(t&&e&&(Nt.fun(e)?e(t):pi(e).includes(t))),d4=(e,t)=>Nt.obj(e)?t&&e[t]:e,f4=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Uhe=e=>e,R2=(e,t=Uhe)=>{let n=Vhe;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const a=t(e[o],o);Nt.und(a)||(r[o]=a)}return r},Vhe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Hhe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Whe(e){const t={};let n=0;if(Sl(e,(r,o)=>{Hhe[o]||(t[o]=r,n++)}),n)return t}function p4(e){const t=Whe(e);if(t){const n={to:t};return Sl(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Xg(e){return e=Da(e),Nt.arr(e)?e.map(Xg):Bx(e)?Os.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function qhe(e){for(const t in e)return!0;return!1}function rk(e){return Nt.fun(e)||Nt.arr(e)&&Nt.obj(e[0])}function Yhe(e,t){e.ref?.delete(e),t?.delete(e)}function Ghe(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Khe={default:{tension:170,friction:26}},ok={...Khe.default,mass:1,damping:1,easing:whe.linear,clamp:!1},Qhe=class{constructor(){this.velocity=0,Object.assign(this,ok)}};function Xhe(e,t,n){n&&(n={...n},YA(n,t),t={...n,...t}),YA(e,t),Object.assign(e,t);for(const s in ok)e[s]==null&&(e[s]=ok[s]);let{frequency:r,damping:o}=e;const{mass:a}=e;return Nt.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r),e}function YA(e,t){if(!Nt.und(t.decay))e.duration=void 0;else{const n=!Nt.und(t.tension)||!Nt.und(t.friction);(n||!Nt.und(t.frequency)||!Nt.und(t.damping)||!Nt.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var GA=[],Zhe=class{constructor(){this.changed=!1,this.values=GA,this.toValues=null,this.fromValues=GA,this.config=new Qhe,this.immediate=!1}};function h4(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise((s,l)=>{let u,f,c=kg(n.cancel??r?.cancel,t);if(c)v();else{Nt.und(n.pause)||(o.paused=kg(n.pause,t));let b=r?.pause;b!==!0&&(b=o.paused||kg(b,t)),u=pd(n.delay||0,t),b?(o.resumeQueue.add(y),a.pause()):(a.resume(),y())}function m(){o.resumeQueue.add(y),o.timeouts.delete(f),f.cancel(),u=f.time-Un.now()}function y(){u>0&&!Os.skipAnimation?(o.delayed=!0,f=Un.setTimeout(v,u),o.pauseQueue.add(m),o.timeouts.add(f)):v()}function v(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(m),o.timeouts.delete(f),e<=(o.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},s)}catch(b){l(b)}}})}var O2=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?kp(e.get()):t.every(n=>n.noop)?m4(e.get()):Ts(e.get(),t.every(n=>n.finished)),m4=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ts=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),kp=e=>({value:e,cancelled:!0,finished:!1});function g4(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:l,promise:u}=n;return!a&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const f=R2(t,(w,S)=>S==="onRest"?void 0:w);let c,m;const y=new Promise((w,S)=>(c=w,m=S)),v=w=>{const S=o<=(n.cancelId||0)&&kp(r)||o!==n.asyncId&&Ts(r,!1);if(S)throw w.result=S,m(w),w},b=(w,S)=>{const k=new KA,T=new QA;return(async()=>{if(Os.skipAnimation)throw Zg(n),T.result=Ts(r,!1),m(T),T;v(k);const O=Nt.obj(w)?{...w}:{...S,to:w};O.parentId=o,Sl(f,($,I)=>{Nt.und(O[I])&&(O[I]=$)});const P=await r.start(O);return v(k),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),P})()};let x;if(Os.skipAnimation)return Zg(n),Ts(r,!1);try{let w;Nt.arr(e)?w=(async S=>{for(const k of S)await b(k)})(e):w=Promise.resolve(e(b,r.stop.bind(r))),await Promise.all([w.then(c),y]),x=Ts(r.get(),!0,!1)}catch(w){if(w instanceof KA)x=w.result;else if(w instanceof QA)x=w.result;else throw w}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?u:void 0)}return Nt.fun(s)&&Un.batchedUpdates(()=>{s(x,r,r.item)}),x})()}function Zg(e,t){wg(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var KA=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},QA=class extends Error{constructor(){super("SkipAnimationSignal")}},ak=e=>e instanceof P2,Jhe=1,P2=class extends e4{constructor(){super(...arguments),this.id=Jhe++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=nl(this);return e&&e.getValue()}to(...e){return Os.to(this,e)}interpolate(...e){return Phe(),Os.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Gg(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Lx.sort(this),Gg(this,{type:"priority",parent:this,priority:e})}},zd=Symbol.for("SpringPhase"),y4=1,ik=2,sk=4,Cw=e=>(e[zd]&y4)>0,Kc=e=>(e[zd]&ik)>0,jm=e=>(e[zd]&sk)>0,XA=(e,t)=>t?e[zd]|=ik|y4:e[zd]&=~ik,ZA=(e,t)=>t?e[zd]|=sk:e[zd]&=~sk,eme=class extends P2{constructor(e,t){if(super(),this.animation=new Zhe,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Nt.und(e)||!Nt.und(t)){const n=Nt.obj(e)?{...e}:{...t,from:e};Nt.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Kc(this)||this._state.asyncTo)||jm(this)}get goal(){return Da(this.animation.to)}get velocity(){const e=nl(this);return e instanceof Ux?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Cw(this)}get isAnimating(){return Kc(this)}get isPaused(){return jm(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:a}=r,s=_x(r.to);!s&&_i(r.to)&&(o=pi(Da(r.to))),r.values.forEach((f,c)=>{if(f.done)return;const m=f.constructor==v0?1:s?s[c].lastPosition:o[c];let y=r.immediate,v=m;if(!y){if(v=f.lastPosition,a.tension<=0){f.done=!0;return}let b=f.elapsedTime+=e;const x=r.fromValues[c],w=f.v0!=null?f.v0:f.v0=Nt.arr(a.velocity)?a.velocity[c]:a.velocity;let S;const k=a.precision||(x==m?.005:Math.min(1,Math.abs(m-x)*.001));if(Nt.und(a.duration))if(a.decay){const T=a.decay===!0?.998:a.decay,O=Math.exp(-(1-T)*b);v=x+w/(1-T)*(1-O),y=Math.abs(f.lastPosition-v)<=k,S=w*O}else{S=f.lastVelocity==null?w:f.lastVelocity;const T=a.restVelocity||k/10,O=a.clamp?0:a.bounce,P=!Nt.und(O),$=x==m?f.v0>0:x<m;let I,F=!1;const A=1,H=Math.ceil(e/A);for(let L=0;L<H&&(I=Math.abs(S)>T,!(!I&&(y=Math.abs(m-v)<=k,y)));++L){P&&(F=v==m||v>m==$,F&&(S=-S*O,v=m));const M=-a.tension*1e-6*(v-m),_=-a.friction*.001*S,B=(M+_)/a.mass;S=S+B*A,v=v+S*A}}else{let T=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,f.durationProgress>0&&(f.elapsedTime=a.duration*f.durationProgress,b=f.elapsedTime+=e)),T=(a.progress||0)+b/this._memoizedDuration,T=T>1?1:T<0?0:T,f.durationProgress=T),v=x+a.easing(T)*(m-x),S=(v-f.lastPosition)/e,y=T==1}f.lastVelocity=S,Number.isNaN(v)&&(console.warn("Got NaN while animating:",this),y=!0)}s&&!s[c].done&&(y=!1),y?f.done=!0:t=!1,f.setValue(v,a.round)&&(n=!0)});const l=nl(this),u=l.getValue();if(t){const f=Da(r.to);(u!==f||n)&&!a.decay?(l.setValue(f),this._onChange(f)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Un.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Kc(this)){const{to:e,config:t}=this.animation;Un.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Nt.und(e)?(n=this.queue||[],this.queue=[]):n=[Nt.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>O2(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Zg(this._state,e&&this._lastCallId),Un.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Nt.obj(n)?n[t]:n,(n==null||rk(n))&&(n=void 0),r=Nt.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Cw(this)||(e.reverse&&([n,r]=[r,n]),r=Da(r),Nt.und(r)?nl(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,R2(e,(s,l)=>/^on/.test(l)?d4(s,n):s)),ej(this,e,"onProps"),Im(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return h4(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{jm(this)||(ZA(this,!0),rg(a.pauseQueue),Im(this,"onPause",Ts(this,Nm(this,this.animation.to)),this))},resume:()=>{jm(this)&&(ZA(this,!1),Kc(this)&&this._resume(),rg(a.resumeQueue),Im(this,"onResume",Ts(this,Nm(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const l=v4(e);if(l)return this._update(l,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(kp(this));const r=!Nt.und(e.to),o=!Nt.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(kp(this));const{key:a,defaultProps:s,animation:l}=this,{to:u,from:f}=l;let{to:c=u,from:m=f}=e;o&&!r&&(!t.default||Nt.und(c))&&(c=m),t.reverse&&([c,m]=[m,c]);const y=!tc(m,f);y&&(l.from=m),m=Da(m);const v=!tc(c,u);v&&this._focus(c);const b=rk(t.to),{config:x}=l,{decay:w,velocity:S}=x;(r||o)&&(x.velocity=0),t.config&&!b&&Xhe(x,pd(t.config,a),t.config!==s.config?pd(s.config,a):void 0);let k=nl(this);if(!k||Nt.und(c))return n(Ts(this,!0));const T=Nt.und(t.reset)?o&&!t.default:!Nt.und(m)&&kg(t.reset,a),O=T?m:this.get(),P=Xg(c),$=Nt.num(P)||Nt.arr(P)||Bx(P),I=!b&&(!$||kg(s.immediate||t.immediate,a));if(v){const L=nk(c);if(L!==k.constructor)if(I)k=this._set(P);else throw Error(`Cannot animate between ${k.constructor.name} and ${L.name}, as the "to" prop suggests`)}const F=k.constructor;let A=_i(c),H=!1;if(!A){const L=T||!Cw(this)&&y;(v||L)&&(H=tc(Xg(O),P),A=!H),(!tc(l.immediate,I)&&!I||!tc(x.decay,w)||!tc(x.velocity,S))&&(A=!0)}if(H&&Kc(this)&&(l.changed&&!T?A=!0:A||this._stop(u)),!b&&((A||_i(u))&&(l.values=k.getPayload(),l.toValues=_i(c)?null:F==v0?[1]:pi(P)),l.immediate!=I&&(l.immediate=I,!I&&!T&&this._set(u)),A)){const{onRest:L}=l;fr(nme,_=>ej(this,t,_));const M=Ts(this,Nm(this,u));rg(this._pendingCalls,M),this._pendingCalls.add(n),l.changed&&Un.batchedUpdates(()=>{l.changed=!T,L?.(M,this),T?pd(s.onRest,M):l.onStart?.(M,this)})}T&&this._set(O),b?n(g4(t.to,t,this._state,this)):A?this._start():Kc(this)&&!v?this._pendingCalls.add(n):n(m4(O))}_focus(e){const t=this.animation;e!==t.to&&(_A(this)&&this._detach(),t.to=e,_A(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;_i(t)&&(oh(t,this),ak(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;_i(e)&&Kg(e,this)}_set(e,t=!0){const n=Da(e);if(!Nt.und(n)){const r=nl(this);if(!r||!tc(n,r.getValue())){const o=nk(n);!r||r.constructor!=o?E2(this,o.create(n)):r.setValue(n),r&&Un.batchedUpdates(()=>{this._onChange(n,t)})}}return nl(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Im(this,"onStart",Ts(this,Nm(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pd(this.animation.onChange,e,this)),pd(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;nl(this).reset(Da(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Kc(this)||(XA(this,!0),jm(this)||this._resume())}_resume(){Os.skipAnimation?this.finish():Lx.start(this)}_stop(e,t){if(Kc(this)){XA(this,!1);const n=this.animation;fr(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Gg(this,{type:"idle",parent:this});const r=t?kp(this.get()):Ts(this.get(),Nm(this,e??n.to));rg(this._pendingCalls,r),n.changed&&(n.changed=!1,Im(this,"onRest",r,this))}}};function Nm(e,t){const n=Xg(t),r=Xg(e.get());return tc(r,n)}function v4(e,t=e.loop,n=e.to){const r=pd(t);if(r){const o=r!==!0&&p4(r),a=(o||e).reverse,s=!o||o.reset;return Jg({...e,loop:t,default:!1,pause:void 0,to:!a||rk(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Jg(e){const{to:t,from:n}=e=p4(e),r=new Set;return Nt.obj(t)&&JA(t,r),Nt.obj(n)&&JA(n,r),e.keys=r.size?Array.from(r):null,e}function tme(e){const t=Jg(e);return Nt.und(t.default)&&(t.default=R2(t)),t}function JA(e,t){Sl(e,(n,r)=>n!=null&&t.add(r))}var nme=["onStart","onRest","onChange","onPause","onResume"];function ej(e,t,n){e.animation[n]=t[n]!==f4(t,n)?d4(t[n],e.key):void 0}function Im(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var rme=["onStart","onChange","onRest"],ome=1,ame=class{constructor(e,t){this.id=ome++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Nt.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Jg(e)),this}start(e){let{queue:t}=this;return e?t=pi(e).map(Jg):this.queue=[],this._flush?this._flush(this,t):(C4(this,t),lk(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;fr(pi(t),r=>n[r].stop(!!e))}else Zg(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Nt.und(e))this.start({pause:!0});else{const t=this.springs;fr(pi(e),n=>t[n].pause())}return this}resume(e){if(Nt.und(e))this.start({pause:!1});else{const t=this.springs;fr(pi(e),n=>t[n].resume())}return this}each(e){Sl(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,wg(e,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));const a=!r&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&wg(t,([l,u])=>{u.value=s,l(u,this,this._item)}),a&&(this._started=!1,wg(n,([l,u])=>{u.value=s,l(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Un.onFrame(this._onFrame)}};function lk(e,t){return Promise.all(t.map(n=>b4(e,n))).then(n=>O2(e,n))}async function b4(e,t,n){const{keys:r,to:o,from:a,loop:s,onRest:l,onResolve:u}=t,f=Nt.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),a===!1&&(t.from=null);const c=Nt.arr(o)||Nt.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):fr(rme,x=>{const w=t[x];if(Nt.fun(w)){const S=e._events[x];t[x]=({finished:k,cancelled:T})=>{const O=S.get(w);O?(k||(O.finished=!1),T&&(O.cancelled=!0)):S.set(w,{value:null,finished:k||!1,cancelled:T||!1})},f&&(f[x]=t[x])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,rg(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(x=>e.springs[x].start(t)),v=t.cancel===!0||f4(t,"cancel")===!0;(c||v&&m.asyncId)&&y.push(h4(++e._lastAsyncId,{props:t,state:m,actions:{pause:ek,resume:ek,start(x,w){v?(Zg(m,e._lastAsyncId),w(kp(e))):(x.onRest=l,w(g4(c,x,m,e)))}}})),m.paused&&await new Promise(x=>{m.resumeQueue.add(x)});const b=O2(e,await Promise.all(y));if(s&&b.finished&&!(n&&b.noop)){const x=v4(t,s,o);if(x)return C4(e,[x]),b4(e,x,!0)}return u&&Un.batchedUpdates(()=>u(b,e,e.item)),b}function tj(e,t){const n={...e.springs};return t&&fr(pi(t),r=>{Nt.und(r.keys)&&(r=Jg(r)),Nt.obj(r.to)||(r={...r,to:void 0}),w4(n,r,o=>S4(o))}),x4(e,n),n}function x4(e,t){Sl(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,oh(n,e))})}function S4(e,t){const n=new eme;return n.key=e,t&&oh(n,t),n}function w4(e,t,n){t.keys&&fr(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function C4(e,t){fr(t,n=>{w4(e.springs,n,r=>S4(r,e))})}var ime=C.createContext({pause:!1,immediate:!1}),sme=()=>{const e=[],t=function(r){Dhe();const o=[];return fr(e,(a,s)=>{if(Nt.und(r))o.push(a.start());else{const l=n(r,a,s);l&&o.push(a.start(l))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return fr(e,r=>r.pause(...arguments)),this},t.resume=function(){return fr(e,r=>r.resume(...arguments)),this},t.set=function(r){fr(e,(o,a)=>{const s=Nt.fun(r)?r(a,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return fr(e,(a,s)=>{if(Nt.und(r))o.push(a.start());else{const l=this._getProps(r,a,s);l&&o.push(a.start(l))}}),o},t.stop=function(){return fr(e,r=>r.stop(...arguments)),this},t.update=function(r){return fr(e,(o,a)=>o.update(this._getProps(r,o,a))),this};const n=function(r,o,a){return Nt.fun(r)?r(a,o):r};return t._getProps=n,t};function lme(e,t,n){const r=Nt.fun(t)&&t;r&&!n&&(n=[]);const o=C.useMemo(()=>r||arguments.length==3?sme():void 0,[]),a=C.useRef(0),s=a4(),l=C.useMemo(()=>({ctrls:[],queue:[],flush(S,k){const T=tj(S,k);return a.current>0&&!l.queue.length&&!Object.keys(T).some(P=>!S.springs[P])?lk(S,k):new Promise(P=>{x4(S,T),l.queue.push(()=>{P(lk(S,k))}),s()})}}),[]),u=C.useRef([...l.ctrls]),f=C.useRef([]),c=VA(e)||0;C.useMemo(()=>{fr(u.current.slice(e,c),S=>{Yhe(S,o),S.stop(!0)}),u.current.length=e,m(c,e)},[e]),C.useMemo(()=>{m(0,Math.min(c,e))},n);function m(S,k){for(let T=S;T<k;T++){const O=u.current[T]||(u.current[T]=new ame(null,l.flush)),P=r?r(T,O):t[T];P&&(f.current[T]=tme(P))}}const y=u.current.map((S,k)=>tj(S,f.current[k])),v=C.useContext(ime),b=VA(v),x=v!==b&&qhe(v);M2(()=>{a.current++,l.ctrls=u.current;const{queue:S}=l;S.length&&(l.queue=[],fr(S,k=>k())),fr(u.current,(k,T)=>{o?.add(k),x&&k.start({default:v});const O=f.current[T];O&&(Ghe(k,O.ref),k.ref?k.queue.push(O):k.start(O))})}),i4(()=>()=>{fr(l.ctrls,S=>S.stop(!0))});const w=y.map(S=>({...S}));return o?[w,o]:w}function cme(e,t){const n=Nt.fun(e),[[r],o]=lme(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var ume=class extends P2{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=qg(...t);const n=this._get(),r=nk(n);E2(this,r.create(n))}advance(e){const t=this._get(),n=this.get();tc(t,n)||(nl(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nj(this._active)&&kw(this)}_get(){const e=Nt.arr(this.source)?this.source.map(Da):pi(Da(this.source));return this.calc(...e)}_start(){this.idle&&!nj(this._active)&&(this.idle=!1,fr(_x(this),e=>{e.done=!1}),Os.skipAnimation?(Un.batchedUpdates(()=>this.advance()),kw(this)):Lx.start(this))}_attach(){let e=1;fr(pi(this.source),t=>{_i(t)&&oh(t,this),ak(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){fr(pi(this.source),e=>{_i(e)&&Kg(e,this)}),this._active.clear(),kw(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=pi(this.source).reduce((t,n)=>Math.max(t,(ak(n)?n.priority:0)+1),0))}};function dme(e){return e.idle!==!1}function nj(e){return!e.size||Array.from(e).every(dme)}function kw(e){e.idle||(e.idle=!0,fr(_x(e),t=>{t.done=!0}),Gg(e,{type:"idle",parent:e}))}Os.assign({createStringInterpolator:r4,to:(e,t)=>new ume(e,t)});var k4=/^--/;function fme(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!k4.test(e)&&!(Tg.hasOwnProperty(e)&&Tg[e])?t+"px":(""+t).trim()}var rj={};function pme(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:o,children:a,scrollTop:s,scrollLeft:l,viewBox:u,...f}=t,c=Object.values(f),m=Object.keys(f).map(y=>n||e.hasAttribute(y)?y:rj[y]||(rj[y]=y.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));a!==void 0&&(e.textContent=a);for(const y in o)if(o.hasOwnProperty(y)){const v=fme(y,o[y]);k4.test(y)?e.style.setProperty(y,v):e.style[y]=v}m.forEach((y,v)=>{e.setAttribute(y,c[v])}),r!==void 0&&(e.className=r),s!==void 0&&(e.scrollTop=s),l!==void 0&&(e.scrollLeft=l),u!==void 0&&e.setAttribute("viewBox",u)}var Tg={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hme=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),mme=["Webkit","Ms","Moz","O"];Tg=Object.keys(Tg).reduce((e,t)=>(mme.forEach(n=>e[hme(n,t)]=e[t]),e),Tg);var gme=/^(matrix|translate|scale|rotate|skew)/,yme=/^(translate)/,vme=/^(rotate|skew)/,Tw=(e,t)=>Nt.num(e)&&e!==0?e+t:e,Ib=(e,t)=>Nt.arr(e)?e.every(n=>Ib(n,t)):Nt.num(e)?e===t:parseFloat(e)===t,bme=class extends Vx{constructor({x:e,y:t,z:n,...r}){const o=[],a=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),a.push(s=>[`translate3d(${s.map(l=>Tw(l,"px")).join(",")})`,Ib(s,0)])),Sl(r,(s,l)=>{if(l==="transform")o.push([s||""]),a.push(u=>[u,u===""]);else if(gme.test(l)){if(delete r[l],Nt.und(s))return;const u=yme.test(l)?"px":vme.test(l)?"deg":"";o.push(pi(s)),a.push(l==="rotate3d"?([f,c,m,y])=>[`rotate3d(${f},${c},${m},${Tw(y,u)})`,Ib(y,0)]:f=>[`${l}(${f.map(c=>Tw(c,u)).join(",")})`,Ib(f,l.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new xme(o,a)),super(r)}},xme=class extends e4{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return fr(this.inputs,(n,r)=>{const o=Da(n[0]),[a,s]=this.transforms[r](Nt.arr(o)?o:n.map(Da));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){e==1&&fr(this.inputs,t=>fr(t,n=>_i(n)&&oh(n,this)))}observerRemoved(e){e==0&&fr(this.inputs,t=>fr(t,n=>_i(n)&&Kg(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Gg(this,e)}},Sme=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Os.assign({batchedUpdates:sy.unstable_batchedUpdates,createStringInterpolator:r4,colors:uhe});var wme=_he(Sme,{applyAnimatedValues:pme,createAnimatedStyle:e=>new bme(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Cme=wme.animated;function Wbe(){const e=ay();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}function qbe(){const[e]=EB(),t=ay(),n=wl(),r=C.useMemo(()=>Object.fromEntries(e.entries()),[e]),o=C.useRef(new Set),a=C.useCallback((s,l)=>{const u=new Set([...l,...o.current]);o.current=new Set([...o.current,...Object.keys(s),...l]);const f=new URLSearchParams(n.search);for(const c of u)Object.prototype.hasOwnProperty.call(s,c)||f.delete(c);for(const[c,m]of Object.entries(s))f.set(c,m);t({search:f.toString(),hash:n.hash},{replace:!0})},[t,n]);return{params:r,onGivensChange:a}}const T4=tr(h.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),kme="publisher:resize";function Tme(e){return typeof e=="object"&&e!==null&&e.type===kme&&typeof e.height=="number"}function $2(e){return e.replace(/\/api\/v0\/?$/,"")}function Mme({server:e,environmentName:t,packageName:n,path:r}){const o=r.startsWith("public/")?r.slice(7):r;return`${$2(e)}/environments/${encodeURIComponent(t)}/packages/${encodeURIComponent(n)}/`+o}function Eme(e){try{const{environmentName:t,packageName:n,modelPath:r}=yo(e);return!t||!n||!r?null:{environmentName:t,packageName:n,dataAppPath:r}}catch{return null}}function Ybe({resourceUri:e}){const{server:t,apiClients:n}=_r(),r=Eme(e),o=r?.environmentName??"",a=r?.packageName??"",s=r?.dataAppPath??"",l=C.useMemo(()=>Mme({server:t,environmentName:o,packageName:a,path:s}),[t,o,a,s]),u=ho({queryKey:["data-apps",o,a],queryFn:()=>n.dataApps.listDataApps(o,a),enabled:!!r}).data?.data?.find(b=>b.path===s),f=u?.title??s,c=u?.fit==="viewport",m=C.useRef(null),[y,v]=C.useState(120);return C.useEffect(()=>{if(c)return;function b(x){Tme(x.data)&&x.source===m.current?.contentWindow&&x.data.height>0&&v(Math.ceil(x.data.height))}return window.addEventListener("message",b),()=>window.removeEventListener("message",b)},[c]),r?h.jsxs(Ct,{sx:{p:3,...c?{height:"100%",display:"flex",flexDirection:"column"}:{maxWidth:1200,mx:"auto"}},children:[h.jsxs(kr,{direction:"row",alignItems:"baseline",spacing:1,sx:{mb:1,flexShrink:0},children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:f}),h.jsx(St,{variant:"caption",color:"text.secondary",sx:{fontFamily:di},children:s}),h.jsx(Ct,{sx:{flex:1}}),h.jsx(xa,{title:"Open standalone in new tab",children:h.jsx(eo,{size:"small",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",sx:{color:"text.secondary"},children:h.jsx(T4,{fontSize:"small"})})})]}),h.jsx(Ct,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1.5,overflow:"hidden",backgroundColor:"background.paper",...c?{flex:1,minHeight:0}:{}},children:h.jsx("iframe",{ref:m,src:l,title:f,sandbox:"allow-scripts allow-same-origin allow-forms",style:{display:"block",width:"100%",height:c?"100%":y,border:0}})})]}):h.jsxs(Ct,{sx:{p:3,maxWidth:1200,mx:"auto"},children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600},children:"Can't open data app"}),h.jsxs(St,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["This data app link is missing an environment, package, or path:",h.jsx(Ct,{component:"span",sx:{fontFamily:di,ml:1},children:e})]})]})}const M4=tr(h.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}));function Rme({onSubmit:e,isSubmitting:t,disabled:n,disabledReason:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),u=()=>a(!1),f=async()=>{try{await e({forceRefresh:s}),a(!1)}catch{}},c=h.jsx("span",{children:h.jsx(wo,{variant:"contained",startIcon:h.jsx(Wg,{}),onClick:()=>a(!0),disabled:n,"aria-label":"New materialization",children:"New materialization"})});return h.jsxs(h.Fragment,{children:[n&&r?h.jsx(xa,{title:r,children:c}):c,h.jsxs(Xi,{open:o,onClose:u,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"create-materialization-title",children:[h.jsx(Ji,{id:"create-materialization-title",children:"New materialization"}),h.jsxs(Zi,{children:[h.jsx(aT,{sx:{mb:2},children:"Materialize every persist source in this package: compile, build the tables, and load them so queries serve from the materialized tables."}),h.jsx(EI,{children:h.jsx(yp,{control:h.jsx(hT,{checked:s,onChange:m=>l(m.target.checked)}),label:"Force refresh (rebuild even if unchanged)"})})]}),h.jsxs(gy,{children:[h.jsx(wo,{onClick:u,children:"Cancel"}),h.jsx(wo,{variant:"contained",loading:t,onClick:f,children:"Materialize"})]})]})]})}function ck({children:e}){return h.jsx(St,{variant:"caption",component:"h6",sx:{display:"block",textTransform:"uppercase",letterSpacing:"0.06em",fontWeight:600,color:"text.secondary",mb:1},children:e})}function ey(e){return e===va.Pending||e===va.ManifestRowsReady}function Ome(e){return e===va.ManifestFileReady||e===va.Failed||e===va.Cancelled}function E4(e){switch(e){case va.ManifestFileReady:return"Done";case va.Failed:return"Failed";case va.Cancelled:return"Cancelled";case va.Pending:case va.ManifestRowsReady:return"Pending";default:return"Unknown"}}function R4(e){switch(e){case va.ManifestRowsReady:return"info";case va.ManifestFileReady:return"success";case va.Failed:return"error";case va.Cancelled:return"warning";case va.Pending:default:return"default"}}function O4(e){return e.metadata??{}}function Pme(e){return e.trigger==="SCHEDULER"?"Scheduled":"Manual"}function P4(e,t){if(!e)return"-";const n=new Date(e).getTime(),r=t?new Date(t).getTime():Date.now(),o=Math.max(0,r-n);if(o<1e3)return`${o}ms`;const a=Math.round(o/1e3);if(a<60)return`${a}s`;const s=Math.floor(a/60),l=a%60;if(s<60)return`${s}m ${l}s`;const u=Math.floor(s/60),f=s%60;return`${u}h ${f}m`}function uk(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function $me(e){if(!e)return"-";const t=new Date(e).getTime(),n=Math.round((Date.now()-t)/1e3);if(n<60)return"just now";const r=Math.floor(n/60);if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Dme({entries:e,builtAt:t}){const n=Object.entries(e??{});return h.jsxs(Ct,{children:[h.jsxs(kr,{direction:"row",alignItems:"baseline",justifyContent:"space-between",children:[h.jsx(ck,{children:"Build manifest"}),t&&h.jsxs(St,{variant:"caption",color:"text.secondary",children:["Built ",uk(t)]})]}),n.length===0?h.jsx(St,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"No materialized tables yet."}):h.jsxs(vy,{size:"small",children:[h.jsx(xy,{children:h.jsxs(vl,{children:[h.jsx(Hn,{children:"Source"}),h.jsx(Hn,{children:"Table name"}),h.jsx(Hn,{children:"Connection"}),h.jsx(Hn,{children:"Realization"}),h.jsx(Hn,{align:"right",children:"Rows"})]})}),h.jsx(by,{children:n.map(([r,o])=>h.jsxs(vl,{children:[h.jsx(Hn,{sx:{fontFamily:di},children:o.sourceName??r}),h.jsx(Hn,{sx:{fontFamily:di},children:o.physicalTableName??"-"}),h.jsx(Hn,{sx:{fontFamily:di},children:o.connectionName??"-"}),h.jsx(Hn,{children:o.realization??"-"}),h.jsx(Hn,{align:"right",children:o.rowCount??"-"})]},r))})]})]})}const x0=tr([h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),Ame=tr(h.jsx("path",{d:"M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74m9.84 4.63-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74c-3.6-.76-3.54-.75-3.67-.75-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38"}));function $4({meta:e}){const t=e.trigger==="SCHEDULER";return h.jsx(xa,{title:t?"Fired by the materialization schedule":"Triggered manually",children:h.jsx(Dp,{size:"small",variant:"outlined",color:t?"info":"default",icon:t?h.jsx(x0,{fontSize:"small"}):h.jsx(Ame,{fontSize:"small"}),label:Pme(e)})})}function D4({materialization:e,buildPlan:t,showBuildPlan:n=!0,onClose:r}){const o=e?O4(e):{},a=Object.values(t?.sources??{});return h.jsx(Xi,{open:e!==null,onClose:r,maxWidth:"md",fullWidth:!0,"aria-labelledby":"materialization-detail-title",children:e&&h.jsxs(h.Fragment,{children:[h.jsxs(Ji,{sx:{pr:6,pb:1.5},id:"materialization-detail-title",children:[h.jsxs(kr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:.75},children:[h.jsx(Dp,{size:"small",label:E4(e.status),color:R4(e.status),variant:ey(e.status)?"filled":"outlined"}),h.jsx($4,{meta:o})]}),h.jsx(St,{variant:"subtitle1",sx:{fontWeight:600},children:e.packageName??"Materialization"}),h.jsx(St,{variant:"caption",color:"text.secondary",sx:{fontFamily:di,wordBreak:"break-all"},children:e.id}),h.jsx(eo,{"aria-label":"close",onClick:r,sx:{position:"absolute",right:8,top:8},children:h.jsx(Rs,{fontSize:"small"})})]}),h.jsxs(Zi,{dividers:!0,children:[h.jsxs(Ct,{sx:{bgcolor:"action.hover",borderRadius:2,p:2,mb:3,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:2},children:[h.jsx(Lm,{label:"Started",value:uk(e.startedAt??e.createdAt)}),h.jsx(Lm,{label:"Completed",value:uk(e.completedAt)}),h.jsx(Lm,{label:"Duration",value:P4(e.startedAt,e.completedAt)}),h.jsx(Lm,{label:"Sources",value:`${o.sourcesBuilt??0} built · ${o.sourcesReused??0} reused`}),h.jsx(Lm,{label:"Force refresh",value:o.forceRefresh?"Yes":"No"})]}),e.error&&h.jsxs(Ct,{sx:{borderRadius:2,p:2,mb:3,border:"1px solid",borderColor:"error.main"},children:[h.jsx(ck,{children:h.jsx(Ct,{component:"span",sx:{color:"error.main"},children:"Error"})}),h.jsx(St,{variant:"body2",sx:{fontFamily:di,whiteSpace:"pre-wrap"},children:e.error})]}),n&&h.jsxs(Ct,{sx:{mb:3},children:[h.jsx(ck,{children:"Build plan"}),a.length===0?h.jsx(St,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"This package has no persist sources."}):h.jsxs(vy,{size:"small",children:[h.jsx(xy,{children:h.jsxs(vl,{children:[h.jsx(Hn,{children:"Source"}),h.jsx(Hn,{children:"Connection"}),h.jsx(Hn,{children:"Dialect"}),h.jsx(Hn,{align:"right",children:"Columns"}),h.jsx(Hn,{children:"Source Entity ID"})]})}),h.jsx(by,{children:a.map(s=>h.jsxs(vl,{children:[h.jsx(Hn,{sx:{fontFamily:di},children:s.name}),h.jsx(Hn,{sx:{fontFamily:di},children:s.connectionName}),h.jsx(Hn,{children:s.dialect??"-"}),h.jsx(Hn,{align:"right",children:s.columns?.length??0}),h.jsx(Hn,{sx:{fontFamily:di,fontSize:"0.75rem",wordBreak:"break-all",maxWidth:220},children:s.sourceEntityId})]},s.sourceID))})]})]}),h.jsx(Dme,{entries:e.manifest?.entries,builtAt:e.manifest?.builtAt})]})]})})}function Lm({label:e,value:t}){return h.jsxs(Ct,{children:[h.jsx(St,{variant:"caption",color:"text.secondary",display:"block",children:e}),h.jsx(St,{variant:"body2",children:t})]})}const jme=tr(h.jsx("path",{d:"M6 6h12v12H6z"}));function Nme(e){return tn("PrivateSwitchBase",e)}Kt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ime=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Et(o)}`],input:["input"]};return Zt(a,Nme,t)},Lme=Fe(Nd,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),zme=Fe("input",{name:"MuiSwitchBase",shouldForwardProp:Sa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Fme=C.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:f,id:c,inputProps:m,inputRef:y,name:v,onBlur:b,onChange:x,onFocus:w,readOnly:S,required:k=!1,tabIndex:T,type:O,value:P,slots:$={},slotProps:I={},...F}=e,[A,H]=mi({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),L=bi(),M=se=>{w&&w(se),L&&L.onFocus&&L.onFocus(se)},_=se=>{b&&b(se),L&&L.onBlur&&L.onBlur(se)},B=se=>{if(se.nativeEvent.defaultPrevented)return;const re=se.target.checked;H(re),x&&x(se,re)};let W=s;L&&typeof W>"u"&&(W=L.disabled);const j=O==="checkbox"||O==="radio",Q={...e,checked:A,disabled:W,disableFocusRipple:l,edge:u},K=Ime(Q),te={slots:$,slotProps:{input:m,...I}},[X,J]=cr("root",{ref:t,elementType:Lme,className:K.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...F},getSlotProps:se=>({...se,onFocus:re=>{se.onFocus?.(re),M(re)},onBlur:re=>{se.onBlur?.(re),_(re)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:W,role:void 0,tabIndex:null}}),[ne,oe]=cr("input",{ref:y,elementType:zme,className:K.input,externalForwardedProps:te,getSlotProps:se=>({...se,onChange:re=>{se.onChange?.(re),B(re)}}),ownerState:Q,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:W,id:j?c:void 0,name:v,readOnly:S,required:k,tabIndex:T,type:O,...O==="checkbox"&&P===void 0?{}:{value:P}}});return h.jsxs(X,{...J,children:[h.jsx(ne,{...oe}),A?o:f]})}),Bme=tr(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),_me=tr(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Ume=tr(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Vme(e){return tn("MuiCheckbox",e)}const Mw=Kt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hme=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Et(r)}`,`size${Et(o)}`]},s=Zt(a,Vme,t);return{...t,...s}},Wme=Fe(Fme,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Et(n.size)}`],n.color!=="default"&&t[`color${Et(n.color)}`]]}})(qn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ba()).map(([t])=>({props:{color:t},style:{[`&.${Mw.checked}, &.${Mw.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Mw.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),qme=h.jsx(_me,{}),Yme=h.jsx(Bme,{}),Gme=h.jsx(Ume,{}),D2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiCheckbox"}),{checkedIcon:r=qme,color:o="primary",icon:a=Yme,indeterminate:s=!1,indeterminateIcon:l=Gme,inputProps:u,size:f="medium",disableRipple:c=!1,className:m,slots:y={},slotProps:v={},...b}=n,x=s?l:a,w=s?l:r,S={...n,disableRipple:c,color:o,indeterminate:s,size:f},k=Hme(S),T=v.input??u,[O,P]=cr("root",{ref:t,elementType:Wme,className:It(k.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:v,...b},ownerState:S,additionalProps:{type:"checkbox",icon:C.cloneElement(x,{fontSize:x.props.fontSize??f}),checkedIcon:C.cloneElement(w,{fontSize:w.props.fontSize??f}),disableRipple:c,slots:y,slotProps:{input:vL(typeof T=="function"?T(S):T,{"data-indeterminate":s})}}});return h.jsx(O,{...P,classes:k})}),Kme=e=>{const{classes:t}=e;return Zt({root:["root"]},vfe,t)},Qme=Fe(gr,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),hc=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...a}=n,s=n,l=Kme(s),{titleId:u=o}=C.useContext(Lz);return h.jsx(Qme,{component:"h2",className:It(l.root,r),ownerState:s,ref:t,variant:"h6",id:o??u,...a})});function Xme(e){return tn("MuiFormControlLabel",e)}const og=Kt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Zme=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${Et(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Zt(s,Xme,t)},Jme=Fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${og.label}`]:t.label},t.root,t[`labelPlacement${Et(n.labelPlacement)}`]]}})(qn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${og.disabled}`]:{cursor:"default"},[`& .${og.label}`]:{[`&.${og.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),ege=Fe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(qn(({theme:e})=>({[`&.${og.error}`]:{color:(e.vars||e).palette.error.main}}))),tge=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:u,inputRef:f,label:c,labelPlacement:m="end",name:y,onChange:v,required:b,slots:x={},slotProps:w={},value:S,...k}=n,T=bi(),O=l??s.props.disabled??T?.disabled,P=b??s.props.required,$={disabled:O,required:P};["checked","name","onChange","value","inputRef"].forEach(B=>{typeof s.props[B]>"u"&&typeof n[B]<"u"&&($[B]=n[B])});const I=Wd({props:n,muiFormControl:T,states:["error"]}),F={...n,disabled:O,labelPlacement:m,required:P,error:I.error},A=Zme(F),H={slots:x,slotProps:{...a,...w}},[L,M]=cr("typography",{elementType:gr,externalForwardedProps:H,ownerState:F});let _=c;return _!=null&&_.type!==gr&&!u&&(_=h.jsx(L,{component:"span",...M,className:It(A.label,M?.className),children:_})),h.jsxs(Jme,{className:It(A.root,o),ownerState:F,ref:t,...k,children:[C.cloneElement(s,$),P?h.jsxs("div",{children:[_,h.jsxs(ege,{ownerState:F,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):_]})});function nge(e){return tn("MuiListItemIcon",e)}const oj=Kt("MuiListItemIcon",["root","alignItemsFlexStart"]),rge=e=>{const{alignItems:t,classes:n}=e;return Zt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},nge,n)},oge=Fe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(qn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),A2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=C.useContext(oc),s={...n,alignItems:a.alignItems},l=rge(s);return h.jsx(oge,{className:It(l.root,r),ownerState:s,ref:t,...o})});function age(e){return tn("MuiListItemText",e)}const fp=Kt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ige=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Zt({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},age,t)},sge=Fe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fp.primary}`]:t.primary},{[`& .${fp.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${LD.root}:where(& .${fp.primary})`]:{display:"block"},[`.${LD.root}:where(& .${fp.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),j2=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:c,slots:m={},slotProps:y={},...v}=n,{dense:b}=C.useContext(oc);let x=l??r,w=f;const S={...n,disableTypography:a,inset:s,primary:!!x,secondary:!!w,dense:b},k=ige(S),T={slots:m,slotProps:{primary:u,secondary:c,...y}},[O,P]=cr("root",{className:It(k.root,o),elementType:sge,externalForwardedProps:{...T,...v},ownerState:S,ref:t}),[$,I]=cr("primary",{className:k.primary,elementType:gr,externalForwardedProps:T,ownerState:S}),[F,A]=cr("secondary",{className:k.secondary,elementType:gr,externalForwardedProps:T,ownerState:S});return x!=null&&x.type!==gr&&!a&&(x=h.jsx($,{variant:b?"body2":"body1",component:I?.variant?void 0:"span",...I,children:x})),w!=null&&w.type!==gr&&!a&&(w=h.jsx(F,{variant:"body2",color:"textSecondary",...A,children:w})),h.jsxs(O,{...P,children:[x,w]})}),aj=Kt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function lge(e){return tn("MuiMenuItem",e)}const zm=Kt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cge=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uge=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=Zt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},lge,s);return{...s,...l}},dge=Fe(Nd,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cge})(qn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${zm.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${zm.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${zm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aj.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aj.inset}`]:{marginLeft:52},[`& .${fp.root}`]:{marginTop:0,marginBottom:0},[`& .${fp.inset}`]:{paddingLeft:36},[`& .${oj.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${oj.root} svg`]:{fontSize:"1.25rem"}}}]}))),Xo=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:c,className:m,...y}=n,v=C.useContext(oc),b=C.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),x=C.useRef(null);Lo(()=>{r&&x.current&&x.current.focus()},[r]);const w={...n,dense:b.dense,divider:s,disableGutters:l},S=uge(n),k=pr(x,t);let T;return n.disabled||(T=c!==void 0?c:-1),h.jsx(oc.Provider,{value:b,children:h.jsx(dge,{ref:k,role:f,tabIndex:T,component:o,focusVisibleClassName:It(S.focusVisible,u),className:It(S.root,m),...y,ownerState:w,classes:S})})});function fge({materialization:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),u=()=>a(!0),f=()=>{a(!1),l(!1),t()};return h.jsxs(hn.Fragment,{children:[h.jsxs(Xo,{"aria-label":`Delete materialization ${e?.id??""}`.trim(),onClick:c=>{c.stopPropagation(),u()},sx:{color:"error.main"},children:[h.jsx(A2,{sx:{color:"inherit"},children:h.jsx(lx,{fontSize:"small"})}),h.jsx(j2,{children:"Delete"})]}),h.jsxs(El,{onClose:f,open:o,"aria-labelledby":"delete-materialization-title",children:[h.jsx(hc,{sx:{m:0,p:2},id:"delete-materialization-title",children:"Delete Materialization"}),h.jsx(cs,{"aria-label":"close",onClick:f,sx:c=>({position:"absolute",right:8,top:8,color:c.palette.grey[500]}),children:h.jsx(Rs,{})}),h.jsxs(Ml,{dividers:!0,children:[h.jsx(gr,{gutterBottom:!0,children:"Are you sure you want to delete this materialization record? This action cannot be undone."}),h.jsx(tge,{control:h.jsx(D2,{checked:s,onChange:c=>l(c.target.checked)}),label:"Also drop the materialized table(s) this run produced"})]}),h.jsx(Tl,{children:h.jsx(Jr,{loading:n,variant:"contained",autoFocus:!0,onClick:()=>r(s),color:"error",children:"Delete"})})]})]})}function A4({materializations:e,mutable:t,isMutating:n,showPackage:r=!1,onClickPackage:o,onStop:a,onDelete:s,onViewDetails:l}){return e.length===0?h.jsx(St,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:"No materializations yet."}):h.jsxs(vy,{size:"small",children:[h.jsx(xy,{children:h.jsxs(vl,{children:[r&&h.jsx(Hn,{children:"Package"}),h.jsx(Hn,{children:"Status"}),h.jsx(Hn,{children:"Trigger"}),h.jsx(Hn,{children:"Started"}),h.jsx(Hn,{children:"Duration"}),h.jsx(Hn,{children:"Sources"}),h.jsx(Hn,{align:"right",children:"Actions"})]})}),h.jsx(by,{children:e.map(u=>h.jsx(pge,{materialization:u,mutable:t,isMutating:n,showPackage:r,onClickPackage:o,onStop:a,onDelete:s,onViewDetails:l},u.id))})]})}function pge({materialization:e,mutable:t,isMutating:n,showPackage:r,onClickPackage:o,onStop:a,onDelete:s,onViewDetails:l}){const[u,f]=C.useState(null),c=!!u,m=()=>f(null),y=O4(e),v=y.sourcesBuilt!==void 0||y.sourcesReused!==void 0?`${y.sourcesBuilt??0} built, ${y.sourcesReused??0} reused`:"-",b=ey(e.status),x=Ome(e.status),w=e.error??void 0,S=t&&(b||x);return h.jsxs(vl,{hover:!0,sx:{cursor:"pointer","&:focus-visible":{outline:"2px solid",outlineColor:"primary.main",outlineOffset:"-2px"}},onClick:()=>l(e),onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),l(e))},role:"button",tabIndex:0,"aria-label":`View materialization ${e.id??""} details`.trim(),children:[r&&h.jsx(Hn,{onClick:k=>k.stopPropagation(),children:o?h.jsx(cT,{component:"button",underline:"hover",onClick:()=>o(e.packageName??""),sx:{fontWeight:500},children:e.packageName}):e.packageName}),h.jsx(Hn,{children:h.jsxs(Ct,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(Dp,{size:"small",label:E4(e.status),color:R4(e.status),variant:b?"filled":"outlined"}),w&&h.jsx(xa,{title:w,children:h.jsx(Bz,{fontSize:"small",color:"error"})})]})}),h.jsx(Hn,{children:h.jsx($4,{meta:y})}),h.jsx(Hn,{children:$me(e.startedAt??e.createdAt)}),h.jsx(Hn,{children:P4(e.startedAt,e.completedAt)}),h.jsx(Hn,{children:v}),h.jsx(Hn,{align:"right",onClick:k=>k.stopPropagation(),children:S&&h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small","aria-label":`Materialization actions for ${e.id??""}`.trim(),onClick:k=>f(k.currentTarget),children:h.jsx(cx,{fontSize:"small"})}),h.jsxs(Zp,{anchorEl:u,open:c,onClose:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[t&&b&&h.jsxs(rc,{"aria-label":`Stop materialization ${e.id??""}`.trim(),disabled:n,onClick:()=>{m(),a(e)},children:[h.jsx(yy,{children:h.jsx(jme,{fontSize:"small"})}),h.jsx(_d,{children:"Stop"})]}),t&&x&&h.jsx(fge,{materialization:e,isMutating:n,onCloseDialog:m,onDelete:k=>s(e,k)})]})]})})]})}var ep={},ni={},Fm={},tp={},ij={},sj;function hge(){return sj||(sj=1,Object.defineProperty(ij,"__esModule",{value:!0})),ij}var Bm={},_m={},lj;function qd(){if(lj)return _m;lj=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.CronField=void 0;let e=class j4{#e=!1;#t=!1;#n=!1;#o=[];options={rawValue:""};static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}constructor(n,r={rawValue:""}){if(!Array.isArray(n))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(n.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...r,rawValue:r.rawValue??""},this.#o=n.sort(j4.sorter),this.#n=this.options.wildcard!==void 0?this.options.wildcard:this.#r(),this.#e=this.options.rawValue.includes("L")||n.includes("L"),this.#t=this.options.rawValue.includes("?")||n.includes("?")}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return this.#e}get hasQuestionMarkChar(){return this.#t}get isWildcard(){return this.#n}get values(){return this.#o}static sorter(n,r){const o=typeof n=="number",a=typeof r=="number";return o&&a?n-r:!o&&!a?n.localeCompare(r):o?-1:1}static findNearestValueInList(n,r,o){if(o){for(let a=n.length-1;a>=0;a--)if(n[a]<r)return n[a];return null}for(let a=0;a<n.length;a++)if(n[a]>r)return n[a];return null}findNearestValue(n,r){return this.constructor.findNearestValueInList(this.values,n,r)}serialize(){return{wildcard:this.#n,values:this.#o}}validate(){let n;const r=this.chars.length>0?` or chars ${this.chars.join("")}`:"",o=l=>u=>new RegExp(`^\\d{0,2}${u}$`).test(l),a=l=>(n=l,typeof l=="number"?l>=this.min&&l<=this.max:this.chars.some(o(l)));if(!this.#o.every(a))throw new Error(`${this.constructor.name} Validation error, got value ${n} expected range ${this.min}-${this.max}${r}`);const s=this.#o.find((l,u)=>this.#o.indexOf(l)!==u);if(s)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}#r(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(n,r)=>r+this.min).every(n=>this.#o.includes(n))}};return _m.CronField=e,_m}var cj;function mge(){if(cj)return Bm;cj=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.CronDayOfMonth=void 0;const e=qd(),t=1,n=31,r=Object.freeze(["L"]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return Bm.CronDayOfMonth=o,Bm}var Um={},uj;function gge(){if(uj)return Um;uj=1,Object.defineProperty(Um,"__esModule",{value:!0}),Um.CronDayOfWeek=void 0;const e=qd(),t=0,n=7,r=Object.freeze(["L"]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};return Um.CronDayOfWeek=o,Um}var Vm={},dj;function yge(){if(dj)return Vm;dj=1,Object.defineProperty(Vm,"__esModule",{value:!0}),Vm.CronHour=void 0;const e=qd(),t=0,n=23,r=Object.freeze([]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return Vm.CronHour=o,Vm}var Hm={},fj;function vge(){if(fj)return Hm;fj=1,Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.CronMinute=void 0;const e=qd(),t=0,n=59,r=Object.freeze([]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return Hm.CronMinute=o,Hm}var Wm={},pj={},Oa={},hj;function bge(){if(hj)return Oa;hj=1,Object.defineProperty(Oa,"__esModule",{value:!0});class e extends Error{}class t extends e{constructor(R){super(`Invalid DateTime: ${R.toMessage()}`)}}class n extends e{constructor(R){super(`Invalid Interval: ${R.toMessage()}`)}}class r extends e{constructor(R){super(`Invalid Duration: ${R.toMessage()}`)}}class o extends e{}class a extends e{constructor(R){super(`Invalid unit ${R}`)}}class s extends e{}class l extends e{constructor(){super("Zone is an abstract class")}}const u="numeric",f="short",c="long",m={year:u,month:u,day:u},y={year:u,month:f,day:u},v={year:u,month:f,day:u,weekday:f},b={year:u,month:c,day:u},x={year:u,month:c,day:u,weekday:c},w={hour:u,minute:u},S={hour:u,minute:u,second:u},k={hour:u,minute:u,second:u,timeZoneName:f},T={hour:u,minute:u,second:u,timeZoneName:c},O={hour:u,minute:u,hourCycle:"h23"},P={hour:u,minute:u,second:u,hourCycle:"h23"},$={hour:u,minute:u,second:u,hourCycle:"h23",timeZoneName:f},I={hour:u,minute:u,second:u,hourCycle:"h23",timeZoneName:c},F={year:u,month:u,day:u,hour:u,minute:u},A={year:u,month:u,day:u,hour:u,minute:u,second:u},H={year:u,month:f,day:u,hour:u,minute:u},L={year:u,month:f,day:u,hour:u,minute:u,second:u},M={year:u,month:f,day:u,weekday:f,hour:u,minute:u},_={year:u,month:c,day:u,hour:u,minute:u,timeZoneName:f},B={year:u,month:c,day:u,hour:u,minute:u,second:u,timeZoneName:f},W={year:u,month:c,day:u,weekday:c,hour:u,minute:u,timeZoneName:c},j={year:u,month:c,day:u,weekday:c,hour:u,minute:u,second:u,timeZoneName:c};class Q{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(R,z){throw new l}formatOffset(R,z){throw new l}offset(R){throw new l}equals(R){throw new l}get isValid(){throw new l}}let K=null;class te extends Q{static get instance(){return K===null&&(K=new te),K}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(R,{format:z,locale:Y}){return Ru(R,z,Y)}formatOffset(R,z){return Fs(this.offset(R),z)}offset(R){return-new Date(R).getTimezoneOffset()}equals(R){return R.type==="system"}get isValid(){return!0}}const X=new Map;function J(V){let R=X.get(V);return R===void 0&&(R=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:V,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),X.set(V,R)),R}const ne={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function oe(V,R){const z=V.format(R).replace(/\u200E/g,""),Y=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(z),[,ee,ve,Oe,je,Ue,Pt,yn]=Y;return[Oe,ee,ve,je,Ue,Pt,yn]}function se(V,R){const z=V.formatToParts(R),Y=[];for(let ee=0;ee<z.length;ee++){const{type:ve,value:Oe}=z[ee],je=ne[ve];ve==="era"?Y[je]=Oe:Ke(je)||(Y[je]=parseInt(Oe,10))}return Y}const re=new Map;class ie extends Q{static create(R){let z=re.get(R);return z===void 0&&re.set(R,z=new ie(R)),z}static resetCache(){re.clear(),X.clear()}static isValidSpecifier(R){return this.isValidZone(R)}static isValidZone(R){if(!R)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:R}).format(),!0}catch{return!1}}constructor(R){super(),this.zoneName=R,this.valid=ie.isValidZone(R)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(R,{format:z,locale:Y}){return Ru(R,z,Y,this.name)}formatOffset(R,z){return Fs(this.offset(R),z)}offset(R){if(!this.valid)return NaN;const z=new Date(R);if(isNaN(z))return NaN;const Y=J(this.name);let[ee,ve,Oe,je,Ue,Pt,yn]=Y.formatToParts?se(Y,z):oe(Y,z);je==="BC"&&(ee=-Math.abs(ee)+1);const Nn=zs({year:ee,month:ve,day:Oe,hour:Ue===24?0:Ue,minute:Pt,second:yn,millisecond:0});let dr=+z;const wn=dr%1e3;return dr-=wn>=0?wn:1e3+wn,(Nn-dr)/(60*1e3)}equals(R){return R.type==="iana"&&R.name===this.name}get isValid(){return this.valid}}let ce={};function me(V,R={}){const z=JSON.stringify([V,R]);let Y=ce[z];return Y||(Y=new Intl.ListFormat(V,R),ce[z]=Y),Y}const ye=new Map;function we(V,R={}){const z=JSON.stringify([V,R]);let Y=ye.get(z);return Y===void 0&&(Y=new Intl.DateTimeFormat(V,R),ye.set(z,Y)),Y}const Ce=new Map;function $e(V,R={}){const z=JSON.stringify([V,R]);let Y=Ce.get(z);return Y===void 0&&(Y=new Intl.NumberFormat(V,R),Ce.set(z,Y)),Y}const fe=new Map;function Te(V,R={}){const{base:z,...Y}=R,ee=JSON.stringify([V,Y]);let ve=fe.get(ee);return ve===void 0&&(ve=new Intl.RelativeTimeFormat(V,R),fe.set(ee,ve)),ve}let nt=null;function ze(){return nt||(nt=new Intl.DateTimeFormat().resolvedOptions().locale,nt)}const Ae=new Map;function ue(V){let R=Ae.get(V);return R===void 0&&(R=new Intl.DateTimeFormat(V).resolvedOptions(),Ae.set(V,R)),R}const bt=new Map;function Be(V){let R=bt.get(V);if(!R){const z=new Intl.Locale(V);R="getWeekInfo"in z?z.getWeekInfo():z.weekInfo,"minimalDays"in R||(R={...qe,...R}),bt.set(V,R)}return R}function it(V){const R=V.indexOf("-x-");R!==-1&&(V=V.substring(0,R));const z=V.indexOf("-u-");if(z===-1)return[V];{let Y,ee;try{Y=we(V).resolvedOptions(),ee=V}catch{const je=V.substring(0,z);Y=we(je).resolvedOptions(),ee=je}const{numberingSystem:ve,calendar:Oe}=Y;return[ee,ve,Oe]}}function pt(V,R,z){return(z||R)&&(V.includes("-u-")||(V+="-u"),z&&(V+=`-ca-${z}`),R&&(V+=`-nu-${R}`)),V}function _t(V){const R=[];for(let z=1;z<=12;z++){const Y=gn.utc(2009,z,1);R.push(V(Y))}return R}function Ht(V){const R=[];for(let z=1;z<=7;z++){const Y=gn.utc(2016,11,13+z);R.push(V(Y))}return R}function at(V,R,z,Y){const ee=V.listingMode();return ee==="error"?null:ee==="en"?z(R):Y(R)}function Xe(V){return V.numberingSystem&&V.numberingSystem!=="latn"?!1:V.numberingSystem==="latn"||!V.locale||V.locale.startsWith("en")||ue(V.locale).numberingSystem==="latn"}class ot{constructor(R,z,Y){this.padTo=Y.padTo||0,this.floor=Y.floor||!1;const{padTo:ee,floor:ve,...Oe}=Y;if(!z||Object.keys(Oe).length>0){const je={useGrouping:!1,...Y};Y.padTo>0&&(je.minimumIntegerDigits=Y.padTo),this.inf=$e(R,je)}}format(R){if(this.inf){const z=this.floor?Math.floor(R):R;return this.inf.format(z)}else{const z=this.floor?Math.floor(R):mc(R,3);return ur(z,this.padTo)}}}class Ne{constructor(R,z,Y){this.opts=Y,this.originalZone=void 0;let ee;if(this.opts.timeZone)this.dt=R;else if(R.zone.type==="fixed"){const Oe=-1*(R.offset/60),je=Oe>=0?`Etc/GMT+${Oe}`:`Etc/GMT${Oe}`;R.offset!==0&&ie.create(je).valid?(ee=je,this.dt=R):(ee="UTC",this.dt=R.offset===0?R:R.setZone("UTC").plus({minutes:R.offset}),this.originalZone=R.zone)}else R.zone.type==="system"?this.dt=R:R.zone.type==="iana"?(this.dt=R,ee=R.zone.name):(ee="UTC",this.dt=R.setZone("UTC").plus({minutes:R.offset}),this.originalZone=R.zone);const ve={...this.opts};ve.timeZone=ve.timeZone||ee,this.dtf=we(z,ve)}format(){return this.originalZone?this.formatToParts().map(({value:R})=>R).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const R=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?R.map(z=>{if(z.type==="timeZoneName"){const Y=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...z,value:Y}}else return z}):R}resolvedOptions(){return this.dtf.resolvedOptions()}}class he{constructor(R,z,Y){this.opts={style:"long",...Y},!z&&Re()&&(this.rtf=Te(R,Y))}format(R,z){return this.rtf?this.rtf.format(R,z):bc(z,R,this.opts.numeric,this.opts.style!=="long")}formatToParts(R,z){return this.rtf?this.rtf.formatToParts(R,z):[]}}const qe={firstDay:1,minimalDays:4,weekend:[6,7]};class Me{static fromOpts(R){return Me.create(R.locale,R.numberingSystem,R.outputCalendar,R.weekSettings,R.defaultToEN)}static create(R,z,Y,ee,ve=!1){const Oe=R||Ye.defaultLocale,je=Oe||(ve?"en-US":ze()),Ue=z||Ye.defaultNumberingSystem,Pt=Y||Ye.defaultOutputCalendar,yn=Qt(ee)||Ye.defaultWeekSettings;return new Me(je,Ue,Pt,yn,Oe)}static resetCache(){nt=null,ye.clear(),Ce.clear(),fe.clear(),Ae.clear(),bt.clear()}static fromObject({locale:R,numberingSystem:z,outputCalendar:Y,weekSettings:ee}={}){return Me.create(R,z,Y,ee)}constructor(R,z,Y,ee,ve){const[Oe,je,Ue]=it(R);this.locale=Oe,this.numberingSystem=z||je||null,this.outputCalendar=Y||Ue||null,this.weekSettings=ee,this.intl=pt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=ve,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Xe(this)),this.fastNumbersCached}listingMode(){const R=this.isEnglish(),z=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return R&&z?"en":"intl"}clone(R){return!R||Object.getOwnPropertyNames(R).length===0?this:Me.create(R.locale||this.specifiedLocale,R.numberingSystem||this.numberingSystem,R.outputCalendar||this.outputCalendar,Qt(R.weekSettings)||this.weekSettings,R.defaultToEN||!1)}redefaultToEN(R={}){return this.clone({...R,defaultToEN:!0})}redefaultToSystem(R={}){return this.clone({...R,defaultToEN:!1})}months(R,z=!1){return at(this,R,Pl,()=>{const Y=this.intl==="ja"||this.intl.startsWith("ja-");z&=!Y;const ee=z?{month:R,day:"numeric"}:{month:R},ve=z?"format":"standalone";if(!this.monthsCache[ve][R]){const Oe=Y?je=>this.dtFormatter(je,ee).format():je=>this.extract(je,ee,"month");this.monthsCache[ve][R]=_t(Oe)}return this.monthsCache[ve][R]})}weekdays(R,z=!1){return at(this,R,ps,()=>{const Y=z?{weekday:R,year:"numeric",month:"long",day:"numeric"}:{weekday:R},ee=z?"format":"standalone";return this.weekdaysCache[ee][R]||(this.weekdaysCache[ee][R]=Ht(ve=>this.extract(ve,Y,"weekday"))),this.weekdaysCache[ee][R]})}meridiems(){return at(this,void 0,()=>Pu,()=>{if(!this.meridiemCache){const R={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[gn.utc(2016,11,13,9),gn.utc(2016,11,13,19)].map(z=>this.extract(z,R,"dayperiod"))}return this.meridiemCache})}eras(R){return at(this,R,wa,()=>{const z={era:R};return this.eraCache[R]||(this.eraCache[R]=[gn.utc(-40,1,1),gn.utc(2017,1,1)].map(Y=>this.extract(Y,z,"era"))),this.eraCache[R]})}extract(R,z,Y){const ee=this.dtFormatter(R,z),ve=ee.formatToParts(),Oe=ve.find(je=>je.type.toLowerCase()===Y);return Oe?Oe.value:null}numberFormatter(R={}){return new ot(this.intl,R.forceSimple||this.fastNumbers,R)}dtFormatter(R,z={}){return new Ne(R,this.intl,z)}relFormatter(R={}){return new he(this.intl,this.isEnglish(),R)}listFormatter(R={}){return me(this.intl,R)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||ue(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:We()?Be(this.locale):qe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(R){return this.locale===R.locale&&this.numberingSystem===R.numberingSystem&&this.outputCalendar===R.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Mt=null;class Rt extends Q{static get utcInstance(){return Mt===null&&(Mt=new Rt(0)),Mt}static instance(R){return R===0?Rt.utcInstance:new Rt(R)}static parseSpecifier(R){if(R){const z=R.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(z)return new Rt(Rl(z[1],z[2]))}return null}constructor(R){super(),this.fixed=R}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Fs(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Fs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(R,z){return Fs(this.fixed,z)}get isUniversal(){return!0}offset(){return this.fixed}equals(R){return R.type==="fixed"&&R.fixed===this.fixed}get isValid(){return!0}}class gt extends Q{constructor(R){super(),this.zoneName=R}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ct(V,R){if(Ke(V)||V===null)return R;if(V instanceof Q)return V;if(pn(V)){const z=V.toLowerCase();return z==="default"?R:z==="local"||z==="system"?te.instance:z==="utc"||z==="gmt"?Rt.utcInstance:Rt.parseSpecifier(z)||ie.create(V)}else return nn(V)?Rt.instance(V):typeof V=="object"&&"offset"in V&&typeof V.offset=="function"?V:new gt(V)}const At={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Wt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},dn=At.hanidec.replace(/[\[|\]]/g,"").split("");function bn(V){let R=parseInt(V,10);if(isNaN(R)){R="";for(let z=0;z<V.length;z++){const Y=V.charCodeAt(z);if(V[z].search(At.hanidec)!==-1)R+=dn.indexOf(V[z]);else for(const ee in Wt){const[ve,Oe]=Wt[ee];Y>=ve&&Y<=Oe&&(R+=Y-ve)}}return parseInt(R,10)}else return R}const _n=new Map;function Gn(){_n.clear()}function Jt({numberingSystem:V},R=""){const z=V||"latn";let Y=_n.get(z);Y===void 0&&(Y=new Map,_n.set(z,Y));let ee=Y.get(R);return ee===void 0&&(ee=new RegExp(`${At[z]}${R}`),Y.set(R,ee)),ee}let Ln=()=>Date.now(),be="system",Bn=null,Rn=null,en=null,le=60,De,Le=null;class Ye{static get now(){return Ln}static set now(R){Ln=R}static set defaultZone(R){be=R}static get defaultZone(){return ct(be,te.instance)}static get defaultLocale(){return Bn}static set defaultLocale(R){Bn=R}static get defaultNumberingSystem(){return Rn}static set defaultNumberingSystem(R){Rn=R}static get defaultOutputCalendar(){return en}static set defaultOutputCalendar(R){en=R}static get defaultWeekSettings(){return Le}static set defaultWeekSettings(R){Le=Qt(R)}static get twoDigitCutoffYear(){return le}static set twoDigitCutoffYear(R){le=R%100}static get throwOnInvalid(){return De}static set throwOnInvalid(R){De=R}static resetCaches(){Me.resetCache(),ie.resetCache(),gn.resetCache(),Gn()}}class ut{constructor(R,z){this.reason=R,this.explanation=z}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const zt=[0,31,59,90,120,151,181,212,243,273,304,334],Ut=[0,31,60,91,121,152,182,213,244,274,305,335];function jt(V,R){return new ut("unit out of range",`you specified ${R} (of type ${typeof R}) as a ${V}, which is invalid`)}function mt(V,R,z){const Y=new Date(Date.UTC(V,R-1,z));V<100&&V>=0&&Y.setUTCFullYear(Y.getUTCFullYear()-1900);const ee=Y.getUTCDay();return ee===0?7:ee}function Lt(V,R,z){return z+(xi(V)?Ut:zt)[R-1]}function Ot(V,R){const z=xi(V)?Ut:zt,Y=z.findIndex(ve=>ve<R),ee=R-z[Y];return{month:Y+1,day:ee}}function kt(V,R){return(V-R+7)%7+1}function qt(V,R=4,z=1){const{year:Y,month:ee,day:ve}=V,Oe=Lt(Y,ee,ve),je=kt(mt(Y,ee,ve),z);let Ue=Math.floor((Oe-je+14-R)/7),Pt;return Ue<1?(Pt=Y-1,Ue=ds(Pt,R,z)):Ue>ds(Y,R,z)?(Pt=Y+1,Ue=1):Pt=Y,{weekYear:Pt,weekNumber:Ue,weekday:je,...Ol(V)}}function On(V,R=4,z=1){const{weekYear:Y,weekNumber:ee,weekday:ve}=V,Oe=kt(mt(Y,1,R),z),je=Ls(Y);let Ue=ee*7+ve-Oe-7+R,Pt;Ue<1?(Pt=Y-1,Ue+=Ls(Pt)):Ue>je?(Pt=Y+1,Ue-=Ls(Y)):Pt=Y;const{month:yn,day:Nn}=Ot(Pt,Ue);return{year:Pt,month:yn,day:Nn,...Ol(V)}}function Kn(V){const{year:R,month:z,day:Y}=V,ee=Lt(R,z,Y);return{year:R,ordinal:ee,...Ol(V)}}function xn(V){const{year:R,ordinal:z}=V,{month:Y,day:ee}=Ot(R,z);return{year:R,month:Y,day:ee,...Ol(V)}}function fn(V,R){if(!Ke(V.localWeekday)||!Ke(V.localWeekNumber)||!Ke(V.localWeekYear)){if(!Ke(V.weekday)||!Ke(V.weekNumber)||!Ke(V.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return Ke(V.localWeekday)||(V.weekday=V.localWeekday),Ke(V.localWeekNumber)||(V.weekNumber=V.localWeekNumber),Ke(V.localWeekYear)||(V.weekYear=V.localWeekYear),delete V.localWeekday,delete V.localWeekNumber,delete V.localWeekYear,{minDaysInFirstWeek:R.getMinDaysInFirstWeek(),startOfWeek:R.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function de(V,R=4,z=1){const Y=cn(V.weekYear),ee=Sn(V.weekNumber,1,ds(V.weekYear,R,z)),ve=Sn(V.weekday,1,7);return Y?ee?ve?!1:jt("weekday",V.weekday):jt("week",V.weekNumber):jt("weekYear",V.weekYear)}function pe(V){const R=cn(V.year),z=Sn(V.ordinal,1,Ls(V.year));return R?z?!1:jt("ordinal",V.ordinal):jt("year",V.year)}function He(V){const R=cn(V.year),z=Sn(V.month,1,12),Y=Sn(V.day,1,$o(V.year,V.month));return R?z?Y?!1:jt("day",V.day):jt("month",V.month):jt("year",V.year)}function vt(V){const{hour:R,minute:z,second:Y,millisecond:ee}=V,ve=Sn(R,0,23)||R===24&&z===0&&Y===0&&ee===0,Oe=Sn(z,0,59),je=Sn(Y,0,59),Ue=Sn(ee,0,999);return ve?Oe?je?Ue?!1:jt("millisecond",ee):jt("second",Y):jt("minute",z):jt("hour",R)}function Ke(V){return typeof V>"u"}function nn(V){return typeof V=="number"}function cn(V){return typeof V=="number"&&V%1===0}function pn(V){return typeof V=="string"}function ge(V){return Object.prototype.toString.call(V)==="[object Date]"}function Re(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function We(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yt(V){return Array.isArray(V)?V:[V]}function $t(V,R,z){if(V.length!==0)return V.reduce((Y,ee)=>{const ve=[R(ee),ee];return Y&&z(Y[0],ve[0])===Y[0]?Y:ve},null)[1]}function Tt(V,R){return R.reduce((z,Y)=>(z[Y]=V[Y],z),{})}function wt(V,R){return Object.prototype.hasOwnProperty.call(V,R)}function Qt(V){if(V==null)return null;if(typeof V!="object")throw new s("Week settings must be an object");if(!Sn(V.firstDay,1,7)||!Sn(V.minimalDays,1,7)||!Array.isArray(V.weekend)||V.weekend.some(R=>!Sn(R,1,7)))throw new s("Invalid week settings");return{firstDay:V.firstDay,minimalDays:V.minimalDays,weekend:Array.from(V.weekend)}}function Sn(V,R,z){return cn(V)&&V>=R&&V<=z}function hr(V,R){return V-R*Math.floor(V/R)}function ur(V,R=2){const z=V<0;let Y;return z?Y="-"+(""+-V).padStart(R,"0"):Y=(""+V).padStart(R,"0"),Y}function Va(V){if(!(Ke(V)||V===null||V===""))return parseInt(V,10)}function us(V){if(!(Ke(V)||V===null||V===""))return parseFloat(V)}function Is(V){if(!(Ke(V)||V===null||V==="")){const R=parseFloat("0."+V)*1e3;return Math.floor(R)}}function mc(V,R,z="round"){const Y=10**R;switch(z){case"expand":return V>0?Math.ceil(V*Y)/Y:Math.floor(V*Y)/Y;case"trunc":return Math.trunc(V*Y)/Y;case"round":return Math.round(V*Y)/Y;case"floor":return Math.floor(V*Y)/Y;case"ceil":return Math.ceil(V*Y)/Y;default:throw new RangeError(`Value rounding ${z} is out of range`)}}function xi(V){return V%4===0&&(V%100!==0||V%400===0)}function Ls(V){return xi(V)?366:365}function $o(V,R){const z=hr(R-1,12)+1,Y=V+(R-z)/12;return z===2?xi(Y)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][z-1]}function zs(V){let R=Date.UTC(V.year,V.month-1,V.day,V.hour,V.minute,V.second,V.millisecond);return V.year<100&&V.year>=0&&(R=new Date(R),R.setUTCFullYear(V.year,V.month-1,V.day)),+R}function Eu(V,R,z){return-kt(mt(V,1,R),z)+R-1}function ds(V,R=4,z=1){const Y=Eu(V,R,z),ee=Eu(V+1,R,z);return(Ls(V)-Y+ee)/7}function Si(V){return V>99?V:V>Ye.twoDigitCutoffYear?1900+V:2e3+V}function Ru(V,R,z,Y=null){const ee=new Date(V),ve={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};Y&&(ve.timeZone=Y);const Oe={timeZoneName:R,...ve},je=new Intl.DateTimeFormat(z,Oe).formatToParts(ee).find(Ue=>Ue.type.toLowerCase()==="timezonename");return je?je.value:null}function Rl(V,R){let z=parseInt(V,10);Number.isNaN(z)&&(z=0);const Y=parseInt(R,10)||0,ee=z<0||Object.is(z,-0)?-Y:Y;return z*60+ee}function fs(V){const R=Number(V);if(typeof V=="boolean"||V===""||!Number.isFinite(R))throw new s(`Invalid unit value ${V}`);return R}function gc(V,R){const z={};for(const Y in V)if(wt(V,Y)){const ee=V[Y];if(ee==null)continue;z[R(Y)]=fs(ee)}return z}function Fs(V,R){const z=Math.trunc(Math.abs(V/60)),Y=Math.trunc(Math.abs(V%60)),ee=V>=0?"+":"-";switch(R){case"short":return`${ee}${ur(z,2)}:${ur(Y,2)}`;case"narrow":return`${ee}${z}${Y>0?`:${Y}`:""}`;case"techie":return`${ee}${ur(z,2)}${ur(Y,2)}`;default:throw new RangeError(`Value format ${R} is out of range for property format`)}}function Ol(V){return Tt(V,["hour","minute","second","millisecond"])}const Ou=["January","February","March","April","May","June","July","August","September","October","November","December"],Yd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ih=["J","F","M","A","M","J","J","A","S","O","N","D"];function Pl(V){switch(V){case"narrow":return[...ih];case"short":return[...Yd];case"long":return[...Ou];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const yc=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],vc=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bs=["M","T","W","T","F","S","S"];function ps(V){switch(V){case"narrow":return[...Bs];case"short":return[...vc];case"long":return[...yc];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Pu=["AM","PM"],$u=["Before Christ","Anno Domini"],Gd=["BC","AD"],$l=["B","A"];function wa(V){switch(V){case"narrow":return[...$l];case"short":return[...Gd];case"long":return[...$u];default:return null}}function Du(V){return Pu[V.hour<12?0:1]}function Dl(V,R){return ps(R)[V.weekday-1]}function wi(V,R){return Pl(R)[V.month-1]}function Au(V,R){return wa(R)[V.year<0?0:1]}function bc(V,R,z="always",Y=!1){const ee={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},ve=["hours","minutes","seconds"].indexOf(V)===-1;if(z==="auto"&&ve){const Nn=V==="days";switch(R){case 1:return Nn?"tomorrow":`next ${ee[V][0]}`;case-1:return Nn?"yesterday":`last ${ee[V][0]}`;case 0:return Nn?"today":`this ${ee[V][0]}`}}const Oe=Object.is(R,-0)||R<0,je=Math.abs(R),Ue=je===1,Pt=ee[V],yn=Y?Ue?Pt[1]:Pt[2]||Pt[1]:Ue?ee[V][0]:V;return Oe?`${je} ${yn} ago`:`in ${je} ${yn}`}function ju(V,R){let z="";for(const Y of V)Y.literal?z+=Y.val:z+=R(Y.val);return z}const xc={D:m,DD:y,DDD:b,DDDD:x,t:w,tt:S,ttt:k,tttt:T,T:O,TT:P,TTT:$,TTTT:I,f:F,ff:H,fff:_,ffff:W,F:A,FF:L,FFF:B,FFFF:j};class to{static create(R,z={}){return new to(R,z)}static parseFormat(R){let z=null,Y="",ee=!1;const ve=[];for(let Oe=0;Oe<R.length;Oe++){const je=R.charAt(Oe);je==="'"?((Y.length>0||ee)&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y===""?"'":Y}),z=null,Y="",ee=!ee):ee||je===z?Y+=je:(Y.length>0&&ve.push({literal:/^\s+$/.test(Y),val:Y}),Y=je,z=je)}return Y.length>0&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y}),ve}static macroTokenToFormatOpts(R){return xc[R]}constructor(R,z){this.opts=z,this.loc=R,this.systemLoc=null}formatWithSystemDefault(R,z){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(R,{...this.opts,...z}).format()}dtFormatter(R,z={}){return this.loc.dtFormatter(R,{...this.opts,...z})}formatDateTime(R,z){return this.dtFormatter(R,z).format()}formatDateTimeParts(R,z){return this.dtFormatter(R,z).formatToParts()}formatInterval(R,z){return this.dtFormatter(R.start,z).dtf.formatRange(R.start.toJSDate(),R.end.toJSDate())}resolvedOptions(R,z){return this.dtFormatter(R,z).resolvedOptions()}num(R,z=0,Y=void 0){if(this.opts.forceSimple)return ur(R,z);const ee={...this.opts};return z>0&&(ee.padTo=z),Y&&(ee.signDisplay=Y),this.loc.numberFormatter(ee).format(R)}formatDateTimeFromString(R,z){const Y=this.loc.listingMode()==="en",ee=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",ve=(wn,Kr)=>this.loc.extract(R,wn,Kr),Oe=wn=>R.isOffsetFixed&&R.offset===0&&wn.allowZ?"Z":R.isValid?R.zone.formatOffset(R.ts,wn.format):"",je=()=>Y?Du(R):ve({hour:"numeric",hourCycle:"h12"},"dayperiod"),Ue=(wn,Kr)=>Y?wi(R,wn):ve(Kr?{month:wn}:{month:wn,day:"numeric"},"month"),Pt=(wn,Kr)=>Y?Dl(R,wn):ve(Kr?{weekday:wn}:{weekday:wn,month:"long",day:"numeric"},"weekday"),yn=wn=>{const Kr=to.macroTokenToFormatOpts(wn);return Kr?this.formatWithSystemDefault(R,Kr):wn},Nn=wn=>Y?Au(R,wn):ve({era:wn},"era"),dr=wn=>{switch(wn){case"S":return this.num(R.millisecond);case"u":case"SSS":return this.num(R.millisecond,3);case"s":return this.num(R.second);case"ss":return this.num(R.second,2);case"uu":return this.num(Math.floor(R.millisecond/10),2);case"uuu":return this.num(Math.floor(R.millisecond/100));case"m":return this.num(R.minute);case"mm":return this.num(R.minute,2);case"h":return this.num(R.hour%12===0?12:R.hour%12);case"hh":return this.num(R.hour%12===0?12:R.hour%12,2);case"H":return this.num(R.hour);case"HH":return this.num(R.hour,2);case"Z":return Oe({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return Oe({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return Oe({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return R.zone.offsetName(R.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return R.zone.offsetName(R.ts,{format:"long",locale:this.loc.locale});case"z":return R.zoneName;case"a":return je();case"d":return ee?ve({day:"numeric"},"day"):this.num(R.day);case"dd":return ee?ve({day:"2-digit"},"day"):this.num(R.day,2);case"c":return this.num(R.weekday);case"ccc":return Pt("short",!0);case"cccc":return Pt("long",!0);case"ccccc":return Pt("narrow",!0);case"E":return this.num(R.weekday);case"EEE":return Pt("short",!1);case"EEEE":return Pt("long",!1);case"EEEEE":return Pt("narrow",!1);case"L":return ee?ve({month:"numeric",day:"numeric"},"month"):this.num(R.month);case"LL":return ee?ve({month:"2-digit",day:"numeric"},"month"):this.num(R.month,2);case"LLL":return Ue("short",!0);case"LLLL":return Ue("long",!0);case"LLLLL":return Ue("narrow",!0);case"M":return ee?ve({month:"numeric"},"month"):this.num(R.month);case"MM":return ee?ve({month:"2-digit"},"month"):this.num(R.month,2);case"MMM":return Ue("short",!1);case"MMMM":return Ue("long",!1);case"MMMMM":return Ue("narrow",!1);case"y":return ee?ve({year:"numeric"},"year"):this.num(R.year);case"yy":return ee?ve({year:"2-digit"},"year"):this.num(R.year.toString().slice(-2),2);case"yyyy":return ee?ve({year:"numeric"},"year"):this.num(R.year,4);case"yyyyyy":return ee?ve({year:"numeric"},"year"):this.num(R.year,6);case"G":return Nn("short");case"GG":return Nn("long");case"GGGGG":return Nn("narrow");case"kk":return this.num(R.weekYear.toString().slice(-2),2);case"kkkk":return this.num(R.weekYear,4);case"W":return this.num(R.weekNumber);case"WW":return this.num(R.weekNumber,2);case"n":return this.num(R.localWeekNumber);case"nn":return this.num(R.localWeekNumber,2);case"ii":return this.num(R.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(R.localWeekYear,4);case"o":return this.num(R.ordinal);case"ooo":return this.num(R.ordinal,3);case"q":return this.num(R.quarter);case"qq":return this.num(R.quarter,2);case"X":return this.num(Math.floor(R.ts/1e3));case"x":return this.num(R.ts);default:return yn(wn)}};return ju(to.parseFormat(z),dr)}formatDurationFromString(R,z){const Y=this.opts.signMode==="negativeLargestOnly"?-1:1,ee=yn=>{switch(yn[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},ve=(yn,Nn)=>dr=>{const wn=ee(dr);if(wn){const Kr=Nn.isNegativeDuration&&wn!==Nn.largestUnit?Y:1;let Fo;return this.opts.signMode==="negativeLargestOnly"&&wn!==Nn.largestUnit?Fo="never":this.opts.signMode==="all"?Fo="always":Fo="auto",this.num(yn.get(wn)*Kr,dr.length,Fo)}else return dr},Oe=to.parseFormat(z),je=Oe.reduce((yn,{literal:Nn,val:dr})=>Nn?yn:yn.concat(dr),[]),Ue=R.shiftTo(...je.map(ee).filter(yn=>yn)),Pt={isNegativeDuration:Ue<0,largestUnit:Object.keys(Ue.values)[0]};return ju(Oe,ve(Ue,Pt))}}const Nu=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function N(...V){const R=V.reduce((z,Y)=>z+Y.source,"");return RegExp(`^${R}$`)}function vo(...V){return R=>V.reduce(([z,Y,ee],ve)=>{const[Oe,je,Ue]=ve(R,ee);return[{...z,...Oe},je||Y,Ue]},[{},null,1]).slice(0,2)}function no(V,...R){if(V==null)return[null,null];for(const[z,Y]of R){const ee=z.exec(V);if(ee)return Y(ee)}return[null,null]}function Ha(...V){return(R,z)=>{const Y={};let ee;for(ee=0;ee<V.length;ee++)Y[V[ee]]=Va(R[z+ee]);return[Y,null,z+ee]}}const Ee=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,hs=`(?:${Ee.source}?(?:\\[(${Nu.source})\\])?)?`,jn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,zo=RegExp(`${jn.source}${hs}`),_s=RegExp(`(?:[Tt]${zo.source})?`),Iu=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Kd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Qd=/(\d{4})-?(\d{3})/,Ze=Ha("weekYear","weekNumber","weekDay"),Lu=Ha("year","ordinal"),zu=/(\d{4})-(\d\d)-(\d\d)/,Sc=RegExp(`${jn.source} ?(?:${Ee.source}|(${Nu.source}))?`),Xd=RegExp(`(?: ${Sc.source})?`);function Us(V,R,z){const Y=V[R];return Ke(Y)?z:Va(Y)}function Al(V,R){return[{year:Us(V,R),month:Us(V,R+1,1),day:Us(V,R+2,1)},null,R+3]}function ms(V,R){return[{hours:Us(V,R,0),minutes:Us(V,R+1,0),seconds:Us(V,R+2,0),milliseconds:Is(V[R+3])},null,R+4]}function Vs(V,R){const z=!V[R]&&!V[R+1],Y=Rl(V[R+1],V[R+2]),ee=z?null:Rt.instance(Y);return[{},ee,R+3]}function ea(V,R){const z=V[R]?ie.create(V[R]):null;return[{},z,R+1]}const sh=RegExp(`^T?${jn.source}$`),lh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function jl(V){const[R,z,Y,ee,ve,Oe,je,Ue,Pt]=V,yn=R[0]==="-",Nn=Ue&&Ue[0]==="-",dr=(wn,Kr=!1)=>wn!==void 0&&(Kr||wn&&yn)?-wn:wn;return[{years:dr(us(z)),months:dr(us(Y)),weeks:dr(us(ee)),days:dr(us(ve)),hours:dr(us(Oe)),minutes:dr(us(je)),seconds:dr(us(Ue),Ue==="-0"),milliseconds:dr(Is(Pt),Nn)}]}const Zd={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fu(V,R,z,Y,ee,ve,Oe){const je={year:R.length===2?Si(Va(R)):Va(R),month:Yd.indexOf(z)+1,day:Va(Y),hour:Va(ee),minute:Va(ve)};return Oe&&(je.second=Va(Oe)),V&&(je.weekday=V.length>3?yc.indexOf(V)+1:vc.indexOf(V)+1),je}const ch=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Jd(V){const[,R,z,Y,ee,ve,Oe,je,Ue,Pt,yn,Nn]=V,dr=Fu(R,ee,Y,z,ve,Oe,je);let wn;return Ue?wn=Zd[Ue]:Pt?wn=0:wn=Rl(yn,Nn),[dr,new Rt(wn)]}function uh(V){return V.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ef=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Bu=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,dh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function wc(V){const[,R,z,Y,ee,ve,Oe,je]=V;return[Fu(R,ee,Y,z,ve,Oe,je),Rt.utcInstance]}function fh(V){const[,R,z,Y,ee,ve,Oe,je]=V;return[Fu(R,je,z,Y,ee,ve,Oe),Rt.utcInstance]}const ph=N(Iu,_s),hh=N(Kd,_s),mh=N(Qd,_s),_u=N(zo),Hs=vo(Al,ms,Vs,ea),gh=vo(Ze,ms,Vs,ea),tf=vo(Lu,ms,Vs,ea),nf=vo(ms,Vs,ea);function rf(V){return no(V,[ph,Hs],[hh,gh],[mh,tf],[_u,nf])}function of(V){return no(uh(V),[ch,Jd])}function af(V){return no(V,[ef,wc],[Bu,wc],[dh,fh])}function Ws(V){return no(V,[lh,jl])}const yh=vo(ms);function vh(V){return no(V,[sh,yh])}const bh=N(zu,Xd),sf=N(Sc),lf=vo(ms,Vs,ea);function Nl(V){return no(V,[bh,Hs],[sf,lf])}const or="Invalid Duration",gs={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Gr={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...gs},U=146097/400,G=146097/4800,q={years:{quarters:4,months:12,weeks:U/7,days:U,hours:U*24,minutes:U*24*60,seconds:U*24*60*60,milliseconds:U*24*60*60*1e3},quarters:{months:3,weeks:U/28,days:U/4,hours:U*24/4,minutes:U*24*60/4,seconds:U*24*60*60/4,milliseconds:U*24*60*60*1e3/4},months:{weeks:G/7,days:G,hours:G*24,minutes:G*24*60,seconds:G*24*60*60,milliseconds:G*24*60*60*1e3},...gs},Se=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Gt=Se.slice(0).reverse();function Vt(V,R,z=!1){const Y={values:z?R.values:{...V.values,...R.values||{}},loc:V.loc.clone(R.loc),conversionAccuracy:R.conversionAccuracy||V.conversionAccuracy,matrix:R.matrix||V.matrix};return new Yt(Y)}function Pn(V,R){var z;let Y=(z=R.milliseconds)!=null?z:0;for(const ee of Gt.slice(1))R[ee]&&(Y+=R[ee]*V[ee].milliseconds);return Y}function Qn(V,R){const z=Pn(V,R)<0?-1:1;Se.reduceRight((Y,ee)=>{if(Ke(R[ee]))return Y;if(Y){const ve=R[Y]*z,Oe=V[ee][Y],je=Math.floor(ve/Oe);R[ee]+=je*z,R[Y]-=je*Oe*z}return ee},null),Se.reduce((Y,ee)=>{if(Ke(R[ee]))return Y;if(Y){const ve=R[Y]%1;R[Y]-=ve,R[ee]+=ve*V[Y][ee]}return ee},null)}function Xn(V){const R={};for(const[z,Y]of Object.entries(V))Y!==0&&(R[z]=Y);return R}class Yt{constructor(R){const z=R.conversionAccuracy==="longterm"||!1;let Y=z?q:Gr;R.matrix&&(Y=R.matrix),this.values=R.values,this.loc=R.loc||Me.create(),this.conversionAccuracy=z?"longterm":"casual",this.invalid=R.invalid||null,this.matrix=Y,this.isLuxonDuration=!0}static fromMillis(R,z){return Yt.fromObject({milliseconds:R},z)}static fromObject(R,z={}){if(R==null||typeof R!="object")throw new s(`Duration.fromObject: argument expected to be an object, got ${R===null?"null":typeof R}`);return new Yt({values:gc(R,Yt.normalizeUnit),loc:Me.fromObject(z),conversionAccuracy:z.conversionAccuracy,matrix:z.matrix})}static fromDurationLike(R){if(nn(R))return Yt.fromMillis(R);if(Yt.isDuration(R))return R;if(typeof R=="object")return Yt.fromObject(R);throw new s(`Unknown duration argument ${R} of type ${typeof R}`)}static fromISO(R,z){const[Y]=Ws(R);return Y?Yt.fromObject(Y,z):Yt.invalid("unparsable",`the input "${R}" can't be parsed as ISO 8601`)}static fromISOTime(R,z){const[Y]=vh(R);return Y?Yt.fromObject(Y,z):Yt.invalid("unparsable",`the input "${R}" can't be parsed as ISO 8601`)}static invalid(R,z=null){if(!R)throw new s("need to specify a reason the Duration is invalid");const Y=R instanceof ut?R:new ut(R,z);if(Ye.throwOnInvalid)throw new r(Y);return new Yt({invalid:Y})}static normalizeUnit(R){const z={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[R&&R.toLowerCase()];if(!z)throw new a(R);return z}static isDuration(R){return R&&R.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(R,z={}){const Y={...z,floor:z.round!==!1&&z.floor!==!1};return this.isValid?to.create(this.loc,Y).formatDurationFromString(this,R):or}toHuman(R={}){if(!this.isValid)return or;const z=R.showZeros!==!1,Y=Se.map(ee=>{const ve=this.values[ee];return Ke(ve)||ve===0&&!z?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...R,unit:ee.slice(0,-1)}).format(ve)}).filter(ee=>ee);return this.loc.listFormatter({type:"conjunction",style:R.listStyle||"narrow",...R}).format(Y)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let R="P";return this.years!==0&&(R+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(R+=this.months+this.quarters*3+"M"),this.weeks!==0&&(R+=this.weeks+"W"),this.days!==0&&(R+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(R+="T"),this.hours!==0&&(R+=this.hours+"H"),this.minutes!==0&&(R+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(R+=mc(this.seconds+this.milliseconds/1e3,3)+"S"),R==="P"&&(R+="T0S"),R}toISOTime(R={}){if(!this.isValid)return null;const z=this.toMillis();return z<0||z>=864e5?null:(R={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...R,includeOffset:!1},gn.fromMillis(z,{zone:"UTC"}).toISOTime(R))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Pn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(R){if(!this.isValid)return this;const z=Yt.fromDurationLike(R),Y={};for(const ee of Se)(wt(z.values,ee)||wt(this.values,ee))&&(Y[ee]=z.get(ee)+this.get(ee));return Vt(this,{values:Y},!0)}minus(R){if(!this.isValid)return this;const z=Yt.fromDurationLike(R);return this.plus(z.negate())}mapUnits(R){if(!this.isValid)return this;const z={};for(const Y of Object.keys(this.values))z[Y]=fs(R(this.values[Y],Y));return Vt(this,{values:z},!0)}get(R){return this[Yt.normalizeUnit(R)]}set(R){if(!this.isValid)return this;const z={...this.values,...gc(R,Yt.normalizeUnit)};return Vt(this,{values:z})}reconfigure({locale:R,numberingSystem:z,conversionAccuracy:Y,matrix:ee}={}){const ve={loc:this.loc.clone({locale:R,numberingSystem:z}),matrix:ee,conversionAccuracy:Y};return Vt(this,ve)}as(R){return this.isValid?this.shiftTo(R).get(R):NaN}normalize(){if(!this.isValid)return this;const R=this.toObject();return Qn(this.matrix,R),Vt(this,{values:R},!0)}rescale(){if(!this.isValid)return this;const R=Xn(this.normalize().shiftToAll().toObject());return Vt(this,{values:R},!0)}shiftTo(...R){if(!this.isValid)return this;if(R.length===0)return this;R=R.map(Oe=>Yt.normalizeUnit(Oe));const z={},Y={},ee=this.toObject();let ve;for(const Oe of Se)if(R.indexOf(Oe)>=0){ve=Oe;let je=0;for(const Pt in Y)je+=this.matrix[Pt][Oe]*Y[Pt],Y[Pt]=0;nn(ee[Oe])&&(je+=ee[Oe]);const Ue=Math.trunc(je);z[Oe]=Ue,Y[Oe]=(je*1e3-Ue*1e3)/1e3}else nn(ee[Oe])&&(Y[Oe]=ee[Oe]);for(const Oe in Y)Y[Oe]!==0&&(z[ve]+=Oe===ve?Y[Oe]:Y[Oe]/this.matrix[ve][Oe]);return Qn(this.matrix,z),Vt(this,{values:z},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const R={};for(const z of Object.keys(this.values))R[z]=this.values[z]===0?0:-this.values[z];return Vt(this,{values:R},!0)}removeZeros(){if(!this.isValid)return this;const R=Xn(this.values);return Vt(this,{values:R},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(R){if(!this.isValid||!R.isValid||!this.loc.equals(R.loc))return!1;function z(Y,ee){return Y===void 0||Y===0?ee===void 0||ee===0:Y===ee}for(const Y of Se)if(!z(this.values[Y],R.values[Y]))return!1;return!0}}const Tr="Invalid Interval";function Mr(V,R){return!V||!V.isValid?un.invalid("missing or invalid start"):!R||!R.isValid?un.invalid("missing or invalid end"):R<V?un.invalid("end before start",`The end of an interval must be after its start, but you had start=${V.toISO()} and end=${R.toISO()}`):null}class un{constructor(R){this.s=R.start,this.e=R.end,this.invalid=R.invalid||null,this.isLuxonInterval=!0}static invalid(R,z=null){if(!R)throw new s("need to specify a reason the Interval is invalid");const Y=R instanceof ut?R:new ut(R,z);if(Ye.throwOnInvalid)throw new n(Y);return new un({invalid:Y})}static fromDateTimes(R,z){const Y=Qa(R),ee=Qa(z);return Mr(Y,ee)??new un({start:Y,end:ee})}static after(R,z){const Y=Yt.fromDurationLike(z),ee=Qa(R);return un.fromDateTimes(ee,ee.plus(Y))}static before(R,z){const Y=Yt.fromDurationLike(z),ee=Qa(R);return un.fromDateTimes(ee.minus(Y),ee)}static fromISO(R,z){const[Y,ee]=(R||"").split("/",2);if(Y&&ee){let ve,Oe;try{ve=gn.fromISO(Y,z),Oe=ve.isValid}catch{Oe=!1}let je,Ue;try{je=gn.fromISO(ee,z),Ue=je.isValid}catch{Ue=!1}if(Oe&&Ue)return un.fromDateTimes(ve,je);if(Oe){const Pt=Yt.fromISO(ee,z);if(Pt.isValid)return un.after(ve,Pt)}else if(Ue){const Pt=Yt.fromISO(Y,z);if(Pt.isValid)return un.before(je,Pt)}}return un.invalid("unparsable",`the input "${R}" can't be parsed as ISO 8601`)}static isInterval(R){return R&&R.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(R="milliseconds"){return this.isValid?this.toDuration(R).get(R):NaN}count(R="milliseconds",z){if(!this.isValid)return NaN;const Y=this.start.startOf(R,z);let ee;return z!=null&&z.useLocaleWeeks?ee=this.end.reconfigure({locale:Y.locale}):ee=this.end,ee=ee.startOf(R,z),Math.floor(ee.diff(Y,R).get(R))+(ee.valueOf()!==this.end.valueOf())}hasSame(R){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,R):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(R){return this.isValid?this.s>R:!1}isBefore(R){return this.isValid?this.e<=R:!1}contains(R){return this.isValid?this.s<=R&&this.e>R:!1}set({start:R,end:z}={}){return this.isValid?un.fromDateTimes(R||this.s,z||this.e):this}splitAt(...R){if(!this.isValid)return[];const z=R.map(Qa).filter(Oe=>this.contains(Oe)).sort((Oe,je)=>Oe.toMillis()-je.toMillis()),Y=[];let{s:ee}=this,ve=0;for(;ee<this.e;){const Oe=z[ve]||this.e,je=+Oe>+this.e?this.e:Oe;Y.push(un.fromDateTimes(ee,je)),ee=je,ve+=1}return Y}splitBy(R){const z=Yt.fromDurationLike(R);if(!this.isValid||!z.isValid||z.as("milliseconds")===0)return[];let{s:Y}=this,ee=1,ve;const Oe=[];for(;Y<this.e;){const je=this.start.plus(z.mapUnits(Ue=>Ue*ee));ve=+je>+this.e?this.e:je,Oe.push(un.fromDateTimes(Y,ve)),Y=ve,ee+=1}return Oe}divideEqually(R){return this.isValid?this.splitBy(this.length()/R).slice(0,R):[]}overlaps(R){return this.e>R.s&&this.s<R.e}abutsStart(R){return this.isValid?+this.e==+R.s:!1}abutsEnd(R){return this.isValid?+R.e==+this.s:!1}engulfs(R){return this.isValid?this.s<=R.s&&this.e>=R.e:!1}equals(R){return!this.isValid||!R.isValid?!1:this.s.equals(R.s)&&this.e.equals(R.e)}intersection(R){if(!this.isValid)return this;const z=this.s>R.s?this.s:R.s,Y=this.e<R.e?this.e:R.e;return z>=Y?null:un.fromDateTimes(z,Y)}union(R){if(!this.isValid)return this;const z=this.s<R.s?this.s:R.s,Y=this.e>R.e?this.e:R.e;return un.fromDateTimes(z,Y)}static merge(R){const[z,Y]=R.sort((ee,ve)=>ee.s-ve.s).reduce(([ee,ve],Oe)=>ve?ve.overlaps(Oe)||ve.abutsStart(Oe)?[ee,ve.union(Oe)]:[ee.concat([ve]),Oe]:[ee,Oe],[[],null]);return Y&&z.push(Y),z}static xor(R){let z=null,Y=0;const ee=[],ve=R.map(Ue=>[{time:Ue.s,type:"s"},{time:Ue.e,type:"e"}]),Oe=Array.prototype.concat(...ve),je=Oe.sort((Ue,Pt)=>Ue.time-Pt.time);for(const Ue of je)Y+=Ue.type==="s"?1:-1,Y===1?z=Ue.time:(z&&+z!=+Ue.time&&ee.push(un.fromDateTimes(z,Ue.time)),z=null);return un.merge(ee)}difference(...R){return un.xor([this].concat(R)).map(z=>this.intersection(z)).filter(z=>z&&!z.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Tr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(R=m,z={}){return this.isValid?to.create(this.s.loc.clone(z),R).formatInterval(this):Tr}toISO(R){return this.isValid?`${this.s.toISO(R)}/${this.e.toISO(R)}`:Tr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Tr}toISOTime(R){return this.isValid?`${this.s.toISOTime(R)}/${this.e.toISOTime(R)}`:Tr}toFormat(R,{separator:z=" – "}={}){return this.isValid?`${this.s.toFormat(R)}${z}${this.e.toFormat(R)}`:Tr}toDuration(R,z){return this.isValid?this.e.diff(this.s,R,z):Yt.invalid(this.invalidReason)}mapEndpoints(R){return un.fromDateTimes(R(this.s),R(this.e))}}class xr{static hasDST(R=Ye.defaultZone){const z=gn.now().setZone(R).set({month:12});return!R.isUniversal&&z.offset!==z.set({month:6}).offset}static isValidIANAZone(R){return ie.isValidZone(R)}static normalizeZone(R){return ct(R,Ye.defaultZone)}static getStartOfWeek({locale:R=null,locObj:z=null}={}){return(z||Me.create(R)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:R=null,locObj:z=null}={}){return(z||Me.create(R)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:R=null,locObj:z=null}={}){return(z||Me.create(R)).getWeekendDays().slice()}static months(R="long",{locale:z=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||Me.create(z,Y,ve)).months(R)}static monthsFormat(R="long",{locale:z=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||Me.create(z,Y,ve)).months(R,!0)}static weekdays(R="long",{locale:z=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||Me.create(z,Y,null)).weekdays(R)}static weekdaysFormat(R="long",{locale:z=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||Me.create(z,Y,null)).weekdays(R,!0)}static meridiems({locale:R=null}={}){return Me.create(R).meridiems()}static eras(R="short",{locale:z=null}={}){return Me.create(z,null,"gregory").eras(R)}static features(){return{relative:Re(),localeWeek:We()}}}function Ur(V,R){const z=ee=>ee.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),Y=z(R)-z(V);return Math.floor(Yt.fromMillis(Y).as("days"))}function Hr(V,R,z){const Y=[["years",(Ue,Pt)=>Pt.year-Ue.year],["quarters",(Ue,Pt)=>Pt.quarter-Ue.quarter+(Pt.year-Ue.year)*4],["months",(Ue,Pt)=>Pt.month-Ue.month+(Pt.year-Ue.year)*12],["weeks",(Ue,Pt)=>{const yn=Ur(Ue,Pt);return(yn-yn%7)/7}],["days",Ur]],ee={},ve=V;let Oe,je;for(const[Ue,Pt]of Y)z.indexOf(Ue)>=0&&(Oe=Ue,ee[Ue]=Pt(V,R),je=ve.plus(ee),je>R?(ee[Ue]--,V=ve.plus(ee),V>R&&(je=V,ee[Ue]--,V=ve.plus(ee))):V=je);return[V,ee,je,Oe]}function Wa(V,R,z,Y){let[ee,ve,Oe,je]=Hr(V,R,z);const Ue=R-ee,Pt=z.filter(Nn=>["hours","minutes","seconds","milliseconds"].indexOf(Nn)>=0);Pt.length===0&&(Oe<R&&(Oe=ee.plus({[je]:1})),Oe!==ee&&(ve[je]=(ve[je]||0)+Ue/(Oe-ee)));const yn=Yt.fromObject(ve,Y);return Pt.length>0?Yt.fromMillis(Ue,Y).shiftTo(...Pt).plus(yn):yn}const fa="missing Intl.DateTimeFormat.formatToParts support";function zn(V,R=z=>z){return{regex:V,deser:([z])=>R(bn(z))}}const Il="[  ]",pa=new RegExp(Il,"g");function ys(V){return V.replace(/\./g,"\\.?").replace(pa,Il)}function ta(V){return V.replace(/\./g,"").replace(pa," ").toLowerCase()}function ro(V,R){return V===null?null:{regex:RegExp(V.map(ys).join("|")),deser:([z])=>V.findIndex(Y=>ta(z)===ta(Y))+R}}function Ll(V,R){return{regex:V,deser:([,z,Y])=>Rl(z,Y),groups:R}}function bo(V){return{regex:V,deser:([R])=>R}}function Cc(V){return V.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function xh(V,R){const z=Jt(R),Y=Jt(R,"{2}"),ee=Jt(R,"{3}"),ve=Jt(R,"{4}"),Oe=Jt(R,"{6}"),je=Jt(R,"{1,2}"),Ue=Jt(R,"{1,3}"),Pt=Jt(R,"{1,6}"),yn=Jt(R,"{1,9}"),Nn=Jt(R,"{2,4}"),dr=Jt(R,"{4,6}"),wn=Fo=>({regex:RegExp(Cc(Fo.val)),deser:([Ca])=>Ca,literal:!0}),Kr=(Fo=>{if(V.literal)return wn(Fo);switch(Fo.val){case"G":return ro(R.eras("short"),0);case"GG":return ro(R.eras("long"),0);case"y":return zn(Pt);case"yy":return zn(Nn,Si);case"yyyy":return zn(ve);case"yyyyy":return zn(dr);case"yyyyyy":return zn(Oe);case"M":return zn(je);case"MM":return zn(Y);case"MMM":return ro(R.months("short",!0),1);case"MMMM":return ro(R.months("long",!0),1);case"L":return zn(je);case"LL":return zn(Y);case"LLL":return ro(R.months("short",!1),1);case"LLLL":return ro(R.months("long",!1),1);case"d":return zn(je);case"dd":return zn(Y);case"o":return zn(Ue);case"ooo":return zn(ee);case"HH":return zn(Y);case"H":return zn(je);case"hh":return zn(Y);case"h":return zn(je);case"mm":return zn(Y);case"m":return zn(je);case"q":return zn(je);case"qq":return zn(Y);case"s":return zn(je);case"ss":return zn(Y);case"S":return zn(Ue);case"SSS":return zn(ee);case"u":return bo(yn);case"uu":return bo(je);case"uuu":return zn(z);case"a":return ro(R.meridiems(),0);case"kkkk":return zn(ve);case"kk":return zn(Nn,Si);case"W":return zn(je);case"WW":return zn(Y);case"E":case"c":return zn(z);case"EEE":return ro(R.weekdays("short",!1),1);case"EEEE":return ro(R.weekdays("long",!1),1);case"ccc":return ro(R.weekdays("short",!0),1);case"cccc":return ro(R.weekdays("long",!0),1);case"Z":case"ZZ":return Ll(new RegExp(`([+-]${je.source})(?::(${Y.source}))?`),2);case"ZZZ":return Ll(new RegExp(`([+-]${je.source})(${Y.source})?`),2);case"z":return bo(/[a-z_+-/]{1,256}?/i);case" ":return bo(/[^\S\n\r]/);default:return wn(Fo)}})(V)||{invalidReason:fa};return Kr.token=V,Kr}const Iy={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zl(V,R,z){const{type:Y,value:ee}=V;if(Y==="literal"){const Ue=/^\s+$/.test(ee);return{literal:!Ue,val:Ue?" ":ee}}const ve=R[Y];let Oe=Y;Y==="hour"&&(R.hour12!=null?Oe=R.hour12?"hour12":"hour24":R.hourCycle!=null?R.hourCycle==="h11"||R.hourCycle==="h12"?Oe="hour12":Oe="hour24":Oe=z.hour12?"hour12":"hour24");let je=Iy[Oe];if(typeof je=="object"&&(je=je[ve]),je)return{literal:!1,val:je}}function Ly(V){return[`^${V.map(R=>R.regex).reduce((R,z)=>`${R}(${z.source})`,"")}$`,V]}function zy(V,R,z){const Y=V.match(R);if(Y){const ee={};let ve=1;for(const Oe in z)if(wt(z,Oe)){const je=z[Oe],Ue=je.groups?je.groups+1:1;!je.literal&&je.token&&(ee[je.token.val[0]]=je.deser(Y.slice(ve,ve+Ue))),ve+=Ue}return[Y,ee]}else return[Y,{}]}function Fy(V){const R=ee=>{switch(ee){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let z=null,Y;return Ke(V.z)||(z=ie.create(V.z)),Ke(V.Z)||(z||(z=new Rt(V.Z)),Y=V.Z),Ke(V.q)||(V.M=(V.q-1)*3+1),Ke(V.h)||(V.h<12&&V.a===1?V.h+=12:V.h===12&&V.a===0&&(V.h=0)),V.G===0&&V.y&&(V.y=-V.y),Ke(V.u)||(V.S=Is(V.u)),[Object.keys(V).reduce((ee,ve)=>{const Oe=R(ve);return Oe&&(ee[Oe]=V[ve]),ee},{}),z,Y]}let Sh=null;function Hx(){return Sh||(Sh=gn.fromMillis(1555555555555)),Sh}function Wx(V,R){if(V.literal)return V;const z=to.macroTokenToFormatOpts(V.val),Y=kh(z,R);return Y==null||Y.includes(void 0)?V:Y}function wh(V,R){return Array.prototype.concat(...V.map(z=>Wx(z,R)))}class Ch{constructor(R,z){if(this.locale=R,this.format=z,this.tokens=wh(to.parseFormat(z),R),this.units=this.tokens.map(Y=>xh(Y,R)),this.disqualifyingUnit=this.units.find(Y=>Y.invalidReason),!this.disqualifyingUnit){const[Y,ee]=Ly(this.units);this.regex=RegExp(Y,"i"),this.handlers=ee}}explainFromTokens(R){if(this.isValid){const[z,Y]=zy(R,this.regex,this.handlers),[ee,ve,Oe]=Y?Fy(Y):[null,null,void 0];if(wt(Y,"a")&&wt(Y,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:R,tokens:this.tokens,regex:this.regex,rawMatches:z,matches:Y,result:ee,zone:ve,specificOffset:Oe}}else return{input:R,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function cf(V,R,z){return new Ch(V,z).explainFromTokens(R)}function qa(V,R,z){const{result:Y,zone:ee,specificOffset:ve,invalidReason:Oe}=cf(V,R,z);return[Y,ee,ve,Oe]}function kh(V,R){if(!V)return null;const z=to.create(R,V).dtFormatter(Hx()),Y=z.formatToParts(),ee=z.resolvedOptions();return Y.map(ve=>zl(ve,V,ee))}const na="Invalid DateTime",ha=864e13;function Ci(V){return new ut("unsupported zone",`the zone "${V.name}" is not supported`)}function Uu(V){return V.weekData===null&&(V.weekData=qt(V.c)),V.weekData}function kc(V){return V.localWeekData===null&&(V.localWeekData=qt(V.c,V.loc.getMinDaysInFirstWeek(),V.loc.getStartOfWeek())),V.localWeekData}function ki(V,R){const z={ts:V.ts,zone:V.zone,c:V.c,o:V.o,loc:V.loc,invalid:V.invalid};return new gn({...z,...R,old:z})}function uf(V,R,z){let Y=V-R*60*1e3;const ee=z.offset(Y);if(R===ee)return[Y,R];Y-=(ee-R)*60*1e3;const ve=z.offset(Y);return ee===ve?[Y,ee]:[V-Math.min(ee,ve)*60*1e3,Math.max(ee,ve)]}function vs(V,R){V+=R*60*1e3;const z=new Date(V);return{year:z.getUTCFullYear(),month:z.getUTCMonth()+1,day:z.getUTCDate(),hour:z.getUTCHours(),minute:z.getUTCMinutes(),second:z.getUTCSeconds(),millisecond:z.getUTCMilliseconds()}}function Vu(V,R,z){return uf(zs(V),R,z)}function Hu(V,R){const z=V.o,Y=V.c.year+Math.trunc(R.years),ee=V.c.month+Math.trunc(R.months)+Math.trunc(R.quarters)*3,ve={...V.c,year:Y,month:ee,day:Math.min(V.c.day,$o(Y,ee))+Math.trunc(R.days)+Math.trunc(R.weeks)*7},Oe=Yt.fromObject({years:R.years-Math.trunc(R.years),quarters:R.quarters-Math.trunc(R.quarters),months:R.months-Math.trunc(R.months),weeks:R.weeks-Math.trunc(R.weeks),days:R.days-Math.trunc(R.days),hours:R.hours,minutes:R.minutes,seconds:R.seconds,milliseconds:R.milliseconds}).as("milliseconds"),je=zs(ve);let[Ue,Pt]=uf(je,z,V.zone);return Oe!==0&&(Ue+=Oe,Pt=V.zone.offset(Ue)),{ts:Ue,o:Pt}}function Ya(V,R,z,Y,ee,ve){const{setZone:Oe,zone:je}=z;if(V&&Object.keys(V).length!==0||R){const Ue=R||je,Pt=gn.fromObject(V,{...z,zone:Ue,specificOffset:ve});return Oe?Pt:Pt.setZone(je)}else return gn.invalid(new ut("unparsable",`the input "${ee}" can't be parsed as ${Y}`))}function df(V,R,z=!0){return V.isValid?to.create(Me.create("en-US"),{allowZ:z,forceSimple:!0}).formatDateTimeFromString(V,R):null}function Wo(V,R,z){const Y=V.c.year>9999||V.c.year<0;let ee="";if(Y&&V.c.year>=0&&(ee+="+"),ee+=ur(V.c.year,Y?6:4),z==="year")return ee;if(R){if(ee+="-",ee+=ur(V.c.month),z==="month")return ee;ee+="-"}else if(ee+=ur(V.c.month),z==="month")return ee;return ee+=ur(V.c.day),ee}function ff(V,R,z,Y,ee,ve,Oe){let je=!z||V.c.millisecond!==0||V.c.second!==0,Ue="";switch(Oe){case"day":case"month":case"year":break;default:if(Ue+=ur(V.c.hour),Oe==="hour")break;if(R){if(Ue+=":",Ue+=ur(V.c.minute),Oe==="minute")break;je&&(Ue+=":",Ue+=ur(V.c.second))}else{if(Ue+=ur(V.c.minute),Oe==="minute")break;je&&(Ue+=ur(V.c.second))}if(Oe==="second")break;je&&(!Y||V.c.millisecond!==0)&&(Ue+=".",Ue+=ur(V.c.millisecond,3))}return ee&&(V.isOffsetFixed&&V.offset===0&&!ve?Ue+="Z":V.o<0?(Ue+="-",Ue+=ur(Math.trunc(-V.o/60)),Ue+=":",Ue+=ur(Math.trunc(-V.o%60))):(Ue+="+",Ue+=ur(Math.trunc(V.o/60)),Ue+=":",Ue+=ur(Math.trunc(V.o%60)))),ve&&(Ue+="["+V.zone.ianaName+"]"),Ue}const Ti={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},By={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},pf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mi=["year","month","day","hour","minute","second","millisecond"],Th=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Mh=["year","ordinal","hour","minute","second","millisecond"];function bs(V){const R={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[V.toLowerCase()];if(!R)throw new a(V);return R}function Fl(V){switch(V.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return bs(V)}}function hf(V){if(Ga===void 0&&(Ga=Ye.now()),V.type!=="iana")return V.offset(Ga);const R=V.name;let z=Ka.get(R);return z===void 0&&(z=V.offset(Ga),Ka.set(R,z)),z}function Wu(V,R){const z=ct(R.zone,Ye.defaultZone);if(!z.isValid)return gn.invalid(Ci(z));const Y=Me.fromObject(R);let ee,ve;if(Ke(V.year))ee=Ye.now();else{for(const Ue of Mi)Ke(V[Ue])&&(V[Ue]=Ti[Ue]);const Oe=He(V)||vt(V);if(Oe)return gn.invalid(Oe);const je=hf(z);[ee,ve]=Vu(V,je,z)}return new gn({ts:ee,zone:z,loc:Y,o:ve})}function ma(V,R,z){const Y=Ke(z.round)?!0:z.round,ee=Ke(z.rounding)?"trunc":z.rounding,ve=(je,Ue)=>(je=mc(je,Y||z.calendary?0:2,z.calendary?"round":ee),R.loc.clone(z).relFormatter(z).format(je,Ue)),Oe=je=>z.calendary?R.hasSame(V,je)?0:R.startOf(je).diff(V.startOf(je),je).get(je):R.diff(V,je).get(je);if(z.unit)return ve(Oe(z.unit),z.unit);for(const je of z.units){const Ue=Oe(je);if(Math.abs(Ue)>=1)return ve(Ue,je)}return ve(V>R?-0:0,z.units[z.units.length-1])}function ga(V){let R={},z;return V.length>0&&typeof V[V.length-1]=="object"?(R=V[V.length-1],z=Array.from(V).slice(0,V.length-1)):z=Array.from(V),[R,z]}let Ga;const Ka=new Map;class gn{constructor(R){const z=R.zone||Ye.defaultZone;let Y=R.invalid||(Number.isNaN(R.ts)?new ut("invalid input"):null)||(z.isValid?null:Ci(z));this.ts=Ke(R.ts)?Ye.now():R.ts;let ee=null,ve=null;if(!Y)if(R.old&&R.old.ts===this.ts&&R.old.zone.equals(z))[ee,ve]=[R.old.c,R.old.o];else{const Oe=nn(R.o)&&!R.old?R.o:z.offset(this.ts);ee=vs(this.ts,Oe),Y=Number.isNaN(ee.year)?new ut("invalid input"):null,ee=Y?null:ee,ve=Y?null:Oe}this._zone=z,this.loc=R.loc||Me.create(),this.invalid=Y,this.weekData=null,this.localWeekData=null,this.c=ee,this.o=ve,this.isLuxonDateTime=!0}static now(){return new gn({})}static local(){const[R,z]=ga(arguments),[Y,ee,ve,Oe,je,Ue,Pt]=z;return Wu({year:Y,month:ee,day:ve,hour:Oe,minute:je,second:Ue,millisecond:Pt},R)}static utc(){const[R,z]=ga(arguments),[Y,ee,ve,Oe,je,Ue,Pt]=z;return R.zone=Rt.utcInstance,Wu({year:Y,month:ee,day:ve,hour:Oe,minute:je,second:Ue,millisecond:Pt},R)}static fromJSDate(R,z={}){const Y=ge(R)?R.valueOf():NaN;if(Number.isNaN(Y))return gn.invalid("invalid input");const ee=ct(z.zone,Ye.defaultZone);return ee.isValid?new gn({ts:Y,zone:ee,loc:Me.fromObject(z)}):gn.invalid(Ci(ee))}static fromMillis(R,z={}){if(nn(R))return R<-ha||R>ha?gn.invalid("Timestamp out of range"):new gn({ts:R,zone:ct(z.zone,Ye.defaultZone),loc:Me.fromObject(z)});throw new s(`fromMillis requires a numerical input, but received a ${typeof R} with value ${R}`)}static fromSeconds(R,z={}){if(nn(R))return new gn({ts:R*1e3,zone:ct(z.zone,Ye.defaultZone),loc:Me.fromObject(z)});throw new s("fromSeconds requires a numerical input")}static fromObject(R,z={}){R=R||{};const Y=ct(z.zone,Ye.defaultZone);if(!Y.isValid)return gn.invalid(Ci(Y));const ee=Me.fromObject(z),ve=gc(R,Fl),{minDaysInFirstWeek:Oe,startOfWeek:je}=fn(ve,ee),Ue=Ye.now(),Pt=Ke(z.specificOffset)?Y.offset(Ue):z.specificOffset,yn=!Ke(ve.ordinal),Nn=!Ke(ve.year),dr=!Ke(ve.month)||!Ke(ve.day),wn=Nn||dr,Kr=ve.weekYear||ve.weekNumber;if((wn||yn)&&Kr)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(dr&&yn)throw new o("Can't mix ordinal dates with month/day");const Fo=Kr||ve.weekday&&!wn;let Ca,ka,Ta=vs(Ue,Pt);Fo?(Ca=Th,ka=By,Ta=qt(Ta,Oe,je)):yn?(Ca=Mh,ka=pf,Ta=Kn(Ta)):(Ca=Mi,ka=Ti);let Ei=!1;for(const qs of Ca){const Uy=ve[qs];Ke(Uy)?Ei?ve[qs]=ka[qs]:ve[qs]=Ta[qs]:Ei=!0}const Eh=Fo?de(ve,Oe,je):yn?pe(ve):He(ve),mf=Eh||vt(ve);if(mf)return gn.invalid(mf);const qu=Fo?On(ve,Oe,je):yn?xn(ve):ve,[gf,Bl]=Vu(qu,Pt,Y),ao=new gn({ts:gf,zone:Y,o:Bl,loc:ee});return ve.weekday&&wn&&R.weekday!==ao.weekday?gn.invalid("mismatched weekday",`you can't specify both a weekday of ${ve.weekday} and a date of ${ao.toISO()}`):ao.isValid?ao:gn.invalid(ao.invalid)}static fromISO(R,z={}){const[Y,ee]=rf(R);return Ya(Y,ee,z,"ISO 8601",R)}static fromRFC2822(R,z={}){const[Y,ee]=of(R);return Ya(Y,ee,z,"RFC 2822",R)}static fromHTTP(R,z={}){const[Y,ee]=af(R);return Ya(Y,ee,z,"HTTP",z)}static fromFormat(R,z,Y={}){if(Ke(R)||Ke(z))throw new s("fromFormat requires an input string and a format");const{locale:ee=null,numberingSystem:ve=null}=Y,Oe=Me.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0}),[je,Ue,Pt,yn]=qa(Oe,R,z);return yn?gn.invalid(yn):Ya(je,Ue,Y,`format ${z}`,R,Pt)}static fromString(R,z,Y={}){return gn.fromFormat(R,z,Y)}static fromSQL(R,z={}){const[Y,ee]=Nl(R);return Ya(Y,ee,z,"SQL",R)}static invalid(R,z=null){if(!R)throw new s("need to specify a reason the DateTime is invalid");const Y=R instanceof ut?R:new ut(R,z);if(Ye.throwOnInvalid)throw new t(Y);return new gn({invalid:Y})}static isDateTime(R){return R&&R.isLuxonDateTime||!1}static parseFormatForOpts(R,z={}){const Y=kh(R,Me.fromObject(z));return Y?Y.map(ee=>ee?ee.val:null).join(""):null}static expandFormat(R,z={}){return wh(to.parseFormat(R),Me.fromObject(z)).map(Y=>Y.val).join("")}static resetCache(){Ga=void 0,Ka.clear()}get(R){return this[R]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Uu(this).weekYear:NaN}get weekNumber(){return this.isValid?Uu(this).weekNumber:NaN}get weekday(){return this.isValid?Uu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?kc(this).weekday:NaN}get localWeekNumber(){return this.isValid?kc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?kc(this).weekYear:NaN}get ordinal(){return this.isValid?Kn(this.c).ordinal:NaN}get monthShort(){return this.isValid?xr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const R=864e5,z=6e4,Y=zs(this.c),ee=this.zone.offset(Y-R),ve=this.zone.offset(Y+R),Oe=this.zone.offset(Y-ee*z),je=this.zone.offset(Y-ve*z);if(Oe===je)return[this];const Ue=Y-Oe*z,Pt=Y-je*z,yn=vs(Ue,Oe),Nn=vs(Pt,je);return yn.hour===Nn.hour&&yn.minute===Nn.minute&&yn.second===Nn.second&&yn.millisecond===Nn.millisecond?[ki(this,{ts:Ue}),ki(this,{ts:Pt})]:[this]}get isInLeapYear(){return xi(this.year)}get daysInMonth(){return $o(this.year,this.month)}get daysInYear(){return this.isValid?Ls(this.year):NaN}get weeksInWeekYear(){return this.isValid?ds(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ds(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(R={}){const{locale:z,numberingSystem:Y,calendar:ee}=to.create(this.loc.clone(R),R).resolvedOptions(this);return{locale:z,numberingSystem:Y,outputCalendar:ee}}toUTC(R=0,z={}){return this.setZone(Rt.instance(R),z)}toLocal(){return this.setZone(Ye.defaultZone)}setZone(R,{keepLocalTime:z=!1,keepCalendarTime:Y=!1}={}){if(R=ct(R,Ye.defaultZone),R.equals(this.zone))return this;if(R.isValid){let ee=this.ts;if(z||Y){const ve=R.offset(this.ts),Oe=this.toObject();[ee]=Vu(Oe,ve,R)}return ki(this,{ts:ee,zone:R})}else return gn.invalid(Ci(R))}reconfigure({locale:R,numberingSystem:z,outputCalendar:Y}={}){const ee=this.loc.clone({locale:R,numberingSystem:z,outputCalendar:Y});return ki(this,{loc:ee})}setLocale(R){return this.reconfigure({locale:R})}set(R){if(!this.isValid)return this;const z=gc(R,Fl),{minDaysInFirstWeek:Y,startOfWeek:ee}=fn(z,this.loc),ve=!Ke(z.weekYear)||!Ke(z.weekNumber)||!Ke(z.weekday),Oe=!Ke(z.ordinal),je=!Ke(z.year),Ue=!Ke(z.month)||!Ke(z.day),Pt=je||Ue,yn=z.weekYear||z.weekNumber;if((Pt||Oe)&&yn)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ue&&Oe)throw new o("Can't mix ordinal dates with month/day");let Nn;ve?Nn=On({...qt(this.c,Y,ee),...z},Y,ee):Ke(z.ordinal)?(Nn={...this.toObject(),...z},Ke(z.day)&&(Nn.day=Math.min($o(Nn.year,Nn.month),Nn.day))):Nn=xn({...Kn(this.c),...z});const[dr,wn]=Vu(Nn,this.o,this.zone);return ki(this,{ts:dr,o:wn})}plus(R){if(!this.isValid)return this;const z=Yt.fromDurationLike(R);return ki(this,Hu(this,z))}minus(R){if(!this.isValid)return this;const z=Yt.fromDurationLike(R).negate();return ki(this,Hu(this,z))}startOf(R,{useLocaleWeeks:z=!1}={}){if(!this.isValid)return this;const Y={},ee=Yt.normalizeUnit(R);switch(ee){case"years":Y.month=1;case"quarters":case"months":Y.day=1;case"weeks":case"days":Y.hour=0;case"hours":Y.minute=0;case"minutes":Y.second=0;case"seconds":Y.millisecond=0;break}if(ee==="weeks")if(z){const ve=this.loc.getStartOfWeek(),{weekday:Oe}=this;Oe<ve&&(Y.weekNumber=this.weekNumber-1),Y.weekday=ve}else Y.weekday=1;if(ee==="quarters"){const ve=Math.ceil(this.month/3);Y.month=(ve-1)*3+1}return this.set(Y)}endOf(R,z){return this.isValid?this.plus({[R]:1}).startOf(R,z).minus(1):this}toFormat(R,z={}){return this.isValid?to.create(this.loc.redefaultToEN(z)).formatDateTimeFromString(this,R):na}toLocaleString(R=m,z={}){return this.isValid?to.create(this.loc.clone(z),R).formatDateTime(this):na}toLocaleParts(R={}){return this.isValid?to.create(this.loc.clone(R),R).formatDateTimeParts(this):[]}toISO({format:R="extended",suppressSeconds:z=!1,suppressMilliseconds:Y=!1,includeOffset:ee=!0,extendedZone:ve=!1,precision:Oe="milliseconds"}={}){if(!this.isValid)return null;Oe=bs(Oe);const je=R==="extended";let Ue=Wo(this,je,Oe);return Mi.indexOf(Oe)>=3&&(Ue+="T"),Ue+=ff(this,je,z,Y,ee,ve,Oe),Ue}toISODate({format:R="extended",precision:z="day"}={}){return this.isValid?Wo(this,R==="extended",bs(z)):null}toISOWeekDate(){return df(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:R=!1,suppressSeconds:z=!1,includeOffset:Y=!0,includePrefix:ee=!1,extendedZone:ve=!1,format:Oe="extended",precision:je="milliseconds"}={}){return this.isValid?(je=bs(je),(ee&&Mi.indexOf(je)>=3?"T":"")+ff(this,Oe==="extended",z,R,Y,ve,je)):null}toRFC2822(){return df(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return df(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Wo(this,!0):null}toSQLTime({includeOffset:R=!0,includeZone:z=!1,includeOffsetSpace:Y=!0}={}){let ee="HH:mm:ss.SSS";return(z||R)&&(Y&&(ee+=" "),z?ee+="z":R&&(ee+="ZZ")),df(this,ee,!0)}toSQL(R={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(R)}`:null}toString(){return this.isValid?this.toISO():na}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(R={}){if(!this.isValid)return{};const z={...this.c};return R.includeConfig&&(z.outputCalendar=this.outputCalendar,z.numberingSystem=this.loc.numberingSystem,z.locale=this.loc.locale),z}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(R,z="milliseconds",Y={}){if(!this.isValid||!R.isValid)return Yt.invalid("created by diffing an invalid DateTime");const ee={locale:this.locale,numberingSystem:this.numberingSystem,...Y},ve=yt(z).map(Yt.normalizeUnit),Oe=R.valueOf()>this.valueOf(),je=Oe?this:R,Ue=Oe?R:this,Pt=Wa(je,Ue,ve,ee);return Oe?Pt.negate():Pt}diffNow(R="milliseconds",z={}){return this.diff(gn.now(),R,z)}until(R){return this.isValid?un.fromDateTimes(this,R):this}hasSame(R,z,Y){if(!this.isValid)return!1;const ee=R.valueOf(),ve=this.setZone(R.zone,{keepLocalTime:!0});return ve.startOf(z,Y)<=ee&&ee<=ve.endOf(z,Y)}equals(R){return this.isValid&&R.isValid&&this.valueOf()===R.valueOf()&&this.zone.equals(R.zone)&&this.loc.equals(R.loc)}toRelative(R={}){if(!this.isValid)return null;const z=R.base||gn.fromObject({},{zone:this.zone}),Y=R.padding?this<z?-R.padding:R.padding:0;let ee=["years","months","days","hours","minutes","seconds"],ve=R.unit;return Array.isArray(R.unit)&&(ee=R.unit,ve=void 0),ma(z,this.plus(Y),{...R,numeric:"always",units:ee,unit:ve})}toRelativeCalendar(R={}){return this.isValid?ma(R.base||gn.fromObject({},{zone:this.zone}),this,{...R,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...R){if(!R.every(gn.isDateTime))throw new s("min requires all arguments be DateTimes");return $t(R,z=>z.valueOf(),Math.min)}static max(...R){if(!R.every(gn.isDateTime))throw new s("max requires all arguments be DateTimes");return $t(R,z=>z.valueOf(),Math.max)}static fromFormatExplain(R,z,Y={}){const{locale:ee=null,numberingSystem:ve=null}=Y,Oe=Me.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});return cf(Oe,R,z)}static fromStringExplain(R,z,Y={}){return gn.fromFormatExplain(R,z,Y)}static buildFormatParser(R,z={}){const{locale:Y=null,numberingSystem:ee=null}=z,ve=Me.fromOpts({locale:Y,numberingSystem:ee,defaultToEN:!0});return new Ch(ve,R)}static fromFormatParser(R,z,Y={}){if(Ke(R)||Ke(z))throw new s("fromFormatParser requires an input string and a format parser");const{locale:ee=null,numberingSystem:ve=null}=Y,Oe=Me.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});if(!Oe.equals(z.locale))throw new s(`fromFormatParser called with a locale of ${Oe}, but the format parser was created for ${z.locale}`);const{result:je,zone:Ue,specificOffset:Pt,invalidReason:yn}=z.explainFromTokens(R);return yn?gn.invalid(yn):Ya(je,Ue,Y,`format ${z.format}`,R,Pt)}static get DATE_SHORT(){return m}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return v}static get DATE_FULL(){return b}static get DATE_HUGE(){return x}static get TIME_SIMPLE(){return w}static get TIME_WITH_SECONDS(){return S}static get TIME_WITH_SHORT_OFFSET(){return k}static get TIME_WITH_LONG_OFFSET(){return T}static get TIME_24_SIMPLE(){return O}static get TIME_24_WITH_SECONDS(){return P}static get TIME_24_WITH_SHORT_OFFSET(){return $}static get TIME_24_WITH_LONG_OFFSET(){return I}static get DATETIME_SHORT(){return F}static get DATETIME_SHORT_WITH_SECONDS(){return A}static get DATETIME_MED(){return H}static get DATETIME_MED_WITH_SECONDS(){return L}static get DATETIME_MED_WITH_WEEKDAY(){return M}static get DATETIME_FULL(){return _}static get DATETIME_FULL_WITH_SECONDS(){return B}static get DATETIME_HUGE(){return W}static get DATETIME_HUGE_WITH_SECONDS(){return j}}function Qa(V){if(gn.isDateTime(V))return V;if(V&&V.valueOf&&nn(V.valueOf()))return gn.fromJSDate(V);if(V&&typeof V=="object")return gn.fromObject(V);throw new s(`Unknown datetime argument: ${V}, of type ${typeof V}`)}const _y="3.7.2";return Oa.DateTime=gn,Oa.Duration=Yt,Oa.FixedOffsetZone=Rt,Oa.IANAZone=ie,Oa.Info=xr,Oa.Interval=un,Oa.InvalidZone=gt,Oa.Settings=Ye,Oa.SystemZone=te,Oa.VERSION=_y,Oa.Zone=Q,Oa}var mj;function N2(){return mj||(mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronDate=e.DAYS_IN_MONTH=e.DateMathOp=e.TimeUnit=void 0;const t=bge();var n;(function(a){a.Second="Second",a.Minute="Minute",a.Hour="Hour",a.Day="Day",a.Month="Month",a.Year="Year"})(n||(e.TimeUnit=n={}));var r;(function(a){a.Add="Add",a.Subtract="Subtract"})(r||(e.DateMathOp=r={})),e.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);class o{#e;#t=null;#n=null;constructor(s,l){const u={zone:l};if(s?s instanceof o?(this.#e=s.#e,this.#t=s.#t,this.#n=s.#n):s instanceof Date?this.#e=t.DateTime.fromJSDate(s,u):typeof s=="number"?this.#e=t.DateTime.fromMillis(s,u):(this.#e=t.DateTime.fromISO(s,u),this.#e.isValid||(this.#e=t.DateTime.fromRFC2822(s,u)),this.#e.isValid||(this.#e=t.DateTime.fromSQL(s,u)),this.#e.isValid||(this.#e=t.DateTime.fromFormat(s,"EEE, d MMM yyyy HH:mm:ss",u))):this.#e=t.DateTime.local(),!this.#e.isValid)throw new Error(`CronDate: unhandled timestamp: ${s}`);l&&l!==this.#e.zoneName&&(this.#e=this.#e.setZone(l))}static#o(s){return s%4===0&&s%100!==0||s%400===0}get dstStart(){return this.#t}set dstStart(s){this.#t=s}get dstEnd(){return this.#n}set dstEnd(s){this.#n=s}addYear(){this.#e=this.#e.plus({years:1})}addMonth(){this.#e=this.#e.plus({months:1}).startOf("month")}addDay(){this.#e=this.#e.plus({days:1}).startOf("day")}addHour(){this.#e=this.#e.plus({hours:1}).startOf("hour")}addMinute(){this.#e=this.#e.plus({minutes:1}).startOf("minute")}addSecond(){this.#e=this.#e.plus({seconds:1})}subtractYear(){this.#e=this.#e.minus({years:1})}subtractMonth(){this.#e=this.#e.minus({months:1}).endOf("month").startOf("second")}subtractDay(){this.#e=this.#e.minus({days:1}).endOf("day").startOf("second")}subtractHour(){this.#e=this.#e.minus({hours:1}).endOf("hour").startOf("second")}subtractMinute(){this.#e=this.#e.minus({minutes:1}).endOf("minute").startOf("second")}subtractSecond(){this.#e=this.#e.minus({seconds:1})}addUnit(s){switch(s){case n.Year:return this.addYear();case n.Month:return this.addMonth();case n.Day:return this.addDay();case n.Hour:return this.addHour();case n.Minute:return this.addMinute();case n.Second:return this.addSecond()}}subtractUnit(s){switch(s){case n.Year:return this.subtractYear();case n.Month:return this.subtractMonth();case n.Day:return this.subtractDay();case n.Hour:return this.subtractHour();case n.Minute:return this.subtractMinute();case n.Second:return this.subtractSecond()}}invokeDateOperation(s,l){if(s===r.Add){this.addUnit(l);return}if(s===r.Subtract){this.subtractUnit(l);return}throw new Error(`Invalid verb: ${s}`)}getDate(){return this.#e.day}getFullYear(){return this.#e.year}getDay(){const s=this.#e.weekday;return s===7?0:s}getMonth(){return this.#e.month-1}getHours(){return this.#e.hour}getMinutes(){return this.#e.minute}getSeconds(){return this.#e.second}getMilliseconds(){return this.#e.millisecond}getUTCOffset(){return this.#e.offset}setStartOfDay(){this.#e=this.#e.startOf("day")}setEndOfDay(){this.#e=this.#e.endOf("day")}getTime(){return this.#e.valueOf()}getUTCDate(){return this.#r().day}getUTCFullYear(){return this.#r().year}getUTCDay(){const s=this.#r().weekday;return s===7?0:s}getUTCMonth(){return this.#r().month-1}getUTCHours(){return this.#r().hour}getUTCMinutes(){return this.#r().minute}getUTCSeconds(){return this.#r().second}toISOString(){return this.#e.toUTC().toISO()}toJSON(){return this.#e.toJSON()}setDate(s){this.#e=this.#e.set({day:s})}setFullYear(s){this.#e=this.#e.set({year:s})}setDay(s){this.#e=this.#e.set({weekday:s})}setMonth(s){this.#e=this.#e.set({month:s+1})}setHours(s){this.#e=this.#e.set({hour:s})}setMinutes(s){this.#e=this.#e.set({minute:s})}setSeconds(s){this.#e=this.#e.set({second:s})}setMilliseconds(s){this.#e=this.#e.set({millisecond:s})}toString(){return this.toDate().toString()}toDate(){return this.#e.toJSDate()}isLastDayOfMonth(){const{day:s,month:l}=this.#e;if(l===2){const u=o.#o(this.#e.year);return s===e.DAYS_IN_MONTH[l-1]-(u?0:1)}return s===e.DAYS_IN_MONTH[l-1]}isLastWeekdayOfMonth(){const{day:s,month:l}=this.#e;let u;return l===2?u=e.DAYS_IN_MONTH[l-1]-(o.#o(this.#e.year)?0:1):u=e.DAYS_IN_MONTH[l-1],s>u-7}applyDateOperation(s,l,u){if(l===n.Month||l===n.Day){this.invokeDateOperation(s,l);return}const f=this.getHours();this.invokeDateOperation(s,l);const c=this.getHours(),m=c-f;m===2?u!==24&&(this.dstStart=f+1):m===0&&this.getMinutes()===0&&this.getSeconds()===0&&u!==24&&(this.dstEnd=c)}#r(){return this.#e.toUTC()}}e.CronDate=o,e.default=o})(pj)),pj}var gj;function xge(){if(gj)return Wm;gj=1,Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.CronMonth=void 0;const e=N2(),t=qd(),n=1,r=12,o=Object.freeze([]);let a=class extends t.CronField{static get min(){return n}static get max(){return r}static get chars(){return o}static get daysInMonth(){return e.DAYS_IN_MONTH}constructor(s,l){super(s,l),this.validate()}get values(){return super.values}};return Wm.CronMonth=a,Wm}var qm={},yj;function Sge(){if(yj)return qm;yj=1,Object.defineProperty(qm,"__esModule",{value:!0}),qm.CronSecond=void 0;const e=qd(),t=0,n=59,r=Object.freeze([]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return qm.CronSecond=o,qm}var vj;function I2(){return vj||(vj=1,(function(e){var t=tp&&tp.__createBinding||(Object.create?(function(r,o,a,s){s===void 0&&(s=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,s,l)}):(function(r,o,a,s){s===void 0&&(s=a),r[s]=o[a]})),n=tp&&tp.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(hge(),e),n(mge(),e),n(gge(),e),n(qd(),e),n(yge(),e),n(vge(),e),n(xge(),e),n(Sge(),e)})(tp)),tp}var bj;function N4(){if(bj)return Fm;bj=1,Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.CronFieldCollection=void 0;const e=I2();let t=class ag{#e;#t;#n;#o;#r;#a;static from(r,o){return new ag({second:this.resolveField(e.CronSecond,r.second,o.second),minute:this.resolveField(e.CronMinute,r.minute,o.minute),hour:this.resolveField(e.CronHour,r.hour,o.hour),dayOfMonth:this.resolveField(e.CronDayOfMonth,r.dayOfMonth,o.dayOfMonth),month:this.resolveField(e.CronMonth,r.month,o.month),dayOfWeek:this.resolveField(e.CronDayOfWeek,r.dayOfWeek,o.dayOfWeek)})}static resolveField(r,o,a){return a?a instanceof e.CronField?a:new r(a):o}constructor({second:r,minute:o,hour:a,dayOfMonth:s,month:l,dayOfWeek:u}){if(!r)throw new Error("Validation error, Field second is missing");if(!o)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!s)throw new Error("Validation error, Field dayOfMonth is missing");if(!l)throw new Error("Validation error, Field month is missing");if(!u)throw new Error("Validation error, Field dayOfWeek is missing");if(l.values.length===1&&!s.hasLastChar&&u.isWildcard&&!(parseInt(s.values[0],10)<=e.CronMonth.daysInMonth[l.values[0]-1]))throw new Error("Invalid explicit day of month definition");this.#e=r,this.#t=o,this.#n=a,this.#r=l,this.#a=u,this.#o=s}get second(){return this.#e}get minute(){return this.#t}get hour(){return this.#n}get dayOfMonth(){return this.#o}get month(){return this.#r}get dayOfWeek(){return this.#a}static compactField(r){if(r.length===0)return[];const o=[];let a;return r.forEach((s,l,u)=>{if(a===void 0){a={start:s,count:1};return}const f=u[l-1]||a.start,c=u[l+1];if(s==="L"||s==="W"){o.push(a),o.push({start:s,count:1}),a=void 0;return}if(a.step===void 0&&c!==void 0){const m=s-f,y=c-s;if(m<=y){a={...a,count:2,end:s,step:m};return}a.step=1}s-(a.end??0)===a.step?(a.count++,a.end=s):(a.count===1?o.push({start:a.start,count:1}):a.count===2?(o.push({start:a.start,count:1}),o.push({start:a.end??f,count:1})):o.push(a),a={start:s,count:1})}),a&&o.push(a),o}static#s(r,o,a){const s=o.step;return s?s===1&&o.start===r.min&&o.end&&o.end>=a?r.hasQuestionMarkChar?"?":"*":s!==1&&o.start===r.min&&o.end&&o.end>=a-s+1?`*/${s}`:null:null}static#i(r,o){const a=r.step;if(a===1)return`${r.start}-${r.end}`;const s=r.start===0?r.count-1:r.count;if(!a)throw new Error("Unexpected range step");if(!r.end)throw new Error("Unexpected range end");if(a*s>r.end){const l=(f,c)=>{if(typeof r.start!="number")throw new Error("Unexpected range start");return c%a===0?r.start+c:null};if(typeof r.start!="number")throw new Error("Unexpected range start");const u={length:r.end-r.start+1};return Array.from(u,l).filter(f=>f!==null).join(",")}return r.end===o-a+1?`${r.start}/${a}`:`${r.start}-${r.end}/${a}`}stringifyField(r){let o=r.max,a=r.values;if(r instanceof e.CronDayOfWeek){o=6;const l=this.#a.values;a=l[l.length-1]===7?l.slice(0,-1):l}r instanceof e.CronDayOfMonth&&(o=this.#r.values.length===1?e.CronMonth.daysInMonth[this.#r.values[0]-1]:r.max);const s=ag.compactField(a);if(s.length===1){const l=ag.#s(r,s[0],o);if(l)return l}return s.map(l=>{const u=l.count===1?l.start.toString():ag.#i(l,o);return r instanceof e.CronDayOfWeek&&r.nthDay>0?`${u}#${r.nthDay}`:u}).join(",")}stringify(r=!1){const o=[];return r&&o.push(this.stringifyField(this.#e)),o.push(this.stringifyField(this.#t),this.stringifyField(this.#n),this.stringifyField(this.#o),this.stringifyField(this.#r),this.stringifyField(this.#a)),o.join(" ")}serialize(){return{second:this.#e.serialize(),minute:this.#t.serialize(),hour:this.#n.serialize(),dayOfMonth:this.#o.serialize(),month:this.#r.serialize(),dayOfWeek:this.#a.serialize()}}};return Fm.CronFieldCollection=t,Fm}var xj={},Sj;function I4(){return Sj||(Sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronExpression=e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;const t=N2();e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range",e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";const n=1e4;class r{#e;#t;#n;#o;#r;#a;#s=null;#i=!1;constructor(a,s){this.#e=s,this.#t=s.tz,this.#o=s.startDate?new t.CronDate(s.startDate,this.#t):null,this.#r=s.endDate?new t.CronDate(s.endDate,this.#t):null;let l=s.currentDate??s.startDate;if(l){const u=new t.CronDate(l,this.#t);this.#o&&u.getTime()<this.#o.getTime()?l=this.#o:this.#r&&u.getTime()>this.#r.getTime()&&(l=this.#r)}this.#n=new t.CronDate(l,this.#t),this.#a=a}get fields(){return this.#a}static fieldsToExpression(a,s){return new r(a,s||{})}static#c(a,s){return s.some(l=>l===a)}#l(a,s){return a[s?a.length-1:0]}#d(a){const s=`${a.getFullYear()}-${a.getMonth()+1}-${a.getDate()}`;if(this.#s===s)return this.#i;const l=new t.CronDate(a);l.setStartOfDay();const u=new t.CronDate(a);return u.setEndOfDay(),this.#s=s,this.#i=l.getUTCOffset()!==u.getUTCOffset(),this.#i}#u(a,s,l){const u=this.#a.second.values,f=a.getSeconds(),c=this.#a.second.findNearestValue(f,l);if(c!==null){a.setSeconds(c);return}a.applyDateOperation(s,t.TimeUnit.Minute,this.#a.hour.values.length),a.setSeconds(this.#l(u,l))}#p(a,s,l){const u=this.#a.minute.values,f=this.#a.second.values,c=a.getMinutes(),m=this.#a.minute.findNearestValue(c,l);if(m!==null){a.setMinutes(m),a.setSeconds(this.#l(f,l));return}a.applyDateOperation(s,t.TimeUnit.Hour,this.#a.hour.values.length),a.setMinutes(this.#l(u,l)),a.setSeconds(this.#l(f,l))}static#f(a,s){const l=s.isLastWeekdayOfMonth();return a.some(u=>{const f=parseInt(u.toString().charAt(0),10)%7;if(Number.isNaN(f))throw new Error(`Invalid last weekday of the month expression: ${u}`);return s.getDay()===f&&l})}next(){return this.#h()}prev(){return this.#h(!0)}hasNext(){const a=this.#n;try{return this.#h(),!0}catch{return!1}finally{this.#n=a}}hasPrev(){const a=this.#n;try{return this.#h(!0),!0}catch{return!1}finally{this.#n=a}}take(a){const s=[];if(a>=0)for(let l=0;l<a;l++)try{s.push(this.next())}catch{return s}else for(let l=0;l>a;l--)try{s.push(this.prev())}catch{return s}return s}reset(a){this.#n=new t.CronDate(a||this.#e.currentDate,this.#t)}stringify(a=!1){return this.#a.stringify(a)}includesDate(a){const{second:s,minute:l,hour:u,month:f}=this.#a,c=new t.CronDate(a,this.#t);return!(!s.values.includes(c.getSeconds())||!l.values.includes(c.getMinutes())||!u.values.includes(c.getHours())||!f.values.includes(c.getMonth()+1)||!this.#m(c)||this.#a.dayOfWeek.nthDay>0&&Math.ceil(c.getDate()/7)!==this.#a.dayOfWeek.nthDay)}toString(){return this.#e.expression||this.stringify(!0)}#m(a){const s=this.#a.dayOfMonth.isWildcard,l=!s,u=this.#a.dayOfWeek.isWildcard,f=!u,c=r.#c(a.getDate(),this.#a.dayOfMonth.values)||this.#a.dayOfMonth.hasLastChar&&a.isLastDayOfMonth(),m=r.#c(a.getDay(),this.#a.dayOfWeek.values)||this.#a.dayOfWeek.hasLastChar&&r.#f(this.#a.dayOfWeek.values,a);return!!(l&&f&&(c||m)||c&&!f||s&&!u&&m)}#g(a,s,l){const u=this.#a.hour.values,f=u,c=a.getHours(),m=r.#c(c,u),y=a.dstEnd===c;if(a.dstStart!==null&&a.dstStart===c-1&&r.#c(a.dstStart,u))return!0;if(y&&!l)return a.dstEnd=null,a.applyDateOperation(t.DateMathOp.Add,t.TimeUnit.Hour,f.length),!1;if(m)return!0;a.dstStart=null;const v=this.#a.hour.findNearestValue(c,l);if(v===null)return a.applyDateOperation(s,t.TimeUnit.Day,f.length),!1;if(this.#d(a)){const b=l?c-v:v-c;for(let x=0;x<b&&(a.applyDateOperation(s,t.TimeUnit.Hour,f.length),!(!l&&a.getHours()>=v||l&&a.getHours()<=v));x++);}else a.setHours(v);return a.setMinutes(this.#l(this.#a.minute.values,l)),a.setSeconds(this.#l(this.#a.second.values,l)),!1}#y(a){if(!this.#o&&!this.#r)return;const s=a.getTime();if(this.#o&&s<this.#o.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#r&&s>this.#r.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)}#h(a=!1){const s=a?t.DateMathOp.Subtract:t.DateMathOp.Add,l=new t.CronDate(this.#n),u=l.getTime();let f=0;for(;++f<n;){if(this.#y(l),!this.#m(l)){l.applyDateOperation(s,t.TimeUnit.Day,this.#a.hour.values.length);continue}if(!(this.#a.dayOfWeek.nthDay<=0||Math.ceil(l.getDate()/7)===this.#a.dayOfWeek.nthDay)){l.applyDateOperation(s,t.TimeUnit.Day,this.#a.hour.values.length);continue}if(!r.#c(l.getMonth()+1,this.#a.month.values)){l.applyDateOperation(s,t.TimeUnit.Month,this.#a.hour.values.length);continue}if(this.#g(l,s,a)){if(!r.#c(l.getMinutes(),this.#a.minute.values)){this.#p(l,s,a);continue}if(!r.#c(l.getSeconds(),this.#a.second.values)){this.#u(l,s,a);continue}if(u===l.getTime()){(s==="Add"||l.getMilliseconds()===0)&&l.applyDateOperation(s,t.TimeUnit.Second,this.#a.hour.values.length);continue}break}}if(f>n)throw new Error(e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return l.getMilliseconds()!==0&&l.setMilliseconds(0),this.#n=l,l}[Symbol.iterator](){return{next:()=>{try{return{value:this.#h(),done:!1}}catch{return{value:void 0,done:!0}}}}}}e.CronExpression=r,e.default=r})(xj)),xj}var pb={},wj;function wge(){if(wj)return pb;wj=1,Object.defineProperty(pb,"__esModule",{value:!0}),pb.seededRandom=n;function e(r){let o=2166136261;for(let a=0;a<r.length;a++)o^=r.charCodeAt(a),o=Math.imul(o,16777619);return()=>o>>>0}function t(r){return()=>{let o=r+=1831565813;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296}}function n(r){const o=r?e(r)():Math.floor(Math.random()*1e10);return t(o)}return pb}var Cj;function dk(){if(Cj)return ni;Cj=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.CronExpressionParser=ni.DayOfWeek=ni.Months=ni.CronUnit=ni.PredefinedExpressions=void 0;const e=N4(),t=I4(),n=wge(),r=I2();var o;(function(f){f["@yearly"]="0 0 0 1 1 *",f["@annually"]="0 0 0 1 1 *",f["@monthly"]="0 0 0 1 * *",f["@weekly"]="0 0 0 * * 0",f["@daily"]="0 0 0 * * *",f["@hourly"]="0 0 * * * *",f["@minutely"]="0 * * * * *",f["@secondly"]="* * * * * *",f["@weekdays"]="0 0 0 * * 1-5",f["@weekends"]="0 0 0 * * 0,6"})(o||(ni.PredefinedExpressions=o={}));var a;(function(f){f.Second="Second",f.Minute="Minute",f.Hour="Hour",f.DayOfMonth="DayOfMonth",f.Month="Month",f.DayOfWeek="DayOfWeek"})(a||(ni.CronUnit=a={}));var s;(function(f){f[f.jan=1]="jan",f[f.feb=2]="feb",f[f.mar=3]="mar",f[f.apr=4]="apr",f[f.may=5]="may",f[f.jun=6]="jun",f[f.jul=7]="jul",f[f.aug=8]="aug",f[f.sep=9]="sep",f[f.oct=10]="oct",f[f.nov=11]="nov",f[f.dec=12]="dec"})(s||(ni.Months=s={}));var l;(function(f){f[f.sun=0]="sun",f[f.mon=1]="mon",f[f.tue=2]="tue",f[f.wed=3]="wed",f[f.thu=4]="thu",f[f.fri=5]="fri",f[f.sat=6]="sat"})(l||(ni.DayOfWeek=l={}));let u=class ri{static parse(c,m={}){const{strict:y=!1,hashSeed:v}=m,b=(0,n.seededRandom)(v);c=o[c]||c;const x=ri.#e(c,y);if(!(x.dayOfMonth==="*"||x.dayOfWeek==="*"||!y))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");const w=ri.#t(a.Second,x.second,r.CronSecond.constraints,b),S=ri.#t(a.Minute,x.minute,r.CronMinute.constraints,b),k=ri.#t(a.Hour,x.hour,r.CronHour.constraints,b),T=ri.#t(a.Month,x.month,r.CronMonth.constraints,b),O=ri.#t(a.DayOfMonth,x.dayOfMonth,r.CronDayOfMonth.constraints,b),{dayOfWeek:P,nthDayOfWeek:$}=ri.#d(x.dayOfWeek),I=ri.#t(a.DayOfWeek,P,r.CronDayOfWeek.constraints,b),F=new e.CronFieldCollection({second:new r.CronSecond(w,{rawValue:x.second}),minute:new r.CronMinute(S,{rawValue:x.minute}),hour:new r.CronHour(k,{rawValue:x.hour}),dayOfMonth:new r.CronDayOfMonth(O,{rawValue:x.dayOfMonth}),month:new r.CronMonth(T,{rawValue:x.month}),dayOfWeek:new r.CronDayOfWeek(I,{rawValue:x.dayOfWeek,nthDayOfWeek:$})});return new t.CronExpression(F,{...m,expression:c})}static#e(c,m){if(m&&!c.length)throw new Error("Invalid cron expression");c=c||"0 * * * * *";const y=c.trim().split(/\s+/);if(m&&y.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(y.length>6)throw new Error("Invalid cron expression, too many fields");const v=["*","*","*","*","*","0"];y.length<v.length&&y.unshift(...v.slice(y.length));const[b,x,w,S,k,T]=y;return{second:b,minute:x,hour:w,dayOfMonth:S,month:k,dayOfWeek:T}}static#t(c,m,y,v){if((c===a.Month||c===a.DayOfWeek)&&(m=m.replace(/[a-z]{3}/gi,b=>{b=b.toLowerCase();const x=s[b]||l[b];if(x===void 0)throw new Error(`Validation error, cannot resolve alias "${b}"`);return x.toString()})),!y.validChars.test(m))throw new Error(`Invalid characters, got value: ${m}`);return m=this.#n(m,y),m=this.#o(m,y,v),this.#r(c,m,y)}static#n(c,m){return c.replace(/[*?]/g,m.min+"-"+m.max)}static#o(c,m,y){const v=y();return c.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(b,x,w,S)=>{if(x&&w&&S){const k=parseInt(x,10),T=parseInt(w,10),O=parseInt(S,10);if(k>T)throw new Error(`Invalid range: ${k}-${T}, min > max`);if(O<=0)throw new Error(`Invalid step: ${O}, must be positive`);const P=Math.max(k,m.min),$=Math.floor(v*O),I=[];for(let F=Math.floor(P/O)*O+$;F<=T;F+=O)F>=P&&I.push(F);return I.join(",")}else if(x&&w){const k=parseInt(x,10),T=parseInt(w,10);if(k>T)throw new Error(`Invalid range: ${k}-${T}, min > max`);return String(Math.floor(v*(T-k+1))+k)}else if(S){const k=parseInt(S,10);if(k<=0)throw new Error(`Invalid step: ${k}, must be positive`);const T=Math.floor(v*k),O=[];for(let P=Math.floor(m.min/k)*k+T;P<=m.max;P+=k)P>=m.min&&O.push(P);return O.join(",")}else return String(Math.floor(v*(m.max-m.min+1)+m.min))})}static#r(c,m,y){const v=[];function b(x,w){if(Array.isArray(x))v.push(...x);else if(ri.#u(w,x))v.push(x);else{const S=parseInt(x.toString(),10);if(!(S>=w.min&&S<=w.max))throw new Error(`Constraint error, got value ${x} expected range ${w.min}-${w.max}`);v.push(c===a.DayOfWeek?S%7:x)}}return m.split(",").forEach(x=>{if(!(x.length>0))throw new Error("Invalid list value format");b(ri.#a(c,x,y),y)}),v}static#a(c,m,y){const v=m.split("/");if(v.length>2)throw new Error(`Invalid repeat: ${m}`);return v.length===2?(v[0].includes("-")||(v[0]=`${v[0]}-${y.max}`),ri.#l(c,v[0],parseInt(v[1],10),y)):ri.#l(c,m,1,y)}static#s(c,m,y){if(!(!isNaN(c)&&!isNaN(m)&&c>=y.min&&m<=y.max))throw new Error(`Constraint error, got range ${c}-${m} expected range ${y.min}-${y.max}`);if(c>m)throw new Error(`Invalid range: ${c}-${m}, min(${c}) > max(${m})`)}static#i(c){if(!(!isNaN(c)&&c>0))throw new Error(`Constraint error, cannot repeat at every ${c} time.`)}static#c(c,m,y,v){const b=[];c===a.DayOfWeek&&y%7===0&&b.push(0);for(let x=m;x<=y;x+=v)b.indexOf(x)===-1&&b.push(x);return b}static#l(c,m,y,v){const b=m.split("-");if(b.length<=1)return isNaN(+m)?m:+m;const[x,w]=b.map(S=>parseInt(S,10));return this.#s(x,w,v),this.#i(y),this.#c(c,x,w,y)}static#d(c){const m=c.split("#");if(m.length<=1)return{dayOfWeek:m[0]};const y=+m[m.length-1],v=c.match(/([,-/])/);if(v!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${v?.[0]}\` special characters are incompatible`);if(!(m.length<=2&&!isNaN(y)&&y>=1&&y<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:m[0],nthDayOfWeek:y}}static#u(c,m){return c.chars.some(y=>m.toString().includes(y))}};return ni.CronExpressionParser=u,ni}var ks={};const Cge={},kge=Object.freeze(Object.defineProperty({__proto__:null,default:Cge},Symbol.toStringTag,{value:"Module"})),kj=WJ(kge);var Tj;function Tge(){if(Tj)return ks;Tj=1;var e=ks&&ks.__createBinding||(Object.create?(function(a,s,l,u){u===void 0&&(u=l);var f=Object.getOwnPropertyDescriptor(s,l);(!f||("get"in f?!s.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,u,f)}):(function(a,s,l,u){u===void 0&&(u=l),a[u]=s[l]})),t=ks&&ks.__setModuleDefault||(Object.create?(function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}):function(a,s){a.default=s}),n=ks&&ks.__importStar||(function(){var a=function(s){return a=Object.getOwnPropertyNames||function(l){var u=[];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[u.length]=f);return u},a(s)};return function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u=a(s),f=0;f<u.length;f++)u[f]!=="default"&&e(l,s,u[f]);return t(l,s),l}})();Object.defineProperty(ks,"__esModule",{value:!0}),ks.CronFileParser=void 0;const r=dk();let o=class Lb{static async parseFile(s){const{readFile:l}=await Promise.resolve().then(()=>n(kj)),u=await l(s,"utf8");return Lb.#e(u)}static parseFileSync(s){const{readFileSync:l}=kj,u=l(s,"utf8");return Lb.#e(u)}static#e(s){const l=s.split(`
436
- `),u={variables:{},expressions:[],errors:{}};for(const f of l){const c=f.trim();if(c.length===0||c.startsWith("#"))continue;const m=c.match(/^(.*)=(.*)$/);if(m){const[,y,v]=m;u.variables[y]=v.replace(/["']/g,"");continue}try{const y=Lb.#t(c);u.expressions.push(y.interval)}catch(y){u.errors[c]=y}}return u}static#t(s){const l=s.split(" ");return{interval:r.CronExpressionParser.parse(l.slice(0,5).join(" ")),command:l.slice(5,l.length)}}};return ks.CronFileParser=o,ks}var Mj;function Mge(){return Mj||(Mj=1,(function(e){var t=ep&&ep.__createBinding||(Object.create?(function(f,c,m,y){y===void 0&&(y=m);var v=Object.getOwnPropertyDescriptor(c,m);(!v||("get"in v?!c.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return c[m]}}),Object.defineProperty(f,y,v)}):(function(f,c,m,y){y===void 0&&(y=m),f[y]=c[m]})),n=ep&&ep.__exportStar||function(f,c){for(var m in f)m!=="default"&&!Object.prototype.hasOwnProperty.call(c,m)&&t(c,f,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.CronFileParser=e.CronExpressionParser=e.CronExpression=e.CronFieldCollection=e.CronDate=void 0;const r=dk();var o=N2();Object.defineProperty(e,"CronDate",{enumerable:!0,get:function(){return o.CronDate}});var a=N4();Object.defineProperty(e,"CronFieldCollection",{enumerable:!0,get:function(){return a.CronFieldCollection}});var s=I4();Object.defineProperty(e,"CronExpression",{enumerable:!0,get:function(){return s.CronExpression}});var l=dk();Object.defineProperty(e,"CronExpressionParser",{enumerable:!0,get:function(){return l.CronExpressionParser}});var u=Tge();Object.defineProperty(e,"CronFileParser",{enumerable:!0,get:function(){return u.CronFileParser}}),n(I2(),e),e.default=r.CronExpressionParser})(ep)),ep}var Ege=Mge(),Ej={exports:{}},Rj;function Rge(){return Rj||(Rj=1,(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:((s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=u(515),c=(function(){function m(y,v,b){v===void 0&&(v=!0),b===void 0&&(b=!1),this.expression=y,this.dayOfWeekStartIndexZero=v,this.monthStartIndexZero=b}return m.prototype.parse=function(){var y,v,b=(y=this.expression)!==null&&y!==void 0?y:"";if(b==="@reboot")return v=["@reboot","","","","","",""],v;if(b.startsWith("@")){var x=this.parseSpecial(this.expression);v=this.extractParts(x)}else v=this.extractParts(this.expression);return this.normalize(v),this.validate(v),v},m.prototype.parseSpecial=function(y){var v={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},b=v[y];if(!b)throw new Error("Unknown special expression.");return b},m.prototype.extractParts=function(y){if(!this.expression)throw new Error("cron expression is empty");for(var v=y.trim().split(/[ ]+/),b=0;b<v.length;b++)if(v[b].includes(",")){var x=v[b].split(",").map(function(S){return S.trim()}).filter(function(S){return S!==""}).map(function(S){return isNaN(Number(S))?S:Number(S)}).filter(function(S){return S!==null&&S!==""});x.length===0&&x.push("*"),x.sort(function(S,k){return S!==null&&k!==null?S-k:0}),v[b]=x.map(function(S){return S!==null?S.toString():""}).join(",")}if(v.length<5)throw new Error("Expression has only ".concat(v.length," part").concat(v.length==1?"":"s",". At least 5 parts are required."));if(v.length==5)v.unshift(""),v.push("");else if(v.length==6){var w=/\d{4}$/.test(v[5])||v[4]=="?"||v[2]=="?";w?v.unshift(""):v.push("")}else if(v.length>7)throw new Error("Expression has ".concat(v.length," parts; too many!"));return v},m.prototype.normalize=function(y){var v=this;if(y[3]=y[3].replace("?","*"),y[5]=y[5].replace("?","*"),y[2]=y[2].replace("?","*"),y[0].indexOf("0/")==0&&(y[0]=y[0].replace("0/","*/")),y[1].indexOf("0/")==0&&(y[1]=y[1].replace("0/","*/")),y[2].indexOf("0/")==0&&(y[2]=y[2].replace("0/","*/")),y[3].indexOf("1/")==0&&(y[3]=y[3].replace("1/","*/")),y[4].indexOf("1/")==0&&(y[4]=y[4].replace("1/","*/")),y[6].indexOf("1/")==0&&(y[6]=y[6].replace("1/","*/")),y[5]=y[5].replace(/(^\d)|([^#/\s]\d)/g,function(P){var $=P.replace(/\D/,""),I=$;return v.dayOfWeekStartIndexZero?$=="7"&&(I="0"):I=(parseInt($)-1).toString(),P.replace($,I)}),y[5]=="L"&&(y[5]="6"),y[3]=="?"&&(y[3]="*"),y[3].indexOf("W")>-1&&(y[3].indexOf(",")>-1||y[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var b={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var x in b)y[5]=y[5].replace(new RegExp(x,"gi"),b[x].toString());y[4]=y[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(P){var $=P.replace(/\D/,""),I=$;return v.monthStartIndexZero&&(I=(parseInt($)+1).toString()),P.replace($,I)});var w={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var S in w)y[4]=y[4].replace(new RegExp(S,"gi"),w[S].toString());y[0]=="0"&&(y[0]=""),!/\*|\-|\,|\//.test(y[2])&&(/\*|\//.test(y[1])||/\*|\//.test(y[0]))&&(y[2]+="-".concat(y[2]));for(var k=0;k<y.length;k++)if(y[k].indexOf(",")!=-1&&(y[k]=y[k].split(",").filter(function(P){return P!==""}).join(",")||"*"),y[k]=="*/1"&&(y[k]="*"),y[k].indexOf("/")>-1&&!/^\*|\-|\,/.test(y[k])){var T=null;switch(k){case 4:T="12";break;case 5:T="6";break;case 6:T="9999";break;default:T=null;break}if(T!==null){var O=y[k].split("/");y[k]="".concat(O[0],"-").concat(T,"/").concat(O[1])}}},m.prototype.validate=function(y){var v="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(y[0],v),this.validateOnlyExpectedCharactersFound(y[1],v),this.validateOnlyExpectedCharactersFound(y[2],v),this.validateOnlyExpectedCharactersFound(y[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(y[4],v),this.validateOnlyExpectedCharactersFound(y[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(y[6],v),this.validateAnyRanges(y)},m.prototype.validateAnyRanges=function(y){f.default.secondRange(y[0]),f.default.minuteRange(y[1]),f.default.hourRange(y[2]),f.default.dayOfMonthRange(y[3]),f.default.monthRange(y[4],this.monthStartIndexZero),f.default.dayOfWeekRange(y[5],this.dayOfWeekStartIndexZero)},m.prototype.validateOnlyExpectedCharactersFound=function(y,v){var b=y.match(new RegExp("[^".concat(v,"]+"),"gi"));if(b&&b.length)throw new Error("Expression contains invalid values: '".concat(b.toString(),"'"))},m})();l.CronParser=c}),333:((s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=u(823),c=u(949),m=(function(){function y(v,b){if(this.expression=v,this.options=b,this.expressionParts=new Array(5),!this.options.locale&&y.defaultLocale&&(this.options.locale=y.defaultLocale),!y.locales[this.options.locale]){var x=Object.keys(y.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(x,"'.")),this.options.locale=x}this.i18n=y.locales[this.options.locale],b.use24HourTimeFormat===void 0&&(b.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return y.toString=function(v,b){var x=b===void 0?{}:b,w=x.throwExceptionOnParseError,S=w===void 0?!0:w,k=x.verbose,T=k===void 0?!1:k,O=x.dayOfWeekStartIndexZero,P=O===void 0?!0:O,$=x.monthStartIndexZero,I=$===void 0?!1:$,F=x.use24HourTimeFormat,A=x.locale,H=A===void 0?null:A,L={throwExceptionOnParseError:S,verbose:T,dayOfWeekStartIndexZero:P,monthStartIndexZero:I,use24HourTimeFormat:F,locale:H};L.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var M=new y(v,L);return M.getFullDescription()},y.initialize=function(v,b){b===void 0&&(b="en"),y.specialCharacters=["/","-",",","*"],y.defaultLocale=b,v.load(y.locales)},y.prototype.getFullDescription=function(){var v,b,x="";try{var w=new c.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=w.parse(),this.expressionParts[0]==="@reboot")return((b=(v=this.i18n).atReboot)===null||b===void 0?void 0:b.call(v))||"Run once, at startup";var S=this.getTimeOfDayDescription(),k=this.getDayOfMonthDescription(),T=this.getMonthDescription(),O=this.getDayOfWeekDescription(),P=this.getYearDescription();x+=S+k+O+T+P,x=this.transformVerbosity(x,!!this.options.verbose),x=x.charAt(0).toLocaleUpperCase()+x.substr(1)}catch($){if(!this.options.throwExceptionOnParseError)x=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat($)}return x},y.prototype.getTimeOfDayDescription=function(){var v=this.expressionParts[0],b=this.expressionParts[1],x=this.expressionParts[2],w="";if(!f.StringUtilities.containsAny(b,y.specialCharacters)&&!f.StringUtilities.containsAny(x,y.specialCharacters)&&!f.StringUtilities.containsAny(v,y.specialCharacters))w+=this.i18n.atSpace()+this.formatTime(x,b,v);else if(!v&&b.indexOf("-")>-1&&!(b.indexOf(",")>-1)&&!(b.indexOf("/")>-1)&&!f.StringUtilities.containsAny(x,y.specialCharacters)){var S=b.split("-");w+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(x,S[0],""),this.formatTime(x,S[1],""))}else if(!v&&x.indexOf(",")>-1&&x.indexOf("-")==-1&&x.indexOf("/")==-1&&!f.StringUtilities.containsAny(b,y.specialCharacters)){var k=x.split(",");w+=this.i18n.at();for(var T=0;T<k.length;T++)w+=" ",w+=this.formatTime(k[T],b,""),T<k.length-2&&(w+=","),T==k.length-2&&(w+=this.i18n.spaceAnd())}else{var O=this.getSecondsDescription(),P=this.getMinutesDescription(),$=this.getHoursDescription();if(w+=O,w&&P&&(w+=", "),w+=P,P===$)return w;w&&$&&(w+=", "),w+=$}return w},y.prototype.getSecondsDescription=function(){var v=this,b=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(x){return x},function(x){return f.StringUtilities.format(v.i18n.everyX0Seconds(x),x)},function(x){return v.i18n.secondsX0ThroughX1PastTheMinute()},function(x){return x=="0"?"":parseInt(x)<20?v.i18n.atX0SecondsPastTheMinute(x):v.i18n.atX0SecondsPastTheMinuteGt20()||v.i18n.atX0SecondsPastTheMinute(x)});return b},y.prototype.getMinutesDescription=function(){var v=this,b=this.expressionParts[0],x=this.expressionParts[2],w=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(S){return S},function(S){return f.StringUtilities.format(v.i18n.everyX0Minutes(S),S)},function(S){return v.i18n.minutesX0ThroughX1PastTheHour()},function(S){try{return S=="0"&&x.indexOf("/")==-1&&b==""?v.i18n.everyHour():parseInt(S)<20?v.i18n.atX0MinutesPastTheHour(S):v.i18n.atX0MinutesPastTheHourGt20()||v.i18n.atX0MinutesPastTheHour(S)}catch{return v.i18n.atX0MinutesPastTheHour(S)}});return w},y.prototype.getHoursDescription=function(){var v=this,b=this.expressionParts[2],x=0,w=[];b.split("/")[0].split(",").forEach(function(T){var O=T.split("-");O.length===2&&w.push({value:O[1],index:x+1}),x+=O.length});var S=0,k=this.getSegmentDescription(b,this.i18n.everyHour(),function(T){var O=w.find(function($){return $.value===T&&$.index===S}),P=O&&v.expressionParts[1]!=="0";return S++,P?v.formatTime(T,"59",""):v.formatTime(T,"0","")},function(T){return f.StringUtilities.format(v.i18n.everyX0Hours(T),T)},function(T){return v.i18n.betweenX0AndX1()},function(T){return v.i18n.atX0()});return k},y.prototype.getDayOfWeekDescription=function(){var v=this,b=this.i18n.daysOfTheWeek(),x=null;return this.expressionParts[5]=="*"?x="":x=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(w,S){var k=w;w.indexOf("#")>-1?k=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(k=k.replace("L",""));var T=parseInt(k),O=v.i18n.daysOfTheWeekInCase?v.i18n.daysOfTheWeekInCase(S)[T]:b[T];if(w.indexOf("#")>-1){var P=null,$=w.substring(w.indexOf("#")+1),I=w.substring(0,w.indexOf("#"));switch($){case"1":P=v.i18n.first(I);break;case"2":P=v.i18n.second(I);break;case"3":P=v.i18n.third(I);break;case"4":P=v.i18n.fourth(I);break;case"5":P=v.i18n.fifth(I);break}O=P+" "+O}return O},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var S=w.substring(0,w.indexOf("-")),k=v.expressionParts[3]!="*";return k?v.i18n.commaAndX0ThroughX1(S):v.i18n.commaX0ThroughX1(S)},function(w){var S=null;if(w.indexOf("#")>-1){var k=w.substring(w.indexOf("#")+1),T=w.substring(0,w.indexOf("#"));S=v.i18n.commaOnThe(k,T).trim()+v.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)S=v.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var O=v.expressionParts[3]!="*";S=O?v.i18n.commaAndOnX0():v.i18n.commaOnlyOnX0(w)}return S}),x},y.prototype.getMonthDescription=function(){var v=this,b=this.i18n.monthsOfTheYear(),x=this.getSegmentDescription(this.expressionParts[4],"",function(w,S){return S&&v.i18n.monthsOfTheYearInCase?v.i18n.monthsOfTheYearInCase(S)[parseInt(w)-1]:b[parseInt(w)-1]},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0Months(w),w)},function(w){return v.i18n.commaMonthX0ThroughMonthX1()||v.i18n.commaX0ThroughX1()},function(w){return v.i18n.commaOnlyInMonthX0?v.i18n.commaOnlyInMonthX0():v.i18n.commaOnlyInX0()});return x},y.prototype.getDayOfMonthDescription=function(){var v=this,b=null,x=this.expressionParts[3];switch(x){case"L":b=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":b=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var w=x.match(/(\d{1,2}W)|(W\d{1,2})/);if(w){var S=parseInt(w[0].replace("W","")),k=S==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),S.toString());b=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),k);break}else{var T=x.match(/L-(\d{1,2})/);if(T){var O=T[1];b=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(O),O);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";b=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function(P){return P=="L"?v.i18n.lastDay():v.i18n.dayX0?f.StringUtilities.format(v.i18n.dayX0(),P):P},function(P){return P=="1"?v.i18n.commaEveryDay():v.i18n.commaEveryX0Days(P)},function(P){return v.i18n.commaBetweenDayX0AndX1OfTheMonth(P)},function(P){return v.i18n.commaOnDayX0OfTheMonth(P)})}break}}return b},y.prototype.getYearDescription=function(){var v=this,b=this.getSegmentDescription(this.expressionParts[6],"",function(x){return/^\d+$/.test(x)?new Date(parseInt(x),1).getFullYear().toString():x},function(x){return f.StringUtilities.format(v.i18n.commaEveryX0Years(x),x)},function(x){return v.i18n.commaYearX0ThroughYearX1()||v.i18n.commaX0ThroughX1()},function(x){return v.i18n.commaOnlyInYearX0?v.i18n.commaOnlyInYearX0():v.i18n.commaOnlyInX0()});return b},y.prototype.getSegmentDescription=function(v,b,x,w,S,k){var T=null,O=v.indexOf("/")>-1,P=v.indexOf("-")>-1,$=v.indexOf(",")>-1;if(!v)T="";else if(v==="*")T=b;else if(!O&&!P&&!$)T=f.StringUtilities.format(k(v),x(v));else if($){for(var I=v.split(","),F="",A=0;A<I.length;A++)if(A>0&&I.length>2&&(F+=",",A<I.length-1&&(F+=" ")),A>0&&I.length>1&&(A==I.length-1||I.length==2)&&(F+="".concat(this.i18n.spaceAnd()," ")),I[A].indexOf("/")>-1||I[A].indexOf("-")>-1){var H=I[A].indexOf("-")>-1&&I[A].indexOf("/")==-1,L=this.getSegmentDescription(I[A],b,x,w,H?this.i18n.commaX0ThroughX1:S,k);H&&(L=L.replace(", ","")),F+=L}else O?F+=this.getSegmentDescription(I[A],b,x,w,S,k):F+=x(I[A]);O?T=F:T=f.StringUtilities.format(k(v),F)}else if(O){var I=v.split("/");if(T=f.StringUtilities.format(w(I[1]),I[1]),I[0].indexOf("-")>-1){var M=this.generateRangeSegmentDescription(I[0],S,x);M.indexOf(", ")!=0&&(T+=", "),T+=M}else if(I[0].indexOf("*")==-1){var _=f.StringUtilities.format(k(I[0]),x(I[0]));_=_.replace(", ",""),T+=f.StringUtilities.format(this.i18n.commaStartingX0(),_)}}else P&&(T=this.generateRangeSegmentDescription(v,S,x));return T},y.prototype.generateRangeSegmentDescription=function(v,b,x){var w="",S=v.split("-"),k=x(S[0],1),T=x(S[1],2),O=b(v);return w+=f.StringUtilities.format(O,k,T),w},y.prototype.formatTime=function(v,b,x){var w=0,S=0,k=parseInt(v)+w,T=parseInt(b)+S;T>=60?(T-=60,k+=1):T<0&&(T+=60,k-=1),k>=24?k=k-24:k<0&&(k=24+k);var O="",P=!1;this.options.use24HourTimeFormat||(P=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),O=P?"".concat(this.getPeriod(k)," "):" ".concat(this.getPeriod(k)),k>12&&(k-=12),k===0&&(k=12));var $="";return x&&($=":".concat(("00"+x).substring(x.length))),"".concat(P?O:"").concat(("00"+k.toString()).substring(k.toString().length),":").concat(("00"+T.toString()).substring(T.toString().length)).concat($).concat(P?"":O)},y.prototype.transformVerbosity=function(v,b){if(!b&&(v=v.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),v=v.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),v=v.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),v=v.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var x=0,w=Object.entries(this.i18n.conciseVerbosityReplacements());x<w.length;x++){var S=w[x],k=S[0],T=S[1];v=v.replace(new RegExp(k,"g"),T)}return v},y.prototype.getPeriod=function(v){return v>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},y.locales={},y})();l.ExpressionDescriptor=m}),747:((s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=u(486),c=(function(){function m(){}return m.prototype.load=function(y){y.en=new f.en},m})();l.enLocaleLoader=c}),486:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var u=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f})();l.en=u}),515:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(c,m){if(!c)throw new Error(m)}var f=(function(){function c(){}return c.secondRange=function(m){for(var y=m.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var b=parseInt(y[v],10);u(b>=0&&b<=59,"seconds part must be >= 0 and <= 59")}},c.minuteRange=function(m){for(var y=m.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var b=parseInt(y[v],10);u(b>=0&&b<=59,"minutes part must be >= 0 and <= 59")}},c.hourRange=function(m){for(var y=m.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var b=parseInt(y[v],10);u(b>=0&&b<=23,"hours part must be >= 0 and <= 23")}},c.dayOfMonthRange=function(m){for(var y=m.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var b=parseInt(y[v],10);u(b>=1&&b<=31,"DOM part must be >= 1 and <= 31")}},c.monthRange=function(m,y){for(var v=m.split(","),b=0;b<v.length;b++)if(!isNaN(parseInt(v[b],10))){var x=parseInt(v[b],10);u(x>=1&&x<=12,y?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},c.dayOfWeekRange=function(m,y){for(var v=m.split(","),b=0;b<v.length;b++)if(!isNaN(parseInt(v[b],10))){var x=parseInt(v[b],10);u(x>=0&&x<=6,y?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},c})();l.default=f}),823:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var u=(function(){function f(){}return f.format=function(c){for(var m=[],y=1;y<arguments.length;y++)m[y-1]=arguments[y];return c.replace(/%s/g,function(v){return m.shift()})},f.containsAny=function(c,m){return m.some(function(y){return c.indexOf(y)>-1})},f})();l.StringUtilities=u})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var u=r[s]={exports:{}};return n[s](u,u.exports,o),u.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),u=o(747);l.ExpressionDescriptor.initialize(new u.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(Ej)),Ej.exports}var Oge=Rge();const Pge=fc(Oge),$ge=new Set(["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC","SUN","MON","TUE","WED","THU","FRI","SAT"]);function Dge(e){for(const t of e.trim().split(/\s+/)){if(/[#?]/.test(t))return!1;for(const n of t.split(/[,\-/]/))if(!(n===""||n==="*")&&/[A-Za-z]/.test(n)&&!$ge.has(n.toUpperCase()))return!1}return!0}function L4(e){const t=(e??"").trim();if(t.split(/\s+/).filter(Boolean).length!==5)return{valid:!1,description:"",nextRun:null,error:"Expected a 5-field UNIX cron: minute hour day-of-month month day-of-week."};if(!Dge(t))return{valid:!1,description:"",nextRun:null,error:"Unsupported cron syntax: L, W, #, and ? extensions are not allowed (plain 5-field UNIX cron only)."};try{const n=Pge.toString(t,{use24HourTimeFormat:!0,verbose:!1}),r=Ege.CronExpressionParser.parse(t,{tz:"UTC"}).next().toDate();return{valid:!0,description:n,nextRun:r}}catch(n){return{valid:!1,description:"",nextRun:null,error:n instanceof Error?n.message:"Invalid cron expression."}}}function z4(e){return e?e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!1})+" UTC":"—"}const Oj="0 6 * * *";function Age({currentSchedule:e,isSubmitting:t,disabled:n,disabledReason:r,onSubmit:o}){const[a,s]=C.useState(!1),[l,u]=C.useState(e??Oj),f=()=>{u(e??Oj),s(!0)},c=()=>s(!1),m=L4(l),y=async b=>{try{await o(b),s(!1)}catch{}},v=h.jsx("span",{children:h.jsx(wo,{variant:"outlined",size:"small",startIcon:h.jsx(x0,{}),onClick:f,disabled:n,"aria-label":e?"Edit schedule":"Set schedule",children:e?"Edit schedule":"Set schedule"})});return h.jsxs(h.Fragment,{children:[n&&r?h.jsx(xa,{title:r,children:v}):v,h.jsxs(Xi,{open:a,onClose:c,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"set-schedule-title",children:[h.jsx(Ji,{id:"set-schedule-title",children:e?"Edit schedule":"Set schedule"}),h.jsxs(Zi,{children:[h.jsx(aT,{sx:{mb:2},children:"The publisher rebuilds the materializations in this package on this cadence. Enter a 5-field UNIX cron, evaluated in UTC. In a hosted deployment, the change takes effect on your next publish."}),h.jsx(ul,{autoFocus:!0,fullWidth:!0,label:"Cron expression",value:l,onChange:b=>u(b.target.value),error:l.trim()!==""&&!m.valid,slotProps:{htmlInput:{style:{fontFamily:di}}}}),h.jsx(Ct,{sx:{mt:1.5,minHeight:48},children:m.valid?h.jsxs(h.Fragment,{children:[h.jsx(St,{variant:"body2",children:m.description}),h.jsxs(St,{variant:"body2",color:"text.secondary",children:["Next run: ",z4(m.nextRun)]})]}):h.jsx(St,{variant:"body2",color:"error",children:m.error})}),h.jsxs(cp,{severity:"info",sx:{mt:2},children:["A schedule runs only on version-scoped packages, so saving one sets ",h.jsx("code",{children:"scope: version"})," for this package."]})]}),h.jsxs(gy,{sx:{justifyContent:"space-between",px:3},children:[h.jsx(Ct,{children:e&&h.jsx(wo,{color:"error",loading:t,onClick:()=>y(null),children:"Clear schedule"})}),h.jsxs(Ct,{children:[h.jsx(wo,{onClick:c,children:"Cancel"}),h.jsx(wo,{variant:"contained",loading:t,disabled:!m.valid,onClick:()=>y(l.trim()),sx:{ml:1},children:"Save"})]})]})]})]})}function jge({schedule:e,scope:t,manifestLocation:n,hasFreshness:r,mutable:o,isSubmitting:a,isScopeMutating:s,onSubmit:l,onScopeChange:u}){const f=!!n,c=e?L4(e):null,m=!!e;return h.jsx(Qp,{variant:"outlined",sx:{borderRadius:2,mb:6},children:h.jsx(Xp,{children:h.jsxs(kr,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:2,children:[h.jsxs(Ct,{sx:{minWidth:0},children:[h.jsxs(kr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1},children:[h.jsx(x0,{fontSize:"small",color:"action"}),h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:"Schedule"})]}),f?h.jsxs(Ct,{children:[h.jsx(Dp,{size:"small",color:"default",variant:"outlined",label:"Control-plane managed",sx:{mb:1}}),h.jsx(St,{variant:"body2",color:"text.secondary",children:"Refresh is driven by the control plane; the built-in scheduler does not fire this package."})]}):c?h.jsxs(Ct,{children:[h.jsxs(kr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:.5,flexWrap:"wrap"},children:[h.jsx(Dp,{size:"small",color:"success",variant:"outlined",icon:h.jsx(x0,{fontSize:"small"}),label:"Active"}),h.jsx(Ct,{component:"code",sx:{fontFamily:di,fontSize:"0.8125rem",px:.75,py:.25,borderRadius:1,bgcolor:"action.hover"},children:e})]}),h.jsx(St,{variant:"body2",children:c.valid?c.description:"Unrecognized cron expression."}),c.valid&&h.jsxs(St,{variant:"body2",color:"text.secondary",children:["Next run: ",z4(c.nextRun)]})]}):r?h.jsx(St,{variant:"body2",color:"text.secondary",children:"This package uses a freshness policy; a cron schedule is not applicable."}):h.jsx(St,{variant:"body2",color:"text.secondary",children:"On-demand only — no schedule set."}),!f&&h.jsxs(Ct,{sx:{mt:2},children:[h.jsx(St,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Scope"}),h.jsx(xa,{title:m?"A schedule requires version scope. Clear the schedule to change it.":"",children:h.jsx("span",{children:h.jsxs(OK,{size:"small",exclusive:!0,value:t,disabled:!o||!u||m||!!s,onChange:(y,v)=>{v&&v!==t&&u?.(v)},children:[h.jsx(BP,{value:"package",children:"package"}),h.jsx(BP,{value:"version",children:"version"})]})})}),h.jsx(St,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:.5},children:t==="version"?"Materialized artifacts are per version (required for a schedule).":"Materialized artifacts are shared across versions."})]}),h.jsxs(St,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1.5},children:["Declared in ",h.jsx("code",{children:"publisher.json"}),".",!f&&h.jsxs(h.Fragment,{children:[" ","In a hosted deployment, a change takes effect on your next publish."]})]})]}),o&&!f&&h.jsx(Age,{currentSchedule:e,isSubmitting:a,disabled:r,disabledReason:"This package declares a freshness policy; a schedule and freshness are mutually exclusive.",onSubmit:l})]})})})}const Nge=3e3;function Gbe({resourceUri:e,onClickPackageFile:t}){const{apiClients:n,mutable:r}=_r(),o=is(),{environmentName:a,packageName:s}=yo(e),[l,u]=C.useState(""),[f,c]=C.useState(null),m=t??(A=>{window.location.href=A});if(!s)throw new Error("Materializations requires a package in the resource URI");const y=ho({queryKey:["materializations",a,s],queryFn:()=>n.materializations.listMaterializations(a,s),refetchInterval:A=>(A.state.data?.data??[]).some(H=>ey(H.status))?Nge:!1}),v=ho({queryKey:["package",a,s],queryFn:()=>n.packages.getPackage(a,s)}),b=()=>o.invalidateQueries({queryKey:["materializations",a,s]}),x=Vo({mutationFn:A=>n.materializations.createMaterialization(a,s,{forceRefresh:A.forceRefresh}),onSuccess(){u("Materialization requested"),b()},onError(A){u(A.message),b()}}),w=Vo({mutationFn:A=>n.materializations.materializationAction(a,s,A.id,R5.Stop),onSuccess(){u("Materialization stopped"),b()},onError(A){u(A.message)}}),S=Vo({mutationFn:({materialization:A,dropTables:H})=>n.materializations.deleteMaterialization(a,s,A.id,H),onSuccess(){u("Materialization deleted"),b()},onError(A){u(A.message)}}),k=v.data?.data,T=Vo({mutationFn:A=>n.packages.updatePackage(a,s,{name:s,description:k?.description,...A?{scope:Jv.Version}:{},materialization:{schedule:A}}),onSuccess(A,H){u(H?"Schedule updated":"Schedule cleared"),o.invalidateQueries({queryKey:["package",a,s]})},onError(A){u(A.message)}}),O=Vo({mutationFn:A=>n.packages.updatePackage(a,s,{name:s,description:k?.description,scope:A}),onSuccess(){u("Scope updated"),o.invalidateQueries({queryKey:["package",a,s]})},onError(A){u(A.message)}}),P=y.data?.data??[],$=P.find(A=>A.id===f)??null,I=P.some(A=>ey(A.status)),F=x.isPending||w.isPending||S.isPending;return h.jsxs(Z0,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[h.jsxs(Ct,{sx:{mb:4},children:[h.jsxs(cT,{onClick:A=>m(`/${a}/${s}`,A),underline:"none",sx:{display:"inline-flex",alignItems:"center",gap:.5,cursor:"pointer",color:"text.secondary",fontSize:"0.875rem",mb:2,"&:hover":{color:"primary.main"}},children:[h.jsx(M4,{sx:{fontSize:18}}),"Back to ",s]}),h.jsxs(kr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[h.jsxs(Ct,{children:[h.jsx(St,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:"Materializations"}),h.jsxs(St,{variant:"body2",color:"text.secondary",children:["Materialize the persist sources in ",s," into tables and serve queries from them"]})]}),r&&h.jsx(Rme,{onSubmit:A=>x.mutateAsync(A),isSubmitting:x.isPending,disabled:I,disabledReason:"A materialization is already pending or running for this package."})]})]}),v.isSuccess&&h.jsx(jge,{schedule:k?.materialization?.schedule??null,scope:k?.scope===Jv.Version?"version":"package",manifestLocation:k?.manifestLocation??null,hasFreshness:!!k?.materialization?.freshness,mutable:r,isSubmitting:T.isPending,isScopeMutating:O.isPending,onSubmit:A=>T.mutateAsync(A),onScopeChange:A=>O.mutateAsync(A==="version"?Jv.Version:Jv.Package)}),h.jsxs(Ct,{sx:{mb:6},children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:1},children:"Runs"}),y.isError&&h.jsx(ca,{error:y.error,context:`${a} > ${s} > Materializations`}),!y.isSuccess&&!y.isError&&h.jsx(Jo,{text:"Loading materializations..."}),y.isSuccess&&h.jsx(A4,{materializations:P,mutable:r,isMutating:F,onStop:A=>w.mutate(A),onDelete:(A,H)=>S.mutate({materialization:A,dropTables:H}),onViewDetails:A=>c(A.id??null)})]}),h.jsx(D4,{materialization:$,buildPlan:v.data?.data?.buildPlan??null,onClose:()=>c(null)}),h.jsx($s,{open:l!=="",autoHideDuration:6e3,onClose:()=>u(""),message:l})]})}function Ige({packages:e,onSubmit:t,isSubmitting:n,disabled:r}){const[o,a]=C.useState(!1),[s,l]=C.useState({}),[u,f]=C.useState(!1),c=()=>{l({}),f(!1),a(!0)},m=()=>a(!1),y=e.map(w=>w.name).filter(w=>s[w]),v=w=>l(S=>({...S,[w]:!S[w]})),b=e.length>0&&y.length===e.length,x=async()=>{try{await t({packageNames:y,forceRefresh:u}),a(!1)}catch{}};return h.jsxs(h.Fragment,{children:[h.jsx(wo,{variant:"contained",startIcon:h.jsx(Wg,{}),onClick:c,disabled:r,"aria-label":"New materialization",children:"New materialization"}),h.jsxs(Xi,{open:o,onClose:m,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"create-env-materialization-title",children:[h.jsx(Ji,{id:"create-env-materialization-title",children:"New materialization"}),h.jsxs(Zi,{children:[h.jsx(aT,{sx:{mb:1},children:"Pick the packages to materialize. Each runs an independent build of every persist source in that package."}),e.length===0?h.jsx(St,{variant:"body2",color:"text.secondary",children:"No packages in this environment."}):h.jsxs(h.Fragment,{children:[h.jsx(yp,{control:h.jsx(rC,{checked:b,indeterminate:y.length>0&&!b,onChange:w=>{const S={};w.target.checked&&e.forEach(k=>S[k.name]=!0),l(S)}}),label:h.jsx(St,{variant:"body2",children:"Select all"})}),h.jsx(Ct,{sx:{maxHeight:240,overflowY:"auto",pl:1,borderLeft:"2px solid",borderColor:"divider"},children:h.jsx(EI,{children:e.map(w=>h.jsx(yp,{control:h.jsx(rC,{checked:!!s[w.name],onChange:()=>v(w.name)}),label:w.name},w.name))})}),h.jsx(yp,{sx:{mt:1},control:h.jsx(hT,{checked:u,onChange:w=>f(w.target.checked)}),label:"Force refresh (rebuild even if unchanged)"})]})]}),h.jsxs(gy,{children:[h.jsx(wo,{onClick:m,children:"Cancel"}),h.jsxs(wo,{variant:"contained",loading:n,disabled:y.length===0,onClick:x,children:["Materialize",y.length>0?` (${y.length})`:""]})]})]})]})}const Lge=3e3,Pj=10;function zge({resourceUri:e,onClickPackageFile:t}){const{apiClients:n,mutable:r}=_r(),o=is(),{environmentName:a}=yo(e),[s,l]=C.useState(""),[u,f]=C.useState(null),[c,m]=C.useState(Pj),y=t??(F=>{window.location.href=F}),v=ho({queryKey:["env-materializations",a,c],queryFn:()=>n.materializations.listEnvironmentMaterializations(a,c),placeholderData:F=>F,refetchInterval:F=>(F.state.data?.data??[]).some(A=>ey(A.status))?Lge:!1}),b=ho({queryKey:["packages",a],queryFn:()=>n.packages.listPackages(a)}),x=()=>o.invalidateQueries({queryKey:["env-materializations",a]}),w=Vo({mutationFn:async F=>{const A=(await Promise.allSettled(F.packageNames.map(H=>n.materializations.createMaterialization(a,H,{forceRefresh:F.forceRefresh})))).filter(H=>H.status==="rejected").length;return{total:F.packageNames.length,failed:A}},onSuccess(F){const A=F.total-F.failed;l(F.failed===0?`Started ${A} materialization${A===1?"":"s"}`:`Started ${A} of ${F.total} (${F.failed} could not start — a build may already be active)`),x()},onError(F){l(F.message),x()}}),S=Vo({mutationFn:F=>n.materializations.materializationAction(a,F.packageName,F.id,R5.Stop),onSuccess(){l("Materialization stopped"),x()},onError(F){l(F.message)}}),k=Vo({mutationFn:({materialization:F,dropTables:A})=>n.materializations.deleteMaterialization(a,F.packageName,F.id,A),onSuccess(){l("Materialization deleted"),x()},onError(F){l(F.message)}}),T=v.data?.data??[],O=b.data?.data??[],P=T.find(F=>F.id===u)??null,$=w.isPending||S.isPending||k.isPending,I=T.length>=c;return h.jsxs(Ct,{children:[h.jsxs(Ct,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",mb:3},children:[h.jsxs(Ct,{children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:"Materializations"}),h.jsx(St,{variant:"body2",color:"text.secondary",children:"All materialization builds across the packages in this environment"})]}),r&&h.jsx(Ige,{packages:O,onSubmit:F=>w.mutateAsync(F),isSubmitting:w.isPending})]}),v.isError&&h.jsx(ca,{error:v.error,context:`${a} > Materializations`}),!v.isSuccess&&!v.isError&&h.jsx(Jo,{text:"Loading materializations..."}),v.isSuccess&&h.jsx(A4,{materializations:T,mutable:r,isMutating:$,showPackage:!0,onClickPackage:F=>y(`/${a}/${F}/materializations`),onStop:F=>S.mutate(F),onDelete:(F,A)=>k.mutate({materialization:F,dropTables:A}),onViewDetails:F=>f(F.id??null)}),v.isSuccess&&T.length>0&&h.jsxs(kr,{direction:"row",alignItems:"center",justifyContent:"center",spacing:2,sx:{mt:2},children:[h.jsx(St,{variant:"caption",color:"text.secondary",children:I?`Showing ${T.length} most recent`:`${T.length} materialization${T.length===1?"":"s"}`}),I&&h.jsx(wo,{size:"small",onClick:()=>m(F=>F+Pj),disabled:v.isFetching,children:"Show more"})]}),h.jsx(D4,{materialization:P,buildPlan:null,showBuildPlan:!1,onClose:()=>f(null)}),h.jsx($s,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})}function Fge({resourceUri:e}){const{environmentName:t}=yo(e),{apiClients:n}=_r(),[r,o]=C.useState(!1),a=90,{data:s,isSuccess:l,isError:u,error:f}=ho({queryKey:["about",t],queryFn:()=>n.environments.getEnvironment(t,!1)}),c=s?.data?.readme||"",m=c.split(/\s+/),y=m.length>a,v=m.slice(0,a).join(" ");return h.jsxs(h.Fragment,{children:[!l&&!u&&h.jsx(Jo,{text:"Fetching About..."}),l&&c&&h.jsx(bZ,{children:h.jsxs(xZ,{children:[h.jsx(SZ,{children:"Readme"}),h.jsxs(Ct,{sx:{mt:1},children:[h.jsx(m0,{variant:"caption",children:r||!y?c:v}),y&&h.jsxs(Ct,{sx:{mt:1},children:[" ",h.jsx(wo,{variant:"text",size:"small",onClick:()=>o(!r),children:r?"Read less":"Read more"})]})]})]})}),u&&h.jsx(ca,{error:f,context:`${t} > About`})]})}const F4="https://docs.malloydata.dev/documentation",Ew=`${F4}/user_guides/publishing`,np="https://github.com/malloydata/publisher/blob/main/docs",sl={docsHome:`${F4}/`,publishing:`${Ew}/publishing`,explorer:`${Ew}/explorer`,mcpAgents:`${Ew}/mcp_agents`,surfaces:`${np}/choosing-a-surface.md`,dashboards:`${np}/dashboards.md`,dataApps:`${np}/html-data-apps.md`,givens:`${np}/givens.md`,materialization:`${np}/materialization.md`,connections:`${np}/connections.md`};function Bge({resourceUri:e}){const[t,n]=C.useState(!1),{apiClients:r}=_r(),o=is(),[a,s]=C.useState(""),{environmentName:l}=yo(e),u=Vo({async mutationFn(c){return r.packages.createPackage(l,{name:c.name,description:c.description,location:c.location})},onSuccess(){n(!1),s("Package created successfully"),o.invalidateQueries({queryKey:["packages",l]})},onError(c){s(c instanceof Error?c.message:"An unknown error occurred")}}),f=c=>{c.preventDefault();const m=new FormData(c.currentTarget),y=m.get("name")?.toString(),v=m.get("description")?.toString(),b=m.get("location")?.toString();u.mutate({name:y,description:v,location:b})};return h.jsxs(h.Fragment,{children:[h.jsx(wo,{onClick:()=>n(!0),variant:"contained",color:"primary",startIcon:h.jsx(UJ,{}),children:"Add Package"}),h.jsxs(Xi,{open:t,onClose:()=>n(!1),maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:2}},children:[h.jsx(Ji,{sx:{fontSize:"1.25rem",fontWeight:600,letterSpacing:"-0.025em",pt:3,pb:1,px:3},children:"Create New Package"}),h.jsxs(Zi,{sx:{px:3,pb:0},children:[h.jsxs(Ct,{sx:{mb:3},children:[h.jsx(St,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:"Create a new Malloy package to start exploring your data."}),h.jsx(St,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:"The location can be a GitHub/S3/GCP URL containing a package (zipped or unzipped), or an absolute path to a directory the publisher server has access to."}),h.jsxs(St,{variant:"body2",color:"text.secondary",children:["Make sure to conform to the"," ",h.jsx(Ct,{component:"a",href:sl.publishing,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary",textDecoration:"underline"},children:"Malloy Package Format"}),"."]})]}),h.jsx("form",{onSubmit:f,id:"package-form",children:h.jsxs(kr,{spacing:2.5,children:[h.jsx(ul,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Package Name",type:"text",fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:{shrink:!0}}),h.jsx(ul,{id:"description",name:"description",label:"Description",multiline:!0,rows:3,fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:{shrink:!0}}),h.jsx(ul,{id:"location",name:"location",label:"Location",type:"text",placeholder:"e.g. s3://my-bucket/my-package.zip",fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:{shrink:!0}})]})})]}),h.jsxs(gy,{sx:{px:3,pt:2,pb:3,gap:1},children:[h.jsx(wo,{variant:"outlined",disabled:u.isPending,onClick:()=>n(!1),children:"Cancel"}),h.jsx(wo,{type:"submit",form:"package-form",variant:"contained",loading:u.isPending,children:"Save Changes"})]})]}),h.jsx($s,{open:a!=="",autoHideDuration:6e3,onClose:()=>s(""),message:a})]})}const _ge=tr(h.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),B4=tr(h.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Uge=Kt("MuiBox",["root"]),Vge=hL(),Aa=Fk({themeId:nh,defaultTheme:Vge,defaultClassName:Uge.root,generateClassName:J5.generate});function Hge(e){return tn("MuiDialogContentText",e)}Kt("MuiDialogContentText",["root"]);const Wge=e=>{const{classes:t}=e,n=Zt({root:["root"]},Hge,t);return{...t,...n}},qge=Fe(gr,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Ny=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiDialogContentText"}),{children:r,className:o,...a}=n,s=Wge(a);return h.jsx(qge,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:a,className:It(s.root,o),...n,classes:s})}),nc={postgres:[{label:"Host",name:"host",type:"text",required:!1},{label:"Port",name:"port",type:"number",required:!1},{label:"Database Name",name:"databaseName",type:"text",required:!1},{label:"User Name",name:"userName",type:"text",required:!1},{label:"Password",name:"password",type:"password",required:!1},{label:"Connection String",name:"connectionString",type:"text",required:!1}],bigquery:[{label:"Project ID",name:"defaultProjectId",type:"text",required:!1},{label:"Billing Project ID",name:"billingProjectId",type:"text",required:!1},{label:"Location",name:"location",type:"text",required:!1},{label:"Service Account Key JSON",name:"serviceAccountKeyJson",type:"text",required:!0},{label:"Maximum Bytes Billed",name:"maximumBytesBilled",type:"text",required:!1},{label:"Query Timeout Milliseconds",name:"queryTimeoutMilliseconds",type:"text",required:!1}],snowflake:[{label:"Account",name:"account",type:"text",required:!0},{label:"Username",name:"username",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!1},{label:"Role",name:"role",type:"text",required:!1},{label:"Warehouse",name:"warehouse",type:"text",required:!0},{label:"Database",name:"database",type:"text",required:!1},{label:"Schema",name:"schema",type:"text",required:!1},{label:"Response Timeout Milliseconds",name:"responseTimeoutMilliseconds",type:"text",required:!1},{label:"Private Key",name:"privateKey",type:"password",required:!1},{label:"Private Key Passphrase",name:"privateKeyPass",type:"password",required:!1}],trino:[{label:"Server",name:"server",type:"text",required:!0},{label:"Port",name:"port",type:"number",required:!1},{label:"Catalog",name:"catalog",type:"text",required:!1},{label:"Schema",name:"schema",type:"text",required:!1},{label:"User",name:"user",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!1},{label:"Peaka Key",name:"peakaKey",type:"password",required:!1}],databricks:[{label:"Host",name:"host",type:"text",required:!0},{label:"HTTP Path",name:"path",type:"text",required:!0},{label:"Access Token",name:"token",type:"password",required:!1},{label:"OAuth Client ID",name:"oauthClientId",type:"text",required:!1},{label:"OAuth Client Secret",name:"oauthClientSecret",type:"password",required:!1},{label:"Default Catalog",name:"defaultCatalog",type:"text",required:!1},{label:"Default Schema",name:"defaultSchema",type:"text",required:!1}],mysql:[{label:"Host",name:"host",type:"text",required:!0},{label:"Port",name:"port",type:"number",required:!0},{label:"User",name:"user",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!0},{label:"Database",name:"database",type:"text",required:!0}],duckdb:[],motherduck:[{label:"Access Token",name:"accessToken",type:"text",required:!0},{label:"Database",name:"database",type:"text",required:!1}],ducklake:[],publisher:[]},ig={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",databricks:"databricksConnection",mysql:"mysqlConnection",duckdb:"duckdbConnection",motherduck:"motherduckConnection",ducklake:"ducklakeConnection",publisher:"publisherConnection"},_4=Object.values(k$).filter(e=>e!==k$.Publisher),fk={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",gcs:"gcsConnection",s3:"s3Connection",azure:"azureConnection"},ty=[{label:"Credential Provider",name:"provider",type:"text",required:!1,selectOptions:[{label:"Access key pair",value:"config"},{label:"Host credential chain",value:"credential_chain"}]},{label:"Access Key ID",name:"accessKeyId",type:"text",required:!1,visibleWhen:{field:"provider",value:"config"}},{label:"Secret Access Key",name:"secretAccessKey",type:"password",required:!1,visibleWhen:{field:"provider",value:"config"}},{label:"Credential Chain",name:"chain",type:"text",required:!1,visibleWhen:{field:"provider",value:"credential_chain"}},{label:"Region",name:"region",type:"text",required:!1},{label:"Endpoint",name:"endpoint",type:"text",required:!1},{label:"Session Token",name:"sessionToken",type:"password",required:!1,visibleWhen:{field:"provider",value:"config"}}],ny=[{label:"Key ID",name:"keyId",type:"text",required:!0},{label:"Secret",name:"secret",type:"password",required:!0}],Yge=[{label:"Auth Type",name:"authType",type:"text",required:!0,selectOptions:[{label:"SAS Token",value:"sas_token"},{label:"Service Principal (SPN)",value:"service_principal"}]},{label:"SAS URL (e.g. https://account.blob.core.windows.net/container/file.parquet?sp=r&st=...)",name:"sasUrl",type:"text",required:!1,visibleWhen:{field:"authType",value:"sas_token"}},{label:"Tenant ID",name:"tenantId",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Client ID",name:"clientId",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Client Secret",name:"clientSecret",type:"password",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Account Name",name:"accountName",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"File URL (e.g. abfss://container/path/file.parquet)",name:"fileUrl",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}}];function S0(e){return e==="postgres"||e==="bigquery"||e==="snowflake"?nc[e]||[]:e==="s3"?ty:e==="gcs"?ny:e==="azure"?Yge:[]}function Gge({onSubmit:e,isSubmitting:t}){const[n,r]=C.useState(!1),[o,a]=C.useState("postgres"),[s,l]=C.useState([]),[u,f]=C.useState("postgres"),[c,m]=C.useState("s3"),[y,v]=C.useState("config"),b=()=>{r(!0)},x=()=>{r(!1),l([]),a("postgres"),f("postgres"),m("s3"),v("config")},w=async O=>{O.preventDefault();const P=new FormData(O.currentTarget),$=P.get("name")?.toString(),I=P.get("type")?.toString(),F=nc[I];if(!$)throw new Error("Name is required");if(!I)throw new Error("Type is required");let A;if(I==="ducklake"){const H={};if(u==="postgres"){const _=nc.postgres,B={};if(_.forEach(W=>{const j=P.get(`ducklake_pg_${W.name}`)?.toString();j&&(B[W.name]=j)}),Object.keys(B).length===0)throw new Error("DuckLake requires catalog connection");H.postgresConnection=B}const L=P.get("ducklake_bucketUrl")?.toString();if(!L)throw new Error("DuckLake requires a bucket URL");const M={bucketUrl:L};if(c==="s3"){const _={};if(ty.forEach(B=>{const W=P.get(`ducklake_s3_${B.name}`)?.toString();W&&(_[B.name]=W)}),_.provider==="credential_chain")delete _.accessKeyId,delete _.secretAccessKey,delete _.sessionToken;else{if(delete _.chain,!_.accessKeyId)throw new Error("S3 Access Key ID is required");if(!_.secretAccessKey)throw new Error("S3 Secret Access Key is required")}Object.keys(_).length>0&&(M.s3Connection=_)}else if(c==="gcs"){const _={};if(ny.forEach(B=>{const W=P.get(`ducklake_gcs_${B.name}`)?.toString();W&&(_[B.name]=W)}),!_.keyId)throw new Error("GCS Key ID is required");if(!_.secret)throw new Error("GCS Secret is required");Object.keys(_).length>0&&(M.gcsConnection=_)}A={name:$,type:I,ducklakeConnection:{catalog:H,storage:M}}}else if(I==="duckdb"){if(s.length===0)throw new Error("DuckDB connection must have at least one attached database");const H=s.map((L,M)=>{const _=L.dbType,B=P.get(`attachedDb_${M}_name`)?.toString();if(!B)throw new Error(`Attached database at index ${M} must have a name`);const W={name:B,type:_},j=S0(_);if(j&&j.length>0){const Q={};if(j.forEach(te=>{const X=P.get(`attachedDb_${M}_${te.name}`)?.toString();X&&(Q[te.name]=X)}),_==="s3"){if(Q.provider==="credential_chain")delete Q.accessKeyId,delete Q.secretAccessKey,delete Q.sessionToken;else if(delete Q.chain,!Q.accessKeyId||!Q.secretAccessKey)throw new Error(`Attached database "${B}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const K=fk[_];K&&(W[K]=Q)}return W});A={name:$,type:I,duckdbConnection:{attachedDatabases:H}}}else{const H={};if(F.forEach(L=>{const M=P.get(L.name)?.toString();M&&(H[L.name]=M)}),I==="postgres"){if(!H.connectionString?.trim()){const L=["host","port","databaseName","userName","password"];for(const M of L)if(!H[M])throw new Error(`${F.find(_=>_.name===M)?.label||M} is required`)}}else if(I==="bigquery"){if(!H.serviceAccountKeyJson)throw new Error("Service Account Key JSON is required")}else if(I==="snowflake"){if(!H.account)throw new Error("Account is required");if(!H.username)throw new Error("Username is required");if(!H.warehouse)throw new Error("Warehouse is required");if(!H.password&&!H.privateKey)throw new Error("Either password or private key is required")}else if(I==="trino"){if(!H.server)throw new Error("Server is required");if(!H.user)throw new Error("User is required");if(H.server.trim().startsWith("https://")&&!H.password&&!H.peakaKey)throw new Error("Password is required for HTTPS connections (or use Peaka Key)")}else if(I==="mysql"){const L=["host","port","database","user","password"];for(const M of L)if(!H[M])throw new Error(`${F.find(_=>_.name===M)?.label||M} is required`)}else if(I==="motherduck"){if(!H.accessToken)throw new Error("Access Token is required")}else if(I==="databricks"){if(!H.host)throw new Error("Host is required");if(!H.path)throw new Error("HTTP Path is required");const L=H.oauthClientId&&H.oauthClientSecret;if(!H.token&&!L)throw new Error("Either Access Token or OAuth Client ID + Secret is required")}A={name:$,type:I,[ig[I]]:H}}await e(A),x()},S=()=>{l([...s,{name:"",dbType:"postgres"}])},k=O=>{l(s.filter((P,$)=>$!==O))},T=(O,P)=>{const $=[...s];$[O]={...$[O],dbType:P},l($)};return h.jsxs(hn.Fragment,{children:[h.jsx(Jr,{variant:"contained",color:"primary",startIcon:h.jsx(Wg,{}),onClick:b,children:"Add Connection"}),h.jsxs(El,{open:n,onClose:x,children:[h.jsx(hc,{children:"Create New Connection"}),h.jsxs(Ml,{children:[h.jsx(Ny,{children:"Add a new connection to query your data database using Malloy."}),h.jsxs("form",{onSubmit:w,id:"connection-form",children:[h.jsx(vr,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Connection Name",type:"text",fullWidth:!0,variant:"standard"}),h.jsx(vr,{margin:"dense",id:"type",name:"type",label:"Connection Type",fullWidth:!0,variant:"standard",value:o,select:!0,onChange:O=>a(O.target.value),children:_4.map(O=>h.jsx(Xo,{value:O,children:O},O))}),o==="ducklake"?h.jsxs(Aa,{sx:{mt:2},children:[h.jsxs(Aa,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(gr,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),h.jsx(vr,{margin:"dense",id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,variant:"standard",value:u,select:!0,onChange:O=>f(O.target.value),children:h.jsx(Xo,{value:"postgres",children:"PostgreSQL"})}),u==="postgres"&&h.jsx(h.Fragment,{children:nc.postgres.map(O=>h.jsx(vr,{margin:"dense",id:`ducklake_pg_${O.name}`,name:`ducklake_pg_${O.name}`,label:O.label,type:O.type,fullWidth:!0,variant:"standard"},`pg_${O.name}`))})]}),h.jsxs(Aa,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(gr,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),h.jsxs(vr,{margin:"dense",id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,variant:"standard",value:c,select:!0,onChange:O=>m(O.target.value),children:[h.jsx(Xo,{value:"s3",children:"S3"}),h.jsx(Xo,{value:"gcs",children:"GCS"})]}),h.jsx(vr,{margin:"dense",required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:c==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,variant:"standard"}),c==="s3"&&h.jsxs(h.Fragment,{children:[h.jsx(gr,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),ty.filter(O=>O.visibleWhen?y===O.visibleWhen.value:!0).map(O=>h.jsx(vr,{margin:"dense",id:`ducklake_s3_${O.name}`,name:`ducklake_s3_${O.name}`,label:O.label,type:O.selectOptions?void 0:O.type,fullWidth:!0,variant:"standard",required:O.required,select:!!O.selectOptions,defaultValue:O.selectOptions?y:void 0,onChange:O.name==="provider"?P=>v(P.target.value):void 0,placeholder:O.name==="region"?"us-east-1":void 0,children:O.selectOptions?.map(P=>h.jsx(Xo,{value:P.value,children:P.label},P.value))},`s3_${O.name}`))]}),c==="gcs"&&h.jsxs(h.Fragment,{children:[h.jsx(gr,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),ny.map(O=>h.jsx(vr,{margin:"dense",id:`ducklake_gcs_${O.name}`,name:`ducklake_gcs_${O.name}`,label:O.label,type:O.type,fullWidth:!0,variant:"standard",required:O.required},`gcs_${O.name}`))]})]})]}):o==="duckdb"?h.jsxs(Aa,{sx:{mt:2},children:[h.jsxs(Aa,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsx(gr,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),h.jsx(Jr,{startIcon:h.jsx(Wg,{}),onClick:S,size:"small",variant:"outlined",children:"Add Database"})]}),s.length===0&&h.jsx(gr,{variant:"body2",color:"text.secondary",sx:{mb:2},children:'DuckDB connections require at least one attached database. Click "Add Database" to get started.'}),s.map((O,P)=>{const $=S0(O.dbType);return h.jsxs(Aa,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsxs(Aa,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsxs(gr,{variant:"subtitle2",children:["Database ",P+1]}),h.jsx(cs,{onClick:()=>k(P),size:"small",color:"error",children:h.jsx(B4,{fontSize:"small"})})]}),h.jsx(vr,{margin:"dense",required:!0,id:`attachedDb_${P}_name`,name:`attachedDb_${P}_name`,label:"Database Name",type:"text",fullWidth:!0,variant:"standard",defaultValue:O.name}),h.jsx(vr,{margin:"dense",id:`attachedDb_${P}_type`,name:`attachedDb_${P}_type`,label:"Database Type",fullWidth:!0,variant:"standard",value:O.dbType,select:!0,onChange:I=>T(P,I.target.value),children:Object.values(E5).map(I=>h.jsx(Xo,{value:I,children:I},I))}),$.filter(I=>I.visibleWhen?(O[I.visibleWhen.field]||$.find(F=>F.name===I.visibleWhen?.field)?.selectOptions?.[0]?.value)===I.visibleWhen.value:!0).map(I=>h.jsx(vr,{margin:"dense",id:`attachedDb_${P}_${I.name}`,name:`attachedDb_${P}_${I.name}`,label:I.label,type:I.selectOptions?void 0:I.type,fullWidth:!0,variant:"standard",required:I.required,select:!!I.selectOptions,defaultValue:I.selectOptions?.[0]?.value,onChange:I.selectOptions?F=>{const A=[...s];A[P]={...A[P],[I.name]:F.target.value},l(A)}:void 0,children:I.selectOptions?.map(F=>h.jsx(Xo,{value:F.value,children:F.label},F.value))},I.name))]},P)})]}):nc[o].map(O=>h.jsx(vr,{margin:"dense",id:O.name,name:O.name,label:O.label,type:O.type,fullWidth:!0,variant:"standard",required:O.required},O.name))]})]}),h.jsxs(Tl,{children:[h.jsx(Jr,{disabled:t,onClick:x,children:"Cancel"}),h.jsx(Jr,{type:"submit",form:"connection-form",loading:t,children:"Create Connection"})]})]})]})}function Kge({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(""),u=()=>{a(!0)},f=()=>{a(!1),t()};return h.jsxs(hn.Fragment,{children:[h.jsxs(Xo,{"aria-label":`Delete connection ${e?.name??""}`.trim(),onClick:c=>{c.stopPropagation(),u()},sx:{color:"error.main"},children:[h.jsx(A2,{sx:{color:"inherit"},children:h.jsx(lx,{fontSize:"small"})}),h.jsx(j2,{children:"Delete"})]}),h.jsxs(El,{onClose:f,"aria-labelledby":"customized-dialog-title",open:o,children:[h.jsx(hc,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Connection"}),h.jsx(cs,{"aria-label":"close",onClick:f,sx:c=>({position:"absolute",right:8,top:8,color:c.palette.grey[500]}),children:h.jsx(Rs,{})}),h.jsx(Ml,{dividers:!0,children:h.jsxs(gr,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),h.jsx(Tl,{children:h.jsx(Jr,{loading:n,variant:"contained",autoFocus:!0,onClick:()=>r(),color:"error",children:"Delete"})}),h.jsx($s,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})]})}const $j=new Set(["password","connectionString","privateKey","privateKeyPass","serviceAccountKeyJson","token","oauthClientSecret","accessToken","peakaKey","secret","secretAccessKey","sessionToken","clientSecret","sasUrl"]);function Dj(e){const t=e.duckdbConnection?.attachedDatabases;return!t||t.length===0?[]:t.map(n=>({name:n.name||"",dbType:n.type||"postgres"}))}function Aj(e){const t=e.ducklakeConnection;return t&&t.storage?.gcsConnection?"gcs":"s3"}function Qge({connection:e,onSubmit:t,isSubmitting:n,onCloseDialog:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(e.type),u=hn.useMemo(()=>new Set(e.withheldFields??[]),[e.withheldFields]),[f,c]=C.useState(()=>Dj(e)),[m,y]=C.useState("postgres"),[v,b]=C.useState(()=>Aj(e)),[x,w]=C.useState(()=>e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),S=()=>{c(Dj(e)),l(e.type),w(e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),y("postgres"),b(Aj(e)),a(!0)},k=()=>{a(!1),r?.()},T=async A=>{A.preventDefault();const H=new FormData(A.currentTarget),L=H.get("name")?.toString(),M=H.get("type")?.toString(),_=nc[M];if(!L)throw new Error("Name is required");if(!M)throw new Error("Type is required");let B;if(M==="ducklake"){const W={};if(m==="postgres"){const K=nc.postgres,te={};if(K.forEach(X=>{const J=H.get(`ducklake_pg_${X.name}`)?.toString();J&&(te[X.name]=J)}),Object.keys(te).length===0)throw new Error("DuckLake requires catalog connection");W.postgresConnection=te}const j=H.get("ducklake_bucketUrl")?.toString();if(!j)throw new Error("DuckLake requires a bucket URL");const Q={bucketUrl:j};if(v==="s3"){const K={};ty.forEach(X=>{const J=H.get(`ducklake_s3_${X.name}`)?.toString();J&&(K[X.name]=J)});const te=e.ducklakeConnection?.storage?.s3Connection;if(te&&(!K.provider&&te.provider&&(K.provider=te.provider),!K.chain&&te.chain&&(K.chain=te.chain),!K.accessKeyId&&te.accessKeyId&&(K.accessKeyId=te.accessKeyId)),K.provider==="credential_chain")delete K.accessKeyId,delete K.secretAccessKey,delete K.sessionToken;else if(delete K.chain,!K.accessKeyId)throw new Error("S3 Access Key ID is required");Object.keys(K).length>0&&(Q.s3Connection=K)}else if(v==="gcs"){const K={};ny.forEach(X=>{const J=H.get(`ducklake_gcs_${X.name}`)?.toString();J&&(K[X.name]=J)});const te=e.ducklakeConnection?.storage?.gcsConnection;if(te&&!K.keyId&&te.keyId&&(K.keyId=te.keyId),!K.keyId)throw new Error("GCS Key ID is required");Object.keys(K).length>0&&(Q.gcsConnection=K)}B={name:L,type:M,ducklakeConnection:{catalog:W,storage:Q}}}else if(M==="duckdb"){if(f.length===0)throw new Error("DuckDB connection must have at least one attached database");const W=f.map((j,Q)=>{const K=j.dbType,te=H.get(`attachedDb_${Q}_name`)?.toString();if(!te)throw new Error(`Attached database at index ${Q} must have a name`);const X={name:te,type:K},J=S0(K);if(J&&J.length>0){const ne={};if(J.forEach(se=>{const re=H.get(`attachedDb_${Q}_${se.name}`)?.toString();re&&(ne[se.name]=re)}),K==="s3"){if(ne.provider==="credential_chain")delete ne.accessKeyId,delete ne.secretAccessKey,delete ne.sessionToken;else if(delete ne.chain,!ne.accessKeyId||!ne.secretAccessKey)throw new Error(`Attached database "${te}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const oe=fk[K];oe&&(X[oe]=ne)}return X});B={name:L,type:M,duckdbConnection:{attachedDatabases:W}}}else{const W=e[ig[M]]||{},j={};if(_.forEach(Q=>{const K=H.get(Q.name)?.toString(),te=W[Q.name];K?j[Q.name]=K:$j.has(Q.name)||(K!==void 0?j[Q.name]=K:te&&(j[Q.name]=te))}),M==="postgres"){const Q=["host","port","databaseName","userName"],K=u.has("postgresConnection.connectionString");if(!(j.connectionString?.trim()||K)){const te=Q;for(const X of te)if(!j[X])throw new Error(`${_.find(J=>J.name===X)?.label||X} is required`)}}else if(M==="snowflake"){if(!j.account)throw new Error("Account is required");if(!j.username)throw new Error("Username is required");if(!j.warehouse)throw new Error("Warehouse is required")}else if(M==="trino"){if(!j.server)throw new Error("Server is required");if(!j.user)throw new Error("User is required")}else if(M==="mysql"){const Q=["host","port","database","user"];for(const K of Q)if(!j[K])throw new Error(`${_.find(te=>te.name===K)?.label||K} is required`)}else if(M==="databricks"){if(!j.host)throw new Error("Host is required");if(!j.path)throw new Error("HTTP Path is required")}B={name:L,type:M,[ig[M]]:j}}await t(B),k()},O=()=>{c([...f,{name:"",dbType:"postgres"}])},P=A=>{c(f.filter((H,L)=>L!==A))},$=(A,H)=>{const L=[...f];L[A]={...L[A],dbType:H},c(L)},I=(A,H)=>{const L=e.duckdbConnection?.attachedDatabases;if(!L||!L[A])return"";const M=L[A],_=fk[M.type||""];return _&&M[_]?M[_][H]??"":""},F=A=>{const H=e.ducklakeConnection;if(!H)return"";if(A.startsWith("pg_")){const L=A.replace("pg_","");return H.catalog?.postgresConnection?.[L]??""}if(A==="bucketUrl")return H.storage?.bucketUrl??"";if(A.startsWith("s3_")){const L=A.replace("s3_","");return H.storage?.s3Connection?.[L]??""}if(A.startsWith("gcs_")){const L=A.replace("gcs_","");return H.storage?.gcsConnection?.[L]??""}return""};return h.jsxs(hn.Fragment,{children:[h.jsxs(Xo,{"aria-label":`Edit connection ${e?.name??""}`.trim(),onClick:A=>{A.preventDefault(),A.stopPropagation(),S()},children:[h.jsx(A2,{children:h.jsx(RT,{fontSize:"small"})}),h.jsx(j2,{children:"Edit"})]}),h.jsxs(El,{open:o,onClose:k,children:[h.jsx(hc,{onClick:A=>{A.stopPropagation()},children:"Edit Connection"}),h.jsxs(Ml,{onClick:A=>{A.stopPropagation()},children:[h.jsx(Ny,{children:"Edit a connection to query your data database using Malloy."}),h.jsxs("form",{onSubmit:T,id:"connection-form",children:[h.jsx(vr,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Connection Name",type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),h.jsx(vr,{margin:"dense",id:"type",name:"type",label:"Connection Type",fullWidth:!0,variant:"standard",value:s,select:!0,onChange:A=>l(A.target.value),children:_4.map(A=>h.jsx(Xo,{value:A,children:A},A))}),s==="ducklake"?h.jsxs(Aa,{sx:{mt:2},children:[h.jsxs(Aa,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(gr,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),h.jsx(vr,{margin:"dense",id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,variant:"standard",value:m,select:!0,onChange:A=>y(A.target.value),children:h.jsx(Xo,{value:"postgres",children:"PostgreSQL"})}),m==="postgres"&&h.jsx(h.Fragment,{children:nc.postgres.map(A=>h.jsx(vr,{margin:"dense",id:`ducklake_pg_${A.name}`,name:`ducklake_pg_${A.name}`,label:A.label,type:A.type,fullWidth:!0,variant:"standard",defaultValue:F(`pg_${A.name}`)},`pg_${A.name}`))})]}),h.jsxs(Aa,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(gr,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),h.jsxs(vr,{margin:"dense",id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,variant:"standard",value:v,select:!0,onChange:A=>b(A.target.value),children:[h.jsx(Xo,{value:"s3",children:"S3"}),h.jsx(Xo,{value:"gcs",children:"GCS"})]}),h.jsx(vr,{margin:"dense",required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:v==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,variant:"standard",defaultValue:F("bucketUrl")}),v==="s3"&&h.jsxs(h.Fragment,{children:[h.jsx(gr,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),ty.filter(A=>A.visibleWhen?x===A.visibleWhen.value:!0).map(A=>h.jsx(vr,{margin:"dense",id:`ducklake_s3_${A.name}`,name:`ducklake_s3_${A.name}`,label:A.label,type:A.selectOptions?void 0:A.type,fullWidth:!0,variant:"standard",required:A.required&&A.name!=="secretAccessKey",select:!!A.selectOptions,defaultValue:A.selectOptions?x:F(`s3_${A.name}`),onChange:A.name==="provider"?H=>w(H.target.value):void 0,placeholder:A.name==="region"?"us-east-1":A.name==="secretAccessKey"&&u.has("ducklakeConnection.storage.s3Connection.secretAccessKey")?"Leave empty to keep existing":void 0,children:A.selectOptions?.map(H=>h.jsx(Xo,{value:H.value,children:H.label},H.value))},`s3_${A.name}`))]}),v==="gcs"&&h.jsxs(h.Fragment,{children:[h.jsx(gr,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),ny.map(A=>h.jsx(vr,{margin:"dense",id:`ducklake_gcs_${A.name}`,name:`ducklake_gcs_${A.name}`,label:A.label,type:A.type,fullWidth:!0,variant:"standard",required:A.required&&A.name!=="secret",defaultValue:F(`gcs_${A.name}`),placeholder:A.name==="secret"&&u.has("ducklakeConnection.storage.gcsConnection.secret")?"Leave empty to keep existing":void 0},`gcs_${A.name}`))]})]})]}):s==="duckdb"?h.jsxs(Aa,{sx:{mt:2},children:[h.jsxs(Aa,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsx(gr,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),h.jsx(Jr,{startIcon:h.jsx(Wg,{}),onClick:O,size:"small",variant:"outlined",children:"Add Database"})]}),f.length===0&&h.jsx(gr,{variant:"body2",color:"text.secondary",sx:{mb:2},children:'DuckDB connections require at least one attached database. Click "Add Database" to get started.'}),f.map((A,H)=>{const L=S0(A.dbType);return h.jsxs(Aa,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsxs(Aa,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsxs(gr,{variant:"subtitle2",children:["Database ",H+1]}),h.jsx(cs,{"aria-label":`Remove attached database ${H+1}`,onClick:()=>P(H),size:"small",color:"error",children:h.jsx(B4,{fontSize:"small"})})]}),h.jsx(vr,{margin:"dense",required:!0,id:`attachedDb_${H}_name`,name:`attachedDb_${H}_name`,label:"Database Name",type:"text",fullWidth:!0,variant:"standard",defaultValue:A.name}),h.jsx(vr,{margin:"dense",id:`attachedDb_${H}_type`,name:`attachedDb_${H}_type`,label:"Database Type",fullWidth:!0,variant:"standard",value:A.dbType,select:!0,onChange:M=>$(H,M.target.value),children:Object.values(E5).map(M=>h.jsx(Xo,{value:M,children:M},M))}),L.filter(M=>M.visibleWhen?(A[M.visibleWhen.field]||I(H,M.visibleWhen.field)||L.find(_=>_.name===M.visibleWhen?.field)?.selectOptions?.[0]?.value)===M.visibleWhen.value:!0).map(M=>h.jsx(vr,{margin:"dense",id:`attachedDb_${H}_${M.name}`,name:`attachedDb_${H}_${M.name}`,label:M.label,type:M.selectOptions?void 0:M.type,fullWidth:!0,variant:"standard",required:M.required,select:!!M.selectOptions,defaultValue:I(H,M.name)||M.selectOptions?.[0]?.value,onChange:M.selectOptions?_=>{const B=[...f];B[H]={...B[H],[M.name]:_.target.value},c(B)}:void 0,children:M.selectOptions?.map(_=>h.jsx(Xo,{value:_.value,children:_.label},_.value))},M.name))]},H)})]}):nc[s].map(A=>{const H=e?.[ig[s]??""]?.[A.name??""]??"",L=A.type==="password"||$j.has(A.name),M=u.has(`${ig[s]??""}.${A.name}`);return h.jsx(vr,{margin:"dense",id:A.name,name:A.name,label:A.label,type:A.type,fullWidth:!0,variant:"standard",required:A.required&&!L&&!H,defaultValue:H,placeholder:M?"Leave empty to keep existing":void 0,helperText:L?M?"Stored value is not shown. Leave empty to keep it.":"No value stored.":void 0},A.name)})]})]}),h.jsxs(Tl,{onClick:A=>{A.stopPropagation()},children:[h.jsx(Jr,{disabled:n,onClick:k,children:"Cancel"}),h.jsx(Jr,{type:"submit",form:"connection-form",loading:n,children:"Edit Connection"})]})]})]})}function jj(e,t){return!e||e.type!=="duckdb"?!1:(e.duckdbConnection?.attachedDatabases||[]).some(n=>n.type==="azure"&&n.name===t)}function Xge(e){return e.startsWith("gs://")||e.startsWith("s3://")||e.startsWith("https://")||e.startsWith("abfss://")||e.startsWith("az://")}function Zge({connectionName:e,resourceUri:t,schema:n,connection:r}){const{apiClients:o}=_r(),{environmentName:a}=yo(t),[s,l]=hn.useState(null),[u,f]=hn.useState(n||null),[c,m]=hn.useState(!1),{data:y,isError:v,isLoading:b,error:x}=ho({queryKey:["schemas",a,e],queryFn:()=>o.connections.listSchemas(a,e)}),w=y?.data||[];return h.jsxs(Vi,{container:!0,spacing:1,children:[!n&&h.jsx(Vi,{size:{xs:12,md:4},children:h.jsxs(Ua,{sx:{p:1,m:0},children:[h.jsxs(Ct,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[h.jsx(St,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),h.jsx(yp,{control:h.jsx(hT,{checked:c,onChange:S=>m(S.target.checked)}),label:"Hidden Schemas"})]}),h.jsx(gu,{sx:{mt:"2px"}}),h.jsxs(Ct,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&h.jsx(Jo,{text:"Loading schemas..."}),v&&h.jsx(ca,{error:x,context:`${a} > ${e} > Schemas`}),!b&&!v&&w.length===0&&h.jsx(St,{variant:"body2",children:"No Schemas"}),!b&&!v&&w.length>0&&h.jsx(uT,{dense:!0,disablePadding:!0,children:w.map(S=>{const k=S.name;return S.isHidden&&!c?null:h.jsx(RI,{selected:u===k,onClick:()=>{f(k),l(null)},children:h.jsx(_d,{primary:k})},k)})})]})]})}),h.jsx(Vi,{size:{xs:12,md:n?6:4},children:u&&h.jsx(Ua,{sx:{p:1,m:0},children:h.jsx(tye,{connectionName:e,schemaName:u,onTableSelect:S=>{l(S)},resourceUri:t,connection:r})})}),h.jsx(Vi,{size:{xs:12,md:n?6:4},children:u&&s&&h.jsx(Jge,{environmentName:a,connectionName:e,schemaName:u,tableResource:s})})]})}function Jge({environmentName:e,connectionName:t,schemaName:n,tableResource:r}){const{apiClients:o}=_r(),{data:a,isLoading:s,isError:l,error:u}=ho({queryKey:["connectionTableDetail",e,t,n,r],queryFn:()=>o.connections.getTable(e,t,n,r),enabled:!!n&&!!r}),f={resource:a?.data?.resource??r,columns:a?.data?.columns??[]};return h.jsxs(Ua,{sx:{p:1,m:0},children:[l&&h.jsx(ca,{error:u,context:`${e} > ${t} > ${n} > ${r}`}),!l&&h.jsx(eye,{table:f,loading:s})]})}function eye({table:e,loading:t}){return t?h.jsx(Jo,{text:"Loading columns..."}):h.jsxs(h.Fragment,{children:[h.jsxs(St,{variant:"overline",fontWeight:"bold",sx:{display:"block",wordBreak:"break-all"},children:[e.resource.includes("://")||/\.(parquet|csv|json|tsv|ndjson)$/i.test(e.resource)?"File":"Table",": ",e.resource]}),h.jsx(gu,{}),h.jsx(Ct,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:h.jsx(uK,{children:h.jsxs(vy,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[h.jsx(xy,{children:h.jsxs(vl,{children:[h.jsx(Hn,{children:"NAME"}),h.jsx(Hn,{children:"TYPE"})]})}),h.jsx(by,{children:e.columns?.sort((n,r)=>n.name.localeCompare(r.name))?.map(n=>h.jsxs(vl,{children:[h.jsx(Hn,{children:n.name}),h.jsx(Hn,{children:n.type})]},n.name))})]})})})]})}function tye({connectionName:e,schemaName:t,onTableSelect:n,resourceUri:r,connection:o}){const{environmentName:a}=yo(r),{apiClients:s}=_r(),[l,u]=C.useState(""),{data:f,isSuccess:c,isError:m,error:y,isLoading:v}=ho({queryKey:["tablesInSchema",a,e,t],queryFn:()=>s.connections.listTables(a,e,t)}),b=jj(o,t),x=S=>b?S:S.split(".").pop()||S,w=c&&f?.data?f.data.filter(S=>x(S.resource).toLowerCase().includes(l.toLowerCase())).sort((S,k)=>x(S.resource).localeCompare(x(k.resource))):[];return h.jsxs(h.Fragment,{children:[h.jsx(St,{variant:"overline",fontWeight:"bold",children:Xge(t)||jj(o,t)?`Files in ${t}`:`Tables in ${t}`}),h.jsx(gu,{}),h.jsx(Ct,{sx:{mt:1,mb:1},children:h.jsx(ul,{size:"small",fullWidth:!0,placeholder:"Search tables...",value:l,onChange:S=>u(S.target.value),variant:"outlined"})}),h.jsx(gu,{}),h.jsxs(Ct,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[v&&h.jsx(Jo,{text:"Fetching Tables..."}),m&&h.jsx(ca,{error:y,context:`${a} > ${e} > ${t}`}),c&&w.length===0&&h.jsx(St,{variant:"body2",children:"No Tables"}),c&&f?.data&&f.data.length>0&&h.jsx(uT,{dense:!0,disablePadding:!0,children:w.map(S=>{let k=x(S.resource);return!b&&S.resource.includes("://")&&(k=S.resource.split("/").pop()||S.resource),h.jsx(RI,{onClick:()=>n(S.resource),children:h.jsx(_d,{primary:k,secondary:S.columns.length>0?`${S.columns.length} columns`:void 0})},S.resource)})})]})]})}const nye={bigquery:"BigQuery",snowflake:"Snowflake",postgres:"PostgreSQL",mysql:"MySQL",trino:"Trino",databricks:"Databricks",duckdb:"DuckDB",ducklake:"DuckLake",s3:"S3",gcs:"GCS",azure:"Azure"};function rye(e){return e?nye[e]??e:""}function oye({resourceUri:e}){const{apiClients:t,mutable:n}=_r(),r=is(),{environmentName:o}=yo(e),[a,s]=C.useState(""),[l,u]=C.useState(null),f=fx({environmentName:o,connectionName:l}),{data:c,isSuccess:m,isError:y,error:v}=ho({queryKey:["connections",o],queryFn:()=>t.connections.listConnections(o)}),b=()=>{u(null)},x=Vo({mutationFn:O=>t.environments.updateEnvironment(o,{name:o,connections:[...c.data,O]}),onSuccess(){s("Connection added successfully"),r.invalidateQueries({queryKey:["connections",o]})},onError(O){s(O.message)}}),w=Vo({mutationFn:O=>t.environments.updateEnvironment(o,{name:o,connections:c.data.map(P=>P.name===O.name?O:P)}),onSuccess(O,P){s(`Connection ${P.name} updated successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(O){s(O.message)}}),S=Vo({mutationFn:O=>{if(!O.name)throw new Error("Cannot delete a connection with no name");return t.connections.deleteConnection(o,O.name)},onSuccess(O,P){s(`Connection ${P.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(O){s(O.message)}}),k=m?[...c.data].sort((O,P)=>(O.name??"").localeCompare(P.name??"")):[],T=x.isPending||w.isPending||S.isPending;return h.jsxs(Ct,{children:[h.jsxs(Ct,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",mb:3},children:[h.jsxs(Ct,{children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:"Connections"}),h.jsx(St,{variant:"body2",color:"text.secondary",children:"Database connections available to packages in this environment"})]}),n&&m&&h.jsx(Gge,{onSubmit:O=>x.mutateAsync(O),isSubmitting:x.isPending})]}),!m&&!y&&h.jsx(St,{variant:"body2",color:"text.secondary",children:"Fetching Connections..."}),y&&h.jsx(ca,{error:v,context:`${o} > Connections`}),m&&k.length===0&&h.jsx(St,{variant:"body2",color:"text.secondary",children:"No connections yet."}),m&&k.length>0&&h.jsx(Vi,{container:!0,spacing:2,children:k.map(O=>h.jsx(Vi,{size:{xs:12,sm:6,md:4},children:h.jsx(aye,{connection:O,mutable:n,isMutating:T,onOpenExplorer:()=>u(O.name??null),onEdit:P=>w.mutateAsync(P),onDelete:P=>S.mutateAsync(P)})},O.name))}),h.jsx($s,{open:a!=="",autoHideDuration:6e3,onClose:()=>s(""),message:a}),h.jsxs(Xi,{open:l!==null,onClose:b,maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Ji,{children:["Connection Explorer: ",l,h.jsx(eo,{"aria-label":"close",onClick:b,sx:{position:"absolute",right:8,top:8},children:h.jsx(Ct,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),h.jsx(Zi,{children:l&&h.jsx(Zge,{resourceUri:f,connectionName:l,connection:c?.data?.find(O=>O.name===l)})})]})]})}function aye({connection:e,mutable:t,isMutating:n,onOpenExplorer:r,onEdit:o,onDelete:a}){const[s,l]=C.useState(null),u=!!s,f=m=>{m.stopPropagation(),l(m.currentTarget)},c=()=>{l(null)};return h.jsx(Qp,{variant:"outlined",onClick:r,sx:{height:"100%",cursor:"pointer",borderRadius:3,borderColor:"divider",boxShadow:"none",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:2,borderColor:"primary.main"}},children:h.jsx(Xp,{sx:{p:2.5,"&:last-child":{pb:2.5}},children:h.jsxs(Ct,{sx:{display:"flex",alignItems:"flex-start",gap:1.5},children:[h.jsx(Ct,{sx:{width:36,height:36,borderRadius:1.5,bgcolor:"warning.light",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"warning.main"},children:h.jsx(_ge,{sx:{fontSize:20}})}),h.jsxs(Ct,{sx:{flex:1,minWidth:0},children:[h.jsx(St,{variant:"subtitle1",component:"h6",noWrap:!0,sx:{fontWeight:600,mb:.5},children:e.name}),h.jsx(St,{variant:"body2",color:"text.secondary",noWrap:!0,children:rye(e.type)})]}),t&&h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small",onClick:f,"aria-label":`Connection actions for ${e.name??""}`.trim(),sx:{flexShrink:0,mt:-.5,mr:-.5},children:h.jsx(cx,{fontSize:"small"})}),h.jsxs(Zp,{anchorEl:s,open:u,onClose:c,onClick:m=>m.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[h.jsx(Qge,{connection:e,onSubmit:o,isSubmitting:n,onCloseDialog:c}),h.jsx(Kge,{connection:e,onCloseDialog:c,isMutating:n,onDelete:()=>a(e)})]})]})]})})})}const iye=tr([h.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),h.jsx("path",{d:"M9 12h6v2H9z"},"1")]);function sye({resourceUri:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=_r(),a=is(),[s,l]=C.useState(""),u=()=>{r(!0)},f=()=>{r(!1),t()},{environmentName:c,packageName:m}=yo(e),y=Vo({mutationFn:()=>o.packages.deletePackage(c,m),onSuccess(){f(),a.invalidateQueries({queryKey:["packages"]}),l("Package deleted successfully")},onError(v){l(v instanceof Error?v.message:"An unknown error occurred")}});return h.jsxs(hn.Fragment,{children:[h.jsxs(rc,{onClick:u,children:[h.jsx(yy,{children:h.jsx(lx,{fontSize:"small"})}),h.jsx(_d,{children:"Delete"})]}),h.jsxs(El,{onClose:f,"aria-labelledby":"customized-dialog-title",open:n,children:[h.jsx(hc,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Package"}),h.jsx(cs,{"aria-label":"close",onClick:f,sx:v=>({position:"absolute",right:8,top:8,color:v.palette.grey[500]}),children:h.jsx(Rs,{})}),h.jsx(Ml,{dividers:!0,children:h.jsxs(gr,{gutterBottom:!0,children:['Are you sure you want to delete "',m,'"? This action cannot be undone.']})}),h.jsxs(Tl,{children:[h.jsx(Jr,{variant:"outlined",onClick:f,style:{borderColor:qi.teal,color:qi.teal},children:"Cancel"}),h.jsx(Jr,{variant:"contained",autoFocus:!0,onClick:()=>y.mutate(),color:"error",loading:y.isPending,children:"Delete"})]}),h.jsx($s,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})]})}function lye({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=C.useState(!1),{apiClients:a}=_r(),s=is(),[l,u]=C.useState(""),f=()=>{o(!0)},c=()=>{o(!1),n()},{packageName:m,environmentName:y}=yo(t),v=Vo({async mutationFn(x){return a.packages.updatePackage(y,m,{name:m,description:x.description})},onSuccess(){c(),u("Package updated successfully"),s.invalidateQueries({queryKey:["packages",y]})},onError(x){u(x instanceof Error?x.message:"An unknown error occurred")}}),b=x=>{x.preventDefault();const w=new FormData(x.currentTarget).get("description")?.toString();v.mutate({description:w})};return h.jsxs(hn.Fragment,{children:[h.jsxs(rc,{onClick:f,children:[h.jsx(yy,{children:h.jsx(RT,{fontSize:"small"})}),h.jsx(_d,{children:"Edit"})]}),h.jsxs(El,{open:r,onClose:c,children:[h.jsx(hc,{children:"Edit Package"}),h.jsxs(Ml,{children:[h.jsxs(Ny,{children:['Update the details for "',e.name,'".']}),h.jsxs("form",{onSubmit:b,id:"package-form",children:[h.jsx(vr,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),h.jsx(vr,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,defaultValue:e.description,variant:"standard"})]})]}),h.jsxs(Tl,{children:[h.jsx(Jr,{disabled:v.isPending,onClick:c,children:"Cancel"}),h.jsx(Jr,{type:"submit",form:"package-form",loading:v.isPending,children:"Save Changes"})]})]}),h.jsx($s,{open:l!=="",autoHideDuration:6e3,onClose:()=>u(""),message:l})]})}function cye({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=_r(),{environmentName:r}=yo(t),{data:o,isSuccess:a,isError:s,error:l}=ho({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});if(s)return h.jsx(ca,{error:l,context:`${r} > Packages`});if(!a)return h.jsx(Jo,{text:"Fetching Packages..."});const u=[...o.data].sort((f,c)=>f.name.localeCompare(c.name));return h.jsx(Vi,{container:!0,spacing:2,children:u.map(f=>{const c=fx({environmentName:r,packageName:f.name});return h.jsx(Vi,{size:{xs:12,sm:6,md:4},children:h.jsx(uye,{pkg:f,packageResourceUri:c,onSelectPackage:e})},f.name)})})}function uye({pkg:e,packageResourceUri:t,onSelectPackage:n}){const{mutable:r}=_r(),[o,a]=C.useState(null),s=!!o,l=m=>{n(e.name,m)},u=m=>{m.stopPropagation(),a(m.currentTarget)},f=()=>{a(null)},c=e.description??"";return h.jsx(Qp,{variant:"outlined",onClick:l,sx:{height:"100%",cursor:"pointer",borderRadius:3,borderColor:"divider",boxShadow:"none",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:2,borderColor:"primary.main"}},children:h.jsx(Xp,{sx:{p:2.5,"&:last-child":{pb:2.5}},children:h.jsxs(Ct,{sx:{display:"flex",alignItems:"flex-start",gap:1.5},children:[h.jsx(Ct,{sx:m=>({width:36,height:36,borderRadius:1.5,bgcolor:m.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"grey.100",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"text.primary"}),children:h.jsx(iye,{sx:{fontSize:20}})}),h.jsxs(Ct,{sx:{flex:1,minWidth:0},children:[h.jsx(St,{variant:"subtitle1",component:"h6",noWrap:!0,sx:{fontWeight:600,mb:.5},children:e.name}),h.jsx(xa,{title:c,followCursor:!0,enterDelay:1e3,children:h.jsx(St,{variant:"body2",color:"text.secondary",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",lineHeight:1.5},children:c})})]}),r&&h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small",onClick:u,"aria-label":`Package actions for ${e.name}`,sx:{flexShrink:0,mt:-.5,mr:-.5},children:h.jsx(cx,{fontSize:"small"})}),h.jsxs(Zp,{anchorEl:o,open:s,onClose:f,onClick:m=>m.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[h.jsx(lye,{package:e,resourceUri:t,onCloseDialog:f}),h.jsx(sye,{resourceUri:t,onCloseDialog:f})]})]})]})})})}function Kbe({onSelectPackage:e,resourceUri:t}){const{mutable:n}=_r(),{environmentName:r}=yo(t);return C.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})},[]),h.jsxs(Z0,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:4,py:3},children:[h.jsxs(Ct,{sx:{mb:5},children:[h.jsx(St,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:r}),h.jsx(St,{variant:"body2",color:"text.secondary",children:"Manage packages and database connections in this environment. Open a package to explore its models and notebooks."})]}),h.jsxs(Ct,{sx:{mb:5},children:[h.jsxs(kr,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",sx:{mb:3},children:[h.jsxs(Ct,{children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:"Packages"}),h.jsx(St,{variant:"body2",color:"text.secondary",children:"Published packages available for use in this environment"})]}),n&&h.jsx(Bge,{resourceUri:t})]}),h.jsx(cye,{onSelectPackage:e,resourceUri:t})]}),h.jsx(Ct,{sx:{mb:5},children:h.jsx(oye,{resourceUri:t})}),h.jsx(Ct,{sx:{mb:5},children:h.jsx(zge,{resourceUri:t,onClickPackageFile:e})}),h.jsx(Fge,{resourceUri:t})]})}Ar.extend(OT);const U4=tr(h.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),V4=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[1]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."},H4=(e,t)=>{const n=(e.readme||void 0)?.split(`
437
- `)??[];return n.length===0&&(n.push(`# ${e.name}`),n.push("")),(e.readme?.length??0)>0&&t?n.splice(2,1,t):t&&n.push(t),n.join(`
438
- `)};function dye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=kx();C.useEffect(()=>{if(!o)return;function w(S){S.defaultPrevented||S.key==="Escape"&&r?.(S,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[o,r]);const l=Ft((w,S)=>{r?.(w,S)}),u=Ft(w=>{!r||w==null||s.start(w,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&u(t),s.clear),[o,t,u,s]);const f=w=>{r?.(w,"clickaway")},c=s.clear,m=C.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=w=>S=>{const k=w.onBlur;k?.(S),m()},v=w=>S=>{const k=w.onFocus;k?.(S),c()},b=w=>S=>{const k=w.onMouseEnter;k?.(S),c()},x=w=>S=>{const k=w.onMouseLeave;k?.(S),m()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",c)}},[n,o,m,c]),{getRootProps:(w={})=>{const S={...oi(e),...oi(w)};return{role:"presentation",...w,...S,onBlur:y(S),onFocus:v(S),onMouseEnter:b(S),onMouseLeave:x(S)}},onClickAway:f}}function Nj(e){return e.substring(2).toLowerCase()}function fye(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function pye(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),u=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=pr(rh(t),l),m=Ft(b=>{const x=f.current;f.current=!1;const w=Io(l.current);if(!u.current||!l.current||"clientX"in b&&fye(b,w))return;if(s.current){s.current=!1;return}let S;b.composedPath?S=b.composedPath().includes(l.current):S=!w.documentElement.contains(b.target)||l.current.contains(b.target),!S&&(n||!x)&&o(b)}),y=b=>x=>{f.current=!0;const w=t.props[b];w&&w(x)},v={ref:c};return a!==!1&&(v[a]=y(a)),C.useEffect(()=>{if(a!==!1){const b=Nj(a),x=Io(l.current),w=()=>{s.current=!0};return x.addEventListener(b,m),x.addEventListener("touchmove",w),()=>{x.removeEventListener(b,m),x.removeEventListener("touchmove",w)}}},[m,a]),r!==!1&&(v[r]=y(r)),C.useEffect(()=>{if(r!==!1){const b=Nj(r),x=Io(l.current);return x.addEventListener(b,m),()=>{x.removeEventListener(b,m)}}},[m,r]),C.cloneElement(t,v)}function hye(e){return tn("MuiSnackbarContent",e)}Kt("MuiSnackbarContent",["root","message","action"]);const mye=e=>{const{classes:t}=e;return Zt({root:["root"],action:["action"],message:["message"]},hye,t)},gye=Fe(Hd,{name:"MuiSnackbarContent",slot:"Root"})(qn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(OC(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:OC(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),yye=Fe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),vye=Fe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bye=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:s="alert",...l}=n,u=n,f=mye(u);return h.jsxs(gye,{role:s,elevation:6,className:It(f.root,o),ownerState:u,ref:t,...l,children:[h.jsx(yye,{className:f.message,ownerState:u,children:a}),r?h.jsx(vye,{className:f.action,ownerState:u,children:r}):null]})});function xye(e){return tn("MuiSnackbar",e)}Kt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Sye=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Et(n.vertical)}${Et(n.horizontal)}`]};return Zt(r,xye,t)},wye=Fe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Et(n.anchorOrigin.vertical)}${Et(n.anchorOrigin.horizontal)}`]]}})(qn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Cye=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiSnackbar"}),r=Tu(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:f,className:c,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:v=!1,message:b,onBlur:x,onClose:w,onFocus:S,onMouseEnter:k,onMouseLeave:T,open:O,resumeHideDuration:P,slots:$={},slotProps:I={},TransitionComponent:F,transitionDuration:A=o,TransitionProps:{onEnter:H,onExited:L,...M}={},..._}=n,B={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:u,disableWindowBlurListener:v,TransitionComponent:F,transitionDuration:A},W=Sye(B),{getRootProps:j,onClickAway:Q}=dye({...B}),[K,te]=C.useState(!0),X=$e=>{te(!0),L&&L($e)},J=($e,fe)=>{te(!1),H&&H($e,fe)},ne={slots:{transition:F,...$},slotProps:{content:y,clickAwayListener:m,transition:M,...I}},[oe,se]=cr("root",{ref:t,className:[W.root,c],elementType:wye,getSlotProps:j,externalForwardedProps:{...ne,..._},ownerState:B}),[re,{ownerState:ie,...ce}]=cr("clickAwayListener",{elementType:pye,externalForwardedProps:ne,getSlotProps:$e=>({onClickAway:(...fe)=>{const Te=fe[0];$e.onClickAway?.(...fe),!Te?.defaultMuiPrevented&&Q(...fe)}}),ownerState:B}),[me,ye]=cr("content",{elementType:bye,shouldForwardComponentProp:!0,externalForwardedProps:ne,additionalProps:{message:b,action:a},ownerState:B}),[we,Ce]=cr("transition",{elementType:_g,externalForwardedProps:ne,getSlotProps:$e=>({onEnter:(...fe)=>{$e.onEnter?.(...fe),J(...fe)},onExited:(...fe)=>{$e.onExited?.(...fe),X(...fe)}}),additionalProps:{appear:!0,in:O,timeout:A,direction:s==="top"?"down":"up"},ownerState:B});return!O&&K?null:h.jsx(re,{...ce,...$.clickAwayListener&&{ownerState:ie},children:h.jsx(oe,{...se,children:h.jsx(we,{...Ce,children:f||h.jsx(me,{...ye})})})})});function Ij(){const[e,t]=C.useState(!1),{apiClients:n}=_r(),[r,o]=C.useState(""),a=()=>{t(!0)},s=()=>{t(!1)},l=is(),u=Vo({async mutationFn(c){return n.environments.createEnvironment({name:c.name,readme:H4({name:c.name,readme:""},c.description)})},onSuccess(){s(),l.invalidateQueries({queryKey:["environments"]}),o("Environment created successfully")},onError(c){o(c instanceof Error?c.message:"An unknown error occurred")}}),f=async c=>{c.preventDefault();const m=new FormData(c.currentTarget),y=m.get("name")?.toString(),v=m.get("description")?.toString();if(!y)throw new Error("Name is required");u.mutate({name:y,description:v})};return h.jsxs(hn.Fragment,{children:[h.jsx(Jr,{variant:"contained",onClick:a,startIcon:h.jsx(VJ,{}),sx:{mt:2},children:"Create New Environment"}),h.jsxs(El,{open:e,onClose:s,children:[h.jsx(hc,{children:"Create New Environment"}),h.jsxs(Ml,{children:[h.jsx(Ny,{children:"Add a new environment to start exploring semantic models and analyzing data."}),h.jsxs("form",{onSubmit:f,id:"environment-form",children:[h.jsx(vr,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Environment Name",type:"text",fullWidth:!0,variant:"standard"}),h.jsx(vr,{margin:"dense",id:"description",name:"description",label:"Environment Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,variant:"standard"})]})]}),h.jsxs(Tl,{children:[h.jsx(Jr,{disabled:u.isPending,onClick:s,children:"Cancel"}),h.jsx(Jr,{type:"submit",form:"environment-form",loading:u.isPending,children:"Create Environment"})]})]}),h.jsx(Cye,{open:r!=="",autoHideDuration:6e3,onClose:()=>o(""),message:r})]})}function kye({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=_r(),a=is(),[s,l]=C.useState(""),u=()=>{r(!0)},f=()=>{r(!1),t()},c=Vo({mutationFn:()=>o.environments.deleteEnvironment(e.name),onSuccess(){f(),a.invalidateQueries({queryKey:["environments"]}),l("Environment deleted successfully")},onError(m){l(m instanceof Error?m.message:"An unknown error occurred")}});return h.jsxs(hn.Fragment,{children:[h.jsxs(rc,{onClick:u,children:[h.jsx(yy,{children:h.jsx(lx,{fontSize:"small"})}),h.jsx(_d,{children:"Delete"})]}),h.jsxs(El,{onClose:f,"aria-labelledby":"customized-dialog-title",open:n,children:[h.jsx(hc,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Environment"}),h.jsx(cs,{"aria-label":"close",onClick:f,sx:m=>({position:"absolute",right:8,top:8,color:m.palette.grey[500]}),children:h.jsx(Rs,{})}),h.jsx(Ml,{dividers:!0,children:h.jsxs(gr,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),h.jsxs(Tl,{children:[h.jsx(Jr,{variant:"outlined",onClick:f,style:{borderColor:qi.teal,color:qi.teal},children:"Cancel"}),h.jsx(Jr,{loading:c.isPending,variant:"contained",autoFocus:!0,onClick:()=>c.mutate(),color:"error",children:"Delete"})]}),h.jsx($s,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})]})}function Tye({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=_r(),a=is(),[s,l]=C.useState(""),u=()=>{r(!0)},f=()=>{r(!1),t()},c=Vo({async mutationFn(y){return o.environments.updateEnvironment(e.name,{name:e.name,readme:H4({name:e.name,readme:e.readme},y.description)})},onSuccess(){f(),a.invalidateQueries({queryKey:["environments"]}),l("Environment updated successfully")},onError(y){l(y instanceof Error?y.message:"An unknown error occurred")}}),m=y=>{y.preventDefault();const v=new FormData(y.currentTarget).get("description")?.toString();c.mutate({description:v})};return h.jsxs(hn.Fragment,{children:[h.jsxs(rc,{onClick:u,children:[h.jsx(yy,{children:h.jsx(RT,{fontSize:"small"})}),h.jsx(_d,{children:"Edit"})]}),h.jsxs(El,{open:n,onClose:f,children:[h.jsx(hc,{children:"Edit Environment"}),h.jsxs(Ml,{children:[h.jsx(Ny,{children:"Edit this environment's description."}),h.jsxs("form",{onSubmit:m,id:"environment-form",children:[h.jsx(vr,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Environment Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),h.jsx(vr,{margin:"dense",id:"description",name:"description",label:"Environment Description",type:"text",fullWidth:!0,variant:"standard",defaultValue:V4(e.readme)})]})]}),h.jsxs(Tl,{children:[h.jsx(Jr,{disabled:c.isPending,onClick:f,children:"Cancel"}),h.jsx(Jr,{type:"submit",form:"environment-form",loading:c.isPending,children:"Save Changes"})]})]}),h.jsx($s,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})}const Mye=[{title:"Ad-hoc analysis",body:"Browse the semantic sources on this server and build nested queries in Explorer. Every click writes valid Malloy, so metrics stay correct even across joins.",href:sl.explorer},{title:"Notebooks",body:"A data story: markdown and live query cells in one file, versioned beside the model it reads. Any givens it imports become a panel of filter controls above the cells.",href:sl.surfaces},{title:"Dashboards",body:"A tagged Malloy file is the page. Tags lay out the grid, the filter row is rendered from the query's parameters, and a tagged dimension clicks through to a detail page. No front-end code.",href:sl.dashboards},{title:"Data apps",body:"Hand-author an HTML page in a package's public directory and Publisher serves it, backed by that package's models. No build step, and it embeds in a host page.",href:sl.dataApps},{title:"AI data agents",body:"One MCP endpoint. Agents discover the sources, compile-check the Malloy they write, and ask well-formed questions instead of guessing at raw tables.",href:sl.mcpAgents},{title:"Governed access",body:"Runtime parameters, row-level filters, and per-source access gates are declared in the model, so every surface reads the same rules rather than reimplementing them.",href:sl.givens}];function hb({href:e,children:t}){return h.jsx(Ct,{component:"a",href:e,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary",textDecoration:"underline"},children:t})}function Qbe({onClickEnvironment:e}){const{apiClients:t,mutable:n,server:r}=_r(),{data:o,isSuccess:a,isError:s,error:l}=ho({queryKey:["environments"],queryFn:()=>t.environments.listEnvironments()});if(s)return h.jsx(ca,{error:l,context:"Environments List"});if(!a)return h.jsx(Jo,{text:"Loading environments..."});const u=o.data??[];return h.jsxs(Z0,{maxWidth:"md",sx:{py:6},children:[h.jsxs(Ct,{sx:{mb:5},children:[h.jsx(St,{variant:"h3",component:"h1",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Publisher"}),h.jsx(St,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"The open-source semantic model server for the Malloy data language."}),h.jsx(St,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6},children:"Define semantic models once and use them everywhere. Publisher serves Malloy models over a REST API and a single MCP endpoint, so applications, BI tools, and AI agents compose queries against the model instead of writing SQL, and the numbers come back right by construction."})]}),h.jsx(Vi,{container:!0,spacing:4,sx:{mb:5},children:Mye.map(f=>h.jsx(Vi,{size:{xs:12,sm:6},children:h.jsxs(kr,{spacing:1,children:[h.jsx(St,{variant:"body2",component:"a",href:f.href,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,color:"text.primary",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:f.title}),h.jsx(St,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6},children:f.body})]})},f.title))}),h.jsx(gu,{sx:{my:4}}),u.length>0?h.jsxs(Ct,{sx:{mb:4},children:[h.jsxs(kr,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",sx:{mb:3},children:[h.jsxs(Ct,{children:[h.jsx(St,{variant:"h5",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:.5},children:"Environments"}),h.jsx(St,{variant:"body2",color:"text.secondary",children:"Published environments available on this server"})]}),n&&h.jsx(Ij,{})]}),h.jsx(Vi,{container:!0,spacing:2,children:u.map(f=>h.jsx(Vi,{size:{xs:12,sm:6,md:4},children:h.jsx(Eye,{environment:f,onClickEnvironment:e})},f.name))})]}):h.jsxs(Ct,{sx:{mb:4},children:[h.jsx(St,{variant:"h5",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Get started"}),h.jsx(St,{variant:"body2",color:"text.secondary",sx:{mb:3,maxWidth:600},children:"Create your first Malloy environment to start exploring semantic models and building data experiences."}),n?h.jsx(Ij,{}):h.jsx(wo,{variant:"contained",color:"primary",href:sl.publishing,target:"_blank",rel:"noopener noreferrer",children:"Learn how to create models"})]}),h.jsx(gu,{sx:{my:4}}),h.jsxs(St,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6},children:["Also here:"," ",h.jsx(hb,{href:sl.connections,children:"connections"})," to BigQuery, Snowflake, Postgres, MySQL, Trino, DuckDB and more;"," ",h.jsx(hb,{href:sl.materialization,children:"materialized tables"})," ","built on demand or on a schedule; and a"," ",h.jsx(hb,{href:`${$2(r)}/api-doc.html`,children:"REST API"})," ","that does everything this console does."]}),h.jsxs(St,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6,mt:2},children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",h.jsx(hb,{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute."]})]})}function Eye({environment:e,onClickEnvironment:t}){const{mutable:n}=_r(),[r,o]=C.useState(null),a=!!r,s=V4(e.readme),l=c=>{e.name&&t&&t(`/${e.name}/`,c)},u=c=>{c.stopPropagation(),o(c.currentTarget)},f=()=>{o(null)};return h.jsx(Qp,{variant:"outlined",onClick:l,sx:{height:"100%",cursor:"pointer",borderRadius:3,borderColor:"divider",boxShadow:"none",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:2,borderColor:"primary.main"}},children:h.jsx(Xp,{sx:{p:2.5,"&:last-child":{pb:2.5}},children:h.jsxs(Ct,{sx:{display:"flex",alignItems:"flex-start",gap:1.5},children:[h.jsx(Ct,{sx:c=>({width:36,height:36,borderRadius:1.5,bgcolor:c.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"grey.100",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"text.primary"}),children:h.jsx(U4,{sx:{fontSize:20}})}),h.jsxs(Ct,{sx:{flex:1,minWidth:0},children:[h.jsx(St,{variant:"subtitle1",component:"h6",noWrap:!0,sx:{fontWeight:600,mb:.5},children:e.name}),h.jsx(xa,{title:s,followCursor:!0,enterDelay:1e3,children:h.jsx(St,{variant:"body2",color:"text.secondary",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",lineHeight:1.5},children:s})})]}),n&&h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small",onClick:u,"aria-label":`Environment actions for ${e.name}`,sx:{flexShrink:0,mt:-.5,mr:-.5},children:h.jsx(cx,{fontSize:"small"})}),h.jsxs(Zp,{anchorEl:r,open:a,onClose:f,onClick:c=>c.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[h.jsx(Tye,{environment:e,onCloseDialog:f}),h.jsx(kye,{environment:e,onCloseDialog:f})]})]})]})})})}const W4=tr(h.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),w0=tr(h.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),Rye=tr(h.jsx("path",{d:"M8 5v14l11-7z"})),Rw={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},Oye={...Rw,patterns:[...Rw.patterns,{include:"#docvar"}],repository:{...Rw.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},Pye={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},$ye="github-light",Dye="github-dark";let Ow;function Aye(){return Ow||(Ow=(async()=>{const[{createHighlighterCore:e},{createOnigurumaEngine:t},{default:n},{default:r},{default:o},{default:a},{default:s}]=await Promise.all([jo(()=>import("./core-B8oMW4sm.es-hOkwvru5.js"),__vite__mapDeps([7,8])),jo(()=>import("./engine-oniguruma-C4vnmooL.es-jdkXmgTr.js"),[]),jo(()=>import("./sql-DCkt643-.es-COK4E0Yg.js"),[]),jo(()=>import("./json-71t8ZF9g.es-BQoSv7ci.js"),[]),jo(()=>import("./typescript-buWNZFwO.es-Dj6nwHGl.js"),[]),jo(()=>import("./github-light-JYsPkUQd.es-DAi9KRSo.js"),[]),jo(()=>import("./github-dark-DenFmJkN.es-DHJKELXO.js"),[])]);return e({engine:t(jo(()=>import("./wasm-DQxwEHae.es-CG6Dc4jp.js"),[])),themes:[a,s],langs:[n,r,o,{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...Oye},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...Pye}]})})()),Ow}async function pk(e,t,n="light"){return(await Aye()).codeToHtml(e,{lang:t,theme:n==="dark"?Dye:$ye})}function q4({open:e,onClose:t,result:n,title:r="Results",renderLogs:o,drill:a}){return h.jsxs(Xi,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[h.jsxs(Ji,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,h.jsx(eo,{onClick:t,sx:{color:"text.secondary"},children:h.jsx(Rs,{})})]}),h.jsx(Zi,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:h.jsx(f2,{result:n,maxHeight:Xfe,maxResultSize:1e6,renderLogs:o,drill:a})})]})}function jye({queryName:e,annotations:t,resourceUri:n,runOnDemand:r=!1,maxResultSize:o=0}){const[a,s]=hn.useState(),[l,u]=hn.useState(!1),[f,c]=hn.useState(!1),{packageName:m,environmentName:y,versionId:v,modelPath:b}=yo(n),x=!r||f,w=d2({environmentName:y,packageName:m,modelPath:b,versionId:v,queryName:e},{enabled:x}),S=w.data,{mode:k}=ku();return C.useEffect(()=>{if(t&&t.length>0){const T=t.map(O=>`// ${O}`).join(`
439
- `);pk(T,"typescript",k).then(O=>{s(O)})}},[t,k]),h.jsxs(Ct,{children:[a&&h.jsx(Ct,{sx:{marginBottom:"16px"},children:h.jsx(St,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:h.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:a}})})}),h.jsxs(Ct,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[h.jsx(St,{variant:"body2",sx:{fontSize:"15px",fontWeight:600,color:"text.primary",px:2,py:1,bgcolor:"action.hover",borderRadius:1.5,border:1,borderColor:"divider"},children:e}),h.jsx(wp,{"aria-label":"Expand results",onClick:()=>u(!0),children:h.jsx(w0,{})})]}),h.jsxs(Jm,{sx:{position:"relative"},children:[r&&!f&&h.jsxs(Ct,{sx:{padding:"40px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[h.jsx(St,{variant:"body2",color:"text.secondary",children:"Click Run to execute the query"}),h.jsx(wo,{variant:"contained",startIcon:h.jsx(Rye,{}),onClick:()=>c(!0),children:"Run Query"})]}),x&&h.jsx(p2,{state:w,context:e,maxHeight:Qfe,maxResultSize:o})]}),h.jsx(q4,{open:l,onClose:()=>u(!1),result:S?.data?.result||"",renderLogs:S?.data?.renderLogs,title:`Query: ${e}`})]})}function Xbe({onChange:e,resourceUri:t,runOnDemand:n=!1,maxResultSize:r=0}){const{modelPath:o}=yo(t),{data:a,isError:s,isLoading:l,error:u}=h2(t),[f,c]=hn.useState(!1),[m,y]=hn.useState(),[v,b]=hn.useState(0),[x,w]=C.useState(""),S=a?.modelDef,k=hn.useMemo(()=>{if(!S)return!1;try{const $=JSON.parse(S);return Array.isArray($.imports)&&$.imports.length>0}catch{return!1}},[S]);if(l)return h.jsx(Jo,{text:"Fetching Model..."});if(s)return console.log("error",u),h.jsx(ca,{error:u,context:`Model > ${o}`});const T=$=>{y($),e&&e($)},O=$=>{b($)},P=()=>{const $=window.location.href;navigator.clipboard.writeText($).then(()=>w("URL copied to clipboard!")).catch(()=>w("Failed to copy URL"))};return h.jsxs(h.Fragment,{children:[h.jsxs(Ct,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(a?.sourceInfos)&&a.sourceInfos.length>0&&h.jsxs(kr,{spacing:2,component:"section",children:[h.jsxs(Ct,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[h.jsx(St,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),h.jsx(xa,{title:"Click to copy link",children:h.jsx(W4,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer"},onClick:P})})]}),h.jsx(Uz,{data:a,onChange:T,onSourceChange:O,existingQuery:m,initialSelectedSourceIndex:v,resourceUri:t}),h.jsx(wp,{"aria-label":"Expand results",sx:{position:"absolute",top:"90px",right:"4px",zIndex:2},onClick:()=>c(!0),children:h.jsx(w0,{})})]}),a?.queries?.length>0&&h.jsxs(kr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[h.jsx(Ct,{sx:{padding:"0 0 16px 0"},children:h.jsx(St,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),a.queries.map($=>h.jsx(jye,{queryName:$.name,annotations:$.annotations,resourceUri:t,runOnDemand:n,maxResultSize:r},$.name))]}),(!Array.isArray(a?.sourceInfos)||a.sourceInfos.length===0)&&!(a?.queries&&a.queries.length>0)&&h.jsxs(Ct,{sx:{textAlign:"center",py:6},children:[h.jsx(St,{variant:"body1",sx:{color:"text.secondary",marginBottom:"8px"},children:"This model exposes no sources or queries."}),k&&h.jsxs(St,{variant:"body2",color:"text.secondary",children:["It imports other files but re-exports nothing. Add"," ",h.jsxs("code",{children:["export ","{ source_name }"]})," to surface imported sources here."]})]}),h.jsx(m2,{open:f,onClose:()=>c(!1),resourceUri:t,data:a,title:`Model: ${o.split("/").pop()}`,existingQuery:m,initialSelectedSourceIndex:v,onChange:T,onSourceChange:O})]}),h.jsx($s,{open:x!=="",autoHideDuration:6e3,onClose:()=>w(""),message:x})]})}function Nye({ready:e,lastRunKey:t,pendingKey:n,runKey:r,documentKey:o}){if(!e)return{cancelPending:n!==void 0,dispatch:"none"};const a=n!==void 0&&n!==r;if(t===r)return{cancelPending:a,dispatch:"none"};if(n===r)return{cancelPending:a,dispatch:"none"};const s=t===null||!t.startsWith(`${o}|`);return{cancelPending:a,dispatch:s?"now":"settle"}}function Iye(e){return C.useMemo(()=>{if(!e?.sources?.length)return[];const t=new Map;for(const n of e.sources)if(n.givens?.length)for(const r of n.givens)r.name&&!t.has(r.name)&&t.set(r.name,r);return Array.from(t.values())},[e])}const Lye=tr(h.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),zye=tr(h.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function Fye(e){const{environmentName:t,packageName:n}=yo(e.resourceUri);if(!t||!n)throw new Error("Environment and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Bye({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,index:o,maxResultSize:a,isExecuting:s,pendingRerun:l,onNavigate:u,onDrillSelf:f,canDrillSelf:c,onDrillNavigate:m}){const[y,v]=hn.useState(!1),[b,x]=hn.useState(!1),[w,S]=hn.useState(!1),[k,T]=hn.useState(),[O,P]=hn.useState(),[$,I]=hn.useState(!1),[F,A]=C.useState(""),{environmentName:H,packageName:L,modelPath:M}=yo(r),_={environmentName:H,packageName:L,sourcePath:M,onNavigate:u},{drill:B,drillMenu:W}=Z5({onNavigate:m,onSelf:f,canSelf:c,selfLabel:"Filter this notebook"}),j=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,Q=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,K=re=>re.split(`
440
- `).filter(ie=>!ie.trimStart().startsWith("##")).join(`
441
- `),te=!!e.text&&(j.test(e.text)||Q.test(e.text)),X=()=>{if(!e.newSources||e.newSources.length===0)return 0;let re=[],ie="";if(e.text){const ce=e.text.match(j);ce&&(re=ce[1].split(",").map(ye=>ye.trim()));const me=e.text.match(Q);me&&(ie=me[1].trim())}for(let ce=0;ce<e.newSources.length;ce++)try{const me=JSON.parse(e.newSources[ce]);if(re.length>0&&re.includes(me.name)||ie&&ie===me.path)return ce}catch{continue}return 0},J=e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r}:void 0,ne=Fye({query:e.text,resourceUri:r}),{mode:oe}=ku();C.useEffect(()=>{e.type==="code"&&pk(K(e.text),"malloy",oe).then(re=>{T(re)})},[e,oe]),C.useEffect(()=>{pk(ne,"typescript",oe).then(re=>{P(re)})},[ne,oe]);const se=()=>{const re=window.location.href;navigator.clipboard.writeText(re).then(()=>A("URL copied to clipboard!")).catch(()=>A("Failed to copy URL"))};return e.type==="markdown"&&h.jsx(Ct,{children:h.jsxs(Ct,{children:[o===0?h.jsxs(kr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[h.jsx(m0,{variant:"document",links:_,children:e.text}),h.jsx(xa,{title:"Click to copy link",children:h.jsx(W4,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer",marginTop:"26px"},onClick:se})})]}):h.jsx(m0,{variant:"document",links:_,children:e.text}),h.jsx($s,{open:F!=="",autoHideDuration:6e3,onClose:()=>A(""),message:F})]})})||e.type==="code"&&h.jsxs(Ct,{children:[(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&h.jsx(kr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"2px"},children:e.newSources&&e.newSources.length>0&&h.jsx(Jm,{sx:{position:"relative",padding:"0"},children:h.jsxs(Ct,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[k&&h.jsx("span",{dangerouslySetInnerHTML:{__html:k},style:{fontFamily:"monospace",fontSize:"14px",flex:1,marginRight:"8px"}}),te&&h.jsx(wp,{"aria-label":"Data sources",sx:{flexShrink:0},onClick:()=>I(!0),children:h.jsx(w0,{})})]})})}),h.jsx(m2,{open:$,onClose:()=>I(!1),title:"Data Sources",hasValidImport:te,resourceUri:r,data:J,initialSelectedSourceIndex:X()}),h.jsxs(Xi,{open:y,onClose:()=>v(!1),maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Ji,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",h.jsx(eo,{onClick:()=>v(!1),sx:{color:"text.secondary"},children:h.jsx(Rs,{})})]}),h.jsx(Zi,{children:h.jsx(Ct,{sx:re=>({border:`1px solid ${re.palette.divider}`,borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:re.palette.background.paper,color:re.palette.text.primary}),children:h.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:k}})})})]}),h.jsxs(Xi,{open:b,onClose:()=>x(!1),maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Ji,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",h.jsx(eo,{onClick:()=>x(!1),sx:{color:"text.secondary"},children:h.jsx(Rs,{})})]}),h.jsx(Zi,{children:h.jsxs(kr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[h.jsx(St,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:O}}),h.jsx(xa,{title:"Copy Embeddable Code",children:h.jsx(eo,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"text.secondary"},onClick:()=>{navigator.clipboard.writeText(ne)},children:h.jsx(zye,{})})})]})})]}),h.jsx(q4,{open:w,onClose:()=>S(!1),result:e.result||"",title:"Results",drill:B}),s&&!e.result&&!e.error&&!te&&!(e.newSources&&e.newSources.length>0)&&h.jsx(Jm,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:h.jsx(py,{size:32})}),!e.result&&e.error&&h.jsxs(Jm,{sx:{p:2},children:[h.jsx(St,{variant:"body2",sx:{color:"error.main"},children:"This cell could not be run."}),h.jsx(St,{variant:"body2",component:"pre",sx:{color:"text.secondary",whiteSpace:"pre-wrap",m:0,mt:1},children:e.error})]}),e.result&&l&&h.jsx(nY,{"aria-label":"a re-run is pending",sx:{mb:1,height:2,borderRadius:1}}),e.result&&h.jsxs(Jm,{sx:{position:"relative"},children:[h.jsx(Ct,{sx:{paddingTop:"24px"},children:h.jsx(f2,{result:e.result,maxHeight:Kfe,maxResultSize:a,drill:B})}),W,h.jsxs(kr,{sx:{position:"absolute",top:"-12px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&h.jsx(wp,{"aria-label":"Malloy code",onClick:re=>{re.stopPropagation(),v(!0)},children:h.jsx(Lye,{})}),h.jsx(wp,{"aria-label":"Expand results",onClick:()=>S(!0),children:h.jsx(w0,{})})]})]})]})}const _ye=4,Uye=400;function Vye(e){const t=e?.response?.data?.message;return typeof t=="string"&&t!==""?t:e instanceof Error&&e.message!==""?e.message:"The server did not say why."}function Hye({resourceUri:e,maxResultSize:t=0,givens:n,onGivensChange:r,onNavigate:o,onDrillNavigate:a}){const{apiClients:s}=_r(),{environmentName:l,packageName:u,versionId:f,modelPath:c}=yo(e),{data:m,isSuccess:y,isError:v,error:b}=ho({queryKey:[e],queryFn:async()=>(await s.notebooks.getNotebook(l,u,c,f)).data}),[x,w]=C.useState([]),[S,k]=C.useState(!1),[T,O]=C.useState(!1),P=C.useRef(void 0),[$,I]=C.useState(null),F=Iye(m),A=m?.autorun!==!1,H=X5({specs:F,loaded:y,startingValues:m?.startingGivens,params:n,onGivensChange:r,documentKey:e,autorun:A,environmentName:l,packageName:u,modelPath:c,versionId:f,documentName:c}),{applied:L,declaredTypes:M,canSelf:_,onSelf:B}=H,W=C.useCallback(se=>{const re=dx(se,M);return Object.keys(re).length>0?JSON.stringify(re):void 0},[M]),j=C.useRef(0),Q=C.useRef(null),K=C.useRef(null),te=C.useRef(void 0);C.useEffect(()=>()=>{Q.current?.abort(),K.current=null,clearTimeout(te.current?.timer),te.current=void 0},[]);const X=C.useCallback(async(se=new Map)=>{if(!y||!m?.notebookCells)return;const re=++j.current;Q.current?.abort();const ie=new AbortController;Q.current=ie,w(m.notebookCells.map(me=>({...me}))),k(!0),I(null);const ce=W(se);try{const me=[];for(let we=0;we<m.notebookCells.length;we++){const Ce=m.notebookCells[we];if(Ce.type==="markdown")continue;const $e=we,fe=async()=>{try{const Te=await s.notebooks.executeNotebookCell(l,u,c,$e,f,void 0,void 0,ce,{signal:ie.signal});if(j.current!==re)return;const nt=Te.data,ze=nt.result,Ae=Ce.newSources||nt.newSources;w(ue=>{const bt=[...ue];return bt[$e]||(bt[$e]={...Ce}),bt[$e]={...bt[$e],result:ze,newSources:Ae},bt})}catch(Te){if(ie.signal.aborted||j.current!==re)return;console.error(`Error executing cell ${$e}:`,Te);const nt=Vye(Te);w(ze=>{const Ae=[...ze];return Ae[$e]||(Ae[$e]={...Ce}),Ae[$e]={...Ae[$e],error:nt},Ae})}};me.push(fe)}const ye=[];for(const we of me){const Ce=we().then(()=>{ye.splice(ye.indexOf(Ce),1)});ye.push(Ce),ye.length>=_ye&&await Promise.race(ye)}await Promise.all(ye)}catch(me){if(ie.signal.aborted||j.current!==re)return;console.error("Error executing notebook cells:",me),I(me)}finally{j.current===re&&(k(!1),Q.current=null)}},[y,m,W,l,u,c,f,s.notebooks]),J=C.useRef(0),ne=C.useRef(void 0);ne.current!==m&&(ne.current=m,J.current+=1);const oe=J.current;return C.useEffect(()=>{const se=`${e}|${oe}`,re=`${se}|${W(L)??""}`;P.current!==void 0&&P.current!==se&&(Q.current?.abort(),Q.current=null),P.current=se;const ie=Nye({ready:y&&!!m?.notebookCells,lastRunKey:K.current,pendingKey:te.current?.key,runKey:re,documentKey:se});if(ie.cancelPending&&(clearTimeout(te.current?.timer),te.current=void 0,O(!1)),ie.dispatch==="none")return;const ce=()=>{te.current=void 0,O(!1),K.current=re,X(L)};if(ie.dispatch==="now"){ce();return}O(!0),te.current={key:re,timer:setTimeout(ce,Uye)}},[y,m,oe,e,L,W,X]),h.jsx(gZ,{children:h.jsx(yZ,{children:h.jsxs(kr,{spacing:3,component:"section",children:[h.jsx(Fz,{...H.panel}),!y&&!v&&h.jsx(Jo,{text:"Fetching Notebook..."}),y&&(x.length>0?x:m?.notebookCells||[]).map((se,re)=>h.jsx(Bye,{cell:se,index:re,resourceUri:e,maxResultSize:t,isExecuting:S,pendingRerun:T,onNavigate:o,onDrillNavigate:a,onDrillSelf:F.length>0?B:void 0,canDrillSelf:_},re)),v&&b.status===404&&h.jsxs(St,{variant:"body2",sx:{color:"text.secondary"},children:[h.jsx("code",{children:`${l} > ${u} > ${c}`})," ","not found."]}),v&&b.status!==404&&h.jsx(ca,{error:b,context:`${l} > ${u} > ${c}`}),$&&h.jsx(ca,{error:{message:$.message,status:500,name:"ExecutionError"},context:"Notebook Execution"})]})})})}const Wye={dashboard:qi.orange,report:qi.teal,model:qi.darkBlue,dataApp:JS.violet,data:JS.moss,materialization:JS.magenta};function qye({type:e,size:t=18,sx:n,...r}){return h.jsx(i0,{...r,viewBox:"0 0 24 24",sx:{width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",...n},children:Yye[e]()})}const Yye={report:Gye,model:Kye,data:Qye,materialization:Xye,dataApp:Jye,dashboard:Zye};function Gye(){return h.jsxs(h.Fragment,{children:[h.jsx("path",{d:"M14 3 H6 a2 2 0 0 0 -2 2 v14 a2 2 0 0 0 2 2 h12 a2 2 0 0 0 2 -2 V9 z"}),h.jsx("path",{d:"M14 3 v4 a2 2 0 0 0 2 2 h4"}),h.jsx("path",{d:"M8 17 v-3"}),h.jsx("path",{d:"M12 17 v-6"}),h.jsx("path",{d:"M16 17 v-4"})]})}function Kye(){return h.jsxs(h.Fragment,{children:[h.jsx("path",{d:"M12 3 L4 7 v10 l8 4 l8 -4 V7 z"}),h.jsx("path",{d:"M4 7 l8 4 l8 -4"}),h.jsx("path",{d:"M12 11 v10"})]})}function Qye(){return h.jsxs(h.Fragment,{children:[h.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"2"}),h.jsx("path",{d:"M3.5 9.5 H20.5"}),h.jsx("path",{d:"M9.5 3.5 V20.5"})]})}function Xye(){return h.jsxs(h.Fragment,{children:[h.jsx("path",{d:"M12 3 L21 7.5 L12 12 L3 7.5 Z"}),h.jsx("path",{d:"M3 12 L12 16.5 L21 12"}),h.jsx("path",{d:"M3 16.5 L12 21 L21 16.5"})]})}function Zye(){return h.jsxs(h.Fragment,{children:[h.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"2"}),h.jsx("path",{d:"M3.5 9.5 H20.5"}),h.jsx("path",{d:"M12 9.5 V20.5"}),h.jsx("path",{d:"M12 15 H20.5"})]})}function Jye(){return h.jsxs(h.Fragment,{children:[h.jsx("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),h.jsx("path",{d:"M3.5 9.5 H20.5"}),h.jsx("path",{d:"M7 13.5 H17"}),h.jsx("path",{d:"M7 16.5 H13"})]})}const Lj="README.malloynb";function Zbe({onClickPackageFile:e,resourceUri:t}){const{apiClients:n,server:r}=_r(),o=e??(L=>{window.location.href=L}),{environmentName:a,packageName:s,versionId:l}=yo(t),[u,f]=C.useState(null),c=ho({queryKey:["package",a,s,l],queryFn:()=>n.packages.getPackage(a,s,l,!1)}),m=ho({queryKey:["notebooks",a,s,l],queryFn:()=>n.notebooks.listNotebooks(a,s,l)}),y=ho({queryKey:["models",a,s,l],queryFn:()=>n.models.listModels(a,s,l)}),v=ho({queryKey:["databases",a,s,l],queryFn:()=>n.databases.listDatabases(a,s,l)}),b=ho({queryKey:["data-apps",a,s],queryFn:async()=>{try{return await n.dataApps.listDataApps(a,s)}catch(L){const M=L?.response?.status;if(M===404||M===void 0)return{data:[]};throw L}}}).data?.data??[],x=ho({queryKey:["dashboards",a,s,l],queryFn:async()=>{try{return await n.dashboards.listDashboards(a,s,l)}catch(L){const M=L?.response?.status;if(M===404||M===void 0)return{data:[]};throw L}}}),w=L=>L.title&&L.title!==L.name?L.title:L.name??"",S=L=>L.title&&L.title!==L.path?L.title:L.path??"",k=(x.data?.data??[]).slice().sort((L,M)=>w(L).localeCompare(w(M))),T=(m.data?.data??[]).slice().sort((L,M)=>S(L).localeCompare(S(M))),O=new Set(k.map(L=>L.path).filter(L=>L!==void 0)),P=(y.data?.data??[]).slice().filter(L=>!O.has(L.path)).sort((L,M)=>L.path.localeCompare(M.path)),$=(v.data?.data??[]).slice().sort((L,M)=>L.path.localeCompare(M.path)),I=c.data?.data?.description??"",F=T.some(L=>L.path===Lj),A=fx({environmentName:a,packageName:s,versionId:l,modelPath:Lj}),H=!m.isSuccess&&!m.isError||!x.isSuccess&&!x.isError;return c.isError?h.jsx(ca,{error:c.error,context:`${a} > ${s}`}):h.jsxs(Z0,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[h.jsxs(Ct,{sx:{mb:4},children:[h.jsxs(cT,{onClick:L=>o(`/${a}/`,L),underline:"none",sx:{display:"inline-flex",alignItems:"center",gap:.5,cursor:"pointer",color:"text.secondary",fontSize:"0.875rem",mb:2,"&:hover":{color:"primary.main"}},children:[h.jsx(M4,{sx:{fontSize:18}}),"Back to ",a]}),h.jsx(St,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:s}),I&&h.jsx(St,{variant:"body2",color:"text.secondary",children:I})]}),H&&h.jsx(Jo,{text:"Loading package..."}),!H&&h.jsxs(h.Fragment,{children:[x.isError&&h.jsx(Ct,{sx:{mb:4},children:h.jsx(cp,{severity:"warning",children:"Could not list this package's dashboards, so any it has are missing from this page."})}),k.length>0&&h.jsx(rp,{title:"Dashboards",count:k.length,children:k.map(L=>{const M=!!L.title&&L.title!==L.name;return h.jsx(op,{type:"dashboard",label:M?L.title:L.name,rightLabel:M?L.name:void 0,onClick:_=>o(`/${a}/${s}/dashboards/`+encodeURIComponent(L.name??""),_)},L.name)})}),h.jsxs(rp,{title:"Notebooks",count:T.length,children:[T.map(L=>{const M=!!L.title&&L.title!==L.path;return h.jsx(op,{type:"report",label:M?L.title:L.path,rightLabel:M?L.path:void 0,onClick:_=>o(`/${a}/${s}/${L.path}`,_)},L.path)}),T.length===0&&h.jsx(Pw,{label:"No notebooks"})]}),b.length>0&&h.jsx(rp,{title:"Data Apps",count:b.length,children:b.map(L=>{const M=!!L.title&&L.title!==L.path,_=`${$2(r)}${L.resource}`;return h.jsx(op,{type:"dataApp",label:M?L.title:L.path,rightLabel:M?L.path:void 0,onClick:B=>{e?e(`/${a}/${s}/data-apps/${L.path}`,B):B&&(B.metaKey||B.ctrlKey)?window.open(_,"_blank"):window.location.href=_},trailingAction:h.jsx(xa,{title:"Open standalone in new tab",children:h.jsx(eo,{size:"small",href:_,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",onClick:B=>B.stopPropagation(),sx:{color:"text.secondary"},children:h.jsx(T4,{fontSize:"small"})})})},L.path)})}),h.jsxs(rp,{title:"Semantic Models",count:P.length,children:[P.map(L=>h.jsx(op,{type:"model",label:L.path,onClick:M=>o(`/${a}/${s}/${L.path}`,M)},L.path)),P.length===0&&h.jsx(Pw,{label:"No models"})]}),h.jsxs(rp,{title:"Package Data",count:$.length,children:[$.map(L=>h.jsx(op,{type:"data",label:L.path,rightLabel:L.info?eve(L.info.rowCount):"Unreadable",onClick:()=>f(L)},L.path)),$.length===0&&h.jsx(Pw,{label:"No data files"})]}),h.jsx(rp,{title:"Materializations",children:h.jsx(op,{type:"materialization",label:"Materializations",onClick:L=>o(`/${a}/${s}/materializations`,L)})}),F&&h.jsx(Ct,{sx:{mt:6},children:h.jsx(Hye,{resourceUri:A,onNavigate:o})})]}),h.jsxs(Xi,{open:u!==null,onClose:()=>f(null),maxWidth:"sm",fullWidth:!0,children:[h.jsxs(Ji,{sx:{pr:6},children:[u?.path,h.jsx(eo,{"aria-label":"close",onClick:()=>f(null),sx:{position:"absolute",right:8,top:8},children:h.jsx(Rs,{fontSize:"small"})})]}),h.jsxs(Zi,{children:[u?.error&&h.jsx(St,{variant:"body2",color:"error",children:u.error}),u?.info?.columns&&h.jsxs(vy,{size:"small",children:[h.jsx(xy,{children:h.jsxs(vl,{children:[h.jsx(Hn,{children:"Column"}),h.jsx(Hn,{children:"Type"})]})}),h.jsx(by,{children:u.info.columns.map(L=>h.jsxs(vl,{children:[h.jsx(Hn,{component:"th",scope:"row",children:L.name}),h.jsx(Hn,{children:L.type})]},L.name))})]})]})]})]})}function rp({title:e,count:t,children:n}){return h.jsxs(Ct,{sx:{mb:4},children:[h.jsxs(kr,{direction:"row",alignItems:"baseline",spacing:1,sx:{mb:1},children:[h.jsx(St,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:e}),t!==void 0&&h.jsxs(St,{variant:"caption",color:"text.secondary",children:["(",t,")"]})]}),h.jsx(Ct,{children:n})]})}function op({type:e,label:t,rightLabel:n,onClick:r,trailingAction:o}){const a=!!r;return h.jsxs(Ct,{onClick:r,onKeyDown:a?s=>{r&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),r(s))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,sx:s=>({display:"flex",alignItems:"center",gap:1.5,py:1,px:1,mx:-1,cursor:a?"pointer":"default",borderRadius:1.5,transition:"background-color 0.1s","&:hover":a?{backgroundColor:s.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"grey.100"}:void 0,"&:focus-visible":a?{outline:"2px solid",outlineColor:"primary.main",outlineOffset:2}:void 0}),children:[h.jsx(Ct,{sx:{width:32,height:32,borderRadius:1,bgcolor:Wye[e],color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:h.jsx(qye,{type:e})}),h.jsx(St,{variant:"body2",sx:{fontFamily:di,flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t}),n&&h.jsx(St,{variant:"caption",color:"text.secondary",sx:{flexShrink:0},children:n}),o&&h.jsx(Ct,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:o})]})}function Pw({label:e}){return h.jsx(St,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:e})}function eve(e){return e>=1e9?`${(e/1e9).toFixed(1)} B rows`:e>=1e6?`${(e/1e6).toFixed(1)} M rows`:e>=1e3?`${(e/1e3).toFixed(1)} K rows`:`${e} rows`}function tve(e){return tn("MuiCollapse",e)}Kt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const nve=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Zt(r,tve,n)},rve=Fe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(qn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ove=Fe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ave=Fe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ry=C.forwardRef(function(e,t){const n=Vn({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:f,onEnter:c,onEntered:m,onEntering:y,onExit:v,onExited:b,onExiting:x,orientation:w="vertical",style:S,timeout:k=uL.standard,TransitionComponent:T=ls,...O}=n,P={...n,orientation:w,collapsedSize:s},$=nve(P),I=Tu(),F=kx(),A=C.useRef(null),H=C.useRef(),L=typeof s=="number"?`${s}px`:s,M=w==="horizontal",_=M?"width":"height",B=C.useRef(null),W=pr(t,B),j=se=>re=>{if(se){const ie=B.current;re===void 0?se(ie):se(ie,re)}},Q=()=>A.current?A.current[M?"clientWidth":"clientHeight"]:0,K=j((se,re)=>{A.current&&M&&(A.current.style.position="absolute"),se.style[_]=L,c&&c(se,re)}),te=j((se,re)=>{const ie=Q();A.current&&M&&(A.current.style.position="");const{duration:ce,easing:me}=zp({style:S,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const ye=I.transitions.getAutoHeightDuration(ie);se.style.transitionDuration=`${ye}ms`,H.current=ye}else se.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;se.style[_]=`${ie}px`,se.style.transitionTimingFunction=me,y&&y(se,re)}),X=j((se,re)=>{se.style[_]="auto",m&&m(se,re)}),J=j(se=>{se.style[_]=`${Q()}px`,v&&v(se)}),ne=j(b),oe=j(se=>{const re=Q(),{duration:ie,easing:ce}=zp({style:S,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const me=I.transitions.getAutoHeightDuration(re);se.style.transitionDuration=`${me}ms`,H.current=me}else se.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;se.style[_]=L,se.style.transitionTimingFunction=ce,x&&x(se)});return h.jsx(T,{in:f,onEnter:K,onEntered:X,onEntering:te,onExit:J,onExited:ne,onExiting:oe,addEndListener:se=>{k==="auto"&&F.start(H.current||0,se),r&&r(B.current,se)},nodeRef:B,timeout:k==="auto"?null:k,...O,children:(se,{ownerState:re,...ie})=>h.jsx(rve,{as:l,className:It($.root,a,{entered:$.entered,exited:!f&&L==="0px"&&$.hidden}[se]),style:{[M?"minWidth":"minHeight"]:L,...S},ref:W,ownerState:{...P,state:se},...ie,children:h.jsx(ove,{ownerState:{...P,state:se},className:$.wrapper,ref:A,children:h.jsx(ave,{ownerState:{...P,state:se},className:$.wrapperInner,children:o})})})})});ry&&(ry.muiSupportAuto=!0);const ive=C.createContext(null),ah=()=>{const e=C.useContext(ive);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
442
- `));return e},sve=({props:e})=>{const{instance:t}=ah(),{label:n,itemId:r}=e,[o,a]=C.useState(n),s=t.isItemBeingEdited(r);return C.useEffect(()=>{s||a(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:l,interactions:u})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:f=>{l.onChange?.(f),a(f.target.value)},onKeyDown:f=>{if(l.onKeyDown?.(f),f.defaultMuiPrevented)return;const c=f.target;f.key==="Enter"&&c.value?u.handleSaveItemLabel(f,c.value):f.key==="Escape"&&u.handleCancelItemLabelEditing(f)},onBlur:f=>{l.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&u.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},gl=({instance:e,state:t,setState:n,params:r})=>{const o=C.useRef(t.editedItemId),a=m=>o.current===m,s=m=>{n(y=>ke({},y,{editedItemId:m})),o.current=m},l=m=>m===t.editedItemId,u=!!r.isItemEditable,f=m=>{if(m==null||!u)return!1;const y=e.getItem(m);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},c=(m,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",m].join(`
443
- `));n(v=>{const b=v.items.itemMetaMap[m];return b.label!==y?ke({},v,{items:ke({},v.items,{itemMetaMap:ke({},v.items.itemMetaMap,{[m]:ke({},b,{label:y})})})}):v}),r.onItemLabelChange&&r.onItemLabelChange(m,y)};return{instance:{setEditedItemId:s,isItemBeingEdited:l,updateItemLabel:c,isItemEditable:f,isTreeViewEditable:u,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:c}}};gl.itemPlugin=sve;gl.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return ke({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};gl.getInitialState=()=>({editedItemId:null});gl.params={onItemLabelChange:!0,isItemEditable:!0};const Tp=(e,t)=>e.getAvailablePlugins().has(t),Y4=e=>Array.isArray(e)?e.length>0&&e.some(Y4):!!e,lve=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=ah(),a={expandable:Y4(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},s=c=>{if(a.disabled)return;a.focused||n.focusItem(c,e);const m=r&&(c.shiftKey||c.ctrlKey||c.metaKey);a.expandable&&!(m&&n.isItemExpanded(e))&&n.toggleItemExpansion(c,e)},l=c=>{a.disabled||(!a.focused&&!a.editing&&n.focusItem(c,e),r&&(c.shiftKey||c.ctrlKey||c.metaKey)?c.shiftKey?n.expandSelectionRange(c,e):n.selectItem({event:c,itemId:e,keepExistingSelection:!0}):n.selectItem({event:c,itemId:e,shouldBeSelected:!0}))},u=c=>{const m=c.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(c,e):n.selectItem({event:c,itemId:e,keepExistingSelection:r,shouldBeSelected:c.target.checked})},f=()=>{Tp(n,gl)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:l,handleCheckboxSelection:u,toggleItemEditing:f,handleSaveItemLabel:(c,m)=>{Tp(n,gl)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(c,e))},handleCancelItemLabelEditing:c=>{Tp(n,gl)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(c,e))}},status:a,publicAPI:o}},cve=C.createContext(()=>-1),zj=(e,t)=>t!==e.closest('*[role="treeitem"]'),uve=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,dve=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:s},expansion:{expansionTrigger:l},treeId:u,instance:f,publicAPI:c}=ah(),m=C.useContext(cve),{id:y,itemId:v,label:b,children:x,rootRef:w}=e,{rootRef:S,contentRef:k,propsEnhancers:T}=t(e),{interactions:O,status:P}=lve({itemId:v,children:x}),$=C.useRef(null),I=C.useRef(null),F=pr(w,S,$),A=pr(k,I),H=C.useRef(null),L=uve({itemId:v,treeId:u,id:y}),M=f.canItemBeTabbed(v)?0:-1,_={rootRefObject:$,contentRefObject:I,interactions:O},B=ne=>oe=>{if(ne.onFocus?.(oe),oe.defaultMuiPrevented)return;const se=!P.disabled||r;!P.focused&&se&&oe.currentTarget===oe.target&&f.focusItem(oe,v)},W=ne=>oe=>{if(ne.onBlur?.(oe),oe.defaultMuiPrevented)return;const se=f.getItemDOMElement(v);P.editing||oe.relatedTarget&&zj(oe.relatedTarget,se)&&(oe.target&&oe.target?.dataset?.element==="labelInput"&&zj(oe.target,se)||oe.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},j=ne=>oe=>{ne.onKeyDown?.(oe),!(oe.defaultMuiPrevented||oe.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(oe,v)},Q=ne=>oe=>{ne.onDoubleClick?.(oe),!oe.defaultMuiPrevented&&O.toggleItemEditing()},K=ne=>oe=>{ne.onClick?.(oe),n?.(oe,v),!(oe.defaultMuiPrevented||H.current?.contains(oe.target))&&(l==="content"&&O.handleExpansion(oe),s||O.handleSelection(oe))},te=ne=>oe=>{ne.onMouseDown?.(oe),!oe.defaultMuiPrevented&&(oe.shiftKey||oe.ctrlKey||oe.metaKey||P.disabled)&&oe.preventDefault()},X=ne=>oe=>{ne.onChange?.(oe),!oe.defaultMuiPrevented&&(a||P.disabled||O.handleCheckboxSelection(oe))},J=ne=>oe=>{ne.onClick?.(oe),!oe.defaultMuiPrevented&&l==="iconContainer"&&O.handleExpansion(oe)};return{getRootProps:(ne={})=>{const oe=ke({},oi(e),oi(ne));let se;P.selected?se=!0:a||P.disabled?se=void 0:se=!1;const re=ke({},oe,{ref:F,role:"treeitem",tabIndex:M,id:L,"aria-expanded":P.expandable?P.expanded:void 0,"aria-selected":se,"aria-disabled":P.disabled||void 0},ne,{onFocus:B(oe),onBlur:W(oe),onKeyDown:j(oe)});o&&(re.style={"--TreeView-itemDepth":typeof m=="function"?m(v):m});const ie=T.root?.(ke({},_,{externalEventHandlers:oe}))??{};return ke({},re,ie)},getContentProps:(ne={})=>{const oe=oi(ne),se=ke({},oe,ne,{ref:A,onClick:K(oe),onMouseDown:te(oe),status:P});o&&(se.indentationAtItemLevel=!0);const re=T.content?.(ke({},_,{externalEventHandlers:oe}))??{};return ke({},se,re)},getGroupTransitionProps:(ne={})=>{const oe=oi(ne),se=ke({},oe,{unmountOnExit:!0,component:"ul",role:"group",in:P.expanded,children:x},ne);return o&&(se.indentationAtItemLevel=!0),se},getIconContainerProps:(ne={})=>{const oe=oi(ne);return ke({},oe,ne,{onClick:J(oe)})},getCheckboxProps:(ne={})=>{const oe=oi(ne);return ke({},oe,{visible:s,ref:H,checked:P.selected,disabled:a||P.disabled,tabIndex:-1},ne,{onChange:X(oe)})},getLabelProps:(ne={})=>{const oe=ke({},oi(ne)),se=ke({},oe,{children:b},ne,{onDoubleClick:Q(oe)});return f.isTreeViewEditable&&(se.editable=P.editable),se},getLabelInputProps:(ne={})=>{const oe=oi(ne),se=T.labelInput?.({rootRefObject:$,contentRefObject:I,externalEventHandlers:oe,interactions:O})??{};return ke({},ne,se)},getDragAndDropOverlayProps:(ne={})=>{const oe=oi(ne),se=T.dragAndDropOverlay?.(ke({},_,{externalEventHandlers:oe}))??{};return ke({},ne,se)},rootRef:F,status:P,publicAPI:c}},fve=dve;function pve(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:s}}=ah(),l=t.isItemExpandable(e),u=t.isItemExpanded(e),f=t.isItemFocused(e),c=t.isItemSelected(e),m=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,v=t.isItemEditable?t.isItemEditable(e):!1,b=T=>{if(!m){f||t.focusItem(T,e);const O=r&&(T.shiftKey||T.ctrlKey||T.metaKey);l&&!(O&&t.isItemExpanded(e))&&t.toggleItemExpansion(T,e)}},x=T=>{m||(!f&&!y&&t.focusItem(T,e),r&&(T.shiftKey||T.ctrlKey||T.metaKey)?T.shiftKey?t.expandSelectionRange(T,e):t.selectItem({event:T,itemId:e,keepExistingSelection:!0}):t.selectItem({event:T,itemId:e,shouldBeSelected:!0}))},w=T=>{if(a||m)return;const O=T.nativeEvent.shiftKey;r&&O?t.expandSelectionRange(T,e):t.selectItem({event:T,itemId:e,keepExistingSelection:r,shouldBeSelected:T.target.checked})},S=T=>{(T.shiftKey||T.ctrlKey||T.metaKey||m)&&T.preventDefault()},k=()=>{Tp(t,gl)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:u,selected:c,focused:f,editable:v,editing:y,disableSelection:a,checkboxSelection:o,handleExpansion:b,handleSelection:x,handleCheckboxSelection:w,handleContentClick:n,preventSelection:S,expansionTrigger:s,toggleItemEditing:k,handleSaveItemLabel:(T,O)=>{Tp(t,gl)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,O),k(),t.focusItem(T,e))},handleCancelItemLabelEditing:T=>{Tp(t,gl)&&t.isItemBeingEditedRef(e)&&(k(),t.focusItem(T,e))}}}const hve=Fe("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lg(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:Oo(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function mve(e){return e.action==null?null:h.jsx(hve,ke({},e))}const gve=Fe("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>ke({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),yve=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],vve=C.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:s,label:l,itemId:u,onClick:f,onMouseDown:c,dragAndDropOverlayProps:m,labelInputProps:y}=e,v=Fn(e,yve),{disabled:b,expanded:x,selected:w,focused:S,editing:k,editable:T,disableSelection:O,checkboxSelection:P,handleExpansion:$,handleSelection:I,handleCheckboxSelection:F,handleContentClick:A,preventSelection:H,expansionTrigger:L,toggleItemEditing:M}=pve(u),_=s||a||o,B=C.useRef(null),W=K=>{H(K),c&&c(K)},j=K=>{A?.(K,u),!B.current?.contains(K.target)&&(L==="content"&&$(K),P||I(K),f&&f(K))},Q=K=>{K.defaultMuiPrevented||M()};return h.jsxs("div",ke({},v,{className:It(n.root,r,x&&n.expanded,w&&n.selected,S&&n.focused,b&&n.disabled,k&&n.editing,T&&n.editable),onClick:j,onMouseDown:W,ref:t,children:[h.jsx("div",{className:n.iconContainer,children:_}),P&&h.jsx(D2,{className:n.checkbox,checked:w,onChange:F,disabled:b||O,ref:B,tabIndex:-1}),k?h.jsx(gve,ke({},y,{className:n.labelInput})):h.jsx("div",ke({className:n.label},T&&{onDoubleClick:Q},{children:l})),m&&h.jsx(mve,ke({},m))]}))}),ec=Kt("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),bve=tr(h.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),xve=tr(h.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function G4(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=ah();return r({children:t,itemId:n,instance:o})}G4.propTypes={children:rt.node,itemId:rt.string.isRequired};Fe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0});Fe(vve,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${ec.iconContainer}`]:t.iconContainer},t.label&&{[`& .${ec.label}`]:t.label}],shouldForwardProp:e=>cu(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ec.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ec.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ec.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ec.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ec.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ec.label}`]:ke({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${ec.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]}));Fe(ry,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>cu(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});function Sve(e){const{slots:t,slotProps:n,status:r}=e,o=ah(),a=ke({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??bve,collapseIcon:o.icons.slots.collapseIcon??xve}),s=o.icons.slotProps;let l;t?.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const u=t?.[l]??a[l],f=br({elementType:u,externalSlotProps:c=>ke({},Lp(s[l],c),Lp(n?.[l],c)),ownerState:{}});return u?h.jsx(u,ke({},f)):null}const wve=["visible"],Cve=Fe("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),kve=Fe("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>cu(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Oo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),Tve=Fe("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>cu(e)&&e!=="editable"})(({theme:e})=>ke({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Mve=Fe("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Fe(ry,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>cu(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Fe(C.forwardRef((e,t)=>{const{visible:n}=e,r=Fn(e,wve);return n?h.jsx(D2,ke({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});Kt("MuiRichTreeView",["root"]);Fe("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});const Eve=tr([h.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),h.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Rve=tr(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),Ove=tr(h.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),Pve=tr(h.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"})),$ve=Cme(ry);function Dve(e){const t=cme({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return h.jsx($ve,{style:t,...e})}function Ave({item:e,...t}){const n=h.jsxs(Tve,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&h.jsx(U4,{})||e.fileType==="notebook"&&h.jsx(Eve,{})||e.fileType==="model"&&h.jsx(Pve,{})||e.fileType=="database"&&h.jsx(Ove,{})||h.jsx(Rve,{}),h.jsx(St,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?h.jsx(xa,{title:e.error,placement:"right",children:n}):n}C.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:s,...l}=e,{getRootProps:u,getContentProps:f,getLabelProps:c,getIconContainerProps:m,getGroupTransitionProps:y,status:v,publicAPI:b}=fve({id:n,itemId:r,children:a,label:o,disabled:s,rootRef:t}),x=b.getItem(r);return v.selected=!1,v.focused=!1,h.jsx(G4,{itemId:r,children:h.jsxs(Cve,{...u(l),children:[h.jsxs(kve,{...f(),...x.link&&{onClick:w=>x.link(w)},sx:{pointerEvents:!x.selectable&&"none"},children:[h.jsx(Mve,{...m(),children:h.jsx(Sve,{status:v})}),h.jsx(Ave,{...c({item:x})})]}),a&&h.jsx(Dve,{...y()})]})})});const hk={name:"Local",description:"Stored in this browser only",writeable:!0},mk="publisher:document:";class jve{async listWorkspaces(t){return[hk]}async listDocuments(t,n){if(t.name!==hk.name)return[];const r=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o),s=a===null?void 0:Nve(a);s&&(n===void 0||s.type===n)&&r.push(s)}return r}async getDocument(t){const n=localStorage.getItem(Ym(t));if(n===null)throw Fj(t);return n}async saveDocument(t,n){localStorage.setItem(Ym(t),n)}async deleteDocument(t){const n=Ym(t);if(localStorage.getItem(n)===null)throw Fj(t);localStorage.removeItem(n)}async moveDocument(t,n){const r=await this.getDocument(t);localStorage.setItem(Ym(n),r),localStorage.removeItem(Ym(t))}}function Ym(e){return`${mk}${e.type}:${e.path}`}function Nve(e){if(!e.startsWith(mk))return;const t=e.slice(mk.length),n=t.indexOf(":");if(n<=0)return;const r=t.slice(0,n);if(!(r!=="dashboard"&&r!=="notebook"))return{workspace:hk.name,type:r,path:t.slice(n+1)}}function Fj(e){return new Error(`No ${e.type} at ${e.workspace}/${e.path}`)}const Eo={white:"#FFFFFF",offWhite:"#F8F8F6",grey:{light:"#E6E4E1",mid:"#91908F"},black:"#30302E",semantic:{success:{main:"#7A9461",light:"#E8EDDF",dark:"#5F7A4B"},warning:{main:"#B5943A",light:"#F3ECDA",dark:"#8E7430"},error:{main:"#BF6050",light:"#F2DDD9",dark:"#9C4D40"},info:{main:"#628698",light:"#DDE6EA",dark:"#4D6B79"}}},Jbe='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',mb='"Inter", "Helvetica Neue", "Arial", sans-serif',Di={50:Eo.offWhite,100:"#F4F3F1",200:Eo.grey.light,300:"#D4D2CF",400:"#B3B1AF",500:Eo.grey.mid,600:"#73726F",700:"#555450",800:"#424140",900:Eo.black},e0e={headerHeight:56},$w="0 1px 3px rgba(0, 0, 0, 0.1)",Ive="#0f172a",Lve="#1e293b",zve="#f1f5f9",Fve="#cbd5e1",Bve="#334155",K4=(e="light")=>{const t=e==="dark",n=t?Ive:Eo.white,r=t?Lve:Eo.white,o=t?zve:Eo.black,a=t?Fve:Eo.grey.mid,s=t?Bve:Eo.grey.light,l=t?"#334155":"#555450",u=t?"#475569":"#73726f";return U0({cssVariables:{nativeColor:!0},palette:{mode:e,primary:{main:l,light:Eo.grey.light,dark:u,contrastText:"#ffffff"},secondary:{main:Eo.grey.mid,light:Eo.grey.light,dark:Eo.black},grey:Di,success:Eo.semantic.success,warning:Eo.semantic.warning,error:Eo.semantic.error,info:Eo.semantic.info,background:{default:n,paper:r},text:{primary:o,secondary:a},divider:s},typography:{fontFamily:mb,h1:{fontWeight:500,letterSpacing:"-0.025em"},h2:{fontWeight:500,letterSpacing:"-0.025em"},h3:{fontWeight:500,letterSpacing:"-0.025em"},h4:{fontWeight:500,letterSpacing:"-0.025em"},h5:{fontWeight:500,letterSpacing:"-0.025em"},h6:{fontWeight:500,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiCssBaseline:{styleOverrides:{"*":{scrollbarWidth:"thin",scrollbarColor:t?"#475569 #1e293b":`${Di[300]} ${Di[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:t?"#1e293b":Di[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:t?"#475569":Di[300],borderRadius:"4px","&:hover":{background:t?"#64748b":Di[400]}},"&::-webkit-scrollbar-corner":{background:t?"#1e293b":Di[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:20,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:$w}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}},outlined:{color:o,borderColor:t?"#475569":Di[300],"&:hover":{borderColor:t?"#64748b":Di[400],backgroundColor:t?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:$w,border:"1px solid",borderColor:s,backgroundColor:r}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4},"& .MuiInputLabel-outlined":{backgroundColor:r,paddingLeft:4,paddingRight:4,"&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"}}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiSelect:{styleOverrides:{select:{fontFamily:mb,fontSize:"0.875rem",color:a}}},MuiInputLabel:{styleOverrides:{root:{"&.MuiInputLabel-outlined":{backgroundColor:r,paddingLeft:4,paddingRight:4}}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{border:"none"},root:{border:`1px solid ${s}`,borderRadius:8,transition:"border-color 120ms ease-in",backgroundColor:r,"&:hover":{borderColor:t?"#475569":Di[300]},"&.Mui-focused":{borderColor:t?"#64748b":Di[400],outline:"none"}}}},MuiMenuItem:{styleOverrides:{root:{fontFamily:mb,fontSize:"0.875rem"}}},MuiInputBase:{styleOverrides:{root:{fontFamily:mb}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:`1px solid ${s}`,backgroundColor:r,color:o}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Di[400]}}}},MuiDivider:{styleOverrides:{root:{borderColor:s}},defaultProps:{sx:{my:1}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:28,margin:"2px 8px",padding:"8px 16px","&:hover":{backgroundColor:t?"rgba(255, 255, 255, 0.08)":Eo.offWhite},"&.Mui-selected":{backgroundColor:t?"rgba(255, 255, 255, 0.12)":Eo.offWhite,color:o,"& .MuiListItemIcon-root":{color:o},"& .MuiListItemText-primary":{color:o},"&:hover":{backgroundColor:t?"rgba(255, 255, 255, 0.16)":Eo.grey.light}}}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:r,color:o,boxShadow:$w}}}}})};K4("light");function _ve({children:e}){const{mode:t}=ku(),n=C.useMemo(()=>K4(t),[t]);return h.jsxs(E8,{theme:n,children:[h.jsx(k7,{}),e]})}const Uve=C.lazy(()=>jo(()=>import("./HomePage-CIFBQm1O.js"),[])),Vve=C.lazy(()=>jo(()=>import("./MainPage-DBgaP8G6.js"),__vite__mapDeps([9,10]))),Hve=C.lazy(()=>jo(()=>import("./ModelPage-A6Kd1_wx.js"),[])),Wve=C.lazy(()=>jo(()=>import("./PackagePage-JUM3EcgJ.js"),[])),qve=C.lazy(()=>jo(()=>import("./MaterializationsPage-B5tdbpRJ.js"),[])),Yve=C.lazy(()=>jo(()=>import("./EnvironmentPage-CMNz23OH.js"),[])),Gve=C.lazy(()=>jo(()=>import("./RouteError-BJAZkbpg.js"),[])),Kve=C.lazy(()=>jo(()=>import("./ThemeEditorPage-a0QNervK.js"),__vite__mapDeps([11,10]))),Qve=(e="/",t=new jve,n)=>xB([{path:e,element:h.jsx(DZ,{children:h.jsx(nhe,{documentStorage:t,children:h.jsx(_ve,{children:h.jsx(C.Suspense,{fallback:h.jsx(Jo,{}),children:h.jsx(Vve,{headerProps:n})})})})}),errorElement:h.jsx(Gve,{}),children:[{index:!0,element:h.jsx(Uve,{})},{path:"settings/theme",element:h.jsx(Kve,{})},{path:"settings",element:h.jsx(K6,{to:"/settings/theme",replace:!0})},{path:":environmentName",element:h.jsx(Yve,{})},{path:":environmentName/:packageName",element:h.jsx(Wve,{})},{path:":environmentName/:packageName/materializations",element:h.jsx(qve,{})},{path:":environmentName/:packageName/*",element:h.jsx(Hve,{})}]}]),Xve=Qve("/");bF.createRoot(document.getElementById("root")).render(h.jsx(C.StrictMode,{children:h.jsx(AB,{router:Xve})}));export{Jo as $,tt as A,mu as B,ua as C,fl as D,ku as E,xa as F,Jve as G,Ct as H,eo as I,Dp as J,wl as K,uT as L,TI as M,_r as N,Wbe as O,Ua as P,n5 as Q,Mg as R,qw as S,St as T,sl as U,RI as V,yy as W,_d as X,Qbe as Y,e0e as Z,ebe as _,_a as a,Wg as a$,qbe as a0,ay as a1,kr as a2,wo as a3,Vbe as a4,fx as a5,hn as a6,jo as a7,Hye as a8,Ybe as a9,Zi as aA,aT as aB,gy as aC,kZ as aD,_z as aE,jbe as aF,zbe as aG,Nbe as aH,Lbe as aI,Yfe as aJ,Ibe as aK,tu as aL,sy as aM,as as aN,LK as aO,Bj as aP,tpe as aQ,NA as aR,the as aS,ope as aT,Hbe as aU,ho as aV,ca as aW,Fbe as aX,Kpe as aY,npe as aZ,tr as a_,Xbe as aa,Mme as ab,Jbe as ac,cT as ad,Zbe as ae,Gbe as af,Kbe as ag,_6 as ah,Z0 as ai,VO as aj,ul as ak,TY as al,$5 as am,UJ as an,M$ as ao,rc as ap,is as aq,pQ as ar,cp as as,OK as at,BP as au,Qp as av,Xp as aw,$s as ax,Xi as ay,Ji as az,sn as b,Zp as b0,gu as b1,vpe as b2,bpe as b3,rC as b4,yp as b5,hT as b6,X5 as b7,MA as b8,Gfe as b9,TA as ba,Fz as bb,Ube as bc,_be as bd,Bbe as be,$W as bf,Ype as bg,Zve as bh,da as c,rn as d,Uw as e,ln as f,qU as g,tl as h,Dt as i,h as j,on as k,Su as l,Xt as m,Cl as n,go as o,Bd as p,ic as q,C as r,Je as s,JN as t,Ik as u,Yb as v,oI as w,fy as x,eI as y,An as z};