@malloy-publisher/server 0.3.0 → 0.4.0

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 (31) hide show
  1. package/dist/app/api-doc.yaml +140 -44
  2. package/dist/app/assets/{EnvironmentPage-D6kQraU3.js → EnvironmentPage-BnxD6uzV.js} +1 -1
  3. package/dist/app/assets/{HomePage-BZbuE5jv.js → HomePage-D_srvBnZ.js} +1 -1
  4. package/dist/app/assets/{LightMode-BxZdPcNr.js → LightMode-DCsTKw61.js} +1 -1
  5. package/dist/app/assets/MainPage-CzHkstrF.js +2 -0
  6. package/dist/app/assets/ModelPage-CoQ07DHX.js +2 -0
  7. package/dist/app/assets/PackagePage-CUeUHOnm.js +1 -0
  8. package/dist/app/assets/RenderedResult-BnPzJ9Jf.es-Dme58kt1.js +116 -0
  9. package/dist/app/assets/RouteError-gRAhsKGi.js +1 -0
  10. package/dist/app/assets/ThemeEditorPage-C2gOJTU1.js +1 -0
  11. package/dist/app/assets/ToggleButtonGroup-CoIPitu6.js +1 -0
  12. package/dist/app/assets/index-BhkeAzTe.js +453 -0
  13. package/dist/app/assets/index-BswZnpqD.js +1322 -0
  14. package/dist/app/assets/index-CRAwrhYM.js +2 -0
  15. package/dist/app/assets/index-DKvKsj6c.js +442 -0
  16. package/dist/app/assets/{index-By-g8wiC.js → index-DTfS9vNi.js} +1 -1
  17. package/dist/app/assets/index-hVLQwLRj.js +1 -0
  18. package/dist/app/assets/index.es-D0L4_L8o.js +106 -0
  19. package/dist/app/index.html +1 -1
  20. package/dist/package_load_worker.mjs +20 -1
  21. package/dist/server.mjs +1033 -683
  22. package/package.json +3 -3
  23. package/dist/app/assets/MainPage-DrczCw4J.js +0 -2
  24. package/dist/app/assets/MaterializationsPage-BFLHLEuk.js +0 -1
  25. package/dist/app/assets/ModelPage-CFnfQ6BL.js +0 -1
  26. package/dist/app/assets/PackagePage-DHsVf_mP.js +0 -1
  27. package/dist/app/assets/RouteError-CHq8ubhy.js +0 -1
  28. package/dist/app/assets/ThemeEditorPage-B2y8Y64Y.js +0 -1
  29. package/dist/app/assets/index-BVv6KQ93.js +0 -557
  30. package/dist/app/assets/index-Bqrhk3ff.js +0 -2
  31. package/dist/app/assets/index-CawCwLK3.js +0 -1774
@@ -0,0 +1,442 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BhkeAzTe.js","assets/index-BswZnpqD.js","assets/index-w_0OQJgZ.js","assets/index-CRAwrhYM.js","assets/index-hVLQwLRj.js","assets/index-DTfS9vNi.js","assets/index-DSoCUF-f.js","assets/core-B8oMW4sm.es-hOkwvru5.js","assets/engine-oniguruma-C4vnmooL.es-jdkXmgTr.js","assets/MainPage-CzHkstrF.js","assets/LightMode-DCsTKw61.js","assets/ThemeEditorPage-C2gOJTU1.js","assets/ToggleButtonGroup-CoIPitu6.js"])))=>i.map(i=>d[i]);
2
+ function s5(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 Qpe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function MD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jx={exports:{}},bh={};/**
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 RE;function l5(){if(RE)return bh;RE=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 bh.Fragment=t,bh.jsx=n,bh.jsxs=n,bh}var $E;function c5(){return $E||($E=1,Jx.exports=l5()),Jx.exports}var h=c5(),e1={exports:{}},_n={};/**
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 PE;function u5(){if(PE)return _n;PE=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"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),m=Symbol.iterator;function y(Z){return Z===null||typeof Z!="object"?null:(Z=m&&Z[m]||Z["@@iterator"],typeof Z=="function"?Z:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function w(Z,G,ne){this.props=Z,this.context=G,this.refs=x,this.updater=ne||v}w.prototype.isReactComponent={},w.prototype.setState=function(Z,G){if(typeof Z!="object"&&typeof Z!="function"&&Z!=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,Z,G,"setState")},w.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};function S(){}S.prototype=w.prototype;function T(Z,G,ne){this.props=Z,this.context=G,this.refs=x,this.updater=ne||v}var M=T.prototype=new S;M.constructor=T,b(M,w.prototype),M.isPureReactComponent=!0;var R=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function N(Z,G,ne,ce,pe,oe){return ne=oe.ref,{$$typeof:e,type:Z,key:G,ref:ne!==void 0?ne:null,props:oe}}function V(Z,G){return N(Z.type,G,void 0,void 0,void 0,Z.props)}function z(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function W(Z){var G={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(ne){return G[ne]})}var H=/\/+/g;function k(Z,G){return typeof Z=="object"&&Z!==null&&Z.key!=null?W(""+Z.key):G.toString(36)}function I(){}function F(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status=="string"?Z.then(I,I):(Z.status="pending",Z.then(function(G){Z.status==="pending"&&(Z.status="fulfilled",Z.value=G)},function(G){Z.status==="pending"&&(Z.status="rejected",Z.reason=G)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function _(Z,G,ne,ce,pe){var oe=typeof Z;(oe==="undefined"||oe==="boolean")&&(Z=null);var ae=!1;if(Z===null)ae=!0;else switch(oe){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(Z.$$typeof){case e:case t:ae=!0;break;case c:return ae=Z._init,_(ae(Z._payload),G,ne,ce,pe)}}if(ae)return pe=pe(Z),ae=ce===""?"."+k(Z,0):ce,R(pe)?(ne="",ae!=null&&(ne=ae.replace(H,"$&/")+"/"),_(pe,G,ne,"",function(ye){return ye})):pe!=null&&(z(pe)&&(pe=V(pe,ne+(pe.key==null||Z&&Z.key===pe.key?"":(""+pe.key).replace(H,"$&/")+"/")+ae)),G.push(pe)),1;ae=0;var le=ce===""?".":ce+":";if(R(Z))for(var ge=0;ge<Z.length;ge++)ce=Z[ge],oe=le+k(ce,ge),ae+=_(ce,G,ne,oe,pe);else if(ge=y(Z),typeof ge=="function")for(Z=ge.call(Z),ge=0;!(ce=Z.next()).done;)ce=ce.value,oe=le+k(ce,ge++),ae+=_(ce,G,ne,oe,pe);else if(oe==="object"){if(typeof Z.then=="function")return _(F(Z),G,ne,ce,pe);throw G=String(Z),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ae}function j(Z,G,ne){if(Z==null)return Z;var ce=[],pe=0;return _(Z,ce,"","",function(oe){return G.call(ne,oe,pe++)}),ce}function X(Z){if(Z._status===-1){var G=Z._result;G=G(),G.then(function(ne){(Z._status===0||Z._status===-1)&&(Z._status=1,Z._result=ne)},function(ne){(Z._status===0||Z._status===-1)&&(Z._status=2,Z._result=ne)}),Z._status===-1&&(Z._status=0,Z._result=G)}if(Z._status===1)return Z._result.default;throw Z._result}var Q=typeof reportError=="function"?reportError:function(Z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z=="object"&&Z!==null&&typeof Z.message=="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Z);return}console.error(Z)};function te(){}return _n.Children={map:j,forEach:function(Z,G,ne){j(Z,function(){G.apply(this,arguments)},ne)},count:function(Z){var G=0;return j(Z,function(){G++}),G},toArray:function(Z){return j(Z,function(G){return G})||[]},only:function(Z){if(!z(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},_n.Component=w,_n.Fragment=n,_n.Profiler=o,_n.PureComponent=T,_n.StrictMode=r,_n.Suspense=d,_n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,_n.__COMPILER_RUNTIME={__proto__:null,c:function(Z){return $.H.useMemoCache(Z)}},_n.cache=function(Z){return function(){return Z.apply(null,arguments)}},_n.cloneElement=function(Z,G,ne){if(Z==null)throw Error("The argument must be a React element, but you passed "+Z+".");var ce=b({},Z.props),pe=Z.key,oe=void 0;if(G!=null)for(ae in G.ref!==void 0&&(oe=void 0),G.key!==void 0&&(pe=""+G.key),G)!P.call(G,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&G.ref===void 0||(ce[ae]=G[ae]);var ae=arguments.length-2;if(ae===1)ce.children=ne;else if(1<ae){for(var le=Array(ae),ge=0;ge<ae;ge++)le[ge]=arguments[ge+2];ce.children=le}return N(Z.type,pe,void 0,void 0,oe,ce)},_n.createContext=function(Z){return Z={$$typeof:s,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:a,_context:Z},Z},_n.createElement=function(Z,G,ne){var ce,pe={},oe=null;if(G!=null)for(ce in G.key!==void 0&&(oe=""+G.key),G)P.call(G,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(pe[ce]=G[ce]);var ae=arguments.length-2;if(ae===1)pe.children=ne;else if(1<ae){for(var le=Array(ae),ge=0;ge<ae;ge++)le[ge]=arguments[ge+2];pe.children=le}if(Z&&Z.defaultProps)for(ce in ae=Z.defaultProps,ae)pe[ce]===void 0&&(pe[ce]=ae[ce]);return N(Z,oe,void 0,void 0,null,pe)},_n.createRef=function(){return{current:null}},_n.forwardRef=function(Z){return{$$typeof:l,render:Z}},_n.isValidElement=z,_n.lazy=function(Z){return{$$typeof:c,_payload:{_status:-1,_result:Z},_init:X}},_n.memo=function(Z,G){return{$$typeof:f,type:Z,compare:G===void 0?null:G}},_n.startTransition=function(Z){var G=$.T,ne={};$.T=ne;try{var ce=Z(),pe=$.S;pe!==null&&pe(ne,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(te,Q)}catch(oe){Q(oe)}finally{$.T=G}},_n.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},_n.use=function(Z){return $.H.use(Z)},_n.useActionState=function(Z,G,ne){return $.H.useActionState(Z,G,ne)},_n.useCallback=function(Z,G){return $.H.useCallback(Z,G)},_n.useContext=function(Z){return $.H.useContext(Z)},_n.useDebugValue=function(){},_n.useDeferredValue=function(Z,G){return $.H.useDeferredValue(Z,G)},_n.useEffect=function(Z,G,ne){var ce=$.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ce.useEffect(Z,G)},_n.useId=function(){return $.H.useId()},_n.useImperativeHandle=function(Z,G,ne){return $.H.useImperativeHandle(Z,G,ne)},_n.useInsertionEffect=function(Z,G){return $.H.useInsertionEffect(Z,G)},_n.useLayoutEffect=function(Z,G){return $.H.useLayoutEffect(Z,G)},_n.useMemo=function(Z,G){return $.H.useMemo(Z,G)},_n.useOptimistic=function(Z,G){return $.H.useOptimistic(Z,G)},_n.useReducer=function(Z,G,ne){return $.H.useReducer(Z,G,ne)},_n.useRef=function(Z){return $.H.useRef(Z)},_n.useState=function(Z){return $.H.useState(Z)},_n.useSyncExternalStore=function(Z,G,ne){return $.H.useSyncExternalStore(Z,G,ne)},_n.useTransition=function(){return $.H.useTransition()},_n.version="19.1.1",_n}var DE;function Nw(){return DE||(DE=1,e1.exports=u5()),e1.exports}var C=Nw();const pn=MD(C),Pm=s5({__proto__:null,default:pn},[C]);var t1={exports:{}},xh={},n1={exports:{}},r1={};/**
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 AE;function d5(){return AE||(AE=1,(function(e){function t(j,X){var Q=j.length;j.push(X);e:for(;0<Q;){var te=Q-1>>>1,Z=j[te];if(0<o(Z,X))j[te]=X,j[Q]=Z,Q=te;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var X=j[0],Q=j.pop();if(Q!==X){j[0]=Q;e:for(var te=0,Z=j.length,G=Z>>>1;te<G;){var ne=2*(te+1)-1,ce=j[ne],pe=ne+1,oe=j[pe];if(0>o(ce,Q))pe<Z&&0>o(oe,ce)?(j[te]=oe,j[pe]=Q,te=pe):(j[te]=ce,j[ne]=Q,te=ne);else if(pe<Z&&0>o(oe,Q))j[te]=oe,j[pe]=Q,te=pe;else break e}}return X}function o(j,X){var Q=j.sortIndex-X.sortIndex;return Q!==0?Q:j.id-X.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 d=[],f=[],c=1,m=null,y=3,v=!1,b=!1,x=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function R(j){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=j)r(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(f)}}function $(j){if(x=!1,R(j),!b)if(n(d)!==null)b=!0,P||(P=!0,k());else{var X=n(f);X!==null&&_($,X.startTime-j)}}var P=!1,N=-1,V=5,z=-1;function W(){return w?!0:!(e.unstable_now()-z<V)}function H(){if(w=!1,P){var j=e.unstable_now();z=j;var X=!0;try{e:{b=!1,x&&(x=!1,T(N),N=-1),v=!0;var Q=y;try{t:{for(R(j),m=n(d);m!==null&&!(m.expirationTime>j&&W());){var te=m.callback;if(typeof te=="function"){m.callback=null,y=m.priorityLevel;var Z=te(m.expirationTime<=j);if(j=e.unstable_now(),typeof Z=="function"){m.callback=Z,R(j),X=!0;break t}m===n(d)&&r(d),R(j)}else r(d);m=n(d)}if(m!==null)X=!0;else{var G=n(f);G!==null&&_($,G.startTime-j),X=!1}}break e}finally{m=null,y=Q,v=!1}X=void 0}}finally{X?k():P=!1}}}var k;if(typeof M=="function")k=function(){M(H)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,F=I.port2;I.port1.onmessage=H,k=function(){F.postMessage(null)}}else k=function(){S(H,0)};function _(j,X){N=S(function(){j(e.unstable_now())},X)}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"):V=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 X=3;break;default:X=y}var Q=y;y=X;try{return j()}finally{y=Q}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(j,X){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var Q=y;y=j;try{return X()}finally{y=Q}},e.unstable_scheduleCallback=function(j,X,Q){var te=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?te+Q:te):Q=te,j){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=Q+Z,j={id:c++,callback:X,priorityLevel:j,startTime:Q,expirationTime:Z,sortIndex:-1},Q>te?(j.sortIndex=Q,t(f,j),n(d)===null&&j===n(f)&&(x?(T(N),N=-1):x=!0,_($,Q-te))):(j.sortIndex=Z,t(d,j),b||v||(b=!0,P||(P=!0,k()))),j},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(j){var X=y;return function(){var Q=y;y=X;try{return j.apply(this,arguments)}finally{y=Q}}}})(r1)),r1}var jE;function f5(){return jE||(jE=1,n1.exports=d5()),n1.exports}var o1={exports:{}},Xo={};/**
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 NE;function p5(){if(NE)return Xo;NE=1;var e=Nw();function t(d){var f="https://react.dev/errors/"+d;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 #"+d+"; 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(d,f,c){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:d,containerInfo:f,implementation:c}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Xo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xo.createPortal=function(d,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(d,f,null,c)},Xo.flushSync=function(d){var f=s.T,c=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=f,r.p=c,r.d.f()}},Xo.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Xo.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Xo.preinit=function(d,f){if(typeof d=="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(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:v}):c==="script"&&r.d.X(d,{crossOrigin:m,integrity:y,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Xo.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var c=l(f.as,f.crossOrigin);r.d.M(d,{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(d)},Xo.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var c=f.as,m=l(c,f.crossOrigin);r.d.L(d,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})}},Xo.preloadModule=function(d,f){if(typeof d=="string")if(f){var c=l(f.as,f.crossOrigin);r.d.m(d,{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(d)},Xo.requestFormReset=function(d){r.d.r(d)},Xo.unstable_batchedUpdates=function(d,f){return d(f)},Xo.useFormState=function(d,f,c){return s.H.useFormState(d,f,c)},Xo.useFormStatus=function(){return s.H.useHostTransitionStatus()},Xo.version="19.1.1",Xo}var IE;function ED(){if(IE)return o1.exports;IE=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(),o1.exports=p5(),o1.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 LE;function h5(){if(LE)return xh;LE=1;var e=f5(),t=Nw(),n=ED();function r(i){var u="https://react.dev/errors/"+i;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+u+" 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 u=i,p=i;if(i.alternate)for(;u.return;)u=u.return;else{i=u;do u=i,(u.flags&4098)!==0&&(p=u.return),i=u.return;while(i)}return u.tag===3?p:null}function s(i){if(i.tag===13){var u=i.memoizedState;if(u===null&&(i=i.alternate,i!==null&&(u=i.memoizedState)),u!==null)return u.dehydrated}return null}function l(i){if(a(i)!==i)throw Error(r(188))}function d(i){var u=i.alternate;if(!u){if(u=a(i),u===null)throw Error(r(188));return u!==i?null:i}for(var p=i,g=u;;){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),u;D=D.sibling}throw Error(r(188))}if(p.return!==g.return)p=E,g=D;else{for(var J=!1,re=E.child;re;){if(re===p){J=!0,p=E,g=D;break}if(re===g){J=!0,g=E,p=D;break}re=re.sibling}if(!J){for(re=D.child;re;){if(re===p){J=!0,p=D,g=E;break}if(re===g){J=!0,g=D,p=E;break}re=re.sibling}if(!J)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:u}function f(i){var u=i.tag;if(u===5||u===26||u===27||u===6)return i;for(i=i.child;i!==null;){if(u=f(i),u!==null)return u;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"),T=Symbol.for("react.consumer"),M=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function k(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var I=Symbol.for("react.client.reference");function F(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===I?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 $:return"Suspense";case P:return"SuspenseList";case z:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case v:return"Portal";case M:return(i.displayName||"Context")+".Provider";case T:return(i._context.displayName||"Context")+".Consumer";case R:var u=i.render;return i=i.displayName,i||(i=u.displayName||u.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case N:return u=i.displayName||null,u!==null?u:F(i.type)||"Memo";case V:u=i._payload,i=i._init;try{return F(i(u))}catch{}}return null}var _=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},te=[],Z=-1;function G(i){return{current:i}}function ne(i){0>Z||(i.current=te[Z],te[Z]=null,Z--)}function ce(i,u){Z++,te[Z]=i.current,i.current=u}var pe=G(null),oe=G(null),ae=G(null),le=G(null);function ge(i,u){switch(ce(ae,u),ce(oe,i),ce(pe,null),u.nodeType){case 9:case 11:i=(i=u.documentElement)&&(i=i.namespaceURI)?rE(i):0;break;default:if(i=u.tagName,u=u.namespaceURI)u=rE(u),i=oE(u,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ne(pe),ce(pe,i)}function ye(){ne(pe),ne(oe),ne(ae)}function we(i){i.memoizedState!==null&&ce(le,i);var u=pe.current,p=oE(u,i.type);u!==p&&(ce(oe,i),ce(pe,p))}function Ce(i){oe.current===i&&(ne(pe),ne(oe)),le.current===i&&(ne(le),hh._currentValue=Q)}var $e=Object.prototype.hasOwnProperty,de=e.unstable_scheduleCallback,ke=e.unstable_cancelCallback,et=e.unstable_shouldYield,ze=e.unstable_requestPaint,Ae=e.unstable_now,se=e.unstable_getCurrentPriorityLevel,bt=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,it=e.unstable_NormalPriority,pt=e.unstable_LowPriority,Ft=e.unstable_IdlePriority,_t=e.log,at=e.unstable_setDisableYieldValue,Xe=null,rt=null;function Ne(i){if(typeof _t=="function"&&at(i),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Xe,i)}catch{}}var he=Math.clz32?Math.clz32:kt,We=Math.log,Te=Math.LN2;function kt(i){return i>>>=0,i===0?32:31-(We(i)/Te|0)|0}var Mt=256,gt=4194304;function ct(i){var u=i&42;if(u!==0)return u;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 $t(i,u,p){var g=i.pendingLanes;if(g===0)return 0;var E=0,D=i.suspendedLanes,J=i.pingedLanes;i=i.warmLanes;var re=g&134217727;return re!==0?(g=re&~D,g!==0?E=ct(g):(J&=re,J!==0?E=ct(J):p||(p=re&~i,p!==0&&(E=ct(p))))):(re=g&~D,re!==0?E=ct(re):J!==0?E=ct(J):p||(p=g&~i,p!==0&&(E=ct(p)))),E===0?0:u!==0&&u!==E&&(u&D)===0&&(D=E&-E,p=u&-u,D>=p||D===32&&(p&4194048)!==0)?u:E}function Vt(i,u){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&u)===0}function un(i,u){switch(i){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 vn(){var i=Mt;return Mt<<=1,(Mt&4194048)===0&&(Mt=256),i}function Bn(){var i=gt;return gt<<=1,(gt&62914560)===0&&(gt=4194304),i}function Wn(i){for(var u=[],p=0;31>p;p++)u.push(i);return u}function Qt(i,u){i.pendingLanes|=u,u!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function In(i,u,p,g,E,D){var J=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 re=i.entanglements,xe=i.expirationTimes,_e=i.hiddenUpdates;for(p=J&~p;0<p;){var dt=31-he(p),xt=1<<dt;re[dt]=0,xe[dt]=-1;var Ye=_e[dt];if(Ye!==null)for(_e[dt]=null,dt=0;dt<Ye.length;dt++){var Qe=Ye[dt];Qe!==null&&(Qe.lane&=-536870913)}p&=~xt}g!==0&&be(i,g,0),D!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=D&~(J&~u))}function be(i,u,p){i.pendingLanes|=u,i.suspendedLanes&=~u;var g=31-he(u);i.entangledLanes|=u,i.entanglements[g]=i.entanglements[g]|1073741824|p&4194090}function zn(i,u){var p=i.entangledLanes|=u;for(i=i.entanglements;p;){var g=31-he(p),E=1<<g;E&u|i[g]&u&&(i[g]|=u),p&=~E}}function En(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 Xt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function ie(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:CE(i.type))}function Pe(i,u){var p=X.p;try{return X.p=i,u()}finally{X.p=p}}var Le=Math.random().toString(36).slice(2),qe="__reactFiber$"+Le,ut="__reactProps$"+Le,Nt="__reactContainer$"+Le,Bt="__reactEvents$"+Le,Dt="__reactListeners$"+Le,mt="__reactHandles$"+Le,At="__reactResources$"+Le,Et="__reactMarker$"+Le;function wt(i){delete i[qe],delete i[ut],delete i[Bt],delete i[Dt],delete i[mt]}function Ht(i){var u=i[qe];if(u)return u;for(var p=i.parentNode;p;){if(u=p[Nt]||p[qe]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(i=lE(i);i!==null;){if(p=i[qe])return p;i=lE(i)}return u}i=p,p=i.parentNode}return null}function On(i){if(i=i[qe]||i[Nt]){var u=i.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return i}return null}function qn(i){var u=i.tag;if(u===5||u===26||u===27||u===6)return i.stateNode;throw Error(r(33))}function bn(i){var u=i[At];return u||(u=i[At]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function dn(i){i[Et]=!0}var ue=new Set,fe={};function Ve(i,u){vt(i,u),vt(i+"Capture",u)}function vt(i,u){for(fe[i]=u,i=0;i<u.length;i++)ue.add(u[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]*$"),Zt={},nn={};function fn(i){return $e.call(nn,i)?!0:$e.call(Zt,i)?!1:Ke.test(i)?nn[i]=!0:(Zt[i]=!0,!1)}function me(i,u,p){if(fn(u))if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(u);return;case"boolean":var g=u.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){i.removeAttribute(u);return}}i.setAttribute(u,""+p)}}function Ee(i,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttribute(u,""+p)}}function He(i,u,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(u,p,""+g)}}var yt,Rt;function Ct(i){if(yt===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);yt=u&&u[1]||"",Rt=-1<p.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+yt+i+Rt}var St=!1;function Yt(i,u){if(!i||St)return"";St=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(u){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 Ye=Qe}Reflect.construct(i,[],xt)}else{try{xt.call()}catch(Qe){Ye=Qe}i.call(xt.prototype)}}else{try{throw Error()}catch(Qe){Ye=Qe}(xt=i())&&typeof xt.catch=="function"&&xt.catch(function(){})}}catch(Qe){if(Qe&&Ye&&typeof Qe.stack=="string")return[Qe.stack,Ye.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(),J=D[0],re=D[1];if(J&&re){var xe=J.split(`
45
+ `),_e=re.split(`
46
+ `);for(E=g=0;g<xe.length&&!xe[g].includes("DetermineComponentFrameRoot");)g++;for(;E<_e.length&&!_e[E].includes("DetermineComponentFrameRoot");)E++;if(g===xe.length||E===_e.length)for(g=xe.length-1,E=_e.length-1;1<=g&&0<=E&&xe[g]!==_e[E];)E--;for(;1<=g&&0<=E;g--,E--)if(xe[g]!==_e[E]){if(g!==1||E!==1)do if(g--,E--,0>E||xe[g]!==_e[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{St=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?Ct(p):""}function xn(i){switch(i.tag){case 26:case 27:case 5:return Ct(i.type);case 16:return Ct("Lazy");case 13:return Ct("Suspense");case 19:return Ct("SuspenseList");case 0:case 15:return Yt(i.type,!1);case 11:return Yt(i.type.render,!1);case 1:return Yt(i.type,!0);case 31:return Ct("Activity");default:return""}}function ur(i){try{var u="";do u+=xn(i),i=i.return;while(i);return u}catch(p){return`
48
+ Error generating stack: `+p.message+`
49
+ `+p.stack}}function sr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function La(i){var u=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Gi(i){var u=La(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,u),g=""+i[u];if(!i.hasOwnProperty(u)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,D=p.set;return Object.defineProperty(i,u,{configurable:!0,get:function(){return E.call(this)},set:function(J){g=""+J,D.call(this,J)}}),Object.defineProperty(i,u,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(J){g=""+J},stopTracking:function(){i._valueTracker=null,delete i[u]}}}}function bs(i){i._valueTracker||(i._valueTracker=Gi(i))}function Vl(i){if(!i)return!1;var u=i._valueTracker;if(!u)return!0;var p=u.getValue(),g="";return i&&(g=La(i)?i.checked?"true":"false":i.value),i=g,i!==p?(u.setValue(i),!0):!1}function fi(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 xs=/[\n"\\]/g;function Mo(i){return i.replace(xs,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Ss(i,u,p,g,E,D,J,re){i.name="",J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?i.type=J:i.removeAttribute("type"),u!=null?J==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=""+sr(u)):i.value!==""+sr(u)&&(i.value=""+sr(u)):J!=="submit"&&J!=="reset"||i.removeAttribute("value"),u!=null?Qi(i,J,sr(u)):p!=null?Qi(i,J,sr(p)):g!=null&&i.removeAttribute("value"),E==null&&D!=null&&(i.defaultChecked=!!D),E!=null&&(i.checked=E&&typeof E!="function"&&typeof E!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?i.name=""+sr(re):i.removeAttribute("name")}function Xc(i,u,p,g,E,D,J,re){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(i.type=D),u!=null||p!=null){if(!(D!=="submit"&&D!=="reset"||u!=null))return;p=p!=null?""+sr(p):"",u=u!=null?""+sr(u):p,re||u===i.value||(i.value=u),i.defaultValue=u}g=g??E,g=typeof g!="function"&&typeof g!="symbol"&&!!g,i.checked=re?i.checked:!!g,i.defaultChecked=!!g,J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"&&(i.name=J)}function Qi(i,u,p){u==="number"&&fi(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function pi(i,u,p,g){if(i=i.options,u){u={};for(var E=0;E<p.length;E++)u["$"+p[E]]=!0;for(p=0;p<i.length;p++)E=u.hasOwnProperty("$"+i[p].value),i[p].selected!==E&&(i[p].selected=E),E&&g&&(i[p].defaultSelected=!0)}else{for(p=""+sr(p),u=null,E=0;E<i.length;E++){if(i[E].value===p){i[E].selected=!0,g&&(i[E].defaultSelected=!0);return}u!==null||i[E].disabled||(u=i[E])}u!==null&&(u.selected=!0)}}function Zc(i,u,p){if(u!=null&&(u=""+sr(u),u!==i.value&&(i.value=u),p==null)){i.defaultValue!==u&&(i.defaultValue=u);return}i.defaultValue=p!=null?""+sr(p):""}function ol(i,u,p,g){if(u==null){if(g!=null){if(p!=null)throw Error(r(92));if(_(g)){if(1<g.length)throw Error(r(93));g=g[0]}p=g}p==null&&(p=""),u=p}p=sr(u),i.defaultValue=p,g=i.textContent,g===p&&g!==""&&g!==null&&(i.value=g)}function Xi(i,u){if(u){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=u;return}}i.textContent=u}var Hl=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 ws(i,u,p){var g=u.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?g?i.setProperty(u,""):u==="float"?i.cssFloat="":i[u]="":g?i.setProperty(u,p):typeof p!="number"||p===0||Hl.has(u)?u==="float"?i.cssFloat=p:i[u]=(""+p).trim():i[u]=p+"px"}function al(i,u,p){if(u!=null&&typeof u!="object")throw Error(r(62));if(i=i.style,p!=null){for(var g in p)!p.hasOwnProperty(g)||u!=null&&u.hasOwnProperty(g)||(g.indexOf("--")===0?i.setProperty(g,""):g==="float"?i.cssFloat="":i[g]="");for(var E in u)g=u[E],u.hasOwnProperty(E)&&p[E]!==g&&ws(i,E,g)}else for(var D in u)u.hasOwnProperty(D)&&ws(i,D,u[D])}function Jc(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"]]),vp=/^[\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 il(i){return vp.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Wl=null;function ql(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Cs=null,Zi=null;function eu(i){var u=On(i);if(u&&(i=u.stateNode)){var p=i[ut]||null;e:switch(i=u.stateNode,u.type){case"input":if(Ss(i,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),u=p.name,p.type==="radio"&&u!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+Mo(""+u)+'"][type="radio"]'),u=0;u<p.length;u++){var g=p[u];if(g!==i&&g.form===i.form){var E=g[ut]||null;if(!E)throw Error(r(90));Ss(g,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(u=0;u<p.length;u++)g=p[u],g.form===i.form&&Vl(g)}break e;case"textarea":Zc(i,p.value,p.defaultValue);break e;case"select":u=p.value,u!=null&&pi(i,!!p.multiple,u,!1)}}}var tu=!1;function vd(i,u,p){if(tu)return i(u,p);tu=!0;try{var g=i(u);return g}finally{if(tu=!1,(Cs!==null||Zi!==null)&&(oy(),Cs&&(u=Cs,i=Zi,Zi=Cs=null,eu(u),i)))for(u=0;u<i.length;u++)eu(i[u])}}function sl(i,u){var p=i.stateNode;if(p===null)return null;var g=p[ut]||null;if(g===null)return null;p=g[u];e:switch(u){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,u,typeof p));return p}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=!1;if(ma)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){nu=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{nu=!1}var hi=null,ru=null,Yl=null;function ou(){if(Yl)return Yl;var i,u=ru,p=u.length,g,E="value"in hi?hi.value:hi.textContent,D=E.length;for(i=0;i<p&&u[i]===E[i];i++);var J=p-i;for(g=1;g<=J&&u[p-g]===E[D-g];g++);return Yl=E.slice(i,1<g?1-g:void 0)}function Kl(i){var u=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&u===13&&(i=13)):i=u,i===10&&(i=13),32<=i||i===13?i:0}function Qr(){return!0}function au(){return!1}function A(i){function u(p,g,E,D,J){this._reactName=p,this._targetInst=E,this.type=g,this.nativeEvent=D,this.target=J,this.currentTarget=null;for(var re in i)i.hasOwnProperty(re)&&(p=i[re],this[re]=p?p(D):D[re]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?Qr:au,this.isPropagationStopped=au,this}return c(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Qr)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),u}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xr=A(ho),za=c({},ho,{view:0,detail:0}),Me=A(za),Ji,An,Do,ks=c({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ul,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!==Do&&(Do&&i.type==="mousemove"?(Ji=i.screenX-Do.screenX,An=i.screenY-Do.screenY):An=Ji=0,Do=i),Ji)},movementY:function(i){return"movementY"in i?i.movementY:An}}),iu=A(ks),bd=c({},ks,{dataTransfer:0}),xd=A(bd),Ze=c({},za,{relatedTarget:0}),su=A(Ze),lu=c({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),Gl=A(lu),Sd=c({},ho,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Ts=A(Sd),cl=c({},ho,{data:0}),es=A(cl),Ms={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ko={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"},bp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xp(i){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(i):(i=bp[i])?!!u[i]:!1}function ul(){return xp}var wd=c({},za,{key:function(i){if(i.key){var u=Ms[i.key]||i.key;if(u!=="Unidentified")return u}return i.type==="keypress"?(i=Kl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Ko[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ul,charCode:function(i){return i.type==="keypress"?Kl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Kl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),cu=A(wd),Sp=c({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cd=A(Sp),wp=c({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ul}),kd=A(wp),uu=c({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cp=A(uu),Ql=c({},ks,{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}),kp=A(Ql),Tp=c({},ho,{newState:0,oldState:0}),Mp=A(Tp),Ep=[9,13,27,32],du=ma&&"CompositionEvent"in window,Es=null;ma&&"documentMode"in document&&(Es=document.documentMode);var Op=ma&&"TextEvent"in window&&!Es,Td=ma&&(!du||Es&&8<Es&&11>=Es),Md=" ",Ed=!1;function Od(i,u){switch(i){case"keyup":return Ep.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Os=!1;function Rp(i,u){switch(i){case"compositionend":return Rd(u);case"keypress":return u.which!==32?null:(Ed=!0,Md);case"textInput":return i=u.data,i===Md&&Ed?null:i;default:return null}}function $p(i,u){if(Os)return i==="compositionend"||!du&&Od(i,u)?(i=ou(),Yl=ru=hi=null,Os=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return Td&&u.locale!=="ko"?null:u.data;default:return null}}var Pp={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 $d(i){var u=i&&i.nodeName&&i.nodeName.toLowerCase();return u==="input"?!!Pp[i.type]:u==="textarea"}function Pd(i,u,p,g){Cs?Zi?Zi.push(g):Zi=[g]:Cs=g,u=uy(u,"onChange"),0<u.length&&(p=new Xr("onChange","change",null,p,g),i.push({event:p,listeners:u}))}var dl=null,tr=null;function ts(i){ZM(i,0)}function Wr(i){var u=qn(i);if(Vl(u))return i}function B(i,u){if(i==="change")return u}var K=!1;if(ma){var q;if(ma){var Se="oninput"in document;if(!Se){var qt=document.createElement("div");qt.setAttribute("oninput","return;"),Se=typeof qt.oninput=="function"}q=Se}else q=!1;K=q&&(!document.documentMode||9<document.documentMode)}function Ut(){dl&&(dl.detachEvent("onpropertychange",Rn),tr=dl=null)}function Rn(i){if(i.propertyName==="value"&&Wr(tr)){var u=[];Pd(u,tr,i,ql(i)),vd(ts,u)}}function Yn(i,u,p){i==="focusin"?(Ut(),dl=u,tr=p,dl.attachEvent("onpropertychange",Rn)):i==="focusout"&&Ut()}function Kn(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Wr(tr)}function Wt(i,u){if(i==="click")return Wr(u)}function wr(i,u){if(i==="input"||i==="change")return Wr(u)}function Cr(i,u){return i===u&&(i!==0||1/i===1/u)||i!==i&&u!==u}var rn=typeof Object.is=="function"?Object.is:Cr;function gr(i,u){if(rn(i,u))return!0;if(typeof i!="object"||i===null||typeof u!="object"||u===null)return!1;var p=Object.keys(i),g=Object.keys(u);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var E=p[g];if(!$e.call(u,E)||!rn(i[E],u[E]))return!1}return!0}function Fr(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ur(i,u){var p=Fr(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=u&&g>=u)return{node:p,offset:u-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Fr(p)}}function Fa(i,u){return i&&u?i===u?!0:i&&i.nodeType===3?!1:u&&u.nodeType===3?Fa(i,u.parentNode):"contains"in i?i.contains(u):i.compareDocumentPosition?!!(i.compareDocumentPosition(u)&16):!1:!1}function aa(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var u=fi(i.document);u instanceof i.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href=="string"}catch{p=!1}if(p)i=u.contentWindow;else break;u=fi(i.document)}return u}function Ln(i){var u=i&&i.nodeName&&i.nodeName.toLowerCase();return u&&(u==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||u==="textarea"||i.contentEditable==="true")}var fl=ma&&"documentMode"in document&&11>=document.documentMode,ia=null,ns=null,Go=null,Zr=!1;function pl(i,u,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Zr||ia==null||ia!==fi(g)||(g=ia,"selectionStart"in g&&Ln(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}),Go&&gr(Go,g)||(Go=g,g=uy(ns,"onSelect"),0<g.length&&(u=new Xr("onSelect","select",null,u,p),i.push({event:u,listeners:g}),u.target=ia)))}function mo(i,u){var p={};return p[i.toLowerCase()]=u.toLowerCase(),p["Webkit"+i]="webkit"+u,p["Moz"+i]="moz"+u,p}var Xl={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionrun:mo("Transition","TransitionRun"),transitionstart:mo("Transition","TransitionStart"),transitioncancel:mo("Transition","TransitionCancel"),transitionend:mo("Transition","TransitionEnd")},Dp={},Eg={};ma&&(Eg=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function hl(i){if(Dp[i])return Dp[i];if(!Xl[i])return i;var u=Xl[i],p;for(p in u)if(u.hasOwnProperty(p)&&p in Eg)return Dp[i]=u[p];return i}var Og=hl("animationend"),Rg=hl("animationiteration"),$g=hl("animationstart"),Ap=hl("transitionrun"),T0=hl("transitionstart"),M0=hl("transitioncancel"),jp=hl("transitionend"),Np=new Map,Dd="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(" ");Dd.push("scrollEnd");function Ba(i,u){Np.set(i,u),Ve(u,[i])}var Ip=new WeakMap;function Qo(i,u){if(typeof i=="object"&&i!==null){var p=Ip.get(i);return p!==void 0?p:(u={value:i,source:u,stack:ur(u)},Ip.set(i,u),u)}return{value:i,source:u,stack:ur(u)}}var sa=[],mi=0,fu=0;function Zl(){for(var i=mi,u=fu=mi=0;u<i;){var p=sa[u];sa[u++]=null;var g=sa[u];sa[u++]=null;var E=sa[u];sa[u++]=null;var D=sa[u];if(sa[u++]=null,g!==null&&E!==null){var J=g.pending;J===null?E.next=E:(E.next=J.next,J.next=E),g.pending=E}D!==0&&pu(p,E,D)}}function gi(i,u,p,g){sa[mi++]=i,sa[mi++]=u,sa[mi++]=p,sa[mi++]=g,fu|=g,i.lanes|=g,i=i.alternate,i!==null&&(i.lanes|=g)}function Ad(i,u,p,g){return gi(i,u,p,g),hu(i)}function rs(i,u){return gi(i,null,null,u),hu(i)}function pu(i,u,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&&u!==null&&(E=31-he(p),i=D.hiddenUpdates,g=i[E],g===null?i[E]=[u]:g.push(u),u.lane=p|536870912),D):null}function hu(i){if(50<ih)throw ih=0,Cx=null,Error(r(185));for(var u=i.return;u!==null;)i=u,u=i.return;return i.tag===3?i.stateNode:null}var Ua={};function jd(i,u,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=u,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 Bo(i,u,p,g){return new jd(i,u,p,g)}function Nd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function yi(i,u){var p=i.alternate;return p===null?(p=Bo(i.tag,u,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=u,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,u=i.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p.refCleanup=i.refCleanup,p}function Pg(i,u){i.flags&=65011714;var p=i.alternate;return p===null?(i.childLanes=0,i.lanes=u,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,u=p.dependencies,i.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),i}function Id(i,u,p,g,E,D){var J=0;if(g=i,typeof i=="function")Nd(i)&&(J=1);else if(typeof i=="string")J=Kz(i,p,pe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case z:return i=Bo(31,p,u,E),i.elementType=z,i.lanes=D,i;case b:return vi(p.children,E,D,u);case x:J=8,E|=24;break;case w:return i=Bo(12,p,u,E|2),i.elementType=w,i.lanes=D,i;case $:return i=Bo(13,p,u,E),i.elementType=$,i.lanes=D,i;case P:return i=Bo(19,p,u,E),i.elementType=P,i.lanes=D,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S:case M:J=10;break e;case T:J=9;break e;case R:J=11;break e;case N:J=14;break e;case V:J=16,g=null;break e}J=29,p=Error(r(130,i===null?"null":typeof i,"")),g=null}return u=Bo(J,p,u,E),u.elementType=i,u.type=g,u.lanes=D,u}function vi(i,u,p,g){return i=Bo(7,i,g,u),i.lanes=p,i}function Lp(i,u,p){return i=Bo(6,i,null,u),i.lanes=p,i}function zp(i,u,p){return u=Bo(4,i.children!==null?i.children:[],i.key,u),u.lanes=p,u.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},u}var os=[],ml=0,Ld=null,mu=0,la=[],ca=0,_a=null,Va=1,mn="";function Ha(i,u){os[ml++]=mu,os[ml++]=Ld,Ld=i,mu=u}function Dg(i,u,p){la[ca++]=Va,la[ca++]=mn,la[ca++]=_a,_a=i;var g=Va;i=mn;var E=32-he(g)-1;g&=~(1<<E),p+=1;var D=32-he(u)+E;if(30<D){var J=E-E%5;D=(g&(1<<J)-1).toString(32),g>>=J,E-=J,Va=1<<32-he(u)+E|p<<E|g,mn=D+i}else Va=1<<D|p<<E|g,mn=i}function U(i){i.return!==null&&(Ha(i,1),Dg(i,1,0))}function O(i){for(;i===Ld;)Ld=os[--ml],os[ml]=null,mu=os[--ml],os[ml]=null;for(;i===_a;)_a=la[--ca],la[ca]=null,mn=la[--ca],la[ca]=null,Va=la[--ca],la[ca]=null}var L=null,Y=null,ee=!1,ve=null,Oe=!1,je=Error(r(519));function Ue(i){var u=Error(r(418,""));throw qr(Qo(u,i)),je}function Ot(i){var u=i.stateNode,p=i.type,g=i.memoizedProps;switch(u[qe]=i,u[ut]=g,p){case"dialog":rr("cancel",u),rr("close",u);break;case"iframe":case"object":case"embed":rr("load",u);break;case"video":case"audio":for(p=0;p<lh.length;p++)rr(lh[p],u);break;case"source":rr("error",u);break;case"img":case"image":case"link":rr("error",u),rr("load",u);break;case"details":rr("toggle",u);break;case"input":rr("invalid",u),Xc(u,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),bs(u);break;case"select":rr("invalid",u);break;case"textarea":rr("invalid",u),ol(u,g.value,g.defaultValue,g.children),bs(u)}p=g.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||u.textContent===""+p||g.suppressHydrationWarning===!0||nE(u.textContent,p)?(g.popover!=null&&(rr("beforetoggle",u),rr("toggle",u)),g.onScroll!=null&&rr("scroll",u),g.onScrollEnd!=null&&rr("scrollend",u),g.onClick!=null&&(u.onclick=dy),u=!0):u=!1,u||Ue(i)}function gn(i){for(L=i.return;L;)switch(L.tag){case 5:case 13:Oe=!1;return;case 27:case 3:Oe=!0;return;default:L=L.return}}function jn(i){if(i!==L)return!1;if(!ee)return gn(i),ee=!0,!1;var u=i.tag,p;if((p=u!==3&&u!==27)&&((p=u===5)&&(p=i.type,p=!(p!=="form"&&p!=="button")||Fx(i.type,i.memoizedProps)),p=!p),p&&Y&&Ue(i),gn(i),u===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,u=0;i;){if(i.nodeType===8)if(p=i.data,p==="/$"){if(u===0){Y=is(i.nextSibling);break e}u--}else p!=="$"&&p!=="$!"&&p!=="$?"||u++;i=i.nextSibling}Y=null}}else u===27?(u=Y,pc(i.type)?(i=Vx,Vx=null,Y=i):Y=u):Y=L?is(i.stateNode.nextSibling):null;return!0}function lr(){Y=L=null,ee=!1}function Sn(){var i=ve;return i!==null&&(Sa===null?Sa=i:Sa.push.apply(Sa,i),ve=null),i}function qr(i){ve===null?ve=[i]:ve.push(i)}var Ao=G(null),ga=null,ya=null;function va(i,u,p){ce(Ao,u._currentValue),u._currentValue=p}function bi(i){i._currentValue=Ao.current,ne(Ao)}function Fp(i,u,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&u)!==u?(i.childLanes|=u,g!==null&&(g.childLanes|=u)):g!==null&&(g.childLanes&u)!==u&&(g.childLanes|=u),i===p)break;i=i.return}}function zd(i,u,p,g){var E=i.child;for(E!==null&&(E.return=i);E!==null;){var D=E.dependencies;if(D!==null){var J=E.child;D=D.firstContext;e:for(;D!==null;){var re=D;D=E;for(var xe=0;xe<u.length;xe++)if(re.context===u[xe]){D.lanes|=p,re=D.alternate,re!==null&&(re.lanes|=p),Fp(D.return,p,i),g||(J=null);break e}D=re.next}}else if(E.tag===18){if(J=E.return,J===null)throw Error(r(341));J.lanes|=p,D=J.alternate,D!==null&&(D.lanes|=p),Fp(J,p,i),J=null}else J=E.child;if(J!==null)J.return=E;else for(J=E;J!==null;){if(J===i){J=null;break}if(E=J.sibling,E!==null){E.return=J.return,J=E;break}J=J.return}E=J}}function gu(i,u,p,g){i=null;for(var E=u,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 J=E.alternate;if(J===null)throw Error(r(387));if(J=J.memoizedProps,J!==null){var re=E.type;rn(E.pendingProps.value,J.value)||(i!==null?i.push(re):i=[re])}}else if(E===le.current){if(J=E.alternate,J===null)throw Error(r(387));J.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(hh):i=[hh])}E=E.return}i!==null&&zd(u,i,p,g),u.flags|=262144}function Fd(i){for(i=i.firstContext;i!==null;){if(!rn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function gl(i){ga=i,ya=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function to(i){return Ag(ga,i)}function Rs(i,u){return ga===null&&gl(i),Ag(i,u)}function Ag(i,u){var p=u._currentValue;if(u={context:u,memoizedValue:p,next:null},ya===null){if(i===null)throw Error(r(308));ya=u,i.dependencies={lanes:0,firstContext:u},i.flags|=524288}else ya=ya.next=u;return p}var YL=typeof AbortController<"u"?AbortController:function(){var i=[],u=this.signal={aborted:!1,addEventListener:function(p,g){i.push(g)}};this.abort=function(){u.aborted=!0,i.forEach(function(p){return p()})}},KL=e.unstable_scheduleCallback,GL=e.unstable_NormalPriority,Eo={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function E0(){return{controller:new YL,data:new Map,refCount:0}}function Bp(i){i.refCount--,i.refCount===0&&KL(GL,function(){i.controller.abort()})}var Up=null,O0=0,Bd=0,Ud=null;function QL(i,u){if(Up===null){var p=Up=[];O0=0,Bd=$x(),Ud={status:"pending",value:void 0,then:function(g){p.push(g)}}}return O0++,u.then(Vk,Vk),u}function Vk(){if(--O0===0&&Up!==null){Ud!==null&&(Ud.status="fulfilled");var i=Up;Up=null,Bd=0,Ud=null;for(var u=0;u<i.length;u++)(0,i[u])()}}function XL(i,u){var p=[],g={status:"pending",value:null,reason:null,then:function(E){p.push(E)}};return i.then(function(){g.status="fulfilled",g.value=u;for(var E=0;E<p.length;E++)(0,p[E])(u)},function(E){for(g.status="rejected",g.reason=E,E=0;E<p.length;E++)(0,p[E])(void 0)}),g}var Hk=j.S;j.S=function(i,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&QL(i,u),Hk!==null&&Hk(i,u)};var yu=G(null);function R0(){var i=yu.current;return i!==null?i:Br.pooledCache}function jg(i,u){u===null?ce(yu,yu.current):ce(yu,u.pool)}function Wk(){var i=R0();return i===null?null:{parent:Eo._currentValue,pool:i}}var _p=Error(r(460)),qk=Error(r(474)),Ng=Error(r(542)),$0={then:function(){}};function Yk(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Ig(){}function Kk(i,u,p){switch(p=i[p],p===void 0?i.push(u):p!==u&&(u.then(Ig,Ig),u=p),u.status){case"fulfilled":return u.value;case"rejected":throw i=u.reason,Qk(i),i;default:if(typeof u.status=="string")u.then(Ig,Ig);else{if(i=Br,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=u,i.status="pending",i.then(function(g){if(u.status==="pending"){var E=u;E.status="fulfilled",E.value=g}},function(g){if(u.status==="pending"){var E=u;E.status="rejected",E.reason=g}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw i=u.reason,Qk(i),i}throw Vp=u,_p}}var Vp=null;function Gk(){if(Vp===null)throw Error(r(459));var i=Vp;return Vp=null,i}function Qk(i){if(i===_p||i===Ng)throw Error(r(483))}var Jl=!1;function P0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function D0(i,u){i=i.updateQueue,u.updateQueue===i&&(u.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function ec(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function tc(i,u,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(kr&2)!==0){var E=g.pending;return E===null?u.next=u:(u.next=E.next,E.next=u),g.pending=u,u=hu(i),pu(i,null,p),u}return gi(i,g,u,p),hu(i)}function Hp(i,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194048)!==0)){var g=u.lanes;g&=i.pendingLanes,p|=g,u.lanes=p,zn(i,p)}}function A0(i,u){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 J={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};D===null?E=D=J:D=D.next=J,p=p.next}while(p!==null);D===null?E=D=u:D=D.next=u}else E=D=u;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=u:i.next=u,p.lastBaseUpdate=u}var j0=!1;function Wp(){if(j0){var i=Ud;if(i!==null)throw i}}function qp(i,u,p,g){j0=!1;var E=i.updateQueue;Jl=!1;var D=E.firstBaseUpdate,J=E.lastBaseUpdate,re=E.shared.pending;if(re!==null){E.shared.pending=null;var xe=re,_e=xe.next;xe.next=null,J===null?D=_e:J.next=_e,J=xe;var dt=i.alternate;dt!==null&&(dt=dt.updateQueue,re=dt.lastBaseUpdate,re!==J&&(re===null?dt.firstBaseUpdate=_e:re.next=_e,dt.lastBaseUpdate=xe))}if(D!==null){var xt=E.baseState;J=0,dt=_e=xe=null,re=D;do{var Ye=re.lane&-536870913,Qe=Ye!==re.lane;if(Qe?(dr&Ye)===Ye:(g&Ye)===Ye){Ye!==0&&Ye===Bd&&(j0=!0),dt!==null&&(dt=dt.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var Nn=i,$n=re;Ye=u;var Ar=p;switch($n.tag){case 1:if(Nn=$n.payload,typeof Nn=="function"){xt=Nn.call(Ar,xt,Ye);break e}xt=Nn;break e;case 3:Nn.flags=Nn.flags&-65537|128;case 0:if(Nn=$n.payload,Ye=typeof Nn=="function"?Nn.call(Ar,xt,Ye):Nn,Ye==null)break e;xt=c({},xt,Ye);break e;case 2:Jl=!0}}Ye=re.callback,Ye!==null&&(i.flags|=64,Qe&&(i.flags|=8192),Qe=E.callbacks,Qe===null?E.callbacks=[Ye]:Qe.push(Ye))}else Qe={lane:Ye,tag:re.tag,payload:re.payload,callback:re.callback,next:null},dt===null?(_e=dt=Qe,xe=xt):dt=dt.next=Qe,J|=Ye;if(re=re.next,re===null){if(re=E.shared.pending,re===null)break;Qe=re,re=Qe.next,Qe.next=null,E.lastBaseUpdate=Qe,E.shared.pending=null}}while(!0);dt===null&&(xe=xt),E.baseState=xe,E.firstBaseUpdate=_e,E.lastBaseUpdate=dt,D===null&&(E.shared.lanes=0),cc|=J,i.lanes=J,i.memoizedState=xt}}function Xk(i,u){if(typeof i!="function")throw Error(r(191,i));i.call(u)}function Zk(i,u){var p=i.callbacks;if(p!==null)for(i.callbacks=null,i=0;i<p.length;i++)Xk(p[i],u)}var _d=G(null),Lg=G(0);function Jk(i,u){i=Cl,ce(Lg,i),ce(_d,u),Cl=i|u.baseLanes}function N0(){ce(Lg,Cl),ce(_d,_d.current)}function I0(){Cl=Lg.current,ne(_d),ne(Lg)}var nc=0,Zn=null,Pr=null,So=null,zg=!1,Vd=!1,vu=!1,Fg=0,Yp=0,Hd=null,ZL=0;function go(){throw Error(r(321))}function L0(i,u){if(u===null)return!1;for(var p=0;p<u.length&&p<i.length;p++)if(!rn(i[p],u[p]))return!1;return!0}function z0(i,u,p,g,E,D){return nc=D,Zn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,j.H=i===null||i.memoizedState===null?IT:LT,vu=!1,D=p(g,E),vu=!1,Vd&&(D=tT(u,p,g,E)),eT(i),D}function eT(i){j.H=Wg;var u=Pr!==null&&Pr.next!==null;if(nc=0,So=Pr=Zn=null,zg=!1,Yp=0,Hd=null,u)throw Error(r(300));i===null||jo||(i=i.dependencies,i!==null&&Fd(i)&&(jo=!0))}function tT(i,u,p,g){Zn=i;var E=0;do{if(Vd&&(Hd=null),Yp=0,Vd=!1,25<=E)throw Error(r(301));if(E+=1,So=Pr=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=az,D=u(p,g)}while(Vd);return D}function JL(){var i=j.H,u=i.useState()[0];return u=typeof u.then=="function"?Kp(u):u,i=i.useState()[0],(Pr!==null?Pr.memoizedState:null)!==i&&(Zn.flags|=1024),u}function F0(){var i=Fg!==0;return Fg=0,i}function B0(i,u,p){u.updateQueue=i.updateQueue,u.flags&=-2053,i.lanes&=~p}function U0(i){if(zg){for(i=i.memoizedState;i!==null;){var u=i.queue;u!==null&&(u.pending=null),i=i.next}zg=!1}nc=0,So=Pr=Zn=null,Vd=!1,Yp=Fg=0,Hd=null}function ba(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return So===null?Zn.memoizedState=So=i:So=So.next=i,So}function wo(){if(Pr===null){var i=Zn.alternate;i=i!==null?i.memoizedState:null}else i=Pr.next;var u=So===null?Zn.memoizedState:So.next;if(u!==null)So=u,Pr=i;else{if(i===null)throw Zn.alternate===null?Error(r(467)):Error(r(310));Pr=i,i={memoizedState:Pr.memoizedState,baseState:Pr.baseState,baseQueue:Pr.baseQueue,queue:Pr.queue,next:null},So===null?Zn.memoizedState=So=i:So=So.next=i}return So}function _0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kp(i){var u=Yp;return Yp+=1,Hd===null&&(Hd=[]),i=Kk(Hd,i,u),u=Zn,(So===null?u.memoizedState:So.next)===null&&(u=u.alternate,j.H=u===null||u.memoizedState===null?IT:LT),i}function Bg(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Kp(i);if(i.$$typeof===M)return to(i)}throw Error(r(438,String(i)))}function V0(i){var u=null,p=Zn.updateQueue;if(p!==null&&(u=p.memoCache),u==null){var g=Zn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(u={data:g.data.map(function(E){return E.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),p===null&&(p=_0(),Zn.updateQueue=p),p.memoCache=u,p=u.data[u.index],p===void 0)for(p=u.data[u.index]=Array(i),g=0;g<i;g++)p[g]=W;return u.index++,p}function yl(i,u){return typeof u=="function"?u(i):u}function Ug(i){var u=wo();return H0(u,Pr,i)}function H0(i,u,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 J=E.next;E.next=D.next,D.next=J}u.baseQueue=E=D,g.pending=null}if(D=i.baseState,E===null)i.memoizedState=D;else{u=E.next;var re=J=null,xe=null,_e=u,dt=!1;do{var xt=_e.lane&-536870913;if(xt!==_e.lane?(dr&xt)===xt:(nc&xt)===xt){var Ye=_e.revertLane;if(Ye===0)xe!==null&&(xe=xe.next={lane:0,revertLane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),xt===Bd&&(dt=!0);else if((nc&Ye)===Ye){_e=_e.next,Ye===Bd&&(dt=!0);continue}else xt={lane:0,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},xe===null?(re=xe=xt,J=D):xe=xe.next=xt,Zn.lanes|=Ye,cc|=Ye;xt=_e.action,vu&&p(D,xt),D=_e.hasEagerState?_e.eagerState:p(D,xt)}else Ye={lane:xt,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},xe===null?(re=xe=Ye,J=D):xe=xe.next=Ye,Zn.lanes|=xt,cc|=xt;_e=_e.next}while(_e!==null&&_e!==u);if(xe===null?J=D:xe.next=re,!rn(D,i.memoizedState)&&(jo=!0,dt&&(p=Ud,p!==null)))throw p;i.memoizedState=D,i.baseState=J,i.baseQueue=xe,g.lastRenderedState=D}return E===null&&(g.lanes=0),[i.memoizedState,g.dispatch]}function W0(i){var u=wo(),p=u.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,E=p.pending,D=u.memoizedState;if(E!==null){p.pending=null;var J=E=E.next;do D=i(D,J.action),J=J.next;while(J!==E);rn(D,u.memoizedState)||(jo=!0),u.memoizedState=D,u.baseQueue===null&&(u.baseState=D),p.lastRenderedState=D}return[D,g]}function nT(i,u,p){var g=Zn,E=wo(),D=ee;if(D){if(p===void 0)throw Error(r(407));p=p()}else p=u();var J=!rn((Pr||E).memoizedState,p);J&&(E.memoizedState=p,jo=!0),E=E.queue;var re=aT.bind(null,g,E,i);if(Gp(2048,8,re,[i]),E.getSnapshot!==u||J||So!==null&&So.memoizedState.tag&1){if(g.flags|=2048,Wd(9,_g(),oT.bind(null,g,E,p,u),null),Br===null)throw Error(r(349));D||(nc&124)!==0||rT(g,u,p)}return p}function rT(i,u,p){i.flags|=16384,i={getSnapshot:u,value:p},u=Zn.updateQueue,u===null?(u=_0(),Zn.updateQueue=u,u.stores=[i]):(p=u.stores,p===null?u.stores=[i]:p.push(i))}function oT(i,u,p,g){u.value=p,u.getSnapshot=g,iT(u)&&sT(i)}function aT(i,u,p){return p(function(){iT(u)&&sT(i)})}function iT(i){var u=i.getSnapshot;i=i.value;try{var p=u();return!rn(i,p)}catch{return!0}}function sT(i){var u=rs(i,2);u!==null&&Ga(u,i,2)}function q0(i){var u=ba();if(typeof i=="function"){var p=i;if(i=p(),vu){Ne(!0);try{p()}finally{Ne(!1)}}}return u.memoizedState=u.baseState=i,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:i},u}function lT(i,u,p,g){return i.baseState=p,H0(i,Pr,typeof g=="function"?g:yl)}function ez(i,u,p,g,E){if(Hg(i))throw Error(r(485));if(i=u.action,i!==null){var D={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(J){D.listeners.push(J)}};j.T!==null?p(!0):D.isTransition=!1,g(D),p=u.pending,p===null?(D.next=u.pending=D,cT(u,D)):(D.next=p.next,u.pending=p.next=D)}}function cT(i,u){var p=u.action,g=u.payload,E=i.state;if(u.isTransition){var D=j.T,J={};j.T=J;try{var re=p(E,g),xe=j.S;xe!==null&&xe(J,re),uT(i,u,re)}catch(_e){Y0(i,u,_e)}finally{j.T=D}}else try{D=p(E,g),uT(i,u,D)}catch(_e){Y0(i,u,_e)}}function uT(i,u,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(g){dT(i,u,g)},function(g){return Y0(i,u,g)}):dT(i,u,p)}function dT(i,u,p){u.status="fulfilled",u.value=p,fT(u),i.state=p,u=i.pending,u!==null&&(p=u.next,p===u?i.pending=null:(p=p.next,u.next=p,cT(i,p)))}function Y0(i,u,p){var g=i.pending;if(i.pending=null,g!==null){g=g.next;do u.status="rejected",u.reason=p,fT(u),u=u.next;while(u!==g)}i.action=null}function fT(i){i=i.listeners;for(var u=0;u<i.length;u++)(0,i[u])()}function pT(i,u){return u}function hT(i,u){if(ee){var p=Br.formState;if(p!==null){e:{var g=Zn;if(ee){if(Y){t:{for(var E=Y,D=Oe;E.nodeType!==8;){if(!D){E=null;break t}if(E=is(E.nextSibling),E===null){E=null;break t}}D=E.data,E=D==="F!"||D==="F"?E:null}if(E){Y=is(E.nextSibling),g=E.data==="F!";break e}}Ue(g)}g=!1}g&&(u=p[0])}}return p=ba(),p.memoizedState=p.baseState=u,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pT,lastRenderedState:u},p.queue=g,p=AT.bind(null,Zn,g),g.dispatch=p,g=q0(!1),D=Z0.bind(null,Zn,!1,g.queue),g=ba(),E={state:u,dispatch:null,action:i,pending:null},g.queue=E,p=ez.bind(null,Zn,E,D,p),E.dispatch=p,g.memoizedState=i,[u,p,!1]}function mT(i){var u=wo();return gT(u,Pr,i)}function gT(i,u,p){if(u=H0(i,u,pT)[0],i=Ug(yl)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var g=Kp(u)}catch(J){throw J===_p?Ng:J}else g=u;u=wo();var E=u.queue,D=E.dispatch;return p!==u.memoizedState&&(Zn.flags|=2048,Wd(9,_g(),tz.bind(null,E,p),null)),[g,D,i]}function tz(i,u){i.action=u}function yT(i){var u=wo(),p=Pr;if(p!==null)return gT(u,p,i);wo(),u=u.memoizedState,p=wo();var g=p.queue.dispatch;return p.memoizedState=i,[u,g,!1]}function Wd(i,u,p,g){return i={tag:i,create:p,deps:g,inst:u,next:null},u=Zn.updateQueue,u===null&&(u=_0(),Zn.updateQueue=u),p=u.lastEffect,p===null?u.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,u.lastEffect=i),i}function _g(){return{destroy:void 0,resource:void 0}}function vT(){return wo().memoizedState}function Vg(i,u,p,g){var E=ba();g=g===void 0?null:g,Zn.flags|=i,E.memoizedState=Wd(1|u,_g(),p,g)}function Gp(i,u,p,g){var E=wo();g=g===void 0?null:g;var D=E.memoizedState.inst;Pr!==null&&g!==null&&L0(g,Pr.memoizedState.deps)?E.memoizedState=Wd(u,D,p,g):(Zn.flags|=i,E.memoizedState=Wd(1|u,D,p,g))}function bT(i,u){Vg(8390656,8,i,u)}function xT(i,u){Gp(2048,8,i,u)}function ST(i,u){return Gp(4,2,i,u)}function wT(i,u){return Gp(4,4,i,u)}function CT(i,u){if(typeof u=="function"){i=i();var p=u(i);return function(){typeof p=="function"?p():u(null)}}if(u!=null)return i=i(),u.current=i,function(){u.current=null}}function kT(i,u,p){p=p!=null?p.concat([i]):null,Gp(4,4,CT.bind(null,u,i),p)}function K0(){}function TT(i,u){var p=wo();u=u===void 0?null:u;var g=p.memoizedState;return u!==null&&L0(u,g[1])?g[0]:(p.memoizedState=[i,u],i)}function MT(i,u){var p=wo();u=u===void 0?null:u;var g=p.memoizedState;if(u!==null&&L0(u,g[1]))return g[0];if(g=i(),vu){Ne(!0);try{i()}finally{Ne(!1)}}return p.memoizedState=[g,u],g}function G0(i,u,p){return p===void 0||(nc&1073741824)!==0?i.memoizedState=u:(i.memoizedState=p,i=RM(),Zn.lanes|=i,cc|=i,p)}function ET(i,u,p,g){return rn(p,u)?p:_d.current!==null?(i=G0(i,p,g),rn(i,u)||(jo=!0),i):(nc&42)===0?(jo=!0,i.memoizedState=p):(i=RM(),Zn.lanes|=i,cc|=i,u)}function OT(i,u,p,g,E){var D=X.p;X.p=D!==0&&8>D?D:8;var J=j.T,re={};j.T=re,Z0(i,!1,u,p);try{var xe=E(),_e=j.S;if(_e!==null&&_e(re,xe),xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var dt=XL(xe,g);Qp(i,u,dt,Ka(i))}else Qp(i,u,g,Ka(i))}catch(xt){Qp(i,u,{then:function(){},status:"rejected",reason:xt},Ka())}finally{X.p=D,j.T=J}}function nz(){}function Q0(i,u,p,g){if(i.tag!==5)throw Error(r(476));var E=RT(i).queue;OT(i,E,u,Q,p===null?nz:function(){return $T(i),p(g)})}function RT(i){var u=i.memoizedState;if(u!==null)return u;u={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:Q},next:null};var p={};return u.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:p},next:null},i.memoizedState=u,i=i.alternate,i!==null&&(i.memoizedState=u),u}function $T(i){var u=RT(i).next.queue;Qp(i,u,{},Ka())}function X0(){return to(hh)}function PT(){return wo().memoizedState}function DT(){return wo().memoizedState}function rz(i){for(var u=i.return;u!==null;){switch(u.tag){case 24:case 3:var p=Ka();i=ec(p);var g=tc(u,i,p);g!==null&&(Ga(g,u,p),Hp(g,u,p)),u={cache:E0()},i.payload=u;return}u=u.return}}function oz(i,u,p){var g=Ka();p={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Hg(i)?jT(u,p):(p=Ad(i,u,p,g),p!==null&&(Ga(p,i,g),NT(p,u,g)))}function AT(i,u,p){var g=Ka();Qp(i,u,p,g)}function Qp(i,u,p,g){var E={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Hg(i))jT(u,E);else{var D=i.alternate;if(i.lanes===0&&(D===null||D.lanes===0)&&(D=u.lastRenderedReducer,D!==null))try{var J=u.lastRenderedState,re=D(J,p);if(E.hasEagerState=!0,E.eagerState=re,rn(re,J))return gi(i,u,E,0),Br===null&&Zl(),!1}catch{}finally{}if(p=Ad(i,u,E,g),p!==null)return Ga(p,i,g),NT(p,u,g),!0}return!1}function Z0(i,u,p,g){if(g={lane:2,revertLane:$x(),action:g,hasEagerState:!1,eagerState:null,next:null},Hg(i)){if(u)throw Error(r(479))}else u=Ad(i,p,g,2),u!==null&&Ga(u,i,2)}function Hg(i){var u=i.alternate;return i===Zn||u!==null&&u===Zn}function jT(i,u){Vd=zg=!0;var p=i.pending;p===null?u.next=u:(u.next=p.next,p.next=u),i.pending=u}function NT(i,u,p){if((p&4194048)!==0){var g=u.lanes;g&=i.pendingLanes,p|=g,u.lanes=p,zn(i,p)}}var Wg={readContext:to,use:Bg,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go},IT={readContext:to,use:Bg,useCallback:function(i,u){return ba().memoizedState=[i,u===void 0?null:u],i},useContext:to,useEffect:bT,useImperativeHandle:function(i,u,p){p=p!=null?p.concat([i]):null,Vg(4194308,4,CT.bind(null,u,i),p)},useLayoutEffect:function(i,u){return Vg(4194308,4,i,u)},useInsertionEffect:function(i,u){Vg(4,2,i,u)},useMemo:function(i,u){var p=ba();u=u===void 0?null:u;var g=i();if(vu){Ne(!0);try{i()}finally{Ne(!1)}}return p.memoizedState=[g,u],g},useReducer:function(i,u,p){var g=ba();if(p!==void 0){var E=p(u);if(vu){Ne(!0);try{p(u)}finally{Ne(!1)}}}else E=u;return g.memoizedState=g.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},g.queue=i,i=i.dispatch=oz.bind(null,Zn,i),[g.memoizedState,i]},useRef:function(i){var u=ba();return i={current:i},u.memoizedState=i},useState:function(i){i=q0(i);var u=i.queue,p=AT.bind(null,Zn,u);return u.dispatch=p,[i.memoizedState,p]},useDebugValue:K0,useDeferredValue:function(i,u){var p=ba();return G0(p,i,u)},useTransition:function(){var i=q0(!1);return i=OT.bind(null,Zn,i.queue,!0,!1),ba().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,u,p){var g=Zn,E=ba();if(ee){if(p===void 0)throw Error(r(407));p=p()}else{if(p=u(),Br===null)throw Error(r(349));(dr&124)!==0||rT(g,u,p)}E.memoizedState=p;var D={value:p,getSnapshot:u};return E.queue=D,bT(aT.bind(null,g,D,i),[i]),g.flags|=2048,Wd(9,_g(),oT.bind(null,g,D,p,u),null),p},useId:function(){var i=ba(),u=Br.identifierPrefix;if(ee){var p=mn,g=Va;p=(g&~(1<<32-he(g)-1)).toString(32)+p,u="«"+u+"R"+p,p=Fg++,0<p&&(u+="H"+p.toString(32)),u+="»"}else p=ZL++,u="«"+u+"r"+p.toString(32)+"»";return i.memoizedState=u},useHostTransitionStatus:X0,useFormState:hT,useActionState:hT,useOptimistic:function(i){var u=ba();u.memoizedState=u.baseState=i;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=p,u=Z0.bind(null,Zn,!0,p),p.dispatch=u,[i,u]},useMemoCache:V0,useCacheRefresh:function(){return ba().memoizedState=rz.bind(null,Zn)}},LT={readContext:to,use:Bg,useCallback:TT,useContext:to,useEffect:xT,useImperativeHandle:kT,useInsertionEffect:ST,useLayoutEffect:wT,useMemo:MT,useReducer:Ug,useRef:vT,useState:function(){return Ug(yl)},useDebugValue:K0,useDeferredValue:function(i,u){var p=wo();return ET(p,Pr.memoizedState,i,u)},useTransition:function(){var i=Ug(yl)[0],u=wo().memoizedState;return[typeof i=="boolean"?i:Kp(i),u]},useSyncExternalStore:nT,useId:PT,useHostTransitionStatus:X0,useFormState:mT,useActionState:mT,useOptimistic:function(i,u){var p=wo();return lT(p,Pr,i,u)},useMemoCache:V0,useCacheRefresh:DT},az={readContext:to,use:Bg,useCallback:TT,useContext:to,useEffect:xT,useImperativeHandle:kT,useInsertionEffect:ST,useLayoutEffect:wT,useMemo:MT,useReducer:W0,useRef:vT,useState:function(){return W0(yl)},useDebugValue:K0,useDeferredValue:function(i,u){var p=wo();return Pr===null?G0(p,i,u):ET(p,Pr.memoizedState,i,u)},useTransition:function(){var i=W0(yl)[0],u=wo().memoizedState;return[typeof i=="boolean"?i:Kp(i),u]},useSyncExternalStore:nT,useId:PT,useHostTransitionStatus:X0,useFormState:yT,useActionState:yT,useOptimistic:function(i,u){var p=wo();return Pr!==null?lT(p,Pr,i,u):(p.baseState=i,[i,p.queue.dispatch])},useMemoCache:V0,useCacheRefresh:DT},qd=null,Xp=0;function qg(i){var u=Xp;return Xp+=1,qd===null&&(qd=[]),Kk(qd,i,u)}function Zp(i,u){u=u.props.ref,i.ref=u!==void 0?u:null}function Yg(i,u){throw u.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(u),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":i)))}function zT(i){var u=i._init;return u(i._payload)}function FT(i){function u(Ie,Re){if(i){var Be=Ie.deletions;Be===null?(Ie.deletions=[Re],Ie.flags|=16):Be.push(Re)}}function p(Ie,Re){if(!i)return null;for(;Re!==null;)u(Ie,Re),Re=Re.sibling;return null}function g(Ie){for(var Re=new Map;Ie!==null;)Ie.key!==null?Re.set(Ie.key,Ie):Re.set(Ie.index,Ie),Ie=Ie.sibling;return Re}function E(Ie,Re){return Ie=yi(Ie,Re),Ie.index=0,Ie.sibling=null,Ie}function D(Ie,Re,Be){return Ie.index=Be,i?(Be=Ie.alternate,Be!==null?(Be=Be.index,Be<Re?(Ie.flags|=67108866,Re):Be):(Ie.flags|=67108866,Re)):(Ie.flags|=1048576,Re)}function J(Ie){return i&&Ie.alternate===null&&(Ie.flags|=67108866),Ie}function re(Ie,Re,Be,ht){return Re===null||Re.tag!==6?(Re=Lp(Be,Ie.mode,ht),Re.return=Ie,Re):(Re=E(Re,Be),Re.return=Ie,Re)}function xe(Ie,Re,Be,ht){var en=Be.type;return en===b?dt(Ie,Re,Be.props.children,ht,Be.key):Re!==null&&(Re.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===V&&zT(en)===Re.type)?(Re=E(Re,Be.props),Zp(Re,Be),Re.return=Ie,Re):(Re=Id(Be.type,Be.key,Be.props,null,Ie.mode,ht),Zp(Re,Be),Re.return=Ie,Re)}function _e(Ie,Re,Be,ht){return Re===null||Re.tag!==4||Re.stateNode.containerInfo!==Be.containerInfo||Re.stateNode.implementation!==Be.implementation?(Re=zp(Be,Ie.mode,ht),Re.return=Ie,Re):(Re=E(Re,Be.children||[]),Re.return=Ie,Re)}function dt(Ie,Re,Be,ht,en){return Re===null||Re.tag!==7?(Re=vi(Be,Ie.mode,ht,en),Re.return=Ie,Re):(Re=E(Re,Be),Re.return=Ie,Re)}function xt(Ie,Re,Be){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return Re=Lp(""+Re,Ie.mode,Be),Re.return=Ie,Re;if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case y:return Be=Id(Re.type,Re.key,Re.props,null,Ie.mode,Be),Zp(Be,Re),Be.return=Ie,Be;case v:return Re=zp(Re,Ie.mode,Be),Re.return=Ie,Re;case V:var ht=Re._init;return Re=ht(Re._payload),xt(Ie,Re,Be)}if(_(Re)||k(Re))return Re=vi(Re,Ie.mode,Be,null),Re.return=Ie,Re;if(typeof Re.then=="function")return xt(Ie,qg(Re),Be);if(Re.$$typeof===M)return xt(Ie,Rs(Ie,Re),Be);Yg(Ie,Re)}return null}function Ye(Ie,Re,Be,ht){var en=Re!==null?Re.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return en!==null?null:re(Ie,Re,""+Be,ht);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:return Be.key===en?xe(Ie,Re,Be,ht):null;case v:return Be.key===en?_e(Ie,Re,Be,ht):null;case V:return en=Be._init,Be=en(Be._payload),Ye(Ie,Re,Be,ht)}if(_(Be)||k(Be))return en!==null?null:dt(Ie,Re,Be,ht,null);if(typeof Be.then=="function")return Ye(Ie,Re,qg(Be),ht);if(Be.$$typeof===M)return Ye(Ie,Re,Rs(Ie,Be),ht);Yg(Ie,Be)}return null}function Qe(Ie,Re,Be,ht,en){if(typeof ht=="string"&&ht!==""||typeof ht=="number"||typeof ht=="bigint")return Ie=Ie.get(Be)||null,re(Re,Ie,""+ht,en);if(typeof ht=="object"&&ht!==null){switch(ht.$$typeof){case y:return Ie=Ie.get(ht.key===null?Be:ht.key)||null,xe(Re,Ie,ht,en);case v:return Ie=Ie.get(ht.key===null?Be:ht.key)||null,_e(Re,Ie,ht,en);case V:var Jn=ht._init;return ht=Jn(ht._payload),Qe(Ie,Re,Be,ht,en)}if(_(ht)||k(ht))return Ie=Ie.get(Be)||null,dt(Re,Ie,ht,en,null);if(typeof ht.then=="function")return Qe(Ie,Re,Be,qg(ht),en);if(ht.$$typeof===M)return Qe(Ie,Re,Be,Rs(Re,ht),en);Yg(Re,ht)}return null}function Nn(Ie,Re,Be,ht){for(var en=null,Jn=null,hn=Re,Pn=Re=0,Io=null;hn!==null&&Pn<Be.length;Pn++){hn.index>Pn?(Io=hn,hn=null):Io=hn.sibling;var pr=Ye(Ie,hn,Be[Pn],ht);if(pr===null){hn===null&&(hn=Io);break}i&&hn&&pr.alternate===null&&u(Ie,hn),Re=D(pr,Re,Pn),Jn===null?en=pr:Jn.sibling=pr,Jn=pr,hn=Io}if(Pn===Be.length)return p(Ie,hn),ee&&Ha(Ie,Pn),en;if(hn===null){for(;Pn<Be.length;Pn++)hn=xt(Ie,Be[Pn],ht),hn!==null&&(Re=D(hn,Re,Pn),Jn===null?en=hn:Jn.sibling=hn,Jn=hn);return ee&&Ha(Ie,Pn),en}for(hn=g(hn);Pn<Be.length;Pn++)Io=Qe(hn,Ie,Pn,Be[Pn],ht),Io!==null&&(i&&Io.alternate!==null&&hn.delete(Io.key===null?Pn:Io.key),Re=D(Io,Re,Pn),Jn===null?en=Io:Jn.sibling=Io,Jn=Io);return i&&hn.forEach(function(vc){return u(Ie,vc)}),ee&&Ha(Ie,Pn),en}function $n(Ie,Re,Be,ht){if(Be==null)throw Error(r(151));for(var en=null,Jn=null,hn=Re,Pn=Re=0,Io=null,pr=Be.next();hn!==null&&!pr.done;Pn++,pr=Be.next()){hn.index>Pn?(Io=hn,hn=null):Io=hn.sibling;var vc=Ye(Ie,hn,pr.value,ht);if(vc===null){hn===null&&(hn=Io);break}i&&hn&&vc.alternate===null&&u(Ie,hn),Re=D(vc,Re,Pn),Jn===null?en=vc:Jn.sibling=vc,Jn=vc,hn=Io}if(pr.done)return p(Ie,hn),ee&&Ha(Ie,Pn),en;if(hn===null){for(;!pr.done;Pn++,pr=Be.next())pr=xt(Ie,pr.value,ht),pr!==null&&(Re=D(pr,Re,Pn),Jn===null?en=pr:Jn.sibling=pr,Jn=pr);return ee&&Ha(Ie,Pn),en}for(hn=g(hn);!pr.done;Pn++,pr=Be.next())pr=Qe(hn,Ie,Pn,pr.value,ht),pr!==null&&(i&&pr.alternate!==null&&hn.delete(pr.key===null?Pn:pr.key),Re=D(pr,Re,Pn),Jn===null?en=pr:Jn.sibling=pr,Jn=pr);return i&&hn.forEach(function(i5){return u(Ie,i5)}),ee&&Ha(Ie,Pn),en}function Ar(Ie,Re,Be,ht){if(typeof Be=="object"&&Be!==null&&Be.type===b&&Be.key===null&&(Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:e:{for(var en=Be.key;Re!==null;){if(Re.key===en){if(en=Be.type,en===b){if(Re.tag===7){p(Ie,Re.sibling),ht=E(Re,Be.props.children),ht.return=Ie,Ie=ht;break e}}else if(Re.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===V&&zT(en)===Re.type){p(Ie,Re.sibling),ht=E(Re,Be.props),Zp(ht,Be),ht.return=Ie,Ie=ht;break e}p(Ie,Re);break}else u(Ie,Re);Re=Re.sibling}Be.type===b?(ht=vi(Be.props.children,Ie.mode,ht,Be.key),ht.return=Ie,Ie=ht):(ht=Id(Be.type,Be.key,Be.props,null,Ie.mode,ht),Zp(ht,Be),ht.return=Ie,Ie=ht)}return J(Ie);case v:e:{for(en=Be.key;Re!==null;){if(Re.key===en)if(Re.tag===4&&Re.stateNode.containerInfo===Be.containerInfo&&Re.stateNode.implementation===Be.implementation){p(Ie,Re.sibling),ht=E(Re,Be.children||[]),ht.return=Ie,Ie=ht;break e}else{p(Ie,Re);break}else u(Ie,Re);Re=Re.sibling}ht=zp(Be,Ie.mode,ht),ht.return=Ie,Ie=ht}return J(Ie);case V:return en=Be._init,Be=en(Be._payload),Ar(Ie,Re,Be,ht)}if(_(Be))return Nn(Ie,Re,Be,ht);if(k(Be)){if(en=k(Be),typeof en!="function")throw Error(r(150));return Be=en.call(Be),$n(Ie,Re,Be,ht)}if(typeof Be.then=="function")return Ar(Ie,Re,qg(Be),ht);if(Be.$$typeof===M)return Ar(Ie,Re,Rs(Ie,Be),ht);Yg(Ie,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(Be=""+Be,Re!==null&&Re.tag===6?(p(Ie,Re.sibling),ht=E(Re,Be),ht.return=Ie,Ie=ht):(p(Ie,Re),ht=Lp(Be,Ie.mode,ht),ht.return=Ie,Ie=ht),J(Ie)):p(Ie,Re)}return function(Ie,Re,Be,ht){try{Xp=0;var en=Ar(Ie,Re,Be,ht);return qd=null,en}catch(hn){if(hn===_p||hn===Ng)throw hn;var Jn=Bo(29,hn,null,Ie.mode);return Jn.lanes=ht,Jn.return=Ie,Jn}finally{}}}var Yd=FT(!0),BT=FT(!1),xi=G(null),$s=null;function rc(i){var u=i.alternate;ce(Oo,Oo.current&1),ce(xi,i),$s===null&&(u===null||_d.current!==null||u.memoizedState!==null)&&($s=i)}function UT(i){if(i.tag===22){if(ce(Oo,Oo.current),ce(xi,i),$s===null){var u=i.alternate;u!==null&&u.memoizedState!==null&&($s=i)}}else oc()}function oc(){ce(Oo,Oo.current),ce(xi,xi.current)}function vl(i){ne(xi),$s===i&&($s=null),ne(Oo)}var Oo=G(0);function Kg(i){for(var u=i;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||_x(p)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===i)break;for(;u.sibling===null;){if(u.return===null||u.return===i)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function J0(i,u,p,g){u=i.memoizedState,p=p(g,u),p=p==null?u:c({},u,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var ex={enqueueSetState:function(i,u,p){i=i._reactInternals;var g=Ka(),E=ec(g);E.payload=u,p!=null&&(E.callback=p),u=tc(i,E,g),u!==null&&(Ga(u,i,g),Hp(u,i,g))},enqueueReplaceState:function(i,u,p){i=i._reactInternals;var g=Ka(),E=ec(g);E.tag=1,E.payload=u,p!=null&&(E.callback=p),u=tc(i,E,g),u!==null&&(Ga(u,i,g),Hp(u,i,g))},enqueueForceUpdate:function(i,u){i=i._reactInternals;var p=Ka(),g=ec(p);g.tag=2,u!=null&&(g.callback=u),u=tc(i,g,p),u!==null&&(Ga(u,i,p),Hp(u,i,p))}};function _T(i,u,p,g,E,D,J){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,D,J):u.prototype&&u.prototype.isPureReactComponent?!gr(p,g)||!gr(E,D):!0}function VT(i,u,p,g){i=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,g),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,g),u.state!==i&&ex.enqueueReplaceState(u,u.state,null)}function bu(i,u){var p=u;if("ref"in u){p={};for(var g in u)g!=="ref"&&(p[g]=u[g])}if(i=i.defaultProps){p===u&&(p=c({},p));for(var E in i)p[E]===void 0&&(p[E]=i[E])}return p}var Gg=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=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(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function HT(i){Gg(i)}function WT(i){console.error(i)}function qT(i){Gg(i)}function Qg(i,u){try{var p=i.onUncaughtError;p(u.value,{componentStack:u.stack})}catch(g){setTimeout(function(){throw g})}}function YT(i,u,p){try{var g=i.onCaughtError;g(p.value,{componentStack:p.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function tx(i,u,p){return p=ec(p),p.tag=3,p.payload={element:null},p.callback=function(){Qg(i,u)},p}function KT(i){return i=ec(i),i.tag=3,i}function GT(i,u,p,g){var E=p.type.getDerivedStateFromError;if(typeof E=="function"){var D=g.value;i.payload=function(){return E(D)},i.callback=function(){YT(u,p,g)}}var J=p.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(i.callback=function(){YT(u,p,g),typeof E!="function"&&(uc===null?uc=new Set([this]):uc.add(this));var re=g.stack;this.componentDidCatch(g.value,{componentStack:re!==null?re:""})})}function iz(i,u,p,g,E){if(p.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(u=p.alternate,u!==null&&gu(u,p,E,!0),p=xi.current,p!==null){switch(p.tag){case 13:return $s===null?Tx():p.alternate===null&&no===0&&(no=3),p.flags&=-257,p.flags|=65536,p.lanes=E,g===$0?p.flags|=16384:(u=p.updateQueue,u===null?p.updateQueue=new Set([g]):u.add(g),Ex(i,g,E)),!1;case 22:return p.flags|=65536,g===$0?p.flags|=16384:(u=p.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([g])},p.updateQueue=u):(p=u.retryQueue,p===null?u.retryQueue=new Set([g]):p.add(g)),Ex(i,g,E)),!1}throw Error(r(435,p.tag))}return Ex(i,g,E),Tx(),!1}if(ee)return u=xi.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=E,g!==je&&(i=Error(r(422),{cause:g}),qr(Qo(i,p)))):(g!==je&&(u=Error(r(423),{cause:g}),qr(Qo(u,p))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,g=Qo(g,p),E=tx(i.stateNode,g,E),A0(i,E),no!==4&&(no=2)),!1;var D=Error(r(520),{cause:g});if(D=Qo(D,p),ah===null?ah=[D]:ah.push(D),no!==4&&(no=2),u===null)return!0;g=Qo(g,p),p=u;do{switch(p.tag){case 3:return p.flags|=65536,i=E&-E,p.lanes|=i,i=tx(p.stateNode,g,i),A0(p,i),!1;case 1:if(u=p.type,D=p.stateNode,(p.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(uc===null||!uc.has(D))))return p.flags|=65536,E&=-E,p.lanes|=E,E=KT(E),GT(E,i,p,g),A0(p,E),!1}p=p.return}while(p!==null);return!1}var QT=Error(r(461)),jo=!1;function Uo(i,u,p,g){u.child=i===null?BT(u,null,p,g):Yd(u,i.child,p,g)}function XT(i,u,p,g,E){p=p.render;var D=u.ref;if("ref"in g){var J={};for(var re in g)re!=="ref"&&(J[re]=g[re])}else J=g;return gl(u),g=z0(i,u,p,J,D,E),re=F0(),i!==null&&!jo?(B0(i,u,E),bl(i,u,E)):(ee&&re&&U(u),u.flags|=1,Uo(i,u,g,E),u.child)}function ZT(i,u,p,g,E){if(i===null){var D=p.type;return typeof D=="function"&&!Nd(D)&&D.defaultProps===void 0&&p.compare===null?(u.tag=15,u.type=D,JT(i,u,D,g,E)):(i=Id(p.type,null,g,u,u.mode,E),i.ref=u.ref,i.return=u,u.child=i)}if(D=i.child,!cx(i,E)){var J=D.memoizedProps;if(p=p.compare,p=p!==null?p:gr,p(J,g)&&i.ref===u.ref)return bl(i,u,E)}return u.flags|=1,i=yi(D,g),i.ref=u.ref,i.return=u,u.child=i}function JT(i,u,p,g,E){if(i!==null){var D=i.memoizedProps;if(gr(D,g)&&i.ref===u.ref)if(jo=!1,u.pendingProps=g=D,cx(i,E))(i.flags&131072)!==0&&(jo=!0);else return u.lanes=i.lanes,bl(i,u,E)}return nx(i,u,p,g,E)}function eM(i,u,p){var g=u.pendingProps,E=g.children,D=i!==null?i.memoizedState:null;if(g.mode==="hidden"){if((u.flags&128)!==0){if(g=D!==null?D.baseLanes|p:p,i!==null){for(E=u.child=i.child,D=0;E!==null;)D=D|E.lanes|E.childLanes,E=E.sibling;u.childLanes=D&~g}else u.childLanes=0,u.child=null;return tM(i,u,g,p)}if((p&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},i!==null&&jg(u,D!==null?D.cachePool:null),D!==null?Jk(u,D):N0(),UT(u);else return u.lanes=u.childLanes=536870912,tM(i,u,D!==null?D.baseLanes|p:p,p)}else D!==null?(jg(u,D.cachePool),Jk(u,D),oc(),u.memoizedState=null):(i!==null&&jg(u,null),N0(),oc());return Uo(i,u,E,p),u.child}function tM(i,u,p,g){var E=R0();return E=E===null?null:{parent:Eo._currentValue,pool:E},u.memoizedState={baseLanes:p,cachePool:E},i!==null&&jg(u,null),N0(),UT(u),i!==null&&gu(i,u,g,!0),null}function Xg(i,u){var p=u.ref;if(p===null)i!==null&&i.ref!==null&&(u.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(i===null||i.ref!==p)&&(u.flags|=4194816)}}function nx(i,u,p,g,E){return gl(u),p=z0(i,u,p,g,void 0,E),g=F0(),i!==null&&!jo?(B0(i,u,E),bl(i,u,E)):(ee&&g&&U(u),u.flags|=1,Uo(i,u,p,E),u.child)}function nM(i,u,p,g,E,D){return gl(u),u.updateQueue=null,p=tT(u,g,p,E),eT(i),g=F0(),i!==null&&!jo?(B0(i,u,D),bl(i,u,D)):(ee&&g&&U(u),u.flags|=1,Uo(i,u,p,D),u.child)}function rM(i,u,p,g,E){if(gl(u),u.stateNode===null){var D=Ua,J=p.contextType;typeof J=="object"&&J!==null&&(D=to(J)),D=new p(g,D),u.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=ex,u.stateNode=D,D._reactInternals=u,D=u.stateNode,D.props=g,D.state=u.memoizedState,D.refs={},P0(u),J=p.contextType,D.context=typeof J=="object"&&J!==null?to(J):Ua,D.state=u.memoizedState,J=p.getDerivedStateFromProps,typeof J=="function"&&(J0(u,p,J,g),D.state=u.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(J=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),J!==D.state&&ex.enqueueReplaceState(D,D.state,null),qp(u,g,D,E),Wp(),D.state=u.memoizedState),typeof D.componentDidMount=="function"&&(u.flags|=4194308),g=!0}else if(i===null){D=u.stateNode;var re=u.memoizedProps,xe=bu(p,re);D.props=xe;var _e=D.context,dt=p.contextType;J=Ua,typeof dt=="object"&&dt!==null&&(J=to(dt));var xt=p.getDerivedStateFromProps;dt=typeof xt=="function"||typeof D.getSnapshotBeforeUpdate=="function",re=u.pendingProps!==re,dt||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(re||_e!==J)&&VT(u,D,g,J),Jl=!1;var Ye=u.memoizedState;D.state=Ye,qp(u,g,D,E),Wp(),_e=u.memoizedState,re||Ye!==_e||Jl?(typeof xt=="function"&&(J0(u,p,xt,g),_e=u.memoizedState),(xe=Jl||_T(u,p,xe,g,Ye,_e,J))?(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"&&(u.flags|=4194308)):(typeof D.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=g,u.memoizedState=_e),D.props=g,D.state=_e,D.context=J,g=xe):(typeof D.componentDidMount=="function"&&(u.flags|=4194308),g=!1)}else{D=u.stateNode,D0(i,u),J=u.memoizedProps,dt=bu(p,J),D.props=dt,xt=u.pendingProps,Ye=D.context,_e=p.contextType,xe=Ua,typeof _e=="object"&&_e!==null&&(xe=to(_e)),re=p.getDerivedStateFromProps,(_e=typeof re=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(J!==xt||Ye!==xe)&&VT(u,D,g,xe),Jl=!1,Ye=u.memoizedState,D.state=Ye,qp(u,g,D,E),Wp();var Qe=u.memoizedState;J!==xt||Ye!==Qe||Jl||i!==null&&i.dependencies!==null&&Fd(i.dependencies)?(typeof re=="function"&&(J0(u,p,re,g),Qe=u.memoizedState),(dt=Jl||_T(u,p,dt,g,Ye,Qe,xe)||i!==null&&i.dependencies!==null&&Fd(i.dependencies))?(_e||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"&&(u.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof D.componentDidUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(u.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(u.flags|=1024),u.memoizedProps=g,u.memoizedState=Qe),D.props=g,D.state=Qe,D.context=xe,g=dt):(typeof D.componentDidUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(u.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||J===i.memoizedProps&&Ye===i.memoizedState||(u.flags|=1024),g=!1)}return D=g,Xg(i,u),g=(u.flags&128)!==0,D||g?(D=u.stateNode,p=g&&typeof p.getDerivedStateFromError!="function"?null:D.render(),u.flags|=1,i!==null&&g?(u.child=Yd(u,i.child,null,E),u.child=Yd(u,null,p,E)):Uo(i,u,p,E),u.memoizedState=D.state,i=u.child):i=bl(i,u,E),i}function oM(i,u,p,g){return lr(),u.flags|=256,Uo(i,u,p,g),u.child}var rx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ox(i){return{baseLanes:i,cachePool:Wk()}}function ax(i,u,p){return i=i!==null?i.childLanes&~p:0,u&&(i|=Si),i}function aM(i,u,p){var g=u.pendingProps,E=!1,D=(u.flags&128)!==0,J;if((J=D)||(J=i!==null&&i.memoizedState===null?!1:(Oo.current&2)!==0),J&&(E=!0,u.flags&=-129),J=(u.flags&32)!==0,u.flags&=-33,i===null){if(ee){if(E?rc(u):oc(),ee){var re=Y,xe;if(xe=re){e:{for(xe=re,re=Oe;xe.nodeType!==8;){if(!re){re=null;break e}if(xe=is(xe.nextSibling),xe===null){re=null;break e}}re=xe}re!==null?(u.memoizedState={dehydrated:re,treeContext:_a!==null?{id:Va,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},xe=Bo(18,null,null,0),xe.stateNode=re,xe.return=u,u.child=xe,L=u,Y=null,xe=!0):xe=!1}xe||Ue(u)}if(re=u.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return _x(re)?u.lanes=32:u.lanes=536870912,null;vl(u)}return re=g.children,g=g.fallback,E?(oc(),E=u.mode,re=Zg({mode:"hidden",children:re},E),g=vi(g,E,p,null),re.return=u,g.return=u,re.sibling=g,u.child=re,E=u.child,E.memoizedState=ox(p),E.childLanes=ax(i,J,p),u.memoizedState=rx,g):(rc(u),ix(u,re))}if(xe=i.memoizedState,xe!==null&&(re=xe.dehydrated,re!==null)){if(D)u.flags&256?(rc(u),u.flags&=-257,u=sx(i,u,p)):u.memoizedState!==null?(oc(),u.child=i.child,u.flags|=128,u=null):(oc(),E=g.fallback,re=u.mode,g=Zg({mode:"visible",children:g.children},re),E=vi(E,re,p,null),E.flags|=2,g.return=u,E.return=u,g.sibling=E,u.child=g,Yd(u,i.child,null,p),g=u.child,g.memoizedState=ox(p),g.childLanes=ax(i,J,p),u.memoizedState=rx,u=E);else if(rc(u),_x(re)){if(J=re.nextSibling&&re.nextSibling.dataset,J)var _e=J.dgst;J=_e,g=Error(r(419)),g.stack="",g.digest=J,qr({value:g,source:null,stack:null}),u=sx(i,u,p)}else if(jo||gu(i,u,p,!1),J=(p&i.childLanes)!==0,jo||J){if(J=Br,J!==null&&(g=p&-p,g=(g&42)!==0?1:En(g),g=(g&(J.suspendedLanes|p))!==0?0:g,g!==0&&g!==xe.retryLane))throw xe.retryLane=g,rs(i,g),Ga(J,i,g),QT;re.data==="$?"||Tx(),u=sx(i,u,p)}else re.data==="$?"?(u.flags|=192,u.child=i.child,u=null):(i=xe.treeContext,Y=is(re.nextSibling),L=u,ee=!0,ve=null,Oe=!1,i!==null&&(la[ca++]=Va,la[ca++]=mn,la[ca++]=_a,Va=i.id,mn=i.overflow,_a=u),u=ix(u,g.children),u.flags|=4096);return u}return E?(oc(),E=g.fallback,re=u.mode,xe=i.child,_e=xe.sibling,g=yi(xe,{mode:"hidden",children:g.children}),g.subtreeFlags=xe.subtreeFlags&65011712,_e!==null?E=yi(_e,E):(E=vi(E,re,p,null),E.flags|=2),E.return=u,g.return=u,g.sibling=E,u.child=g,g=E,E=u.child,re=i.child.memoizedState,re===null?re=ox(p):(xe=re.cachePool,xe!==null?(_e=Eo._currentValue,xe=xe.parent!==_e?{parent:_e,pool:_e}:xe):xe=Wk(),re={baseLanes:re.baseLanes|p,cachePool:xe}),E.memoizedState=re,E.childLanes=ax(i,J,p),u.memoizedState=rx,g):(rc(u),p=i.child,i=p.sibling,p=yi(p,{mode:"visible",children:g.children}),p.return=u,p.sibling=null,i!==null&&(J=u.deletions,J===null?(u.deletions=[i],u.flags|=16):J.push(i)),u.child=p,u.memoizedState=null,p)}function ix(i,u){return u=Zg({mode:"visible",children:u},i.mode),u.return=i,i.child=u}function Zg(i,u){return i=Bo(22,i,null,u),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function sx(i,u,p){return Yd(u,i.child,null,p),i=ix(u,u.pendingProps.children),i.flags|=2,u.memoizedState=null,i}function iM(i,u,p){i.lanes|=u;var g=i.alternate;g!==null&&(g.lanes|=u),Fp(i.return,u,p)}function lx(i,u,p,g,E){var D=i.memoizedState;D===null?i.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:E}:(D.isBackwards=u,D.rendering=null,D.renderingStartTime=0,D.last=g,D.tail=p,D.tailMode=E)}function sM(i,u,p){var g=u.pendingProps,E=g.revealOrder,D=g.tail;if(Uo(i,u,g.children,p),g=Oo.current,(g&2)!==0)g=g&1|2,u.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=u.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&iM(i,p,u);else if(i.tag===19)iM(i,p,u);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===u)break e;for(;i.sibling===null;){if(i.return===null||i.return===u)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}switch(ce(Oo,g),E){case"forwards":for(p=u.child,E=null;p!==null;)i=p.alternate,i!==null&&Kg(i)===null&&(E=p),p=p.sibling;p=E,p===null?(E=u.child,u.child=null):(E=p.sibling,p.sibling=null),lx(u,!1,E,p,D);break;case"backwards":for(p=null,E=u.child,u.child=null;E!==null;){if(i=E.alternate,i!==null&&Kg(i)===null){u.child=E;break}i=E.sibling,E.sibling=p,p=E,E=i}lx(u,!0,p,null,D);break;case"together":lx(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function bl(i,u,p){if(i!==null&&(u.dependencies=i.dependencies),cc|=u.lanes,(p&u.childLanes)===0)if(i!==null){if(gu(i,u,p,!1),(p&u.childLanes)===0)return null}else return null;if(i!==null&&u.child!==i.child)throw Error(r(153));if(u.child!==null){for(i=u.child,p=yi(i,i.pendingProps),u.child=p,p.return=u;i.sibling!==null;)i=i.sibling,p=p.sibling=yi(i,i.pendingProps),p.return=u;p.sibling=null}return u.child}function cx(i,u){return(i.lanes&u)!==0?!0:(i=i.dependencies,!!(i!==null&&Fd(i)))}function sz(i,u,p){switch(u.tag){case 3:ge(u,u.stateNode.containerInfo),va(u,Eo,i.memoizedState.cache),lr();break;case 27:case 5:we(u);break;case 4:ge(u,u.stateNode.containerInfo);break;case 10:va(u,u.type,u.memoizedProps.value);break;case 13:var g=u.memoizedState;if(g!==null)return g.dehydrated!==null?(rc(u),u.flags|=128,null):(p&u.child.childLanes)!==0?aM(i,u,p):(rc(u),i=bl(i,u,p),i!==null?i.sibling:null);rc(u);break;case 19:var E=(i.flags&128)!==0;if(g=(p&u.childLanes)!==0,g||(gu(i,u,p,!1),g=(p&u.childLanes)!==0),E){if(g)return sM(i,u,p);u.flags|=128}if(E=u.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),ce(Oo,Oo.current),g)break;return null;case 22:case 23:return u.lanes=0,eM(i,u,p);case 24:va(u,Eo,i.memoizedState.cache)}return bl(i,u,p)}function lM(i,u,p){if(i!==null)if(i.memoizedProps!==u.pendingProps)jo=!0;else{if(!cx(i,p)&&(u.flags&128)===0)return jo=!1,sz(i,u,p);jo=(i.flags&131072)!==0}else jo=!1,ee&&(u.flags&1048576)!==0&&Dg(u,mu,u.index);switch(u.lanes=0,u.tag){case 16:e:{i=u.pendingProps;var g=u.elementType,E=g._init;if(g=E(g._payload),u.type=g,typeof g=="function")Nd(g)?(i=bu(g,i),u.tag=1,u=rM(null,u,g,i,p)):(u.tag=0,u=nx(null,u,g,i,p));else{if(g!=null){if(E=g.$$typeof,E===R){u.tag=11,u=XT(null,u,g,i,p);break e}else if(E===N){u.tag=14,u=ZT(null,u,g,i,p);break e}}throw u=F(g)||g,Error(r(306,u,""))}}return u;case 0:return nx(i,u,u.type,u.pendingProps,p);case 1:return g=u.type,E=bu(g,u.pendingProps),rM(i,u,g,E,p);case 3:e:{if(ge(u,u.stateNode.containerInfo),i===null)throw Error(r(387));g=u.pendingProps;var D=u.memoizedState;E=D.element,D0(i,u),qp(u,g,null,p);var J=u.memoizedState;if(g=J.cache,va(u,Eo,g),g!==D.cache&&zd(u,[Eo],p,!0),Wp(),g=J.element,D.isDehydrated)if(D={element:g,isDehydrated:!1,cache:J.cache},u.updateQueue.baseState=D,u.memoizedState=D,u.flags&256){u=oM(i,u,g,p);break e}else if(g!==E){E=Qo(Error(r(424)),u),qr(E),u=oM(i,u,g,p);break e}else{switch(i=u.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Y=is(i.firstChild),L=u,ee=!0,ve=null,Oe=!0,p=BT(u,null,g,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(lr(),g===E){u=bl(i,u,p);break e}Uo(i,u,g,p)}u=u.child}return u;case 26:return Xg(i,u),i===null?(p=fE(u.type,null,u.pendingProps,null))?u.memoizedState=p:ee||(p=u.type,i=u.pendingProps,g=fy(ae.current).createElement(p),g[qe]=u,g[ut]=i,Vo(g,p,i),dn(g),u.stateNode=g):u.memoizedState=fE(u.type,i.memoizedProps,u.pendingProps,i.memoizedState),null;case 27:return we(u),i===null&&ee&&(g=u.stateNode=cE(u.type,u.pendingProps,ae.current),L=u,Oe=!0,E=Y,pc(u.type)?(Vx=E,Y=is(g.firstChild)):Y=E),Uo(i,u,u.pendingProps.children,p),Xg(i,u),i===null&&(u.flags|=4194304),u.child;case 5:return i===null&&ee&&((E=g=Y)&&(g=Nz(g,u.type,u.pendingProps,Oe),g!==null?(u.stateNode=g,L=u,Y=is(g.firstChild),Oe=!1,E=!0):E=!1),E||Ue(u)),we(u),E=u.type,D=u.pendingProps,J=i!==null?i.memoizedProps:null,g=D.children,Fx(E,D)?g=null:J!==null&&Fx(E,J)&&(u.flags|=32),u.memoizedState!==null&&(E=z0(i,u,JL,null,null,p),hh._currentValue=E),Xg(i,u),Uo(i,u,g,p),u.child;case 6:return i===null&&ee&&((i=p=Y)&&(p=Iz(p,u.pendingProps,Oe),p!==null?(u.stateNode=p,L=u,Y=null,i=!0):i=!1),i||Ue(u)),null;case 13:return aM(i,u,p);case 4:return ge(u,u.stateNode.containerInfo),g=u.pendingProps,i===null?u.child=Yd(u,null,g,p):Uo(i,u,g,p),u.child;case 11:return XT(i,u,u.type,u.pendingProps,p);case 7:return Uo(i,u,u.pendingProps,p),u.child;case 8:return Uo(i,u,u.pendingProps.children,p),u.child;case 12:return Uo(i,u,u.pendingProps.children,p),u.child;case 10:return g=u.pendingProps,va(u,u.type,g.value),Uo(i,u,g.children,p),u.child;case 9:return E=u.type._context,g=u.pendingProps.children,gl(u),E=to(E),g=g(E),u.flags|=1,Uo(i,u,g,p),u.child;case 14:return ZT(i,u,u.type,u.pendingProps,p);case 15:return JT(i,u,u.type,u.pendingProps,p);case 19:return sM(i,u,p);case 31:return g=u.pendingProps,p=u.mode,g={mode:g.mode,children:g.children},i===null?(p=Zg(g,p),p.ref=u.ref,u.child=p,p.return=u,u=p):(p=yi(i.child,g),p.ref=u.ref,u.child=p,p.return=u,u=p),u;case 22:return eM(i,u,p);case 24:return gl(u),g=to(Eo),i===null?(E=R0(),E===null&&(E=Br,D=E0(),E.pooledCache=D,D.refCount++,D!==null&&(E.pooledCacheLanes|=p),E=D),u.memoizedState={parent:g,cache:E},P0(u),va(u,Eo,E)):((i.lanes&p)!==0&&(D0(i,u),qp(u,null,null,p),Wp()),E=i.memoizedState,D=u.memoizedState,E.parent!==g?(E={parent:g,cache:g},u.memoizedState=E,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=E),va(u,Eo,g)):(g=D.cache,va(u,Eo,g),g!==E.cache&&zd(u,[Eo],p,!0))),Uo(i,u,u.pendingProps.children,p),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function xl(i){i.flags|=4}function cM(i,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!yE(u)){if(u=xi.current,u!==null&&((dr&4194048)===dr?$s!==null:(dr&62914560)!==dr&&(dr&536870912)===0||u!==$s))throw Vp=$0,qk;i.flags|=8192}}function Jg(i,u){u!==null&&(i.flags|=4),i.flags&16384&&(u=i.tag!==22?Bn():536870912,i.lanes|=u,Xd|=u)}function Jp(i,u){if(!ee)switch(i.tailMode){case"hidden":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.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?u||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function Jr(i){var u=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(u)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,u}function lz(i,u,p){var g=u.pendingProps;switch(O(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jr(u),null;case 1:return Jr(u),null;case 3:return p=u.stateNode,g=null,i!==null&&(g=i.memoizedState.cache),u.memoizedState.cache!==g&&(u.flags|=2048),bi(Eo),ye(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(jn(u)?xl(u):i===null||i.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Sn())),Jr(u),null;case 26:return p=u.memoizedState,i===null?(xl(u),p!==null?(Jr(u),cM(u,p)):(Jr(u),u.flags&=-16777217)):p?p!==i.memoizedState?(xl(u),Jr(u),cM(u,p)):(Jr(u),u.flags&=-16777217):(i.memoizedProps!==g&&xl(u),Jr(u),u.flags&=-16777217),null;case 27:Ce(u),p=ae.current;var E=u.type;if(i!==null&&u.stateNode!=null)i.memoizedProps!==g&&xl(u);else{if(!g){if(u.stateNode===null)throw Error(r(166));return Jr(u),null}i=pe.current,jn(u)?Ot(u):(i=cE(E,g,p),u.stateNode=i,xl(u))}return Jr(u),null;case 5:if(Ce(u),p=u.type,i!==null&&u.stateNode!=null)i.memoizedProps!==g&&xl(u);else{if(!g){if(u.stateNode===null)throw Error(r(166));return Jr(u),null}if(i=pe.current,jn(u))Ot(u);else{switch(E=fy(ae.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[qe]=u,i[ut]=g;e:for(E=u.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===u)break e;for(;E.sibling===null;){if(E.return===null||E.return===u)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}u.stateNode=i;e:switch(Vo(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&&xl(u)}}return Jr(u),u.flags&=-16777217,null;case 6:if(i&&u.stateNode!=null)i.memoizedProps!==g&&xl(u);else{if(typeof g!="string"&&u.stateNode===null)throw Error(r(166));if(i=ae.current,jn(u)){if(i=u.stateNode,p=u.memoizedProps,g=null,E=L,E!==null)switch(E.tag){case 27:case 5:g=E.memoizedProps}i[qe]=u,i=!!(i.nodeValue===p||g!==null&&g.suppressHydrationWarning===!0||nE(i.nodeValue,p)),i||Ue(u)}else i=fy(i).createTextNode(g),i[qe]=u,u.stateNode=i}return Jr(u),null;case 13:if(g=u.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=jn(u),g!==null&&g.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=u.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[qe]=u}else lr(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Jr(u),E=!1}else E=Sn(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return u.flags&256?(vl(u),u):(vl(u),null)}if(vl(u),(u.flags&128)!==0)return u.lanes=p,u;if(p=g!==null,i=i!==null&&i.memoizedState!==null,p){g=u.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&&(u.child.flags|=8192),Jg(u,u.updateQueue),Jr(u),null;case 4:return ye(),i===null&&jx(u.stateNode.containerInfo),Jr(u),null;case 10:return bi(u.type),Jr(u),null;case 19:if(ne(Oo),E=u.memoizedState,E===null)return Jr(u),null;if(g=(u.flags&128)!==0,D=E.rendering,D===null)if(g)Jp(E,!1);else{if(no!==0||i!==null&&(i.flags&128)!==0)for(i=u.child;i!==null;){if(D=Kg(i),D!==null){for(u.flags|=128,Jp(E,!1),i=D.updateQueue,u.updateQueue=i,Jg(u,i),u.subtreeFlags=0,i=p,p=u.child;p!==null;)Pg(p,i),p=p.sibling;return ce(Oo,Oo.current&1|2),u.child}i=i.sibling}E.tail!==null&&Ae()>ny&&(u.flags|=128,g=!0,Jp(E,!1),u.lanes=4194304)}else{if(!g)if(i=Kg(D),i!==null){if(u.flags|=128,g=!0,i=i.updateQueue,u.updateQueue=i,Jg(u,i),Jp(E,!0),E.tail===null&&E.tailMode==="hidden"&&!D.alternate&&!ee)return Jr(u),null}else 2*Ae()-E.renderingStartTime>ny&&p!==536870912&&(u.flags|=128,g=!0,Jp(E,!1),u.lanes=4194304);E.isBackwards?(D.sibling=u.child,u.child=D):(i=E.last,i!==null?i.sibling=D:u.child=D,E.last=D)}return E.tail!==null?(u=E.tail,E.rendering=u,E.tail=u.sibling,E.renderingStartTime=Ae(),u.sibling=null,i=Oo.current,ce(Oo,g?i&1|2:i&1),u):(Jr(u),null);case 22:case 23:return vl(u),I0(),g=u.memoizedState!==null,i!==null?i.memoizedState!==null!==g&&(u.flags|=8192):g&&(u.flags|=8192),g?(p&536870912)!==0&&(u.flags&128)===0&&(Jr(u),u.subtreeFlags&6&&(u.flags|=8192)):Jr(u),p=u.updateQueue,p!==null&&Jg(u,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==p&&(u.flags|=2048),i!==null&&ne(yu),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),u.memoizedState.cache!==p&&(u.flags|=2048),bi(Eo),Jr(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function cz(i,u){switch(O(u),u.tag){case 1:return i=u.flags,i&65536?(u.flags=i&-65537|128,u):null;case 3:return bi(Eo),ye(),i=u.flags,(i&65536)!==0&&(i&128)===0?(u.flags=i&-65537|128,u):null;case 26:case 27:case 5:return Ce(u),null;case 13:if(vl(u),i=u.memoizedState,i!==null&&i.dehydrated!==null){if(u.alternate===null)throw Error(r(340));lr()}return i=u.flags,i&65536?(u.flags=i&-65537|128,u):null;case 19:return ne(Oo),null;case 4:return ye(),null;case 10:return bi(u.type),null;case 22:case 23:return vl(u),I0(),i!==null&&ne(yu),i=u.flags,i&65536?(u.flags=i&-65537|128,u):null;case 24:return bi(Eo),null;case 25:return null;default:return null}}function uM(i,u){switch(O(u),u.tag){case 3:bi(Eo),ye();break;case 26:case 27:case 5:Ce(u);break;case 4:ye();break;case 13:vl(u);break;case 19:ne(Oo);break;case 10:bi(u.type);break;case 22:case 23:vl(u),I0(),i!==null&&ne(yu);break;case 24:bi(Eo)}}function eh(i,u){try{var p=u.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,J=p.inst;g=D(),J.destroy=g}p=p.next}while(p!==E)}}catch(re){Lr(u,u.return,re)}}function ac(i,u,p){try{var g=u.updateQueue,E=g!==null?g.lastEffect:null;if(E!==null){var D=E.next;g=D;do{if((g.tag&i)===i){var J=g.inst,re=J.destroy;if(re!==void 0){J.destroy=void 0,E=u;var xe=p,_e=re;try{_e()}catch(dt){Lr(E,xe,dt)}}}g=g.next}while(g!==D)}}catch(dt){Lr(u,u.return,dt)}}function dM(i){var u=i.updateQueue;if(u!==null){var p=i.stateNode;try{Zk(u,p)}catch(g){Lr(i,i.return,g)}}}function fM(i,u,p){p.props=bu(i.type,i.memoizedProps),p.state=i.memoizedState;try{p.componentWillUnmount()}catch(g){Lr(i,u,g)}}function th(i,u){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){Lr(i,u,E)}}function Ps(i,u){var p=i.ref,g=i.refCleanup;if(p!==null)if(typeof g=="function")try{g()}catch(E){Lr(i,u,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(E){Lr(i,u,E)}else p.current=null}function pM(i){var u=i.type,p=i.memoizedProps,g=i.stateNode;try{e:switch(u){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){Lr(i,i.return,E)}}function ux(i,u,p){try{var g=i.stateNode;$z(g,i.type,p,u),g[ut]=u}catch(E){Lr(i,i.return,E)}}function hM(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&pc(i.type)||i.tag===4}function dx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hM(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&&pc(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 fx(i,u,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,u?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(i,u):(u=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,u.appendChild(i),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=dy));else if(g!==4&&(g===27&&pc(i.type)&&(p=i.stateNode,u=null),i=i.child,i!==null))for(fx(i,u,p),i=i.sibling;i!==null;)fx(i,u,p),i=i.sibling}function ey(i,u,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,u?p.insertBefore(i,u):p.appendChild(i);else if(g!==4&&(g===27&&pc(i.type)&&(p=i.stateNode),i=i.child,i!==null))for(ey(i,u,p),i=i.sibling;i!==null;)ey(i,u,p),i=i.sibling}function mM(i){var u=i.stateNode,p=i.memoizedProps;try{for(var g=i.type,E=u.attributes;E.length;)u.removeAttributeNode(E[0]);Vo(u,g,p),u[qe]=i,u[ut]=p}catch(D){Lr(i,i.return,D)}}var Sl=!1,yo=!1,px=!1,gM=typeof WeakSet=="function"?WeakSet:Set,No=null;function uz(i,u){if(i=i.containerInfo,Lx=vy,i=aa(i),Ln(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 J=0,re=-1,xe=-1,_e=0,dt=0,xt=i,Ye=null;t:for(;;){for(var Qe;xt!==p||E!==0&&xt.nodeType!==3||(re=J+E),xt!==D||g!==0&&xt.nodeType!==3||(xe=J+g),xt.nodeType===3&&(J+=xt.nodeValue.length),(Qe=xt.firstChild)!==null;)Ye=xt,xt=Qe;for(;;){if(xt===i)break t;if(Ye===p&&++_e===E&&(re=J),Ye===D&&++dt===g&&(xe=J),(Qe=xt.nextSibling)!==null)break;xt=Ye,Ye=xt.parentNode}xt=Qe}p=re===-1||xe===-1?null:{start:re,end:xe}}else p=null}p=p||{start:0,end:0}}else p=null;for(zx={focusedElem:i,selectionRange:p},vy=!1,No=u;No!==null;)if(u=No,i=u.child,(u.subtreeFlags&1024)!==0&&i!==null)i.return=u,No=i;else for(;No!==null;){switch(u=No,D=u.alternate,i=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&D!==null){i=void 0,p=u,E=D.memoizedProps,D=D.memoizedState,g=p.stateNode;try{var Nn=bu(p.type,E,p.elementType===p.type);i=g.getSnapshotBeforeUpdate(Nn,D),g.__reactInternalSnapshotBeforeUpdate=i}catch($n){Lr(p,p.return,$n)}}break;case 3:if((i&1024)!==0){if(i=u.stateNode.containerInfo,p=i.nodeType,p===9)Ux(i);else if(p===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Ux(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=u.sibling,i!==null){i.return=u.return,No=i;break}No=u.return}}function yM(i,u,p){var g=p.flags;switch(p.tag){case 0:case 11:case 15:ic(i,p),g&4&&eh(5,p);break;case 1:if(ic(i,p),g&4)if(i=p.stateNode,u===null)try{i.componentDidMount()}catch(J){Lr(p,p.return,J)}else{var E=bu(p.type,u.memoizedProps);u=u.memoizedState;try{i.componentDidUpdate(E,u,i.__reactInternalSnapshotBeforeUpdate)}catch(J){Lr(p,p.return,J)}}g&64&&dM(p),g&512&&th(p,p.return);break;case 3:if(ic(i,p),g&64&&(i=p.updateQueue,i!==null)){if(u=null,p.child!==null)switch(p.child.tag){case 27:case 5:u=p.child.stateNode;break;case 1:u=p.child.stateNode}try{Zk(i,u)}catch(J){Lr(p,p.return,J)}}break;case 27:u===null&&g&4&&mM(p);case 26:case 5:ic(i,p),u===null&&g&4&&pM(p),g&512&&th(p,p.return);break;case 12:ic(i,p);break;case 13:ic(i,p),g&4&&xM(i,p),g&64&&(i=p.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(p=bz.bind(null,p),Lz(i,p))));break;case 22:if(g=p.memoizedState!==null||Sl,!g){u=u!==null&&u.memoizedState!==null||yo,E=Sl;var D=yo;Sl=g,(yo=u)&&!D?sc(i,p,(p.subtreeFlags&8772)!==0):ic(i,p),Sl=E,yo=D}break;case 30:break;default:ic(i,p)}}function vM(i){var u=i.alternate;u!==null&&(i.alternate=null,vM(u)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(u=i.stateNode,u!==null&&wt(u)),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 Yr=null,xa=!1;function wl(i,u,p){for(p=p.child;p!==null;)bM(i,u,p),p=p.sibling}function bM(i,u,p){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Xe,p)}catch{}switch(p.tag){case 26:yo||Ps(p,u),wl(i,u,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:yo||Ps(p,u);var g=Yr,E=xa;pc(p.type)&&(Yr=p.stateNode,xa=!1),wl(i,u,p),uh(p.stateNode),Yr=g,xa=E;break;case 5:yo||Ps(p,u);case 6:if(g=Yr,E=xa,Yr=null,wl(i,u,p),Yr=g,xa=E,Yr!==null)if(xa)try{(Yr.nodeType===9?Yr.body:Yr.nodeName==="HTML"?Yr.ownerDocument.body:Yr).removeChild(p.stateNode)}catch(D){Lr(p,u,D)}else try{Yr.removeChild(p.stateNode)}catch(D){Lr(p,u,D)}break;case 18:Yr!==null&&(xa?(i=Yr,sE(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,p.stateNode),vh(i)):sE(Yr,p.stateNode));break;case 4:g=Yr,E=xa,Yr=p.stateNode.containerInfo,xa=!0,wl(i,u,p),Yr=g,xa=E;break;case 0:case 11:case 14:case 15:yo||ac(2,p,u),yo||ac(4,p,u),wl(i,u,p);break;case 1:yo||(Ps(p,u),g=p.stateNode,typeof g.componentWillUnmount=="function"&&fM(p,u,g)),wl(i,u,p);break;case 21:wl(i,u,p);break;case 22:yo=(g=yo)||p.memoizedState!==null,wl(i,u,p),yo=g;break;default:wl(i,u,p)}}function xM(i,u){if(u.memoizedState===null&&(i=u.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{vh(i)}catch(p){Lr(u,u.return,p)}}function dz(i){switch(i.tag){case 13:case 19:var u=i.stateNode;return u===null&&(u=i.stateNode=new gM),u;case 22:return i=i.stateNode,u=i._retryCache,u===null&&(u=i._retryCache=new gM),u;default:throw Error(r(435,i.tag))}}function hx(i,u){var p=dz(i);u.forEach(function(g){var E=xz.bind(null,i,g);p.has(g)||(p.add(g),g.then(E,E))})}function Wa(i,u){var p=u.deletions;if(p!==null)for(var g=0;g<p.length;g++){var E=p[g],D=i,J=u,re=J;e:for(;re!==null;){switch(re.tag){case 27:if(pc(re.type)){Yr=re.stateNode,xa=!1;break e}break;case 5:Yr=re.stateNode,xa=!1;break e;case 3:case 4:Yr=re.stateNode.containerInfo,xa=!0;break e}re=re.return}if(Yr===null)throw Error(r(160));bM(D,J,E),Yr=null,xa=!1,D=E.alternate,D!==null&&(D.return=null),E.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)SM(u,i),u=u.sibling}var as=null;function SM(i,u){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Wa(u,i),qa(i),g&4&&(ac(3,i,i.return),eh(3,i),ac(5,i,i.return));break;case 1:Wa(u,i),qa(i),g&512&&(yo||p===null||Ps(p,p.return)),g&64&&Sl&&(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=as;if(Wa(u,i),qa(i),g&512&&(yo||p===null||Ps(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[Et]||D[qe]||D.namespaceURI==="http://www.w3.org/2000/svg"||D.hasAttribute("itemprop"))&&(D=E.createElement(g),E.head.insertBefore(D,E.querySelector("head > title"))),Vo(D,g,p),D[qe]=i,dn(D),g=D;break e;case"link":var J=mE("link","href",E).get(g+(p.href||""));if(J){for(var re=0;re<J.length;re++)if(D=J[re],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)){J.splice(re,1);break t}}D=E.createElement(g),Vo(D,g,p),E.head.appendChild(D);break;case"meta":if(J=mE("meta","content",E).get(g+(p.content||""))){for(re=0;re<J.length;re++)if(D=J[re],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)){J.splice(re,1);break t}}D=E.createElement(g),Vo(D,g,p),E.head.appendChild(D);break;default:throw Error(r(468,g))}D[qe]=i,dn(D),g=D}i.stateNode=g}else gE(E,i.type,i.stateNode);else i.stateNode=hE(E,g,i.memoizedProps);else D!==g?(D===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):D.count--,g===null?gE(E,i.type,i.stateNode):hE(E,g,i.memoizedProps)):g===null&&i.stateNode!==null&&ux(i,i.memoizedProps,p.memoizedProps)}break;case 27:Wa(u,i),qa(i),g&512&&(yo||p===null||Ps(p,p.return)),p!==null&&g&4&&ux(i,i.memoizedProps,p.memoizedProps);break;case 5:if(Wa(u,i),qa(i),g&512&&(yo||p===null||Ps(p,p.return)),i.flags&32){E=i.stateNode;try{Xi(E,"")}catch(Qe){Lr(i,i.return,Qe)}}g&4&&i.stateNode!=null&&(E=i.memoizedProps,ux(i,E,p!==null?p.memoizedProps:E)),g&1024&&(px=!0);break;case 6:if(Wa(u,i),qa(i),g&4){if(i.stateNode===null)throw Error(r(162));g=i.memoizedProps,p=i.stateNode;try{p.nodeValue=g}catch(Qe){Lr(i,i.return,Qe)}}break;case 3:if(my=null,E=as,as=py(u.containerInfo),Wa(u,i),as=E,qa(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{vh(u.containerInfo)}catch(Qe){Lr(i,i.return,Qe)}px&&(px=!1,wM(i));break;case 4:g=as,as=py(i.stateNode.containerInfo),Wa(u,i),qa(i),as=g;break;case 12:Wa(u,i),qa(i);break;case 13:Wa(u,i),qa(i),i.child.flags&8192&&i.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(xx=Ae()),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,hx(i,g)));break;case 22:E=i.memoizedState!==null;var xe=p!==null&&p.memoizedState!==null,_e=Sl,dt=yo;if(Sl=_e||E,yo=dt||xe,Wa(u,i),yo=dt,Sl=_e,qa(i),g&8192)e:for(u=i.stateNode,u._visibility=E?u._visibility&-2:u._visibility|1,E&&(p===null||xe||Sl||yo||xu(i)),p=null,u=i;;){if(u.tag===5||u.tag===26){if(p===null){xe=p=u;try{if(D=xe.stateNode,E)J=D.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{re=xe.stateNode;var xt=xe.memoizedProps.style,Ye=xt!=null&&xt.hasOwnProperty("display")?xt.display:null;re.style.display=Ye==null||typeof Ye=="boolean"?"":(""+Ye).trim()}}catch(Qe){Lr(xe,xe.return,Qe)}}}else if(u.tag===6){if(p===null){xe=u;try{xe.stateNode.nodeValue=E?"":xe.memoizedProps}catch(Qe){Lr(xe,xe.return,Qe)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===i)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===i)break e;for(;u.sibling===null;){if(u.return===null||u.return===i)break e;p===u&&(p=null),u=u.return}p===u&&(p=null),u.sibling.return=u.return,u=u.sibling}g&4&&(g=i.updateQueue,g!==null&&(p=g.retryQueue,p!==null&&(g.retryQueue=null,hx(i,p))));break;case 19:Wa(u,i),qa(i),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,hx(i,g)));break;case 30:break;case 21:break;default:Wa(u,i),qa(i)}}function qa(i){var u=i.flags;if(u&2){try{for(var p,g=i.return;g!==null;){if(hM(g)){p=g;break}g=g.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var E=p.stateNode,D=dx(i);ey(i,D,E);break;case 5:var J=p.stateNode;p.flags&32&&(Xi(J,""),p.flags&=-33);var re=dx(i);ey(i,re,J);break;case 3:case 4:var xe=p.stateNode.containerInfo,_e=dx(i);fx(i,_e,xe);break;default:throw Error(r(161))}}catch(dt){Lr(i,i.return,dt)}i.flags&=-3}u&4096&&(i.flags&=-4097)}function wM(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var u=i;wM(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),i=i.sibling}}function ic(i,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)yM(i,u.alternate,u),u=u.sibling}function xu(i){for(i=i.child;i!==null;){var u=i;switch(u.tag){case 0:case 11:case 14:case 15:ac(4,u,u.return),xu(u);break;case 1:Ps(u,u.return);var p=u.stateNode;typeof p.componentWillUnmount=="function"&&fM(u,u.return,p),xu(u);break;case 27:uh(u.stateNode);case 26:case 5:Ps(u,u.return),xu(u);break;case 22:u.memoizedState===null&&xu(u);break;case 30:xu(u);break;default:xu(u)}i=i.sibling}}function sc(i,u,p){for(p=p&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var g=u.alternate,E=i,D=u,J=D.flags;switch(D.tag){case 0:case 11:case 15:sc(E,D,p),eh(4,D);break;case 1:if(sc(E,D,p),g=D,E=g.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(_e){Lr(g,g.return,_e)}if(g=D,E=g.updateQueue,E!==null){var re=g.stateNode;try{var xe=E.shared.hiddenCallbacks;if(xe!==null)for(E.shared.hiddenCallbacks=null,E=0;E<xe.length;E++)Xk(xe[E],re)}catch(_e){Lr(g,g.return,_e)}}p&&J&64&&dM(D),th(D,D.return);break;case 27:mM(D);case 26:case 5:sc(E,D,p),p&&g===null&&J&4&&pM(D),th(D,D.return);break;case 12:sc(E,D,p);break;case 13:sc(E,D,p),p&&J&4&&xM(E,D);break;case 22:D.memoizedState===null&&sc(E,D,p),th(D,D.return);break;case 30:break;default:sc(E,D,p)}u=u.sibling}}function mx(i,u){var p=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),i=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(i=u.memoizedState.cachePool.pool),i!==p&&(i!=null&&i.refCount++,p!=null&&Bp(p))}function gx(i,u){i=null,u.alternate!==null&&(i=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==i&&(u.refCount++,i!=null&&Bp(i))}function Ds(i,u,p,g){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)CM(i,u,p,g),u=u.sibling}function CM(i,u,p,g){var E=u.flags;switch(u.tag){case 0:case 11:case 15:Ds(i,u,p,g),E&2048&&eh(9,u);break;case 1:Ds(i,u,p,g);break;case 3:Ds(i,u,p,g),E&2048&&(i=null,u.alternate!==null&&(i=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==i&&(u.refCount++,i!=null&&Bp(i)));break;case 12:if(E&2048){Ds(i,u,p,g),i=u.stateNode;try{var D=u.memoizedProps,J=D.id,re=D.onPostCommit;typeof re=="function"&&re(J,u.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(xe){Lr(u,u.return,xe)}}else Ds(i,u,p,g);break;case 13:Ds(i,u,p,g);break;case 23:break;case 22:D=u.stateNode,J=u.alternate,u.memoizedState!==null?D._visibility&2?Ds(i,u,p,g):nh(i,u):D._visibility&2?Ds(i,u,p,g):(D._visibility|=2,Kd(i,u,p,g,(u.subtreeFlags&10256)!==0)),E&2048&&mx(J,u);break;case 24:Ds(i,u,p,g),E&2048&&gx(u.alternate,u);break;default:Ds(i,u,p,g)}}function Kd(i,u,p,g,E){for(E=E&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var D=i,J=u,re=p,xe=g,_e=J.flags;switch(J.tag){case 0:case 11:case 15:Kd(D,J,re,xe,E),eh(8,J);break;case 23:break;case 22:var dt=J.stateNode;J.memoizedState!==null?dt._visibility&2?Kd(D,J,re,xe,E):nh(D,J):(dt._visibility|=2,Kd(D,J,re,xe,E)),E&&_e&2048&&mx(J.alternate,J);break;case 24:Kd(D,J,re,xe,E),E&&_e&2048&&gx(J.alternate,J);break;default:Kd(D,J,re,xe,E)}u=u.sibling}}function nh(i,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var p=i,g=u,E=g.flags;switch(g.tag){case 22:nh(p,g),E&2048&&mx(g.alternate,g);break;case 24:nh(p,g),E&2048&&gx(g.alternate,g);break;default:nh(p,g)}u=u.sibling}}var rh=8192;function Gd(i){if(i.subtreeFlags&rh)for(i=i.child;i!==null;)kM(i),i=i.sibling}function kM(i){switch(i.tag){case 26:Gd(i),i.flags&rh&&i.memoizedState!==null&&Qz(as,i.memoizedState,i.memoizedProps);break;case 5:Gd(i);break;case 3:case 4:var u=as;as=py(i.stateNode.containerInfo),Gd(i),as=u;break;case 22:i.memoizedState===null&&(u=i.alternate,u!==null&&u.memoizedState!==null?(u=rh,rh=16777216,Gd(i),rh=u):Gd(i));break;default:Gd(i)}}function TM(i){var u=i.alternate;if(u!==null&&(i=u.child,i!==null)){u.child=null;do u=i.sibling,i.sibling=null,i=u;while(i!==null)}}function oh(i){var u=i.deletions;if((i.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var g=u[p];No=g,EM(g,i)}TM(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)MM(i),i=i.sibling}function MM(i){switch(i.tag){case 0:case 11:case 15:oh(i),i.flags&2048&&ac(9,i,i.return);break;case 3:oh(i);break;case 12:oh(i);break;case 22:var u=i.stateNode;i.memoizedState!==null&&u._visibility&2&&(i.return===null||i.return.tag!==13)?(u._visibility&=-3,ty(i)):oh(i);break;default:oh(i)}}function ty(i){var u=i.deletions;if((i.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var g=u[p];No=g,EM(g,i)}TM(i)}for(i=i.child;i!==null;){switch(u=i,u.tag){case 0:case 11:case 15:ac(8,u,u.return),ty(u);break;case 22:p=u.stateNode,p._visibility&2&&(p._visibility&=-3,ty(u));break;default:ty(u)}i=i.sibling}}function EM(i,u){for(;No!==null;){var p=No;switch(p.tag){case 0:case 11:case 15:ac(8,p,u);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:Bp(p.memoizedState.cache)}if(g=p.child,g!==null)g.return=p,No=g;else e:for(p=i;No!==null;){g=No;var E=g.sibling,D=g.return;if(vM(g),g===p){No=null;break e}if(E!==null){E.return=D,No=E;break e}No=D}}}var fz={getCacheForType:function(i){var u=to(Eo),p=u.data.get(i);return p===void 0&&(p=i(),u.data.set(i,p)),p}},pz=typeof WeakMap=="function"?WeakMap:Map,kr=0,Br=null,nr=null,dr=0,Tr=0,Ya=null,lc=!1,Qd=!1,yx=!1,Cl=0,no=0,cc=0,Su=0,vx=0,Si=0,Xd=0,ah=null,Sa=null,bx=!1,xx=0,ny=1/0,ry=null,uc=null,_o=0,dc=null,Zd=null,Jd=0,Sx=0,wx=null,OM=null,ih=0,Cx=null;function Ka(){if((kr&2)!==0&&dr!==0)return dr&-dr;if(j.T!==null){var i=Bd;return i!==0?i:$x()}return ie()}function RM(){Si===0&&(Si=(dr&536870912)===0||ee?vn():536870912);var i=xi.current;return i!==null&&(i.flags|=32),Si}function Ga(i,u,p){(i===Br&&(Tr===2||Tr===9)||i.cancelPendingCommit!==null)&&(ef(i,0),fc(i,dr,Si,!1)),Qt(i,p),((kr&2)===0||i!==Br)&&(i===Br&&((kr&2)===0&&(Su|=p),no===4&&fc(i,dr,Si,!1)),As(i))}function $M(i,u,p){if((kr&6)!==0)throw Error(r(327));var g=!p&&(u&124)===0&&(u&i.expiredLanes)===0||Vt(i,u),E=g?gz(i,u):Mx(i,u,!0),D=g;do{if(E===0){Qd&&!g&&fc(i,u,0,!1);break}else{if(p=i.current.alternate,D&&!hz(p)){E=Mx(i,u,!1),D=!1;continue}if(E===2){if(D=u,i.errorRecoveryDisabledLanes&D)var J=0;else J=i.pendingLanes&-536870913,J=J!==0?J:J&536870912?536870912:0;if(J!==0){u=J;e:{var re=i;E=ah;var xe=re.current.memoizedState.isDehydrated;if(xe&&(ef(re,J).flags|=256),J=Mx(re,J,!1),J!==2){if(yx&&!xe){re.errorRecoveryDisabledLanes|=D,Su|=D,E=4;break e}D=Sa,Sa=E,D!==null&&(Sa===null?Sa=D:Sa.push.apply(Sa,D))}E=J}if(D=!1,E!==2)continue}}if(E===1){ef(i,0),fc(i,u,0,!0);break}e:{switch(g=i,D=E,D){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:fc(g,u,Si,!lc);break e;case 2:Sa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(E=xx+300-Ae(),10<E)){if(fc(g,u,Si,!lc),$t(g,0,!0)!==0)break e;g.timeoutHandle=aE(PM.bind(null,g,p,Sa,ry,bx,u,Si,Su,Xd,lc,D,2,-0,0),E);break e}PM(g,p,Sa,ry,bx,u,Si,Su,Xd,lc,D,0,-0,0)}}break}while(!0);As(i)}function PM(i,u,p,g,E,D,J,re,xe,_e,dt,xt,Ye,Qe){if(i.timeoutHandle=-1,xt=u.subtreeFlags,(xt&8192||(xt&16785408)===16785408)&&(ph={stylesheets:null,count:0,unsuspend:Gz},kM(u),xt=Xz(),xt!==null)){i.cancelPendingCommit=xt(zM.bind(null,i,u,D,p,g,E,J,re,xe,dt,1,Ye,Qe)),fc(i,D,J,!_e);return}zM(i,u,D,p,g,E,J,re,xe)}function hz(i){for(var u=i;;){var p=u.tag;if((p===0||p===11||p===15)&&u.flags&16384&&(p=u.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(!rn(D(),E))return!1}catch{return!1}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===i)break;for(;u.sibling===null;){if(u.return===null||u.return===i)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function fc(i,u,p,g){u&=~vx,u&=~Su,i.suspendedLanes|=u,i.pingedLanes&=~u,g&&(i.warmLanes|=u),g=i.expirationTimes;for(var E=u;0<E;){var D=31-he(E),J=1<<D;g[D]=-1,E&=~J}p!==0&&be(i,p,u)}function oy(){return(kr&6)===0?(sh(0),!1):!0}function kx(){if(nr!==null){if(Tr===0)var i=nr.return;else i=nr,ya=ga=null,U0(i),qd=null,Xp=0,i=nr;for(;i!==null;)uM(i.alternate,i),i=i.return;nr=null}}function ef(i,u){var p=i.timeoutHandle;p!==-1&&(i.timeoutHandle=-1,Dz(p)),p=i.cancelPendingCommit,p!==null&&(i.cancelPendingCommit=null,p()),kx(),Br=i,nr=p=yi(i.current,null),dr=u,Tr=0,Ya=null,lc=!1,Qd=Vt(i,u),yx=!1,Xd=Si=vx=Su=cc=no=0,Sa=ah=null,bx=!1,(u&8)!==0&&(u|=u&32);var g=i.entangledLanes;if(g!==0)for(i=i.entanglements,g&=u;0<g;){var E=31-he(g),D=1<<E;u|=i[E],g&=~D}return Cl=u,Zl(),p}function DM(i,u){Zn=null,j.H=Wg,u===_p||u===Ng?(u=Gk(),Tr=3):u===qk?(u=Gk(),Tr=4):Tr=u===QT?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,Ya=u,nr===null&&(no=1,Qg(i,Qo(u,i.current)))}function AM(){var i=j.H;return j.H=Wg,i===null?Wg:i}function jM(){var i=j.A;return j.A=fz,i}function Tx(){no=4,lc||(dr&4194048)!==dr&&xi.current!==null||(Qd=!0),(cc&134217727)===0&&(Su&134217727)===0||Br===null||fc(Br,dr,Si,!1)}function Mx(i,u,p){var g=kr;kr|=2;var E=AM(),D=jM();(Br!==i||dr!==u)&&(ry=null,ef(i,u)),u=!1;var J=no;e:do try{if(Tr!==0&&nr!==null){var re=nr,xe=Ya;switch(Tr){case 8:kx(),J=6;break e;case 3:case 2:case 9:case 6:xi.current===null&&(u=!0);var _e=Tr;if(Tr=0,Ya=null,tf(i,re,xe,_e),p&&Qd){J=0;break e}break;default:_e=Tr,Tr=0,Ya=null,tf(i,re,xe,_e)}}mz(),J=no;break}catch(dt){DM(i,dt)}while(!0);return u&&i.shellSuspendCounter++,ya=ga=null,kr=g,j.H=E,j.A=D,nr===null&&(Br=null,dr=0,Zl()),J}function mz(){for(;nr!==null;)NM(nr)}function gz(i,u){var p=kr;kr|=2;var g=AM(),E=jM();Br!==i||dr!==u?(ry=null,ny=Ae()+500,ef(i,u)):Qd=Vt(i,u);e:do try{if(Tr!==0&&nr!==null){u=nr;var D=Ya;t:switch(Tr){case 1:Tr=0,Ya=null,tf(i,u,D,1);break;case 2:case 9:if(Yk(D)){Tr=0,Ya=null,IM(u);break}u=function(){Tr!==2&&Tr!==9||Br!==i||(Tr=7),As(i)},D.then(u,u);break e;case 3:Tr=7;break e;case 4:Tr=5;break e;case 7:Yk(D)?(Tr=0,Ya=null,IM(u)):(Tr=0,Ya=null,tf(i,u,D,7));break;case 5:var J=null;switch(nr.tag){case 26:J=nr.memoizedState;case 5:case 27:var re=nr;if(!J||yE(J)){Tr=0,Ya=null;var xe=re.sibling;if(xe!==null)nr=xe;else{var _e=re.return;_e!==null?(nr=_e,ay(_e)):nr=null}break t}}Tr=0,Ya=null,tf(i,u,D,5);break;case 6:Tr=0,Ya=null,tf(i,u,D,6);break;case 8:kx(),no=6;break e;default:throw Error(r(462))}}yz();break}catch(dt){DM(i,dt)}while(!0);return ya=ga=null,j.H=g,j.A=E,kr=p,nr!==null?0:(Br=null,dr=0,Zl(),no)}function yz(){for(;nr!==null&&!et();)NM(nr)}function NM(i){var u=lM(i.alternate,i,Cl);i.memoizedProps=i.pendingProps,u===null?ay(i):nr=u}function IM(i){var u=i,p=u.alternate;switch(u.tag){case 15:case 0:u=nM(p,u,u.pendingProps,u.type,void 0,dr);break;case 11:u=nM(p,u,u.pendingProps,u.type.render,u.ref,dr);break;case 5:U0(u);default:uM(p,u),u=nr=Pg(u,Cl),u=lM(p,u,Cl)}i.memoizedProps=i.pendingProps,u===null?ay(i):nr=u}function tf(i,u,p,g){ya=ga=null,U0(u),qd=null,Xp=0;var E=u.return;try{if(iz(i,E,u,p,dr)){no=1,Qg(i,Qo(p,i.current)),nr=null;return}}catch(D){if(E!==null)throw nr=E,D;no=1,Qg(i,Qo(p,i.current)),nr=null;return}u.flags&32768?(ee||g===1?i=!0:Qd||(dr&536870912)!==0?i=!1:(lc=i=!0,(g===2||g===9||g===3||g===6)&&(g=xi.current,g!==null&&g.tag===13&&(g.flags|=16384))),LM(u,i)):ay(u)}function ay(i){var u=i;do{if((u.flags&32768)!==0){LM(u,lc);return}i=u.return;var p=lz(u.alternate,u,Cl);if(p!==null){nr=p;return}if(u=u.sibling,u!==null){nr=u;return}nr=u=i}while(u!==null);no===0&&(no=5)}function LM(i,u){do{var p=cz(i.alternate,i);if(p!==null){p.flags&=32767,nr=p;return}if(p=i.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!u&&(i=i.sibling,i!==null)){nr=i;return}nr=i=p}while(i!==null);no=6,nr=null}function zM(i,u,p,g,E,D,J,re,xe){i.cancelPendingCommit=null;do iy();while(_o!==0);if((kr&6)!==0)throw Error(r(327));if(u!==null){if(u===i.current)throw Error(r(177));if(D=u.lanes|u.childLanes,D|=fu,In(i,p,D,J,re,xe),i===Br&&(nr=Br=null,dr=0),Zd=u,dc=i,Jd=p,Sx=D,wx=E,OM=g,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Sz(it,function(){return VM(),null})):(i.callbackNode=null,i.callbackPriority=0),g=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||g){g=j.T,j.T=null,E=X.p,X.p=2,J=kr,kr|=4;try{uz(i,u,p)}finally{kr=J,X.p=E,j.T=g}}_o=1,FM(),BM(),UM()}}function FM(){if(_o===1){_o=0;var i=dc,u=Zd,p=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||p){p=j.T,j.T=null;var g=X.p;X.p=2;var E=kr;kr|=4;try{SM(u,i);var D=zx,J=aa(i.containerInfo),re=D.focusedElem,xe=D.selectionRange;if(J!==re&&re&&re.ownerDocument&&Fa(re.ownerDocument.documentElement,re)){if(xe!==null&&Ln(re)){var _e=xe.start,dt=xe.end;if(dt===void 0&&(dt=_e),"selectionStart"in re)re.selectionStart=_e,re.selectionEnd=Math.min(dt,re.value.length);else{var xt=re.ownerDocument||document,Ye=xt&&xt.defaultView||window;if(Ye.getSelection){var Qe=Ye.getSelection(),Nn=re.textContent.length,$n=Math.min(xe.start,Nn),Ar=xe.end===void 0?$n:Math.min(xe.end,Nn);!Qe.extend&&$n>Ar&&(J=Ar,Ar=$n,$n=J);var Ie=Ur(re,$n),Re=Ur(re,Ar);if(Ie&&Re&&(Qe.rangeCount!==1||Qe.anchorNode!==Ie.node||Qe.anchorOffset!==Ie.offset||Qe.focusNode!==Re.node||Qe.focusOffset!==Re.offset)){var Be=xt.createRange();Be.setStart(Ie.node,Ie.offset),Qe.removeAllRanges(),$n>Ar?(Qe.addRange(Be),Qe.extend(Re.node,Re.offset)):(Be.setEnd(Re.node,Re.offset),Qe.addRange(Be))}}}}for(xt=[],Qe=re;Qe=Qe.parentNode;)Qe.nodeType===1&&xt.push({element:Qe,left:Qe.scrollLeft,top:Qe.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<xt.length;re++){var ht=xt[re];ht.element.scrollLeft=ht.left,ht.element.scrollTop=ht.top}}vy=!!Lx,zx=Lx=null}finally{kr=E,X.p=g,j.T=p}}i.current=u,_o=2}}function BM(){if(_o===2){_o=0;var i=dc,u=Zd,p=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||p){p=j.T,j.T=null;var g=X.p;X.p=2;var E=kr;kr|=4;try{yM(i,u.alternate,u)}finally{kr=E,X.p=g,j.T=p}}_o=3}}function UM(){if(_o===4||_o===3){_o=0,ze();var i=dc,u=Zd,p=Jd,g=OM;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?_o=5:(_o=0,Zd=dc=null,_M(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(uc=null),Xt(p),u=u.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Xe,u,void 0,(u.current.flags&128)===128)}catch{}if(g!==null){u=j.T,E=X.p,X.p=2,j.T=null;try{for(var D=i.onRecoverableError,J=0;J<g.length;J++){var re=g[J];D(re.value,{componentStack:re.stack})}}finally{j.T=u,X.p=E}}(Jd&3)!==0&&iy(),As(i),E=i.pendingLanes,(p&4194090)!==0&&(E&42)!==0?i===Cx?ih++:(ih=0,Cx=i):ih=0,sh(0)}}function _M(i,u){(i.pooledCacheLanes&=u)===0&&(u=i.pooledCache,u!=null&&(i.pooledCache=null,Bp(u)))}function iy(i){return FM(),BM(),UM(),VM()}function VM(){if(_o!==5)return!1;var i=dc,u=Sx;Sx=0;var p=Xt(Jd),g=j.T,E=X.p;try{X.p=32>p?32:p,j.T=null,p=wx,wx=null;var D=dc,J=Jd;if(_o=0,Zd=dc=null,Jd=0,(kr&6)!==0)throw Error(r(331));var re=kr;if(kr|=4,MM(D.current),CM(D,D.current,J,p),kr=re,sh(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Xe,D)}catch{}return!0}finally{X.p=E,j.T=g,_M(i,u)}}function HM(i,u,p){u=Qo(p,u),u=tx(i.stateNode,u,2),i=tc(i,u,2),i!==null&&(Qt(i,2),As(i))}function Lr(i,u,p){if(i.tag===3)HM(i,i,p);else for(;u!==null;){if(u.tag===3){HM(u,i,p);break}else if(u.tag===1){var g=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(uc===null||!uc.has(g))){i=Qo(p,i),p=KT(2),g=tc(u,p,2),g!==null&&(GT(p,g,u,i),Qt(g,2),As(g));break}}u=u.return}}function Ex(i,u,p){var g=i.pingCache;if(g===null){g=i.pingCache=new pz;var E=new Set;g.set(u,E)}else E=g.get(u),E===void 0&&(E=new Set,g.set(u,E));E.has(p)||(yx=!0,E.add(p),i=vz.bind(null,i,u,p),u.then(i,i))}function vz(i,u,p){var g=i.pingCache;g!==null&&g.delete(u),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Br===i&&(dr&p)===p&&(no===4||no===3&&(dr&62914560)===dr&&300>Ae()-xx?(kr&2)===0&&ef(i,0):vx|=p,Xd===dr&&(Xd=0)),As(i)}function WM(i,u){u===0&&(u=Bn()),i=rs(i,u),i!==null&&(Qt(i,u),As(i))}function bz(i){var u=i.memoizedState,p=0;u!==null&&(p=u.retryLane),WM(i,p)}function xz(i,u){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(u),WM(i,p)}function Sz(i,u){return de(i,u)}var sy=null,nf=null,Ox=!1,ly=!1,Rx=!1,wu=0;function As(i){i!==nf&&i.next===null&&(nf===null?sy=nf=i:nf=nf.next=i),ly=!0,Ox||(Ox=!0,Cz())}function sh(i,u){if(!Rx&&ly){Rx=!0;do for(var p=!1,g=sy;g!==null;){if(i!==0){var E=g.pendingLanes;if(E===0)var D=0;else{var J=g.suspendedLanes,re=g.pingedLanes;D=(1<<31-he(42|i)+1)-1,D&=E&~(J&~re),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(p=!0,GM(g,D))}else D=dr,D=$t(g,g===Br?D:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(D&3)===0||Vt(g,D)||(p=!0,GM(g,D));g=g.next}while(p);Rx=!1}}function wz(){qM()}function qM(){ly=Ox=!1;var i=0;wu!==0&&(Pz()&&(i=wu),wu=0);for(var u=Ae(),p=null,g=sy;g!==null;){var E=g.next,D=YM(g,u);D===0?(g.next=null,p===null?sy=E:p.next=E,E===null&&(nf=p)):(p=g,(i!==0||(D&3)!==0)&&(ly=!0)),g=E}sh(i)}function YM(i,u){for(var p=i.suspendedLanes,g=i.pingedLanes,E=i.expirationTimes,D=i.pendingLanes&-62914561;0<D;){var J=31-he(D),re=1<<J,xe=E[J];xe===-1?((re&p)===0||(re&g)!==0)&&(E[J]=un(re,u)):xe<=u&&(i.expiredLanes|=re),D&=~re}if(u=Br,p=dr,p=$t(i,i===u?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g=i.callbackNode,p===0||i===u&&(Tr===2||Tr===9)||i.cancelPendingCommit!==null)return g!==null&&g!==null&&ke(g),i.callbackNode=null,i.callbackPriority=0;if((p&3)===0||Vt(i,p)){if(u=p&-p,u===i.callbackPriority)return u;switch(g!==null&&ke(g),Xt(p)){case 2:case 8:p=Fe;break;case 32:p=it;break;case 268435456:p=Ft;break;default:p=it}return g=KM.bind(null,i),p=de(p,g),i.callbackPriority=u,i.callbackNode=p,u}return g!==null&&g!==null&&ke(g),i.callbackPriority=2,i.callbackNode=null,2}function KM(i,u){if(_o!==0&&_o!==5)return i.callbackNode=null,i.callbackPriority=0,null;var p=i.callbackNode;if(iy()&&i.callbackNode!==p)return null;var g=dr;return g=$t(i,i===Br?g:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g===0?null:($M(i,g,u),YM(i,Ae()),i.callbackNode!=null&&i.callbackNode===p?KM.bind(null,i):null)}function GM(i,u){if(iy())return null;$M(i,u,!0)}function Cz(){Az(function(){(kr&6)!==0?de(bt,wz):qM()})}function $x(){return wu===0&&(wu=vn()),wu}function QM(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:il(""+i)}function XM(i,u){var p=u.ownerDocument.createElement("input");return p.name=u.name,p.value=u.value,i.id&&p.setAttribute("form",i.id),u.parentNode.insertBefore(p,u),i=new FormData(i),p.parentNode.removeChild(p),i}function kz(i,u,p,g,E){if(u==="submit"&&p&&p.stateNode===E){var D=QM((E[ut]||null).action),J=g.submitter;J&&(u=(u=J[ut]||null)?QM(u.formAction):J.getAttribute("formAction"),u!==null&&(D=u,J=null));var re=new Xr("action","action",null,g,E);i.push({event:re,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(wu!==0){var xe=J?XM(E,J):new FormData(E);Q0(p,{pending:!0,data:xe,method:E.method,action:D},null,xe)}}else typeof D=="function"&&(re.preventDefault(),xe=J?XM(E,J):new FormData(E),Q0(p,{pending:!0,data:xe,method:E.method,action:D},D,xe))},currentTarget:E}]})}}for(var Px=0;Px<Dd.length;Px++){var Dx=Dd[Px],Tz=Dx.toLowerCase(),Mz=Dx[0].toUpperCase()+Dx.slice(1);Ba(Tz,"on"+Mz)}Ba(Og,"onAnimationEnd"),Ba(Rg,"onAnimationIteration"),Ba($g,"onAnimationStart"),Ba("dblclick","onDoubleClick"),Ba("focusin","onFocus"),Ba("focusout","onBlur"),Ba(Ap,"onTransitionRun"),Ba(T0,"onTransitionStart"),Ba(M0,"onTransitionCancel"),Ba(jp,"onTransitionEnd"),vt("onMouseEnter",["mouseout","mouseover"]),vt("onMouseLeave",["mouseout","mouseover"]),vt("onPointerEnter",["pointerout","pointerover"]),vt("onPointerLeave",["pointerout","pointerover"]),Ve("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ve("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ve("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ve("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ve("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ve("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lh="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(" "),Ez=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lh));function ZM(i,u){u=(u&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(u)for(var J=g.length-1;0<=J;J--){var re=g[J],xe=re.instance,_e=re.currentTarget;if(re=re.listener,xe!==D&&E.isPropagationStopped())break e;D=re,E.currentTarget=_e;try{D(E)}catch(dt){Gg(dt)}E.currentTarget=null,D=xe}else for(J=0;J<g.length;J++){if(re=g[J],xe=re.instance,_e=re.currentTarget,re=re.listener,xe!==D&&E.isPropagationStopped())break e;D=re,E.currentTarget=_e;try{D(E)}catch(dt){Gg(dt)}E.currentTarget=null,D=xe}}}}function rr(i,u){var p=u[Bt];p===void 0&&(p=u[Bt]=new Set);var g=i+"__bubble";p.has(g)||(JM(u,i,2,!1),p.add(g))}function Ax(i,u,p){var g=0;u&&(g|=4),JM(p,i,g,u)}var cy="_reactListening"+Math.random().toString(36).slice(2);function jx(i){if(!i[cy]){i[cy]=!0,ue.forEach(function(p){p!=="selectionchange"&&(Ez.has(p)||Ax(p,!1,i),Ax(p,!0,i))});var u=i.nodeType===9?i:i.ownerDocument;u===null||u[cy]||(u[cy]=!0,Ax("selectionchange",!1,u))}}function JM(i,u,p,g){switch(CE(u)){case 2:var E=e5;break;case 8:E=t5;break;default:E=Kx}p=E.bind(null,u,p,i),E=void 0,!nu||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(E=!0),g?E!==void 0?i.addEventListener(u,p,{capture:!0,passive:E}):i.addEventListener(u,p,!0):E!==void 0?i.addEventListener(u,p,{passive:E}):i.addEventListener(u,p,!1)}function Nx(i,u,p,g,E){var D=g;if((u&1)===0&&(u&2)===0&&g!==null)e:for(;;){if(g===null)return;var J=g.tag;if(J===3||J===4){var re=g.stateNode.containerInfo;if(re===E)break;if(J===4)for(J=g.return;J!==null;){var xe=J.tag;if((xe===3||xe===4)&&J.stateNode.containerInfo===E)return;J=J.return}for(;re!==null;){if(J=Ht(re),J===null)return;if(xe=J.tag,xe===5||xe===6||xe===26||xe===27){g=D=J;continue e}re=re.parentNode}}g=g.return}vd(function(){var _e=D,dt=ql(p),xt=[];e:{var Ye=Np.get(i);if(Ye!==void 0){var Qe=Xr,Nn=i;switch(i){case"keypress":if(Kl(p)===0)break e;case"keydown":case"keyup":Qe=cu;break;case"focusin":Nn="focus",Qe=su;break;case"focusout":Nn="blur",Qe=su;break;case"beforeblur":case"afterblur":Qe=su;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=xd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=kd;break;case Og:case Rg:case $g:Qe=Gl;break;case jp:Qe=Cp;break;case"scroll":case"scrollend":Qe=Me;break;case"wheel":Qe=kp;break;case"copy":case"cut":case"paste":Qe=Ts;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Cd;break;case"toggle":case"beforetoggle":Qe=Mp}var $n=(u&4)!==0,Ar=!$n&&(i==="scroll"||i==="scrollend"),Ie=$n?Ye!==null?Ye+"Capture":null:Ye;$n=[];for(var Re=_e,Be;Re!==null;){var ht=Re;if(Be=ht.stateNode,ht=ht.tag,ht!==5&&ht!==26&&ht!==27||Be===null||Ie===null||(ht=sl(Re,Ie),ht!=null&&$n.push(ch(Re,ht,Be))),Ar)break;Re=Re.return}0<$n.length&&(Ye=new Qe(Ye,Nn,null,p,dt),xt.push({event:Ye,listeners:$n}))}}if((u&7)===0){e:{if(Ye=i==="mouseover"||i==="pointerover",Qe=i==="mouseout"||i==="pointerout",Ye&&p!==Wl&&(Nn=p.relatedTarget||p.fromElement)&&(Ht(Nn)||Nn[Nt]))break e;if((Qe||Ye)&&(Ye=dt.window===dt?dt:(Ye=dt.ownerDocument)?Ye.defaultView||Ye.parentWindow:window,Qe?(Nn=p.relatedTarget||p.toElement,Qe=_e,Nn=Nn?Ht(Nn):null,Nn!==null&&(Ar=a(Nn),$n=Nn.tag,Nn!==Ar||$n!==5&&$n!==27&&$n!==6)&&(Nn=null)):(Qe=null,Nn=_e),Qe!==Nn)){if($n=iu,ht="onMouseLeave",Ie="onMouseEnter",Re="mouse",(i==="pointerout"||i==="pointerover")&&($n=Cd,ht="onPointerLeave",Ie="onPointerEnter",Re="pointer"),Ar=Qe==null?Ye:qn(Qe),Be=Nn==null?Ye:qn(Nn),Ye=new $n(ht,Re+"leave",Qe,p,dt),Ye.target=Ar,Ye.relatedTarget=Be,ht=null,Ht(dt)===_e&&($n=new $n(Ie,Re+"enter",Nn,p,dt),$n.target=Be,$n.relatedTarget=Ar,ht=$n),Ar=ht,Qe&&Nn)t:{for($n=Qe,Ie=Nn,Re=0,Be=$n;Be;Be=rf(Be))Re++;for(Be=0,ht=Ie;ht;ht=rf(ht))Be++;for(;0<Re-Be;)$n=rf($n),Re--;for(;0<Be-Re;)Ie=rf(Ie),Be--;for(;Re--;){if($n===Ie||Ie!==null&&$n===Ie.alternate)break t;$n=rf($n),Ie=rf(Ie)}$n=null}else $n=null;Qe!==null&&eE(xt,Ye,Qe,$n,!1),Nn!==null&&Ar!==null&&eE(xt,Ar,Nn,$n,!0)}}e:{if(Ye=_e?qn(_e):window,Qe=Ye.nodeName&&Ye.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Ye.type==="file")var en=B;else if($d(Ye))if(K)en=wr;else{en=Kn;var Jn=Yn}else Qe=Ye.nodeName,!Qe||Qe.toLowerCase()!=="input"||Ye.type!=="checkbox"&&Ye.type!=="radio"?_e&&Jc(_e.elementType)&&(en=B):en=Wt;if(en&&(en=en(i,_e))){Pd(xt,en,p,dt);break e}Jn&&Jn(i,Ye,_e),i==="focusout"&&_e&&Ye.type==="number"&&_e.memoizedProps.value!=null&&Qi(Ye,"number",Ye.value)}switch(Jn=_e?qn(_e):window,i){case"focusin":($d(Jn)||Jn.contentEditable==="true")&&(ia=Jn,ns=_e,Go=null);break;case"focusout":Go=ns=ia=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":Zr=!1,pl(xt,p,dt);break;case"selectionchange":if(fl)break;case"keydown":case"keyup":pl(xt,p,dt)}var hn;if(du)e:{switch(i){case"compositionstart":var Pn="onCompositionStart";break e;case"compositionend":Pn="onCompositionEnd";break e;case"compositionupdate":Pn="onCompositionUpdate";break e}Pn=void 0}else Os?Od(i,p)&&(Pn="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Pn="onCompositionStart");Pn&&(Td&&p.locale!=="ko"&&(Os||Pn!=="onCompositionStart"?Pn==="onCompositionEnd"&&Os&&(hn=ou()):(hi=dt,ru="value"in hi?hi.value:hi.textContent,Os=!0)),Jn=uy(_e,Pn),0<Jn.length&&(Pn=new es(Pn,i,null,p,dt),xt.push({event:Pn,listeners:Jn}),hn?Pn.data=hn:(hn=Rd(p),hn!==null&&(Pn.data=hn)))),(hn=Op?Rp(i,p):$p(i,p))&&(Pn=uy(_e,"onBeforeInput"),0<Pn.length&&(Jn=new es("onBeforeInput","beforeinput",null,p,dt),xt.push({event:Jn,listeners:Pn}),Jn.data=hn)),kz(xt,i,_e,p,dt)}ZM(xt,u)})}function ch(i,u,p){return{instance:i,listener:u,currentTarget:p}}function uy(i,u){for(var p=u+"Capture",g=[];i!==null;){var E=i,D=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||D===null||(E=sl(i,p),E!=null&&g.unshift(ch(i,E,D)),E=sl(i,u),E!=null&&g.push(ch(i,E,D))),i.tag===3)return g;i=i.return}return[]}function rf(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function eE(i,u,p,g,E){for(var D=u._reactName,J=[];p!==null&&p!==g;){var re=p,xe=re.alternate,_e=re.stateNode;if(re=re.tag,xe!==null&&xe===g)break;re!==5&&re!==26&&re!==27||_e===null||(xe=_e,E?(_e=sl(p,D),_e!=null&&J.unshift(ch(p,_e,xe))):E||(_e=sl(p,D),_e!=null&&J.push(ch(p,_e,xe)))),p=p.return}J.length!==0&&i.push({event:u,listeners:J})}var Oz=/\r\n?/g,Rz=/\u0000|\uFFFD/g;function tE(i){return(typeof i=="string"?i:""+i).replace(Oz,`
50
+ `).replace(Rz,"")}function nE(i,u){return u=tE(u),tE(i)===u}function dy(){}function Dr(i,u,p,g,E,D){switch(p){case"children":typeof g=="string"?u==="body"||u==="textarea"&&g===""||Xi(i,g):(typeof g=="number"||typeof g=="bigint")&&u!=="body"&&Xi(i,""+g);break;case"className":Ee(i,"class",g);break;case"tabIndex":Ee(i,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Ee(i,p,g);break;case"style":al(i,g,D);break;case"data":if(u!=="object"){Ee(i,"data",g);break}case"src":case"href":if(g===""&&(u!=="a"||p!=="href")){i.removeAttribute(p);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=il(""+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"?(u!=="input"&&Dr(i,u,"name",E.name,E,null),Dr(i,u,"formEncType",E.formEncType,E,null),Dr(i,u,"formMethod",E.formMethod,E,null),Dr(i,u,"formTarget",E.formTarget,E,null)):(Dr(i,u,"encType",E.encType,E,null),Dr(i,u,"method",E.method,E,null),Dr(i,u,"target",E.target,E,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=il(""+g),i.setAttribute(p,g);break;case"onClick":g!=null&&(i.onclick=dy);break;case"onScroll":g!=null&&rr("scroll",i);break;case"onScrollEnd":g!=null&&rr("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=il(""+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":rr("beforetoggle",i),rr("toggle",i),me(i,"popover",g);break;case"xlinkActuate":He(i,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":He(i,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":He(i,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":He(i,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":He(i,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":He(i,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":He(i,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":He(i,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":He(i,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":me(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,me(i,p,g))}}function Ix(i,u,p,g,E,D){switch(p){case"style":al(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"?Xi(i,g):(typeof g=="number"||typeof g=="bigint")&&Xi(i,""+g);break;case"onScroll":g!=null&&rr("scroll",i);break;case"onScrollEnd":g!=null&&rr("scrollend",i);break;case"onClick":g!=null&&(i.onclick=dy);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fe.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(E=p.endsWith("Capture"),u=p.slice(2,E?p.length-7:void 0),D=i[ut]||null,D=D!=null?D[p]:null,typeof D=="function"&&i.removeEventListener(u,D,E),typeof g=="function")){typeof D!="function"&&D!==null&&(p in i?i[p]=null:i.hasAttribute(p)&&i.removeAttribute(p)),i.addEventListener(u,g,E);break e}p in i?i[p]=g:g===!0?i.setAttribute(p,""):me(i,p,g)}}}function Vo(i,u,p){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rr("error",i),rr("load",i);var g=!1,E=!1,D;for(D in p)if(p.hasOwnProperty(D)){var J=p[D];if(J!=null)switch(D){case"src":g=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Dr(i,u,D,J,p,null)}}E&&Dr(i,u,"srcSet",p.srcSet,p,null),g&&Dr(i,u,"src",p.src,p,null);return;case"input":rr("invalid",i);var re=D=J=E=null,xe=null,_e=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":J=dt;break;case"checked":xe=dt;break;case"defaultChecked":_e=dt;break;case"value":D=dt;break;case"defaultValue":re=dt;break;case"children":case"dangerouslySetInnerHTML":if(dt!=null)throw Error(r(137,u));break;default:Dr(i,u,g,dt,p,null)}}Xc(i,D,re,xe,_e,J,E,!1),bs(i);return;case"select":rr("invalid",i),g=J=D=null;for(E in p)if(p.hasOwnProperty(E)&&(re=p[E],re!=null))switch(E){case"value":D=re;break;case"defaultValue":J=re;break;case"multiple":g=re;default:Dr(i,u,E,re,p,null)}u=D,p=J,i.multiple=!!g,u!=null?pi(i,!!g,u,!1):p!=null&&pi(i,!!g,p,!0);return;case"textarea":rr("invalid",i),D=E=g=null;for(J in p)if(p.hasOwnProperty(J)&&(re=p[J],re!=null))switch(J){case"value":g=re;break;case"defaultValue":E=re;break;case"children":D=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(91));break;default:Dr(i,u,J,re,p,null)}ol(i,g,E,D),bs(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:Dr(i,u,xe,g,p,null)}return;case"dialog":rr("beforetoggle",i),rr("toggle",i),rr("cancel",i),rr("close",i);break;case"iframe":case"object":rr("load",i);break;case"video":case"audio":for(g=0;g<lh.length;g++)rr(lh[g],i);break;case"image":rr("error",i),rr("load",i);break;case"details":rr("toggle",i);break;case"embed":case"source":case"link":rr("error",i),rr("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(_e in p)if(p.hasOwnProperty(_e)&&(g=p[_e],g!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Dr(i,u,_e,g,p,null)}return;default:if(Jc(u)){for(dt in p)p.hasOwnProperty(dt)&&(g=p[dt],g!==void 0&&Ix(i,u,dt,g,p,void 0));return}}for(re in p)p.hasOwnProperty(re)&&(g=p[re],g!=null&&Dr(i,u,re,g,p,null))}function $z(i,u,p,g){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,D=null,J=null,re=null,xe=null,_e=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)||Dr(i,u,Qe,null,g,xt)}}for(var Ye in g){var Qe=g[Ye];if(xt=p[Ye],g.hasOwnProperty(Ye)&&(Qe!=null||xt!=null))switch(Ye){case"type":D=Qe;break;case"name":E=Qe;break;case"checked":_e=Qe;break;case"defaultChecked":dt=Qe;break;case"value":J=Qe;break;case"defaultValue":re=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(r(137,u));break;default:Qe!==xt&&Dr(i,u,Ye,Qe,g,xt)}}Ss(i,J,re,xe,_e,dt,D,E);return;case"select":Qe=J=re=Ye=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)||Dr(i,u,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":Ye=D;break;case"defaultValue":re=D;break;case"multiple":J=D;default:D!==xe&&Dr(i,u,E,D,g,xe)}u=re,p=J,g=Qe,Ye!=null?pi(i,!!p,Ye,!1):!!g!=!!p&&(u!=null?pi(i,!!p,u,!0):pi(i,!!p,p?[]:"",!1));return;case"textarea":Qe=Ye=null;for(re in p)if(E=p[re],p.hasOwnProperty(re)&&E!=null&&!g.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:Dr(i,u,re,null,g,E)}for(J in g)if(E=g[J],D=p[J],g.hasOwnProperty(J)&&(E!=null||D!=null))switch(J){case"value":Ye=E;break;case"defaultValue":Qe=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==D&&Dr(i,u,J,E,g,D)}Zc(i,Ye,Qe);return;case"option":for(var Nn in p)if(Ye=p[Nn],p.hasOwnProperty(Nn)&&Ye!=null&&!g.hasOwnProperty(Nn))switch(Nn){case"selected":i.selected=!1;break;default:Dr(i,u,Nn,null,g,Ye)}for(xe in g)if(Ye=g[xe],Qe=p[xe],g.hasOwnProperty(xe)&&Ye!==Qe&&(Ye!=null||Qe!=null))switch(xe){case"selected":i.selected=Ye&&typeof Ye!="function"&&typeof Ye!="symbol";break;default:Dr(i,u,xe,Ye,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)Ye=p[$n],p.hasOwnProperty($n)&&Ye!=null&&!g.hasOwnProperty($n)&&Dr(i,u,$n,null,g,Ye);for(_e in g)if(Ye=g[_e],Qe=p[_e],g.hasOwnProperty(_e)&&Ye!==Qe&&(Ye!=null||Qe!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(r(137,u));break;default:Dr(i,u,_e,Ye,g,Qe)}return;default:if(Jc(u)){for(var Ar in p)Ye=p[Ar],p.hasOwnProperty(Ar)&&Ye!==void 0&&!g.hasOwnProperty(Ar)&&Ix(i,u,Ar,void 0,g,Ye);for(dt in g)Ye=g[dt],Qe=p[dt],!g.hasOwnProperty(dt)||Ye===Qe||Ye===void 0&&Qe===void 0||Ix(i,u,dt,Ye,g,Qe);return}}for(var Ie in p)Ye=p[Ie],p.hasOwnProperty(Ie)&&Ye!=null&&!g.hasOwnProperty(Ie)&&Dr(i,u,Ie,null,g,Ye);for(xt in g)Ye=g[xt],Qe=p[xt],!g.hasOwnProperty(xt)||Ye===Qe||Ye==null&&Qe==null||Dr(i,u,xt,Ye,g,Qe)}var Lx=null,zx=null;function fy(i){return i.nodeType===9?i:i.ownerDocument}function rE(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 oE(i,u){if(i===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&u==="foreignObject"?0:i}function Fx(i,u){return i==="textarea"||i==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Bx=null;function Pz(){var i=window.event;return i&&i.type==="popstate"?i===Bx?!1:(Bx=i,!0):(Bx=null,!1)}var aE=typeof setTimeout=="function"?setTimeout:void 0,Dz=typeof clearTimeout=="function"?clearTimeout:void 0,iE=typeof Promise=="function"?Promise:void 0,Az=typeof queueMicrotask=="function"?queueMicrotask:typeof iE<"u"?function(i){return iE.resolve(null).then(i).catch(jz)}:aE;function jz(i){setTimeout(function(){throw i})}function pc(i){return i==="head"}function sE(i,u){var p=u,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 J=i.ownerDocument;if(p&1&&uh(J.documentElement),p&2&&uh(J.body),p&4)for(p=J.head,uh(p),J=p.firstChild;J;){var re=J.nextSibling,xe=J.nodeName;J[Et]||xe==="SCRIPT"||xe==="STYLE"||xe==="LINK"&&J.rel.toLowerCase()==="stylesheet"||p.removeChild(J),J=re}}if(E===0){i.removeChild(D),vh(u);return}E--}else p==="$"||p==="$?"||p==="$!"?E++:g=p.charCodeAt(0)-48;else g=0;p=D}while(p);vh(u)}function Ux(i){var u=i.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var p=u;switch(u=u.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":Ux(p),wt(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}i.removeChild(p)}}function Nz(i,u,p,g){for(;i.nodeType===1;){var E=p;if(i.nodeName.toLowerCase()!==u.toLowerCase()){if(!g&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(g){if(!i[Et])switch(u){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(u==="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=is(i.nextSibling),i===null)break}return null}function Iz(i,u,p){if(u==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!p||(i=is(i.nextSibling),i===null))return null;return i}function _x(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Lz(i,u){var p=i.ownerDocument;if(i.data!=="$?"||p.readyState==="complete")u();else{var g=function(){u(),p.removeEventListener("DOMContentLoaded",g)};p.addEventListener("DOMContentLoaded",g),i._reactRetry=g}}function is(i){for(;i!=null;i=i.nextSibling){var u=i.nodeType;if(u===1||u===3)break;if(u===8){if(u=i.data,u==="$"||u==="$!"||u==="$?"||u==="F!"||u==="F")break;if(u==="/$")return null}}return i}var Vx=null;function lE(i){i=i.previousSibling;for(var u=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(u===0)return i;u--}else p==="/$"&&u++}i=i.previousSibling}return null}function cE(i,u,p){switch(u=fy(p),i){case"html":if(i=u.documentElement,!i)throw Error(r(452));return i;case"head":if(i=u.head,!i)throw Error(r(453));return i;case"body":if(i=u.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function uh(i){for(var u=i.attributes;u.length;)i.removeAttributeNode(u[0]);wt(i)}var wi=new Map,uE=new Set;function py(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var kl=X.d;X.d={f:zz,r:Fz,D:Bz,C:Uz,L:_z,m:Vz,X:Wz,S:Hz,M:qz};function zz(){var i=kl.f(),u=oy();return i||u}function Fz(i){var u=On(i);u!==null&&u.tag===5&&u.type==="form"?$T(u):kl.r(i)}var of=typeof document>"u"?null:document;function dE(i,u,p){var g=of;if(g&&typeof u=="string"&&u){var E=Mo(u);E='link[rel="'+i+'"][href="'+E+'"]',typeof p=="string"&&(E+='[crossorigin="'+p+'"]'),uE.has(E)||(uE.add(E),i={rel:i,crossOrigin:p,href:u},g.querySelector(E)===null&&(u=g.createElement("link"),Vo(u,"link",i),dn(u),g.head.appendChild(u)))}}function Bz(i){kl.D(i),dE("dns-prefetch",i,null)}function Uz(i,u){kl.C(i,u),dE("preconnect",i,u)}function _z(i,u,p){kl.L(i,u,p);var g=of;if(g&&i&&u){var E='link[rel="preload"][as="'+Mo(u)+'"]';u==="image"&&p&&p.imageSrcSet?(E+='[imagesrcset="'+Mo(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(E+='[imagesizes="'+Mo(p.imageSizes)+'"]')):E+='[href="'+Mo(i)+'"]';var D=E;switch(u){case"style":D=af(i);break;case"script":D=sf(i)}wi.has(D)||(i=c({rel:"preload",href:u==="image"&&p&&p.imageSrcSet?void 0:i,as:u},p),wi.set(D,i),g.querySelector(E)!==null||u==="style"&&g.querySelector(dh(D))||u==="script"&&g.querySelector(fh(D))||(u=g.createElement("link"),Vo(u,"link",i),dn(u),g.head.appendChild(u)))}}function Vz(i,u){kl.m(i,u);var p=of;if(p&&i){var g=u&&typeof u.as=="string"?u.as:"script",E='link[rel="modulepreload"][as="'+Mo(g)+'"][href="'+Mo(i)+'"]',D=E;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=sf(i)}if(!wi.has(D)&&(i=c({rel:"modulepreload",href:i},u),wi.set(D,i),p.querySelector(E)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(fh(D)))return}g=p.createElement("link"),Vo(g,"link",i),dn(g),p.head.appendChild(g)}}}function Hz(i,u,p){kl.S(i,u,p);var g=of;if(g&&i){var E=bn(g).hoistableStyles,D=af(i);u=u||"default";var J=E.get(D);if(!J){var re={loading:0,preload:null};if(J=g.querySelector(dh(D)))re.loading=5;else{i=c({rel:"stylesheet",href:i,"data-precedence":u},p),(p=wi.get(D))&&Hx(i,p);var xe=J=g.createElement("link");dn(xe),Vo(xe,"link",i),xe._p=new Promise(function(_e,dt){xe.onload=_e,xe.onerror=dt}),xe.addEventListener("load",function(){re.loading|=1}),xe.addEventListener("error",function(){re.loading|=2}),re.loading|=4,hy(J,u,g)}J={type:"stylesheet",instance:J,count:1,state:re},E.set(D,J)}}}function Wz(i,u){kl.X(i,u);var p=of;if(p&&i){var g=bn(p).hoistableScripts,E=sf(i),D=g.get(E);D||(D=p.querySelector(fh(E)),D||(i=c({src:i,async:!0},u),(u=wi.get(E))&&Wx(i,u),D=p.createElement("script"),dn(D),Vo(D,"link",i),p.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},g.set(E,D))}}function qz(i,u){kl.M(i,u);var p=of;if(p&&i){var g=bn(p).hoistableScripts,E=sf(i),D=g.get(E);D||(D=p.querySelector(fh(E)),D||(i=c({src:i,async:!0,type:"module"},u),(u=wi.get(E))&&Wx(i,u),D=p.createElement("script"),dn(D),Vo(D,"link",i),p.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},g.set(E,D))}}function fE(i,u,p,g){var E=(E=ae.current)?py(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"?(u=af(p.href),p=bn(E).hoistableStyles,g=p.get(u),g||(g={type:"style",instance:null,count:0,state:null},p.set(u,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=af(p.href);var D=bn(E).hoistableStyles,J=D.get(i);if(J||(E=E.ownerDocument||E,J={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(i,J),(D=E.querySelector(dh(i)))&&!D._p&&(J.instance=D,J.state.loading=5),wi.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},wi.set(i,p),D||Yz(E,i,p,J.state))),u&&g===null)throw Error(r(528,""));return J}if(u&&g!==null)throw Error(r(529,""));return null;case"script":return u=p.async,p=p.src,typeof p=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=sf(p),p=bn(E).hoistableScripts,g=p.get(u),g||(g={type:"script",instance:null,count:0,state:null},p.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function af(i){return'href="'+Mo(i)+'"'}function dh(i){return'link[rel="stylesheet"]['+i+"]"}function pE(i){return c({},i,{"data-precedence":i.precedence,precedence:null})}function Yz(i,u,p,g){i.querySelector('link[rel="preload"][as="style"]['+u+"]")?g.loading=1:(u=i.createElement("link"),g.preload=u,u.addEventListener("load",function(){return g.loading|=1}),u.addEventListener("error",function(){return g.loading|=2}),Vo(u,"link",p),dn(u),i.head.appendChild(u))}function sf(i){return'[src="'+Mo(i)+'"]'}function fh(i){return"script[async]"+i}function hE(i,u,p){if(u.count++,u.instance===null)switch(u.type){case"style":var g=i.querySelector('style[data-href~="'+Mo(p.href)+'"]');if(g)return u.instance=g,dn(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"),dn(g),Vo(g,"style",E),hy(g,p.precedence,i),u.instance=g;case"stylesheet":E=af(p.href);var D=i.querySelector(dh(E));if(D)return u.state.loading|=4,u.instance=D,dn(D),D;g=pE(p),(E=wi.get(E))&&Hx(g,E),D=(i.ownerDocument||i).createElement("link"),dn(D);var J=D;return J._p=new Promise(function(re,xe){J.onload=re,J.onerror=xe}),Vo(D,"link",g),u.state.loading|=4,hy(D,p.precedence,i),u.instance=D;case"script":return D=sf(p.src),(E=i.querySelector(fh(D)))?(u.instance=E,dn(E),E):(g=p,(E=wi.get(D))&&(g=c({},p),Wx(g,E)),i=i.ownerDocument||i,E=i.createElement("script"),dn(E),Vo(E,"link",g),i.head.appendChild(E),u.instance=E);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(g=u.instance,u.state.loading|=4,hy(g,p.precedence,i));return u.instance}function hy(i,u,p){for(var g=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=g.length?g[g.length-1]:null,D=E,J=0;J<g.length;J++){var re=g[J];if(re.dataset.precedence===u)D=re;else if(D!==E)break}D?D.parentNode.insertBefore(i,D.nextSibling):(u=p.nodeType===9?p.head:p,u.insertBefore(i,u.firstChild))}function Hx(i,u){i.crossOrigin==null&&(i.crossOrigin=u.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=u.referrerPolicy),i.title==null&&(i.title=u.title)}function Wx(i,u){i.crossOrigin==null&&(i.crossOrigin=u.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=u.referrerPolicy),i.integrity==null&&(i.integrity=u.integrity)}var my=null;function mE(i,u,p){if(my===null){var g=new Map,E=my=new Map;E.set(p,g)}else E=my,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[Et]||D[qe]||i==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!=="http://www.w3.org/2000/svg"){var J=D.getAttribute(u)||"";J=i+J;var re=g.get(J);re?re.push(D):g.set(J,[D])}}return g}function gE(i,u,p){i=i.ownerDocument||i,i.head.insertBefore(p,u==="title"?i.querySelector("head > title"):null)}function Kz(i,u,p){if(p===1||u.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return i=u.disabled,typeof u.precedence=="string"&&i==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function yE(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var ph=null;function Gz(){}function Qz(i,u,p){if(ph===null)throw Error(r(475));var g=ph;if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var E=af(p.href),D=i.querySelector(dh(E));if(D){i=D._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(g.count++,g=gy.bind(g),i.then(g,g)),u.state.loading|=4,u.instance=D,dn(D);return}D=i.ownerDocument||i,p=pE(p),(E=wi.get(E))&&Hx(p,E),D=D.createElement("link"),dn(D);var J=D;J._p=new Promise(function(re,xe){J.onload=re,J.onerror=xe}),Vo(D,"link",p),u.instance=D}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(g.count++,u=gy.bind(g),i.addEventListener("load",u),i.addEventListener("error",u))}}function Xz(){if(ph===null)throw Error(r(475));var i=ph;return i.stylesheets&&i.count===0&&qx(i,i.stylesheets),0<i.count?function(u){var p=setTimeout(function(){if(i.stylesheets&&qx(i,i.stylesheets),i.unsuspend){var g=i.unsuspend;i.unsuspend=null,g()}},6e4);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p)}}:null}function gy(){if(this.count--,this.count===0){if(this.stylesheets)qx(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var yy=null;function qx(i,u){i.stylesheets=null,i.unsuspend!==null&&(i.count++,yy=new Map,u.forEach(Zz,i),yy=null,gy.call(i))}function Zz(i,u){if(!(u.state.loading&4)){var p=yy.get(i);if(p)var g=p.get(null);else{p=new Map,yy.set(i,p);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<E.length;D++){var J=E[D];(J.nodeName==="LINK"||J.getAttribute("media")!=="not all")&&(p.set(J.dataset.precedence,J),g=J)}g&&p.set(null,g)}E=u.instance,J=E.getAttribute("data-precedence"),D=p.get(J)||g,D===g&&p.set(null,E),p.set(J,E),this.count++,g=gy.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)),u.state.loading|=4}}var hh={$$typeof:M,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Jz(i,u,p,g,E,D,J,re){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=Wn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wn(0),this.hiddenUpdates=Wn(null),this.identifierPrefix=g,this.onUncaughtError=E,this.onCaughtError=D,this.onRecoverableError=J,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=re,this.incompleteTransitions=new Map}function vE(i,u,p,g,E,D,J,re,xe,_e,dt,xt){return i=new Jz(i,u,p,J,re,xe,_e,xt),u=1,D===!0&&(u|=24),D=Bo(3,null,null,u),i.current=D,D.stateNode=i,u=E0(),u.refCount++,i.pooledCache=u,u.refCount++,D.memoizedState={element:g,isDehydrated:p,cache:u},P0(D),i}function bE(i){return i?(i=Ua,i):Ua}function xE(i,u,p,g,E,D){E=bE(E),g.context===null?g.context=E:g.pendingContext=E,g=ec(u),g.payload={element:p},D=D===void 0?null:D,D!==null&&(g.callback=D),p=tc(i,g,u),p!==null&&(Ga(p,i,u),Hp(p,i,u))}function SE(i,u){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<u?p:u}}function Yx(i,u){SE(i,u),(i=i.alternate)&&SE(i,u)}function wE(i){if(i.tag===13){var u=rs(i,67108864);u!==null&&Ga(u,i,67108864),Yx(i,67108864)}}var vy=!0;function e5(i,u,p,g){var E=j.T;j.T=null;var D=X.p;try{X.p=2,Kx(i,u,p,g)}finally{X.p=D,j.T=E}}function t5(i,u,p,g){var E=j.T;j.T=null;var D=X.p;try{X.p=8,Kx(i,u,p,g)}finally{X.p=D,j.T=E}}function Kx(i,u,p,g){if(vy){var E=Gx(g);if(E===null)Nx(i,u,g,by,p),kE(i,g);else if(r5(E,i,u,p,g))g.stopPropagation();else if(kE(i,g),u&4&&-1<n5.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 J=ct(D.pendingLanes);if(J!==0){var re=D;for(re.pendingLanes|=2,re.entangledLanes|=2;J;){var xe=1<<31-he(J);re.entanglements[1]|=xe,J&=~xe}As(D),(kr&6)===0&&(ny=Ae()+500,sh(0))}}break;case 13:re=rs(D,2),re!==null&&Ga(re,D,2),oy(),Yx(D,2)}if(D=Gx(g),D===null&&Nx(i,u,g,by,p),D===E)break;E=D}E!==null&&g.stopPropagation()}else Nx(i,u,g,null,p)}}function Gx(i){return i=ql(i),Qx(i)}var by=null;function Qx(i){if(by=null,i=Ht(i),i!==null){var u=a(i);if(u===null)i=null;else{var p=u.tag;if(p===13){if(i=s(u),i!==null)return i;i=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;i=null}else u!==i&&(i=null)}}return by=i,null}function CE(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(se()){case bt:return 2;case Fe:return 8;case it:case pt:return 32;case Ft:return 268435456;default:return 32}default:return 32}}var Xx=!1,hc=null,mc=null,gc=null,mh=new Map,gh=new Map,yc=[],n5="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 kE(i,u){switch(i){case"focusin":case"focusout":hc=null;break;case"dragenter":case"dragleave":mc=null;break;case"mouseover":case"mouseout":gc=null;break;case"pointerover":case"pointerout":mh.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":gh.delete(u.pointerId)}}function yh(i,u,p,g,E,D){return i===null||i.nativeEvent!==D?(i={blockedOn:u,domEventName:p,eventSystemFlags:g,nativeEvent:D,targetContainers:[E]},u!==null&&(u=On(u),u!==null&&wE(u)),i):(i.eventSystemFlags|=g,u=i.targetContainers,E!==null&&u.indexOf(E)===-1&&u.push(E),i)}function r5(i,u,p,g,E){switch(u){case"focusin":return hc=yh(hc,i,u,p,g,E),!0;case"dragenter":return mc=yh(mc,i,u,p,g,E),!0;case"mouseover":return gc=yh(gc,i,u,p,g,E),!0;case"pointerover":var D=E.pointerId;return mh.set(D,yh(mh.get(D)||null,i,u,p,g,E)),!0;case"gotpointercapture":return D=E.pointerId,gh.set(D,yh(gh.get(D)||null,i,u,p,g,E)),!0}return!1}function TE(i){var u=Ht(i.target);if(u!==null){var p=a(u);if(p!==null){if(u=p.tag,u===13){if(u=s(p),u!==null){i.blockedOn=u,Pe(i.priority,function(){if(p.tag===13){var g=Ka();g=En(g);var E=rs(p,g);E!==null&&Ga(E,p,g),Yx(p,g)}});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function xy(i){if(i.blockedOn!==null)return!1;for(var u=i.targetContainers;0<u.length;){var p=Gx(i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);Wl=g,p.target.dispatchEvent(g),Wl=null}else return u=On(p),u!==null&&wE(u),i.blockedOn=p,!1;u.shift()}return!0}function ME(i,u,p){xy(i)&&p.delete(u)}function o5(){Xx=!1,hc!==null&&xy(hc)&&(hc=null),mc!==null&&xy(mc)&&(mc=null),gc!==null&&xy(gc)&&(gc=null),mh.forEach(ME),gh.forEach(ME)}function Sy(i,u){i.blockedOn===u&&(i.blockedOn=null,Xx||(Xx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,o5)))}var wy=null;function EE(i){wy!==i&&(wy=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){wy===i&&(wy=null);for(var u=0;u<i.length;u+=3){var p=i[u],g=i[u+1],E=i[u+2];if(typeof g!="function"){if(Qx(g||p)===null)continue;break}var D=On(p);D!==null&&(i.splice(u,3),u-=3,Q0(D,{pending:!0,data:E,method:p.method,action:g},g,E))}}))}function vh(i){function u(xe){return Sy(xe,i)}hc!==null&&Sy(hc,i),mc!==null&&Sy(mc,i),gc!==null&&Sy(gc,i),mh.forEach(u),gh.forEach(u);for(var p=0;p<yc.length;p++){var g=yc[p];g.blockedOn===i&&(g.blockedOn=null)}for(;0<yc.length&&(p=yc[0],p.blockedOn===null);)TE(p),p.blockedOn===null&&yc.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],J=E[ut]||null;if(typeof D=="function")J||EE(p);else if(J){var re=null;if(D&&D.hasAttribute("formAction")){if(E=D,J=D[ut]||null)re=J.formAction;else if(Qx(E)!==null)continue}else re=J.action;typeof re=="function"?p[g+1]=re:(p.splice(g,3),g-=3),EE(p)}}}function Zx(i){this._internalRoot=i}Cy.prototype.render=Zx.prototype.render=function(i){var u=this._internalRoot;if(u===null)throw Error(r(409));var p=u.current,g=Ka();xE(p,g,i,u,null,null)},Cy.prototype.unmount=Zx.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var u=i.containerInfo;xE(i.current,2,null,i,null,null),oy(),u[Nt]=null}};function Cy(i){this._internalRoot=i}Cy.prototype.unstable_scheduleHydration=function(i){if(i){var u=ie();i={blockedOn:null,target:i,priority:u};for(var p=0;p<yc.length&&u!==0&&u<yc[p].priority;p++);yc.splice(p,0,i),p===0&&TE(i)}};var OE=t.version;if(OE!=="19.1.1")throw Error(r(527,OE,"19.1.1"));X.findDOMNode=function(i){var u=i._reactInternals;if(u===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(u),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var a5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ky=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ky.isDisabled&&ky.supportsFiber)try{Xe=ky.inject(a5),rt=ky}catch{}}return xh.createRoot=function(i,u){if(!o(i))throw Error(r(299));var p=!1,g="",E=HT,D=WT,J=qT,re=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(D=u.onCaughtError),u.onRecoverableError!==void 0&&(J=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(re=u.unstable_transitionCallbacks)),u=vE(i,1,!1,null,null,p,g,E,D,J,re,null),i[Nt]=u.current,jx(i),new Zx(u)},xh.hydrateRoot=function(i,u,p){if(!o(i))throw Error(r(299));var g=!1,E="",D=HT,J=WT,re=qT,xe=null,_e=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&&(J=p.onCaughtError),p.onRecoverableError!==void 0&&(re=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(xe=p.unstable_transitionCallbacks),p.formState!==void 0&&(_e=p.formState)),u=vE(i,1,!0,u,p??null,g,E,D,J,re,xe,_e),u.context=bE(null),p=u.current,g=Ka(),g=En(g),E=ec(g),E.callback=null,tc(p,E,g),p=g,u.current.lanes=p,Qt(u,p),As(u),i[Nt]=u.current,jx(i),new Cy(u)},xh.version="19.1.1",xh}var zE;function m5(){if(zE)return t1.exports;zE=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(),t1.exports=h5(),t1.exports}var g5=m5();/**
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 OD=e=>{throw TypeError(e)},y5=(e,t,n)=>t.has(e)||OD("Cannot "+n),a1=(e,t,n)=>(y5(e,t,"read from private field"),n?n.call(e):t.get(e)),v5=(e,t,n)=>t.has(e)?OD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),FE="popstate";function b5(e={}){function t(r,o){let{pathname:a,search:s,hash:l}=r.location;return Dm("",{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:Ic(o)}return S5(t,n,null,e)}function er(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function x5(){return Math.random().toString(36).substring(2,10)}function BE(e,t){return{usr:e.state,key:e.key,idx:t}}function Dm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?_c(t):t,state:n,key:t&&t.key||r||x5()}}function Ic({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 _c(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 S5(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="POP",d=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,d&&d({action:l,location:x.location,delta:S})}function y(w,S){l="PUSH";let T=Dm(x.location,w,S);f=c()+1;let M=BE(T,f),R=x.createHref(T);try{s.pushState(M,"",R)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(R)}a&&d&&d({action:l,location:x.location,delta:1})}function v(w,S){l="REPLACE";let T=Dm(x.location,w,S);f=c();let M=BE(T,f),R=x.createHref(T);s.replaceState(M,"",R),a&&d&&d({action:l,location:x.location,delta:0})}function b(w){return RD(w)}let x={get action(){return l},get location(){return e(o,s)},listen(w){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(FE,m),d=w,()=>{o.removeEventListener(FE,m),d=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 RD(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),er(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ic(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var am,UE=class{constructor(e){if(v5(this,am,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(a1(this,am).has(e))return a1(this,am).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a1(this,am).set(e,t)}};am=new WeakMap;var w5=new Set(["lazy","caseSensitive","path","id","index","children"]);function C5(e){return w5.has(e)}var k5=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function T5(e){return k5.has(e)}function M5(e){return e.index===!0}function Am(e,t,n=[],r={},o=!1){return e.map((a,s)=>{let l=[...n,String(s)],d=typeof a.id=="string"?a.id:l.join("-");if(er(a.index!==!0||!a.children,"Cannot specify children on an index route"),er(o||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),M5(a)){let f={...a,...t(a),id:d};return r[d]=f,f}else{let f={...a,...t(a),id:d,children:void 0};return r[d]=f,a.children&&(f.children=Am(a.children,t,l,r,o)),f}})}function Tc(e,t,n="/"){return av(e,t,n,!1)}function av(e,t,n,r){let o=typeof t=="string"?_c(t):t,a=zi(o.pathname||"/",n);if(a==null)return null;let s=$D(e);O5(s);let l=null;for(let d=0;l==null&&d<s.length;++d){let f=F5(a);l=L5(s[d],f,r)}return l}function E5(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 $D(e,t=[],n=[],r="",o=!1){let a=(s,l,d=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)&&d)return;er(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=qs([r,c.relativePath]),y=n.concat(c);s.children&&s.children.length>0&&(er(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),$D(s.children,t,y,m,d)),!(s.path==null&&!s.index)&&t.push({path:m,score:N5(m,s.index),routesMeta:y})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let d of PD(s.path))a(s,l,!0,d)}),t}function PD(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=PD(r.join("/")),l=[];return l.push(...s.map(d=>d===""?a:[a,d].join("/"))),o&&l.push(...s),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function O5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var R5=/^:[\w-]+$/,$5=3,P5=2,D5=1,A5=10,j5=-2,_E=e=>e==="*";function N5(e,t){let n=e.split("/"),r=n.length;return n.some(_E)&&(r+=j5),t&&(r+=P5),n.filter(o=>!_E(o)).reduce((o,a)=>o+(R5.test(a)?$5:a===""?D5:A5),r)}function I5(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 L5(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let d=r[l],f=l===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",m=Mv({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},c),y=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=Mv({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},c)),!m)return null;Object.assign(o,m.params),s.push({params:o,pathname:qs([a,m.pathname]),pathnameBase:V5(qs([a,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(a=qs([a,m.pathnameBase]))}return s}function Mv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=z5(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 z5(e,t=!1,n=!0){fo(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,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).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 F5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fo(!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 zi(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 B5({basename:e,pathname:t}){return t==="/"?e:qs([e,t])}function U5(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?_c(e):e;return{pathname:n?n.startsWith("/")?n:_5(n,t):t,search:H5(r),hash:W5(o)}}function _5(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 i1(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 DD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cb(e){let t=DD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ub(e,t,n,r=!1){let o;typeof e=="string"?o=_c(e):(o={...e},er(!o.pathname||!o.pathname.includes("?"),i1("?","pathname","search",o)),er(!o.pathname||!o.pathname.includes("#"),i1("#","pathname","hash",o)),er(!o.search||!o.search.includes("#"),i1("#","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 d=U5(o,l),f=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||c)&&(d.pathname+="/"),d}var qs=e=>e.join("/").replace(/\/\/+/g,"/"),V5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ev=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 jm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var AD=["POST","PUT","PATCH","DELETE"],q5=new Set(AD),Y5=["GET",...AD],K5=new Set(Y5),G5=new Set([301,302,303,307,308]),Q5=new Set([307,308]),s1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Sh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Z5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iw=e=>Z5.test(e),J5=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jD="remix-router-transitions",ND=Symbol("ResetLoaderData");function eF(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";er(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||J5,a={},s=Am(e.routes,o,void 0,a),l,d=e.basename||"/";d.startsWith("/")||(d=`/${d}`);let f=e.dataStrategy||aF,c={...e.future},m=null,y=new Set,v=null,b=null,x=null,w=e.hydrationData!=null,S=Tc(s,e.history.location,d),T=!1,M=null,R;if(S==null&&!e.patchRoutesOnNavigation){let ie=Ei(404,{pathname:e.history.location.pathname}),{matches:Pe,route:Le}=Ty(s);R=!0,S=Pe,M={[Le.id]:ie}}else if(S&&!e.hydrationData&&be(S,s,e.history.location.pathname).active&&(S=null),S)if(S.some(ie=>ie.route.lazy))R=!1;else if(!S.some(ie=>ie.route.loader))R=!0;else{let ie=e.hydrationData?e.hydrationData.loaderData:null,Pe=e.hydrationData?e.hydrationData.errors:null;if(Pe){let Le=S.findIndex(qe=>Pe[qe.route.id]!==void 0);R=S.slice(0,Le+1).every(qe=>!sS(qe.route,ie,Pe))}else R=S.every(Le=>!sS(Le.route,ie,Pe))}else{R=!1,S=[];let ie=be(null,s,e.history.location.pathname);ie.active&&ie.matches&&(T=!0,S=ie.matches)}let $,P={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:s1,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||M,fetchers:new Map,blockers:new Map},N="POP",V=!1,z,W=!1,H=new Map,k=null,I=!1,F=!1,_=new Set,j=new Map,X=0,Q=-1,te=new Map,Z=new Set,G=new Map,ne=new Map,ce=new Set,pe=new Map,oe,ae=null;function le(){if(m=e.history.listen(({action:ie,location:Pe,delta:Le})=>{if(oe){oe(),oe=void 0;return}fo(pe.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 qe=un({currentLocation:P.location,nextLocation:Pe,historyAction:ie});if(qe&&Le!=null){let ut=new Promise(Nt=>{oe=Nt});e.history.go(Le*-1),Vt(qe,{state:"blocked",location:Pe,proceed(){Vt(qe,{state:"proceeding",proceed:void 0,reset:void 0,location:Pe}),ut.then(()=>e.history.go(Le))},reset(){let Nt=new Map(P.blockers);Nt.set(qe,Sh),we({blockers:Nt})}});return}return ke(ie,Pe)}),n){xF(t,H);let ie=()=>SF(t,H);t.addEventListener("pagehide",ie),k=()=>t.removeEventListener("pagehide",ie)}return P.initialized||ke("POP",P.location,{initialHydration:!0}),$}function ge(){m&&m(),k&&k(),y.clear(),z&&z.abort(),P.fetchers.forEach((ie,Pe)=>he(Pe)),P.blockers.forEach((ie,Pe)=>$t(Pe))}function ye(ie){return y.add(ie),()=>y.delete(ie)}function we(ie,Pe={}){ie.matches&&(ie.matches=ie.matches.map(ut=>{let Nt=a[ut.route.id],Bt=ut.route;return Bt.element!==Nt.element||Bt.errorElement!==Nt.errorElement||Bt.hydrateFallbackElement!==Nt.hydrateFallbackElement?{...ut,route:Nt}:ut})),P={...P,...ie};let Le=[],qe=[];P.fetchers.forEach((ut,Nt)=>{ut.state==="idle"&&(ce.has(Nt)?Le.push(Nt):qe.push(Nt))}),ce.forEach(ut=>{!P.fetchers.has(ut)&&!j.has(ut)&&Le.push(ut)}),[...y].forEach(ut=>ut(P,{deletedFetchers:Le,viewTransitionOpts:Pe.viewTransitionOpts,flushSync:Pe.flushSync===!0})),Le.forEach(ut=>he(ut)),qe.forEach(ut=>P.fetchers.delete(ut))}function Ce(ie,Pe,{flushSync:Le}={}){let qe=P.actionData!=null&&P.navigation.formMethod!=null&&Ca(P.navigation.formMethod)&&P.navigation.state==="loading"&&ie.state?._isRedirect!==!0,ut;Pe.actionData?Object.keys(Pe.actionData).length>0?ut=Pe.actionData:ut=null:qe?ut=P.actionData:ut=null;let Nt=Pe.loaderData?ZE(P.loaderData,Pe.loaderData,Pe.matches||[],Pe.errors):P.loaderData,Bt=P.blockers;Bt.size>0&&(Bt=new Map(Bt),Bt.forEach((Et,wt)=>Bt.set(wt,Sh)));let Dt=I?!1:In(ie,Pe.matches||P.matches),mt=V===!0||P.navigation.formMethod!=null&&Ca(P.navigation.formMethod)&&ie.state?._isRedirect!==!0;l&&(s=l,l=void 0),I||N==="POP"||(N==="PUSH"?e.history.push(ie,ie.state):N==="REPLACE"&&e.history.replace(ie,ie.state));let At;if(N==="POP"){let Et=H.get(P.location.pathname);Et&&Et.has(ie.pathname)?At={currentLocation:P.location,nextLocation:ie}:H.has(ie.pathname)&&(At={currentLocation:ie,nextLocation:P.location})}else if(W){let Et=H.get(P.location.pathname);Et?Et.add(ie.pathname):(Et=new Set([ie.pathname]),H.set(P.location.pathname,Et)),At={currentLocation:P.location,nextLocation:ie}}we({...Pe,actionData:ut,loaderData:Nt,historyAction:N,location:ie,initialized:!0,navigation:s1,revalidation:"idle",restoreScrollPosition:Dt,preventScrollReset:mt,blockers:Bt},{viewTransitionOpts:At,flushSync:Le===!0}),N="POP",V=!1,W=!1,I=!1,F=!1,ae?.resolve(),ae=null}async function $e(ie,Pe){if(typeof ie=="number"){e.history.go(ie);return}let Le=iS(P.location,P.matches,d,ie,Pe?.fromRouteId,Pe?.relative),{path:qe,submission:ut,error:Nt}=VE(!1,Le,Pe),Bt=P.location,Dt=Dm(P.location,qe,Pe&&Pe.state);Dt={...Dt,...e.history.encodeLocation(Dt)};let mt=Pe&&Pe.replace!=null?Pe.replace:void 0,At="PUSH";mt===!0?At="REPLACE":mt===!1||ut!=null&&Ca(ut.formMethod)&&ut.formAction===P.location.pathname+P.location.search&&(At="REPLACE");let Et=Pe&&"preventScrollReset"in Pe?Pe.preventScrollReset===!0:void 0,wt=(Pe&&Pe.flushSync)===!0,Ht=un({currentLocation:Bt,nextLocation:Dt,historyAction:At});if(Ht){Vt(Ht,{state:"blocked",location:Dt,proceed(){Vt(Ht,{state:"proceeding",proceed:void 0,reset:void 0,location:Dt}),$e(ie,Pe)},reset(){let On=new Map(P.blockers);On.set(Ht,Sh),we({blockers:On})}});return}await ke(At,Dt,{submission:ut,pendingError:Nt,preventScrollReset:Et,replace:Pe&&Pe.replace,enableViewTransition:Pe&&Pe.viewTransition,flushSync:wt})}function de(){ae||(ae=wF()),at(),we({revalidation:"loading"});let ie=ae.promise;return P.navigation.state==="submitting"?ie:P.navigation.state==="idle"?(ke(P.historyAction,P.location,{startUninterruptedRevalidation:!0}),ie):(ke(N||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:W===!0}),ie)}async function ke(ie,Pe,Le){z&&z.abort(),z=null,N=ie,I=(Le&&Le.startUninterruptedRevalidation)===!0,Qt(P.location,P.matches),V=(Le&&Le.preventScrollReset)===!0,W=(Le&&Le.enableViewTransition)===!0;let qe=l||s,ut=Le&&Le.overrideNavigation,Nt=Le?.initialHydration&&P.matches&&P.matches.length>0&&!T?P.matches:Tc(qe,Pe,d),Bt=(Le&&Le.flushSync)===!0;if(Nt&&P.initialized&&!F&&pF(P.location,Pe)&&!(Le&&Le.submission&&Ca(Le.submission.formMethod))){Ce(Pe,{matches:Nt},{flushSync:Bt});return}let Dt=be(Nt,qe,Pe.pathname);if(Dt.active&&Dt.matches&&(Nt=Dt.matches),!Nt){let{error:bn,notFoundMatches:dn,route:ue}=vn(Pe.pathname);Ce(Pe,{matches:dn,loaderData:{},errors:{[ue.id]:bn}},{flushSync:Bt});return}z=new AbortController;let mt=Tf(e.history,Pe,z.signal,Le&&Le.submission),At=e.getContext?await e.getContext():new UE,Et;if(Le&&Le.pendingError)Et=[Mc(Nt).route.id,{type:"error",error:Le.pendingError}];else if(Le&&Le.submission&&Ca(Le.submission.formMethod)){let bn=await et(mt,Pe,Le.submission,Nt,At,Dt.active,Le&&Le.initialHydration===!0,{replace:Le.replace,flushSync:Bt});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[dn,ue]=bn.pendingActionResult;if(Za(ue)&&jm(ue.error)&&ue.error.status===404){z=null,Ce(Pe,{matches:bn.matches,loaderData:{},errors:{[dn]:ue.error}});return}}Nt=bn.matches||Nt,Et=bn.pendingActionResult,ut=l1(Pe,Le.submission),Bt=!1,Dt.active=!1,mt=Tf(e.history,mt.url,mt.signal)}let{shortCircuited:wt,matches:Ht,loaderData:On,errors:qn}=await ze(mt,Pe,Nt,At,Dt.active,ut,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Bt,Et);wt||(z=null,Ce(Pe,{matches:Ht||Nt,...JE(Et),loaderData:On,errors:qn}))}async function et(ie,Pe,Le,qe,ut,Nt,Bt,Dt={}){at();let mt=vF(Pe,Le);if(we({navigation:mt},{flushSync:Dt.flushSync===!0}),Nt){let wt=await zn(qe,Pe.pathname,ie.signal);if(wt.type==="aborted")return{shortCircuited:!0};if(wt.type==="error"){if(wt.partialMatches.length===0){let{matches:On,route:qn}=Ty(s);return{matches:On,pendingActionResult:[qn.id,{type:"error",error:wt.error}]}}let Ht=Mc(wt.partialMatches).route.id;return{matches:wt.partialMatches,pendingActionResult:[Ht,{type:"error",error:wt.error}]}}else if(wt.matches)qe=wt.matches;else{let{notFoundMatches:Ht,error:On,route:qn}=vn(Pe.pathname);return{matches:Ht,pendingActionResult:[qn.id,{type:"error",error:On}]}}}let At,Et=iv(qe,Pe);if(!Et.route.action&&!Et.route.lazy)At={type:"error",error:Ei(405,{method:ie.method,pathname:Pe.pathname,routeId:Et.route.id})};else{let wt=Af(o,a,ie,qe,Et,Bt?[]:r,ut),Ht=await Ft(ie,wt,ut,null);if(At=Ht[Et.route.id],!At){for(let On of qe)if(Ht[On.route.id]){At=Ht[On.route.id];break}}if(ie.signal.aborted)return{shortCircuited:!0}}if(Lu(At)){let wt;return Dt&&Dt.replace!=null?wt=Dt.replace:wt=GE(At.response.headers.get("Location"),new URL(ie.url),d)===P.location.pathname+P.location.search,await pt(ie,At,!0,{submission:Le,replace:wt}),{shortCircuited:!0}}if(Za(At)){let wt=Mc(qe,Et.route.id);return(Dt&&Dt.replace)!==!0&&(N="PUSH"),{matches:qe,pendingActionResult:[wt.route.id,At,Et.route.id]}}return{matches:qe,pendingActionResult:[Et.route.id,At]}}async function ze(ie,Pe,Le,qe,ut,Nt,Bt,Dt,mt,At,Et,wt){let Ht=Nt||l1(Pe,Bt),On=Bt||Dt||tO(Ht),qn=!I&&!At;if(ut){if(qn){let yt=Ae(wt);we({navigation:Ht,...yt!==void 0?{actionData:yt}:{}},{flushSync:Et})}let He=await zn(Le,Pe.pathname,ie.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){if(He.partialMatches.length===0){let{matches:Rt,route:Ct}=Ty(s);return{matches:Rt,loaderData:{},errors:{[Ct.id]:He.error}}}let yt=Mc(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[yt]:He.error}}}else if(He.matches)Le=He.matches;else{let{error:yt,notFoundMatches:Rt,route:Ct}=vn(Pe.pathname);return{matches:Rt,loaderData:{},errors:{[Ct.id]:yt}}}}let bn=l||s,{dsMatches:dn,revalidatingFetchers:ue}=HE(ie,qe,o,a,e.history,P,Le,On,Pe,At?[]:r,At===!0,F,_,ce,G,Z,bn,d,e.patchRoutesOnNavigation!=null,wt);if(Q=++X,!e.dataStrategy&&!dn.some(He=>He.shouldLoad)&&!dn.some(He=>He.route.middleware)&&ue.length===0){let He=Mt();return Ce(Pe,{matches:Le,loaderData:{},errors:wt&&Za(wt[1])?{[wt[0]]:wt[1].error}:null,...JE(wt),...He?{fetchers:new Map(P.fetchers)}:{}},{flushSync:Et}),{shortCircuited:!0}}if(qn){let He={};if(!ut){He.navigation=Ht;let yt=Ae(wt);yt!==void 0&&(He.actionData=yt)}ue.length>0&&(He.fetchers=se(ue)),we(He,{flushSync:Et})}ue.forEach(He=>{Te(He.key),He.controller&&j.set(He.key,He.controller)});let fe=()=>ue.forEach(He=>Te(He.key));z&&z.signal.addEventListener("abort",fe);let{loaderResults:Ve,fetcherResults:vt}=await _t(dn,ue,ie,qe);if(ie.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",fe),ue.forEach(He=>j.delete(He.key));let Ke=My(Ve);if(Ke)return await pt(ie,Ke.result,!0,{replace:mt}),{shortCircuited:!0};if(Ke=My(vt),Ke)return Z.add(Ke.key),await pt(ie,Ke.result,!0,{replace:mt}),{shortCircuited:!0};let{loaderData:Zt,errors:nn}=XE(P,Le,Ve,wt,ue,vt);At&&P.errors&&(nn={...P.errors,...nn});let fn=Mt(),me=gt(Q),Ee=fn||me||ue.length>0;return{matches:Le,loaderData:Zt,errors:nn,...Ee?{fetchers:new Map(P.fetchers)}:{}}}function Ae(ie){if(ie&&!Za(ie[1]))return{[ie[0]]:ie[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function se(ie){return ie.forEach(Pe=>{let Le=P.fetchers.get(Pe.key),qe=wh(void 0,Le?Le.data:void 0);P.fetchers.set(Pe.key,qe)}),new Map(P.fetchers)}async function bt(ie,Pe,Le,qe){Te(ie);let ut=(qe&&qe.flushSync)===!0,Nt=l||s,Bt=iS(P.location,P.matches,d,Le,Pe,qe?.relative),Dt=Tc(Nt,Bt,d),mt=be(Dt,Nt,Bt);if(mt.active&&mt.matches&&(Dt=mt.matches),!Dt){rt(ie,Pe,Ei(404,{pathname:Bt}),{flushSync:ut});return}let{path:At,submission:Et,error:wt}=VE(!0,Bt,qe);if(wt){rt(ie,Pe,wt,{flushSync:ut});return}let Ht=e.getContext?await e.getContext():new UE,On=(qe&&qe.preventScrollReset)===!0;if(Et&&Ca(Et.formMethod)){await Fe(ie,Pe,At,Dt,Ht,mt.active,ut,On,Et);return}G.set(ie,{routeId:Pe,path:At}),await it(ie,Pe,At,Dt,Ht,mt.active,ut,On,Et)}async function Fe(ie,Pe,Le,qe,ut,Nt,Bt,Dt,mt){at(),G.delete(ie);let At=P.fetchers.get(ie);Xe(ie,bF(mt,At),{flushSync:Bt});let Et=new AbortController,wt=Tf(e.history,Le,Et.signal,mt);if(Nt){let St=await zn(qe,new URL(wt.url).pathname,wt.signal,ie);if(St.type==="aborted")return;if(St.type==="error"){rt(ie,Pe,St.error,{flushSync:Bt});return}else if(St.matches)qe=St.matches;else{rt(ie,Pe,Ei(404,{pathname:Le}),{flushSync:Bt});return}}let Ht=iv(qe,Le);if(!Ht.route.action&&!Ht.route.lazy){let St=Ei(405,{method:mt.formMethod,pathname:Le,routeId:Pe});rt(ie,Pe,St,{flushSync:Bt});return}j.set(ie,Et);let On=X,qn=Af(o,a,wt,qe,Ht,r,ut),dn=(await Ft(wt,qn,ut,ie))[Ht.route.id];if(wt.signal.aborted){j.get(ie)===Et&&j.delete(ie);return}if(ce.has(ie)){if(Lu(dn)||Za(dn)){Xe(ie,Cc(void 0));return}}else{if(Lu(dn))if(j.delete(ie),Q>On){Xe(ie,Cc(void 0));return}else return Z.add(ie),Xe(ie,wh(mt)),pt(wt,dn,!1,{fetcherSubmission:mt,preventScrollReset:Dt});if(Za(dn)){rt(ie,Pe,dn.error);return}}let ue=P.navigation.location||P.location,fe=Tf(e.history,ue,Et.signal),Ve=l||s,vt=P.navigation.state!=="idle"?Tc(Ve,P.navigation.location,d):P.matches;er(vt,"Didn't find any matches after fetcher action");let Ke=++X;te.set(ie,Ke);let Zt=wh(mt,dn.data);P.fetchers.set(ie,Zt);let{dsMatches:nn,revalidatingFetchers:fn}=HE(fe,ut,o,a,e.history,P,vt,mt,ue,r,!1,F,_,ce,G,Z,Ve,d,e.patchRoutesOnNavigation!=null,[Ht.route.id,dn]);fn.filter(St=>St.key!==ie).forEach(St=>{let Yt=St.key,xn=P.fetchers.get(Yt),ur=wh(void 0,xn?xn.data:void 0);P.fetchers.set(Yt,ur),Te(Yt),St.controller&&j.set(Yt,St.controller)}),we({fetchers:new Map(P.fetchers)});let me=()=>fn.forEach(St=>Te(St.key));Et.signal.addEventListener("abort",me);let{loaderResults:Ee,fetcherResults:He}=await _t(nn,fn,fe,ut);if(Et.signal.aborted)return;if(Et.signal.removeEventListener("abort",me),te.delete(ie),j.delete(ie),fn.forEach(St=>j.delete(St.key)),P.fetchers.has(ie)){let St=Cc(dn.data);P.fetchers.set(ie,St)}let yt=My(Ee);if(yt)return pt(fe,yt.result,!1,{preventScrollReset:Dt});if(yt=My(He),yt)return Z.add(yt.key),pt(fe,yt.result,!1,{preventScrollReset:Dt});let{loaderData:Rt,errors:Ct}=XE(P,vt,Ee,void 0,fn,He);gt(Ke),P.navigation.state==="loading"&&Ke>Q?(er(N,"Expected pending action"),z&&z.abort(),Ce(P.navigation.location,{matches:vt,loaderData:Rt,errors:Ct,fetchers:new Map(P.fetchers)})):(we({errors:Ct,loaderData:ZE(P.loaderData,Rt,vt,Ct),fetchers:new Map(P.fetchers)}),F=!1)}async function it(ie,Pe,Le,qe,ut,Nt,Bt,Dt,mt){let At=P.fetchers.get(ie);Xe(ie,wh(mt,At?At.data:void 0),{flushSync:Bt});let Et=new AbortController,wt=Tf(e.history,Le,Et.signal);if(Nt){let ue=await zn(qe,new URL(wt.url).pathname,wt.signal,ie);if(ue.type==="aborted")return;if(ue.type==="error"){rt(ie,Pe,ue.error,{flushSync:Bt});return}else if(ue.matches)qe=ue.matches;else{rt(ie,Pe,Ei(404,{pathname:Le}),{flushSync:Bt});return}}let Ht=iv(qe,Le);j.set(ie,Et);let On=X,qn=Af(o,a,wt,qe,Ht,r,ut),dn=(await Ft(wt,qn,ut,ie))[Ht.route.id];if(j.get(ie)===Et&&j.delete(ie),!wt.signal.aborted){if(ce.has(ie)){Xe(ie,Cc(void 0));return}if(Lu(dn))if(Q>On){Xe(ie,Cc(void 0));return}else{Z.add(ie),await pt(wt,dn,!1,{preventScrollReset:Dt});return}if(Za(dn)){rt(ie,Pe,dn.error);return}Xe(ie,Cc(dn.data))}}async function pt(ie,Pe,Le,{submission:qe,fetcherSubmission:ut,preventScrollReset:Nt,replace:Bt}={}){Pe.response.headers.has("X-Remix-Revalidate")&&(F=!0);let Dt=Pe.response.headers.get("Location");er(Dt,"Expected a Location header on the redirect Response"),Dt=GE(Dt,new URL(ie.url),d);let mt=Dm(P.location,Dt,{_isRedirect:!0});if(n){let qn=!1;if(Pe.response.headers.has("X-Remix-Reload-Document"))qn=!0;else if(Iw(Dt)){const bn=RD(Dt,!0);qn=bn.origin!==t.location.origin||zi(bn.pathname,d)==null}if(qn){Bt?t.location.replace(Dt):t.location.assign(Dt);return}}z=null;let At=Bt===!0||Pe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Et,formAction:wt,formEncType:Ht}=P.navigation;!qe&&!ut&&Et&&wt&&Ht&&(qe=tO(P.navigation));let On=qe||ut;if(Q5.has(Pe.response.status)&&On&&Ca(On.formMethod))await ke(At,mt,{submission:{...On,formAction:Dt},preventScrollReset:Nt||V,enableViewTransition:Le?W:void 0});else{let qn=l1(mt,qe);await ke(At,mt,{overrideNavigation:qn,fetcherSubmission:ut,preventScrollReset:Nt||V,enableViewTransition:Le?W:void 0})}}async function Ft(ie,Pe,Le,qe){let ut,Nt={};try{ut=await sF(f,ie,Pe,qe,Le,!1)}catch(Bt){return Pe.filter(Dt=>Dt.shouldLoad).forEach(Dt=>{Nt[Dt.route.id]={type:"error",error:Bt}}),Nt}if(ie.signal.aborted)return Nt;for(let[Bt,Dt]of Object.entries(ut))if(gF(Dt)){let mt=Dt.result;Nt[Bt]={type:"redirect",response:dF(mt,ie,Bt,Pe,d)}}else Nt[Bt]=await uF(Dt);return Nt}async function _t(ie,Pe,Le,qe){let ut=Ft(Le,ie,qe,null),Nt=Promise.all(Pe.map(async mt=>{if(mt.matches&&mt.match&&mt.request&&mt.controller){let Et=(await Ft(mt.request,mt.matches,qe,mt.key))[mt.match.route.id];return{[mt.key]:Et}}else return Promise.resolve({[mt.key]:{type:"error",error:Ei(404,{pathname:mt.path})}})})),Bt=await ut,Dt=(await Nt).reduce((mt,At)=>Object.assign(mt,At),{});return{loaderResults:Bt,fetcherResults:Dt}}function at(){F=!0,G.forEach((ie,Pe)=>{j.has(Pe)&&_.add(Pe),Te(Pe)})}function Xe(ie,Pe,Le={}){P.fetchers.set(ie,Pe),we({fetchers:new Map(P.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function rt(ie,Pe,Le,qe={}){let ut=Mc(P.matches,Pe);he(ie),we({errors:{[ut.route.id]:Le},fetchers:new Map(P.fetchers)},{flushSync:(qe&&qe.flushSync)===!0})}function Ne(ie){return ne.set(ie,(ne.get(ie)||0)+1),ce.has(ie)&&ce.delete(ie),P.fetchers.get(ie)||X5}function he(ie){let Pe=P.fetchers.get(ie);j.has(ie)&&!(Pe&&Pe.state==="loading"&&te.has(ie))&&Te(ie),G.delete(ie),te.delete(ie),Z.delete(ie),ce.delete(ie),_.delete(ie),P.fetchers.delete(ie)}function We(ie){let Pe=(ne.get(ie)||0)-1;Pe<=0?(ne.delete(ie),ce.add(ie)):ne.set(ie,Pe),we({fetchers:new Map(P.fetchers)})}function Te(ie){let Pe=j.get(ie);Pe&&(Pe.abort(),j.delete(ie))}function kt(ie){for(let Pe of ie){let Le=Ne(Pe),qe=Cc(Le.data);P.fetchers.set(Pe,qe)}}function Mt(){let ie=[],Pe=!1;for(let Le of Z){let qe=P.fetchers.get(Le);er(qe,`Expected fetcher: ${Le}`),qe.state==="loading"&&(Z.delete(Le),ie.push(Le),Pe=!0)}return kt(ie),Pe}function gt(ie){let Pe=[];for(let[Le,qe]of te)if(qe<ie){let ut=P.fetchers.get(Le);er(ut,`Expected fetcher: ${Le}`),ut.state==="loading"&&(Te(Le),te.delete(Le),Pe.push(Le))}return kt(Pe),Pe.length>0}function ct(ie,Pe){let Le=P.blockers.get(ie)||Sh;return pe.get(ie)!==Pe&&pe.set(ie,Pe),Le}function $t(ie){P.blockers.delete(ie),pe.delete(ie)}function Vt(ie,Pe){let Le=P.blockers.get(ie)||Sh;er(Le.state==="unblocked"&&Pe.state==="blocked"||Le.state==="blocked"&&Pe.state==="blocked"||Le.state==="blocked"&&Pe.state==="proceeding"||Le.state==="blocked"&&Pe.state==="unblocked"||Le.state==="proceeding"&&Pe.state==="unblocked",`Invalid blocker state transition: ${Le.state} -> ${Pe.state}`);let qe=new Map(P.blockers);qe.set(ie,Pe),we({blockers:qe})}function un({currentLocation:ie,nextLocation:Pe,historyAction:Le}){if(pe.size===0)return;pe.size>1&&fo(!1,"A router only supports one blocker at a time");let qe=Array.from(pe.entries()),[ut,Nt]=qe[qe.length-1],Bt=P.blockers.get(ut);if(!(Bt&&Bt.state==="proceeding")&&Nt({currentLocation:ie,nextLocation:Pe,historyAction:Le}))return ut}function vn(ie){let Pe=Ei(404,{pathname:ie}),Le=l||s,{matches:qe,route:ut}=Ty(Le);return{notFoundMatches:qe,route:ut,error:Pe}}function Bn(ie,Pe,Le){if(v=ie,x=Pe,b=Le||null,!w&&P.navigation===s1){w=!0;let qe=In(P.location,P.matches);qe!=null&&we({restoreScrollPosition:qe})}return()=>{v=null,x=null,b=null}}function Wn(ie,Pe){return b&&b(ie,Pe.map(qe=>E5(qe,P.loaderData)))||ie.key}function Qt(ie,Pe){if(v&&x){let Le=Wn(ie,Pe);v[Le]=x()}}function In(ie,Pe){if(v){let Le=Wn(ie,Pe),qe=v[Le];if(typeof qe=="number")return qe}return null}function be(ie,Pe,Le){if(e.patchRoutesOnNavigation)if(ie){if(Object.keys(ie[0].params).length>0)return{active:!0,matches:av(Pe,Le,d,!0)}}else return{active:!0,matches:av(Pe,Le,d,!0)||[]};return{active:!1,matches:null}}async function zn(ie,Pe,Le,qe){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ie};let ut=ie;for(;;){let Nt=l==null,Bt=l||s,Dt=a;try{await e.patchRoutesOnNavigation({signal:Le,path:Pe,matches:ut,fetcherKey:qe,patch:(Et,wt)=>{Le.aborted||WE(Et,wt,Bt,Dt,o,!1)}})}catch(Et){return{type:"error",error:Et,partialMatches:ut}}finally{Nt&&!Le.aborted&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let mt=Tc(Bt,Pe,d);if(mt)return{type:"success",matches:mt};let At=av(Bt,Pe,d,!0);if(!At||ut.length===At.length&&ut.every((Et,wt)=>Et.route.id===At[wt].route.id))return{type:"success",matches:null};ut=At}}function En(ie){a={},l=Am(ie,o,void 0,a)}function Xt(ie,Pe,Le=!1){let qe=l==null;WE(ie,Pe,l||s,a,o,Le),qe&&(s=[...s],we({}))}return $={get basename(){return d},get future(){return c},get state(){return P},get routes(){return s},get window(){return t},initialize:le,subscribe:ye,enableScrollRestoration:Bn,navigate:$e,fetch:bt,revalidate:de,createHref:ie=>e.history.createHref(ie),encodeLocation:ie=>e.history.encodeLocation(ie),getFetcher:Ne,deleteFetcher:We,dispose:ge,getBlocker:ct,deleteBlocker:$t,patchRoutes:Xt,_internalFetchControllers:j,_internalSetRoutes:En,_internalSetStateDoNotUseOrYouWillBreakYourApp(ie){we(ie)}},$}function tF(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function iS(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 d=ub(r||".",cb(s),zi(e.pathname,n)||e.pathname,a==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&l){let f=Lw(d.search);if(l.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&f){let c=new URLSearchParams(d.search),m=c.getAll("index");c.delete("index"),m.filter(v=>v).forEach(v=>c.append("index",v));let y=c.toString();d.search=y?`?${y}`:""}}return n!=="/"&&(d.pathname=B5({basename:n,pathname:d.pathname})),Ic(d)}function VE(e,t,n){if(!n||!tF(n))return{path:t};if(n.formMethod&&!yF(n.formMethod))return{path:t,error:Ei(405,{method:n.formMethod})};let r=()=>({path:t,error:Ei(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=UD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(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(!Ca(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()}}}er(typeof FormData=="function","FormData is not available in this environment");let l,d;if(n.formData)l=cS(n.formData),d=n.formData;else if(n.body instanceof FormData)l=cS(n.body),d=n.body;else if(n.body instanceof URLSearchParams)l=n.body,d=QE(l);else if(n.body==null)l=new URLSearchParams,d=new FormData;else try{l=new URLSearchParams(n.body),d=QE(l)}catch{return r()}let f={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ca(f.formMethod))return{path:t,submission:f};let c=_c(t);return e&&c.search&&Lw(c.search)&&l.append("index",""),c.search=`?${l}`,{path:Ic(c),submission:f}}function HE(e,t,n,r,o,a,s,l,d,f,c,m,y,v,b,x,w,S,T,M){let R=M?Za(M[1])?M[1].error:M[1].data:void 0,$=o.createURL(a.location),P=o.createURL(d),N;if(c&&a.errors){let I=Object.keys(a.errors)[0];N=s.findIndex(F=>F.route.id===I)}else if(M&&Za(M[1])){let I=M[0];N=s.findIndex(F=>F.route.id===I)-1}let V=M?M[1].statusCode:void 0,z=V&&V>=400,W={currentUrl:$,currentParams:a.matches[0]?.params||{},nextUrl:P,nextParams:s[0].params,...l,actionResult:R,actionStatus:V},H=s.map((I,F)=>{let{route:_}=I,j=null;if(N!=null&&F>N?j=!1:_.lazy?j=!0:_.loader==null?j=!1:c?j=sS(_,a.loaderData,a.errors):nF(a.loaderData,a.matches[F],I)&&(j=!0),j!==null)return lS(n,r,e,I,f,t,j);let X=z?!1:m||$.pathname+$.search===P.pathname+P.search||$.search!==P.search||rF(a.matches[F],I),Q={...W,defaultShouldRevalidate:X},te=Ov(I,Q);return lS(n,r,e,I,f,t,te,Q)}),k=[];return b.forEach((I,F)=>{if(c||!s.some(ne=>ne.route.id===I.routeId)||v.has(F))return;let _=a.fetchers.get(F),j=_&&_.state!=="idle"&&_.data===void 0,X=Tc(w,I.path,S);if(!X){if(T&&j)return;k.push({key:F,routeId:I.routeId,path:I.path,matches:null,match:null,request:null,controller:null});return}if(x.has(F))return;let Q=iv(X,I.path),te=new AbortController,Z=Tf(o,I.path,te.signal),G=null;if(y.has(F))y.delete(F),G=Af(n,r,Z,X,Q,f,t);else if(j)m&&(G=Af(n,r,Z,X,Q,f,t));else{let ne={...W,defaultShouldRevalidate:z?!1:m};Ov(Q,ne)&&(G=Af(n,r,Z,X,Q,f,t,ne))}G&&k.push({key:F,routeId:I.routeId,path:I.path,matches:G,match:Q,request:Z,controller:te})}),{dsMatches:H,revalidatingFetchers:k}}function sS(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 nF(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function rF(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ov(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function WE(e,t,n,r,o,a){let s;if(e){let f=r[e];er(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),s=f.children}else s=n;let l=[],d=[];if(t.forEach(f=>{let c=s.find(m=>ID(f,m));c?d.push({existingRoute:c,newRoute:f}):l.push(f)}),l.length>0){let f=Am(l,o,[e||"_","patch",String(s?.length||"0")],r);s.push(...f)}if(a&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:c,newRoute:m}=d[f],y=c,[v]=Am([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 ID(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=>ID(n,o))):!1}var qE=new WeakMap,LD=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(er(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=qE.get(o);s||(s={},qE.set(o,s));let l=s[e];if(l)return l;let d=(async()=>{let f=C5(e),m=o[e]!==void 0&&e!=="hasErrorBoundary";if(f)fo(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(m)fo(!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]=d,d},YE=new WeakMap;function oF(e,t,n,r,o){let a=n[e.id];if(er(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let c=YE.get(a);if(c)return{lazyRoutePromise:c,lazyHandlerPromise:c};let m=(async()=>{er(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=T5(b),T=a[b]!==void 0&&b!=="hasErrorBoundary";w?fo(!w,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):T?fo(!T,`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 YE.set(a,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let s=Object.keys(e.lazy),l=[],d;for(let c of s){if(o&&o.includes(c))continue;let m=LD({key:c,route:e,manifest:n,mapRouteProperties:r});m&&(l.push(m),c===t&&(d=m))}let f=l.length>0?Promise.all(l).then(()=>{}):void 0;return f?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function KE(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 aF(e){return e.matches.some(t=>t.route.middleware)?zD(e,()=>KE(e)):KE(e)}function zD(e,t){return iF(e,t,r=>r,hF,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),d=Mc(s,s[l].route.id).route.id;return Promise.resolve({[d]:{type:"error",result:r}})}}}async function iF(e,t,n,r,o){let{matches:a,request:s,params:l,context:d}=e,f=a.flatMap(m=>m.route.middleware?m.route.middleware.map(y=>[m.route.id,y]):[]);return await FD({request:s,params:l,context:d},f,t,n,r,o)}async function FD(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 d=t[s];if(!d)return await n();let[f,c]=d,m,y=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");try{return m={value:await FD(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 BD(e,t,n,r,o){let a=LD({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=oF(r.route,Ca(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function lS(e,t,n,r,o,a,s,l=null){let d=!1,f=BD(e,t,n,r,o);return{...r,_lazyPromises:f,shouldLoad:s,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(c){return d=!0,l?typeof c=="boolean"?Ov(r,{...l,defaultShouldRevalidate:c}):Ov(r,l):s},resolve(c){return d||s||c&&!Ca(n.method)&&(r.route.lazy||r.route.loader)?lF({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:c,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Af(e,t,n,r,o,a,s,l=null){return r.map(d=>d.route.id!==o.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:BD(e,t,n,d,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:lS(e,t,n,d,a,s,!0,l))}async function sF(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},d=await e({...s,fetcherKey:r,runClientMiddleware:f=>{let c=s;return zD(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 d}async function lF({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,l,d=Ca(e.method),f=d?"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=d?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=d?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 Ei(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 Ei(404,{pathname:v})}}catch(m){return{type:"error",result:m}}finally{l&&e.signal.removeEventListener("abort",l)}return s}async function cF(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 uF(e){let{result:t,type:n}=e;if(_D(t)){let r;try{r=await cF(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new Ev(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?eO(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 Ev(t.init?.status||500,void 0,t.data),statusCode:jm(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:jm(t)?t.status:void 0}:eO(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 dF(e,t,n,r,o){let a=e.headers.get("Location");if(er(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Iw(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=iS(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function GE(e,t,n){if(Iw(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=zi(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Tf(e,t,n,r){let o=e.createURL(UD(t)).toString(),a={signal:n};if(r&&Ca(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=cS(r.formData):a.body=r.formData}return new Request(o,a)}function cS(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function QE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fF(e,t,n,r=!1,o=!1){let a={},s=null,l,d=!1,f={},c=n&&Za(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(er(!Lu(v),"Cannot handle redirect results in processLoaderData"),Za(v)){let b=v.error;if(c!==void 0&&(b=c,c=void 0),s=s||{},o)s[y]=b;else{let x=Mc(e,y);s[x.route.id]==null&&(s[x.route.id]=b)}r||(a[y]=ND),d||(d=!0,l=jm(v.error)?v.error.status:500),v.headers&&(f[y]=v.headers)}else a[y]=v.data,v.statusCode&&v.statusCode!==200&&!d&&(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 XE(e,t,n,r,o,a){let{loaderData:s,errors:l}=fF(t,n,r);return o.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:c,controller:m}=d;if(m&&m.signal.aborted)return;let y=a[f];if(er(y,"Did not find corresponding fetcher result"),Za(y)){let v=Mc(e.matches,c?.route.id);l&&l[v.route.id]||(l={...l,[v.route.id]:y.error}),e.fetchers.delete(f)}else if(Lu(y))er(!1,"Unhandled fetcher revalidation redirect");else{let v=Cc(y.data);e.fetchers.set(f,v)}}),{loaderData:s,errors:l}}function ZE(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==ND).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 JE(e){return e?Za(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Mc(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 Ty(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 Ei(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 Ev(e||500,s,new Error(l),!0)}function My(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Lu(o))return{key:r,result:o}}}function UD(e){let t=typeof e=="string"?_c(e):e;return Ic({...t,hash:""})}function pF(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function hF(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&mF(n))}function mF(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function gF(e){return _D(e.result)&&G5.has(e.result.status)}function Za(e){return e.type==="error"}function Lu(e){return(e&&e.type)==="redirect"}function eO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function _D(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function yF(e){return K5.has(e.toUpperCase())}function Ca(e){return q5.has(e.toUpperCase())}function Lw(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function iv(e,t){let n=typeof t=="string"?_c(t).search:t.search;if(e[e.length-1].route.index&&Lw(n||""))return e[e.length-1];let r=DD(e);return r[r.length-1]}function tO(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 l1(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 vF(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 wh(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 bF(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 Cc(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 xF(e,t){try{let n=e.sessionStorage.getItem(jD);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 SF(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(jD,JSON.stringify(n))}catch(r){fo(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function wF(){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 sd=C.createContext(null);sd.displayName="DataRouter";var Jm=C.createContext(null);Jm.displayName="DataRouterState";C.createContext(!1);var zw=C.createContext({isTransitioning:!1});zw.displayName="ViewTransition";var VD=C.createContext(new Map);VD.displayName="Fetchers";var CF=C.createContext(null);CF.displayName="Await";var ps=C.createContext(null);ps.displayName="Navigation";var db=C.createContext(null);db.displayName="Location";var Wi=C.createContext({outlet:null,matches:[],isDataRoute:!1});Wi.displayName="Route";var Fw=C.createContext(null);Fw.displayName="RouteError";function kF(e,{relative:t}={}){er(ap(),"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}=tg(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:qs([n,a])),r.createHref({pathname:l,search:s,hash:o})}function ap(){return C.useContext(db)!=null}function tl(){return er(ap(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(db).location}var HD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function WD(e){C.useContext(ps).static||C.useLayoutEffect(e)}function eg(){let{isDataRoute:e}=C.useContext(Wi);return e?FF():TF()}function TF(){er(ap(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(sd),{basename:t,navigator:n}=C.useContext(ps),{matches:r}=C.useContext(Wi),{pathname:o}=tl(),a=JSON.stringify(cb(r)),s=C.useRef(!1);return WD(()=>{s.current=!0}),C.useCallback((d,f={})=>{if(fo(s.current,HD),!s.current)return;if(typeof d=="number"){n.go(d);return}let c=ub(d,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:qs([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,a,o,e])}var MF=C.createContext(null);function EF(e){let t=C.useContext(Wi).outlet;return t&&C.createElement(MF.Provider,{value:e},t)}function Xpe(){let{matches:e}=C.useContext(Wi),t=e[e.length-1];return t?t.params:{}}function tg(e,{relative:t}={}){let{matches:n}=C.useContext(Wi),{pathname:r}=tl(),o=JSON.stringify(cb(n));return C.useMemo(()=>ub(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function OF(e,t,n,r,o){er(ap(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=C.useContext(ps),{matches:s}=C.useContext(Wi),l=s[s.length-1],d=l?l.params:{},f=l?l.pathname:"/",c=l?l.pathnameBase:"/",m=l&&l.route;{let T=m&&m.path||"";qD(f,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${T}">) 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="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=tl(),v;v=y;let b=v.pathname||"/",x=b;if(c!=="/"){let T=c.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(T.length).join("/")}let w=Tc(e,{pathname:x});return fo(m||w!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),fo(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.`),AF(w&&w.map(T=>Object.assign({},T,{params:Object.assign({},d,T.params),pathname:qs([c,a.encodeLocation?a.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?c:qs([c,a.encodeLocation?a.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),s,n,r,o)}function RF(){let e=zF(),t=jm(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 $F=C.createElement(RF,null),PF=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(Wi.Provider,{value:this.props.routeContext},C.createElement(Fw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function DF({routeContext:e,match:t,children:n}){let r=C.useContext(sd);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Wi.Provider,{value:e},n)}function AF(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);er(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,d=-1;if(n)for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(d=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,d>=0?a=a.slice(0,d+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||$F,l&&(d<0&&m===0?(qD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):d===m&&(v=!0,x=c.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,m+1)),S=()=>{let T;return y?T=b:v?T=x:c.route.Component?T=C.createElement(c.route.Component,null):c.route.element?T=c.route.element:T=f,C.createElement(DF,{match:c,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:T})};return n&&(c.route.ErrorBoundary||c.route.errorElement||m===0)?C.createElement(PF,{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 Bw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jF(e){let t=C.useContext(sd);return er(t,Bw(e)),t}function NF(e){let t=C.useContext(Jm);return er(t,Bw(e)),t}function IF(e){let t=C.useContext(Wi);return er(t,Bw(e)),t}function Uw(e){let t=IF(e),n=t.matches[t.matches.length-1];return er(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function LF(){return Uw("useRouteId")}function zF(){let e=C.useContext(Fw),t=NF("useRouteError"),n=Uw("useRouteError");return e!==void 0?e:t.errors?.[n]}function FF(){let{router:e}=jF("useNavigate"),t=Uw("useNavigate"),n=C.useRef(!1);return WD(()=>{n.current=!0}),C.useCallback(async(o,a={})=>{fo(n.current,HD),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var nO={};function qD(e,t,n){!t&&!nO[e]&&(nO[e]=!0,fo(!1,n))}var rO={};function oO(e,t){!e&&!rO[t]&&(rO[t]=!0,console.warn(t))}function BF(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&fo(!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&&fo(!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&&fo(!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 UF=["HydrateFallback","hydrateFallbackElement"],_F=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 VF({router:e,flushSync:t,unstable_onError:n}){let[r,o]=C.useState(e.state),[a,s]=C.useState(),[l,d]=C.useState({isTransitioning:!1}),[f,c]=C.useState(),[m,y]=C.useState(),[v,b]=C.useState(),x=C.useRef(new Map),w=C.useCallback($=>{o(P=>($.errors&&n&&Object.entries($.errors).forEach(([N,V])=>{P.errors?.[N]!==V&&n(V)}),$))},[n]),S=C.useCallback(($,{deletedFetchers:P,flushSync:N,viewTransitionOpts:V})=>{$.fetchers.forEach((W,H)=>{W.data!==void 0&&x.current.set(H,W.data)}),P.forEach(W=>x.current.delete(W)),oO(N===!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 z=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(oO(V==null||z,"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."),!V||!z){t&&N?t(()=>w($)):C.startTransition(()=>w($));return}if(t&&N){t(()=>{m&&(f&&f.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let W=e.window.document.startViewTransition(()=>{t(()=>w($))});W.finished.finally(()=>{t(()=>{c(void 0),y(void 0),s(void 0),d({isTransitioning:!1})})}),t(()=>y(W));return}m?(f&&f.resolve(),m.skipTransition(),b({state:$,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s($),d({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[e.window,t,m,f,w]);C.useLayoutEffect(()=>e.subscribe(S),[e,S]),C.useEffect(()=>{l.isTransitioning&&!l.flushSync&&c(new _F)},[l]),C.useEffect(()=>{if(f&&a&&e.window){let $=a,P=f.promise,N=e.window.document.startViewTransition(async()=>{C.startTransition(()=>w($)),await P});N.finished.finally(()=>{c(void 0),y(void 0),s(void 0),d({isTransitioning:!1})}),y(N)}},[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),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),b(void 0))},[l.isTransitioning,v]);let T=C.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:$=>e.navigate($),push:($,P,N)=>e.navigate($,{state:P,preventScrollReset:N?.preventScrollReset}),replace:($,P,N)=>e.navigate($,{replace:!0,state:P,preventScrollReset:N?.preventScrollReset})}),[e]),M=e.basename||"/",R=C.useMemo(()=>({router:e,navigator:T,static:!1,basename:M,unstable_onError:n}),[e,T,M,n]);return C.createElement(C.Fragment,null,C.createElement(sd.Provider,{value:R},C.createElement(Jm.Provider,{value:r},C.createElement(VD.Provider,{value:x.current},C.createElement(zw.Provider,{value:l},C.createElement(YF,{basename:M,location:r.location,navigationType:r.historyAction,navigator:T},C.createElement(HF,{routes:e.routes,future:e.future,state:r,unstable_onError:n})))))),null)}var HF=C.memo(WF);function WF({routes:e,future:t,state:n,unstable_onError:r}){return OF(e,void 0,n,r,t)}function qF({to:e,replace:t,state:n,relative:r}){er(ap(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=C.useContext(ps);fo(!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(Wi),{pathname:s}=tl(),l=eg(),d=ub(e,cb(a),s,r==="path"),f=JSON.stringify(d);return C.useEffect(()=>{l(JSON.parse(f),{replace:t,state:n,relative:r})},[l,f,r,t,n]),null}function Zpe(e){return EF(e.context)}function YF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){er(!ap(),"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=_c(n));let{pathname:d="/",search:f="",hash:c="",state:m=null,key:y="default"}=n,v=C.useMemo(()=>{let b=zi(d,s);return b==null?null:{location:{pathname:b,search:f,hash:c,state:m,key:y},navigationType:r}},[s,d,f,c,m,y,r]);return fo(v!=null,`<Router basename="${s}"> is not able to match the URL "${d}${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(db.Provider,{children:t,value:v}))}var sv="get",lv="application/x-www-form-urlencoded";function fb(e){return e!=null&&typeof e.tagName=="string"}function KF(e){return fb(e)&&e.tagName.toLowerCase()==="button"}function GF(e){return fb(e)&&e.tagName.toLowerCase()==="form"}function QF(e){return fb(e)&&e.tagName.toLowerCase()==="input"}function XF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZF(e,t){return e.button===0&&(!t||t==="_self")&&!XF(e)}function uS(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 JF(e,t){let n=uS(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}var Ey=null;function e4(){if(Ey===null)try{new FormData(document.createElement("form"),0),Ey=!1}catch{Ey=!0}return Ey}var t4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function c1(e){return e!=null&&!t4.has(e)?(fo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lv}"`),null):e}function n4(e,t){let n,r,o,a,s;if(GF(e)){let l=e.getAttribute("action");r=l?zi(l,t):null,n=e.getAttribute("method")||sv,o=c1(e.getAttribute("enctype"))||lv,a=new FormData(e)}else if(KF(e)||QF(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 d=e.getAttribute("formaction")||l.getAttribute("action");if(r=d?zi(d,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||sv,o=c1(e.getAttribute("formenctype"))||c1(l.getAttribute("enctype"))||lv,a=new FormData(l,e),!e4()){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(fb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=sv,r=null,o=lv,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 _w(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function r4(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&&zi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function o4(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 a4(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 i4(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await o4(a,n);return s.links?s.links():[]}return[]}));return u4(r.flat(1).filter(a4).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function aO(e,t,n,r,o,a){let s=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,l=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return a==="assets"?t.filter((d,f)=>s(d,f)||l(d,f)):a==="data"?t.filter((d,f)=>{let c=r.routes[d.route.id];if(!c||!c.hasLoader)return!1;if(s(d,f)||l(d,f))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function s4(e,t,{includeHydrateFallback:n}={}){return l4(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 l4(e){return[...new Set(e)]}function c4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function u4(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(c4(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function YD(){let e=C.useContext(sd);return _w(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function d4(){let e=C.useContext(Jm);return _w(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vw=C.createContext(void 0);Vw.displayName="FrameworkContext";function KD(){let e=C.useContext(Vw);return _w(e,"You must render this element inside a <HydratedRouter> element"),e}function f4(e,t){let n=C.useContext(Vw),[r,o]=C.useState(!1),[a,s]=C.useState(!1),{onFocus:l,onBlur:d,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(T=>{s(T.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:Ch(l,v),onBlur:Ch(d,b),onMouseEnter:Ch(f,v),onMouseLeave:Ch(c,b),onTouchStart:Ch(m,v)}]:[!1,y,{}]}function Ch(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function p4({page:e,...t}){let{router:n}=YD(),r=C.useMemo(()=>Tc(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(m4,{page:e,matches:r,...t}):null}function h4(e){let{manifest:t,routeModules:n}=KD(),[r,o]=C.useState([]);return C.useEffect(()=>{let a=!1;return i4(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function m4({page:e,matches:t,...n}){let r=tl(),{manifest:o,routeModules:a}=KD(),{basename:s}=YD(),{loaderData:l,matches:d}=d4(),f=C.useMemo(()=>aO(e,t,d,o,r,"data"),[e,t,d,o,r]),c=C.useMemo(()=>aO(e,t,d,o,r,"assets"),[e,t,d,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 T=o.routes[S.route.id];!T||!T.hasLoader||(!f.some(M=>M.route.id===S.route.id)&&S.route.id in l&&a[S.route.id]?.shouldRevalidate||T.hasClientLoader?x=!0:b.add(S.route.id))}),b.size===0)return[];let w=r4(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(()=>s4(c,o),[c,o]),v=h4(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 g4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var GD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{GD&&(window.__reactRouterVersion="7.9.1")}catch{}function y4(e,t){return eF({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:b5({window:t?.window}),hydrationData:v4(),routes:e,mapRouteProperties:BF,hydrationRouteProperties:UF,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function v4(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:b4(e.errors)}),e}function b4(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 Ev(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 QD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XD=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:l,target:d,to:f,preventScrollReset:c,viewTransition:m,...y},v){let{basename:b}=C.useContext(ps),x=typeof f=="string"&&QD.test(f),w,S=!1;if(typeof f=="string"&&x&&(w=f,GD))try{let z=new URL(window.location.href),W=f.startsWith("//")?new URL(z.protocol+f):new URL(f),H=zi(W.pathname,b);W.origin===z.origin&&H!=null?f=H+W.search+W.hash:S=!0}catch{fo(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=kF(f,{relative:o}),[M,R,$]=f4(r,y),P=C4(f,{replace:s,state:l,target:d,preventScrollReset:c,relative:o,viewTransition:m});function N(z){t&&t(z),z.defaultPrevented||P(z)}let V=C.createElement("a",{...y,...$,href:w||T,onClick:S||a?t:N,ref:g4(v,R),target:d,"data-discover":!x&&n==="render"?"true":void 0});return M&&!x?C.createElement(C.Fragment,null,V,C.createElement(p4,{page:T})):V});XD.displayName="Link";var x4=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:d,...f},c){let m=tg(s,{relative:f.relative}),y=tl(),v=C.useContext(Jm),{navigator:b,basename:x}=C.useContext(ps),w=v!=null&&R4(m)&&l===!0,S=b.encodeLocation?b.encodeLocation(m).pathname:m.pathname,T=y.pathname,M=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(T=T.toLowerCase(),M=M?M.toLowerCase():null,S=S.toLowerCase()),M&&x&&(M=zi(M,x)||M);const R=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let $=T===S||!o&&T.startsWith(S)&&T.charAt(R)==="/",P=M!=null&&(M===S||!o&&M.startsWith(S)&&M.charAt(S.length)==="/"),N={isActive:$,isPending:P,isTransitioning:w},V=$?t:void 0,z;typeof r=="function"?z=r(N):z=[r,$?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let W=typeof a=="function"?a(N):a;return C.createElement(XD,{...f,"aria-current":V,className:z,ref:c,style:W,to:s,viewTransition:l},typeof d=="function"?d(N):d)});x4.displayName="NavLink";var S4=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=sv,action:l,onSubmit:d,relative:f,preventScrollReset:c,viewTransition:m,...y},v)=>{let b=E4(),x=O4(l,{relative:f}),w=s.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&QD.test(l),T=M=>{if(d&&d(M),M.defaultPrevented)return;M.preventDefault();let R=M.nativeEvent.submitter,$=R?.getAttribute("formmethod")||s;b(R||M.currentTarget,{fetcherKey:t,method:$,navigate:n,replace:o,state:a,relative:f,preventScrollReset:c,viewTransition:m})};return C.createElement("form",{ref:v,method:w,action:x,onSubmit:r?d:T,...y,"data-discover":!S&&e==="render"?"true":void 0})});S4.displayName="Form";function w4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZD(e){let t=C.useContext(sd);return er(t,w4(e)),t}function C4(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let l=eg(),d=tl(),f=tg(e,{relative:a});return C.useCallback(c=>{if(ZF(c,t)){c.preventDefault();let m=n!==void 0?n:Ic(d)===Ic(f);l(e,{replace:m,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[d,l,f,n,r,t,e,o,a,s])}function k4(e){fo(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(uS(e)),n=C.useRef(!1),r=tl(),o=C.useMemo(()=>JF(r.search,n.current?null:t.current),[r.search]),a=eg(),s=C.useCallback((l,d)=>{const f=uS(typeof l=="function"?l(new URLSearchParams(o)):l);n.current=!0,a("?"+f,d)},[a,o]);return[o,s]}var T4=0,M4=()=>`__${String(++T4)}__`;function E4(){let{router:e}=ZD("useSubmit"),{basename:t}=C.useContext(ps),n=LF();return C.useCallback(async(r,o={})=>{let{action:a,method:s,encType:l,formData:d,body:f}=n4(r,t);if(o.navigate===!1){let c=o.fetcherKey||M4();await e.fetch(c,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:d,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 O4(e,{relative:t}={}){let{basename:n}=C.useContext(ps),r=C.useContext(Wi);er(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...tg(e||".",{relative:t})},s=tl();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),d=l.getAll("index");if(d.some(c=>c==="")){l.delete("index"),d.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:qs([n,a.pathname])),Ic(a)}function R4(e,{relative:t}={}){let n=C.useContext(zw);er(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ZD("useViewTransitionState"),o=tg(e,{relative:t});if(!n.isTransitioning)return!1;let a=zi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=zi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Mv(o.pathname,s)!=null||Mv(o.pathname,a)!=null}var pb=ED();const Rc=MD(pb);function $4(e){return C.createElement(VF,{flushSync:pb.flushSync,...e})}const P4="modulepreload",D4=function(e){return"/"+e},iO={},Lo=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]"),d=l?.nonce||l?.getAttribute("nonce");o=s(n.map(f=>{if(f=D4(f),f in iO)return;iO[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":P4,c||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),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)})},Nm={black:"#000",white:"#fff"},lf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},cf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},uf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},df={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ff={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},kh={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},A4={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 Al(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 Ys="$$material";function Rv(){return Rv=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},Rv.apply(null,arguments)}function j4(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 N4(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 I4=(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(N4(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=j4(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})(),Jo="-ms-",$v="-moz-",yr="-webkit-",JD="comm",Hw="rule",Ww="decl",L4="@import",eA="@keyframes",z4="@layer",F4=Math.abs,hb=String.fromCharCode,B4=Object.assign;function U4(e,t){return qo(e,0)^45?(((t<<2^qo(e,0))<<2^qo(e,1))<<2^qo(e,2))<<2^qo(e,3):0}function tA(e){return e.trim()}function _4(e,t){return(e=t.exec(e))?e[0]:e}function vr(e,t,n){return e.replace(t,n)}function dS(e,t){return e.indexOf(t)}function qo(e,t){return e.charCodeAt(t)|0}function Im(e,t,n){return e.slice(t,n)}function Fs(e){return e.length}function qw(e){return e.length}function Oy(e,t){return t.push(e),e}function V4(e,t){return e.map(t).join("")}var mb=1,_f=1,nA=0,Da=0,ko=0,ip="";function gb(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:mb,column:_f,length:s,return:""}}function Th(e,t){return B4(gb("",null,null,"",null,null,0),e,{length:-e.length},t)}function H4(){return ko}function W4(){return ko=Da>0?qo(ip,--Da):0,_f--,ko===10&&(_f=1,mb--),ko}function ii(){return ko=Da<nA?qo(ip,Da++):0,_f++,ko===10&&(_f=1,mb++),ko}function Ks(){return qo(ip,Da)}function cv(){return Da}function ng(e,t){return Im(ip,e,t)}function Lm(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 rA(e){return mb=_f=1,nA=Fs(ip=e),Da=0,[]}function oA(e){return ip="",e}function uv(e){return tA(ng(Da-1,fS(e===91?e+2:e===40?e+1:e)))}function q4(e){for(;(ko=Ks())&&ko<33;)ii();return Lm(e)>2||Lm(ko)>3?"":" "}function Y4(e,t){for(;--t&&ii()&&!(ko<48||ko>102||ko>57&&ko<65||ko>70&&ko<97););return ng(e,cv()+(t<6&&Ks()==32&&ii()==32))}function fS(e){for(;ii();)switch(ko){case e:return Da;case 34:case 39:e!==34&&e!==39&&fS(ko);break;case 40:e===41&&fS(e);break;case 92:ii();break}return Da}function K4(e,t){for(;ii()&&e+ko!==57;)if(e+ko===84&&Ks()===47)break;return"/*"+ng(t,Da-1)+"*"+hb(e===47?e:ii())}function G4(e){for(;!Lm(Ks());)ii();return ng(e,Da)}function Q4(e){return oA(dv("",null,null,null,[""],e=rA(e),0,[0],e))}function dv(e,t,n,r,o,a,s,l,d){for(var f=0,c=0,m=s,y=0,v=0,b=0,x=1,w=1,S=1,T=0,M="",R=o,$=a,P=r,N=M;w;)switch(b=T,T=ii()){case 40:if(b!=108&&qo(N,m-1)==58){dS(N+=vr(uv(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:N+=uv(T);break;case 9:case 10:case 13:case 32:N+=q4(b);break;case 92:N+=Y4(cv()-1,7);continue;case 47:switch(Ks()){case 42:case 47:Oy(X4(K4(ii(),cv()),t,n),d);break;default:N+="/"}break;case 123*x:l[f++]=Fs(N)*S;case 125*x:case 59:case 0:switch(T){case 0:case 125:w=0;case 59+c:S==-1&&(N=vr(N,/\f/g,"")),v>0&&Fs(N)-m&&Oy(v>32?lO(N+";",r,n,m-1):lO(vr(N," ","")+";",r,n,m-2),d);break;case 59:N+=";";default:if(Oy(P=sO(N,t,n,f,c,o,l,M,R=[],$=[],m),a),T===123)if(c===0)dv(N,t,P,P,R,a,m,l,$);else switch(y===99&&qo(N,3)===110?100:y){case 100:case 108:case 109:case 115:dv(e,P,P,r&&Oy(sO(e,P,P,0,0,o,l,M,o,R=[],m),$),o,$,m,l,r?R:$);break;default:dv(N,P,P,P,[""],$,0,l,$)}}f=c=v=0,x=S=1,M=N="",m=s;break;case 58:m=1+Fs(N),v=b;default:if(x<1){if(T==123)--x;else if(T==125&&x++==0&&W4()==125)continue}switch(N+=hb(T),T*x){case 38:S=c>0?1:(N+="\f",-1);break;case 44:l[f++]=(Fs(N)-1)*S,S=1;break;case 64:Ks()===45&&(N+=uv(ii())),y=Ks(),c=m=Fs(M=N+=G4(cv())),T++;break;case 45:b===45&&Fs(N)==2&&(x=0)}}return a}function sO(e,t,n,r,o,a,s,l,d,f,c){for(var m=o-1,y=o===0?a:[""],v=qw(y),b=0,x=0,w=0;b<r;++b)for(var S=0,T=Im(e,m+1,m=F4(x=s[b])),M=e;S<v;++S)(M=tA(x>0?y[S]+" "+T:vr(T,/&\f/g,y[S])))&&(d[w++]=M);return gb(e,t,n,o===0?Hw:l,d,f,c)}function X4(e,t,n){return gb(e,t,n,JD,hb(H4()),Im(e,2,-2),0)}function lO(e,t,n,r){return gb(e,t,n,Ww,Im(e,0,r),Im(e,r+1,-1),r)}function jf(e,t){for(var n="",r=qw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Z4(e,t,n,r){switch(e.type){case z4:if(e.children.length)break;case L4:case Ww:return e.return=e.return||e.value;case JD:return"";case eA:return e.return=e.value+"{"+jf(e.children,r)+"}";case Hw:e.value=e.props.join(",")}return Fs(n=jf(e.children,r))?e.return=e.value+"{"+n+"}":""}function J4(e){var t=qw(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 e3(e){return function(t){t.root||(t=t.return)&&e(t)}}function aA(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var t3=function(t,n,r){for(var o=0,a=0;o=a,a=Ks(),o===38&&a===12&&(n[r]=1),!Lm(a);)ii();return ng(t,Da)},n3=function(t,n){var r=-1,o=44;do switch(Lm(o)){case 0:o===38&&Ks()===12&&(n[r]=1),t[r]+=t3(Da-1,n,r);break;case 2:t[r]+=uv(o);break;case 4:if(o===44){t[++r]=Ks()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=hb(o)}while(o=ii());return t},r3=function(t,n){return oA(n3(rA(t),n))},cO=new WeakMap,o3=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&&!cO.get(r))&&!o){cO.set(t,!0);for(var a=[],s=r3(n,a),l=r.props,d=0,f=0;d<s.length;d++)for(var c=0;c<l.length;c++,f++)t.props[f]=a[d]?s[d].replace(/&\f/g,l[c]):l[c]+" "+s[d]}}},a3=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function iA(e,t){switch(U4(e,t)){case 5103:return yr+"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 yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yr+e+$v+e+Jo+e+e;case 6828:case 4268:return yr+e+Jo+e+e;case 6165:return yr+e+Jo+"flex-"+e+e;case 5187:return yr+e+vr(e,/(\w+).+(:[^]+)/,yr+"box-$1$2"+Jo+"flex-$1$2")+e;case 5443:return yr+e+Jo+"flex-item-"+vr(e,/flex-|-self/,"")+e;case 4675:return yr+e+Jo+"flex-line-pack"+vr(e,/align-content|flex-|-self/,"")+e;case 5548:return yr+e+Jo+vr(e,"shrink","negative")+e;case 5292:return yr+e+Jo+vr(e,"basis","preferred-size")+e;case 6060:return yr+"box-"+vr(e,"-grow","")+yr+e+Jo+vr(e,"grow","positive")+e;case 4554:return yr+vr(e,/([^-])(transform)/g,"$1"+yr+"$2")+e;case 6187:return vr(vr(vr(e,/(zoom-|grab)/,yr+"$1"),/(image-set)/,yr+"$1"),e,"")+e;case 5495:case 3959:return vr(e,/(image-set\([^]*)/,yr+"$1$`$1");case 4968:return vr(vr(e,/(.+:)(flex-)?(.*)/,yr+"box-pack:$3"+Jo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yr+e+e;case 4095:case 3583:case 4068:case 2532:return vr(e,/(.+)-inline(.+)/,yr+"$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(Fs(e)-1-t>6)switch(qo(e,t+1)){case 109:if(qo(e,t+4)!==45)break;case 102:return vr(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+$v+(qo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dS(e,"stretch")?iA(vr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qo(e,t+1)!==115)break;case 6444:switch(qo(e,Fs(e)-3-(~dS(e,"!important")&&10))){case 107:return vr(e,":",":"+yr)+e;case 101:return vr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(qo(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+Jo+"$2box$3")+e}break;case 5936:switch(qo(e,t+11)){case 114:return yr+e+Jo+vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+Jo+vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+Jo+vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+Jo+e+e}return e}var i3=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ww:t.return=iA(t.value,t.length);break;case eA:return jf([Th(t,{value:vr(t.value,"@","@"+yr)})],o);case Hw:if(t.length)return V4(t.props,function(a){switch(_4(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jf([Th(t,{props:[vr(a,/:(read-\w+)/,":"+$v+"$1")]})],o);case"::placeholder":return jf([Th(t,{props:[vr(a,/:(plac\w+)/,":"+yr+"input-$1")]}),Th(t,{props:[vr(a,/:(plac\w+)/,":"+$v+"$1")]}),Th(t,{props:[vr(a,/:(plac\w+)/,Jo+"input-$1")]})],o)}return""})}},s3=[i3],l3=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||s3,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 d,f=[o3,a3];{var c,m=[Z4,e3(function(x){c.insert(x)})],y=J4(f.concat(o,m)),v=function(w){return jf(Q4(w),y)};d=function(w,S,T,M){c=T,v(w?w+"{"+S.styles+"}":S.styles),M&&(b.inserted[S.name]=!0)}}var b={key:n,sheet:new I4({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return b.sheet.hydrate(l),b},u1={exports:{}},Sr={};/** @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 uO;function c3(){if(uO)return Sr;uO=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,d=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,T=e?Symbol.for("react.scope"):60119;function M($){if(typeof $=="object"&&$!==null){var P=$.$$typeof;switch(P){case t:switch($=$.type,$){case d:case f:case r:case a:case o:case m:return $;default:switch($=$&&$.$$typeof,$){case l:case c:case b:case v:case s:return $;default:return P}}case n:return P}}}function R($){return M($)===f}return Sr.AsyncMode=d,Sr.ConcurrentMode=f,Sr.ContextConsumer=l,Sr.ContextProvider=s,Sr.Element=t,Sr.ForwardRef=c,Sr.Fragment=r,Sr.Lazy=b,Sr.Memo=v,Sr.Portal=n,Sr.Profiler=a,Sr.StrictMode=o,Sr.Suspense=m,Sr.isAsyncMode=function($){return R($)||M($)===d},Sr.isConcurrentMode=R,Sr.isContextConsumer=function($){return M($)===l},Sr.isContextProvider=function($){return M($)===s},Sr.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Sr.isForwardRef=function($){return M($)===c},Sr.isFragment=function($){return M($)===r},Sr.isLazy=function($){return M($)===b},Sr.isMemo=function($){return M($)===v},Sr.isPortal=function($){return M($)===n},Sr.isProfiler=function($){return M($)===a},Sr.isStrictMode=function($){return M($)===o},Sr.isSuspense=function($){return M($)===m},Sr.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===a||$===o||$===m||$===y||typeof $=="object"&&$!==null&&($.$$typeof===b||$.$$typeof===v||$.$$typeof===s||$.$$typeof===l||$.$$typeof===c||$.$$typeof===w||$.$$typeof===S||$.$$typeof===T||$.$$typeof===x)},Sr.typeOf=M,Sr}var dO;function u3(){return dO||(dO=1,u1.exports=c3()),u1.exports}var d1,fO;function d3(){if(fO)return d1;fO=1;var e=u3(),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,d=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 T=d(x);f&&(T=T.concat(f(x)));for(var M=s(b),R=s(x),$=0;$<T.length;++$){var P=T[$];if(!n[P]&&!(w&&w[P])&&!(R&&R[P])&&!(M&&M[P])){var N=c(x,P);try{l(b,P,N)}catch{}}}}return b}return d1=v,d1}d3();var f3=!0;function sA(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Yw=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||f3===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Kw=function(t,n,r){Yw(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 p3(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 h3={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},m3=/[A-Z]|^ms/g,g3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lA=function(t){return t.charCodeAt(1)===45},pO=function(t){return t!=null&&typeof t!="boolean"},f1=aA(function(e){return lA(e)?e:e.replace(m3,"-$&").toLowerCase()}),hO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(g3,function(r,o,a){return Bs={name:o,styles:a,next:Bs},o})}return h3[t]!==1&&!lA(t)&&typeof n=="number"&&n!==0?n+"px":n};function zm(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 Bs={name:o.name,styles:o.styles,next:Bs},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Bs={name:s.name,styles:s.styles,next:Bs},s=s.next;var l=a.styles+";";return l}return y3(e,t,n)}case"function":{if(e!==void 0){var d=Bs,f=n(e);return Bs=d,zm(e,t,f)}break}}var c=n;if(t==null)return c;var m=t[c];return m!==void 0?m:c}function y3(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zm(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]+"}":pO(l)&&(r+=f1(a)+":"+hO(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var d=0;d<s.length;d++)pO(s[d])&&(r+=f1(a)+":"+hO(a,s[d])+";");else{var f=zm(e,t,s);switch(a){case"animation":case"animationName":{r+=f1(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var mO=/label:\s*([^\s;{]+)\s*(;|$)/g,Bs;function rg(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="";Bs=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=zm(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=zm(n,t,e[l]),r){var d=a;o+=d[l]}mO.lastIndex=0;for(var f="",c;(c=mO.exec(o))!==null;)f+="-"+c[1];var m=p3(o)+f;return{name:m,styles:o,next:Bs}}var v3=function(t){return t()},cA=Pm.useInsertionEffect?Pm.useInsertionEffect:!1,uA=cA||v3,gO=cA||C.useLayoutEffect,dA=C.createContext(typeof HTMLElement<"u"?l3({key:"css"}):null);dA.Provider;var Gw=function(t){return C.forwardRef(function(n,r){var o=C.useContext(dA);return t(n,o,r)})},sp=C.createContext({}),Qw={}.hasOwnProperty,pS="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",b3=function(t,n){var r={};for(var o in n)Qw.call(n,o)&&(r[o]=n[o]);return r[pS]=t,r},x3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Yw(n,r,o),uA(function(){return Kw(n,r,o)}),null},S3=Gw(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[pS],a=[r],s="";typeof e.className=="string"?s=sA(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=rg(a,void 0,C.useContext(sp));s+=t.key+"-"+l.name;var d={};for(var f in e)Qw.call(e,f)&&f!=="css"&&f!==pS&&(d[f]=e[f]);return d.className=s,n&&(d.ref=n),C.createElement(C.Fragment,null,C.createElement(x3,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,d))}),w3=S3,yO=function(t,n){var r=arguments;if(n==null||!Qw.call(n,"css"))return C.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=w3,a[1]=b3(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={}))})(yO||(yO={}));var C3=Gw(function(e,t){var n=e.styles,r=rg([n],void 0,C.useContext(sp)),o=C.useRef();return gO(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,d=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",a),s.hydrate([d])),o.current=[s,l],function(){s.flush()}},[t]),gO(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&Kw(t,r.next,!0),s.tags.length){var d=s.tags[s.tags.length-1].nextElementSibling;s.before=d,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rg(t)}function ui(){var e=Vc.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 k3=/^((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)-.*))$/,T3=aA(function(e){return k3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),M3=T3,E3=function(t){return t!=="theme"},vO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?M3:E3},bO=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},O3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Yw(n,r,o),uA(function(){return Kw(n,r,o)}),null},R3=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=bO(t,n,r),d=l||vO(o),f=!d("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=Gw(function(w,S,T){var M=f&&w.as||o,R="",$=[],P=w;if(w.theme==null){P={};for(var N in w)P[N]=w[N];P.theme=C.useContext(sp)}typeof w.className=="string"?R=sA(S.registered,$,w.className):w.className!=null&&(R=w.className+" ");var V=rg(m.concat($),S.registered,P);R+=S.key+"-"+V.name,s!==void 0&&(R+=" "+s);var z=f&&l===void 0?vO(M):d,W={};for(var H in w)f&&H==="as"||z(H)&&(W[H]=w[H]);return W.className=R,T&&(W.ref=T),C.createElement(C.Fragment,null,C.createElement(O3,{cache:S,serialized:V,isStringTag:typeof M=="string"}),C.createElement(M,W))});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 T=e(w,Rv({},n,S,{shouldForwardProp:bO(x,S,!0)}));return T.apply(void 0,m)},x}},$3=["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"],Pv=R3.bind(null);$3.forEach(function(e){Pv[e]=Pv(e)});function P3(e){return e==null||Object.keys(e).length===0}function fA(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(P3(o)?n:o):t;return h.jsx(C3,{styles:r})}function pA(e,t){return Pv(e,t)}function D3(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const xO=[];function Dc(e){return xO[0]=e,rg(xO)}var p1={exports:{}},jr={};/**
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 SO;function A3(){if(SO)return jr;SO=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"),d=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 d: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 jr.ContextConsumer=a,jr.ContextProvider=s,jr.Element=e,jr.ForwardRef=l,jr.Fragment=n,jr.Lazy=m,jr.Memo=c,jr.Portal=t,jr.Profiler=o,jr.StrictMode=r,jr.Suspense=d,jr.SuspenseList=f,jr.isContextConsumer=function(x){return b(x)===a},jr.isContextProvider=function(x){return b(x)===s},jr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},jr.isForwardRef=function(x){return b(x)===l},jr.isFragment=function(x){return b(x)===n},jr.isLazy=function(x){return b(x)===m},jr.isMemo=function(x){return b(x)===c},jr.isPortal=function(x){return b(x)===t},jr.isProfiler=function(x){return b(x)===o},jr.isStrictMode=function(x){return b(x)===r},jr.isSuspense=function(x){return b(x)===d},jr.isSuspenseList=function(x){return b(x)===f},jr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===d||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)},jr.typeOf=b,jr}var wO;function j3(){return wO||(wO=1,p1.exports=A3()),p1.exports}var hA=j3();function Vs(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 mA(e){if(C.isValidElement(e)||hA.isValidElementType(e)||!Vs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mA(e[n])}),t}function Fo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Vs(e)&&Vs(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||hA.isValidElementType(t[o])?r[o]=t[o]:Vs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vs(e[o])?r[o]=Fo(e[o],t[o],n):n.clone?r[o]=Vs(t[o])?mA(t[o]):t[o]:r[o]=t[o]}),r}const N3=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 I3(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=N3(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(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?d(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:d,between:f,only:c,not:m,unit:n,...o}}function CO(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 L3(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function z3(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 F3(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 d=t(e.breakpoints.not(...l),s);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const B3={borderRadius:4};function ym(e,t){return t?Fo(e,t,{clone:!1}):e}const yb={xs:0,sm:600,md:900,lg:1200,xl:1536},kO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yb[e]}px)`},U3={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:yb[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ds(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||kO;return t.reduce((s,l,d)=>(s[a.up(a.keys[d])]=n(t[d]),s),{})}if(typeof t=="object"){const a=r.breakpoints||kO;return Object.keys(t).reduce((s,l)=>{if(L3(a.keys,l)){const d=z3(r.containerQueries?r:U3,l);d&&(s[d]=n(t[l],l))}else if(Object.keys(a.values||yb).includes(l)){const d=a.up(l);s[d]=n(t[l],l)}else{const d=l;s[d]=t[d]}return s},{})}return n(t)}function gA(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function hS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function _3(e,...t){const n=gA(e),r=[n,...t].reduce((o,a)=>Fo(o,a),{});return hS(Object.keys(n),r)}function V3(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 h1({values:e,breakpoints:t,base:n}){const r=n||V3(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,d)=>(Array.isArray(e)?(s[l]=e[d]!=null?e[d]:e[a],a=d):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(Al(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Us(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 Dv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Us(e,n)||r,t&&(o=t(o,r,e)),o}function vo(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],d=s.theme,f=Us(d,r)||{};return ds(s,l,m=>{let y=Dv(f,o,m);return m===y&&typeof m=="string"&&(y=Dv(f,o,`${t}${m==="default"?"":tt(m)}`,m)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function H3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const W3={m:"margin",p:"padding"},q3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},TO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y3=H3(e=>{if(e.length>2)if(TO[e])e=TO[e];else return[e];const[t,n]=e.split(""),r=W3[t],o=q3[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Xw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Xw,...Zw];function og(e,t,n,r){const o=Us(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 vb(e){return og(e,"spacing",8)}function Qu(e,t){return typeof t=="string"||t==null?t:e(t)}function K3(e,t){return n=>e.reduce((r,o)=>(r[o]=Qu(t,n),r),{})}function G3(e,t,n,r){if(!t.includes(n))return null;const o=Y3(n),a=K3(o,r),s=e[n];return ds(e,s,a)}function yA(e,t){const n=vb(e.theme);return Object.keys(e).map(r=>G3(e,t,r,n)).reduce(ym,{})}function ro(e){return yA(e,Xw)}ro.propTypes={};ro.filterProps=Xw;function oo(e){return yA(e,Zw)}oo.propTypes={};oo.filterProps=Zw;function Jw(e=8,t=vb({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 bb(...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]?ym(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Pi(e){return typeof e!="number"?e:`${e}px solid`}function qi(e,t){return vo({prop:e,themeKey:"borders",transform:t})}const Q3=qi("border",Pi),X3=qi("borderTop",Pi),Z3=qi("borderRight",Pi),J3=qi("borderBottom",Pi),eB=qi("borderLeft",Pi),tB=qi("borderColor"),nB=qi("borderTopColor"),rB=qi("borderRightColor"),oB=qi("borderBottomColor"),aB=qi("borderLeftColor"),iB=qi("outline",Pi),sB=qi("outlineColor"),xb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=og(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qu(t,r)});return ds(e,e.borderRadius,n)}return null};xb.propTypes={};xb.filterProps=["borderRadius"];bb(Q3,X3,Z3,J3,eB,tB,nB,rB,oB,aB,xb,iB,sB);const Sb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=og(e.theme,"spacing",8),n=r=>({gap:Qu(t,r)});return ds(e,e.gap,n)}return null};Sb.propTypes={};Sb.filterProps=["gap"];const wb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=og(e.theme,"spacing",8),n=r=>({columnGap:Qu(t,r)});return ds(e,e.columnGap,n)}return null};wb.propTypes={};wb.filterProps=["columnGap"];const Cb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=og(e.theme,"spacing",8),n=r=>({rowGap:Qu(t,r)});return ds(e,e.rowGap,n)}return null};Cb.propTypes={};Cb.filterProps=["rowGap"];const lB=vo({prop:"gridColumn"}),cB=vo({prop:"gridRow"}),uB=vo({prop:"gridAutoFlow"}),dB=vo({prop:"gridAutoColumns"}),fB=vo({prop:"gridAutoRows"}),pB=vo({prop:"gridTemplateColumns"}),hB=vo({prop:"gridTemplateRows"}),mB=vo({prop:"gridTemplateAreas"}),gB=vo({prop:"gridArea"});bb(Sb,wb,Cb,lB,cB,uB,dB,fB,pB,hB,mB,gB);function Nf(e,t){return t==="grey"?t:e}const yB=vo({prop:"color",themeKey:"palette",transform:Nf}),vB=vo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nf}),bB=vo({prop:"backgroundColor",themeKey:"palette",transform:Nf});bb(yB,vB,bB);function ri(e){return e<=1&&e!==0?`${e*100}%`:e}const xB=vo({prop:"width",transform:ri}),eC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||yb[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ri(n)}};return ds(e,e.maxWidth,t)}return null};eC.filterProps=["maxWidth"];const SB=vo({prop:"minWidth",transform:ri}),wB=vo({prop:"height",transform:ri}),CB=vo({prop:"maxHeight",transform:ri}),kB=vo({prop:"minHeight",transform:ri});vo({prop:"size",cssProperty:"width",transform:ri});vo({prop:"size",cssProperty:"height",transform:ri});const TB=vo({prop:"boxSizing"});bb(xB,eC,SB,wB,CB,kB,TB);const ag={border:{themeKey:"borders",transform:Pi},borderTop:{themeKey:"borders",transform:Pi},borderRight:{themeKey:"borders",transform:Pi},borderBottom:{themeKey:"borders",transform:Pi},borderLeft:{themeKey:"borders",transform:Pi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xb},color:{themeKey:"palette",transform:Nf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nf},backgroundColor:{themeKey:"palette",transform:Nf},p:{style:oo},pt:{style:oo},pr:{style:oo},pb:{style:oo},pl:{style:oo},px:{style:oo},py:{style:oo},padding:{style:oo},paddingTop:{style:oo},paddingRight:{style:oo},paddingBottom:{style:oo},paddingLeft:{style:oo},paddingX:{style:oo},paddingY:{style:oo},paddingInline:{style:oo},paddingInlineStart:{style:oo},paddingInlineEnd:{style:oo},paddingBlock:{style:oo},paddingBlockStart:{style:oo},paddingBlockEnd:{style:oo},m:{style:ro},mt:{style:ro},mr:{style:ro},mb:{style:ro},ml:{style:ro},mx:{style:ro},my:{style:ro},margin:{style:ro},marginTop:{style:ro},marginRight:{style:ro},marginBottom:{style:ro},marginLeft:{style:ro},marginX:{style:ro},marginY:{style:ro},marginInline:{style:ro},marginInlineStart:{style:ro},marginInlineEnd:{style:ro},marginBlock:{style:ro},marginBlockStart:{style:ro},marginBlockEnd:{style:ro},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:Sb},rowGap:{style:Cb},columnGap:{style:wb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ri},maxWidth:{style:eC},minWidth:{transform:ri},height:{transform:ri},maxHeight:{transform:ri},minHeight:{transform:ri},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 MB(...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 EB(e,t){return typeof e=="function"?e(t):e}function OB(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:c,style:m}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Us(o,f)||{};return m?m(s):ds(s,r,b=>{let x=Dv(y,c,b);return b===x&&typeof b=="string"&&(x=Dv(y,c,`${n}${b==="default"?"":tt(b)}`,b)),d===!1?x:{[d]:x}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??ag;function l(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const c=gA(o.breakpoints),m=Object.keys(c);let y=c;return Object.keys(f).forEach(v=>{const b=EB(f[v],o);if(b!=null)if(typeof b=="object")if(s[v])y=ym(y,e(v,b,o,s));else{const x=ds({theme:o},b,w=>({[v]:w}));MB(x,b)?y[v]=t({sx:b,theme:o,nested:!0}):y=ym(y,x)}else y=ym(y,e(v,b,o,s))}),!a&&o.modularCssLayers?{"@layer sx":CO(o,hS(m,y))}:CO(o,hS(m,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Lc=OB();Lc.filterProps=["sx"];function RB(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 lp(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=I3(n),d=Jw(o);let f=Fo({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...B3,...a}},s);return f=F3(f),f.applyStyles=RB,f=t.reduce((c,m)=>Fo(c,m),f),f.unstable_sxConfig={...ag,...s?.unstable_sxConfig},f.unstable_sx=function(m){return Lc({sx:m,theme:this})},f}function $B(e){return Object.keys(e).length===0}function tC(e=null){const t=C.useContext(sp);return!t||$B(t)?e:t}const PB=lp();function cp(e=PB){return tC(e)}function m1(e){const t=Dc(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function nC({styles:e,themeId:t,defaultTheme:n={}}){const r=cp(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>m1(typeof s=="function"?s(o):s)):a=m1(a)),h.jsx(fA,{styles:a})}const DB=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ag;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function kb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=DB(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return Vs(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const MO=e=>e,AB=()=>{let e=MO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=MO}}},rC=AB();function vA(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=vA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vA(e))&&(r&&(r+=" "),r+=t);return r}function oC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=pA("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Lc);return C.forwardRef(function(d,f){const c=cp(n),{className:m,component:y="div",...v}=kb(d);return h.jsx(a,{as:y,ref:f,className:Pt(m,o?o(r):r),theme:t&&c[t]||c,...v})})}const jB={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 an(e,t,n="Mui"){const r=jB[t];return r?`${n}-${r}`:`${rC.generate(e)}-${t}`}function ln(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=an(e,o,n)}),r}const NB=ln("MuiBox",["root"]),bA=oC({defaultClassName:NB.root,generateClassName:rC.generate});function xA(e){const{variants:t,...n}=e,r={variants:t,style:Dc(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Dc(o.style))}),r}const IB=lp();function fv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function zu(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function LB(e){return e?(t,n)=>n[e]:null}function zB(e,t,n){e.theme=BB(e.theme)?n:e.theme[t]||e.theme}function pv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>pv(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?zu(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?zu(Dc(s),n):s}return SA(e,r.variants,[o],n)}return r?.isProcessed?n?zu(Dc(r.style),n):r.style:n?zu(Dc(r),n):r}function SA(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?zu(Dc(s.style(o)),r):s.style(o))):n.push(r?zu(Dc(s.style),r):s.style)}return n}function wA(e={}){const{themeId:t,defaultTheme:n=IB,rootShouldForwardProp:r=fv,slotShouldForwardProp:o=fv}=e;function a(l){zB(l,t,n)}return(l,d={})=>{D3(l,P=>P.filter(N=>N!==Lc));const{name:f,slot:c,skipVariantsResolver:m,skipSx:y,overridesResolver:v=LB(_B(c)),...b}=d,x=f&&f.startsWith("Mui")||c?"components":"custom",w=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,S=y||!1;let T=fv;c==="Root"||c==="root"?T=r:c?T=o:UB(l)&&(T=void 0);const M=pA(l,{shouldForwardProp:T,label:FB(),...b}),R=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(V){return pv(V,P,V.theme.modularCssLayers?x:void 0)};if(Vs(P)){const N=xA(P);return function(z){return N.variants?pv(z,N,z.theme.modularCssLayers?x:void 0):z.theme.modularCssLayers?zu(N.style,x):N.style}}return P},$=(...P)=>{const N=[],V=P.map(R),z=[];if(N.push(a),f&&v&&z.push(function(I){const _=I.theme.components?.[f]?.styleOverrides;if(!_)return null;const j={};for(const X in _)j[X]=pv(I,_[X],I.theme.modularCssLayers?"theme":void 0);return v(I,j)}),f&&!w&&z.push(function(I){const _=I.theme?.components?.[f]?.variants;return _?SA(I,_,[],I.theme.modularCssLayers?"theme":void 0):null}),S||z.push(Lc),Array.isArray(V[0])){const k=V.shift(),I=new Array(N.length).fill(""),F=new Array(z.length).fill("");let _;_=[...I,...k,...F],_.raw=[...I,...k.raw,...F],N.unshift(_)}const W=[...N,...V,...z],H=M(...W);return l.muiName&&(H.muiName=l.muiName),H};return M.withConfig&&($.withConfig=M.withConfig),$}}function FB(e,t){return void 0}function BB(e){for(const t in e)return!1;return!0}function UB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _B(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const aC=wA();function Fm(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 d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const f=d;r[a][f]=Fm(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=Pt(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 VB(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Fm(t.components[n].defaultProps,r)}function iC({props:e,name:t,defaultTheme:n,themeId:r}){let o=cp(n);return r&&(o=o[r]||o),VB({theme:o,name:t,props:e})}const Aa=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Mf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function sC(e,t=0,n=1){return Mf(e,t,n)}function HB(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 zc(e){if(e.type)return e;if(e.charAt(0)==="#")return zc(HB(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Al(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(Al(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const WB=e=>{const t=zc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},im=(e,t)=>{try{return WB(e)}catch{return e}};function Tb(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 CA(e){e=zc(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 d=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),Tb({type:l,values:d})}function mS(e){e=zc(e);let t=e.type==="hsl"||e.type==="hsla"?zc(CA(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 qB(e,t){const n=mS(e),r=mS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fs(e,t){return e=zc(e),t=sC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tb(e)}function Cu(e,t,n){try{return fs(e,t)}catch{return e}}function Mb(e,t){if(e=zc(e),t=sC(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 Tb(e)}function Mr(e,t,n){try{return Mb(e,t)}catch{return e}}function Eb(e,t){if(e=zc(e),t=sC(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 Tb(e)}function Er(e,t,n){try{return Eb(e,t)}catch{return e}}function gS(e,t=.15){return mS(e)>.5?Mb(e,t):Eb(e,t)}function Ry(e,t,n){try{return gS(e,t)}catch{return e}}const kA=C.createContext(null);function lC(){return C.useContext(kA)}const YB=typeof Symbol=="function"&&Symbol.for,KB=YB?Symbol.for("mui.nested"):"__THEME_NESTED__";function GB(e,t){return typeof t=="function"?t(e):{...e,...t}}function QB(e){const{children:t,theme:n}=e,r=lC(),o=C.useMemo(()=>{const a=r===null?{...n}:GB(r,n);return a!=null&&(a[KB]=r!==null),a},[n,r]);return h.jsx(kA.Provider,{value:o,children:t})}const TA=C.createContext();function XB({value:e,...t}){return h.jsx(TA.Provider,{value:e??!0,...t})}const ig=()=>C.useContext(TA)??!1,MA=C.createContext(void 0);function ZB({value:e,children:t}){return h.jsx(MA.Provider,{value:e,children:t})}function JB(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?Fm(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Fm(o,r,t.components.mergeClassNameAndStyle):r}function e6({props:e,name:t}){const n=C.useContext(MA);return JB({props:e,name:t,theme:{components:n}})}let EO=0;function t6(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(EO+=1,n(`mui-${EO}`))},[t]),r}const n6={...Pm},OO=n6.useId;function Hc(e){if(OO!==void 0){const t=OO();return e??t}return t6(e)}function r6(e){const t=tC(),n=Hc()||"",{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};`,Aa(()=>{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(nC,{styles:o}):null}const RO={};function $O(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 EA(e){const{children:t,theme:n,themeId:r}=e,o=tC(RO),a=lC()||RO,s=$O(r,o,n),l=$O(r,a,n,!0),d=(r?s[r]:s).direction==="rtl",f=r6(s);return h.jsx(QB,{theme:l,children:h.jsx(sp.Provider,{value:s,children:h.jsx(XB,{value:d,children:h.jsxs(ZB,{value:r?s[r].components:s.components,children:[f,t]})})})})}const PO={theme:void 0};function OA(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(PO.theme=o.theme,a=xA(e(PO)),t=a,n=o.theme),a}}const cC="mode",uC="color-scheme",o6="data-color-scheme";function a6(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=cC,colorSchemeStorageKey:a=uC,attribute:s=o6,colorSchemeNode:l="document.documentElement",nonce:d}=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"?d:"",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 i6(){}const s6=({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 i6;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function g1(){}function DO(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function RA(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 l6(e){return RA(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function c6(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=cC,colorSchemeStorageKey:s=uC,storageWindow:l=typeof window>"u"?void 0:window,storageManager:d=s6,noSsr:f=!1}=e,c=o.join(","),m=o.length>1,y=C.useMemo(()=>d?.({key:a,storageWindow:l}),[d,a,l]),v=C.useMemo(()=>d?.({key:`${s}-light`,storageWindow:l}),[d,s,l]),b=C.useMemo(()=>d?.({key:`${s}-dark`,storageWindow:l}),[d,s,l]),[x,w]=C.useState(()=>{const V=y?.get(t)||t,z=v?.get(n)||n,W=b?.get(r)||r;return{mode:V,systemMode:DO(V),lightColorScheme:z,darkColorScheme:W}}),[S,T]=C.useState(f||!m);C.useEffect(()=>{T(!0)},[]);const M=l6(x),R=C.useCallback(V=>{w(z=>{if(V===z.mode)return z;const W=V??t;return y?.set(W),{...z,mode:W,systemMode:DO(W)}})},[y,t]),$=C.useCallback(V=>{V?typeof V=="string"?V&&!c.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):w(z=>{const W={...z};return RA(z,H=>{H==="light"&&(v?.set(V),W.lightColorScheme=V),H==="dark"&&(b?.set(V),W.darkColorScheme=V)}),W}):w(z=>{const W={...z},H=V.light===null?n:V.light,k=V.dark===null?r:V.dark;return H&&(c.includes(H)?(W.lightColorScheme=H,v?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),k&&(c.includes(k)?(W.darkColorScheme=k,b?.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),W}):w(z=>(v?.set(n),b?.set(r),{...z,lightColorScheme:n,darkColorScheme:r}))},[c,v,b,n,r]),P=C.useCallback(V=>{x.mode==="system"&&w(z=>{const W=V?.matches?"dark":"light";return z.systemMode===W?z:{...z,systemMode:W}})},[x.mode]),N=C.useRef(P);return N.current=P,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const V=(...W)=>N.current(...W),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(V),V(z),()=>{z.removeListener(V)}},[m]),C.useEffect(()=>{if(m){const V=y?.subscribe(H=>{(!H||["light","dark","system"].includes(H))&&R(H||t)})||g1,z=v?.subscribe(H=>{(!H||c.match(H))&&$({light:H})})||g1,W=b?.subscribe(H=>{(!H||c.match(H))&&$({dark:H})})||g1;return()=>{V(),z(),W()}}},[$,R,c,t,l,m,y,v,b]),{...x,mode:S?x.mode:void 0,systemMode:S?x.systemMode:void 0,colorScheme:S?M:void 0,setMode:R,setColorScheme:$}}const u6="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function d6(e){const{themeId:t,theme:n={},modeStorageKey:r=cC,colorSchemeStorageKey:o=uC,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,d={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)||d,m={},y={};function v(S){const{children:T,theme:M,modeStorageKey:R=r,colorSchemeStorageKey:$=o,disableTransitionOnChange:P=a,storageManager:N,storageWindow:V=typeof window>"u"?void 0:window,documentNode:z=typeof document>"u"?void 0:document,colorSchemeNode:W=typeof document>"u"?void 0:document.documentElement,disableNestedContext:H=!1,disableStyleSheetGeneration:k=!1,defaultMode:I="system",forceThemeRerender:F=!1,noSsr:_}=S,j=C.useRef(!1),X=lC(),Q=C.useContext(f),te=!!Q&&!H,Z=C.useMemo(()=>M||(typeof n=="function"?n():n),[M]),G=Z[t],ne=G||Z,{colorSchemes:ce=m,components:pe=y,cssVarPrefix:oe}=ne,ae=Object.keys(ce).filter(Xe=>!!ce[Xe]).join(","),le=C.useMemo(()=>ae.split(","),[ae]),ge=typeof s=="string"?s:s.light,ye=typeof s=="string"?s:s.dark,we=ce[ge]&&ce[ye]?I:ce[ne.defaultColorScheme]?.palette?.mode||ne.palette?.mode,{mode:Ce,setMode:$e,systemMode:de,lightColorScheme:ke,darkColorScheme:et,colorScheme:ze,setColorScheme:Ae}=c6({supportedColorSchemes:le,defaultLightColorScheme:ge,defaultDarkColorScheme:ye,modeStorageKey:R,colorSchemeStorageKey:$,defaultMode:we,storageManager:N,storageWindow:V,noSsr:_});let se=Ce,bt=ze;te&&(se=Q.mode,bt=Q.colorScheme);let Fe=bt||ne.defaultColorScheme;ne.vars&&!F&&(Fe=ne.defaultColorScheme);const it=C.useMemo(()=>{const Xe=ne.generateThemeVars?.()||ne.vars,rt={...ne,components:pe,colorSchemes:ce,cssVarPrefix:oe,vars:Xe};if(typeof rt.generateSpacing=="function"&&(rt.spacing=rt.generateSpacing()),Fe){const Ne=ce[Fe];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(he=>{Ne[he]&&typeof Ne[he]=="object"?rt[he]={...rt[he],...Ne[he]}:rt[he]=Ne[he]})}return l?l(rt):rt},[ne,Fe,pe,ce,oe]),pt=ne.colorSchemeSelector;Aa(()=>{if(bt&&W&&pt&&pt!=="media"){const Xe=pt;let rt=pt;if(Xe==="class"&&(rt=".%s"),Xe==="data"&&(rt="[data-%s]"),Xe?.startsWith("data-")&&!Xe.includes("%s")&&(rt=`[${Xe}="%s"]`),rt.startsWith("."))W.classList.remove(...le.map(Ne=>rt.substring(1).replace("%s",Ne))),W.classList.add(rt.substring(1).replace("%s",bt));else{const Ne=rt.replace("%s",bt).match(/\[([^\]]+)\]/);if(Ne){const[he,We]=Ne[1].split("=");We||le.forEach(Te=>{W.removeAttribute(he.replace(bt,Te))}),W.setAttribute(he,We?We.replace(/"|'/g,""):"")}else W.setAttribute(rt,bt)}}},[bt,pt,W,le]),C.useEffect(()=>{let Xe;if(P&&j.current&&z){const rt=z.createElement("style");rt.appendChild(z.createTextNode(u6)),z.head.appendChild(rt),window.getComputedStyle(z.body),Xe=setTimeout(()=>{z.head.removeChild(rt)},1)}return()=>{clearTimeout(Xe)}},[bt,P,z]),C.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Ft=C.useMemo(()=>({allColorSchemes:le,colorScheme:bt,darkColorScheme:et,lightColorScheme:ke,mode:se,setColorScheme:Ae,setMode:$e,systemMode:de}),[le,bt,et,ke,se,Ae,$e,de,it.colorSchemeSelector]);let _t=!0;(k||ne.cssVariables===!1||te&&X?.cssVarPrefix===oe)&&(_t=!1);const at=h.jsxs(C.Fragment,{children:[h.jsx(EA,{themeId:G?t:void 0,theme:it,children:T}),_t&&h.jsx(fA,{styles:it.generateStyleSheets?.()||[]})]});return te?at:h.jsx(f.Provider,{value:Ft,children:at})}const b=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:v,useColorScheme:c,getInitColorSchemeScript:S=>a6({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:x,modeStorageKey:r,...S})}}function $A(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 AO=(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])})},f6=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,d])=>{(!n||n&&!n([...a,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,l],Array.isArray(d)?[...s,l]:s):t([...a,l],d,s))})}r(e)},p6=(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 y1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return f6(e,(l,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(l,d))){const c=`--${n?`${n}-`:""}${l.join("-")}`,m=p6(l,d);Object.assign(o,{[c]:m}),AO(a,l,`var(${c})`,f),AO(s,l,`var(${c}, ${m})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function h6(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:d="light",...f}=e,{vars:c,css:m,varsWithDefaults:y}=y1(f,t);let v=y;const b={},{[d]:x,...w}=s;if(Object.entries(w||{}).forEach(([R,$])=>{const{vars:P,css:N,varsWithDefaults:V}=y1($,t);v=Fo(v,V),b[R]={css:N,vars:P}}),x){const{css:R,vars:$,varsWithDefaults:P}=y1(x,t);v=Fo(v,P),b[d]={css:R,vars:$}}function S(R,$){let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),R){if(P==="media")return e.defaultColorScheme===R?":root":{[`@media (prefers-color-scheme: ${s[R]?.palette?.mode||R})`]:{":root":$}};if(P)return e.defaultColorScheme===R?`:root, ${P.replace("%s",String(R))}`:P.replace("%s",String(R))}return":root"}return{vars:v,generateThemeVars:()=>{let R={...c};return Object.entries(b).forEach(([,{vars:$}])=>{R=Fo(R,$)}),R},generateStyleSheets:()=>{const R=[],$=e.defaultColorScheme||"light";function P(z,W){Object.keys(W).length&&R.push(typeof z=="string"?{[z]:{...W}}:z)}P(n(void 0,{...m}),m);const{[$]:N,...V}=b;if(N){const{css:z}=N,W=s[$]?.palette?.mode,H=!r&&W?{colorScheme:W,...z}:{...z};P(n($,{...H}),H)}return Object.entries(V).forEach(([z,{css:W}])=>{const H=s[z]?.palette?.mode,k=!r&&H?{colorScheme:H,...W}:{...W};P(n(z,{...k}),k)}),a&&R.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)"}}),R}}}function m6(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 sn(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let d=0;d<a.length;d+=1){const f=a[d];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}const g6=lp(),y6=aC("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]}}),v6=e=>iC({props:e,name:"MuiContainer",defaultTheme:g6}),b6=(e,t)=>{const n=d=>an(t,d),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${tt(String(s))}`,o&&"fixed",a&&"disableGutters"]};return sn(l,n,r)};function x6(e={}){const{createStyledComponent:t=y6,useThemeProps:n=v6,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((d,f)=>{const c=f,m=s.breakpoints.values[c];return m!==0&&(d[s.breakpoints.up(c)]={maxWidth:`${m}${s.breakpoints.unit}`}),d},{}),({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,d){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},T=b6(S,r);return h.jsx(o,{as:m,ownerState:S,className:Pt(T.root,c),ref:d,...w})})}function hv(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const S6=(e,t)=>e.filter(n=>t.includes(n)),up=(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:S6(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,d)=>{r===a?Object.assign(l,d):l[e.up(a)]=d},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function Av(e){return`--Grid-${e}Spacing`}function Ob(e){return`--Grid-parent-${e}Spacing`}const jO="--Grid-columns",If="--Grid-parent-columns",w6=({theme:e,ownerState:t})=>{const n={};return up(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(${If}) - (var(${If}) - ${o}) * (var(${Ob("column")}) / var(${If})))`}),r(n,a)}),n},C6=({theme:e,ownerState:t})=>{const n={};return up(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(${If}) + var(${Ob("column")}) * ${o} / var(${If}))`}),r(n,a)}),n},k6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[jO]:12};return up(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[jO]:a,"> *":{[If]:a}})}),n},T6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return up(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[Av("row")]:a,"> *":{[Ob("row")]:a}})}),n},M6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return up(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[Av("column")]:a,"> *":{[Ob("column")]:a}})}),n},E6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return up(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},O6=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Av("row")}) var(${Av("column")})`}}),R6=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},$6=(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[]},P6=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function D6(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 A6=lp(),j6=aC("div",{name:"MuiGrid",slot:"Root"});function N6(e){return iC({props:e,name:"MuiGrid",defaultTheme:A6})}function I6(e={}){const{createStyledComponent:t=j6,useThemeProps:n=N6,useTheme:r=cp,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)}`,...P6(y),...R6(x),...m?$6(v,c.breakpoints.keys[0]):[]]};return sn(w,S=>an(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(k6,M6,T6,w6,E6,O6,C6),d=C.forwardRef(function(c,m){const y=r(),v=n(c),b=kb(v);D6(b,y.breakpoints);const{className:x,children:w,columns:S=12,container:T=!1,component:M="div",direction:R="row",wrap:$="wrap",size:P={},offset:N={},spacing:V=0,rowSpacing:z=V,columnSpacing:W=V,unstable_level:H=0,...k}=b,I=s(P,y.breakpoints,G=>G!==!1),F=s(N,y.breakpoints),_=c.columns??(H?void 0:S),j=c.spacing??(H?void 0:V),X=c.rowSpacing??c.spacing??(H?void 0:z),Q=c.columnSpacing??c.spacing??(H?void 0:W),te={...b,level:H,columns:_,container:T,direction:R,wrap:$,spacing:j,rowSpacing:X,columnSpacing:Q,size:I,offset:F},Z=a(te,y);return h.jsx(l,{ref:m,as:M,ownerState:te,className:Pt(Z.root,x),...k,children:C.Children.map(w,G=>C.isValidElement(G)&&hv(G,["Grid"])&&T&&G.props.container?C.cloneElement(G,{unstable_level:G.props?.unstable_level??H+1}):G)})});return d.muiName="Grid",d}const L6=lp(),z6=aC("div",{name:"MuiStack",slot:"Root"});function F6(e){return iC({props:e,name:"MuiStack",defaultTheme:L6})}function B6(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 U6=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],_6=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ds({theme:t},h1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=vb(t),o=Object.keys(t.breakpoints.values).reduce((d,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(d[f]=!0),d),{}),a=h1({values:e.direction,base:o}),s=h1({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((d,f,c)=>{if(!a[d]){const y=f>0?a[c[f-1]]:"column";a[d]=y}}),n=Fo(n,ds({theme:t},s,(d,f)=>e.useFlexGap?{gap:Qu(r,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${U6(f?a[f]:e.direction)}`]:Qu(r,d)}}))}return n=_3(t.breakpoints,n),n};function dC(e={}){const{createStyledComponent:t=z6,useThemeProps:n=F6,componentName:r="MuiStack"}=e,o=()=>sn({root:["root"]},d=>an(r,d),{}),a=t(_6);return C.forwardRef(function(d,f){const c=n(d),m=kb(c),{component:y="div",direction:v="column",spacing:b=0,divider:x,children:w,className:S,useFlexGap:T=!1,...M}=m,R={direction:v,spacing:b,useFlexGap:T},$=o();return h.jsx(a,{as:y,ownerState:R,ref:f,className:Pt($.root,S),...M,children:x?B6(w,x):w})})}const V6=dC();function PA(){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:Nm.white,default:Nm.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 DA=PA();function AA(){return{text:{primary:Nm.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:Nm.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 yS=AA();function NO(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=Eb(e.main,o):t==="dark"&&(e.dark=Mb(e.main,a)))}function IO(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 H6(e="light"){return e==="dark"?{main:uf[200],light:uf[50],dark:uf[400]}:{main:uf[700],light:uf[400],dark:uf[800]}}function W6(e="light"){return e==="dark"?{main:cf[200],light:cf[50],dark:cf[400]}:{main:cf[500],light:cf[300],dark:cf[700]}}function q6(e="light"){return e==="dark"?{main:lf[500],light:lf[300],dark:lf[700]}:{main:lf[700],light:lf[400],dark:lf[800]}}function Y6(e="light"){return e==="dark"?{main:df[400],light:df[300],dark:df[700]}:{main:df[700],light:df[500],dark:df[900]}}function K6(e="light"){return e==="dark"?{main:ff[400],light:ff[300],dark:ff[700]}:{main:ff[800],light:ff[500],dark:ff[900]}}function G6(e="light"){return e==="dark"?{main:kh[400],light:kh[300],dark:kh[700]}:{main:"#ed6c02",light:kh[500],dark:kh[900]}}function Q6(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function fC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||H6(t),l=e.secondary||W6(t),d=e.error||q6(t),f=e.info||Y6(t),c=e.success||K6(t),m=e.warning||G6(t);function y(w){return o?Q6(w):qB(w,yS.text.primary)>=n?yS.text.primary:DA.text.primary}const v=({color:w,name:S,mainShade:T=500,lightShade:M=300,darkShade:R=700})=>{if(w={...w},!w.main&&w[T]&&(w.main=w[T]),!w.hasOwnProperty("main"))throw new Error(Al(11,S?` (${S})`:"",T));if(typeof w.main!="string")throw new Error(Al(12,S?` (${S})`:"",JSON.stringify(w.main)));return o?(IO(o,w,"light",M,r),IO(o,w,"dark",R,r)):(NO(w,"light",M,r),NO(w,"dark",R,r)),w.contrastText||(w.contrastText=y(w.main)),w};let b;return t==="light"?b=PA():t==="dark"&&(b=AA()),Fo({common:{...Nm},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:c,name:"success"}),grey:A4,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...b},a)}function X6(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 Z6(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function J6(e){return Math.round(e*1e5)/1e5}const LO={textTransform:"uppercase"},zO='"Roboto", "Helvetica", "Arial", sans-serif';function jA(e,t){const{fontFamily:n=zO,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:f,pxToRem:c,...m}=typeof t=="function"?t(e):t,y=r/14,v=c||(w=>`${w/d*y}rem`),b=(w,S,T,M,R)=>({fontFamily:n,fontWeight:w,fontSize:v(S),lineHeight:T,...n===zO?{letterSpacing:`${J6(M/S)}em`}:{},...R,...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,LO),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,LO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fo({htmlFontSize:d,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},m,{clone:!1})}const eU=.2,tU=.14,nU=.12;function Kr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${eU})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tU})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nU})`].join(",")}const rU=["none",Kr(0,2,1,-1,0,1,1,0,0,1,3,0),Kr(0,3,1,-2,0,2,2,0,0,1,5,0),Kr(0,3,3,-2,0,3,4,0,0,1,8,0),Kr(0,2,4,-1,0,4,5,0,0,1,10,0),Kr(0,3,5,-1,0,5,8,0,0,1,14,0),Kr(0,3,5,-1,0,6,10,0,0,1,18,0),Kr(0,4,5,-2,0,7,10,1,0,2,16,1),Kr(0,5,5,-3,0,8,10,1,0,3,14,2),Kr(0,5,6,-3,0,9,12,1,0,3,16,2),Kr(0,6,6,-3,0,10,14,1,0,4,18,3),Kr(0,6,7,-4,0,11,15,1,0,4,20,3),Kr(0,7,8,-4,0,12,17,2,0,5,22,4),Kr(0,7,8,-4,0,13,19,2,0,5,24,4),Kr(0,7,9,-4,0,14,21,2,0,5,26,4),Kr(0,8,9,-5,0,15,22,2,0,6,28,5),Kr(0,8,10,-5,0,16,24,2,0,6,30,5),Kr(0,8,11,-5,0,17,26,2,0,6,32,5),Kr(0,9,11,-5,0,18,28,2,0,7,34,6),Kr(0,9,12,-6,0,19,29,2,0,7,36,6),Kr(0,10,13,-6,0,20,31,3,0,8,38,7),Kr(0,10,13,-6,0,21,33,3,0,8,40,7),Kr(0,10,14,-6,0,22,35,3,0,8,42,7),Kr(0,11,14,-7,0,23,36,3,0,9,44,8),Kr(0,11,15,-7,0,24,38,3,0,9,46,8)],oU={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)"},aU={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FO(e){return`${Math.round(e)}ms`}function iU(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function sU(e){const t={...oU,...e.easing},n={...aU,...e.duration};return{getAutoHeightDuration:iU,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:d=0,...f}=a;return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:FO(s)} ${l} ${typeof d=="string"?d:FO(d)}`).join(",")},...e,easing:t,duration:n}}const lU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cU(e){return Vs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function NA(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];!cU(l)||s.startsWith("unstable_")?delete r[s]:Vs(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 BO(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const uU=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 dU(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})`:fs(t,uU(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${BO(n)})`:Eb(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${BO(n)})`:Mb(t,n)}})}function vS(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:d,colorSpace:f,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Al(20));const m=fC({...a,colorSpace:f}),y=lp(e);let v=Fo(y,{mixins:Z6(y.breakpoints,r),palette:m,shadows:rU.slice(),typography:jA(m,l),transitions:sU(s),zIndex:{...lU}});return v=Fo(v,c),v=t.reduce((b,x)=>Fo(b,x),v),v.unstable_sxConfig={...ag,...c?.unstable_sxConfig},v.unstable_sx=function(x){return Lc({sx:x,theme:this})},v.toRuntimeSource=NA,dU(v),v}function bS(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 fU=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=bS(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function IA(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function LA(e){return e==="dark"?fU:[]}function pU(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=fC({...t,colorSpace:o});return{palette:s,opacity:{...IA(s.mode),...n},overlays:r||LA(s.mode),...a}}function hU(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 mU=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gU=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 mU(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 yU(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function st(e,t,n){!e[t]&&n&&(e[t]=n)}function sm(e){return typeof e!="string"||!e.startsWith("hsl")?e:CA(e)}function Tl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=im(sm(e[t])))}function vU(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const js=e=>{try{return e()}catch{}},bU=(e="mui")=>$A(e);function v1(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=pU({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=vS({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...IA(a),...n?.opacity},overlays:n?.overlays||LA(a)},l}function xU(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=hU,colorSchemeSelector:d=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=bU(a),{[y]:b,light:x,dark:w,...S}=n,T={...S};let M=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(Al(21,y));let R;s&&(R="oklch");const $=v1(R,T,M,c,y);x&&!T.light&&v1(R,T,x,void 0,"light"),w&&!T.dark&&v1(R,T,w,void 0,"dark");let P={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:d,rootSelector:f,getCssVar:v,colorSchemes:T,font:{...X6($.typography),...$.font},spacing:vU(c.spacing)};Object.keys(P.colorSchemes).forEach(H=>{const k=P.colorSchemes[H].palette,I=_=>{const j=_.split("-"),X=j[1],Q=j[2];return v(_,k[X][Q])};k.mode==="light"&&(st(k.common,"background","#fff"),st(k.common,"onBackground","#000")),k.mode==="dark"&&(st(k.common,"background","#000"),st(k.common,"onBackground","#fff"));function F(_,j,X){if(R){let Q;return _===Cu&&(Q=`transparent ${((1-X)*100).toFixed(0)}%`),_===Mr&&(Q=`#000 ${(X*100).toFixed(0)}%`),_===Er&&(Q=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${R}, ${j}, ${Q})`}return _(j,X)}if(yU(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){st(k.Alert,"errorColor",F(Mr,k.error.light,.6)),st(k.Alert,"infoColor",F(Mr,k.info.light,.6)),st(k.Alert,"successColor",F(Mr,k.success.light,.6)),st(k.Alert,"warningColor",F(Mr,k.warning.light,.6)),st(k.Alert,"errorFilledBg",I("palette-error-main")),st(k.Alert,"infoFilledBg",I("palette-info-main")),st(k.Alert,"successFilledBg",I("palette-success-main")),st(k.Alert,"warningFilledBg",I("palette-warning-main")),st(k.Alert,"errorFilledColor",js(()=>k.getContrastText(k.error.main))),st(k.Alert,"infoFilledColor",js(()=>k.getContrastText(k.info.main))),st(k.Alert,"successFilledColor",js(()=>k.getContrastText(k.success.main))),st(k.Alert,"warningFilledColor",js(()=>k.getContrastText(k.warning.main))),st(k.Alert,"errorStandardBg",F(Er,k.error.light,.9)),st(k.Alert,"infoStandardBg",F(Er,k.info.light,.9)),st(k.Alert,"successStandardBg",F(Er,k.success.light,.9)),st(k.Alert,"warningStandardBg",F(Er,k.warning.light,.9)),st(k.Alert,"errorIconColor",I("palette-error-main")),st(k.Alert,"infoIconColor",I("palette-info-main")),st(k.Alert,"successIconColor",I("palette-success-main")),st(k.Alert,"warningIconColor",I("palette-warning-main")),st(k.AppBar,"defaultBg",I("palette-grey-100")),st(k.Avatar,"defaultBg",I("palette-grey-400")),st(k.Button,"inheritContainedBg",I("palette-grey-300")),st(k.Button,"inheritContainedHoverBg",I("palette-grey-A100")),st(k.Chip,"defaultBorder",I("palette-grey-400")),st(k.Chip,"defaultAvatarColor",I("palette-grey-700")),st(k.Chip,"defaultIconColor",I("palette-grey-700")),st(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),st(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),st(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),st(k.LinearProgress,"primaryBg",F(Er,k.primary.main,.62)),st(k.LinearProgress,"secondaryBg",F(Er,k.secondary.main,.62)),st(k.LinearProgress,"errorBg",F(Er,k.error.main,.62)),st(k.LinearProgress,"infoBg",F(Er,k.info.main,.62)),st(k.LinearProgress,"successBg",F(Er,k.success.main,.62)),st(k.LinearProgress,"warningBg",F(Er,k.warning.main,.62)),st(k.Skeleton,"bg",R?F(Cu,k.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),st(k.Slider,"primaryTrack",F(Er,k.primary.main,.62)),st(k.Slider,"secondaryTrack",F(Er,k.secondary.main,.62)),st(k.Slider,"errorTrack",F(Er,k.error.main,.62)),st(k.Slider,"infoTrack",F(Er,k.info.main,.62)),st(k.Slider,"successTrack",F(Er,k.success.main,.62)),st(k.Slider,"warningTrack",F(Er,k.warning.main,.62));const _=R?F(Mr,k.background.default,.6825):Ry(k.background.default,.8);st(k.SnackbarContent,"bg",_),st(k.SnackbarContent,"color",js(()=>R?yS.text.primary:k.getContrastText(_))),st(k.SpeedDialAction,"fabHoverBg",Ry(k.background.paper,.15)),st(k.StepConnector,"border",I("palette-grey-400")),st(k.StepContent,"border",I("palette-grey-400")),st(k.Switch,"defaultColor",I("palette-common-white")),st(k.Switch,"defaultDisabledColor",I("palette-grey-100")),st(k.Switch,"primaryDisabledColor",F(Er,k.primary.main,.62)),st(k.Switch,"secondaryDisabledColor",F(Er,k.secondary.main,.62)),st(k.Switch,"errorDisabledColor",F(Er,k.error.main,.62)),st(k.Switch,"infoDisabledColor",F(Er,k.info.main,.62)),st(k.Switch,"successDisabledColor",F(Er,k.success.main,.62)),st(k.Switch,"warningDisabledColor",F(Er,k.warning.main,.62)),st(k.TableCell,"border",F(Er,F(Cu,k.divider,1),.88)),st(k.Tooltip,"bg",F(Cu,k.grey[700],.92))}if(k.mode==="dark"){st(k.Alert,"errorColor",F(Er,k.error.light,.6)),st(k.Alert,"infoColor",F(Er,k.info.light,.6)),st(k.Alert,"successColor",F(Er,k.success.light,.6)),st(k.Alert,"warningColor",F(Er,k.warning.light,.6)),st(k.Alert,"errorFilledBg",I("palette-error-dark")),st(k.Alert,"infoFilledBg",I("palette-info-dark")),st(k.Alert,"successFilledBg",I("palette-success-dark")),st(k.Alert,"warningFilledBg",I("palette-warning-dark")),st(k.Alert,"errorFilledColor",js(()=>k.getContrastText(k.error.dark))),st(k.Alert,"infoFilledColor",js(()=>k.getContrastText(k.info.dark))),st(k.Alert,"successFilledColor",js(()=>k.getContrastText(k.success.dark))),st(k.Alert,"warningFilledColor",js(()=>k.getContrastText(k.warning.dark))),st(k.Alert,"errorStandardBg",F(Mr,k.error.light,.9)),st(k.Alert,"infoStandardBg",F(Mr,k.info.light,.9)),st(k.Alert,"successStandardBg",F(Mr,k.success.light,.9)),st(k.Alert,"warningStandardBg",F(Mr,k.warning.light,.9)),st(k.Alert,"errorIconColor",I("palette-error-main")),st(k.Alert,"infoIconColor",I("palette-info-main")),st(k.Alert,"successIconColor",I("palette-success-main")),st(k.Alert,"warningIconColor",I("palette-warning-main")),st(k.AppBar,"defaultBg",I("palette-grey-900")),st(k.AppBar,"darkBg",I("palette-background-paper")),st(k.AppBar,"darkColor",I("palette-text-primary")),st(k.Avatar,"defaultBg",I("palette-grey-600")),st(k.Button,"inheritContainedBg",I("palette-grey-800")),st(k.Button,"inheritContainedHoverBg",I("palette-grey-700")),st(k.Chip,"defaultBorder",I("palette-grey-700")),st(k.Chip,"defaultAvatarColor",I("palette-grey-300")),st(k.Chip,"defaultIconColor",I("palette-grey-300")),st(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),st(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),st(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),st(k.LinearProgress,"primaryBg",F(Mr,k.primary.main,.5)),st(k.LinearProgress,"secondaryBg",F(Mr,k.secondary.main,.5)),st(k.LinearProgress,"errorBg",F(Mr,k.error.main,.5)),st(k.LinearProgress,"infoBg",F(Mr,k.info.main,.5)),st(k.LinearProgress,"successBg",F(Mr,k.success.main,.5)),st(k.LinearProgress,"warningBg",F(Mr,k.warning.main,.5)),st(k.Skeleton,"bg",R?F(Cu,k.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),st(k.Slider,"primaryTrack",F(Mr,k.primary.main,.5)),st(k.Slider,"secondaryTrack",F(Mr,k.secondary.main,.5)),st(k.Slider,"errorTrack",F(Mr,k.error.main,.5)),st(k.Slider,"infoTrack",F(Mr,k.info.main,.5)),st(k.Slider,"successTrack",F(Mr,k.success.main,.5)),st(k.Slider,"warningTrack",F(Mr,k.warning.main,.5));const _=R?F(Er,k.background.default,.985):Ry(k.background.default,.98);st(k.SnackbarContent,"bg",_),st(k.SnackbarContent,"color",js(()=>R?DA.text.primary:k.getContrastText(_))),st(k.SpeedDialAction,"fabHoverBg",Ry(k.background.paper,.15)),st(k.StepConnector,"border",I("palette-grey-600")),st(k.StepContent,"border",I("palette-grey-600")),st(k.Switch,"defaultColor",I("palette-grey-300")),st(k.Switch,"defaultDisabledColor",I("palette-grey-600")),st(k.Switch,"primaryDisabledColor",F(Mr,k.primary.main,.55)),st(k.Switch,"secondaryDisabledColor",F(Mr,k.secondary.main,.55)),st(k.Switch,"errorDisabledColor",F(Mr,k.error.main,.55)),st(k.Switch,"infoDisabledColor",F(Mr,k.info.main,.55)),st(k.Switch,"successDisabledColor",F(Mr,k.success.main,.55)),st(k.Switch,"warningDisabledColor",F(Mr,k.warning.main,.55)),st(k.TableCell,"border",F(Mr,F(Cu,k.divider,1),.68)),st(k.Tooltip,"bg",F(Cu,k.grey[700],.92))}Tl(k.background,"default"),Tl(k.background,"paper"),Tl(k.common,"background"),Tl(k.common,"onBackground"),Tl(k,"divider"),Object.keys(k).forEach(_=>{const j=k[_];_!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&st(k[_],"mainChannel",im(sm(j.main))),j.light&&st(k[_],"lightChannel",im(sm(j.light))),j.dark&&st(k[_],"darkChannel",im(sm(j.dark))),j.contrastText&&st(k[_],"contrastTextChannel",im(sm(j.contrastText))),_==="text"&&(Tl(k[_],"primary"),Tl(k[_],"secondary")),_==="action"&&(j.active&&Tl(k[_],"active"),j.selected&&Tl(k[_],"selected")))})}),P=t.reduce((H,k)=>Fo(H,k),P);const N={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:gU(P),enableContrastVars:s},{vars:V,generateThemeVars:z,generateStyleSheets:W}=h6(P,N);return P.vars=V,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([H,k])=>{P[H]=k}),P.generateThemeVars=z,P.generateStyleSheets=W,P.generateSpacing=function(){return Jw(c.spacing,vb(this))},P.getColorSchemeSelector=m6(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...ag,...c?.unstable_sxConfig},P.unstable_sx=function(k){return Lc({sx:k,theme:this})},P.toRuntimeSource=NA,P}function UO(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:fC({...n===!0?{}:n.palette,mode:t})})}function Rb(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",d=o?.[l],f={...o,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return vS(e,...t);let c=n;"palette"in e||f[l]&&(f[l]!==!0?c=f[l].palette:l==="dark"&&(c={mode:"dark"}));const m=vS({...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},UO(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},UO(m,"light",f.light)),m}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),xU({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const pC=Rb();function Wc(){const e=cp(pC);return e[Ys]||e}function $b(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ha=e=>$b(e)&&e!=="classes",ot=wA({themeId:Ys,defaultTheme:pC,rootShouldForwardProp:ha});function SU({theme:e,...t}){const n=Ys in e?e[Ys]:void 0;return h.jsx(EA,{...t,themeId:n?Ys:void 0,theme:n||e})}const $y={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:wU}=d6({themeId:Ys,theme:()=>Rb({cssVariables:!0}),colorSchemeStorageKey:$y.colorSchemeStorageKey,modeStorageKey:$y.modeStorageKey,defaultColorScheme:{light:$y.defaultLightColorScheme,dark:$y.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:jA(e.palette,e.typography)};return t.unstable_sx=function(r){return Lc({sx:r,theme:this})},t}}),CU=wU;function kU({theme:e,...t}){const n=C.useMemo(()=>{if(typeof e=="function")return e;const r=Ys in e?e[Ys]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?h.jsx(SU,{theme:n,...t}):h.jsx(CU,{theme:e,...t})}function _O(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function TU(e){return h.jsx(nC,{...e,defaultTheme:pC,themeId:Ys})}function hC(e){return function(n){return h.jsx(TU,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function MU(){return kb}const Jt=OA;function cn(e){return e6(e)}function EU(e){return an("MuiSvgIcon",e)}ln("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const OU=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return sn(o,EU,r)},RU=ot("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)}`]]}})(Jt(({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}}]}))),xS=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:d="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:d,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:y,hasSvgAsChild:b},w={};c||(w.viewBox=y);const S=OU(x);return h.jsxs(RU,{as:l,className:Pt(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]})});xS.muiName="SvgIcon";function Na(e,t){function n(r,o){return h.jsx(xS,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=xS.muiName,C.memo(C.forwardRef(n))}function zA(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 To(e){return e&&e.ownerDocument||document}function jl(e){return To(e).defaultView||window}function SS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ac(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),d=a?t:s,f=C.useCallback(c=>{a||l(c)},[]);return[d,f]}function Ro(e){const t=C.useRef(e);return Aa(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function po(...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 $U(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function FA(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(f=>{$U(f,l[f])&&typeof s[f]=="function"&&(d[f]=(...c)=>{s[f](...c),l[f](...c)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,f=Pt(s?.className,l?.className,d?.className),c=n(d,l);return{...l,...d,...c,...!!f&&{className:f},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,o=n(e,r),a=Pt(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 BA(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 wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wS(e,t)}function UA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wS(e,t)}const VO={disabled:!1},jv=pn.createContext(null);var PU=function(t){return t.scrollTop},lm="unmounted",Pu="exited",Du="entering",Ef="entered",CS="exiting",nl=(function(e){UA(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,d;return a.appearStatus=null,r.in?l?(d=Pu,a.appearStatus=Du):d=Ef:r.unmountOnExit||r.mountOnEnter?d=lm:d=Pu,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===lm?{status:Pu}: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!==Du&&s!==Ef&&(a=Du):(s===Du||s===Ef)&&(a=CS)}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===Du){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Rc.findDOMNode(this);s&&PU(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pu&&this.setState({status:lm})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,d=this.props.nodeRef?[l]:[Rc.findDOMNode(this),l],f=d[0],c=d[1],m=this.getTimeouts(),y=l?m.appear:m.enter;if(!o&&!s||VO.disabled){this.safeSetState({status:Ef},function(){a.props.onEntered(f)});return}this.props.onEnter(f,c),this.safeSetState({status:Du},function(){a.props.onEntering(f,c),a.onTransitionEnd(y,function(){a.safeSetState({status:Ef},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:Rc.findDOMNode(this);if(!a||VO.disabled){this.safeSetState({status:Pu},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:CS},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Pu},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:Rc.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=d[0],c=d[1];this.props.addEndListener(f,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lm)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=BA(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pn.createElement(jv.Provider,{value:null},typeof s=="function"?s(o,l):pn.cloneElement(pn.Children.only(s),l))},t})(pn.Component);nl.contextType=jv;nl.propTypes={};function pf(){}nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pf,onEntering:pf,onEntered:pf,onExit:pf,onExiting:pf,onExited:pf};nl.UNMOUNTED=lm;nl.EXITED=Pu;nl.ENTERING=Du;nl.ENTERED=Ef;nl.EXITING=CS;function DU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(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 AU(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 d in t){if(r[d])for(s=0;s<r[d].length;s++){var f=r[d][s];l[r[d][s]]=n(f)}l[d]=n(d)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Fu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function jU(e,t){return mC(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Fu(n,"appear",e),enter:Fu(n,"enter",e),exit:Fu(n,"exit",e)})})}function NU(e,t,n){var r=mC(e.children),o=AU(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,d=a in r,f=t[a],c=C.isValidElement(f)&&!f.props.in;d&&(!l||c)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Fu(s,"exit",e),enter:Fu(s,"enter",e)}):!d&&l&&!c?o[a]=C.cloneElement(s,{in:!1}):d&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Fu(s,"exit",e),enter:Fu(s,"enter",e)}))}}),o}var IU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},LU={component:"div",childFactory:function(t){return t}},gC=(function(e){UA(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(DU(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,d=a.firstRender;return{children:d?jU(o,l):NU(o,s,l),firstRender:!1}},n.handleExited=function(o,a){var s=mC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var d=Rv({},l.children);return delete d[o.key],{children:d}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=BA(o,["component","childFactory"]),d=this.state.contextValue,f=IU(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?pn.createElement(jv.Provider,{value:d},f):pn.createElement(jv.Provider,{value:d},pn.createElement(a,l,f))},t})(pn.Component);gC.propTypes={};gC.defaultProps=LU;const HO={};function _A(e,t){const n=C.useRef(HO);return n.current===HO&&(n.current=e(t)),n}const zU=[];function FU(e){C.useEffect(e,zU)}class Pb{static create(){return new Pb}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 Bu(){const e=_A(Pb.create).current;return FU(e.disposeEffect),e}const VA=e=>e.scrollTop;function Nv(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 BU(e){return an("MuiPaper",e)}ln("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 UU=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return sn(a,BU,o)},_U=ot("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}`]]}})(Jt(({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)"}}]}))),ja=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiPaper"}),o=Wc(),{className:a,component:s="div",elevation:l=1,square:d=!1,variant:f="elevation",...c}=r,m={...r,component:s,elevation:l,square:d,variant:f},y=UU(m);return h.jsx(_U,{as:s,ownerState:m,className:Pt(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(${fs("#fff",bS(l))}, ${fs("#fff",bS(l))})`}},...c.style}})});function jc(e){return typeof e=="string"}function HA(e,t,n){return e===void 0||jc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function WA(e,t,n){return typeof e=="function"?e(t,n):e}function Wu(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 WO(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 qA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=Pt(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=Wu({...o,...r}),l=WO(r),d=WO(o),f=t(s),c=Pt(f?.className,n?.className,a,o?.className,r?.className),m={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...d,...l};return c.length>0&&(y.className=c),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function Dn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...d}=t,{component:f,slots:c={[e]:void 0},slotProps:m={[e]:void 0},...y}=a,v=c[e]||r,b=WA(m[e],o),{props:{component:x,...w},internalRef:S}=qA({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),T=po(S,b?.ref,t.ref),M=e==="root"?x||f:x,R=HA(v,{...e==="root"&&!f&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...w,...M&&!l&&{as:M},...M&&l&&{component:M},ref:T},o);return[v,R]}function Fc(e){try{return e.matches(":focus-visible")}catch{}return!1}class Iv{static create(){return new Iv}static use(){const t=_A(Iv.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=HU(),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 VU(){return Iv.use()}function HU(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function WU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:d,timeout:f}=e,[c,m]=C.useState(!1),y=Pt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=Pt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&m(!0),C.useEffect(()=>{if(!l&&d!=null){const x=setTimeout(d,f);return()=>{clearTimeout(x)}}},[d,l,f]),h.jsx("span",{className:y,style:v,children:h.jsx("span",{className:b})})}const Oi=ln("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),kS=550,qU=80,YU=ui`
112
+ 0% {
113
+ transform: scale(0);
114
+ opacity: 0.1;
115
+ }
116
+
117
+ 100% {
118
+ transform: scale(1);
119
+ opacity: 0.3;
120
+ }
121
+ `,KU=ui`
122
+ 0% {
123
+ opacity: 1;
124
+ }
125
+
126
+ 100% {
127
+ opacity: 0;
128
+ }
129
+ `,GU=ui`
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
+ `,QU=ot("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),XU=ot(WU,{name:"MuiTouchRipple",slot:"Ripple"})`
142
+ opacity: 0;
143
+ position: absolute;
144
+
145
+ &.${Oi.rippleVisible} {
146
+ opacity: 0.3;
147
+ transform: scale(1);
148
+ animation-name: ${YU};
149
+ animation-duration: ${kS}ms;
150
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
151
+ }
152
+
153
+ &.${Oi.ripplePulsate} {
154
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
155
+ }
156
+
157
+ & .${Oi.child} {
158
+ opacity: 1;
159
+ display: block;
160
+ width: 100%;
161
+ height: 100%;
162
+ border-radius: 50%;
163
+ background-color: currentColor;
164
+ }
165
+
166
+ & .${Oi.childLeaving} {
167
+ opacity: 0;
168
+ animation-name: ${KU};
169
+ animation-duration: ${kS}ms;
170
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
+ }
172
+
173
+ & .${Oi.childPulsate} {
174
+ position: absolute;
175
+ /* @noflip */
176
+ left: 0px;
177
+ top: 0;
178
+ animation-name: ${GU};
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
+ `,ZU=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[d,f]=C.useState([]),c=C.useRef(0),m=C.useRef(null);C.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const y=C.useRef(!1),v=Bu(),b=C.useRef(null),x=C.useRef(null),w=C.useCallback(R=>{const{pulsate:$,rippleX:P,rippleY:N,rippleSize:V,cb:z}=R;f(W=>[...W,h.jsx(XU,{classes:{ripple:Pt(a.ripple,Oi.ripple),rippleVisible:Pt(a.rippleVisible,Oi.rippleVisible),ripplePulsate:Pt(a.ripplePulsate,Oi.ripplePulsate),child:Pt(a.child,Oi.child),childLeaving:Pt(a.childLeaving,Oi.childLeaving),childPulsate:Pt(a.childPulsate,Oi.childPulsate)},timeout:kS,pulsate:$,rippleX:P,rippleY:N,rippleSize:V},c.current)]),c.current+=1,m.current=z},[a]),S=C.useCallback((R={},$={},P=()=>{})=>{const{pulsate:N=!1,center:V=o||$.pulsate,fakeElement:z=!1}=$;if(R?.type==="mousedown"&&y.current){y.current=!1;return}R?.type==="touchstart"&&(y.current=!0);const W=z?null:x.current,H=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,F;if(V||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)k=Math.round(H.width/2),I=Math.round(H.height/2);else{const{clientX:_,clientY:j}=R.touches&&R.touches.length>0?R.touches[0]:R;k=Math.round(_-H.left),I=Math.round(j-H.top)}if(V)F=Math.sqrt((2*H.width**2+H.height**2)/3),F%2===0&&(F+=1);else{const _=Math.max(Math.abs((W?W.clientWidth:0)-k),k)*2+2,j=Math.max(Math.abs((W?W.clientHeight:0)-I),I)*2+2;F=Math.sqrt(_**2+j**2)}R?.touches?b.current===null&&(b.current=()=>{w({pulsate:N,rippleX:k,rippleY:I,rippleSize:F,cb:P})},v.start(qU,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:N,rippleX:k,rippleY:I,rippleSize:F,cb:P})},[o,w,v]),T=C.useCallback(()=>{S({},{pulsate:!0})},[S]),M=C.useCallback((R,$)=>{if(v.clear(),R?.type==="touchend"&&b.current){b.current(),b.current=null,v.start(0,()=>{M(R,$)});return}b.current=null,f(P=>P.length>0?P.slice(1):P),m.current=$},[v]);return C.useImperativeHandle(n,()=>({pulsate:T,start:S,stop:M}),[T,S,M]),h.jsx(QU,{className:Pt(Oi.root,a.root,s),ref:x,...l,children:h.jsx(gC,{component:null,exit:!0,children:d})})});function JU(e){return an("MuiButtonBase",e)}const e_=ln("MuiButtonBase",["root","disabled","focusVisible"]),t_=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=sn({root:["root",t&&"disabled",n&&"focusVisible"]},JU,o);return n&&r&&(s.root+=` ${r}`),s},n_=ot("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"},[`&.${e_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xu=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:d="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:T,onFocus:M,onFocusVisible:R,onKeyDown:$,onKeyUp:P,onMouseDown:N,onMouseLeave:V,onMouseUp:z,onTouchEnd:W,onTouchMove:H,onTouchStart:k,tabIndex:I=0,TouchRippleProps:F,touchRippleRef:_,type:j,...X}=r,Q=C.useRef(null),te=VU(),Z=po(te.ref,_),[G,ne]=C.useState(!1);f&&G&&ne(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),Q.current.focus()}}),[]);const ce=te.shouldMount&&!c&&!f;C.useEffect(()=>{G&&y&&!c&&te.pulsate()},[c,y,G,te]);const pe=Ml(te,"start",N,m),oe=Ml(te,"stop",S,m),ae=Ml(te,"stop",T,m),le=Ml(te,"stop",z,m),ge=Ml(te,"stop",pt=>{G&&pt.preventDefault(),V&&V(pt)},m),ye=Ml(te,"start",k,m),we=Ml(te,"stop",W,m),Ce=Ml(te,"stop",H,m),$e=Ml(te,"stop",pt=>{Fc(pt.target)||ne(!1),x&&x(pt)},!1),de=Ro(pt=>{Q.current||(Q.current=pt.currentTarget),Fc(pt.target)&&(ne(!0),R&&R(pt)),M&&M(pt)}),ke=()=>{const pt=Q.current;return d&&d!=="button"&&!(pt.tagName==="A"&&pt.href)},et=Ro(pt=>{y&&!pt.repeat&&G&&pt.key===" "&&te.stop(pt,()=>{te.start(pt)}),pt.target===pt.currentTarget&&ke()&&pt.key===" "&&pt.preventDefault(),$&&$(pt),pt.target===pt.currentTarget&&ke()&&pt.key==="Enter"&&!f&&(pt.preventDefault(),w&&w(pt))}),ze=Ro(pt=>{y&&pt.key===" "&&G&&!pt.defaultPrevented&&te.stop(pt,()=>{te.pulsate(pt)}),P&&P(pt),w&&pt.target===pt.currentTarget&&ke()&&pt.key===" "&&!pt.defaultPrevented&&w(pt)});let Ae=d;Ae==="button"&&(X.href||X.to)&&(Ae=b);const se={};Ae==="button"?(se.type=j===void 0?"button":j,se.disabled=f):(!X.href&&!X.to&&(se.role="button"),f&&(se["aria-disabled"]=f));const bt=po(n,Q),Fe={...r,centerRipple:a,component:d,disabled:f,disableRipple:c,disableTouchRipple:m,focusRipple:y,tabIndex:I,focusVisible:G},it=t_(Fe);return h.jsxs(n_,{as:Ae,className:Pt(it.root,l),ownerState:Fe,onBlur:$e,onClick:w,onContextMenu:oe,onFocus:de,onKeyDown:et,onKeyUp:ze,onMouseDown:pe,onMouseLeave:ge,onMouseUp:le,onDragLeave:ae,onTouchEnd:we,onTouchMove:Ce,onTouchStart:ye,ref:bt,tabIndex:f?-1:I,type:j,...se,...X,children:[s,ce?h.jsx(ZU,{ref:Z,center:a,...F}):null]})});function Ml(e,t,n,r=!1){return Ro(o=>(n&&n(o),r||e[t](o),!0))}function r_(e){return typeof e.main=="string"}function o_(e,t=[]){if(!r_(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ir(e=[]){return([,t])=>t&&o_(t,e)}function a_(e){return an("MuiAlert",e)}const qO=ln("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 i_(e){return an("MuiCircularProgress",e)}ln("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bc=44,TS=ui`
185
+ 0% {
186
+ transform: rotate(0deg);
187
+ }
188
+
189
+ 100% {
190
+ transform: rotate(360deg);
191
+ }
192
+ `,MS=ui`
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
+ `,s_=typeof TS!="string"?Vc`
208
+ animation: ${TS} 1.4s linear infinite;
209
+ `:null,l_=typeof MS!="string"?Vc`
210
+ animation: ${MS} 1.4s ease-in-out infinite;
211
+ `:null,c_=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 sn(a,i_,t)},u_=ot("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${tt(n.color)}`]]}})(Jt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:s_||{animation:`${TS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ir()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),d_=ot("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),f_=ot("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${tt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Jt(({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:l_||{animation:`${MS} 1.4s ease-in-out infinite`}}]}))),sg=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:d,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=c_(v),x={},w={},S={};if(m==="determinate"){const T=2*Math.PI*((bc-f)/2);x.strokeDasharray=T.toFixed(3),S["aria-valuenow"]=Math.round(c),x.strokeDashoffset=`${((100-c)/100*T).toFixed(3)}px`,w.transform="rotate(-90deg)"}return h.jsx(u_,{className:Pt(b.root,o),style:{width:l,height:l,...w,...d},ownerState:v,ref:n,role:"progressbar",...S,...y,children:h.jsx(d_,{className:b.svg,ownerState:v,viewBox:`${bc/2} ${bc/2} ${bc} ${bc}`,children:h.jsx(f_,{className:b.circle,style:x,ownerState:v,cx:bc,cy:bc,r:(bc-f)/2,fill:"none",strokeWidth:f})})})});function p_(e){return an("MuiIconButton",e)}const YO=ln("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),h_=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 sn(l,p_,t)},m_=ot(Xu,{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)}`]]}})(Jt(({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}}]})),Jt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ir()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ir()).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)}}],[`&.${YO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${YO.loading}`]:{color:"transparent"}}))),g_=ot("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=cn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:d=!1,disableFocusRipple:f=!1,size:c="medium",id:m,loading:y=null,loadingIndicator:v,...b}=r,x=Hc(m),w=v??h.jsx(sg,{"aria-labelledby":x,color:"inherit",size:16}),S={...r,edge:o,color:l,disabled:d,disableFocusRipple:f,loading:y,loadingIndicator:w,size:c},T=h_(S);return h.jsxs(m_,{id:y?x:m,className:Pt(T.root,s),centerRipple:!0,focusRipple:!f,disabled:d||y,ref:n,...b,ownerState:S,children:[typeof y=="boolean"&&h.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:h.jsx(g_,{className:T.loadingIndicator,ownerState:S,children:y&&w})}),a]})}),y_=Na(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"})),v_=Na(h.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),b_=Na(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"})),x_=Na(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"})),YA=Na(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"})),S_=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 sn(a,a_,o)},w_=ot(ja,{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)}`]]}})(Jt(({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(Ir(["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),[`& .${qO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ir(["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}`,[`& .${qO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ir(["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)}}}))]}})),C_=ot("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),k_=ot("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),T_=ot("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),KO={success:h.jsx(y_,{fontSize:"inherit"}),warning:h.jsx(v_,{fontSize:"inherit"}),error:h.jsx(b_,{fontSize:"inherit"}),info:h.jsx(x_,{fontSize:"inherit"})},$c=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:l="Close",color:d,components:f={},componentsProps:c={},icon:m,iconMapping:y=KO,onClose:v,role:b="alert",severity:x="success",slotProps:w={},slots:S={},variant:T="standard",...M}=r,R={...r,color:d,severity:x,variant:T,colorSeverity:d||x},$=S_(R),P={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...S},slotProps:{...c,...w}},[N,V]=Dn("root",{ref:n,shouldForwardComponentProp:!0,className:Pt($.root,s),elementType:w_,externalForwardedProps:{...P,...M},ownerState:R,additionalProps:{role:b,elevation:0}}),[z,W]=Dn("icon",{className:$.icon,elementType:C_,externalForwardedProps:P,ownerState:R}),[H,k]=Dn("message",{className:$.message,elementType:k_,externalForwardedProps:P,ownerState:R}),[I,F]=Dn("action",{className:$.action,elementType:T_,externalForwardedProps:P,ownerState:R}),[_,j]=Dn("closeButton",{elementType:eo,externalForwardedProps:P,ownerState:R}),[X,Q]=Dn("closeIcon",{elementType:YA,externalForwardedProps:P,ownerState:R});return h.jsxs(N,{...V,children:[m!==!1?h.jsx(z,{...W,children:m||y[x]||KO[x]}):null,h.jsx(H,{...k,children:a}),o!=null?h.jsx(I,{...F,children:o}):null,o==null&&v?h.jsx(I,{...F,children:h.jsx(_,{size:"small","aria-label":l,title:l,color:"inherit",onClick:v,...j,children:h.jsx(X,{fontSize:"small",...Q})})}):null]})});function M_(e){return an("MuiTypography",e)}const GO=ln("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),E_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},O_=MU(),R_=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 sn(l,M_,s)},$_=ot("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]}})(Jt(({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(Ir()).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}}]}))),QO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Lt=C.forwardRef(function(t,n){const{color:r,...o}=cn({props:t,name:"MuiTypography"}),a=!E_[r],s=O_({...o,...a&&{color:r}}),{align:l="inherit",className:d,component:f,gutterBottom:c=!1,noWrap:m=!1,paragraph:y=!1,variant:v="body1",variantMapping:b=QO,...x}=s,w={...s,align:l,color:r,className:d,component:f,gutterBottom:c,noWrap:m,paragraph:y,variant:v,variantMapping:b},S=f||(y?"p":b[v]||QO[v])||"span",T=R_(w);return h.jsx($_,{as:S,ref:n,className:Pt(T.root,d),...x,ownerState:w,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...x.style}})}),P_=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function XO({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 ZO(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function D_(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:d,getOptionLabel:f})=>{let c=s?d.trim():d;n&&(c=c.toLowerCase()),t&&(c=ZO(c));const m=c?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=ZO(v)),o==="start"?v.startsWith(c):v.includes(c)}):l;return typeof r=="number"?m.slice(0,r):m}}const A_=D_(),JO=5,j_=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),N_=[];function e2(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function I_(e){const{unstable_isActiveElementInListbox:t=j_,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:d=!1,componentName:f="useAutocomplete",defaultValue:c=e.multiple?N_:null,disableClearable:m=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:b=!1,disableListWrap:x=!1,filterOptions:w=A_,filterSelectedOptions:S=!1,freeSolo:T=!1,getOptionDisabled:M,getOptionKey:R,getOptionLabel:$=ue=>ue.label??ue,groupBy:P,handleHomeEndKeys:N=!e.freeSolo,id:V,includeInputInList:z=!1,inputValue:W,isOptionEqualToValue:H=(ue,fe)=>ue===fe,multiple:k=!1,onChange:I,onClose:F,onHighlightChange:_,onInputChange:j,onOpen:X,open:Q,openOnFocus:te=!1,options:Z,readOnly:G=!1,renderValue:ne,selectOnFocus:ce=!e.freeSolo,value:pe}=e,oe=Hc(V);let ae=$;ae=ue=>{const fe=$(ue);return typeof fe!="string"?String(fe):fe};const le=C.useRef(!1),ge=C.useRef(!0),ye=C.useRef(null),we=C.useRef(null),[Ce,$e]=C.useState(null),[de,ke]=C.useState(-1),et=o?0:-1,ze=C.useRef(et),Ae=C.useRef(e2(c??pe,k,ae)).current,[se,bt]=Ac({controlled:pe,default:c,name:f}),[Fe,it]=Ac({controlled:W,default:Ae,name:f,state:"inputValue"}),[pt,Ft]=C.useState(!1),_t=C.useCallback((ue,fe,Ve)=>{if(!(k?se.length<fe.length:fe!==null)&&!l)return;const Ke=e2(fe,k,ae,ne);Fe!==Ke&&(it(Ke),j&&j(ue,Ke,Ve))},[ae,Fe,k,j,it,l,se,ne]),[at,Xe]=Ac({controlled:Q,default:!1,name:f,state:"open"}),[rt,Ne]=C.useState(!0),he=!k&&se!=null&&Fe===ae(se),We=at&&!G,Te=We?w(Z.filter(ue=>!(S&&(k?se:[se]).some(fe=>fe!==null&&H(ue,fe)))),{inputValue:he&&rt?"":Fe,getOptionLabel:ae}):[],kt=P_({filteredOptions:Te,value:se,inputValue:Fe});C.useEffect(()=>{const ue=se!==kt.value;pt&&!ue||T&&!ue||_t(null,se,"reset")},[se,_t,pt,kt.value,T]);const Mt=at&&Te.length>0&&!G,gt=Ro(ue=>{if(ue===-1)ye.current.focus();else{const fe=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${fe}="${ue}"]`).focus()}});C.useEffect(()=>{k&&de>se.length-1&&(ke(-1),gt(-1))},[se,k,de,gt]);function ct(ue,fe){if(!we.current||ue<0||ue>=Te.length)return-1;let Ve=ue;for(;;){const vt=we.current.querySelector(`[data-option-index="${Ve}"]`),Ke=b?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!Ke)return Ve;if(fe==="next"?Ve=(Ve+1)%Te.length:Ve=(Ve-1+Te.length)%Te.length,Ve===ue)return-1}}const $t=Ro(({event:ue,index:fe,reason:Ve})=>{if(ze.current=fe,fe===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${oe}-option-${fe}`),_&&["mouse","keyboard","touch"].includes(Ve)&&_(ue,fe===-1?null:Te[fe],Ve),!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(fe===-1){Ke.scrollTop=0;return}const Zt=we.current.querySelector(`[data-option-index="${fe}"]`);if(Zt&&(Zt.classList.add(`${n}-focused`),Ve==="keyboard"&&Zt.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&Ve!=="mouse"&&Ve!=="touch")){const nn=Zt,fn=Ke.clientHeight+Ke.scrollTop,me=nn.offsetTop+nn.offsetHeight;me>fn?Ke.scrollTop=me-Ke.clientHeight:nn.offsetTop-nn.offsetHeight*(P?1.3:0)<Ke.scrollTop&&(Ke.scrollTop=nn.offsetTop-nn.offsetHeight*(P?1.3:0))}}),Vt=Ro(({event:ue,diff:fe,direction:Ve="next",reason:vt})=>{if(!We)return;const Zt=ct((()=>{const nn=Te.length-1;if(fe==="reset")return et;if(fe==="start")return 0;if(fe==="end")return nn;const fn=ze.current+fe;return fn<0?fn===-1&&z?-1:x&&ze.current!==-1||Math.abs(fe)>1?0:nn:fn>nn?fn===nn+1&&z?-1:x||Math.abs(fe)>1?nn:0:fn})(),Ve);if($t({index:Zt,reason:vt,event:ue}),r&&fe!=="reset")if(Zt===-1)ye.current.value=Fe;else{const nn=ae(Te[Zt]);ye.current.value=nn,nn.toLowerCase().indexOf(Fe.toLowerCase())===0&&Fe.length>0&&ye.current.setSelectionRange(Fe.length,nn.length)}}),un=!XO({array1:kt.filteredOptions,array2:Te,parser:ae}),vn=()=>{const ue=(fe,Ve)=>{const vt=fe?ae(fe):"",Ke=Ve?ae(Ve):"";return vt===Ke};if(ze.current!==-1&&!XO({array1:kt.filteredOptions,array2:Te,parser:ae})&&kt.inputValue===Fe&&(k?se.length===kt.value.length&&kt.value.every((fe,Ve)=>ae(se[Ve])===ae(fe)):ue(kt.value,se))){const fe=kt.filteredOptions[ze.current];if(fe)return Te.findIndex(Ve=>ae(Ve)===ae(fe))}return-1},Bn=C.useCallback(()=>{if(!We)return;const ue=vn();if(ue!==-1){ze.current=ue;return}const fe=k?se[0]:se;if(Te.length===0||fe==null){Vt({diff:"reset"});return}if(we.current){if(fe!=null){const Ve=Te[ze.current];if(k&&Ve&&se.findIndex(Ke=>H(Ve,Ke))!==-1)return;const vt=Te.findIndex(Ke=>H(Ke,fe));vt===-1?Vt({diff:"reset"}):$t({index:vt});return}if(ze.current>=Te.length-1){$t({index:Te.length-1});return}$t({index:ze.current})}},[Te.length,k?!1:se,S,Vt,$t,We,Fe,k]),Wn=Ro(ue=>{SS(we,ue),ue&&Bn()});C.useEffect(()=>{un&&Bn()},[Bn,un]);const Qt=ue=>{at||(Xe(!0),Ne(!0),X&&X(ue))},In=(ue,fe)=>{at&&(Xe(!1),F&&F(ue,fe))},be=(ue,fe,Ve,vt)=>{if(k){if(se.length===fe.length&&se.every((Ke,Zt)=>Ke===fe[Zt]))return}else if(se===fe)return;I&&I(ue,fe,Ve,vt),bt(fe)},zn=C.useRef(!1),En=(ue,fe,Ve="selectOption",vt="options")=>{let Ke=Ve,Zt=fe;if(k){Zt=Array.isArray(se)?se.slice():[];const nn=Zt.findIndex(fn=>H(fe,fn));nn===-1?Zt.push(fe):vt!=="freeSolo"&&(Zt.splice(nn,1),Ke="removeOption")}_t(ue,Zt,Ke),be(ue,Zt,Ke,{option:fe}),!y&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&In(ue,Ke),(s===!0||s==="touch"&&zn.current||s==="mouse"&&!zn.current)&&ye.current.blur()};function Xt(ue,fe){if(ue===-1)return-1;let Ve=ue;for(;;){if(fe==="next"&&Ve===se.length||fe==="previous"&&Ve===-1)return-1;const vt=ne?"data-item-index":"data-tag-index",Ke=Ce.querySelector(`[${vt}="${Ve}"]`);if(!Ke||!Ke.hasAttribute("tabindex")||Ke.disabled||Ke.getAttribute("aria-disabled")==="true")Ve+=fe==="next"?1:-1;else return Ve}}const ie=(ue,fe)=>{if(!k)return;Fe===""&&In(ue,"toggleInput");let Ve=de;de===-1?Fe===""&&fe==="previous"&&(Ve=se.length-1):(Ve+=fe==="next"?1:-1,Ve<0&&(Ve=0),Ve===se.length&&(Ve=-1)),Ve=Xt(Ve,fe),ke(Ve),gt(Ve)},Pe=ue=>{le.current=!0,it(""),j&&j(ue,"","clear"),be(ue,k?[]:null,"clear")},Le=ue=>fe=>{if(ue.onKeyDown&&ue.onKeyDown(fe),!fe.defaultMuiPrevented&&(de!==-1&&!["ArrowLeft","ArrowRight"].includes(fe.key)&&(ke(-1),gt(-1)),fe.which!==229))switch(fe.key){case"Home":We&&N&&(fe.preventDefault(),Vt({diff:"start",direction:"next",reason:"keyboard",event:fe}));break;case"End":We&&N&&(fe.preventDefault(),Vt({diff:"end",direction:"previous",reason:"keyboard",event:fe}));break;case"PageUp":fe.preventDefault(),Vt({diff:-JO,direction:"previous",reason:"keyboard",event:fe}),Qt(fe);break;case"PageDown":fe.preventDefault(),Vt({diff:JO,direction:"next",reason:"keyboard",event:fe}),Qt(fe);break;case"ArrowDown":fe.preventDefault(),Vt({diff:1,direction:"next",reason:"keyboard",event:fe}),Qt(fe);break;case"ArrowUp":fe.preventDefault(),Vt({diff:-1,direction:"previous",reason:"keyboard",event:fe}),Qt(fe);break;case"ArrowLeft":!k&&ne?gt(0):ie(fe,"previous");break;case"ArrowRight":!k&&ne?gt(-1):ie(fe,"next");break;case"Enter":if(ze.current!==-1&&We){const Ve=Te[ze.current],vt=M?M(Ve):!1;if(fe.preventDefault(),vt)return;En(fe,Ve,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else T&&Fe!==""&&he===!1&&(k&&fe.preventDefault(),En(fe,Fe,"createOption","freeSolo"));break;case"Escape":We?(fe.preventDefault(),fe.stopPropagation(),In(fe,"escape")):d&&(Fe!==""||k&&se.length>0||ne)&&(fe.preventDefault(),fe.stopPropagation(),Pe(fe));break;case"Backspace":if(k&&!G&&Fe===""&&se.length>0){const Ve=de===-1?se.length-1:de,vt=se.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:se[Ve]})}!k&&ne&&!G&&(bt(null),gt(-1));break;case"Delete":if(k&&!G&&Fe===""&&se.length>0&&de!==-1){const Ve=de,vt=se.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:se[Ve]})}!k&&ne&&!G&&(bt(null),gt(-1));break}},qe=ue=>{Ft(!0),te&&!le.current&&Qt(ue)},ut=ue=>{if(t(we)){ye.current.focus();return}Ft(!1),ge.current=!0,le.current=!1,a&&ze.current!==-1&&We?En(ue,Te[ze.current],"blur"):a&&T&&Fe!==""?En(ue,Fe,"blur","freeSolo"):l&&_t(ue,se,"blur"),In(ue,"blur")},Nt=ue=>{const fe=ue.target.value;Fe!==fe&&(it(fe),Ne(!1),j&&j(ue,fe,"input")),fe===""?!m&&!k&&be(ue,null,"clear"):Qt(ue)},Bt=ue=>{const fe=Number(ue.currentTarget.getAttribute("data-option-index"));ze.current!==fe&&$t({event:ue,index:fe,reason:"mouse"})},Dt=ue=>{$t({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},mt=ue=>{const fe=Number(ue.currentTarget.getAttribute("data-option-index"));En(ue,Te[fe],"selectOption"),zn.current=!1},At=ue=>fe=>{const Ve=se.slice();Ve.splice(ue,1),be(fe,Ve,"removeOption",{option:se[ue]})},Et=ue=>{be(ue,null,"removeOption",{option:se})},wt=ue=>{at?In(ue,"toggleInput"):Qt(ue)},Ht=ue=>{ue.currentTarget.contains(ue.target)&&ue.target.getAttribute("id")!==oe&&ue.preventDefault()},On=ue=>{ue.currentTarget.contains(ue.target)&&(ye.current.focus(),ce&&ge.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),ge.current=!1)},qn=ue=>{!v&&(Fe===""||!at)&&wt(ue)};let bn=T&&Fe.length>0;bn=bn||(k?se.length>0:se!==null);let dn=Te;return P&&(dn=Te.reduce((ue,fe,Ve)=>{const vt=P(fe);return ue.length>0&&ue[ue.length-1].group===vt?ue[ue.length-1].options.push(fe):ue.push({key:Ve,index:Ve,group:vt,options:[fe]}),ue},[])),v&&pt&&ut(),{getRootProps:(ue={})=>({...ue,onKeyDown:Le(ue),onMouseDown:Ht,onClick:On}),getInputLabelProps:()=>({id:`${oe}-label`,htmlFor:oe}),getInputProps:()=>({id:oe,value:Fe,onBlur:ut,onFocus:qe,onChange:Nt,onMouseDown:qn,"aria-activedescendant":We?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Mt?`${oe}-listbox`:void 0,"aria-expanded":Mt,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getItemProps:({index:ue=0}={})=>({...k&&{key:ue},...ne?{"data-item-index":ue}:{"data-tag-index":ue},tabIndex:-1,...!G&&{onDelete:k?At(ue):Et}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getTagProps:({index:ue})=>({key:ue,"data-tag-index":ue,tabIndex:-1,...!G&&{onDelete:At(ue)}}),getListboxProps:()=>({role:"listbox",id:`${oe}-listbox`,"aria-labelledby":`${oe}-label`,ref:Wn,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:fe})=>{const Ve=(k?se:[se]).some(Ke=>Ke!=null&&H(fe,Ke)),vt=M?M(fe):!1;return{key:R?.(fe)??ae(fe),tabIndex:-1,role:"option",id:`${oe}-option-${ue}`,onMouseMove:Bt,onClick:mt,onTouchStart:Dt,"data-option-index":ue,"aria-disabled":vt,"aria-selected":Ve}},id:oe,inputValue:Fe,value:se,dirty:bn,expanded:We&&Ce,popupOpen:We,focused:pt||de!==-1,anchorEl:Ce,setAnchorEl:$e,focusedItem:de,focusedTag:de,groupedOptions:dn}}var Ma="top",Fi="bottom",Bi="right",Ea="left",yC="auto",lg=[Ma,Fi,Bi,Ea],Vf="start",Bm="end",L_="clippingParents",KA="viewport",Mh="popper",z_="reference",t2=lg.reduce(function(e,t){return e.concat([t+"-"+Vf,t+"-"+Bm])},[]),GA=[].concat(lg,[yC]).reduce(function(e,t){return e.concat([t,t+"-"+Vf,t+"-"+Bm])},[]),F_="beforeRead",B_="read",U_="afterRead",__="beforeMain",V_="main",H_="afterMain",W_="beforeWrite",q_="write",Y_="afterWrite",K_=[F_,B_,U_,__,V_,H_,W_,q_,Y_];function Xs(e){return e?(e.nodeName||"").toLowerCase():null}function li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zu(e){var t=li(e).Element;return e instanceof t||e instanceof Element}function Ni(e){var t=li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vC(e){if(typeof ShadowRoot>"u")return!1;var t=li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function G_(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];!Ni(a)||!Xs(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 Q_(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(d,f){return d[f]="",d},{});!Ni(o)||!Xs(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(d){o.removeAttribute(d)}))})}}const X_={name:"applyStyles",enabled:!0,phase:"write",fn:G_,effect:Q_,requires:["computeStyles"]};function Gs(e){return e.split("-")[0]}var qu=Math.max,Lv=Math.min,Hf=Math.round;function ES(){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 QA(){return!/^((?!chrome|android).)*safari/i.test(ES())}function Wf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ni(e)&&(o=e.offsetWidth>0&&Hf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Hf(r.height)/e.offsetHeight||1);var s=Zu(e)?li(e):window,l=s.visualViewport,d=!QA()&&n,f=(r.left+(d&&l?l.offsetLeft:0))/o,c=(r.top+(d&&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 bC(e){var t=Wf(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 XA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nl(e){return li(e).getComputedStyle(e)}function Z_(e){return["table","td","th"].indexOf(Xs(e))>=0}function qc(e){return((Zu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Db(e){return Xs(e)==="html"?e:e.assignedSlot||e.parentNode||(vC(e)?e.host:null)||qc(e)}function n2(e){return!Ni(e)||Nl(e).position==="fixed"?null:e.offsetParent}function J_(e){var t=/firefox/i.test(ES()),n=/Trident/i.test(ES());if(n&&Ni(e)){var r=Nl(e);if(r.position==="fixed")return null}var o=Db(e);for(vC(o)&&(o=o.host);Ni(o)&&["html","body"].indexOf(Xs(o))<0;){var a=Nl(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 cg(e){for(var t=li(e),n=n2(e);n&&Z_(n)&&Nl(n).position==="static";)n=n2(n);return n&&(Xs(n)==="html"||Xs(n)==="body"&&Nl(n).position==="static")?t:n||J_(e)||t}function xC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vm(e,t,n){return qu(e,Lv(t,n))}function eV(e,t,n){var r=vm(e,t,n);return r>n?n:r}function ZA(){return{top:0,right:0,bottom:0,left:0}}function JA(e){return Object.assign({},ZA(),e)}function ej(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,JA(typeof t!="number"?t:ej(t,lg))};function nV(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Gs(n.placement),d=xC(l),f=[Ea,Bi].indexOf(l)>=0,c=f?"height":"width";if(!(!a||!s)){var m=tV(o.padding,n),y=bC(a),v=d==="y"?Ma:Ea,b=d==="y"?Fi:Bi,x=n.rects.reference[c]+n.rects.reference[d]-s[d]-n.rects.popper[c],w=s[d]-n.rects.reference[d],S=cg(a),T=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,M=x/2-w/2,R=m[v],$=T-y[c]-m[b],P=T/2-y[c]/2+M,N=vm(R,P,$),V=d;n.modifiersData[r]=(t={},t[V]=N,t.centerOffset=N-P,t)}}function rV(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)||XA(t.elements.popper,o)&&(t.elements.arrow=o))}const oV={name:"arrow",enabled:!0,phase:"main",fn:nV,effect:rV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qf(e){return e.split("-")[1]}var aV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Hf(n*o)/o||0,y:Hf(r*o)/o||0}}function r2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,d=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"),T=s.hasOwnProperty("y"),M=Ea,R=Ma,$=window;if(f){var P=cg(n),N="clientHeight",V="clientWidth";if(P===li(n)&&(P=qc(n),Nl(P).position!=="static"&&l==="absolute"&&(N="scrollHeight",V="scrollWidth")),P=P,o===Ma||(o===Ea||o===Bi)&&a===Bm){R=Fi;var z=m&&P===$&&$.visualViewport?$.visualViewport.height:P[N];x-=z-r.height,x*=d?1:-1}if(o===Ea||(o===Ma||o===Fi)&&a===Bm){M=Bi;var W=m&&P===$&&$.visualViewport?$.visualViewport.width:P[V];v-=W-r.width,v*=d?1:-1}}var H=Object.assign({position:l},f&&aV),k=c===!0?iV({x:v,y:x},li(n)):{x:v,y:x};if(v=k.x,x=k.y,d){var I;return Object.assign({},H,(I={},I[R]=T?"0":"",I[M]=S?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",I))}return Object.assign({},H,(t={},t[R]=T?x+"px":"",t[M]=S?v+"px":"",t.transform="",t))}function sV(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,d=l===void 0?!0:l,f={placement:Gs(t.placement),variation:qf(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,r2(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,r2(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const lV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sV,data:{}};var Py={passive:!0};function cV(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,d=li(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(c){c.addEventListener("scroll",n.update,Py)}),l&&d.addEventListener("resize",n.update,Py),function(){a&&f.forEach(function(c){c.removeEventListener("scroll",n.update,Py)}),l&&d.removeEventListener("resize",n.update,Py)}}const uV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cV,data:{}};var dV={left:"right",right:"left",bottom:"top",top:"bottom"};function mv(e){return e.replace(/left|right|bottom|top/g,function(t){return dV[t]})}var fV={start:"end",end:"start"};function o2(e){return e.replace(/start|end/g,function(t){return fV[t]})}function SC(e){var t=li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wC(e){return Wf(qc(e)).left+SC(e).scrollLeft}function pV(e,t){var n=li(e),r=qc(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;var f=QA();(f||!f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l+wC(e),y:d}}function hV(e){var t,n=qc(e),r=SC(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=qu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+wC(e),d=-r.scrollTop;return Nl(o||n).direction==="rtl"&&(l+=qu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:d}}function CC(e){var t=Nl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tj(e){return["html","body","#document"].indexOf(Xs(e))>=0?e.ownerDocument.body:Ni(e)&&CC(e)?e:tj(Db(e))}function bm(e,t){var n;t===void 0&&(t=[]);var r=tj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=li(r),s=o?[a].concat(a.visualViewport||[],CC(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(bm(Db(s)))}function OS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mV(e,t){var n=Wf(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 a2(e,t,n){return t===KA?OS(pV(e,n)):Zu(t)?mV(t,n):OS(hV(qc(e)))}function gV(e){var t=bm(Db(e)),n=["absolute","fixed"].indexOf(Nl(e).position)>=0,r=n&&Ni(e)?cg(e):e;return Zu(r)?t.filter(function(o){return Zu(o)&&XA(o,r)&&Xs(o)!=="body"}):[]}function yV(e,t,n,r){var o=t==="clippingParents"?gV(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(d,f){var c=a2(e,f,r);return d.top=qu(c.top,d.top),d.right=Lv(c.right,d.right),d.bottom=Lv(c.bottom,d.bottom),d.left=qu(c.left,d.left),d},a2(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 nj(e){var t=e.reference,n=e.element,r=e.placement,o=r?Gs(r):null,a=r?qf(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(o){case Ma:d={x:s,y:t.y-n.height};break;case Fi:d={x:s,y:t.y+t.height};break;case Bi:d={x:t.x+t.width,y:l};break;case Ea:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var f=o?xC(o):null;if(f!=null){var c=f==="y"?"height":"width";switch(a){case Vf:d[f]=d[f]-(t[c]/2-n[c]/2);break;case Bm:d[f]=d[f]+(t[c]/2-n[c]/2);break}}return d}function Um(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,d=l===void 0?L_:l,f=n.rootBoundary,c=f===void 0?KA:f,m=n.elementContext,y=m===void 0?Mh:m,v=n.altBoundary,b=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,S=JA(typeof w!="number"?w:ej(w,lg)),T=y===Mh?z_:Mh,M=e.rects.popper,R=e.elements[b?T:y],$=yV(Zu(R)?R:R.contextElement||qc(e.elements.popper),d,c,s),P=Wf(e.elements.reference),N=nj({reference:P,element:M,placement:o}),V=OS(Object.assign({},M,N)),z=y===Mh?V:P,W={top:$.top-z.top+S.top,bottom:z.bottom-$.bottom+S.bottom,left:$.left-z.left+S.left,right:z.right-$.right+S.right},H=e.modifiersData.offset;if(y===Mh&&H){var k=H[o];Object.keys(W).forEach(function(I){var F=[Bi,Fi].indexOf(I)>=0?1:-1,_=[Ma,Fi].indexOf(I)>=0?"y":"x";W[I]+=k[_]*F})}return W}function vV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?GA:d,c=qf(r),m=c?l?t2:t2.filter(function(b){return qf(b)===c}):lg,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]=Um(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[Gs(x)],b},{});return Object.keys(v).sort(function(b,x){return v[b]-v[x]})}function bV(e){if(Gs(e)===yC)return[];var t=mv(e);return[o2(e),t,o2(t)]}function xV(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,d=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=Gs(w),T=S===w,M=d||(T||!b?[mv(w)]:bV(w)),R=[w].concat(M).reduce(function(pe,oe){return pe.concat(Gs(oe)===yC?vV(t,{placement:oe,boundary:c,rootBoundary:m,padding:f,flipVariations:b,allowedAutoPlacements:x}):oe)},[]),$=t.rects.reference,P=t.rects.popper,N=new Map,V=!0,z=R[0],W=0;W<R.length;W++){var H=R[W],k=Gs(H),I=qf(H)===Vf,F=[Ma,Fi].indexOf(k)>=0,_=F?"width":"height",j=Um(t,{placement:H,boundary:c,rootBoundary:m,altBoundary:y,padding:f}),X=F?I?Bi:Ea:I?Fi:Ma;$[_]>P[_]&&(X=mv(X));var Q=mv(X),te=[];if(a&&te.push(j[k]<=0),l&&te.push(j[X]<=0,j[Q]<=0),te.every(function(pe){return pe})){z=H,V=!1;break}N.set(H,te)}if(V)for(var Z=b?3:1,G=function(oe){var ae=R.find(function(le){var ge=N.get(le);if(ge)return ge.slice(0,oe).every(function(ye){return ye})});if(ae)return z=ae,"break"},ne=Z;ne>0;ne--){var ce=G(ne);if(ce==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const SV={name:"flip",enabled:!0,phase:"main",fn:xV,requiresIfExists:["offset"],data:{_skip:!1}};function i2(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 s2(e){return[Ma,Bi,Fi,Ea].some(function(t){return e[t]>=0})}function wV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Um(t,{elementContext:"reference"}),l=Um(t,{altBoundary:!0}),d=i2(s,r),f=i2(l,o,a),c=s2(d),m=s2(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}const CV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wV};function kV(e,t,n){var r=Gs(e),o=[Ea,Ma].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,[Ea,Bi].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function TV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=GA.reduce(function(c,m){return c[m]=kV(m,t.rects,a),c},{}),l=s[t.placement],d=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const MV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TV};function EV(e){var t=e.state,n=e.name;t.modifiersData[n]=nj({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const OV={name:"popperOffsets",enabled:!0,phase:"read",fn:EV,data:{}};function RV(e){return e==="x"?"y":"x"}function $V(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,d=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=Um(t,{boundary:d,rootBoundary:f,padding:m,altBoundary:c}),S=Gs(t.placement),T=qf(t.placement),M=!T,R=xC(S),$=RV(R),P=t.modifiersData.popperOffsets,N=t.rects.reference,V=t.rects.popper,z=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(P){if(a){var I,F=R==="y"?Ma:Ea,_=R==="y"?Fi:Bi,j=R==="y"?"height":"width",X=P[R],Q=X+w[F],te=X-w[_],Z=v?-V[j]/2:0,G=T===Vf?N[j]:V[j],ne=T===Vf?-V[j]:-N[j],ce=t.elements.arrow,pe=v&&ce?bC(ce):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ZA(),ae=oe[F],le=oe[_],ge=vm(0,N[j],pe[j]),ye=M?N[j]/2-Z-ge-ae-W.mainAxis:G-ge-ae-W.mainAxis,we=M?-N[j]/2+Z+ge+le+W.mainAxis:ne+ge+le+W.mainAxis,Ce=t.elements.arrow&&cg(t.elements.arrow),$e=Ce?R==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,de=(I=H?.[R])!=null?I:0,ke=X+ye-de-$e,et=X+we-de,ze=vm(v?Lv(Q,ke):Q,X,v?qu(te,et):te);P[R]=ze,k[R]=ze-X}if(l){var Ae,se=R==="x"?Ma:Ea,bt=R==="x"?Fi:Bi,Fe=P[$],it=$==="y"?"height":"width",pt=Fe+w[se],Ft=Fe-w[bt],_t=[Ma,Ea].indexOf(S)!==-1,at=(Ae=H?.[$])!=null?Ae:0,Xe=_t?pt:Fe-N[it]-V[it]-at+W.altAxis,rt=_t?Fe+N[it]+V[it]-at-W.altAxis:Ft,Ne=v&&_t?eV(Xe,Fe,rt):vm(v?Xe:pt,Fe,v?rt:Ft);P[$]=Ne,k[$]=Ne-Fe}t.modifiersData[r]=k}}const PV={name:"preventOverflow",enabled:!0,phase:"main",fn:$V,requiresIfExists:["offset"]};function DV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function AV(e){return e===li(e)||!Ni(e)?SC(e):DV(e)}function jV(e){var t=e.getBoundingClientRect(),n=Hf(t.width)/e.offsetWidth||1,r=Hf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function NV(e,t,n){n===void 0&&(n=!1);var r=Ni(t),o=Ni(t)&&jV(t),a=qc(t),s=Wf(e,o,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((Xs(t)!=="body"||CC(a))&&(l=AV(t)),Ni(t)?(d=Wf(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=wC(a))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function IV(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 d=t.get(l);d&&o(d)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function LV(e){var t=IV(e);return K_.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function zV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function FV(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 l2={placement:"bottom",modifiers:[],strategy:"absolute"};function c2(){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 BV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?l2:o;return function(l,d,f){f===void 0&&(f=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},l2,a),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},m=[],y=!1,v={state:c,setOptions:function(S){var T=typeof S=="function"?S(c.options):S;x(),c.options=Object.assign({},a,c.options,T),c.scrollParents={reference:Zu(l)?bm(l):l.contextElement?bm(l.contextElement):[],popper:bm(d)};var M=LV(FV([].concat(r,c.options.modifiers)));return c.orderedModifiers=M.filter(function(R){return R.enabled}),b(),v.update()},forceUpdate:function(){if(!y){var S=c.elements,T=S.reference,M=S.popper;if(c2(T,M)){c.rects={reference:NV(T,cg(M),c.options.strategy==="fixed"),popper:bC(M)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(W){return c.modifiersData[W.name]=Object.assign({},W.data)});for(var R=0;R<c.orderedModifiers.length;R++){if(c.reset===!0){c.reset=!1,R=-1;continue}var $=c.orderedModifiers[R],P=$.fn,N=$.options,V=N===void 0?{}:N,z=$.name;typeof P=="function"&&(c=P({state:c,options:V,name:z,instance:v})||c)}}}},update:zV(function(){return new Promise(function(w){v.forceUpdate(),w(c)})}),destroy:function(){x(),y=!0}};if(!c2(l,d))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,T=w.options,M=T===void 0?{}:T,R=w.effect;if(typeof R=="function"){var $=R({state:c,name:S,instance:v,options:M}),P=function(){};m.push($||P)}})}function x(){m.forEach(function(w){return w()}),m=[]}return v}}var UV=[uV,OV,lV,X_,MV,SV,PV,oV,CV],_V=BV({defaultModifiers:UV});function zs(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:WA(n,r),{props:l,internalRef:d}=qA({...a,externalSlotProps:s}),f=po(d,s?.ref,e.additionalProps?.ref);return HA(t,{...l,ref:f},r)}function ld(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function VV(e){return typeof e=="function"?e():e}const rj=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=C.useState(null),d=po(C.isValidElement(r)?ld(r):null,n);if(Aa(()=>{a||l(VV(o)||document.body)},[o,a]),Aa(()=>{if(s&&!a)return SS(n,s),()=>{SS(n,null)}},[n,s,a]),a){if(C.isValidElement(r)){const f={ref:d};return C.cloneElement(r,f)}return r}return s&&pb.createPortal(r,s)});function HV(e){return an("MuiPopper",e)}ln("MuiPopper",["root"]);function WV(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 RS(e){return typeof e=="function"?e():e}function qV(e){return e.nodeType!==void 0}const YV=e=>{const{classes:t}=e;return sn({root:["root"]},HV,t)},KV={},GV=C.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:d,placement:f,popperOptions:c,popperRef:m,slotProps:y={},slots:v={},TransitionProps:b,ownerState:x,...w}=t,S=C.useRef(null),T=po(S,n),M=C.useRef(null),R=po(M,m),$=C.useRef(R);Aa(()=>{$.current=R},[R]),C.useImperativeHandle(m,()=>M.current,[]);const P=WV(f,a),[N,V]=C.useState(P),[z,W]=C.useState(RS(r));C.useEffect(()=>{M.current&&M.current.forceUpdate()}),C.useEffect(()=>{r&&W(RS(r))},[r]),Aa(()=>{if(!z||!d)return;const _=Q=>{V(Q.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{_(Q)}}];l!=null&&(j=j.concat(l)),c&&c.modifiers!=null&&(j=j.concat(c.modifiers));const X=_V(z,S.current,{placement:P,...c,modifiers:j});return $.current(X),()=>{X.destroy(),$.current(null)}},[z,s,l,d,c,P]);const H={placement:N};b!==null&&(H.TransitionProps=b);const k=YV(t),I=v.root??"div",F=zs({elementType:I,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:k.root});return h.jsx(I,{...F,children:typeof o=="function"?o(H):o})}),QV=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:f,open:c,placement:m="bottom",popperOptions:y=KV,popperRef:v,style:b,transition:x=!1,slotProps:w={},slots:S={},...T}=t,[M,R]=C.useState(!0),$=()=>{R(!1)},P=()=>{R(!0)};if(!d&&!c&&(!x||M))return null;let N;if(a)N=a;else if(r){const W=RS(r);N=W&&qV(W)?To(W).body:To(null).body}const V=!c&&d&&(!x||M)?"none":void 0,z=x?{in:c,onEnter:$,onExited:P}:void 0;return h.jsx(rj,{disablePortal:l,container:N,children:h.jsx(GV,{anchorEl:r,direction:s,disablePortal:l,modifiers:f,ref:n,open:x?!M:c,placement:m,popperOptions:y,popperRef:v,slotProps:w,slots:S,...T,style:{position:"fixed",top:0,left:0,display:V,...b},TransitionProps:z,children:o})})}),XV=ot(QV,{name:"MuiPopper",slot:"Root"})({}),Ab=C.forwardRef(function(t,n){const r=ig(),o=cn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:d,container:f,disablePortal:c,keepMounted:m,modifiers:y,open:v,placement:b,popperOptions:x,popperRef:w,transition:S,slots:T,slotProps:M,...R}=o,$=T?.root??l?.Root,P={anchorEl:a,container:f,disablePortal:c,keepMounted:m,modifiers:y,open:v,placement:b,popperOptions:x,popperRef:w,transition:S,...R};return h.jsx(XV,{as:s,direction:r?"rtl":"ltr",slots:{root:$},slotProps:M??d,...P,ref:n})});function ZV(e){return an("MuiListSubheader",e)}ln("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const JV=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 sn(s,ZV,t)},eH=ot("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]}})(Jt(({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}}]}))),zv=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:d=!1,inset:f=!1,...c}=r,m={...r,color:a,component:s,disableGutters:l,disableSticky:d,inset:f},y=JV(m);return h.jsx(eH,{as:s,className:Pt(y.root,o),ref:n,ownerState:m,...c})});zv&&(zv.muiSkipListHighlight=!0);const tH=Na(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 nH(e){return an("MuiChip",e)}const or=ln("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"]),rH=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:d}=e,f={root:["root",d,n&&"disabled",`size${tt(r)}`,`color${tt(o)}`,l&&"clickable",l&&`clickableColor${tt(o)}`,s&&"deletable",s&&`deletableColor${tt(o)}`,`${d}${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(d)}Color${tt(o)}`]};return sn(f,nH,t)},oH=ot("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:d}=n;return[{[`& .${or.avatar}`]:t.avatar},{[`& .${or.avatar}`]:t[`avatar${tt(l)}`]},{[`& .${or.avatar}`]:t[`avatarColor${tt(r)}`]},{[`& .${or.icon}`]:t.icon},{[`& .${or.icon}`]:t[`icon${tt(l)}`]},{[`& .${or.icon}`]:t[`iconColor${tt(o)}`]},{[`& .${or.deleteIcon}`]:t.deleteIcon},{[`& .${or.deleteIcon}`]:t[`deleteIcon${tt(l)}`]},{[`& .${or.deleteIcon}`]:t[`deleteIconColor${tt(r)}`]},{[`& .${or.deleteIcon}`]:t[`deleteIcon${tt(d)}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[d],t[`${d}${tt(r)}`]]}})(Jt(({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",[`&.${or.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${or.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${or.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${or.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${or.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${or.icon}`]:{marginLeft:5,marginRight:-6},[`& .${or.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,[`& .${or.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${or.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ir(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${or.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:{[`& .${or.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${or.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${or.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(Ir(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${or.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}`)},[`&.${or.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(Ir(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${or.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]}`,[`&.${or.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${or.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${or.avatar}`]:{marginLeft:4},[`& .${or.avatarSmall}`]:{marginLeft:2},[`& .${or.icon}`]:{marginLeft:4},[`& .${or.iconSmall}`]:{marginLeft:2},[`& .${or.deleteIcon}`]:{marginRight:5},[`& .${or.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ir()).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)}`,[`&.${or.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${or.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${or.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),aH=ot("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 u2(e){return e.key==="Backspace"||e.key==="Delete"}const oj=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="default",component:d,deleteIcon:f,disabled:c=!1,icon:m,label:y,onClick:v,onDelete:b,onKeyDown:x,onKeyUp:w,size:S="medium",variant:T="filled",tabIndex:M,skipFocusWhenDisabled:R=!1,slots:$={},slotProps:P={},...N}=r,V=C.useRef(null),z=po(V,n),W=ae=>{ae.stopPropagation(),b&&b(ae)},H=ae=>{ae.currentTarget===ae.target&&u2(ae)&&ae.preventDefault(),x&&x(ae)},k=ae=>{ae.currentTarget===ae.target&&b&&u2(ae)&&b(ae),w&&w(ae)},I=s!==!1&&v?!0:s,F=I||b?Xu:d||"div",_={...r,component:F,disabled:c,size:S,color:l,iconColor:C.isValidElement(m)&&m.props.color||l,onDelete:!!b,clickable:I,variant:T},j=rH(_),X=F===Xu?{component:d||"div",focusVisibleClassName:j.focusVisible,...b&&{disableRipple:!0}}:{};let Q=null;b&&(Q=f&&C.isValidElement(f)?C.cloneElement(f,{className:Pt(f.props.className,j.deleteIcon),onClick:W}):h.jsx(tH,{className:j.deleteIcon,onClick:W}));let te=null;o&&C.isValidElement(o)&&(te=C.cloneElement(o,{className:Pt(j.avatar,o.props.className)}));let Z=null;m&&C.isValidElement(m)&&(Z=C.cloneElement(m,{className:Pt(j.icon,m.props.className)}));const G={slots:$,slotProps:P},[ne,ce]=Dn("root",{elementType:oH,externalForwardedProps:{...G,...N},ownerState:_,shouldForwardComponentProp:!0,ref:z,className:Pt(j.root,a),additionalProps:{disabled:I&&c?!0:void 0,tabIndex:R&&c?-1:M,...X},getSlotProps:ae=>({...ae,onClick:le=>{ae.onClick?.(le),v?.(le)},onKeyDown:le=>{ae.onKeyDown?.(le),H(le)},onKeyUp:le=>{ae.onKeyUp?.(le),k(le)}})}),[pe,oe]=Dn("label",{elementType:aH,externalForwardedProps:G,ownerState:_,className:j.label});return h.jsxs(ne,{as:F,...ce,children:[te||Z,h.jsx(pe,{...oe,children:y}),Q]})});function Dy(e){return parseInt(e,10)||0}const iH={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sH(e){for(const t in e)return!1;return!0}function d2(e){return sH(e)||e.outerHeightStyle===0&&!e.overflowing}const lH=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...d}=t,{current:f}=C.useRef(l!=null),c=C.useRef(null),m=po(n,c),y=C.useRef(null),v=C.useRef(null),b=C.useCallback(()=>{const M=c.current,R=v.current;if(!M||!R)return;const P=jl(M).getComputedStyle(M);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=P.width,R.value=M.value||t.placeholder||"x",R.value.slice(-1)===`
212
+ `&&(R.value+=" ");const N=P.boxSizing,V=Dy(P.paddingBottom)+Dy(P.paddingTop),z=Dy(P.borderBottomWidth)+Dy(P.borderTopWidth),W=R.scrollHeight;R.value="x";const H=R.scrollHeight;let k=W;a&&(k=Math.max(Number(a)*H,k)),o&&(k=Math.min(Number(o)*H,k)),k=Math.max(k,H);const I=k+(N==="border-box"?V+z:0),F=Math.abs(k-W)<=1;return{outerHeightStyle:I,overflowing:F}},[o,a,t.placeholder]),x=Ro(()=>{const M=c.current,R=b();if(!M||!R||d2(R))return!1;const $=R.outerHeightStyle;return y.current!=null&&y.current!==$}),w=C.useCallback(()=>{const M=c.current,R=b();if(!M||!R||d2(R))return;const $=R.outerHeightStyle;y.current!==$&&(y.current=$,M.style.height=`${$}px`),M.style.overflow=R.overflowing?"hidden":""},[b]),S=C.useRef(-1);Aa(()=>{const M=zA(w),R=c?.current;if(!R)return;const $=jl(R);$.addEventListener("resize",M);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{x()&&(P.unobserve(R),cancelAnimationFrame(S.current),w(),S.current=requestAnimationFrame(()=>{P.observe(R)}))}),P.observe(R)),()=>{M.clear(),cancelAnimationFrame(S.current),$.removeEventListener("resize",M),P&&P.disconnect()}},[b,w,x]),Aa(()=>{w()});const T=M=>{f||w();const R=M.target,$=R.value.length,P=R.value.endsWith(`
213
+ `),N=R.selectionStart===$;P&&N&&R.setSelectionRange($,$),r&&r(M)};return h.jsxs(C.Fragment,{children:[h.jsx("textarea",{value:l,onChange:T,ref:m,rows:a,style:s,...d}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...iH.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Yc({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 jb=C.createContext(void 0);function rl(){return C.useContext(jb)}function f2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fv(e,t=!1){return e&&(f2(e.value)&&e.value!==""||t&&f2(e.defaultValue)&&e.defaultValue!=="")}function cH(e){return e.startAdornment}function uH(e){return an("MuiInputBase",e)}const Ja=ln("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var p2;const Nb=(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]},Ib=(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]},dH=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:d,hiddenLabel:f,multiline:c,readOnly:m,size:y,startAdornment:v,type:b}=e,x={root:["root",`color${tt(n)}`,r&&"disabled",o&&"error",d&&"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 sn(x,uH,t)},Lb=ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nb})(Jt(({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",[`&.${Ja.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%"}}]}))),zb=ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ib})(Jt(({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] + .${Ja.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},[`&.${Ja.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"}}]}})),h2=hC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),kC=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:d,components:f={},componentsProps:c={},defaultValue:m,disabled:y,disableInjectingGlobalStyles:v,endAdornment:b,error:x,fullWidth:w=!1,id:S,inputComponent:T="input",inputProps:M={},inputRef:R,margin:$,maxRows:P,minRows:N,multiline:V=!1,name:z,onBlur:W,onChange:H,onClick:k,onFocus:I,onKeyDown:F,onKeyUp:_,placeholder:j,readOnly:X,renderSuffix:Q,rows:te,size:Z,slotProps:G={},slots:ne={},startAdornment:ce,type:pe="text",value:oe,...ae}=r,le=M.value!=null?M.value:oe,{current:ge}=C.useRef(le!=null),ye=C.useRef(),we=C.useCallback(Te=>{},[]),Ce=po(ye,R,M.ref,we),[$e,de]=C.useState(!1),ke=rl(),et=Yc({props:r,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});et.focused=ke?ke.focused:$e,C.useEffect(()=>{!ke&&y&&$e&&(de(!1),W&&W())},[ke,y,$e,W]);const ze=ke&&ke.onFilled,Ae=ke&&ke.onEmpty,se=C.useCallback(Te=>{Fv(Te)?ze&&ze():Ae&&Ae()},[ze,Ae]);Aa(()=>{ge&&se({value:le})},[le,se,ge]);const bt=Te=>{I&&I(Te),M.onFocus&&M.onFocus(Te),ke&&ke.onFocus?ke.onFocus(Te):de(!0)},Fe=Te=>{W&&W(Te),M.onBlur&&M.onBlur(Te),ke&&ke.onBlur?ke.onBlur(Te):de(!1)},it=(Te,...kt)=>{if(!ge){const Mt=Te.target||ye.current;if(Mt==null)throw new Error(Al(1));se({value:Mt.value})}M.onChange&&M.onChange(Te,...kt),H&&H(Te,...kt)};C.useEffect(()=>{se(ye.current)},[]);const pt=Te=>{ye.current&&Te.currentTarget===Te.target&&ye.current.focus(),k&&k(Te)};let Ft=T,_t=M;V&&Ft==="input"&&(te?_t={type:void 0,minRows:te,maxRows:te,..._t}:_t={type:void 0,maxRows:P,minRows:N,..._t},Ft=lH);const at=Te=>{se(Te.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};C.useEffect(()=>{ke&&ke.setAdornedStart(!!ce)},[ke,ce]);const Xe={...r,color:et.color||"primary",disabled:et.disabled,endAdornment:b,error:et.error,focused:et.focused,formControl:ke,fullWidth:w,hiddenLabel:et.hiddenLabel,multiline:V,size:et.size,startAdornment:ce,type:pe},rt=dH(Xe),Ne=ne.root||f.Root||Lb,he=G.root||c.root||{},We=ne.input||f.Input||zb;return _t={..._t,...G.input??c.input},h.jsxs(C.Fragment,{children:[!v&&typeof h2=="function"&&(p2||(p2=h.jsx(h2,{}))),h.jsxs(Ne,{...he,ref:n,onClick:pt,...ae,...!jc(Ne)&&{ownerState:{...Xe,...he.ownerState}},className:Pt(rt.root,he.className,l,X&&"MuiInputBase-readOnly"),children:[ce,h.jsx(jb.Provider,{value:null,children:h.jsx(We,{"aria-invalid":et.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:m,disabled:et.disabled,id:S,onAnimationStart:at,name:z,placeholder:j,readOnly:X,required:et.required,rows:te,value:le,onKeyDown:F,onKeyUp:_,type:pe,..._t,...!jc(We)&&{as:Ft,ownerState:{...Xe,..._t.ownerState}},ref:Ce,className:Pt(rt.input,_t.className,X&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:it,onFocus:bt})}),b,Q?Q({...et,startAdornment:ce}):null]})]})});function fH(e){return an("MuiInput",e)}const Ec={...Ja,...ln("MuiInput",["root","underline","input"])};function pH(e){return an("MuiOutlinedInput",e)}const Ti={...Ja,...ln("MuiOutlinedInput",["root","notchedOutline","input"])};function hH(e){return an("MuiFilledInput",e)}const ei={...Ja,...ln("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},aj=Na(h.jsx("path",{d:"M7 10l5 5 5-5z"}));function mH(e){return an("MuiAutocomplete",e)}const Gn=ln("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 m2,g2;const gH=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:d,popupOpen:f,size:c}=e,m={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",d&&"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 sn(m,mH,t)},yH=ot("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${Gn.tag}`]:t.tag},{[`& .${Gn.tag}`]:t[`tagSize${tt(l)}`]},{[`& .${Gn.inputRoot}`]:t.inputRoot},{[`& .${Gn.input}`]:t.input},{[`& .${Gn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Gn.focused} .${Gn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Gn.clearIndicator}`]:{visibility:"visible"}},[`& .${Gn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Gn.inputRoot}`]:{[`.${Gn.hasPopupIcon}&, .${Gn.hasClearIcon}&`]:{paddingRight:30},[`.${Gn.hasPopupIcon}.${Gn.hasClearIcon}&`]:{paddingRight:56},[`& .${Gn.input}`]:{width:0,minWidth:30}},[`& .${Ec.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ec.root}.${Ja.sizeSmall}`]:{[`& .${Ec.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ti.root}`]:{padding:9,[`.${Gn.hasPopupIcon}&, .${Gn.hasClearIcon}&`]:{paddingRight:39},[`.${Gn.hasPopupIcon}.${Gn.hasClearIcon}&`]:{paddingRight:65},[`& .${Gn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Gn.endAdornment}`]:{right:9}},[`& .${Ti.root}.${Ja.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Gn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ei.root}`]:{paddingTop:19,paddingLeft:8,[`.${Gn.hasPopupIcon}&, .${Gn.hasClearIcon}&`]:{paddingRight:39},[`.${Gn.hasPopupIcon}.${Gn.hasClearIcon}&`]:{paddingRight:65},[`& .${ei.input}`]:{padding:"7px 4px"},[`& .${Gn.endAdornment}`]:{right:9}},[`& .${ei.root}.${Ja.sizeSmall}`]:{paddingBottom:1,[`& .${ei.input}`]:{padding:"2.5px 4px"}},[`& .${Ja.hiddenLabel}`]:{paddingTop:8},[`& .${ei.root}.${Ja.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Gn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ei.root}.${Ja.hiddenLabel}.${Ja.sizeSmall}`]:{[`& .${Gn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Gn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Gn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Gn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Gn.inputRoot}`]:{flexWrap:"wrap"}}}]}),vH=ot("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),bH=ot(eo,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),xH=ot(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)"}}]}),SH=ot(Ab,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Jt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),wH=ot(ja,{name:"MuiAutocomplete",slot:"Paper"})(Jt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),CH=ot("div",{name:"MuiAutocomplete",slot:"Loading"})(Jt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),kH=ot("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Jt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),TH=ot("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Jt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Gn.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"},[`&.${Gn.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"},[`&.${Gn.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),[`&.${Gn.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}},[`&.${Gn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),MH=ot(zv,{name:"MuiAutocomplete",slot:"GroupLabel"})(Jt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),EH=ot("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Gn.option}`]:{paddingLeft:24}}),OH=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:d,className:f,clearIcon:c=m2||(m2=h.jsx(YA,{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:T=!1,disabled:M=!1,disabledItemsFocusable:R=!1,disableListWrap:$=!1,disablePortal:P=!1,filterOptions:N,filterSelectedOptions:V=!1,forcePopupIcon:z="auto",freeSolo:W=!1,fullWidth:H=!1,getLimitTagsText:k=Rt=>`+${Rt}`,getOptionDisabled:I,getOptionKey:F,getOptionLabel:_,isOptionEqualToValue:j,groupBy:X,handleHomeEndKeys:Q=!r.freeSolo,id:te,includeInputInList:Z=!1,inputValue:G,limitTags:ne=-1,ListboxComponent:ce,ListboxProps:pe,loading:oe=!1,loadingText:ae="Loading…",multiple:le=!1,noOptionsText:ge="No options",onChange:ye,onClose:we,onHighlightChange:Ce,onInputChange:$e,onOpen:de,open:ke,openOnFocus:et=!1,openText:ze="Open",options:Ae,PaperComponent:se,PopperComponent:bt,popupIcon:Fe=g2||(g2=h.jsx(aj,{})),readOnly:it=!1,renderGroup:pt,renderInput:Ft,renderOption:_t,renderTags:at,renderValue:Xe,selectOnFocus:rt=!r.freeSolo,size:Ne="medium",slots:he={},slotProps:We={},value:Te,...kt}=r,{getRootProps:Mt,getInputProps:gt,getInputLabelProps:ct,getPopupIndicatorProps:$t,getClearProps:Vt,getItemProps:un,getListboxProps:vn,getOptionProps:Bn,value:Wn,dirty:Qt,expanded:In,id:be,popupOpen:zn,focused:En,focusedItem:Xt,anchorEl:ie,setAnchorEl:Pe,inputValue:Le,groupedOptions:qe}=I_({...r,componentName:"Autocomplete"}),ut=!S&&!M&&Qt&&!it,Nt=(!W||z===!0)&&z!==!1,{onMouseDown:Bt}=gt(),{ref:Dt,...mt}=vn(),Et=_||(Rt=>Rt.label??Rt),wt={...r,disablePortal:P,expanded:In,focused:En,fullWidth:H,getOptionLabel:Et,hasClearIcon:ut,hasPopupIcon:Nt,inputFocused:Xt===-1,popupOpen:zn,size:Ne},Ht=gH(wt),On={slots:{paper:se,popper:bt,...he},slotProps:{chip:d,listbox:pe,...x,...We}},[qn,bn]=Dn("listbox",{elementType:TH,externalForwardedProps:On,ownerState:wt,className:Ht.listbox,additionalProps:mt,ref:Dt}),[dn,ue]=Dn("paper",{elementType:ja,externalForwardedProps:On,ownerState:wt,className:Ht.paper}),[fe,Ve]=Dn("popper",{elementType:Ab,externalForwardedProps:On,ownerState:wt,className:Ht.popper,additionalProps:{disablePortal:P,style:{width:ie?ie.clientWidth:null},role:"presentation",anchorEl:ie,open:zn}});let vt;const Ke=Rt=>({className:Ht.tag,disabled:M,...un(Rt)});if(le?Wn.length>0&&(at?vt=at(Wn,Ke,wt):Xe?vt=Xe(Wn,Ke,wt):vt=Wn.map((Rt,Ct)=>{const{key:St,...Yt}=Ke({index:Ct});return h.jsx(oj,{label:Et(Rt),size:Ne,...Yt,...On.slotProps.chip},St)})):Xe&&Wn!=null&&(vt=Xe(Wn,Ke,wt)),ne>-1&&Array.isArray(vt)){const Rt=vt.length-ne;!En&&Rt>0&&(vt=vt.splice(0,ne),vt.push(h.jsx("span",{className:Ht.tag,children:k(Rt)},vt.length)))}const nn=pt||(Rt=>h.jsxs("li",{children:[h.jsx(MH,{className:Ht.groupLabel,ownerState:wt,component:"div",children:Rt.group}),h.jsx(EH,{className:Ht.groupUl,ownerState:wt,children:Rt.children})]},Rt.key)),me=_t||((Rt,Ct)=>{const{key:St,...Yt}=Rt;return h.jsx("li",{...Yt,children:Et(Ct)},St)}),Ee=(Rt,Ct)=>{const St=Bn({option:Rt,index:Ct});return me({...St,className:Ht.option},Rt,{selected:St["aria-selected"],index:Ct,inputValue:Le},wt)},He=On.slotProps.clearIndicator,yt=On.slotProps.popupIndicator;return h.jsxs(C.Fragment,{children:[h.jsx(yH,{ref:n,className:Pt(Ht.root,f),ownerState:wt,...Mt(kt),children:Ft({id:be,disabled:M,fullWidth:!0,size:Ne==="small"?"small":void 0,InputLabelProps:ct(),InputProps:{ref:Pe,className:Ht.inputRoot,startAdornment:vt,onMouseDown:Rt=>{Rt.target===Rt.currentTarget&&Bt(Rt)},...(ut||Nt)&&{endAdornment:h.jsxs(vH,{className:Ht.endAdornment,ownerState:wt,children:[ut?h.jsx(bH,{...Vt(),"aria-label":v,title:v,ownerState:wt,...He,className:Pt(Ht.clearIndicator,He?.className),children:c}):null,Nt?h.jsx(xH,{...$t(),disabled:M,"aria-label":zn?b:ze,title:zn?b:ze,ownerState:wt,...yt,className:Pt(Ht.popupIndicator,yt?.className),children:Fe}):null]})}},inputProps:{className:Ht.input,disabled:M,readOnly:it,...gt()}})}),ie?h.jsx(SH,{as:fe,...Ve,children:h.jsxs(wH,{as:dn,...ue,children:[oe&&qe.length===0?h.jsx(CH,{className:Ht.loading,ownerState:wt,children:ae}):null,qe.length===0&&!W&&!oe?h.jsx(kH,{className:Ht.noOptions,ownerState:wt,role:"presentation",onMouseDown:Rt=>{Rt.preventDefault()},children:ge}):null,qe.length>0?h.jsx(qn,{as:ce,...bn,children:qe.map((Rt,Ct)=>X?nn({key:Rt.key,group:Rt.group,children:Rt.options.map((St,Yt)=>Ee(St,Rt.index+Yt))}):Ee(Rt,Ct))}):null]})}):null]})}),RH={entering:{opacity:1},entered:{opacity:1}},$S=C.forwardRef(function(t,n){const r=Wc(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:d,in:f,onEnter:c,onEntered:m,onEntering:y,onExit:v,onExited:b,onExiting:x,style:w,timeout:S=o,TransitionComponent:T=nl,...M}=t,R=C.useRef(null),$=po(R,ld(l),n),P=F=>_=>{if(F){const j=R.current;_===void 0?F(j):F(j,_)}},N=P(y),V=P((F,_)=>{VA(F);const j=Nv({style:w,timeout:S,easing:d},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",j),F.style.transition=r.transitions.create("opacity",j),c&&c(F,_)}),z=P(m),W=P(x),H=P(F=>{const _=Nv({style:w,timeout:S,easing:d},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",_),F.style.transition=r.transitions.create("opacity",_),v&&v(F)}),k=P(b),I=F=>{a&&a(R.current,F)};return h.jsx(T,{appear:s,in:f,nodeRef:R,onEnter:V,onEntered:z,onEntering:N,onExit:H,onExited:k,onExiting:W,addEndListener:I,timeout:S,...M,children:(F,{ownerState:_,...j})=>C.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!f?"hidden":void 0,...RH[F],...w,...l.props.style},ref:$,...j})})});function $H(e){return an("MuiBackdrop",e)}ln("MuiBackdrop",["root","invisible"]);const PH=e=>{const{classes:t,invisible:n}=e;return sn({root:["root",n&&"invisible"]},$H,t)},DH=ot("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"}}]}),ij=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:d,components:f={},componentsProps:c={},slotProps:m={},slots:y={},TransitionComponent:v,transitionDuration:b,...x}=r,w={...r,component:s,invisible:l},S=PH(w),T={transition:v,root:f.Root,...y},M={...c,...m},R={component:s,slots:T,slotProps:M},[$,P]=Dn("root",{elementType:DH,externalForwardedProps:R,className:Pt(S.root,a),ownerState:w}),[N,V]=Dn("transition",{elementType:$S,externalForwardedProps:R,ownerState:w});return h.jsx(N,{in:d,timeout:b,...x,...V,children:h.jsx($,{"aria-hidden":!0,...P,classes:S,ref:n,children:o})})}),AH=ln("MuiBox",["root"]),jH=Rb(),Kt=oC({themeId:Ys,defaultTheme:jH,defaultClassName:AH.root,generateClassName:rC.generate});function NH(e){return an("MuiButton",e)}const ku=ln("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"]),IH=C.createContext({}),LH=C.createContext(void 0),zH=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:d}=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=sn(f,NH,d);return{...d,...c}},sj=[{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}}}],FH=ot(Xu,{shouldForwardProp:e=>ha(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]}})(Jt(({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"},[`&.${ku.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]},[`&.${ku.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ku.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)",[`&.${ku.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(Ir()).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"},[`&.${ku.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ku.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}),[`&.${ku.loading}`]:{color:"transparent"}}}]}})),BH=ot("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}},...sj]})),UH=ot("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}},...sj]})),_H=ot("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}}]})),y2=ot("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Yo=C.forwardRef(function(t,n){const r=C.useContext(IH),o=C.useContext(LH),a=Fm(r,t),s=cn({props:a,name:"MuiButton"}),{children:l,color:d="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:T=null,loadingIndicator:M,loadingPosition:R="center",size:$="medium",startIcon:P,type:N,variant:V="text",...z}=s,W=Hc(S),H=M??h.jsx(sg,{"aria-labelledby":W,color:"inherit",size:16}),k={...s,color:d,component:f,disabled:m,disableElevation:y,disableFocusRipple:v,fullWidth:w,loading:T,loadingIndicator:H,loadingPosition:R,size:$,type:N,variant:V},I=zH(k),F=(P||T&&R==="start")&&h.jsx(BH,{className:I.startIcon,ownerState:k,children:P||h.jsx(y2,{className:I.loadingIconPlaceholder,ownerState:k})}),_=(b||T&&R==="end")&&h.jsx(UH,{className:I.endIcon,ownerState:k,children:b||h.jsx(y2,{className:I.loadingIconPlaceholder,ownerState:k})}),j=o||"",X=typeof T=="boolean"?h.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:T&&h.jsx(_H,{className:I.loadingIndicator,ownerState:k,children:H})}):null;return h.jsxs(FH,{ownerState:k,className:Pt(r.className,I.root,c,j),component:f,disabled:m||T,focusRipple:!v,focusVisibleClassName:Pt(I.focusVisible,x),ref:n,type:N,id:T?W:S,...z,classes:I,children:[F,R!=="end"&&X,l,R==="end"&&X,_]})});function VH(e){return an("MuiCard",e)}ln("MuiCard",["root"]);const HH=e=>{const{classes:t}=e;return sn({root:["root"]},VH,t)},WH=ot(ja,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),qH=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},d=HH(l);return h.jsx(WH,{className:Pt(d.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function YH(e){return an("MuiCardContent",e)}ln("MuiCardContent",["root"]);const KH=e=>{const{classes:t}=e;return sn({root:["root"]},YH,t)},GH=ot("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),QH=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},d=KH(l);return h.jsx(GH,{as:a,className:Pt(d.root,o),ownerState:l,ref:n,...s})});function XH(e){return an("MuiCardMedia",e)}ln("MuiCardMedia",["root","media","img"]);const ZH=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return sn({root:["root",n&&"media",r&&"img"]},XH,t)},JH=ot("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"}}]}),e8=["video","audio","picture","iframe","img"],t8=["picture","img"],n8=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:d,style:f,...c}=r,m=e8.includes(s),y=!m&&l?{backgroundImage:`url("${l}")`,...f}:f,v={...r,component:s,isMediaComponent:m,isImageComponent:t8.includes(s)},b=ZH(v);return h.jsx(JH,{className:Pt(b.root,a),as:s,role:!m&&l?"img":void 0,ref:n,style:y,ownerState:v,src:m?l||d:void 0,...c,children:o})});function r8(e){return an("PrivateSwitchBase",e)}ln("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const o8=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 sn(a,r8,t)},a8=ot(Xu,{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}}]}),i8=ot("input",{name:"MuiSwitchBase",shouldForwardProp:ha})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lj=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:d=!1,edge:f=!1,icon:c,id:m,inputProps:y,inputRef:v,name:b,onBlur:x,onChange:w,onFocus:S,readOnly:T,required:M=!1,tabIndex:R,type:$,value:P,slots:N={},slotProps:V={},...z}=t,[W,H]=Ac({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),k=rl(),I=oe=>{S&&S(oe),k&&k.onFocus&&k.onFocus(oe)},F=oe=>{x&&x(oe),k&&k.onBlur&&k.onBlur(oe)},_=oe=>{if(oe.nativeEvent.defaultPrevented)return;const ae=oe.target.checked;H(ae),w&&w(oe,ae)};let j=l;k&&typeof j>"u"&&(j=k.disabled);const X=$==="checkbox"||$==="radio",Q={...t,checked:W,disabled:j,disableFocusRipple:d,edge:f},te=o8(Q),Z={slots:N,slotProps:{input:y,...V}},[G,ne]=Dn("root",{ref:n,elementType:a8,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Z,component:"span",...z},getSlotProps:oe=>({...oe,onFocus:ae=>{oe.onFocus?.(ae),I(ae)},onBlur:ae=>{oe.onBlur?.(ae),F(ae)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:j,role:void 0,tabIndex:null}}),[ce,pe]=Dn("input",{ref:v,elementType:i8,className:te.input,externalForwardedProps:Z,getSlotProps:oe=>({...oe,onChange:ae=>{oe.onChange?.(ae),_(ae)}}),ownerState:Q,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:j,id:X?m:void 0,name:b,readOnly:T,required:M,tabIndex:R,type:$,...$==="checkbox"&&P===void 0?{}:{value:P}}});return h.jsxs(G,{...ne,children:[h.jsx(ce,{...pe}),W?a:c]})}),s8=Na(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"})),l8=Na(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"})),c8=Na(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 u8(e){return an("MuiCheckbox",e)}const b1=ln("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),d8=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${tt(r)}`,`size${tt(o)}`]},s=sn(a,u8,t);return{...t,...s}},f8=ot(lj,{shouldForwardProp:e=>ha(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)}`]]}})(Jt(({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(Ir()).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(Ir()).map(([t])=>({props:{color:t},style:{[`&.${b1.checked}, &.${b1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${b1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),p8=h.jsx(l8,{}),h8=h.jsx(s8,{}),m8=h.jsx(c8,{}),g8=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=p8,color:a="primary",icon:s=h8,indeterminate:l=!1,indeterminateIcon:d=m8,inputProps:f,size:c="medium",disableRipple:m=!1,className:y,slots:v={},slotProps:b={},...x}=r,w=l?d:s,S=l?d:o,T={...r,disableRipple:m,color:a,indeterminate:l,size:c},M=d8(T),R=b.input??f,[$,P]=Dn("root",{ref:n,elementType:f8,className:Pt(M.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:b,...x},ownerState:T,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:FA(typeof R=="function"?R(T):R,{"data-indeterminate":l})}}});return h.jsx($,{...P,classes:M})});function v2(e){return e.substring(2).toLowerCase()}function y8(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function v8(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),d=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const c=po(ld(t),l),m=Ro(b=>{const x=f.current;f.current=!1;const w=To(l.current);if(!d.current||!l.current||"clientX"in b&&y8(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=v2(a),x=To(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=v2(r),x=To(l.current);return x.addEventListener(b,m),()=>{x.removeEventListener(b,m)}}},[m,r]),C.cloneElement(t,v)}const TC=x6({createStyledComponent:ot("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=>cn({props:e,name:"MuiContainer"})}),PS=typeof hC({})=="function",b8=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),x8=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}}),cj=(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:b8(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...x8(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},gv="mui-ecs",S8=e=>{const t=cj(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${gv})`]={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(.${gv}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${gv}))`]:{colorScheme:o.palette?.mode}}}),t},w8=hC(PS?({theme:e,enableColorScheme:t})=>cj(e,t):({theme:e})=>S8(e));function C8(e){const t=cn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return h.jsxs(C.Fragment,{children:[PS&&h.jsx(w8,{enableColorScheme:r}),!PS&&!r&&h.jsx("span",{className:gv,style:{display:"none"}}),n]})}function uj(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function k8(e){const t=To(e);return t.body===e?jl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function b2(e){return parseInt(jl(e).getComputedStyle(e).paddingRight,10)||0}function T8(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 x2(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),d=!T8(s);l&&d&&xm(s,o)})}function x1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function M8(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(k8(r)){const s=uj(jl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${b2(r)+s}px`;const l=To(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${b2(d)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=To(r).body;else{const s=r.parentElement,l=jl(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 E8(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O8{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&&xm(t.modalRef,!1);const o=E8(n);x2(n,t.mount,t.modalRef,o,!0);const a=x1(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=x1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=M8(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=x1(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&&xm(t.modalRef,n),x2(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&&xm(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const R8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $8(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 P8(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 D8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||P8(e))}function A8(e){const t=[],n=[];return Array.from(e.querySelectorAll(R8)).forEach((r,o)=>{const a=$8(r);a===-1||!D8(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 j8(){return!0}function N8(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=A8,isEnabled:s=j8,open:l}=e,d=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=po(ld(t),b),w=C.useRef(null);C.useEffect(()=>{!l||!b.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!b.current)return;const M=To(b.current);return b.current.contains(M.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),v.current&&b.current.focus()),()=>{o||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[l]),C.useEffect(()=>{if(!l||!b.current)return;const M=To(b.current),R=N=>{w.current=N,!(r||!s()||N.key!=="Tab")&&M.activeElement===b.current&&N.shiftKey&&(d.current=!0,c.current&&c.current.focus())},$=()=>{const N=b.current;if(N===null)return;if(!M.hasFocus()||!s()||d.current){d.current=!1;return}if(N.contains(M.activeElement)||r&&M.activeElement!==f.current&&M.activeElement!==c.current)return;if(M.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let V=[];if((M.activeElement===f.current||M.activeElement===c.current)&&(V=a(b.current)),V.length>0){const z=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=V[0],H=V[V.length-1];typeof W!="string"&&typeof H!="string"&&(z?H.focus():W.focus())}else N.focus()};M.addEventListener("focusin",$),M.addEventListener("keydown",R,!0);const P=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(P),M.removeEventListener("focusin",$),M.removeEventListener("keydown",R,!0)}},[n,r,o,s,l,a]);const S=M=>{m.current===null&&(m.current=M.relatedTarget),v.current=!0,y.current=M.target;const R=t.props.onFocus;R&&R(M)},T=M=>{m.current===null&&(m.current=M.relatedTarget),v.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:S}),h.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:c,"data-testid":"sentinelEnd"})]})}function I8(e){return typeof e=="function"?e():e}function L8(e){return e?e.props.hasOwnProperty("in"):!1}const S2=()=>{},Ay=new O8;function z8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:d,open:f,rootRef:c}=e,m=C.useRef({}),y=C.useRef(null),v=C.useRef(null),b=po(v,c),[x,w]=C.useState(!f),S=L8(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const M=()=>To(y.current),R=()=>(m.current.modalRef=v.current,m.current.mount=y.current,m.current),$=()=>{Ay.mount(R(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},P=Ro(()=>{const _=I8(t)||M().body;Ay.add(R(),_),v.current&&$()}),N=()=>Ay.isTopModal(R()),V=Ro(_=>{y.current=_,_&&(f&&N()?$():v.current&&xm(v.current,T))}),z=C.useCallback(()=>{Ay.remove(R(),T)},[T]);C.useEffect(()=>()=>{z()},[z]),C.useEffect(()=>{f?P():(!S||!o)&&z()},[f,z,S,o,P]);const W=_=>j=>{_.onKeyDown?.(j),!(j.key!=="Escape"||j.which===229||!N())&&(n||(j.stopPropagation(),d&&d(j,"escapeKeyDown")))},H=_=>j=>{_.onClick?.(j),j.target===j.currentTarget&&d&&d(j,"backdropClick")};return{getRootProps:(_={})=>{const j=Wu(e);delete j.onTransitionEnter,delete j.onTransitionExited;const X={...j,..._};return{role:"presentation",...X,onKeyDown:W(X),ref:b}},getBackdropProps:(_={})=>{const j=_;return{"aria-hidden":!0,...j,onClick:H(j),open:f}},getTransitionProps:()=>{const _=()=>{w(!1),a&&a()},j=()=>{w(!0),s&&s(),o&&z()};return{onEnter:_O(_,l?.props.onEnter??S2),onExited:_O(j,l?.props.onExited??S2)}},rootRef:b,portalRef:V,isTopModal:N,exited:x,hasTransition:S}}function F8(e){return an("MuiModal",e)}ln("MuiModal",["root","hidden","backdrop"]);const B8=e=>{const{open:t,exited:n,classes:r}=e;return sn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},F8,r)},U8=ot("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Jt(({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"}}]}))),_8=ot(ij,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),dj=C.forwardRef(function(t,n){const r=cn({name:"MuiModal",props:t}),{BackdropComponent:o=_8,BackdropProps:a,classes:s,className:l,closeAfterTransition:d=!1,children:f,container:c,component:m,components:y={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:T=!1,disableScrollLock:M=!1,hideBackdrop:R=!1,keepMounted:$=!1,onClose:P,onTransitionEnter:N,onTransitionExited:V,open:z,slotProps:W={},slots:H={},theme:k,...I}=r,F={...r,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:T,disableScrollLock:M,hideBackdrop:R,keepMounted:$},{getRootProps:_,getBackdropProps:j,getTransitionProps:X,portalRef:Q,isTopModal:te,exited:Z,hasTransition:G}=z8({...F,rootRef:n}),ne={...F,exited:Z},ce=B8(ne),pe={};if(f.props.tabIndex===void 0&&(pe.tabIndex="-1"),G){const{onEnter:we,onExited:Ce}=X();pe.onEnter=we,pe.onExited=Ce}const oe={slots:{root:y.Root,backdrop:y.Backdrop,...H},slotProps:{...v,...W}},[ae,le]=Dn("root",{ref:n,elementType:U8,externalForwardedProps:{...oe,...I,component:m},getSlotProps:_,ownerState:ne,className:Pt(l,ce?.root,!ne.open&&ne.exited&&ce?.hidden)}),[ge,ye]=Dn("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:we=>j({...we,onClick:Ce=>{we?.onClick&&we.onClick(Ce)}}),className:Pt(a?.className,ce?.backdrop),ownerState:ne});return!$&&!z&&(!G||Z)?null:h.jsx(rj,{ref:Q,container:c,disablePortal:S,children:h.jsxs(ae,{...le,children:[!R&&o?h.jsx(ge,{...ye}):null,h.jsx(N8,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:T,isEnabled:te,open:z,children:C.cloneElement(f,pe)})]})})});function V8(e){return an("MuiDialog",e)}const S1=ln("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fj=C.createContext({}),H8=ot(ij,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),W8=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 sn(s,V8,t)},q8=ot(dj,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Y8=ot("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"}}}]}),K8=ot(ja,{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]}})(Jt(({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)`,[`&.${S1.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}`,[`&.${S1.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,[`&.${S1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Yf=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiDialog"}),o=Wc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:c,children:m,className:y,disableEscapeKeyDown:v=!1,fullScreen:b=!1,fullWidth:x=!1,maxWidth:w="sm",onClick:S,onClose:T,open:M,PaperComponent:R=ja,PaperProps:$={},scroll:P="paper",slots:N={},slotProps:V={},TransitionComponent:z=$S,transitionDuration:W=a,TransitionProps:H,...k}=r,I={...r,disableEscapeKeyDown:v,fullScreen:b,fullWidth:x,maxWidth:w,scroll:P},F=W8(I),_=C.useRef(),j=de=>{_.current=de.target===de.currentTarget},X=de=>{S&&S(de),_.current&&(_.current=null,T&&T(de,"backdropClick"))},Q=Hc(l),te=C.useMemo(()=>({titleId:Q}),[Q]),Z={transition:z,...N},G={transition:H,paper:$,backdrop:c,...V},ne={slots:Z,slotProps:G},[ce,pe]=Dn("root",{elementType:q8,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:I,className:Pt(F.root,y),ref:n}),[oe,ae]=Dn("backdrop",{elementType:H8,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:I}),[le,ge]=Dn("paper",{elementType:K8,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:I,className:Pt(F.paper,$.className)}),[ye,we]=Dn("container",{elementType:Y8,externalForwardedProps:ne,ownerState:I,className:F.container}),[Ce,$e]=Dn("transition",{elementType:$S,externalForwardedProps:ne,ownerState:I,additionalProps:{appear:!0,in:M,timeout:W,role:"presentation"}});return h.jsx(ce,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:W,as:f,...ae}},disableEscapeKeyDown:v,onClose:T,open:M,onClick:X,...pe,...k,children:h.jsx(Ce,{...$e,children:h.jsx(ye,{onMouseDown:j,...we,children:h.jsx(le,{as:R,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Q,"aria-modal":d,...ge,children:h.jsx(fj.Provider,{value:te,children:m})})})})})});function G8(e){return an("MuiDialogActions",e)}ln("MuiDialogActions",["root","spacing"]);const Q8=e=>{const{classes:t,disableSpacing:n}=e;return sn({root:["root",!n&&"spacing"]},G8,t)},X8=ot("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}}}]}),pj=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},d=Q8(l);return h.jsx(X8,{className:Pt(d.root,o),ownerState:l,ref:n,...s})});function Z8(e){return an("MuiDialogContent",e)}ln("MuiDialogContent",["root","dividers"]);function J8(e){return an("MuiDialogTitle",e)}const eW=ln("MuiDialogTitle",["root"]),tW=e=>{const{classes:t,dividers:n}=e;return sn({root:["root",n&&"dividers"]},Z8,t)},nW=ot("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Jt(({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:{[`.${eW.root} + &`]:{paddingTop:0}}}]}))),Kf=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},d=tW(l);return h.jsx(nW,{className:Pt(d.root,o),ownerState:l,ref:n,...s})}),rW=e=>{const{classes:t}=e;return sn({root:["root"]},J8,t)},oW=ot(Lt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Gf=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,d=rW(l),{titleId:f=a}=C.useContext(fj);return h.jsx(oW,{component:"h2",className:Pt(d.root,o),ownerState:l,ref:n,variant:"h6",id:a??f,...s})});function aW(e){return an("MuiDivider",e)}const w2=ln("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),iW=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:d}=e;return sn({root:["root",t&&"absolute",d,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"]},aW,r)},sW=ot("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]}})(Jt(({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%"}}}]}))),lW=ot("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Jt(({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)`}}]}))),Bc=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:d=a||l==="vertical"?"div":"hr",flexItem:f=!1,light:c=!1,role:m=d!=="hr"?"separator":void 0,textAlign:y="center",variant:v="fullWidth",...b}=r,x={...r,absolute:o,component:d,flexItem:f,light:c,orientation:l,role:m,textAlign:y,variant:v},w=iW(x);return h.jsx(sW,{as:d,className:Pt(w.root,s),role:m,ref:n,ownerState:x,"aria-orientation":m==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...b,children:a?h.jsx(lW,{className:w.wrapper,ownerState:x,children:a}):null})});Bc&&(Bc.muiSkipListHighlight=!0);const cW=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${tt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=sn(d,hH,t);return{...t,...f}},uW=ot(Lb,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nb(e,t),!n.disableUnderline&&t.underline]}})(Jt(({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}},[`&.${ei.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ei.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"},[`&.${ei.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ei.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(.${ei.disabled}, .${ei.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ei.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ir()).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}}]}})),dW=ot(zb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ib})(Jt(({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}}]}))),MC=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:d,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=cW(r),S={root:{ownerState:x},input:{ownerState:x}},T=m??s?Fo(S,m??s):S,M=y.root??a.Root??uW,R=y.input??a.Input??dW;return h.jsx(kC,{slots:{root:M,input:R},slotProps:T,fullWidth:l,inputComponent:f,multiline:c,ref:n,type:v,...b,classes:w})});MC.muiName="Input";function fW(e){return an("MuiFormControl",e)}ln("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pW=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${tt(n)}`,r&&"fullWidth"]};return sn(o,fW,t)},hW=ot("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%"}}]}),DS=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:d=!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,T={...r,color:s,component:l,disabled:d,error:f,fullWidth:m,hiddenLabel:y,margin:v,required:b,size:x,variant:w},M=pW(T),[R,$]=C.useState(()=>{let _=!1;return o&&C.Children.forEach(o,j=>{if(!hv(j,["Input","Select"]))return;const X=hv(j,["Select"])?j.props.input:j;X&&cH(X.props)&&(_=!0)}),_}),[P,N]=C.useState(()=>{let _=!1;return o&&C.Children.forEach(o,j=>{hv(j,["Input","Select"])&&(Fv(j.props,!0)||Fv(j.props.inputProps,!0))&&(_=!0)}),_}),[V,z]=C.useState(!1);d&&V&&z(!1);const W=c!==void 0&&!d?c:V;let H;C.useRef(!1);const k=C.useCallback(()=>{N(!0)},[]),I=C.useCallback(()=>{N(!1)},[]),F=C.useMemo(()=>({adornedStart:R,setAdornedStart:$,color:s,disabled:d,error:f,filled:P,focused:W,fullWidth:m,hiddenLabel:y,size:x,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:I,onFilled:k,registerEffect:H,required:b,variant:w}),[R,s,d,f,P,W,m,y,H,I,k,b,x,w]);return h.jsx(jb.Provider,{value:F,children:h.jsx(hW,{as:l,ownerState:T,className:Pt(M.root,a),ref:n,...S,children:o})})});function mW(e){return an("MuiFormControlLabel",e)}const cm=ln("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),gW=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 sn(s,mW,t)},yW=ot("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cm.label}`]:t.label},t.root,t[`labelPlacement${tt(n.labelPlacement)}`]]}})(Jt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${cm.disabled}`]:{cursor:"default"},[`& .${cm.label}`]:{[`&.${cm.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}}]}))),vW=ot("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Jt(({theme:e})=>({[`&.${cm.error}`]:{color:(e.vars||e).palette.error.main}}))),EC=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:d,disableTypography:f,inputRef:c,label:m,labelPlacement:y="end",name:v,onChange:b,required:x,slots:w={},slotProps:S={},value:T,...M}=r,R=rl(),$=d??l.props.disabled??R?.disabled,P=x??l.props.required,N={disabled:$,required:P};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof l.props[_]>"u"&&typeof r[_]<"u"&&(N[_]=r[_])});const V=Yc({props:r,muiFormControl:R,states:["error"]}),z={...r,disabled:$,labelPlacement:y,required:P,error:V.error},W=gW(z),H={slots:w,slotProps:{...s,...S}},[k,I]=Dn("typography",{elementType:Lt,externalForwardedProps:H,ownerState:z});let F=m;return F!=null&&F.type!==Lt&&!f&&(F=h.jsx(k,{component:"span",...I,className:Pt(W.label,I?.className),children:F})),h.jsxs(yW,{className:Pt(W.root,a),ownerState:z,ref:n,...M,children:[C.cloneElement(l,N),P?h.jsxs("div",{children:[F,h.jsxs(vW,{ownerState:z,"aria-hidden":!0,className:W.asterisk,children:[" ","*"]})]}):F]})});function bW(e){return an("MuiFormGroup",e)}ln("MuiFormGroup",["root","row","error"]);const xW=e=>{const{classes:t,row:n,error:r}=e;return sn({root:["root",n&&"row",r&&"error"]},bW,t)},SW=ot("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"}}]}),wW=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=r,l=rl(),d=Yc({props:r,muiFormControl:l,states:["error"]}),f={...r,row:a,error:d.error},c=xW(f);return h.jsx(SW,{className:Pt(c.root,o),ownerState:f,ref:n,...s})});function CW(e){return an("MuiFormHelperText",e)}const C2=ln("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var k2;const kW=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:d}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${tt(r)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return sn(f,CW,t)},TW=ot("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]}})(Jt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${C2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${C2.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}}]}))),AS=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:d,filled:f,focused:c,margin:m,required:y,variant:v,...b}=r,x=rl(),w=Yc({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 T=kW(S);return h.jsx(TW,{as:s,className:Pt(T.root,a),ref:n,...b,ownerState:S,children:o===" "?k2||(k2=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function MW(e){return an("MuiFormLabel",e)}const Sm=ln("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),EW=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,d={root:["root",`color${tt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return sn(d,MW,t)},OW=ot("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Jt(({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(Ir()).map(([t])=>({props:{color:t},style:{[`&.${Sm.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Sm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sm.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),RW=ot("span",{name:"MuiFormLabel",slot:"Asterisk"})(Jt(({theme:e})=>({[`&.${Sm.error}`]:{color:(e.vars||e).palette.error.main}}))),$W=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:d,error:f,filled:c,focused:m,required:y,...v}=r,b=rl(),x=Yc({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=EW(w);return h.jsxs(OW,{as:l,ownerState:w,className:Pt(S.root,a),ref:n,...v,children:[o,x.required&&h.jsxs(RW,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})}),Rf=I6({createStyledComponent:ot("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>cn({props:e,name:"MuiGrid"}),useTheme:Wc});function jS(e){return`scale(${e}, ${e**2})`}const PW={entering:{opacity:1,transform:jS(1)},entered:{opacity:1,transform:"none"}},w1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_m=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:d,onEntered:f,onEntering:c,onExit:m,onExited:y,onExiting:v,style:b,timeout:x="auto",TransitionComponent:w=nl,...S}=t,T=Bu(),M=C.useRef(),R=Wc(),$=C.useRef(null),P=po($,ld(a),n),N=_=>j=>{if(_){const X=$.current;j===void 0?_(X):_(X,j)}},V=N(c),z=N((_,j)=>{VA(_);const{duration:X,delay:Q,easing:te}=Nv({style:b,timeout:x,easing:s},{mode:"enter"});let Z;x==="auto"?(Z=R.transitions.getAutoHeightDuration(_.clientHeight),M.current=Z):Z=X,_.style.transition=[R.transitions.create("opacity",{duration:Z,delay:Q}),R.transitions.create("transform",{duration:w1?Z:Z*.666,delay:Q,easing:te})].join(","),d&&d(_,j)}),W=N(f),H=N(v),k=N(_=>{const{duration:j,delay:X,easing:Q}=Nv({style:b,timeout:x,easing:s},{mode:"exit"});let te;x==="auto"?(te=R.transitions.getAutoHeightDuration(_.clientHeight),M.current=te):te=j,_.style.transition=[R.transitions.create("opacity",{duration:te,delay:X}),R.transitions.create("transform",{duration:w1?te:te*.666,delay:w1?X:X||te*.333,easing:Q})].join(","),_.style.opacity=0,_.style.transform=jS(.75),m&&m(_)}),I=N(y),F=_=>{x==="auto"&&T.start(M.current||0,_),r&&r($.current,_)};return h.jsx(w,{appear:o,in:l,nodeRef:$,onEnter:z,onEntered:W,onEntering:V,onExit:k,onExited:I,onExiting:H,addEndListener:F,timeout:x==="auto"?null:x,...S,children:(_,{ownerState:j,...X})=>C.cloneElement(a,{style:{opacity:0,transform:jS(.75),visibility:_==="exited"&&!l?"hidden":void 0,...PW[_],...b,...a.props.style},ref:P,...X})})});_m&&(_m.muiSupportAuto=!0);const DW=e=>{const{classes:t,disableUnderline:n}=e,o=sn({root:["root",!n&&"underline"],input:["input"]},fH,t);return{...t,...o}},AW=ot(Lb,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nb(e,t),!n.disableUnderline&&t.underline]}})(Jt(({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"},[`&.${Ec.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ec.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(.${Ec.disabled}, .${Ec.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ec.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ir()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),jW=ot(zb,{name:"MuiInput",slot:"Input",overridesResolver:Ib})({}),OC=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:d="input",multiline:f=!1,slotProps:c,slots:m={},type:y="text",...v}=r,b=DW(r),w={root:{ownerState:{disableUnderline:o}}},S=c??s?Fo(c??s,w):w,T=m.root??a.Root??AW,M=m.input??a.Input??jW;return h.jsx(kC,{slots:{root:T,input:M},slotProps:S,fullWidth:l,inputComponent:d,multiline:f,ref:n,type:y,...v,classes:b})});OC.muiName="Input";function NW(e){return an("MuiInputAdornment",e)}const T2=ln("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var M2;const IW=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},LW=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 sn(l,NW,t)},zW=ot("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:IW})(Jt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${T2.positionStart}&:not(.${T2.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),FW=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:d=!1,position:f,variant:c,...m}=r,y=rl()||{};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=LW(b);return h.jsx(jb.Provider,{value:null,children:h.jsx(zW,{as:s,ownerState:b,className:Pt(x.root,a),ref:n,...m,children:typeof o=="string"&&!d?h.jsx(Lt,{color:"textSecondary",children:o}):h.jsxs(C.Fragment,{children:[f==="start"?M2||(M2=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function BW(e){return an("MuiInputLabel",e)}ln("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const UW=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,d={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${tt(r)}`,s],asterisk:[l&&"asterisk"]},f=sn(d,BW,t);return{...t,...f}},_W=ot($W,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sm.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]]}})(Jt(({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)"}}]}))),VW=C.forwardRef(function(t,n){const r=cn({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:d,...f}=r,c=rl();let m=s;typeof m>"u"&&c&&(m=c.filled||c.focused||c.adornedStart);const y=Yc({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=UW(v);return h.jsx(_W,{"data-shrink":m,ref:n,className:Pt(b.root,d),...f,ownerState:v,classes:b})});function HW(e){return an("MuiLinearProgress",e)}ln("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const NS=4,IS=ui`
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
+ `,WW=typeof IS!="string"?Vc`
229
+ animation: ${IS} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
230
+ `:null,LS=ui`
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
+ `,qW=typeof LS!="string"?Vc`
246
+ animation: ${LS} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
247
+ `:null,zS=ui`
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
+ `,YW=typeof zS!="string"?Vc`
263
+ animation: ${zS} 3s infinite linear;
264
+ `:null,KW=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 sn(o,HW,t)},RC=(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),GW=ot("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tt(n.color)}`],t[n.variant]]}})(Jt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Ir()).map(([t])=>({props:{color:t},style:{backgroundColor:RC(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)"}}]}))),QW=ot("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${tt(n.color)}`]]}})(Jt(({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(Ir()).map(([t])=>{const n=RC(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),YW||{animation:`${zS} 3s infinite linear`}),XW=ot("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]}})(Jt(({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(Ir()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${NS}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${NS}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:WW||{animation:`${IS} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),ZW=ot("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]}})(Jt(({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(Ir()).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(Ir()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:RC(e,t),transition:`transform .${NS}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:qW||{animation:`${LS} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),JW=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:d="indeterminate",...f}=r,c={...r,color:a,variant:d},m=KW(c),y=ig(),v={},b={bar1:{},bar2:{}};if((d==="determinate"||d==="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(d==="buffer"&&l!==void 0){let x=(l||0)-100;y&&(x=-x),b.bar2.transform=`translateX(${x}%)`}return h.jsxs(GW,{className:Pt(m.root,o),ownerState:c,role:"progressbar",...v,ref:n,...f,children:[d==="buffer"?h.jsx(QW,{className:m.dashed,ownerState:c}):null,h.jsx(XW,{className:m.bar1,ownerState:c,style:b.bar1}),d==="determinate"?null:h.jsx(ZW,{className:m.bar2,ownerState:c,style:b.bar2})]})});function e9(e){return an("MuiLink",e)}const t9=ln("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),n9=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const a=Us(e,`palette.${n}.main`)||Us(e,`palette.${n}`)||t.color;return e.alpha(a,.4)}const r=Us(e,`palette.${n}.main`,!1)||Us(e,`palette.${n}`,!1)||t.color,o=Us(e,`palette.${n}.mainChannel`)||Us(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:fs(r,.4)},E2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},r9=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${tt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return sn(a,e9,t)},o9=ot(Lt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${tt(n.underline)}`],n.component==="button"&&t.button]}})(Jt(({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(Ir()).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"},[`&.${t9.focusVisible}`]:{outline:"auto"}}}]}))),a9=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiLink"}),o=Wc(),{className:a,color:s="primary",component:l="a",onBlur:d,onFocus:f,TypographyClasses:c,underline:m="always",variant:y="inherit",sx:v,...b}=r,[x,w]=C.useState(!1),S=$=>{Fc($.target)||w(!1),d&&d($)},T=$=>{Fc($.target)&&w(!0),f&&f($)},M={...r,color:s,component:l,focusVisible:x,underline:m,variant:y},R=r9(M);return h.jsx(o9,{color:s,className:Pt(R.root,a),classes:c,component:l,onBlur:S,onFocus:T,ref:n,ownerState:M,variant:y,...b,sx:[...E2[s]===void 0?[{color:s}]:[],...Array.isArray(v)?v:[v]],style:{...b.style,...m==="always"&&s!=="inherit"&&!E2[s]&&{"--Link-underlineColor":n9({theme:o,ownerState:M})}}})}),Ju=C.createContext({});function i9(e){return an("MuiList",e)}ln("MuiList",["root","padding","dense","subheader"]);const s9=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return sn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},i9,t)},l9=ot("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}}]}),$C=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:d=!1,subheader:f,...c}=r,m=C.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:d},v=s9(y);return h.jsx(Ju.Provider,{value:m,children:h.jsxs(l9,{as:s,className:Pt(v.root,a),ref:n,ownerState:y,...c,children:[f,o]})})});function c9(e){return an("MuiListItemButton",e)}const Eh=ln("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),u9=(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]},d9=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,f=sn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},c9,n);return{...n,...f}},f9=ot(Xu,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:u9})(Jt(({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"}},[`&.${Eh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Eh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Eh.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)}},[`&.${Eh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eh.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}}]}))),hj=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:d=!1,disableGutters:f=!1,divider:c=!1,focusVisibleClassName:m,selected:y=!1,className:v,...b}=r,x=C.useContext(Ju),w=C.useMemo(()=>({dense:d||x.dense||!1,alignItems:o,disableGutters:f}),[o,x.dense,d,f]),S=C.useRef(null);Aa(()=>{a&&S.current&&S.current.focus()},[a]);const T={...r,alignItems:o,dense:w.dense,disableGutters:f,divider:c,selected:y},M=d9(T),R=po(S,n);return h.jsx(Ju.Provider,{value:w,children:h.jsx(f9,{ref:R,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:Pt(M.focusVisible,m),ownerState:T,className:Pt(M.root,v),...b,classes:M,children:l})})});function p9(e){return an("MuiListItemIcon",e)}const O2=ln("MuiListItemIcon",["root","alignItemsFlexStart"]),h9=e=>{const{alignItems:t,classes:n}=e;return sn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},p9,n)},m9=ot("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Jt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),dp=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=C.useContext(Ju),l={...r,alignItems:s.alignItems},d=h9(l);return h.jsx(m9,{className:Pt(d.root,o),ownerState:l,ref:n,...a})});function g9(e){return an("MuiListItemText",e)}const $f=ln("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),y9=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return sn({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},g9,t)},v9=ot("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$f.primary}`]:t.primary},{[`& .${$f.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,[`.${GO.root}:where(& .${$f.primary})`]:{display:"block"},[`.${GO.root}:where(& .${$f.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Kc=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:d,primaryTypographyProps:f,secondary:c,secondaryTypographyProps:m,slots:y={},slotProps:v={},...b}=r,{dense:x}=C.useContext(Ju);let w=d??o,S=c;const T={...r,disableTypography:s,inset:l,primary:!!w,secondary:!!S,dense:x},M=y9(T),R={slots:y,slotProps:{primary:f,secondary:m,...v}},[$,P]=Dn("root",{className:Pt(M.root,a),elementType:v9,externalForwardedProps:{...R,...b},ownerState:T,ref:n}),[N,V]=Dn("primary",{className:M.primary,elementType:Lt,externalForwardedProps:R,ownerState:T}),[z,W]=Dn("secondary",{className:M.secondary,elementType:Lt,externalForwardedProps:R,ownerState:T});return w!=null&&w.type!==Lt&&!s&&(w=h.jsx(N,{variant:x?"body2":"body1",component:V?.variant?void 0:"span",...V,children:w})),S!=null&&S.type!==Lt&&!s&&(S=h.jsx(z,{variant:"body2",color:"textSecondary",...W,children:S})),h.jsxs($,{...P,children:[w,S]})});function C1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function R2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mj(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 Oh(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 d=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!mj(l,a)||d)l=o(e,l,n);else return l.focus(),!0}return!1}const b9=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:d=!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});Aa(()=>{o&&v.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(M,{direction:R})=>{const $=!v.current.style.width;if(M.clientHeight<v.current.clientHeight&&$){const P=`${uj(jl(M))}px`;v.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=P,v.current.style.width=`calc(100% + ${P})`}return v.current}}),[]);const x=M=>{const R=v.current,$=M.key;if(M.ctrlKey||M.metaKey||M.altKey){c&&c(M);return}const N=To(R).activeElement;if($==="ArrowDown")M.preventDefault(),Oh(R,N,f,d,C1);else if($==="ArrowUp")M.preventDefault(),Oh(R,N,f,d,R2);else if($==="Home")M.preventDefault(),Oh(R,null,f,d,C1);else if($==="End")M.preventDefault(),Oh(R,null,f,d,R2);else if($.length===1){const V=b.current,z=$.toLowerCase(),W=performance.now();V.keys.length>0&&(W-V.lastTime>500?(V.keys=[],V.repeating=!0,V.previousKeyMatched=!0):V.repeating&&z!==V.keys[0]&&(V.repeating=!1)),V.lastTime=W,V.keys.push(z);const H=N&&!V.repeating&&mj(N,V);V.previousKeyMatched&&(H||Oh(R,N,!1,d,C1,V))?M.preventDefault():V.previousKeyMatched=!1}c&&c(M)},w=po(v,n);let S=-1;C.Children.forEach(s,(M,R)=>{if(!C.isValidElement(M)){S===R&&(S+=1,S>=s.length&&(S=-1));return}M.props.disabled||(m==="selectedMenu"&&M.props.selected||S===-1)&&(S=R),S===R&&(M.props.disabled||M.props.muiSkipListHighlight||M.type.muiSkipListHighlight)&&(S+=1,S>=s.length&&(S=-1))});const T=C.Children.map(s,(M,R)=>{if(R===S){const $={};return a&&($.autoFocus=!0),M.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),C.cloneElement(M,$)}return M});return h.jsx($C,{role:"menu",ref:w,className:l,onKeyDown:x,tabIndex:o?0:-1,...y,children:T})});function x9(e){return an("MuiPopover",e)}ln("MuiPopover",["root","paper"]);function $2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function P2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function D2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function jy(e){return typeof e=="function"?e():e}const S9=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"]},x9,t)},w9=ot(dj,{name:"MuiPopover",slot:"Root"})({}),gj=ot(ja,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),C9=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:f,className:c,container:m,elevation:y=8,marginThreshold:v=16,open:b,PaperProps:x={},slots:w={},slotProps:S={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:M,transitionDuration:R="auto",TransitionProps:$={},disableScrollLock:P=!1,...N}=r,V=C.useRef(),z={...r,anchorOrigin:s,anchorReference:d,elevation:y,marginThreshold:v,transformOrigin:T,TransitionComponent:M,transitionDuration:R,TransitionProps:$},W=S9(z),H=C.useCallback(()=>{if(d==="anchorPosition")return l;const we=jy(a),$e=(we&&we.nodeType===1?we:To(V.current).body).getBoundingClientRect();return{top:$e.top+$2($e,s.vertical),left:$e.left+P2($e,s.horizontal)}},[a,s.horizontal,s.vertical,l,d]),k=C.useCallback(we=>({vertical:$2(we,T.vertical),horizontal:P2(we,T.horizontal)}),[T.horizontal,T.vertical]),I=C.useCallback(we=>{const Ce={width:we.offsetWidth,height:we.offsetHeight},$e=k(Ce);if(d==="none")return{top:null,left:null,transformOrigin:D2($e)};const de=H();let ke=de.top-$e.vertical,et=de.left-$e.horizontal;const ze=ke+Ce.height,Ae=et+Ce.width,se=jl(jy(a)),bt=se.innerHeight-v,Fe=se.innerWidth-v;if(v!==null&&ke<v){const it=ke-v;ke-=it,$e.vertical+=it}else if(v!==null&&ze>bt){const it=ze-bt;ke-=it,$e.vertical+=it}if(v!==null&&et<v){const it=et-v;et-=it,$e.horizontal+=it}else if(Ae>Fe){const it=Ae-Fe;et-=it,$e.horizontal+=it}return{top:`${Math.round(ke)}px`,left:`${Math.round(et)}px`,transformOrigin:D2($e)}},[a,d,H,k,v]),[F,_]=C.useState(b),j=C.useCallback(()=>{const we=V.current;if(!we)return;const Ce=I(we);Ce.top!==null&&we.style.setProperty("top",Ce.top),Ce.left!==null&&(we.style.left=Ce.left),we.style.transformOrigin=Ce.transformOrigin,_(!0)},[I]);C.useEffect(()=>(P&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[a,P,j]);const X=()=>{j()},Q=()=>{_(!1)};C.useEffect(()=>{b&&j()}),C.useImperativeHandle(o,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),C.useEffect(()=>{if(!b)return;const we=zA(()=>{j()}),Ce=jl(jy(a));return Ce.addEventListener("resize",we),()=>{we.clear(),Ce.removeEventListener("resize",we)}},[a,b,j]);let te=R;const Z={slots:{transition:M,...w},slotProps:{transition:$,paper:x,...S}},[G,ne]=Dn("transition",{elementType:_m,externalForwardedProps:Z,ownerState:z,getSlotProps:we=>({...we,onEntering:(Ce,$e)=>{we.onEntering?.(Ce,$e),X()},onExited:Ce=>{we.onExited?.(Ce),Q()}}),additionalProps:{appear:!0,in:b}});R==="auto"&&!G.muiSupportAuto&&(te=void 0);const ce=m||(a?To(jy(a)).body:void 0),[pe,{slots:oe,slotProps:ae,...le}]=Dn("root",{ref:n,elementType:w9,externalForwardedProps:{...Z,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:FA(typeof S.backdrop=="function"?S.backdrop(z):S.backdrop,{invisible:!0})},container:ce,open:b},ownerState:z,className:Pt(W.root,c)}),[ge,ye]=Dn("paper",{ref:V,className:W.paper,elementType:gj,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:F?void 0:{opacity:0}},ownerState:z});return h.jsx(pe,{...le,...!jc(pe)&&{slots:oe,slotProps:ae,disableScrollLock:P},children:h.jsx(G,{...ne,timeout:te,children:h.jsx(ge,{...ye,children:f})})})});function k9(e){return an("MuiMenu",e)}ln("MuiMenu",["root","paper","list"]);const T9={vertical:"top",horizontal:"right"},M9={vertical:"top",horizontal:"left"},E9=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"],list:["list"]},k9,t)},O9=ot(C9,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),R9=ot(gj,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$9=ot(b9,{name:"MuiMenu",slot:"List"})({outline:0}),cd=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:f,open:c,PaperProps:m={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:b,...x}={},variant:w="selectedMenu",slots:S={},slotProps:T={},...M}=r,R=ig(),$={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:d,onEntering:b,PaperProps:m,transitionDuration:v,TransitionProps:x,variant:w},P=E9($),N=o&&!l&&c,V=C.useRef(null),z=(te,Z)=>{V.current&&V.current.adjustStyleForScrollbar(te,{direction:R?"rtl":"ltr"}),b&&b(te,Z)},W=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let H=-1;C.Children.map(a,(te,Z)=>{C.isValidElement(te)&&(te.props.disabled||(w==="selectedMenu"&&te.props.selected||H===-1)&&(H=Z))});const k={slots:S,slotProps:{list:d,transition:x,paper:m,...T}},I=zs({elementType:S.root,externalSlotProps:T.root,ownerState:$,className:[P.root,s]}),[F,_]=Dn("paper",{className:P.paper,elementType:R9,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:$}),[j,X]=Dn("list",{className:Pt(P.list,d.className),elementType:$9,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:te=>({...te,onKeyDown:Z=>{W(Z),te.onKeyDown?.(Z)}}),ownerState:$}),Q=typeof k.slotProps.transition=="function"?k.slotProps.transition($):k.slotProps.transition;return h.jsx(O9,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?T9:M9,slots:{root:S.root,paper:F,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:I,paper:_,backdrop:typeof T.backdrop=="function"?T.backdrop($):T.backdrop,transition:{...Q,onEntering:(...te)=>{z(...te),Q?.onEntering?.(...te)}}},open:c,ref:n,transitionDuration:v,ownerState:$,...M,classes:y,children:h.jsx(j,{actions:V,autoFocus:o&&(H===-1||l),autoFocusItem:N,variant:w,...X,children:a})})});function P9(e){return an("MuiMenuItem",e)}const Rh=ln("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),D9=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},A9=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,d=sn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},P9,s);return{...s,...d}},j9=ot(Xu,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:D9})(Jt(({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"}},[`&.${Rh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Rh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Rh.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)}},[`&.${Rh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${w2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${w2.inset}`]:{marginLeft:52},[`& .${$f.root}`]:{marginTop:0,marginBottom:0},[`& .${$f.inset}`]:{paddingLeft:36},[`& .${O2.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,[`& .${O2.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ii=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:f,role:c="menuitem",tabIndex:m,className:y,...v}=r,b=C.useContext(Ju),x=C.useMemo(()=>({dense:s||b.dense||!1,disableGutters:d}),[b.dense,s,d]),w=C.useRef(null);Aa(()=>{o&&w.current&&w.current.focus()},[o]);const S={...r,dense:x.dense,divider:l,disableGutters:d},T=A9(r),M=po(w,n);let R;return r.disabled||(R=m!==void 0?m:-1),h.jsx(Ju.Provider,{value:x,children:h.jsx(j9,{ref:M,role:c,tabIndex:R,component:a,focusVisibleClassName:Pt(T.focusVisible,f),className:Pt(T.root,y),...v,ownerState:S,classes:T})})});function N9(e){return an("MuiNativeSelect",e)}const PC=ln("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),I9=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 sn(l,N9,t)},yj=ot("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${PC.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}}}]})),L9=ot(yj,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ha,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${PC.multiple}`]:t.multiple}]}})({}),vj=ot("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${PC.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}}]})),z9=ot(vj,{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]}})({}),F9=C.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:d="standard",...f}=t,c={...t,disabled:o,variant:d,error:a},m=I9(c);return h.jsxs(C.Fragment,{children:[h.jsx(L9,{ownerState:c,className:Pt(m.select,r),disabled:o,ref:l||n,...f}),t.multiple?null:h.jsx(z9,{as:s,ownerState:c,className:m.icon})]})});var A2;const B9=ot("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ha})({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%"}),U9=ot("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ha})(Jt(({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 _9(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",d={...e,notched:a,withLabel:l};return h.jsx(B9,{"aria-hidden":!0,className:r,ownerState:d,...s,children:h.jsx(U9,{ownerState:d,children:l?h.jsx("span",{children:o}):A2||(A2=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const V9=e=>{const{classes:t}=e,r=sn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pH,t);return{...t,...r}},H9=ot(Lb,{shouldForwardProp:e=>ha(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nb})(Jt(({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 .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ti.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ti.focused} .${Ti.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ir()).map(([n])=>({props:{color:n},style:{[`&.${Ti.focused} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ti.error} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ti.disabled} .${Ti.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"}}]}})),W9=ot(_9,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Jt(({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}})),q9=ot(zb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ib})(Jt(({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}}]}))),DC=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:d=!1,notched:f,slots:c={},slotProps:m={},type:y="text",...v}=r,b=V9(r),x=rl(),w=Yc({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:d,size:w.size,type:y},T=c.root??o.Root??H9,M=c.input??o.Input??q9,[R,$]=Dn("notchedOutline",{elementType:W9,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(kC,{slots:{root:T,input:M},slotProps:m,renderSuffix:P=>h.jsx(R,{...$,notched:typeof f<"u"?f:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:a,inputComponent:s,multiline:d,ref:n,type:y,...v,classes:{...b,notchedOutline:null}})});DC.muiName="Input";const Y9={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function bj(e){return an("MuiSelect",e)}const $h=ln("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var j2;const K9=ot(yj,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${$h.select}`]:t.select},{[`&.${$h.select}`]:t[n.variant]},{[`&.${$h.error}`]:t.error},{[`&.${$h.multiple}`]:t.multiple}]}})({[`&.${$h.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),G9=ot(vj,{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]}})({}),Q9=ot("input",{shouldForwardProp:e=>$b(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function N2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function X9(e){return e==null||typeof e=="string"&&!e.trim()}const Z9=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 sn(l,bj,t)},J9=C.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:d,defaultOpen:f,defaultValue:c,disabled:m,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:x,labelId:w,MenuProps:S={},multiple:T,name:M,onBlur:R,onChange:$,onClose:P,onFocus:N,onOpen:V,open:z,readOnly:W,renderValue:H,required:k,SelectDisplayProps:I={},tabIndex:F,type:_,value:j,variant:X="standard",...Q}=t,[te,Z]=Ac({controlled:j,default:c,name:"Select"}),[G,ne]=Ac({controlled:z,default:f,name:"Select"}),ce=C.useRef(null),pe=C.useRef(null),[oe,ae]=C.useState(null),{current:le}=C.useRef(z!=null),[ge,ye]=C.useState(),we=po(n,x),Ce=C.useCallback(ct=>{pe.current=ct,ct&&ae(ct)},[]),$e=oe?.parentNode;C.useImperativeHandle(we,()=>({focus:()=>{pe.current.focus()},node:ce.current,value:te}),[te]),C.useEffect(()=>{f&&G&&oe&&!le&&(ye(s?null:$e.clientWidth),pe.current.focus())},[oe,s]),C.useEffect(()=>{a&&pe.current.focus()},[a]),C.useEffect(()=>{if(!w)return;const ct=To(pe.current).getElementById(w);if(ct){const $t=()=>{getSelection().isCollapsed&&pe.current.focus()};return ct.addEventListener("click",$t),()=>{ct.removeEventListener("click",$t)}}},[w]);const de=(ct,$t)=>{ct?V&&V($t):P&&P($t),le||(ye(s?null:$e.clientWidth),ne(ct))},ke=ct=>{ct.button===0&&(ct.preventDefault(),pe.current.focus(),de(!0,ct))},et=ct=>{de(!1,ct)},ze=C.Children.toArray(l),Ae=ct=>{const $t=ze.find(Vt=>Vt.props.value===ct.target.value);$t!==void 0&&(Z($t.props.value),$&&$(ct,$t))},se=ct=>$t=>{let Vt;if($t.currentTarget.hasAttribute("tabindex")){if(T){Vt=Array.isArray(te)?te.slice():[];const un=te.indexOf(ct.props.value);un===-1?Vt.push(ct.props.value):Vt.splice(un,1)}else Vt=ct.props.value;if(ct.props.onClick&&ct.props.onClick($t),te!==Vt&&(Z(Vt),$)){const un=$t.nativeEvent||$t,vn=new un.constructor(un.type,un);Object.defineProperty(vn,"target",{writable:!0,value:{value:Vt,name:M}}),$(vn,ct)}T||de(!1,$t)}},bt=ct=>{W||[" ","ArrowUp","ArrowDown","Enter"].includes(ct.key)&&(ct.preventDefault(),de(!0,ct))},Fe=oe!==null&&G,it=ct=>{!Fe&&R&&(Object.defineProperty(ct,"target",{writable:!0,value:{value:te,name:M}}),R(ct))};delete Q["aria-invalid"];let pt,Ft;const _t=[];let at=!1;(Fv({value:te})||y)&&(H?pt=H(te):at=!0);const Xe=ze.map(ct=>{if(!C.isValidElement(ct))return null;let $t;if(T){if(!Array.isArray(te))throw new Error(Al(2));$t=te.some(Vt=>N2(Vt,ct.props.value)),$t&&at&&_t.push(ct.props.children)}else $t=N2(te,ct.props.value),$t&&at&&(Ft=ct.props.children);return C.cloneElement(ct,{"aria-selected":$t?"true":"false",onClick:se(ct),onKeyUp:Vt=>{Vt.key===" "&&Vt.preventDefault(),ct.props.onKeyUp&&ct.props.onKeyUp(Vt)},role:"option",selected:$t,value:void 0,"data-value":ct.props.value})});at&&(T?_t.length===0?pt=null:pt=_t.reduce((ct,$t,Vt)=>(ct.push($t),Vt<_t.length-1&&ct.push(", "),ct),[]):pt=Ft);let rt=ge;!s&&le&&oe&&(rt=$e.clientWidth);let Ne;typeof F<"u"?Ne=F:Ne=m?null:0;const he=I.id||(M?`mui-component-select-${M}`:void 0),We={...t,variant:X,value:te,open:Fe,error:v},Te=Z9(We),kt={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(We):S.slotProps?.paper},Mt={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(We):S.slotProps?.list},gt=Hc();return h.jsxs(C.Fragment,{children:[h.jsx(K9,{as:"div",ref:Ce,tabIndex:Ne,role:"combobox","aria-controls":Fe?gt:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":Fe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[w,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":k?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:bt,onMouseDown:m||W?null:ke,onBlur:it,onFocus:N,...I,ownerState:We,className:Pt(I.className,Te.select,d),id:he,children:X9(pt)?j2||(j2=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pt}),h.jsx(Q9,{"aria-invalid":v,value:Array.isArray(te)?te.join(","):te,name:M,ref:ce,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:m,className:Te.nativeInput,autoFocus:a,required:k,...Q,ownerState:We}),h.jsx(G9,{as:b,className:Te.icon,ownerState:We}),h.jsx(cd,{id:`menu-${M||""}`,anchorEl:$e,open:Fe,onClose:et,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:gt,...Mt},paper:{...kt,style:{minWidth:rt,...kt!=null?kt.style:null}}},children:Xe})]})}),eq=e=>{const{classes:t}=e,r=sn({root:["root"]},bj,t);return{...t,...r}},AC={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ha(e)&&e!=="variant"},tq=ot(OC,AC)(""),nq=ot(DC,AC)(""),rq=ot(MC,AC)(""),xj=C.forwardRef(function(t,n){const r=cn({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:c=aj,id:m,input:y,inputProps:v,label:b,labelId:x,MenuProps:w,multiple:S=!1,native:T=!1,onClose:M,onOpen:R,open:$,renderValue:P,SelectDisplayProps:N,variant:V="outlined",...z}=r,W=T?F9:J9,H=rl(),k=Yc({props:r,muiFormControl:H,states:["variant","error"]}),I=k.variant||V,F={...r,variant:I,classes:s},_=eq(F),{root:j,...X}=_,Q=y||{standard:h.jsx(tq,{ownerState:F}),outlined:h.jsx(nq,{label:b,ownerState:F}),filled:h.jsx(rq,{ownerState:F})}[I],te=po(n,ld(Q));return h.jsx(C.Fragment,{children:C.cloneElement(Q,{inputComponent:W,inputProps:{children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:S,...T?{id:m}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:x,MenuProps:w,onClose:M,onOpen:R,open:$,renderValue:P,SelectDisplayProps:{id:m,...N}},...v,classes:v?Fo(X,v.classes):X,...y?y.props.inputProps:{}},...(S&&T||f)&&I==="outlined"?{notched:!0}:{},ref:te,className:Pt(Q.props.className,l,_.root),...!y&&{variant:I},...z})})});xj.muiName="Select";function oq(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const aq=2;function hf(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function Sj(e,t){return e-t}function I2(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 Ny(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 Bv(e,t,n){return(e-t)*100/(n-t)}function iq(e,t,n){return(n-t)*e+t}function sq(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 lq(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(sq(t)))}function L2({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Sj)}function Iy({sliderRef:e,activeIndex:t,setActive:n}){const r=To(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 Ly(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?oq(e,t):!1}const cq={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}%`})}},uq=e=>e;let zy;function z2(){return zy===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?zy=CSS.supports("touch-action","none"):zy=!0),zy}function dq(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:d=0,name:f,onChange:c,onChangeCommitted:m,orientation:y="horizontal",rootRef:v,scale:b=uq,step:x=1,shiftStep:w=10,tabIndex:S,value:T}=e,M=C.useRef(void 0),[R,$]=C.useState(-1),[P,N]=C.useState(-1),[V,z]=C.useState(!1),W=C.useRef(0),H=C.useRef(null),[k,I]=Ac({controlled:T,default:n??d,name:"Slider"}),F=c&&((at,Xe,rt)=>{const Ne=at.nativeEvent||at,he=new Ne.constructor(Ne.type,Ne);Object.defineProperty(he,"target",{writable:!0,value:{value:Xe,name:f}}),H.current=Xe,c(he,Xe,rt)}),_=Array.isArray(k);let j=_?k.slice().sort(Sj):[k];j=j.map(at=>at==null?d:Mf(at,d,l));const X=s===!0&&x!==null?[...Array(Math.floor((l-d)/x)+1)].map((at,Xe)=>({value:d+x*Xe})):s||[],Q=X.map(at=>at.value),[te,Z]=C.useState(-1),G=C.useRef(null),ne=po(v,G),ce=at=>Xe=>{const rt=Number(Xe.currentTarget.getAttribute("data-index"));Fc(Xe.target)&&Z(rt),N(rt),at?.onFocus?.(Xe)},pe=at=>Xe=>{Fc(Xe.target)||Z(-1),N(-1),at?.onBlur?.(Xe)},oe=(at,Xe)=>{const rt=Number(at.currentTarget.getAttribute("data-index")),Ne=j[rt],he=Q.indexOf(Ne);let We=Xe;if(X&&x==null){const Te=Q[Q.length-1];We>=Te?We=Te:We<=Q[0]?We=Q[0]:We=We<Ne?Q[he-1]:Q[he+1]}if(We=Mf(We,d,l),_){o&&(We=Mf(We,j[rt-1]||-1/0,j[rt+1]||1/0));const Te=We;We=L2({values:j,newValue:We,index:rt});let kt=rt;o||(kt=We.indexOf(Te)),Iy({sliderRef:G,activeIndex:kt})}I(We),Z(rt),F&&!Ly(We,k)&&F(at,We,rt),m&&m(at,H.current??We)},ae=at=>Xe=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Xe.key)){Xe.preventDefault();const rt=Number(Xe.currentTarget.getAttribute("data-index")),Ne=j[rt];let he=null;if(x!=null){const We=Xe.shiftKey?w:x;switch(Xe.key){case"ArrowUp":he=hf(Ne,We,1,d,l);break;case"ArrowRight":he=hf(Ne,We,a?-1:1,d,l);break;case"ArrowDown":he=hf(Ne,We,-1,d,l);break;case"ArrowLeft":he=hf(Ne,We,a?1:-1,d,l);break;case"PageUp":he=hf(Ne,w,1,d,l);break;case"PageDown":he=hf(Ne,w,-1,d,l);break;case"Home":he=d;break;case"End":he=l;break}}else if(X){const We=Q[Q.length-1],Te=Q.indexOf(Ne),kt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Mt=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];kt.includes(Xe.key)?Te===0?he=Q[0]:he=Q[Te-1]:Mt.includes(Xe.key)&&(Te===Q.length-1?he=We:he=Q[Te+1])}he!=null&&oe(Xe,he)}at?.onKeyDown?.(Xe)};Aa(()=>{r&&G.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&R!==-1&&$(-1),r&&te!==-1&&Z(-1);const le=at=>Xe=>{at.onChange?.(Xe),oe(Xe,Xe.target.valueAsNumber)},ge=C.useRef(void 0);let ye=y;a&&y==="horizontal"&&(ye+="-reverse");const we=({finger:at,move:Xe=!1})=>{const{current:rt}=G,{width:Ne,height:he,bottom:We,left:Te}=rt.getBoundingClientRect();let kt;ye.startsWith("vertical")?kt=(We-at.y)/he:kt=(at.x-Te)/Ne,ye.includes("-reverse")&&(kt=1-kt);let Mt;if(Mt=iq(kt,d,l),x)Mt=lq(Mt,x,d);else{const ct=I2(Q,Mt);Mt=Q[ct]}Mt=Mf(Mt,d,l);let gt=0;if(_){Xe?gt=ge.current:gt=I2(j,Mt),o&&(Mt=Mf(Mt,j[gt-1]||-1/0,j[gt+1]||1/0));const ct=Mt;Mt=L2({values:j,newValue:Mt,index:gt}),o&&Xe||(gt=Mt.indexOf(ct),ge.current=gt)}return{newValue:Mt,activeIndex:gt}},Ce=Ro(at=>{const Xe=Ny(at,M);if(!Xe)return;if(W.current+=1,at.type==="mousemove"&&at.buttons===0){$e(at);return}const{newValue:rt,activeIndex:Ne}=we({finger:Xe,move:!0});Iy({sliderRef:G,activeIndex:Ne,setActive:$}),I(rt),!V&&W.current>aq&&z(!0),F&&!Ly(rt,k)&&F(at,rt,Ne)}),$e=Ro(at=>{const Xe=Ny(at,M);if(z(!1),!Xe)return;const{newValue:rt}=we({finger:Xe,move:!0});$(-1),at.type==="touchend"&&N(-1),m&&m(at,H.current??rt),M.current=void 0,ke()}),de=Ro(at=>{if(r)return;z2()||at.preventDefault();const Xe=at.changedTouches[0];Xe!=null&&(M.current=Xe.identifier);const rt=Ny(at,M);if(rt!==!1){const{newValue:he,activeIndex:We}=we({finger:rt});Iy({sliderRef:G,activeIndex:We,setActive:$}),I(he),F&&!Ly(he,k)&&F(at,he,We)}W.current=0;const Ne=To(G.current);Ne.addEventListener("touchmove",Ce,{passive:!0}),Ne.addEventListener("touchend",$e,{passive:!0})}),ke=C.useCallback(()=>{const at=To(G.current);at.removeEventListener("mousemove",Ce),at.removeEventListener("mouseup",$e),at.removeEventListener("touchmove",Ce),at.removeEventListener("touchend",$e)},[$e,Ce]);C.useEffect(()=>{const{current:at}=G;return at.addEventListener("touchstart",de,{passive:z2()}),()=>{at.removeEventListener("touchstart",de),ke()}},[ke,de]),C.useEffect(()=>{r&&ke()},[r,ke]);const et=at=>Xe=>{if(at.onMouseDown?.(Xe),r||Xe.defaultPrevented||Xe.button!==0)return;Xe.preventDefault();const rt=Ny(Xe,M);if(rt!==!1){const{newValue:he,activeIndex:We}=we({finger:rt});Iy({sliderRef:G,activeIndex:We,setActive:$}),I(he),F&&!Ly(he,k)&&F(Xe,he,We)}W.current=0;const Ne=To(G.current);Ne.addEventListener("mousemove",Ce,{passive:!0}),Ne.addEventListener("mouseup",$e)},ze=Bv(_?j[0]:d,d,l),Ae=Bv(j[j.length-1],d,l)-ze,se=(at={})=>{const Xe=Wu(at),rt={onMouseDown:et(Xe||{})},Ne={...Xe,...rt};return{...at,ref:ne,...Ne}},bt=at=>Xe=>{at.onMouseOver?.(Xe);const rt=Number(Xe.currentTarget.getAttribute("data-index"));N(rt)},Fe=at=>Xe=>{at.onMouseLeave?.(Xe),N(-1)},it=(at={})=>{const Xe=Wu(at),rt={onMouseOver:bt(Xe||{}),onMouseLeave:Fe(Xe||{})};return{...at,...Xe,...rt}},pt=at=>({pointerEvents:R!==-1&&R!==at?"none":void 0});let Ft;return y==="vertical"&&(Ft=a?"vertical-rl":"vertical-lr"),{active:R,axis:ye,axisProps:cq,dragging:V,focusedThumbIndex:te,getHiddenInputProps:(at={})=>{const Xe=Wu(at),rt={onChange:le(Xe||{}),onFocus:ce(Xe||{}),onBlur:pe(Xe||{}),onKeyDown:ae(Xe||{})},Ne={...Xe,...rt};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(l),"aria-valuemin":b(d),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:{...Y9,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ft}}},getRootProps:se,getThumbProps:it,marks:X,open:P,range:_,rootRef:ne,trackLeap:Ae,trackOffset:ze,values:j,getThumbStyle:pt}}const fq=e=>!e||!jc(e);function pq(e){return an("MuiSlider",e)}const ji=ln("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"]),hq=e=>{const{open:t}=e;return{offset:Pt(t&&ji.valueLabelOpen),circle:ji.valueLabelCircle,label:ji.valueLabelLabel}};function mq(e){const{children:t,className:n,value:r}=e,o=hq(e);return t?C.cloneElement(t,{className:t.props.className},h.jsxs(C.Fragment,{children:[t.props.children,h.jsx("span",{className:Pt(o.offset,n),"aria-hidden":!0,children:h.jsx("span",{className:o.circle,children:h.jsx("span",{className:o.label,children:r})})})]})):null}function F2(e){return e}const gq=ot("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]}})(Jt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${ji.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${ji.dragging}`]:{[`& .${ji.thumb}, & .${ji.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ir()).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}}]}))),yq=ot("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}}]}),vq=ot("span",{name:"MuiSlider",slot:"Track"})(Jt(({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(Ir()).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)})}}}))]}))),bq=ot("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)}`]]}})(Jt(({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%)"},[`&.${ji.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(Ir()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${ji.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${ji.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),xq=ot(mq,{name:"MuiSlider",slot:"ValueLabel"})(Jt(({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%"},[`&.${ji.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%"},[`&.${ji.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"}}]}))),Sq=ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>$b(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Jt(({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}}]}))),wq=ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>$b(e)&&e!=="markLabelActive"})(Jt(({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}}]}))),Cq=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:s,color:l,size:d}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${tt(l)}`,d&&`size${tt(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${tt(d)}`,l&&`thumbColor${tt(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return sn(f,pq,s)},kq=({children:e})=>e,Tq=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiSlider"}),o=ig(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:d="span",components:f={},componentsProps:c={},color:m="primary",classes:y,className:v,disableSwap:b=!1,disabled:x=!1,getAriaLabel:w,getAriaValueText:S,marks:T=!1,max:M=100,min:R=0,name:$,onChange:P,onChangeCommitted:N,orientation:V="horizontal",shiftStep:z=10,size:W="medium",step:H=1,scale:k=F2,slotProps:I,slots:F,tabIndex:_,track:j="normal",value:X,valueLabelDisplay:Q="off",valueLabelFormat:te=F2,...Z}=r,G={...r,isRtl:o,max:M,min:R,classes:y,disabled:x,disableSwap:b,orientation:V,marks:T,color:m,size:W,step:H,shiftStep:z,scale:k,track:j,valueLabelDisplay:Q,valueLabelFormat:te},{axisProps:ne,getRootProps:ce,getHiddenInputProps:pe,getThumbProps:oe,open:ae,active:le,axis:ge,focusedThumbIndex:ye,range:we,dragging:Ce,marks:$e,values:de,trackOffset:ke,trackLeap:et,getThumbStyle:ze}=dq({...G,rootRef:n});G.marked=$e.length>0&&$e.some(Qt=>Qt.label),G.dragging=Ce,G.focusedThumbIndex=ye;const Ae=Cq(G),se=F?.root??f.Root??gq,bt=F?.rail??f.Rail??yq,Fe=F?.track??f.Track??vq,it=F?.thumb??f.Thumb??bq,pt=F?.valueLabel??f.ValueLabel??xq,Ft=F?.mark??f.Mark??Sq,_t=F?.markLabel??f.MarkLabel??wq,at=F?.input??f.Input??"input",Xe=I?.root??c.root,rt=I?.rail??c.rail,Ne=I?.track??c.track,he=I?.thumb??c.thumb,We=I?.valueLabel??c.valueLabel,Te=I?.mark??c.mark,kt=I?.markLabel??c.markLabel,Mt=I?.input??c.input,gt=zs({elementType:se,getSlotProps:ce,externalSlotProps:Xe,externalForwardedProps:Z,additionalProps:{...fq(se)&&{as:d}},ownerState:{...G,...Xe?.ownerState},className:[Ae.root,v]}),ct=zs({elementType:bt,externalSlotProps:rt,ownerState:G,className:Ae.rail}),$t=zs({elementType:Fe,externalSlotProps:Ne,additionalProps:{style:{...ne[ge].offset(ke),...ne[ge].leap(et)}},ownerState:{...G,...Ne?.ownerState},className:Ae.track}),Vt=zs({elementType:it,getSlotProps:oe,externalSlotProps:he,ownerState:{...G,...he?.ownerState},className:Ae.thumb}),un=zs({elementType:pt,externalSlotProps:We,ownerState:{...G,...We?.ownerState},className:Ae.valueLabel}),vn=zs({elementType:Ft,externalSlotProps:Te,ownerState:G,className:Ae.mark}),Bn=zs({elementType:_t,externalSlotProps:kt,ownerState:G,className:Ae.markLabel}),Wn=zs({elementType:at,getSlotProps:pe,externalSlotProps:Mt,ownerState:G});return h.jsxs(se,{...gt,children:[h.jsx(bt,{...ct}),h.jsx(Fe,{...$t}),$e.filter(Qt=>Qt.value>=R&&Qt.value<=M).map((Qt,In)=>{const be=Bv(Qt.value,R,M),zn=ne[ge].offset(be);let En;return j===!1?En=de.includes(Qt.value):En=j==="normal"&&(we?Qt.value>=de[0]&&Qt.value<=de[de.length-1]:Qt.value<=de[0])||j==="inverted"&&(we?Qt.value<=de[0]||Qt.value>=de[de.length-1]:Qt.value>=de[0]),h.jsxs(C.Fragment,{children:[h.jsx(Ft,{"data-index":In,...vn,...!jc(Ft)&&{markActive:En},style:{...zn,...vn.style},className:Pt(vn.className,En&&Ae.markActive)}),Qt.label!=null?h.jsx(_t,{"aria-hidden":!0,"data-index":In,...Bn,...!jc(_t)&&{markLabelActive:En},style:{...zn,...Bn.style},className:Pt(Ae.markLabel,Bn.className,En&&Ae.markLabelActive),children:Qt.label}):null]},In)}),de.map((Qt,In)=>{const be=Bv(Qt,R,M),zn=ne[ge].offset(be),En=Q==="off"?kq:pt;return h.jsx(En,{...!jc(En)&&{valueLabelFormat:te,valueLabelDisplay:Q,value:typeof te=="function"?te(k(Qt),In):te,index:In,open:ae===In||le===In||Q==="on",disabled:x},...un,children:h.jsx(it,{"data-index":In,...Vt,className:Pt(Ae.thumb,Vt.className,le===In&&Ae.active,ye===In&&Ae.focusVisible),style:{...zn,...ze(In),...Vt.style},children:h.jsx(at,{"data-index":In,"aria-label":w?w(In):a,"aria-valuenow":k(Qt),"aria-labelledby":l,"aria-valuetext":S?S(k(Qt),In):s,value:de[In],...Wn})})},In)})]})});function Mq(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=Bu();C.useEffect(()=>{if(!o)return;function S(T){T.defaultPrevented||T.key==="Escape"&&r?.(T,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,r]);const l=Ro((S,T)=>{r?.(S,T)}),d=Ro(S=>{!r||S==null||s.start(S,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&d(t),s.clear),[o,t,d,s]);const f=S=>{r?.(S,"clickaway")},c=s.clear,m=C.useCallback(()=>{t!=null&&d(a??t*.5)},[t,a,d]),y=S=>T=>{const M=S.onBlur;M?.(T),m()},v=S=>T=>{const M=S.onFocus;M?.(T),c()},b=S=>T=>{const M=S.onMouseEnter;M?.(T),c()},x=S=>T=>{const M=S.onMouseLeave;M?.(T),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 T={...Wu(e),...Wu(S)};return{role:"presentation",...S,...T,onBlur:y(T),onFocus:v(T),onMouseEnter:b(T),onMouseLeave:x(T)}},onClickAway:f}}function Eq(e){return an("MuiSnackbarContent",e)}ln("MuiSnackbarContent",["root","message","action"]);const Oq=e=>{const{classes:t}=e;return sn({root:["root"],action:["action"],message:["message"]},Eq,t)},Rq=ot(ja,{name:"MuiSnackbarContent",slot:"Root"})(Jt(({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(gS(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:gS(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),$q=ot("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Pq=ot("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Dq=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...d}=r,f=r,c=Oq(f);return h.jsxs(Rq,{role:l,elevation:6,className:Pt(c.root,a),ownerState:f,ref:n,...d,children:[h.jsx($q,{className:c.message,ownerState:f,children:s}),o?h.jsx(Pq,{className:c.action,ownerState:f,children:o}):null]})});function Aq(e){return an("MuiSnackbar",e)}ln("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const jq=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${tt(n.vertical)}${tt(n.horizontal)}`]};return sn(r,Aq,t)},Nq=ot("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)}`]]}})(Jt(({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%)"}}}]}))),Fb=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiSnackbar"}),o=Wc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:d}={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:T,onMouseEnter:M,onMouseLeave:R,open:$,resumeHideDuration:P,slots:N={},slotProps:V={},TransitionComponent:z,transitionDuration:W=a,TransitionProps:{onEnter:H,onExited:k,...I}={},...F}=r,_={...r,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:f,disableWindowBlurListener:b,TransitionComponent:z,transitionDuration:W},j=jq(_),{getRootProps:X,onClickAway:Q}=Mq({..._}),[te,Z]=C.useState(!0),G=de=>{Z(!0),k&&k(de)},ne=(de,ke)=>{Z(!1),H&&H(de,ke)},ce={slots:{transition:z,...N},slotProps:{content:v,clickAwayListener:y,transition:I,...V}},[pe,oe]=Dn("root",{ref:n,className:[j.root,m],elementType:Nq,getSlotProps:X,externalForwardedProps:{...ce,...F},ownerState:_}),[ae,{ownerState:le,...ge}]=Dn("clickAwayListener",{elementType:v8,externalForwardedProps:ce,getSlotProps:de=>({onClickAway:(...ke)=>{const et=ke[0];de.onClickAway?.(...ke),!et?.defaultMuiPrevented&&Q(...ke)}}),ownerState:_}),[ye,we]=Dn("content",{elementType:Dq,shouldForwardComponentProp:!0,externalForwardedProps:ce,additionalProps:{message:x,action:s},ownerState:_}),[Ce,$e]=Dn("transition",{elementType:_m,externalForwardedProps:ce,getSlotProps:de=>({onEnter:(...ke)=>{de.onEnter?.(...ke),ne(...ke)},onExited:(...ke)=>{de.onExited?.(...ke),G(...ke)}}),additionalProps:{appear:!0,in:$,timeout:W,direction:l==="top"?"down":"up"},ownerState:_});return!$&&te?null:h.jsx(ae,{...ge,...N.clickAwayListener&&{ownerState:le},children:h.jsx(pe,{...oe,children:h.jsx(Ce,{...$e,children:c||h.jsx(ye,{...we})})})})});function Iq(e){return an("MuiTooltip",e)}const so=ln("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Lq(e){return Math.round(e*1e5)/1e5}const zq=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 sn(s,Iq,t)},Fq=ot(Ab,{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]}})(Jt(({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"] .${so.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${so.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${so.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${so.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${so.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${so.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${so.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${so.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Bq=ot("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])}`]]}})(Jt(({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,[`.${so.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${so.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${so.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${so.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:`${Lq(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${so.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${so.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${so.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${so.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${so.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${so.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${so.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${so.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${so.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${so.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Uq=ot("span",{name:"MuiTooltip",slot:"Arrow"})(Jt(({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 Fy=!1;const B2=new Pb;let Ph={x:0,y:0};function By(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ui=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:d={},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:T,leaveDelay:M=0,leaveTouchDelay:R=1500,onClose:$,onOpen:P,open:N,placement:V="bottom",PopperComponent:z,PopperProps:W={},slotProps:H={},slots:k={},title:I,TransitionComponent:F,TransitionProps:_,...j}=r,X=C.isValidElement(a)?a:h.jsx("span",{children:a}),Q=Wc(),te=ig(),[Z,G]=C.useState(),[ne,ce]=C.useState(null),pe=C.useRef(!1),oe=y||S,ae=Bu(),le=Bu(),ge=Bu(),ye=Bu(),[we,Ce]=Ac({controlled:N,default:!1,name:"Tooltip",state:"open"});let $e=we;const de=Hc(T),ke=C.useRef(),et=Ro(()=>{ke.current!==void 0&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),ye.clear()});C.useEffect(()=>et,[et]);const ze=Xt=>{B2.clear(),Fy=!0,Ce(!0),P&&!$e&&P(Xt)},Ae=Ro(Xt=>{B2.start(800+M,()=>{Fy=!1}),Ce(!1),$&&$e&&$(Xt),ae.start(Q.transitions.duration.shortest,()=>{pe.current=!1})}),se=Xt=>{pe.current&&Xt.type!=="touchstart"||(Z&&Z.removeAttribute("title"),le.clear(),ge.clear(),b||Fy&&x?le.start(Fy?x:b,()=>{ze(Xt)}):ze(Xt))},bt=Xt=>{le.clear(),ge.start(M,()=>{Ae(Xt)})},[,Fe]=C.useState(!1),it=Xt=>{Fc(Xt.target)||(Fe(!1),bt(Xt))},pt=Xt=>{Z||G(Xt.currentTarget),Fc(Xt.target)&&(Fe(!0),se(Xt))},Ft=Xt=>{pe.current=!0;const ie=X.props;ie.onTouchStart&&ie.onTouchStart(Xt)},_t=Xt=>{Ft(Xt),ge.clear(),ae.clear(),et(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(w,()=>{document.body.style.WebkitUserSelect=ke.current,se(Xt)})},at=Xt=>{X.props.onTouchEnd&&X.props.onTouchEnd(Xt),et(),ge.start(R,()=>{Ae(Xt)})};C.useEffect(()=>{if(!$e)return;function Xt(ie){ie.key==="Escape"&&Ae(ie)}return document.addEventListener("keydown",Xt),()=>{document.removeEventListener("keydown",Xt)}},[Ae,$e]);const Xe=po(ld(X),G,n);!I&&I!==0&&($e=!1);const rt=C.useRef(),Ne=Xt=>{const ie=X.props;ie.onMouseMove&&ie.onMouseMove(Xt),Ph={x:Xt.clientX,y:Xt.clientY},rt.current&&rt.current.update()},he={},We=typeof I=="string";f?(he.title=!$e&&We&&!m?I:null,he["aria-describedby"]=$e?de:null):(he["aria-label"]=We?I:null,he["aria-labelledby"]=$e&&!We?de:null);const Te={...he,...j,...X.props,className:Pt(j.className,X.props.className),onTouchStart:Ft,ref:Xe,...S?{onMouseMove:Ne}:{}},kt={};v||(Te.onTouchStart=_t,Te.onTouchEnd=at),m||(Te.onMouseOver=By(se,Te.onMouseOver),Te.onMouseLeave=By(bt,Te.onMouseLeave),oe||(kt.onMouseOver=se,kt.onMouseLeave=bt)),c||(Te.onFocus=By(pt,Te.onFocus),Te.onBlur=By(it,Te.onBlur),oe||(kt.onFocus=pt,kt.onBlur=it));const Mt={...r,isRtl:te,arrow:o,disableInteractive:oe,placement:V,PopperComponentProp:z,touch:pe.current},gt=typeof H.popper=="function"?H.popper(Mt):H.popper,ct=C.useMemo(()=>{let Xt=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return W.popperOptions?.modifiers&&(Xt=Xt.concat(W.popperOptions.modifiers)),gt?.popperOptions?.modifiers&&(Xt=Xt.concat(gt.popperOptions.modifiers)),{...W.popperOptions,...gt?.popperOptions,modifiers:Xt}},[ne,W.popperOptions,gt?.popperOptions]),$t=zq(Mt),Vt=typeof H.transition=="function"?H.transition(Mt):H.transition,un={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...k},slotProps:{arrow:H.arrow??d.arrow,popper:{...W,...gt??d.popper},tooltip:H.tooltip??d.tooltip,transition:{..._,...Vt??d.transition}}},[vn,Bn]=Dn("popper",{elementType:Fq,externalForwardedProps:un,ownerState:Mt,className:Pt($t.popper,W?.className)}),[Wn,Qt]=Dn("transition",{elementType:_m,externalForwardedProps:un,ownerState:Mt}),[In,be]=Dn("tooltip",{elementType:Bq,className:$t.tooltip,externalForwardedProps:un,ownerState:Mt}),[zn,En]=Dn("arrow",{elementType:Uq,className:$t.arrow,externalForwardedProps:un,ownerState:Mt,ref:ce});return h.jsxs(C.Fragment,{children:[C.cloneElement(X,Te),h.jsx(vn,{as:z??Ab,placement:V,anchorEl:S?{getBoundingClientRect:()=>({top:Ph.y,left:Ph.x,right:Ph.x,bottom:Ph.y,width:0,height:0})}:Z,popperRef:rt,open:Z?$e:!1,id:de,transition:!0,...kt,...Bn,popperOptions:ct,children:({TransitionProps:Xt})=>h.jsx(Wn,{timeout:Q.transitions.duration.shorter,...Xt,...Qt,children:h.jsxs(In,{...be,children:[I,o?h.jsx(zn,{...En}):null]})})})]})}),fr=dC({createStyledComponent:ot("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>cn({props:e,name:"MuiStack"})});function _q(e){return an("MuiSwitch",e)}const ua=ln("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Vq=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"]},d=sn(l,_q,t);return{...t,...d}},Hq=ot("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,[`& .${ua.thumb}`]:{width:16,height:16},[`& .${ua.switchBase}`]:{padding:4,[`&.${ua.checked}`]:{transform:"translateX(16px)"}}}}]}),Wq=ot(lj,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ua.input}`]:t.input},n.color!=="default"&&t[`color${tt(n.color)}`]]}})(Jt(({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}),[`&.${ua.checked}`]:{transform:"translateX(20px)"},[`&.${ua.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ua.checked} + .${ua.track}`]:{opacity:.5},[`&.${ua.disabled} + .${ua.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ua.input}`]:{left:"-100%",width:"300%"}})),Jt(({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(Ir(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ua.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"}},[`&.${ua.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)}`}},[`&.${ua.checked} + .${ua.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),qq=ot("span",{name:"MuiSwitch",slot:"Track"})(Jt(({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}`}))),Yq=ot("span",{name:"MuiSwitch",slot:"Thumb"})(Jt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),wj=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:d,slots:f={},slotProps:c={},...m}=r,y={...r,color:a,edge:s,size:l},v=Vq(y),b={slots:f,slotProps:c},[x,w]=Dn("root",{className:Pt(v.root,o),elementType:Hq,externalForwardedProps:b,ownerState:y,additionalProps:{sx:d}}),[S,T]=Dn("thumb",{className:v.thumb,elementType:Yq,externalForwardedProps:b,ownerState:y}),M=h.jsx(S,{...T}),[R,$]=Dn("track",{className:v.track,elementType:qq,externalForwardedProps:b,ownerState:y});return h.jsxs(x,{...w,children:[h.jsx(Wq,{type:"checkbox",icon:M,checkedIcon:M,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(R,{...$})]})}),Cj=C.createContext();function Kq(e){return an("MuiTable",e)}ln("MuiTable",["root","stickyHeader"]);const Gq=e=>{const{classes:t,stickyHeader:n}=e;return sn({root:["root",n&&"stickyHeader"]},Kq,t)},Qq=ot("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Jt(({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"}}]}))),U2="table",ug=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTable"}),{className:o,component:a=U2,padding:s="normal",size:l="medium",stickyHeader:d=!1,...f}=r,c={...r,component:a,padding:s,size:l,stickyHeader:d},m=Gq(c),y=C.useMemo(()=>({padding:s,size:l,stickyHeader:d}),[s,l,d]);return h.jsx(Cj.Provider,{value:y,children:h.jsx(Qq,{as:a,role:a===U2?null:"table",ref:n,className:Pt(m.root,o),ownerState:c,...f})})}),Bb=C.createContext();function Xq(e){return an("MuiTableBody",e)}ln("MuiTableBody",["root"]);const Zq=e=>{const{classes:t}=e;return sn({root:["root"]},Xq,t)},Jq=ot("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),e7={variant:"body"},_2="tbody",dg=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTableBody"}),{className:o,component:a=_2,...s}=r,l={...r,component:a},d=Zq(l);return h.jsx(Bb.Provider,{value:e7,children:h.jsx(Jq,{className:Pt(d.root,o),as:a,ref:n,role:a===_2?null:"rowgroup",ownerState:l,...s})})});function t7(e){return an("MuiTableCell",e)}const n7=ln("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),r7=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 sn(l,t7,t)},o7=ot("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]}})(Jt(({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",[`&.${n7.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}}]}))),Xn=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:d,size:f,sortDirection:c,variant:m,...y}=r,v=C.useContext(Cj),b=C.useContext(Bb),x=b&&b.variant==="head";let w;s?w=s:w=x?"th":"td";let S=d;w==="td"?S=void 0:!S&&x&&(S="col");const T=m||b&&b.variant,M={...r,align:o,component:w,padding:l||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:T==="head"&&v&&v.stickyHeader,variant:T},R=r7(M);let $=null;return c&&($=c==="asc"?"ascending":"descending"),h.jsx(o7,{as:w,ref:n,className:Pt(R.root,a),"aria-sort":$,scope:S,ownerState:M,...y})});function a7(e){return an("MuiTableContainer",e)}ln("MuiTableContainer",["root"]);const i7=e=>{const{classes:t}=e;return sn({root:["root"]},a7,t)},s7=ot("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),l7=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},d=i7(l);return h.jsx(s7,{ref:n,as:a,className:Pt(d.root,o),ownerState:l,...s})});function c7(e){return an("MuiTableHead",e)}ln("MuiTableHead",["root"]);const u7=e=>{const{classes:t}=e;return sn({root:["root"]},c7,t)},d7=ot("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),f7={variant:"head"},V2="thead",fg=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTableHead"}),{className:o,component:a=V2,...s}=r,l={...r,component:a},d=u7(l);return h.jsx(Bb.Provider,{value:f7,children:h.jsx(d7,{as:a,className:Pt(d.root,o),ref:n,role:a===V2?null:"rowgroup",ownerState:l,...s})})});function p7(e){return an("MuiTableRow",e)}const H2=ln("MuiTableRow",["root","selected","hover","head","footer"]),h7=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return sn({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},p7,t)},m7=ot("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Jt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${H2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${H2.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}`)}}}))),W2="tr",Zs=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTableRow"}),{className:o,component:a=W2,hover:s=!1,selected:l=!1,...d}=r,f=C.useContext(Bb),c={...r,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},m=h7(c);return h.jsx(m7,{as:a,ref:n,className:Pt(m.root,o),role:a===W2?null:"row",ownerState:c,...d})});function g7(e){return an("MuiTextField",e)}ln("MuiTextField",["root"]);const y7={standard:OC,filled:MC,outlined:DC},v7=e=>{const{classes:t}=e;return sn({root:["root"]},g7,t)},b7=ot(DS,{name:"MuiTextField",slot:"Root"})({}),ai=C.forwardRef(function(t,n){const r=cn({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:d="primary",defaultValue:f,disabled:c=!1,error:m=!1,FormHelperTextProps:y,fullWidth:v=!1,helperText:b,id:x,InputLabelProps:w,inputProps:S,InputProps:T,inputRef:M,label:R,maxRows:$,minRows:P,multiline:N=!1,name:V,onBlur:z,onChange:W,onFocus:H,placeholder:k,required:I=!1,rows:F,select:_=!1,SelectProps:j,slots:X={},slotProps:Q={},type:te,value:Z,variant:G="outlined",...ne}=r,ce={...r,autoFocus:a,color:d,disabled:c,error:m,fullWidth:v,multiline:N,required:I,select:_,variant:G},pe=v7(ce),oe=Hc(x),ae=b&&oe?`${oe}-helper-text`:void 0,le=R&&oe?`${oe}-label`:void 0,ge=y7[G],ye={slots:X,slotProps:{input:T,inputLabel:w,htmlInput:S,formHelperText:y,select:j,...Q}},we={},Ce=ye.slotProps.inputLabel;G==="outlined"&&(Ce&&typeof Ce.shrink<"u"&&(we.notched=Ce.shrink),we.label=R),_&&((!j||!j.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const[$e,de]=Dn("root",{elementType:b7,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...ne},ownerState:ce,className:Pt(pe.root,l),ref:n,additionalProps:{disabled:c,error:m,fullWidth:v,required:I,color:d,variant:G}}),[ke,et]=Dn("input",{elementType:ge,externalForwardedProps:ye,additionalProps:we,ownerState:ce}),[ze,Ae]=Dn("inputLabel",{elementType:VW,externalForwardedProps:ye,ownerState:ce}),[se,bt]=Dn("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:ce}),[Fe,it]=Dn("formHelperText",{elementType:AS,externalForwardedProps:ye,ownerState:ce}),[pt,Ft]=Dn("select",{elementType:xj,externalForwardedProps:ye,ownerState:ce}),_t=h.jsx(ke,{"aria-describedby":ae,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:v,multiline:N,name:V,rows:F,maxRows:$,minRows:P,type:te,value:Z,id:oe,inputRef:M,onBlur:z,onChange:W,onFocus:H,placeholder:k,inputProps:bt,slots:{input:X.htmlInput?se:void 0},...et});return h.jsxs($e,{...de,children:[R!=null&&R!==""&&h.jsx(ze,{htmlFor:oe,id:le,...Ae,children:R}),_?h.jsx(pt,{"aria-describedby":ae,id:oe,labelId:le,value:Z,input:_t,...Ft,children:s}):_t,b&&h.jsx(Fe,{id:ae,...it,children:b})]})});var 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(){}},x7={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},S7=class{#e=x7;#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)}},Uu=new S7;function w7(e){setTimeout(e,0)}var ed=typeof window>"u"||"Deno"in globalThis;function ea(){}function C7(e,t){return typeof e=="function"?e(t):e}function FS(e){return typeof e=="number"&&e>=0&&e!==1/0}function kj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nc(e,t){return typeof e=="function"?e(t):e}function Ri(e,t){return typeof e=="function"?e(t):e}function q2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==jC(s,t.options))return!1}else if(!Vm(t.queryKey,s))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function Y2(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(td(t.options.mutationKey)!==td(a))return!1}else if(!Vm(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function jC(e,t){return(t?.queryKeyHashFn||td)(e)}function td(e){return JSON.stringify(e,(t,n)=>BS(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Vm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Vm(e[n],t[n])):!1}var k7=Object.prototype.hasOwnProperty;function NC(e,t){if(e===t)return e;const n=K2(e)&&K2(t);if(!n&&!(BS(e)&&BS(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 d=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:k7.call(e,c))&&d++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){l[c]=y;continue}const v=NC(m,y);l[c]=v,v===m&&d++}return o===s&&d===o?e:l}function Hm(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 K2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function BS(e){if(!G2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!G2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function G2(e){return Object.prototype.toString.call(e)==="[object Object]"}function T7(e){return new Promise(t=>{Uu.setTimeout(t,e)})}function US(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NC(e,t):t}function M7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function E7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var IC=Symbol();function Tj(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===IC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Mj(e,t){return typeof e=="function"?e(...t):!!e}var O7=class extends ud{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ed&&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"}},LC=new O7;function _S(){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 R7=w7;function $7(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=R7;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(d=>{n(d)})})})};return{batch:l=>{let d;t++;try{d=l()}finally{t--,t||s()}return d},batchCalls:l=>(...d)=>{a(()=>{l(...d)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var lo=$7(),P7=class extends ud{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ed&&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}},Uv=new P7;function D7(e){return Math.min(1e3*2**e,3e4)}function Ej(e){return(e??"online")==="online"?Uv.isOnline():!0}var VS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Oj(e){let t=!1,n=0,r;const o=_S(),a=()=>o.status!=="pending",s=x=>{if(!a()){const w=new VS(x);y(w),e.onCancel?.(w)}},l=()=>{t=!0},d=()=>{t=!1},f=()=>LC.isFocused()&&(e.networkMode==="always"||Uv.isOnline())&&e.canRun(),c=()=>Ej(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 T=e.retry??(ed?0:3),M=e.retryDelay??D7,R=typeof M=="function"?M(n,S):M,$=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,S);if(t||!$){y(S);return}n++,e.onFail?.(n,S),T7(R).then(()=>f()?void 0:v()).then(()=>{t?y(S):b()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:d,canStart:c,start:()=>(c()?b():v().then(b),o)}}var Rj=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),FS(this.gcTime)&&(this.#e=Uu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ed?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Uu.clearTimeout(this.#e),this.#e=void 0)}},A7=class extends Rj{#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=Q2(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=Q2(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=US(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(ea).catch(ea):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ri(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===IC||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Nc(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:!kj(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(d=>d.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=Tj(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=Oj({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:l=>{l instanceof VS&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,d)=>{this.#i({type:"failed",failureCount:l,error:d})},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 VS){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,...$j(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),lo.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function $j(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ej(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Q2(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 zC=class extends ud{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=_S(),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),X2(this.#t,this.options)?this.#g():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return HS(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return HS(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 Ri(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&&!Hm(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Z2(this.#t,n,this.options,t)&&this.#g(),this.updateResult(),r&&(this.#t!==n||Ri(this.options.enabled,this.#t)!==Ri(t.enabled,this.#t)||Nc(this.options.staleTime,this.#t)!==Nc(t.staleTime,this.#t))&&this.#y();const o=this.#h();r&&(this.#t!==n||Ri(this.options.enabled,this.#t)!==Ri(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 N7(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(ea)),t}#y(){this.#x();const e=Nc(this.options.staleTime,this.#t);if(ed||this.#o.isStale||!FS(e))return;const n=kj(this.#o.dataUpdatedAt,e)+1;this.#u=Uu.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,!(ed||Ri(this.options.enabled,this.#t)===!1||!FS(this.#f)||this.#f===0)&&(this.#p=Uu.setInterval(()=>{(this.options.refetchIntervalInBackground||LC.isFocused())&&this.#g()},this.#f))}#b(){this.#y(),this.#v(this.#h())}#x(){this.#u&&(Uu.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#p&&(Uu.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,d=e!==n?e.state:this.#n,{state:f}=e;let c={...f},m=!1,y;if(t._optimisticResults){const V=this.hasListeners(),z=!V&&X2(e,t),W=V&&Z2(e,n,t,r);(z||W)&&(c={...c,...$j(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 V;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(V=o.data,w=!0):V=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,V!==void 0&&(x="success",y=US(o?.data,V,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=US(o?.data,y,t),this.#l=y,this.#i=null}catch(V){this.#i=V}this.#i&&(v=this.#i,y=this.#l,b=Date.now(),x="error");const S=c.fetchStatus==="fetching",T=x==="pending",M=x==="error",R=T&&S,$=y!==void 0,N={status:x,fetchStatus:c.fetchStatus,isPending:T,isSuccess:x==="success",isError:M,isInitialLoading:R,isLoading:R,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>d.dataUpdateCount||c.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:M&&!$,isPaused:c.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:M&&$,isStale:FC(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Ri(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const V=H=>{N.status==="error"?H.reject(N.error):N.data!==void 0&&H.resolve(N.data)},z=()=>{const H=this.#s=N.promise=_S();V(H)},W=this.#s;switch(W.status){case"pending":e.queryHash===n.queryHash&&V(W);break;case"fulfilled":(N.status==="error"||N.data!==W.value)&&z();break;case"rejected":(N.status!=="error"||N.error!==W.reason)&&z();break}}return N}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),Hm(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){lo.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function j7(e,t){return Ri(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function X2(e,t){return j7(e,t)||e.state.data!==void 0&&HS(e,t,t.refetchOnMount)}function HS(e,t,n){if(Ri(t.enabled,e)!==!1&&Nc(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&FC(e,t)}return!1}function Z2(e,t,n,r){return(e!==t||Ri(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&FC(e,n)}function FC(e,t){return Ri(t.enabled,e)!==!1&&e.isStaleByTime(Nc(t.staleTime,e))}function N7(e,t){return!Hm(e.getCurrentResult(),t)}function J2(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:[]},d=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=Tj(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 T=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};return m(P),P})(),M=await y(T),{maxPages:R}=t.options,$=w?E7:M7;return{pages:$(b.pages,M,R),pageParams:$(b.pageParams,x,R)}};if(o&&a.length){const b=o==="backward",x=b?I7:eR,w={pages:a,pageParams:s},S=x(r,w);l=await v(w,S,b)}else{const b=e??a.length;do{const x=d===0?s[0]??r.initialPageParam:eR(r,l);if(d>0&&x==null)break;l=await v(l,x),d++}while(d<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 eR(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 I7(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var L7=class extends Rj{#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||Pj(),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=Oj({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),lo.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Pj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var z7=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 L7({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=Uy(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=Uy(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=Uy(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=Uy(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){lo.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=>Y2(t,n))}findAll(e={}){return this.getAll().filter(t=>Y2(e,t))}notify(e){lo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return lo.batch(()=>Promise.all(e.map(t=>t.continue().catch(ea))))}};function Uy(e){return e.options.scope?.id}var F7=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),Hm(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&td(n.mutationKey)!==td(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??Pj();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){lo.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 tR(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function B7(e,t,n){const r=e.slice(0);return r[t]=n,r}var U7=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,lo.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]),d=s||l,f=d?!0:a.some((c,m)=>{const y=this.#t[m];return!y||!Hm(c,y)});!d&&!f||(d&&(this.#r=o),this.#t=a,this.hasListeners()&&(d&&(tR(n,o).forEach(c=>{c.destroy()}),tR(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=NC(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 zC(this.#e,o)})}),n}#p(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#t=B7(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&&lo.batch(()=>{this.listeners.forEach(r=>{r(this.#t)})})}}},_7=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??jC(r,t);let a=this.get(o);return a||(a=new A7({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(){lo.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=>q2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>q2(e,n)):t}notify(e){lo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){lo.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){lo.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},V7=class{#e;#t;#n;#o;#r;#a;#s;#i;constructor(e={}){this.#e=e.queryCache||new _7,this.#t=e.mutationCache||new z7,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=LC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Uv.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(Nc(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=C7(t,a);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return lo.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;lo.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return lo.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=lo.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ea).catch(ea)}invalidateQueries(e,t={}){return lo.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=lo.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(ea)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ea)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Nc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ea).catch(ea)}fetchInfiniteQuery(e){return e.behavior=J2(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ea).catch(ea)}ensureInfiniteQueryData(e){return e.behavior=J2(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uv.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(td(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Vm(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(td(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Vm(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=jC(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===IC&&(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()}},Dj=C.createContext(void 0),dd=e=>{const t=C.useContext(Dj);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},H7=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(Dj.Provider,{value:e,children:t})),Aj=C.createContext(!1),jj=()=>C.useContext(Aj);Aj.Provider;function W7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var q7=C.createContext(W7()),Nj=()=>C.useContext(q7),Ij=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Lj=e=>{C.useEffect(()=>{e.clearReset()},[e])},zj=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Mj(n,[e.error,r])),Fj=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))}},Bj=(e,t)=>e.isLoading&&e.isFetching&&!t,WS=(e,t)=>e?.suspense&&t.isPending,_v=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Y7({queries:e,...t},n){const r=dd(n),o=jj(),a=Nj(),s=C.useMemo(()=>e.map(x=>{const w=r.defaultQueryOptions(x);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);s.forEach(x=>{Fj(x),Ij(x,a)}),Lj(a);const[l]=C.useState(()=>new U7(r,s,t)),[d,f,c]=l.getOptimisticResult(s,t.combine),m=!o&&t.subscribed!==!1;C.useSyncExternalStore(C.useCallback(x=>m?l.subscribe(lo.batchCalls(x)):ea,[l,m]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setQueries(s,t)},[s,t,l]);const v=d.some((x,w)=>WS(s[w],x))?d.flatMap((x,w)=>{const S=s[w];if(S){const T=new zC(r,S);if(WS(S,x))return _v(S,T,a);Bj(x,o)&&_v(S,T,a)}return[]}):[];if(v.length>0)throw Promise.all(v);const b=d.find((x,w)=>{const S=s[w];return S&&zj({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 K7(e,t,n){const r=jj(),o=Nj(),a=dd(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",Fj(s),Ij(s,o),Lj(o);const l=!a.getQueryCache().get(s.queryHash),[d]=C.useState(()=>new t(a,s)),f=d.getOptimisticResult(s),c=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const y=c?d.subscribe(lo.batchCalls(m)):ea;return d.updateResult(),y},[d,c]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),C.useEffect(()=>{d.setOptions(s)},[s,d]),WS(s,f))throw _v(s,d,o);if(zj({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&&!ed&&Bj(f,r)&&(l?_v(s,d,o):a.getQueryCache().get(s.queryHash)?.promise)?.catch(ea).finally(()=>{d.updateResult()}),s.notifyOnChangeProps?f:d.trackResult(f)}function Uj(e,t){return K7(e,zC,t)}function G7(e,t){const n=dd(t),[r]=C.useState(()=>new F7(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(lo.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=C.useCallback((s,l)=>{r.mutate(s,l).catch(ea)},[r]);if(o.error&&Mj(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function _j(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q7}=Object.prototype,{getPrototypeOf:BC}=Object,{iterator:Ub,toStringTag:Vj}=Symbol,_b=(e=>t=>{const n=Q7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hs=e=>(e=e.toLowerCase(),t=>_b(t)===e),Vb=e=>t=>typeof t===e,{isArray:fp}=Array,Qf=Vb("undefined");function pg(e){return e!==null&&!Qf(e)&&e.constructor!==null&&!Qf(e.constructor)&&Oa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hj=hs("ArrayBuffer");function X7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hj(e.buffer),t}const Z7=Vb("string"),Oa=Vb("function"),Wj=Vb("number"),hg=e=>e!==null&&typeof e=="object",J7=e=>e===!0||e===!1,yv=e=>{if(_b(e)!=="object")return!1;const t=BC(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vj in e)&&!(Ub in e)},eY=e=>{if(!hg(e)||pg(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tY=hs("Date"),nY=hs("File"),rY=hs("Blob"),oY=hs("FileList"),aY=e=>hg(e)&&Oa(e.pipe),iY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oa(e.append)&&((t=_b(e))==="formdata"||t==="object"&&Oa(e.toString)&&e.toString()==="[object FormData]"))},sY=hs("URLSearchParams"),[lY,cY,uY,dY]=["ReadableStream","Request","Response","Headers"].map(hs),fY=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),fp(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(pg(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 qj(e,t){if(pg(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 _u=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yj=e=>!Qf(e)&&e!==_u;function qS(){const{caseless:e,skipUndefined:t}=Yj(this)&&this||{},n={},r=(o,a)=>{const s=e&&qj(n,a)||a;yv(n[s])&&yv(o)?n[s]=qS(n[s],o):yv(o)?n[s]=qS({},o):fp(o)?n[s]=o.slice():(!t||!Qf(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&mg(arguments[o],r);return n}const pY=(e,t,n,{allOwnKeys:r}={})=>(mg(t,(o,a)=>{n&&Oa(o)?e[a]=_j(o,n):e[a]=o},{allOwnKeys:r}),e),hY=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mY=(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)},gY=(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&&BC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yY=(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},vY=e=>{if(!e)return null;if(fp(e))return e;let t=e.length;if(!Wj(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bY=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&BC(Uint8Array)),xY=(e,t)=>{const r=(e&&e[Ub]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},SY=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wY=hs("HTMLFormElement"),CY=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),nR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kY=hs("RegExp"),Kj=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mg(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},TY=e=>{Kj(e,(t,n)=>{if(Oa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oa(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+"'")})}})},MY=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return fp(e)?r(e):r(String(e).split(t)),n},EY=()=>{},OY=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function RY(e){return!!(e&&Oa(e.append)&&e[Vj]==="FormData"&&e[Ub])}const $Y=e=>{const t=new Array(10),n=(r,o)=>{if(hg(r)){if(t.indexOf(r)>=0)return;if(pg(r))return r;if(!("toJSON"in r)){t[o]=r;const a=fp(r)?[]:{};return mg(r,(s,l)=>{const d=n(s,o+1);!Qf(d)&&(a[l]=d)}),t[o]=void 0,a}}return r};return n(e,0)},PY=hs("AsyncFunction"),DY=e=>e&&(hg(e)||Oa(e))&&Oa(e.then)&&Oa(e.catch),Gj=((e,t)=>e?setImmediate:t?((n,r)=>(_u.addEventListener("message",({source:o,data:a})=>{o===_u&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),_u.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oa(_u.postMessage)),AY=typeof queueMicrotask<"u"?queueMicrotask.bind(_u):typeof process<"u"&&process.nextTick||Gj,jY=e=>e!=null&&Oa(e[Ub]),Je={isArray:fp,isArrayBuffer:Hj,isBuffer:pg,isFormData:iY,isArrayBufferView:X7,isString:Z7,isNumber:Wj,isBoolean:J7,isObject:hg,isPlainObject:yv,isEmptyObject:eY,isReadableStream:lY,isRequest:cY,isResponse:uY,isHeaders:dY,isUndefined:Qf,isDate:tY,isFile:nY,isBlob:rY,isRegExp:kY,isFunction:Oa,isStream:aY,isURLSearchParams:sY,isTypedArray:bY,isFileList:oY,forEach:mg,merge:qS,extend:pY,trim:fY,stripBOM:hY,inherits:mY,toFlatObject:gY,kindOf:_b,kindOfTest:hs,endsWith:yY,toArray:vY,forEachEntry:xY,matchAll:SY,isHTMLForm:wY,hasOwnProperty:nR,hasOwnProp:nR,reduceDescriptors:Kj,freezeMethods:TY,toObjectSet:MY,toCamelCase:CY,noop:EY,toFiniteNumber:OY,findKey:qj,global:_u,isContextDefined:Yj,isSpecCompliantForm:RY,toJSONObject:$Y,isAsyncFn:PY,isThenable:DY,setImmediate:Gj,asap:AY,isIterable:jY};function Un(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)}Je.inherits(Un,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:Je.toJSONObject(this.config),code:this.code,status:this.status}}});const Qj=Un.prototype,Xj={};["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=>{Xj[e]={value:e}});Object.defineProperties(Un,Xj);Object.defineProperty(Qj,"isAxiosError",{value:!0});Un.from=(e,t,n,r,o,a)=>{const s=Object.create(Qj);Je.toFlatObject(e,s,function(c){return c!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Un.call(s,l,d,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 NY=null;function YS(e){return Je.isPlainObject(e)||Je.isArray(e)}function Zj(e){return Je.endsWith(e,"[]")?e.slice(0,-2):e}function rR(e,t,n){return e?e.concat(t).map(function(o,a){return o=Zj(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function IY(e){return Je.isArray(e)&&!e.some(YS)}const LY=Je.toFlatObject(Je,{},null,function(t){return/^is[A-Z]/.test(t)});function Hb(e,t,n){if(!Je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!Je.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||c,a=n.dots,s=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&Je.isSpecCompliantForm(t);if(!Je.isFunction(o))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(Je.isDate(b))return b.toISOString();if(Je.isBoolean(b))return b.toString();if(!d&&Je.isBlob(b))throw new Un("Blob is not supported. Use a Buffer instead.");return Je.isArrayBuffer(b)||Je.isTypedArray(b)?d&&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(Je.endsWith(x,"{}"))x=r?x:x.slice(0,-2),b=JSON.stringify(b);else if(Je.isArray(b)&&IY(b)||(Je.isFileList(b)||Je.endsWith(x,"[]"))&&(S=Je.toArray(b)))return x=Zj(x),S.forEach(function(M,R){!(Je.isUndefined(M)||M===null)&&t.append(s===!0?rR([x],R,a):s===null?x:x+"[]",f(M))}),!1}return YS(b)?!0:(t.append(rR(w,x,a),f(b)),!1)}const m=[],y=Object.assign(LY,{defaultVisitor:c,convertValue:f,isVisitable:YS});function v(b,x){if(!Je.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+x.join("."));m.push(b),Je.forEach(b,function(S,T){(!(Je.isUndefined(S)||S===null)&&o.call(t,S,Je.isString(T)?T.trim():T,x,y))===!0&&v(S,x?x.concat(T):[T])}),m.pop()}}if(!Je.isObject(e))throw new TypeError("data must be an object");return v(e),t}function oR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function UC(e,t){this._pairs=[],e&&Hb(e,this,t)}const Jj=UC.prototype;Jj.append=function(t,n){this._pairs.push([t,n])};Jj.toString=function(t){const n=t?function(r){return t.call(this,r,oR)}:oR;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zY(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eN(e,t,n){if(!t)return e;const r=n&&n.encode||zY;Je.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Je.isURLSearchParams(t)?t.toString():new UC(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class aR{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){Je.forEach(this.handlers,function(r){r!==null&&t(r)})}}const tN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FY=typeof URLSearchParams<"u"?URLSearchParams:UC,BY=typeof FormData<"u"?FormData:null,UY=typeof Blob<"u"?Blob:null,_Y={isBrowser:!0,classes:{URLSearchParams:FY,FormData:BY,Blob:UY},protocols:["http","https","file","blob","url","data"]},_C=typeof window<"u"&&typeof document<"u",KS=typeof navigator=="object"&&navigator||void 0,VY=_C&&(!KS||["ReactNative","NativeScript","NS"].indexOf(KS.product)<0),HY=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WY=_C&&window.location.href||"http://localhost",qY=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_C,hasStandardBrowserEnv:VY,hasStandardBrowserWebWorkerEnv:HY,navigator:KS,origin:WY},Symbol.toStringTag,{value:"Module"})),ta={...qY,..._Y};function YY(e,t){return Hb(e,new ta.classes.URLSearchParams,{visitor:function(n,r,o,a){return ta.isNode&&Je.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function KY(e){return Je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GY(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 nN(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),d=a>=n.length;return s=!s&&Je.isArray(o)?o.length:s,d?(Je.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Je.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Je.isArray(o[s])&&(o[s]=GY(o[s])),!l)}if(Je.isFormData(e)&&Je.isFunction(e.entries)){const n={};return Je.forEachEntry(e,(r,o)=>{t(KY(r),o,n,0)}),n}return null}function QY(e,t,n){if(Je.isString(e))try{return(t||JSON.parse)(e),Je.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gg={transitional:tN,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Je.isObject(t);if(a&&Je.isHTMLForm(t)&&(t=new FormData(t)),Je.isFormData(t))return o?JSON.stringify(nN(t)):t;if(Je.isArrayBuffer(t)||Je.isBuffer(t)||Je.isStream(t)||Je.isFile(t)||Je.isBlob(t)||Je.isReadableStream(t))return t;if(Je.isArrayBufferView(t))return t.buffer;if(Je.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 YY(t,this.formSerializer).toString();if((l=Je.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Hb(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),QY(t)):t}],transformResponse:[function(t){const n=this.transitional||gg.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Je.isResponse(t)||Je.isReadableStream(t))return t;if(t&&Je.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"?Un.from(l,Un.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:ta.classes.FormData,Blob:ta.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Je.forEach(["delete","get","head","post","put","patch"],e=>{gg.headers[e]={}});const XY=Je.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"]),ZY=e=>{const t={};let n,r,o;return e&&e.split(`
266
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&XY[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},iR=Symbol("internals");function Dh(e){return e&&String(e).trim().toLowerCase()}function vv(e){return e===!1||e==null?e:Je.isArray(e)?e.map(vv):String(e)}function JY(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 eK=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function k1(e,t,n,r,o){if(Je.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Je.isString(t)){if(Je.isString(r))return t.indexOf(r)!==-1;if(Je.isRegExp(r))return r.test(t)}}function tK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nK(e,t){const n=Je.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 Ra=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,d,f){const c=Dh(d);if(!c)throw new Error("header name must be a non-empty string");const m=Je.findKey(o,c);(!m||o[m]===void 0||f===!0||f===void 0&&o[m]!==!1)&&(o[m||d]=vv(l))}const s=(l,d)=>Je.forEach(l,(f,c)=>a(f,c,d));if(Je.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Je.isString(t)&&(t=t.trim())&&!eK(t))s(ZY(t),n);else if(Je.isObject(t)&&Je.isIterable(t)){let l={},d,f;for(const c of t){if(!Je.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[f=c[0]]=(d=l[f])?Je.isArray(d)?[...d,c[1]]:[d,c[1]]:c[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Dh(t),t){const r=Je.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return JY(o);if(Je.isFunction(n))return n.call(this,o,r);if(Je.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Dh(t),t){const r=Je.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||k1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Dh(s),s){const l=Je.findKey(r,s);l&&(!n||k1(r,r[l],l,n))&&(delete r[l],o=!0)}}return Je.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||k1(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Je.forEach(this,(o,a)=>{const s=Je.findKey(r,a);if(s){n[s]=vv(o),delete n[a];return}const l=t?tK(a):String(a).trim();l!==a&&delete n[a],n[l]=vv(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Je.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Je.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(`
267
+ `)}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[iR]=this[iR]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=Dh(s);r[l]||(nK(o,s),r[l]=!0)}return Je.isArray(t)?t.forEach(a):a(t),this}};Ra.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Je.reduceDescriptors(Ra.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Je.freezeMethods(Ra);function T1(e,t){const n=this||gg,r=t||n,o=Ra.from(r.headers);let a=r.data;return Je.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function rN(e){return!!(e&&e.__CANCEL__)}function pp(e,t,n){Un.call(this,e??"canceled",Un.ERR_CANCELED,t,n),this.name="CanceledError"}Je.inherits(pp,Un,{__CANCEL__:!0});function oN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Un("Request failed with status code "+n.status,[Un.ERR_BAD_REQUEST,Un.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oK(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(d){const f=Date.now(),c=r[a];s||(s=f),n[o]=d,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 aK(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 Vv=(e,t,n=3)=>{let r=0;const o=oK(50,250);return aK(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,d=s-r,f=o(d),c=s<=l;r=s;const m={loaded:s,total:l,progress:l?s/l:void 0,bytes:d,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)},sR=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},lR=e=>(...t)=>Je.asap(()=>e(...t)),iK=ta.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ta.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ta.origin),ta.navigator&&/(msie|trident)/i.test(ta.navigator.userAgent)):()=>!0,sK=ta.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Je.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Je.isString(r)&&s.push("path="+r),Je.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 lK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function aN(e,t,n){let r=!lK(t);return e&&(r||n==!1)?cK(e,t):t}const cR=e=>e instanceof Ra?{...e}:e;function nd(e,t){t=t||{};const n={};function r(f,c,m,y){return Je.isPlainObject(f)&&Je.isPlainObject(c)?Je.merge.call({caseless:y},f,c):Je.isPlainObject(c)?Je.merge({},c):Je.isArray(c)?c.slice():c}function o(f,c,m,y){if(Je.isUndefined(c)){if(!Je.isUndefined(f))return r(void 0,f,m,y)}else return r(f,c,m,y)}function a(f,c){if(!Je.isUndefined(c))return r(void 0,c)}function s(f,c){if(Je.isUndefined(c)){if(!Je.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 d={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(cR(f),cR(c),m,!0)};return Je.forEach(Object.keys({...e,...t}),function(c){const m=d[c]||o,y=m(e[c],t[c],c);Je.isUndefined(y)&&m!==l||(n[c]=y)}),n}const iN=e=>{const t=nd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ra.from(s),t.url=eN(aN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Je.isFormData(n)){if(ta.hasStandardBrowserEnv||ta.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Je.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([c,m])=>{f.includes(c.toLowerCase())&&s.set(c,m)})}}if(ta.hasStandardBrowserEnv&&(r&&Je.isFunction(r)&&(r=r(t)),r||r!==!1&&iK(t.url))){const d=o&&a&&sK.read(a);d&&s.set(o,d)}return t},uK=typeof XMLHttpRequest<"u",dK=uK&&function(e){return new Promise(function(n,r){const o=iN(e);let a=o.data;const s=Ra.from(o.headers).normalize();let{responseType:l,onUploadProgress:d,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 M=Ra.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),$={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:M,config:e,request:w};oN(function(N){n(N),x()},function(N){r(N),x()},$),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 Un("Request aborted",Un.ECONNABORTED,e,w)),w=null)},w.onerror=function(R){const $=R&&R.message?R.message:"Network Error",P=new Un($,Un.ERR_NETWORK,e,w);P.event=R||null,r(P),w=null},w.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||tN;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new Un(R,$.clarifyTimeoutError?Un.ETIMEDOUT:Un.ECONNABORTED,e,w)),w=null},a===void 0&&s.setContentType(null),"setRequestHeader"in w&&Je.forEach(s.toJSON(),function(R,$){w.setRequestHeader($,R)}),Je.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),l&&l!=="json"&&(w.responseType=o.responseType),f&&([y,b]=Vv(f,!0),w.addEventListener("progress",y)),d&&w.upload&&([m,v]=Vv(d),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(c=M=>{w&&(r(!M||M.type?new pp(null,e,w):M),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const T=rK(o.url);if(T&&ta.protocols.indexOf(T)===-1){r(new Un("Unsupported protocol "+T+":",Un.ERR_BAD_REQUEST,e));return}w.send(a||null)})},fK=(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 Un?c:new pp(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,a(new Un(`timeout ${t} of ms exceeded`,Un.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:d}=r;return d.unsubscribe=()=>Je.asap(l),d}},pK=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},hK=async function*(e,t){for await(const n of mK(e))yield*pK(n,t)},mK=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()}},uR=(e,t,n,r)=>{const o=hK(e,t);let a=0,s,l=d=>{s||(s=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:c}=await o.next();if(f){l(),d.close();return}let m=c.byteLength;if(n){let y=a+=m;n(y)}d.enqueue(new Uint8Array(c))}catch(f){throw l(f),f}},cancel(d){return l(d),o.return()}},{highWaterMark:2})},dR=64*1024,{isFunction:_y}=Je,gK=(({Request:e,Response:t})=>({Request:e,Response:t}))(Je.global),{ReadableStream:fR,TextEncoder:pR}=Je.global,hR=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yK=e=>{e=Je.merge.call({skipUndefined:!0},gK,e);const{fetch:t,Request:n,Response:r}=e,o=t?_y(t):typeof fetch=="function",a=_y(n),s=_y(r);if(!o)return!1;const l=o&&_y(fR),d=o&&(typeof pR=="function"?(b=>x=>b.encode(x))(new pR):async b=>new Uint8Array(await new n(b).arrayBuffer())),f=a&&l&&hR(()=>{let b=!1;const x=new n(ta.origin,{body:new fR,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!x}),c=s&&l&&hR(()=>Je.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 Un(`Response type '${b}' is not supported`,Un.ERR_NOT_SUPPORT,w)})});const y=async b=>{if(b==null)return 0;if(Je.isBlob(b))return b.size;if(Je.isSpecCompliantForm(b))return(await new n(ta.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Je.isArrayBufferView(b)||Je.isArrayBuffer(b))return b.byteLength;if(Je.isURLSearchParams(b)&&(b=b+""),Je.isString(b))return(await d(b)).byteLength},v=async(b,x)=>{const w=Je.toFiniteNumber(b.getContentLength());return w??y(x)};return async b=>{let{url:x,method:w,data:S,signal:T,cancelToken:M,timeout:R,onDownloadProgress:$,onUploadProgress:P,responseType:N,headers:V,withCredentials:z="same-origin",fetchOptions:W}=iN(b),H=t||fetch;N=N?(N+"").toLowerCase():"text";let k=fK([T,M&&M.toAbortSignal()],R),I=null;const F=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let _;try{if(P&&f&&w!=="get"&&w!=="head"&&(_=await v(V,S))!==0){let G=new n(x,{method:"POST",body:S,duplex:"half"}),ne;if(Je.isFormData(S)&&(ne=G.headers.get("content-type"))&&V.setContentType(ne),G.body){const[ce,pe]=sR(_,Vv(lR(P)));S=uR(G.body,dR,ce,pe)}}Je.isString(z)||(z=z?"include":"omit");const j=a&&"credentials"in n.prototype,X={...W,signal:k,method:w.toUpperCase(),headers:V.normalize().toJSON(),body:S,duplex:"half",credentials:j?z:void 0};I=a&&new n(x,X);let Q=await(a?H(I,W):H(x,X));const te=c&&(N==="stream"||N==="response");if(c&&($||te&&F)){const G={};["status","statusText","headers"].forEach(oe=>{G[oe]=Q[oe]});const ne=Je.toFiniteNumber(Q.headers.get("content-length")),[ce,pe]=$&&sR(ne,Vv(lR($),!0))||[];Q=new r(uR(Q.body,dR,ce,()=>{pe&&pe(),F&&F()}),G)}N=N||"text";let Z=await m[Je.findKey(m,N)||"text"](Q,b);return!te&&F&&F(),await new Promise((G,ne)=>{oN(G,ne,{data:Z,headers:Ra.from(Q.headers),status:Q.status,statusText:Q.statusText,config:b,request:I})})}catch(j){throw F&&F(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new Un("Network Error",Un.ERR_NETWORK,b,I),{cause:j.cause||j}):Un.from(j,j&&j.code,b,I)}}},vK=new Map,sN=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,d,f,c=vK;for(;l--;)d=a[l],f=c.get(d),f===void 0&&c.set(d,f=l?new Map:yK(t)),c=f;return f};sN();const GS={http:NY,xhr:dK,fetch:{get:sN}};Je.forEach(GS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mR=e=>`- ${e}`,bK=e=>Je.isFunction(e)||e===null||e===!1,lN={getAdapter:(e,t)=>{e=Je.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,!bK(r)&&(o=GS[(l=String(r)).toLowerCase()],o===void 0))throw new Un(`Unknown adapter '${l}'`);if(o&&(Je.isFunction(o)||(o=o.get(t))))break;a[l||"#"+s]=o}if(!o){const s=Object.entries(a).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since :
268
+ `+s.map(mR).join(`
269
+ `):" "+mR(s[0]):"as no adapter specified";throw new Un("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:GS};function M1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pp(null,e)}function gR(e){return M1(e),e.headers=Ra.from(e.headers),e.data=T1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lN.getAdapter(e.adapter||gg.adapter,e)(e).then(function(r){return M1(e),r.data=T1.call(e,e.transformResponse,r),r.headers=Ra.from(r.headers),r},function(r){return rN(r)||(M1(e),r&&r.response&&(r.response.data=T1.call(e,e.transformResponse,r.response),r.response.headers=Ra.from(r.response.headers))),Promise.reject(r)})}const cN="1.12.2",Wb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yR={};Wb.transitional=function(t,n,r){function o(a,s){return"[Axios v"+cN+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Un(o(s," has been removed"+(n?" in "+n:"")),Un.ERR_DEPRECATED);return n&&!yR[s]&&(yR[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}};Wb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xK(e,t,n){if(typeof e!="object")throw new Un("options must be an object",Un.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],d=l===void 0||s(l,a,e);if(d!==!0)throw new Un("option "+a+" must be "+d,Un.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Un("Unknown option "+a,Un.ERR_BAD_OPTION)}}const bv={assertOptions:xK,validators:Wb},Ns=bv.validators;let Yu=class{constructor(t){this.defaults=t||{},this.interceptors={request:new aR,response:new aR}}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+=`
270
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=nd(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&bv.assertOptions(r,{silentJSONParsing:Ns.transitional(Ns.boolean),forcedJSONParsing:Ns.transitional(Ns.boolean),clarifyTimeoutError:Ns.transitional(Ns.boolean)},!1),o!=null&&(Je.isFunction(o)?n.paramsSerializer={serialize:o}:bv.assertOptions(o,{encode:Ns.function,serialize:Ns.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),bv.assertOptions(n,{baseUrl:Ns.spelling("baseURL"),withXsrfToken:Ns.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Je.merge(a.common,a[n.method]);a&&Je.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=Ra.concat(s,a);const l=[];let d=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(d=d&&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(!d){const b=[gR.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=gR.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=nd(this.defaults,t);const n=aN(t.baseURL,t.url,t.allowAbsoluteUrls);return eN(n,t.params,t.paramsSerializer)}};Je.forEach(["delete","get","head","options"],function(t){Yu.prototype[t]=function(n,r){return this.request(nd(r||{},{method:t,url:n,data:(r||{}).data}))}});Je.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,l){return this.request(nd(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Yu.prototype[t]=n(),Yu.prototype[t+"Form"]=n(!0)});let SK=class uN{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 pp(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 uN(function(o){t=o}),cancel:t}}};function wK(e){return function(n){return e.apply(null,n)}}function CK(e){return Je.isObject(e)&&e.isAxiosError===!0}const QS={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(QS).forEach(([e,t])=>{QS[t]=e});function dN(e){const t=new Yu(e),n=_j(Yu.prototype.request,t);return Je.extend(n,Yu.prototype,t,{allOwnKeys:!0}),Je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return dN(nd(e,o))},n}const zt=dN(gg);zt.Axios=Yu;zt.CanceledError=pp;zt.CancelToken=SK;zt.isCancel=rN;zt.VERSION=cN;zt.toFormData=Hb;zt.AxiosError=Un;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=wK;zt.isAxiosError=CK;zt.mergeConfig=nd;zt.AxiosHeaders=Ra;zt.formToJSON=e=>nN(Je.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=lN.getAdapter;zt.HttpStatusCode=QS;zt.default=zt;const{Axios:nhe,AxiosError:rhe,CanceledError:ohe,isCancel:ahe,CancelToken:ihe,VERSION:she,all:lhe,Cancel:che,isAxiosError:uhe,spread:dhe,toFormData:fhe,AxiosHeaders:phe,HttpStatusCode:hhe,formToJSON:mhe,getAdapter:ghe,mergeConfig:yhe}=zt,_r={blue:"#2563eb",violet:"#7c3aed",pink:"#be185d",red:"#dc2626",orange:"#c2410c",amber:"#b45309",lime:"#4d7c0f",emerald:"#059669",teal:"#0f766e",cyan:"#0e7490"},VC={environment:_r.emerald,package:_r.teal,connection:_r.orange},Ai='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',kK=ot(qH)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),TK=ot(QH)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),fN=ot(n8)({padding:"0"}),MK=ot("div")(({theme:e})=>({backgroundColor:e.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"})),EK=ot("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),um=ot("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),OK=ot("div")({height:"100%"}),pN=ot("div")({height:"75vh",width:"100%",overflowY:"auto"}),RK=[_r.blue,_r.orange,_r.emerald,_r.pink,_r.violet,_r.amber,_r.cyan,_r.lime],$K="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",vR={palette:{series:RK,background:{light:"#ffffff",dark:"#1e293b"},tableHeader:{light:"#475569",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f8fafc",dark:"#1e293b"},tableBody:{light:"#475569",dark:"#e2e8f0"},tile:{light:"#f8fafc",dark:"#0f172a"},tileTitle:{light:"#475569",dark:"#94a3b8"},mapColor:{light:_r.blue,dark:_r.blue}},font:{family:$K,size:12}},PK=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function hN(e,t){const n=vR.palette??{},r=vR.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 PK){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 d=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:d?"1px solid #334155":"1px solid #e2e8f0",pinnedBorder:d?"1px solid #475569":"1px solid #cbd5e1",valueColor:d?"#f1f5f9":"#0f172a",foreground:d?"#e2e8f0":"#0f172a",axisFaint:d?"#475569":"#cbd5e1",dashboardRoot:d?"#1e293b":"#ffffff",drillLink:d?"#60a5fa":_r.blue}}function DK(e,t,n){const r=t??e??"light";return r==="auto"?n?"dark":"light":r}const mN=C.createContext(void 0);function AK({layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o=!0,children:a}){const s=C.useMemo(()=>hN(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(mN.Provider,{value:l,children:a})}function Bl(){return C.useContext(mN)||{theme:hN([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const yn="http://localhost/api/v0".replace(/\/+$/,"");let ms=class{constructor(t,n=yn,r=zt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},jK=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const wn={},Cn="https://example.com",ft=function(e,t,n){if(n==null)throw new jK(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function XS(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>XS(e,r,n)):Object.keys(t).forEach(r=>XS(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const kn=function(e,...t){const n=new URLSearchParams(e.search);XS(n,t),e.search=n.toString()},zo=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||""},Tn=function(e){return e.pathname+e.search+e.hash},Mn=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)}},gN={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},bR={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},da={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},Vy={Version:"version",Package:"package"},NK=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,Cn);let l;e&&(l=e.baseOptions);const d={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}},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,Cn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},d={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...d,...f,...r.headers},{url:Tn(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,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},d={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...d,...f,...r.headers},{url:Tn(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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={};kn(l,{});let m=d&&d.headers?d.headers:{};return f.headers={...c,...m,...a.headers},{url:Tn(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))),d=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},m={};kn(d,{});let y=f&&f.headers?f.headers:{};return c.headers={...m,...y,...s.headers},{url:Tn(d),options:c}},listConnections:async(t,n={})=>{ft("listConnections","environmentName",t);const r="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};kn(o,{});let d=a&&a.headers?a.headers:{};return s.headers={...l,...d,...n.headers},{url:Tn(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,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},d={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...d,...f,...r.headers},{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"GET",...l,...o},f={};kn(s,{});let c=l&&l.headers?l.headers:{};return d.headers={...f,...c,...o.headers},{url:Tn(s),options:d}},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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={},m={};o&&(m.tableNames=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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))),d=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"GET",...f,...s},m={},y={};a&&(y.tableNames=a),kn(d,y);let v=f&&f.headers?f.headers:{};return c.headers={...m,...v,...s.headers},{url:Tn(d),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,Cn);let l;e&&(l=e.baseOptions);const d={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}},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,Cn);let d;e&&(d=e.baseOptions);const f={method:"POST",...d,...a},c={},m={};c["Content-Type"]="application/json",kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},f.data=zo(o,f,e),{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}},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,Cn);let d;e&&(d=e.baseOptions);const f={method:"POST",...d,...a},c={},m={};c["Content-Type"]="application/json",kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},f.data=zo(o,f,e),{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}},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,Cn);let d;e&&(d=e.baseOptions);const f={method:"POST",...d,...a},c={},m={};c["Content-Type"]="application/json",kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},f.data=zo(o,f,e),{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"PATCH",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}}}},Ho=function(e){const t=NK(e);return{async createConnection(n,r,o,a){const s=await t.createConnection(n,r,o,a),l=e?.serverIndex??0,d=wn["ConnectionsApi.createConnection"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async deleteConnection(n,r,o){const a=await t.deleteConnection(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.deleteConnection"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)},async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.getConnection"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)},async getTable(n,r,o,a,s){const l=await t.getTable(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ConnectionsApi.getTable"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async getTableInPackage(n,r,o,a,s,l){const d=await t.getTableInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ConnectionsApi.getTableInPackage"]?.[f]?.url;return(m,y)=>Mn(d,zt,yn,e)(m,c||y)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=wn["ConnectionsApi.listConnections"]?.[a]?.url;return(l,d)=>Mn(o,zt,yn,e)(l,s||d)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.listSchemas"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)},async listSchemasInPackage(n,r,o,a){const s=await t.listSchemasInPackage(n,r,o,a),l=e?.serverIndex??0,d=wn["ConnectionsApi.listSchemasInPackage"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async listTables(n,r,o,a,s){const l=await t.listTables(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ConnectionsApi.listTables"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async listTablesInPackage(n,r,o,a,s,l){const d=await t.listTablesInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ConnectionsApi.listTablesInPackage"]?.[f]?.url;return(m,y)=>Mn(d,zt,yn,e)(m,c||y)},async postQuerydata(n,r,o,a){const s=await t.postQuerydata(n,r,o,a),l=e?.serverIndex??0,d=wn["ConnectionsApi.postQuerydata"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async postQuerydataInPackage(n,r,o,a,s){const l=await t.postQuerydataInPackage(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ConnectionsApi.postQuerydataInPackage"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async postSqlsource(n,r,o,a){const s=await t.postSqlsource(n,r,o,a),l=e?.serverIndex??0,d=wn["ConnectionsApi.postSqlsource"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async postSqlsourceInPackage(n,r,o,a,s){const l=await t.postSqlsourceInPackage(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ConnectionsApi.postSqlsourceInPackage"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async postTemporarytable(n,r,o,a){const s=await t.postTemporarytable(n,r,o,a),l=e?.serverIndex??0,d=wn["ConnectionsApi.postTemporarytable"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async postTemporarytableInPackage(n,r,o,a,s){const l=await t.postTemporarytableInPackage(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ConnectionsApi.postTemporarytableInPackage"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async updateConnection(n,r,o,a){const s=await t.updateConnection(n,r,o,a),l=e?.serverIndex??0,d=wn["ConnectionsApi.updateConnection"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)}}};let IK=class extends ms{createConnection(t,n,r,o){return Ho(this.configuration).createConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteConnection(t,n,r){return Ho(this.configuration).deleteConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getConnection(t,n,r){return Ho(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getTable(t,n,r,o,a){return Ho(this.configuration).getTable(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTableInPackage(t,n,r,o,a,s){return Ho(this.configuration).getTableInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listConnections(t,n){return Ho(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ho(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listSchemasInPackage(t,n,r,o){return Ho(this.configuration).listSchemasInPackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,o,a){return Ho(this.configuration).listTables(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listTablesInPackage(t,n,r,o,a,s){return Ho(this.configuration).listTablesInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}postQuerydata(t,n,r,o){return Ho(this.configuration).postQuerydata(t,n,r,o).then(a=>a(this.axios,this.basePath))}postQuerydataInPackage(t,n,r,o,a){return Ho(this.configuration).postQuerydataInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,o){return Ho(this.configuration).postSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}postSqlsourceInPackage(t,n,r,o,a){return Ho(this.configuration).postSqlsourceInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postTemporarytable(t,n,r,o){return Ho(this.configuration).postTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}postTemporarytableInPackage(t,n,r,o,a){return Ho(this.configuration).postTemporarytableInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateConnection(t,n,r,o){return Ho(this.configuration).updateConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const LK=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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={},m={};o!==void 0&&(m.versionId=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},{url:Tn(s),options:d}}}},xR=function(e){const t=LK(e);return{async getDashboard(n,r,o,a,s){const l=await t.getDashboard(n,r,o,a,s),d=e?.serverIndex??0,f=wn["DashboardsApi.getDashboard"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async listDashboards(n,r,o,a){const s=await t.listDashboards(n,r,o,a),l=e?.serverIndex??0,d=wn["DashboardsApi.listDashboards"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)}}};let zK=class extends ms{getDashboard(t,n,r,o,a){return xR(this.configuration).getDashboard(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listDashboards(t,n,r,o){return xR(this.configuration).listDashboards(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const FK=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,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},d={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...d,...f,...r.headers},{url:Tn(a),options:l}}}},BK=function(e){const t=FK(e);return{async listDataApps(n,r,o){const a=await t.listDataApps(n,r,o),s=e?.serverIndex??0,l=wn["DataAppsApi.listDataApps"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)}}};let UK=class extends ms{listDataApps(t,n,r){return BK(this.configuration).listDataApps(t,n,r).then(o=>o(this.axios,this.basePath))}};const _K=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,Cn);let l;e&&(l=e.baseOptions);const d={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},{url:Tn(s),options:d}}}},VK=function(e){const t=_K(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,d=wn["DatabasesApi.listDatabases"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)}}};let HK=class extends ms{listDatabases(t,n,r,o){return VK(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const WK=function(e){return{createEnvironment:async(t,n={})=>{ft("createEnvironment","environment",t);const r="/environments",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},d={};l["Content-Type"]="application/json",kn(o,d);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=zo(t,s,e),{url:Tn(o),options:s}},deleteEnvironment:async(t,n={})=>{ft("deleteEnvironment","environmentName",t);const r="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...n},l={};kn(o,{});let d=a&&a.headers?a.headers:{};return s.headers={...l,...d,...n.headers},{url:Tn(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,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},d={},f={};n!==void 0&&(f.reload=n),kn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...d,...c,...r.headers},{url:Tn(a),options:l}},listEnvironments:async(t={})=>{const n="/environments",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};kn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Tn(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,Cn);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...r},d={},f={};d["Content-Type"]="application/json",kn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...d,...c,...r.headers},l.data=zo(n,l,e),{url:Tn(a),options:l}}}},Ah=function(e){const t=WK(e);return{async createEnvironment(n,r){const o=await t.createEnvironment(n,r),a=e?.serverIndex??0,s=wn["EnvironmentsApi.createEnvironment"]?.[a]?.url;return(l,d)=>Mn(o,zt,yn,e)(l,s||d)},async deleteEnvironment(n,r){const o=await t.deleteEnvironment(n,r),a=e?.serverIndex??0,s=wn["EnvironmentsApi.deleteEnvironment"]?.[a]?.url;return(l,d)=>Mn(o,zt,yn,e)(l,s||d)},async getEnvironment(n,r,o){const a=await t.getEnvironment(n,r,o),s=e?.serverIndex??0,l=wn["EnvironmentsApi.getEnvironment"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)},async listEnvironments(n){const r=await t.listEnvironments(n),o=e?.serverIndex??0,a=wn["EnvironmentsApi.listEnvironments"]?.[o]?.url;return(s,l)=>Mn(r,zt,yn,e)(s,a||l)},async updateEnvironment(n,r,o){const a=await t.updateEnvironment(n,r,o),s=e?.serverIndex??0,l=wn["EnvironmentsApi.updateEnvironment"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)}}};let qK=class extends ms{createEnvironment(t,n){return Ah(this.configuration).createEnvironment(t,n).then(r=>r(this.axios,this.basePath))}deleteEnvironment(t,n){return Ah(this.configuration).deleteEnvironment(t,n).then(r=>r(this.axios,this.basePath))}getEnvironment(t,n,r){return Ah(this.configuration).getEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}listEnvironments(t){return Ah(this.configuration).listEnvironments(t).then(n=>n(this.axios,this.basePath))}updateEnvironment(t,n,r){return Ah(this.configuration).updateEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}};const YK=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,Cn);let l;e&&(l=e.baseOptions);const d={method:"POST",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}},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,Cn);let d;e&&(d=e.baseOptions);const f={method:"DELETE",...d,...a},c={},m={};o!==void 0&&(m.dropTables=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"GET",...l,...o},f={};kn(s,{});let c=l&&l.headers?l.headers:{};return d.headers={...f,...c,...o.headers},{url:Tn(s),options:d}},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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={},m={};r!==void 0&&(m.limit=r),o!==void 0&&(m.offset=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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,Cn);let d;e&&(d=e.baseOptions);const f={method:"POST",...d,...a},c={},m={};o!==void 0&&(m.action=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(l),options:f}}}},jh=function(e){const t=YK(e);return{async createMaterialization(n,r,o,a){const s=await t.createMaterialization(n,r,o,a),l=e?.serverIndex??0,d=wn["MaterializationsApi.createMaterialization"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async deleteMaterialization(n,r,o,a,s){const l=await t.deleteMaterialization(n,r,o,a,s),d=e?.serverIndex??0,f=wn["MaterializationsApi.deleteMaterialization"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async getMaterialization(n,r,o,a){const s=await t.getMaterialization(n,r,o,a),l=e?.serverIndex??0,d=wn["MaterializationsApi.getMaterialization"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async listMaterializations(n,r,o,a,s){const l=await t.listMaterializations(n,r,o,a,s),d=e?.serverIndex??0,f=wn["MaterializationsApi.listMaterializations"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async materializationAction(n,r,o,a,s){const l=await t.materializationAction(n,r,o,a,s),d=e?.serverIndex??0,f=wn["MaterializationsApi.materializationAction"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)}}};let KK=class extends ms{createMaterialization(t,n,r,o){return jh(this.configuration).createMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteMaterialization(t,n,r,o,a){return jh(this.configuration).deleteMaterialization(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getMaterialization(t,n,r,o){return jh(this.configuration).getMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}listMaterializations(t,n,r,o,a){return jh(this.configuration).listMaterializations(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}materializationAction(t,n,r,o,a){return jh(this.configuration).materializationAction(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}};const GK={Stop:"stop"},QK=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,Cn);let d;e&&(d=e.baseOptions);const f={method:"POST",...d,...a},c={},m={};c["Content-Type"]="application/json",kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},f.data=zo(o,f,e),{url:Tn(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,Cn);let d;e&&(d=e.baseOptions);const f={method:"POST",...d,...a},c={},m={};c["Content-Type"]="application/json",kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},f.data=zo(o,f,e),{url:Tn(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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={},m={};o!==void 0&&(m.versionId=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},{url:Tn(s),options:d}},updateModelSource:async(t,n,r,o,a,s={})=>{ft("updateModelSource","environmentName",t),ft("updateModelSource","packageName",n),ft("updateModelSource","path",r),ft("updateModelSource","modelSourceWriteRequest",o);const l="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),d=new URL(l,Cn);let f;e&&(f=e.baseOptions);const c={method:"PUT",...f,...s},m={},y={};a!==void 0&&(y.versionId=a),m["Content-Type"]="application/json",kn(d,y);let v=f&&f.headers?f.headers:{};return c.headers={...m,...v,...s.headers},c.data=zo(o,c,e),{url:Tn(d),options:c}}}},Nh=function(e){const t=QK(e);return{async compileModelSource(n,r,o,a,s){const l=await t.compileModelSource(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ModelsApi.compileModelSource"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async executeQueryModel(n,r,o,a,s){const l=await t.executeQueryModel(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ModelsApi.executeQueryModel"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async getModel(n,r,o,a,s){const l=await t.getModel(n,r,o,a,s),d=e?.serverIndex??0,f=wn["ModelsApi.getModel"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async listModels(n,r,o,a){const s=await t.listModels(n,r,o,a),l=e?.serverIndex??0,d=wn["ModelsApi.listModels"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)},async updateModelSource(n,r,o,a,s,l){const d=await t.updateModelSource(n,r,o,a,s,l),f=e?.serverIndex??0,c=wn["ModelsApi.updateModelSource"]?.[f]?.url;return(m,y)=>Mn(d,zt,yn,e)(m,c||y)}}};let XK=class extends ms{compileModelSource(t,n,r,o,a){return Nh(this.configuration).compileModelSource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}executeQueryModel(t,n,r,o,a){return Nh(this.configuration).executeQueryModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getModel(t,n,r,o,a){return Nh(this.configuration).getModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,o){return Nh(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}updateModelSource(t,n,r,o,a,s){return Nh(this.configuration).updateModelSource(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}};const ZK=function(e){return{executeNotebookCell:async(t,n,r,o,a,s,l,d,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,Cn);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),d!==void 0&&(x.givens=d),kn(m,x);let w=y&&y.headers?y.headers:{};return v.headers={...b,...w,...f.headers},{url:Tn(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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={},m={};o!==void 0&&(m.versionId=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"GET",...l,...o},f={},c={};r!==void 0&&(c.versionId=r),kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},{url:Tn(s),options:d}}}},E1=function(e){const t=ZK(e);return{async executeNotebookCell(n,r,o,a,s,l,d,f,c){const m=await t.executeNotebookCell(n,r,o,a,s,l,d,f,c),y=e?.serverIndex??0,v=wn["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(b,x)=>Mn(m,zt,yn,e)(b,v||x)},async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),d=e?.serverIndex??0,f=wn["NotebooksApi.getNotebook"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,d=wn["NotebooksApi.listNotebooks"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)}}};let JK=class extends ms{executeNotebookCell(t,n,r,o,a,s,l,d,f){return E1(this.configuration).executeNotebookCell(t,n,r,o,a,s,l,d,f).then(c=>c(this.axios,this.basePath))}getNotebook(t,n,r,o,a){return E1(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return E1(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const eG=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,Cn);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...r},d={},f={};d["Content-Type"]="application/json",kn(a,f);let c=s&&s.headers?s.headers:{};return l.headers={...d,...c,...r.headers},l.data=zo(n,l,e),{url:Tn(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,Cn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},d={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...d,...f,...r.headers},{url:Tn(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,Cn);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...a},c={},m={};r!==void 0&&(m.versionId=r),o!==void 0&&(m.reload=o),kn(l,m);let y=d&&d.headers?d.headers:{};return f.headers={...c,...y,...a.headers},{url:Tn(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,Cn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};kn(o,{});let d=a&&a.headers?a.headers:{};return s.headers={...l,...d,...n.headers},{url:Tn(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,Cn);let l;e&&(l=e.baseOptions);const d={method:"PATCH",...l,...o},f={},c={};f["Content-Type"]="application/json",kn(s,c);let m=l&&l.headers?l.headers:{};return d.headers={...f,...m,...o.headers},d.data=zo(r,d,e),{url:Tn(s),options:d}}}},Ih=function(e){const t=eG(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),s=e?.serverIndex??0,l=wn["PackagesApi.createPackage"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),s=e?.serverIndex??0,l=wn["PackagesApi.deletePackage"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),d=e?.serverIndex??0,f=wn["PackagesApi.getPackage"]?.[d]?.url;return(c,m)=>Mn(l,zt,yn,e)(c,f||m)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=wn["PackagesApi.listPackages"]?.[a]?.url;return(l,d)=>Mn(o,zt,yn,e)(l,s||d)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,d=wn["PackagesApi.updatePackage"]?.[l]?.url;return(f,c)=>Mn(s,zt,yn,e)(f,d||c)}}};let tG=class extends ms{createPackage(t,n,r){return Ih(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return Ih(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return Ih(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return Ih(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return Ih(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const nG=function(e){return{deleteTheme:async(t={})=>{const n="/theme",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"DELETE",...o,...t},s={};kn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Tn(r),options:a}},getStatus:async(t={})=>{const n="/status",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};kn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Tn(r),options:a}},getTheme:async(t={})=>{const n="/theme",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};kn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Tn(r),options:a}},updateTheme:async(t,n={})=>{ft("updateTheme","theme",t);const r="/theme",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...n},l={},d={};l["Content-Type"]="application/json",kn(o,d);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=zo(t,s,e),{url:Tn(o),options:s}}}},Hy=function(e){const t=nG(e);return{async deleteTheme(n){const r=await t.deleteTheme(n),o=e?.serverIndex??0,a=wn["PublisherApi.deleteTheme"]?.[o]?.url;return(s,l)=>Mn(r,zt,yn,e)(s,a||l)},async getStatus(n){const r=await t.getStatus(n),o=e?.serverIndex??0,a=wn["PublisherApi.getStatus"]?.[o]?.url;return(s,l)=>Mn(r,zt,yn,e)(s,a||l)},async getTheme(n){const r=await t.getTheme(n),o=e?.serverIndex??0,a=wn["PublisherApi.getTheme"]?.[o]?.url;return(s,l)=>Mn(r,zt,yn,e)(s,a||l)},async updateTheme(n,r){const o=await t.updateTheme(n,r),a=e?.serverIndex??0,s=wn["PublisherApi.updateTheme"]?.[a]?.url;return(l,d)=>Mn(o,zt,yn,e)(l,s||d)}}};let rG=class extends ms{deleteTheme(t){return Hy(this.configuration).deleteTheme(t).then(n=>n(this.axios,this.basePath))}getStatus(t){return Hy(this.configuration).getStatus(t).then(n=>n(this.axios,this.basePath))}getTheme(t){return Hy(this.configuration).getTheme(t).then(n=>n(this.axios,this.basePath))}updateTheme(t,n){return Hy(this.configuration).updateTheme(t,n).then(r=>r(this.axios,this.basePath))}};const oG=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};kn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Tn(r),options:a}},startWatching:async(t,n={})=>{ft("startWatching","startWatchRequest",t);const r="/watch-mode/start",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},d={};l["Content-Type"]="application/json",kn(o,d);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=zo(t,s,e),{url:Tn(o),options:s}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...t},s={};kn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Tn(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,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},d={};kn(a,{});let f=s&&s.headers?s.headers:{};return l.headers={...d,...f,...r.headers},{url:Tn(a),options:l}}}},Wy=function(e){const t=oG(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),o=e?.serverIndex??0,a=wn["WatchModeApi.getWatchStatus"]?.[o]?.url;return(s,l)=>Mn(r,zt,yn,e)(s,a||l)},async startWatching(n,r){const o=await t.startWatching(n,r),a=e?.serverIndex??0,s=wn["WatchModeApi.startWatching"]?.[a]?.url;return(l,d)=>Mn(o,zt,yn,e)(l,s||d)},async stopWatching(n){const r=await t.stopWatching(n),o=e?.serverIndex??0,a=wn["WatchModeApi.stopWatching"]?.[o]?.url;return(s,l)=>Mn(r,zt,yn,e)(s,a||l)},async streamPackageEvents(n,r,o){const a=await t.streamPackageEvents(n,r,o),s=e?.serverIndex??0,l=wn["WatchModeApi.streamPackageEvents"]?.[s]?.url;return(d,f)=>Mn(a,zt,yn,e)(d,l||f)}}};let aG=class extends ms{getWatchStatus(t){return Wy(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return Wy(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return Wy(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}streamPackageEvents(t,n,r){return Wy(this.configuration).streamPackageEvents(t,n,r).then(o=>o(this.axios,this.basePath))}},iG=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 HC=new V7({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),sG={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},ZS="publisher:themeMode";function lG(){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(ZS);if(e==="light"||e==="dark"||e==="auto")return e}catch{}}function cG(e){if(!(typeof window>"u"))try{e===void 0?window.localStorage.removeItem(ZS):window.localStorage.setItem(ZS,e)}catch{}}function uG(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}zt.defaults.baseURL||(zt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const yN=C.createContext(void 0),dG=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=zt.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 iG({basePath:n});return{models:new XK(o,n,r),publisher:new rG(o,n,r),environments:new qK(o,n,r),packages:new tG(o,n,r),dashboards:new zK(o,n,r),dataApps:new UK(o,n,r),notebooks:new JK(o,n,r),connections:new IK(o,n,r),databases:new HK(o,n,r),materializations:new KK(o,n,r),watchMode:new aG(o,n,r)}},fG=e=>h.jsx(H7,{client:HC,children:h.jsx(pG,{...e})}),pG=({children:e,getAccessToken:t,baseURL:n,mutable:r,theme:o})=>{const a=C.useMemo(()=>dG(n,t),[n,t]),s=n||`${window.location.protocol}//${window.location.host}/api/v0`,l=Uj({queryKey:["status"],queryFn:async()=>(await a.publisher.getStatus()).data});l.error&&console.error("Failed to fetch publisher status:",l.error);const d=l.data?.frozenConfig,f=l.data?.theme,c=l.isLoading;let m;l.isLoading||l.error?m=r:d?m=!1:m=r??!0;const y=C.useMemo(()=>[f,o],[f,o]),[v,b]=C.useState(lG),[x,w]=C.useState(uG);C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const P=window.matchMedia("(prefers-color-scheme: dark)"),N=V=>w(V.matches);return P.addEventListener("change",N),()=>P.removeEventListener("change",N)},[]);const S=C.useCallback(P=>{b(P),cG(P)},[]),T=f?.allowUserToggle??!0,M=T?v:void 0,R=C.useMemo(()=>DK(f?.defaultMode,M,x),[f?.defaultMode,M,x]),$={server:s,getAccessToken:t,apiClients:a,mutable:m,isLoadingStatus:c,instanceTheme:f};return h.jsx(yN.Provider,{value:$,children:h.jsx(AK,{layers:y,mode:R,userChoice:M,setMode:S,allowUserToggle:T,children:e})})},zr=()=>{const e=C.useContext(yN);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};var Tu={},ss={},SR;function hp(){if(SR)return ss;SR=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.isChainOp=e,ss.isStringCondition=t,ss.isStringFilter=n,ss.isBooleanFilter=r,ss.isNumberFilter=o,ss.isTemporalFilter=a,ss.isFilterExpression=s,ss.isFilterable=l;function e(d){return["and","or",","].includes(d)}function t(d){return["starts","ends","contains","="].includes(d.operator)}function n(d){return typeof d=="object"&&d!==null&&"operator"in d&&typeof d.operator=="string"&&["starts","ends","contains","=","~","null","none","empty","and","or",",","()"].includes(d.operator)}function r(d){return typeof d=="object"&&d!==null&&"operator"in d&&typeof d.operator=="string"&&["null","none","true","false","=false","=true"].includes(d.operator)}function o(d){return typeof d=="object"&&d!==null&&"operator"in d&&typeof d.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null","none"].includes(d.operator)}function a(d){return typeof d=="object"&&d!==null&&"operator"in d&&typeof d.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null","none"].includes(d.operator)}function s(d){return typeof d=="object"&&d!==null&&"operator"in d}function l(d){return["string","number","boolean","timestamp","timestamptz","date"].includes(d)}return ss}var Lh={},wR;function hG(){return wR||(wR=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.BooleanFilterExpression=void 0,Lh.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}}),Lh}var O1={},Zo={},CR;function qb(){if(CR)return Zo;CR=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.maybeNot=t,Zo.unescape=n,Zo.escape=r,Zo.matchOp=a,Zo.conjoin=l,Zo.joinNumbers=d,Zo.mkRange=f,Zo.mkValues=c,Zo.numNot=m,Zo.temporalNot=y,Zo.joinTemporal=v,Zo.timeLiteral=b,Zo.mkUnits=x;const e=hp();function t(w){const[S,T]=w;return S&&T&&(0,e.isStringFilter)(T)?{...T,not:!0}:T}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,T=!1,M=0,R=!1;const $=w.length;for(let P=0;P<$;P+=1){const N=w[P];if(N===" "||N===" "){M+=1;continue}M=0,N==="%"?(R=!0,P===0&&(S=!0),T=!0):(T=!1,N==="\\"?P+=1:N==="_"&&(R=!0))}return{hasLike:R,percentEnd:T&&$>1,percentStart:S&&$>1,endSpace:M}}function a(w){let S=w.trimStart();const{hasLike:T,percentEnd:M,percentStart:R,endSpace:$}=o(S);if($>0&&(S=S.slice(0,-$)),T){if(R&&M){const P=S.slice(1,-1);if(!o(P).hasLike&&P.length>0)return{operator:"contains",values:[n(P)]}}else if(M){const P=S.slice(0,-1);if(!o(P).hasLike)return{operator:"starts",values:[n(P)]}}else if(R){const P=S.slice(1);if(!o(P).hasLike)return{operator:"ends",values:[n(P)]}}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 T,M;return w.operator===S.operator&&((T=w.not)!==null&&T!==void 0?T:!1)===((M=S.not)!==null&&M!==void 0?M:!1)}function l(w,S,T){if(S=S.toLowerCase(),(0,e.isStringFilter)(w)&&(0,e.isStringFilter)(T)){if(S===","){if(w.operator==="~"&&s(w,T))return{...w,escaped_values:[...w.escaped_values,...T.escaped_values]};if((0,e.isStringCondition)(w)&&s(w,T))return{...w,values:[...w.values,...T.values]}}const M=S===","?",":S==="|"?"or":S===";"?"and":void 0;if(M)return w.operator===M?{...w,members:[...w.members,T]}:{operator:M,members:[w,T]}}return null}function d(w,S,T){if(S=S.toLowerCase(),(0,e.isNumberFilter)(w)&&(0,e.isNumberFilter)(T)){if(S==="or"&&w.operator==="="&&s(w,T)){const M={operator:"=",values:[...w.values,...T.values]};return w.not&&(M.not=!0),M}if(S==="and"||S==="or")return w.operator===S?{...w,members:[...w.members,T]}:{operator:S,members:[w,T]}}return null}function f(w,S,T,M){return{operator:"range",startValue:S,startOperator:w==="("?">":">=",endValue:T,endOperator:M===")"?"<":"<="}}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 T={...w};return w.not?delete T.not:T.not=!0,T}return{...w,not:!0}}return w}function v(w,S,T){return S=S.toLowerCase(),(0,e.isTemporalFilter)(w)&&(0,e.isTemporalFilter)(T)&&(S==="and"||S==="or")?w.operator===S?{...w,members:[...w.members,T]}:{operator:S,members:[w,T]}:null}function b(w,S){const T={moment:"literal",literal:w};return S&&(T.units=S),T}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 Zo}var R1,kR;function mG(){if(kR)return R1;kR=1;const{numNot:e,mkRange:t,joinNumbers:n,mkValues:r}=qb();function o(d,f){function c(){this.constructor=d}c.prototype=f.prototype,d.prototype=new c}function a(d,f,c,m){var y=Error.call(this,d);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(d,f,c){return c=c||" ",d.length>f?d:(f-=d.length,c+=c.repeat(f),d+c.slice(0,f))}a.prototype.format=function(d){var f="Error: "+this.message;if(this.location){var c=null,m;for(m=0;m<d.length;m++)if(d[m].source===this.location.source){c=d[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],T=y.line===x.line?x.column:S.length+1,M=T-y.column||1;f+=`
271
+ --> `+b+`
272
+ `+w+` |
273
+ `+v.line+" | "+S+`
274
+ `+w+" | "+s("",y.column-1," ")+s("",M,"^")}else f+=`
275
+ at `+b}return f},a.buildMessage=function(d,f){var c={literal:function(S){return'"'+y(S.text)+'"'},class:function(S){var T=S.parts.map(function(M){return Array.isArray(M)?v(M[0])+"-"+v(M[1]):v(M)});return"["+(S.inverted?"^":"")+T.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(T){return"\\x0"+m(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+m(T)})}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(T){return"\\x0"+m(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+m(T)})}function b(S){return c[S.type](S)}function x(S){var T=S.map(b),M,R;if(T.sort(),T.length>0){for(M=1,R=1;M<T.length;M++)T[M-1]!==T[M]&&(T[R]=T[M],R++);T.length=R}switch(T.length){case 1:return T[0];case 2:return T[0]+" or "+T[1];default:return T.slice(0,-1).join(", ")+", or "+T[T.length-1]}}function w(S){return S?'"'+y(S)+'"':"end of input"}return"Expected "+x(d)+" but "+w(f)+" found."};function l(d,f){f=f!==void 0?f:{};var c={},m=f.grammarSource,y={numberFilter:Et},v=Et,b="(",x=")",w="!=",S=",",T="=",M="<=",R=">=",$="[",P="]",N="-",V=".",z="not",W="null",H="none",k="and",I="or",F="to",_=/^[<>]/,j=/^[0-9]/,X=/^[Ee]/,Q=/^[+\-]/,te=/^[a-zA-Z]/,Z=/^[ \t]/,G=Le("(",!1),ne=Le(")",!1),ce=Le("!=",!1),pe=Le(",",!1),oe=Le("=",!1),ae=Le("<=",!1),le=Le(">=",!1),ge=qe(["<",">"],!1,!1),ye=Le("[",!1),we=Le("]",!1),Ce=Le("-",!1),$e=qe([["0","9"]],!1,!1),de=Le(".",!1),ke=qe(["E","e"],!1,!1),et=qe(["+","-"],!1,!1),ze=Le("not",!0),Ae=Le("null",!0),se=Le("none",!0),bt=Le("and",!0),Fe=Le("or",!0),it=Le("to",!0),pt=qe([["a","z"],["A","Z"]],!1,!1),Ft=Nt("whitespace"),_t=qe([" "," "],!1,!1),at=function(me,Ee){return Ee.reduce((He,[,yt,,Rt])=>n(He,yt,Rt),me)},Xe=function(me,Ee){return e(Ee,me)},rt=function(me){return me},Ne=function(){return{operator:"null"}},he=function(){return{operator:"none"}},We=function(me){return{operator:"()",expr:me}},Te=function(me,Ee,He,yt){return t(me,Ee,He,yt)},kt=function(me,Ee){return{operator:"!=",...r(me,Ee.map(He=>He[3]))}},Mt=function(me,Ee){return{operator:"=",...r(me,Ee.map(He=>He[3]))}},gt=function(me,Ee){return{operator:me,values:[Ee]}},ct=function(me,Ee){return{operator:"=",...r(me,Ee.map(He=>He[3]))}},$t=function(){return"["},Vt=function(){return"("},un=function(){return"]"},vn=function(){return")"},Bn=function(me){return me},Wn=function(){return"or"},Qt=function(){return"and"},In=function(){return"not"},be=f.peg$currPos|0,zn=[{line:1,column:1}],En=be,Xt=f.peg$maxFailExpected||[],ie=f.peg$silentFails|0,Pe;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(me,Ee){return{type:"literal",text:me,ignoreCase:Ee}}function qe(me,Ee,He){return{type:"class",parts:me,inverted:Ee,ignoreCase:He}}function ut(){return{type:"end"}}function Nt(me){return{type:"other",description:me}}function Bt(me){var Ee=zn[me],He;if(Ee)return Ee;if(me>=zn.length)He=zn.length-1;else for(He=me;!zn[--He];);for(Ee=zn[He],Ee={line:Ee.line,column:Ee.column};He<me;)d.charCodeAt(He)===10?(Ee.line++,Ee.column=1):Ee.column++,He++;return zn[me]=Ee,Ee}function Dt(me,Ee,He){var yt=Bt(me),Rt=Bt(Ee),Ct={source:m,start:{offset:me,line:yt.line,column:yt.column},end:{offset:Ee,line:Rt.line,column:Rt.column}};return Ct}function mt(me){be<En||(be>En&&(En=be,Xt=[]),Xt.push(me))}function At(me,Ee,He){return new a(a.buildMessage(me,Ee),me,Ee,He)}function Et(){var me,Ee,He,yt,Rt,Ct,St,Yt;if(me=be,Ee=wt(),Ee!==c){for(He=[],yt=be,Rt=fn(),Ct=dn(),Ct!==c?(St=fn(),Yt=wt(),Yt!==c?(Rt=[Rt,Ct,St,Yt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);yt!==c;)He.push(yt),yt=be,Rt=fn(),Ct=dn(),Ct!==c?(St=fn(),Yt=wt(),Yt!==c?(Rt=[Rt,Ct,St,Yt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);me=at(Ee,He)}else be=me,me=c;return me}function wt(){var me,Ee,He;return me=be,Ee=ue(),Ee!==c?(fn(),He=Ht(),He!==c?me=Xe(Ee,He):(be=me,me=c)):(be=me,me=c),me===c&&(me=be,Ee=Ht(),Ee!==c&&(Ee=rt(Ee)),me=Ee),me}function Ht(){var me,Ee,He,yt,Rt,Ct,St,Yt,xn,ur;if(me=be,Ee=fe(),Ee!==c&&(Ee=Ne()),me=Ee,me===c&&(me=be,Ee=Ve(),Ee!==c&&(Ee=he()),me=Ee,me===c&&(me=be,d.charCodeAt(be)===40?(Ee=b,be++):(Ee=c,ie===0&&mt(G)),Ee!==c?(He=fn(),yt=Et(),yt!==c?(Rt=fn(),d.charCodeAt(be)===41?(Ct=x,be++):(Ct=c,ie===0&&mt(ne)),Ct!==c?me=We(yt):(be=me,me=c)):(be=me,me=c)):(be=me,me=c),me===c&&(me=be,Ee=On(),Ee!==c?(He=fn(),yt=bn(),yt!==c?(Rt=fn(),Ct=Zt(),Ct!==c?(St=fn(),Yt=bn(),Yt!==c?(xn=fn(),ur=qn(),ur!==c?me=Te(Ee,yt,Yt,ur):(be=me,me=c)):(be=me,me=c)):(be=me,me=c)):(be=me,me=c)):(be=me,me=c),me===c)))){if(me=be,d.substr(be,2)===w?(Ee=w,be+=2):(Ee=c,ie===0&&mt(ce)),Ee!==c)if(He=fn(),yt=bn(),yt!==c){for(Rt=[],Ct=be,St=fn(),d.charCodeAt(be)===44?(Yt=S,be++):(Yt=c,ie===0&&mt(pe)),Yt!==c?(xn=fn(),ur=bn(),ur!==c?(St=[St,Yt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);Ct!==c;)Rt.push(Ct),Ct=be,St=fn(),d.charCodeAt(be)===44?(Yt=S,be++):(Yt=c,ie===0&&mt(pe)),Yt!==c?(xn=fn(),ur=bn(),ur!==c?(St=[St,Yt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);me=kt(yt,Rt)}else be=me,me=c;else be=me,me=c;if(me===c){if(me=be,d.charCodeAt(be)===61?(Ee=T,be++):(Ee=c,ie===0&&mt(oe)),Ee!==c)if(He=fn(),yt=bn(),yt!==c){for(Rt=[],Ct=be,St=fn(),d.charCodeAt(be)===44?(Yt=S,be++):(Yt=c,ie===0&&mt(pe)),Yt!==c?(xn=fn(),ur=bn(),ur!==c?(St=[St,Yt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);Ct!==c;)Rt.push(Ct),Ct=be,St=fn(),d.charCodeAt(be)===44?(Yt=S,be++):(Yt=c,ie===0&&mt(pe)),Yt!==c?(xn=fn(),ur=bn(),ur!==c?(St=[St,Yt,xn,ur],Ct=St):(be=Ct,Ct=c)):(be=Ct,Ct=c);me=Mt(yt,Rt)}else be=me,me=c;else be=me,me=c;if(me===c&&(me=be,Ee=be,d.substr(be,2)===M?(He=M,be+=2):(He=c,ie===0&&mt(ae)),He===c&&(d.substr(be,2)===R?(He=R,be+=2):(He=c,ie===0&&mt(le)),He===c&&(He=d.charAt(be),_.test(He)?be++:(He=c,ie===0&&mt(ge)))),He!==c?Ee=d.substring(Ee,be):Ee=He,Ee!==c?(He=fn(),yt=bn(),yt!==c?me=gt(Ee,yt):(be=me,me=c)):(be=me,me=c),me===c))if(me=be,Ee=bn(),Ee!==c){for(He=[],yt=be,Rt=fn(),d.charCodeAt(be)===44?(Ct=S,be++):(Ct=c,ie===0&&mt(pe)),Ct!==c?(St=fn(),Yt=bn(),Yt!==c?(Rt=[Rt,Ct,St,Yt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);yt!==c;)He.push(yt),yt=be,Rt=fn(),d.charCodeAt(be)===44?(Ct=S,be++):(Ct=c,ie===0&&mt(pe)),Ct!==c?(St=fn(),Yt=bn(),Yt!==c?(Rt=[Rt,Ct,St,Yt],yt=Rt):(be=yt,yt=c)):(be=yt,yt=c);me=ct(Ee,He)}else be=me,me=c}}return me}function On(){var me,Ee;return me=be,d.charCodeAt(be)===91?(Ee=$,be++):(Ee=c,ie===0&&mt(ye)),Ee!==c&&(Ee=$t()),me=Ee,me===c&&(me=be,d.charCodeAt(be)===40?(Ee=b,be++):(Ee=c,ie===0&&mt(G)),Ee!==c&&(Ee=Vt()),me=Ee),me}function qn(){var me,Ee;return me=be,d.charCodeAt(be)===93?(Ee=P,be++):(Ee=c,ie===0&&mt(we)),Ee!==c&&(Ee=un()),me=Ee,me===c&&(me=be,d.charCodeAt(be)===41?(Ee=x,be++):(Ee=c,ie===0&&mt(ne)),Ee!==c&&(Ee=vn()),me=Ee),me}function bn(){var me,Ee,He,yt,Rt,Ct,St,Yt,xn,ur;if(me=be,Ee=be,He=be,d.charCodeAt(be)===45?(yt=N,be++):(yt=c,ie===0&&mt(Ce)),yt===c&&(yt=null),Rt=be,Ct=[],St=d.charAt(be),j.test(St)?be++:(St=c,ie===0&&mt($e)),St!==c)for(;St!==c;)Ct.push(St),St=d.charAt(be),j.test(St)?be++:(St=c,ie===0&&mt($e));else Ct=c;if(Ct!==c){for(d.charCodeAt(be)===46?(St=V,be++):(St=c,ie===0&&mt(de)),St===c&&(St=null),Yt=[],xn=d.charAt(be),j.test(xn)?be++:(xn=c,ie===0&&mt($e));xn!==c;)Yt.push(xn),xn=d.charAt(be),j.test(xn)?be++:(xn=c,ie===0&&mt($e));Ct=[Ct,St,Yt],Rt=Ct}else be=Rt,Rt=c;if(Rt===c){for(Rt=be,Ct=[],St=d.charAt(be),j.test(St)?be++:(St=c,ie===0&&mt($e));St!==c;)Ct.push(St),St=d.charAt(be),j.test(St)?be++:(St=c,ie===0&&mt($e));if(d.charCodeAt(be)===46?(St=V,be++):(St=c,ie===0&&mt(de)),St!==c){if(Yt=[],xn=d.charAt(be),j.test(xn)?be++:(xn=c,ie===0&&mt($e)),xn!==c)for(;xn!==c;)Yt.push(xn),xn=d.charAt(be),j.test(xn)?be++:(xn=c,ie===0&&mt($e));else Yt=c;Yt!==c?(Ct=[Ct,St,Yt],Rt=Ct):(be=Rt,Rt=c)}else be=Rt,Rt=c}if(Rt!==c){if(Ct=be,St=d.charAt(be),X.test(St)?be++:(St=c,ie===0&&mt(ke)),St!==c){if(Yt=d.charAt(be),Q.test(Yt)?be++:(Yt=c,ie===0&&mt(et)),Yt===c&&(Yt=null),xn=[],ur=d.charAt(be),j.test(ur)?be++:(ur=c,ie===0&&mt($e)),ur!==c)for(;ur!==c;)xn.push(ur),ur=d.charAt(be),j.test(ur)?be++:(ur=c,ie===0&&mt($e));else xn=c;xn!==c?(St=[St,Yt,xn],Ct=St):(be=Ct,Ct=c)}else be=Ct,Ct=c;Ct===c&&(Ct=null),yt=[yt,Rt,Ct],He=yt}else be=He,He=c;return He!==c?Ee=d.substring(Ee,be):Ee=He,Ee!==c&&(Ee=Bn(Ee)),me=Ee,me}function dn(){var me,Ee;return me=be,Ee=Ke(),Ee!==c&&(Ee=Wn()),me=Ee,me===c&&(me=be,Ee=vt(),Ee!==c&&(Ee=Qt()),me=Ee),me}function ue(){var me,Ee,He,yt;return me=be,Ee=d.substr(be,3),Ee.toLowerCase()===z?be+=3:(Ee=c,ie===0&&mt(ze)),Ee!==c?(He=be,ie++,yt=nn(),ie--,yt===c?He=void 0:(be=He,He=c),He!==c?me=In():(be=me,me=c)):(be=me,me=c),me}function fe(){var me,Ee,He,yt;return me=be,Ee=d.substr(be,4),Ee.toLowerCase()===W?be+=4:(Ee=c,ie===0&&mt(Ae)),Ee!==c?(He=be,ie++,yt=nn(),ie--,yt===c?He=void 0:(be=He,He=c),He!==c?(Ee=[Ee,He],me=Ee):(be=me,me=c)):(be=me,me=c),me}function Ve(){var me,Ee,He,yt;return me=be,Ee=d.substr(be,4),Ee.toLowerCase()===H?be+=4:(Ee=c,ie===0&&mt(se)),Ee!==c?(He=be,ie++,yt=nn(),ie--,yt===c?He=void 0:(be=He,He=c),He!==c?(Ee=[Ee,He],me=Ee):(be=me,me=c)):(be=me,me=c),me}function vt(){var me,Ee,He,yt;return me=be,Ee=d.substr(be,3),Ee.toLowerCase()===k?be+=3:(Ee=c,ie===0&&mt(bt)),Ee!==c?(He=be,ie++,yt=nn(),ie--,yt===c?He=void 0:(be=He,He=c),He!==c?(Ee=[Ee,He],me=Ee):(be=me,me=c)):(be=me,me=c),me}function Ke(){var me,Ee,He,yt;return me=be,Ee=d.substr(be,2),Ee.toLowerCase()===I?be+=2:(Ee=c,ie===0&&mt(Fe)),Ee!==c?(He=be,ie++,yt=nn(),ie--,yt===c?He=void 0:(be=He,He=c),He!==c?(Ee=[Ee,He],me=Ee):(be=me,me=c)):(be=me,me=c),me}function Zt(){var me,Ee,He,yt;return me=be,Ee=d.substr(be,2),Ee.toLowerCase()===F?be+=2:(Ee=c,ie===0&&mt(it)),Ee!==c?(He=be,ie++,yt=nn(),ie--,yt===c?He=void 0:(be=He,He=c),He!==c?(Ee=[Ee,He],me=Ee):(be=me,me=c)):(be=me,me=c),me}function nn(){var me;return me=d.charAt(be),te.test(me)?be++:(me=c,ie===0&&mt(pt)),me}function fn(){var me,Ee;for(ie++,me=[],Ee=d.charAt(be),Z.test(Ee)?be++:(Ee=c,ie===0&&mt(_t));Ee!==c;)me.push(Ee),Ee=d.charAt(be),Z.test(Ee)?be++:(Ee=c,ie===0&&mt(_t));return ie--,Ee=c,ie===0&&mt(Ft),me}if(Pe=v(),f.peg$library)return{peg$result:Pe,peg$currPos:be,peg$FAILED:c,peg$maxFailExpected:Xt,peg$maxFailPos:En};if(Pe!==c&&be===d.length)return Pe;throw Pe!==c&&be<d.length&&mt(ut()),At(Xt,En<d.length?d.charAt(En):null,En<d.length?Dt(En,En+1):Dt(En,En))}return R1={StartRules:["numberFilter"],SyntaxError:a,parse:l},R1}var qy={},TR;function WC(){if(TR)return qy;TR=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.run_parser=n;const e=hp();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,d=s?s.end.offset-1:r.length-1;return{parsed:null,log:[{message:a.message,startIndex:l,endIndex:Math.max(l,d),severity:"error"}]}}throw a}}return qy}var MR;function gG(){return MR||(MR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const t=hp(),n=mG(),r=WC();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)}`}}})(O1)),O1}var $1={},P1,ER;function yG(){if(ER)return P1;ER=1;const{conjoin:e,maybeNot:t,matchOp:n}=qb();function r(l,d){function f(){this.constructor=l}f.prototype=d.prototype,l.prototype=new f}function o(l,d,f,c){var m=Error.call(this,l);return Object.setPrototypeOf&&Object.setPrototypeOf(m,o.prototype),m.expected=d,m.found=f,m.location=c,m.name="SyntaxError",m}r(o,Error);function a(l,d,f){return f=f||" ",l.length>d?l:(d-=l.length,f+=f.repeat(d),l+f.slice(0,d))}o.prototype.format=function(l){var d="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,T=S-m.column||1;d+=`
276
+ --> `+v+`
277
+ `+x+` |
278
+ `+y.line+" | "+w+`
279
+ `+x+" | "+a("",m.column-1," ")+a("",T,"^")}else d+=`
280
+ at `+v}return d},o.buildMessage=function(l,d){var f={literal:function(w){return'"'+m(w.text)+'"'},class:function(w){var S=w.parts.map(function(T){return Array.isArray(T)?y(T[0])+"-"+y(T[1]):y(T)});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),T,M;if(S.sort(),S.length>0){for(T=1,M=1;T<S.length;T++)S[T-1]!==S[T]&&(S[M]=S[T],M++);S.length=M}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(d)+" found."};function s(l,d){d=d!==void 0?d:{};var f={},c=d.grammarSource,m={stringFilter:pt},y=pt,v="-",b="(",x=")",w="\\",S=",",T=";",M="|",R=/^[^\n,;()|]/,$=/^[ \t]/,P=de("-",!1),N=de("(",!1),V=de(")",!1),z=Ae("match string"),W=de("\\",!1),H=et(),k=ke([`
281
+ `,",",";","(",")","|"],!0,!1),I=de(",",!1),F=de(";",!1),_=de("|",!1),j=Ae("whitespace"),X=ke([" "," "],!1,!1),Q=function(Ne,he){return he.reduce((We,[,Te,,kt])=>e(We,Te,kt),Ne)},te=function(Ne){return t([!0,Ne])},Z=function(Ne){return Ne},G=function(Ne){return{operator:"()",expr:Ne}},ne=function(Ne){return n(Ne)},ce=function(Ne){return Ne},pe=function(){return","},oe=function(){return";"},ae=function(){return"|"},le=d.peg$currPos|0,ge=[{line:1,column:1}],ye=le,we=d.peg$maxFailExpected||[],Ce=d.peg$silentFails|0,$e;if(d.startRule){if(!(d.startRule in m))throw new Error(`Can't start parsing from rule "`+d.startRule+'".');y=m[d.startRule]}function de(Ne,he){return{type:"literal",text:Ne,ignoreCase:he}}function ke(Ne,he,We){return{type:"class",parts:Ne,inverted:he,ignoreCase:We}}function et(){return{type:"any"}}function ze(){return{type:"end"}}function Ae(Ne){return{type:"other",description:Ne}}function se(Ne){var he=ge[Ne],We;if(he)return he;if(Ne>=ge.length)We=ge.length-1;else for(We=Ne;!ge[--We];);for(he=ge[We],he={line:he.line,column:he.column};We<Ne;)l.charCodeAt(We)===10?(he.line++,he.column=1):he.column++,We++;return ge[Ne]=he,he}function bt(Ne,he,We){var Te=se(Ne),kt=se(he),Mt={source:c,start:{offset:Ne,line:Te.line,column:Te.column},end:{offset:he,line:kt.line,column:kt.column}};return Mt}function Fe(Ne){le<ye||(le>ye&&(ye=le,we=[]),we.push(Ne))}function it(Ne,he,We){return new o(o.buildMessage(Ne,he),Ne,he,We)}function pt(){var Ne,he,We,Te,kt,Mt,gt,ct;if(Ne=le,rt(),he=Ft(),he!==f){for(We=[],Te=le,kt=rt(),Mt=Xe(),Mt!==f?(gt=rt(),ct=Ft(),ct!==f?(kt=[kt,Mt,gt,ct],Te=kt):(le=Te,Te=f)):(le=Te,Te=f);Te!==f;)We.push(Te),Te=le,kt=rt(),Mt=Xe(),Mt!==f?(gt=rt(),ct=Ft(),ct!==f?(kt=[kt,Mt,gt,ct],Te=kt):(le=Te,Te=f)):(le=Te,Te=f);Ne=Q(he,We)}else le=Ne,Ne=f;return Ne}function Ft(){var Ne,he,We;return Ne=le,l.charCodeAt(le)===45?(he=v,le++):(he=f,Ce===0&&Fe(P)),he!==f?(rt(),We=_t(),We!==f?Ne=te(We):(le=Ne,Ne=f)):(le=Ne,Ne=f),Ne===f&&(Ne=le,he=_t(),he!==f&&(he=Z(he)),Ne=he),Ne}function _t(){var Ne,he,We,Te;return Ne=le,l.charCodeAt(le)===40?(he=b,le++):(he=f,Ce===0&&Fe(N)),he!==f?(rt(),We=pt(),We!==f?(rt(),l.charCodeAt(le)===41?(Te=x,le++):(Te=f,Ce===0&&Fe(V)),Te!==f?Ne=G(We):(le=Ne,Ne=f)):(le=Ne,Ne=f)):(le=Ne,Ne=f),Ne===f&&(Ne=le,he=at(),he!==f&&(he=ne(he)),Ne=he),Ne}function at(){var Ne,he,We,Te,kt,Mt;if(Ce++,Ne=le,he=le,We=[],Te=le,l.charCodeAt(le)===92?(kt=w,le++):(kt=f,Ce===0&&Fe(W)),kt!==f?(l.length>le?(Mt=l.charAt(le),le++):(Mt=f,Ce===0&&Fe(H)),Mt!==f?(kt=[kt,Mt],Te=kt):(le=Te,Te=f)):(le=Te,Te=f),Te===f&&(Te=l.charAt(le),R.test(Te)?le++:(Te=f,Ce===0&&Fe(k))),Te!==f)for(;Te!==f;)We.push(Te),Te=le,l.charCodeAt(le)===92?(kt=w,le++):(kt=f,Ce===0&&Fe(W)),kt!==f?(l.length>le?(Mt=l.charAt(le),le++):(Mt=f,Ce===0&&Fe(H)),Mt!==f?(kt=[kt,Mt],Te=kt):(le=Te,Te=f)):(le=Te,Te=f),Te===f&&(Te=l.charAt(le),R.test(Te)?le++:(Te=f,Ce===0&&Fe(k)));else We=f;return We!==f?he=l.substring(he,le):he=We,he!==f&&(he=ce(he)),Ne=he,Ce--,Ne===f&&(he=f,Ce===0&&Fe(z)),Ne}function Xe(){var Ne,he;return Ne=le,l.charCodeAt(le)===44?(he=S,le++):(he=f,Ce===0&&Fe(I)),he!==f&&(he=pe()),Ne=he,Ne===f&&(Ne=le,l.charCodeAt(le)===59?(he=T,le++):(he=f,Ce===0&&Fe(F)),he!==f&&(he=oe()),Ne=he,Ne===f&&(Ne=le,l.charCodeAt(le)===124?(he=M,le++):(he=f,Ce===0&&Fe(_)),he!==f&&(he=ae()),Ne=he)),Ne}function rt(){var Ne,he;for(Ce++,Ne=[],he=l.charAt(le),$.test(he)?le++:(he=f,Ce===0&&Fe(X));he!==f;)Ne.push(he),he=l.charAt(le),$.test(he)?le++:(he=f,Ce===0&&Fe(X));return Ce--,he=f,Ce===0&&Fe(j),Ne}if($e=y(),d.peg$library)return{peg$result:$e,peg$currPos:le,peg$FAILED:f,peg$maxFailExpected:we,peg$maxFailPos:ye};if($e!==f&&le===l.length)return $e;throw $e!==f&&le<l.length&&Fe(ze()),it(we,ye<l.length?l.charAt(ye):null,ye<l.length?bt(ye,ye+1):bt(ye,ye))}return P1={StartRules:["stringFilter"],SyntaxError:o,parse:s},P1}var OR;function vG(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const t=hp(),n=yG(),r=qb(),o=WC();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"}}}})($1)),$1}var D1={},A1,RR;function bG(){if(RR)return A1;RR=1;const{temporalNot:e,joinTemporal:t,timeLiteral:n,mkUnits:r}=qb();function o(d,f){function c(){this.constructor=d}c.prototype=f.prototype,d.prototype=new c}function a(d,f,c,m){var y=Error.call(this,d);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(d,f,c){return c=c||" ",d.length>f?d:(f-=d.length,c+=c.repeat(f),d+c.slice(0,f))}a.prototype.format=function(d){var f="Error: "+this.message;if(this.location){var c=null,m;for(m=0;m<d.length;m++)if(d[m].source===this.location.source){c=d[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],T=y.line===x.line?x.column:S.length+1,M=T-y.column||1;f+=`
282
+ --> `+b+`
283
+ `+w+` |
284
+ `+v.line+" | "+S+`
285
+ `+w+" | "+s("",y.column-1," ")+s("",M,"^")}else f+=`
286
+ at `+b}return f},a.buildMessage=function(d,f){var c={literal:function(S){return'"'+y(S.text)+'"'},class:function(S){var T=S.parts.map(function(M){return Array.isArray(M)?v(M[0])+"-"+v(M[1]):v(M)});return"["+(S.inverted?"^":"")+T.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(T){return"\\x0"+m(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+m(T)})}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(T){return"\\x0"+m(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+m(T)})}function b(S){return c[S.type](S)}function x(S){var T=S.map(b),M,R;if(T.sort(),T.length>0){for(M=1,R=1;M<T.length;M++)T[M-1]!==T[M]&&(T[R]=T[M],R++);T.length=R}switch(T.length){case 1:return T[0];case 2:return T[0]+" or "+T[1];default:return T.slice(0,-1).join(", ")+", or "+T[T.length-1]}}function w(S){return S?'"'+y(S)+'"':"end of input"}return"Expected "+x(d)+" but "+w(f)+" found."};function l(d,f){f=f!==void 0?f:{};var c={},m=f.grammarSource,y={temporalFilter:lu},v=lu,b="(",x=")",w="second",S="minute",T="hour",M="day",R="week",$="month",P="quarter",N="year",V="s",z="-",W=":",H="not",k="null",I="none",F="to",_="now",j="last",X="this",Q="next",te="ago",Z="from",G="before",ne="after",ce="through",pe="starting",oe="for",ae="today",le="yesterday",ge="tomorrow",ye="and",we="or",Ce="monday",$e="tuesday",de="wednesday",ke="thursday",et="friday",ze="saturday",Ae="sunday",se=/^[0-9]/,bt=/^[ Tt]/,Fe=/^[.,]/,it=/^[Ww]/,pt=/^[Kk]/,Ft=/^[Qq]/,_t=/^[1234]/,at=/^[a-zA-Z]/,Xe=/^[ \t]/,rt=An("(",!1),Ne=An(")",!1),he=Do([["0","9"]],!1,!1),We=An("second",!0),Te=An("minute",!0),kt=An("hour",!0),Mt=An("day",!0),gt=An("week",!0),ct=An("month",!0),$t=An("quarter",!0),Vt=An("year",!0),un=An("s",!0),vn=An("-",!1),Bn=Do([" ","T","t"],!1,!1),Wn=An(":",!1),Qt=Do([".",","],!1,!1),In=Do(["W","w"],!1,!1),be=Do(["K","k"],!1,!1),zn=Do(["Q","q"],!1,!1),En=Do(["1","2","3","4"],!1,!1),Xt=An("not",!0),ie=An("null",!0),Pe=An("none",!0),Le=An("to",!0),qe=An("now",!0),ut=An("last",!0),Nt=An("this",!0),Bt=An("next",!0),Dt=An("ago",!0),mt=An("from",!0),At=An("before",!0),Et=An("after",!0),wt=An("through",!0),Ht=An("starting",!0),On=An("for",!0),qn=An("today",!0),bn=An("yesterday",!0),dn=An("tomorrow",!0),ue=An("and",!0),fe=An("or",!0),Ve=An("monday",!0),vt=An("tuesday",!0),Ke=An("wednesday",!0),Zt=An("thursday",!0),nn=An("friday",!0),fn=An("saturday",!0),me=An("sunday",!0),Ee=Do([["a","z"],["A","Z"]],!1,!1),He=iu("optional whitespace"),yt=Do([" "," "],!1,!1),Rt=iu("whitespace"),Ct=function(B,K){return K.reduce((q,[,Se,,qt])=>t(q,Se,qt),B)},St=function(B){return e(B,!0)},Yt=function(B){return B},xn=function(){return{operator:"null"}},ur=function(){return{operator:"none"}},sr=function(B){return{operator:"()",expr:B}},La=function(B){return{operator:"before",before:B}},Gi=function(B){return{operator:"before",before:B,not:!0}},bs=function(B){return{operator:"after",after:B}},Vl=function(B){return{operator:"after",after:B,not:!0}},fi=function(B,K){return{operator:B,...K}},xs=function(B,K){return{operator:"to",fromMoment:B,toMoment:K}},Mo=function(B,K){return{...K,operator:"for",begin:B}},Ss=function(B){return{operator:"in",in:B}},Xc=function(B){return{operator:"in_last",...B}},Qi=function(){return"last"},pi=function(){return"next"},Zc=function(B,K){return{units:K,n:B}},ol=function(B){return B},Xi=function(B){return r(B)},Hl=function(){return{moment:"now"}},ws=function(){return{moment:"today"}},al=function(){return{moment:"yesterday"}},Jc=function(){return{moment:"tomorrow"}},yd=function(B){return{moment:"ago",...B}},vp=function(B){return{moment:"from_now",...B}},il=function(B){return{moment:B.toLowerCase(),which:"next"}},Wl=function(B){return{moment:B.toLowerCase(),which:"last"}},ql=function(B,K){return{moment:B,units:K}},Cs=function(B){return{moment:B.toLowerCase(),which:"last"}},Zi=function(B){return B},eu=function(){return"this"},tu=function(){return"next"},vd=function(){return"last"},sl=function(B){return n(B)},ma=function(B){return n(B,"week")},nu=function(B){return n(B,"quarter")},ll=function(B){return n(B,"minute")},hi=function(B){return n(B,"hour")},ru=function(B){return n(B,"day")},Yl=function(B){return n(B,"month")},ou=function(B){return n(B,"year")},Kl=function(B){return B},Qr=function(){return"or"},au=function(){return"and"},A=f.peg$currPos|0,ho=[{line:1,column:1}],Xr=A,za=f.peg$maxFailExpected||[],Me=f.peg$silentFails|0,Ji;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function An(B,K){return{type:"literal",text:B,ignoreCase:K}}function Do(B,K,q){return{type:"class",parts:B,inverted:K,ignoreCase:q}}function ks(){return{type:"end"}}function iu(B){return{type:"other",description:B}}function bd(B){var K=ho[B],q;if(K)return K;if(B>=ho.length)q=ho.length-1;else for(q=B;!ho[--q];);for(K=ho[q],K={line:K.line,column:K.column};q<B;)d.charCodeAt(q)===10?(K.line++,K.column=1):K.column++,q++;return ho[B]=K,K}function xd(B,K,q){var Se=bd(B),qt=bd(K),Ut={source:m,start:{offset:B,line:Se.line,column:Se.column},end:{offset:K,line:qt.line,column:qt.column}};return Ut}function Ze(B){A<Xr||(A>Xr&&(Xr=A,za=[]),za.push(B))}function su(B,K,q){return new a(a.buildMessage(B,K),B,K,q)}function lu(){var B,K,q,Se,qt,Ut,Rn,Yn;if(B=A,K=Gl(),K!==c){for(q=[],Se=A,qt=ts(),Ut=wd(),Ut!==c?(Rn=ts(),Yn=Gl(),Yn!==c?(qt=[qt,Ut,Rn,Yn],Se=qt):(A=Se,Se=c)):(A=Se,Se=c);Se!==c;)q.push(Se),Se=A,qt=ts(),Ut=wd(),Ut!==c?(Rn=ts(),Yn=Gl(),Yn!==c?(qt=[qt,Ut,Rn,Yn],Se=qt):(A=Se,Se=c)):(A=Se,Se=c);B=Ct(K,q)}else A=B,B=c;return B}function Gl(){var B,K,q,Se;return B=A,K=cu(),K!==c?(q=Wr(),q!==c?(Se=Sd(),Se!==c?B=St(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Sd(),K!==c&&(K=Yt(K)),B=K),B}function Sd(){var B,K,q,Se,qt,Ut;return B=A,K=Sp(),K!==c&&(K=xn()),B=K,B===c&&(B=A,K=Cd(),K!==c&&(K=ur()),B=K,B===c&&(B=A,d.charCodeAt(A)===40?(K=b,A++):(K=c,Me===0&&Ze(rt)),K!==c?(q=ts(),Se=lu(),Se!==c?(qt=ts(),d.charCodeAt(A)===41?(Ut=x,A++):(Ut=c,Me===0&&Ze(Ne)),Ut!==c?B=sr(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Mp(),K!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=La(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Es(),K!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=Gi(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Ep(),K!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=bs(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=du(),K!==c?(q=Wr(),q!==c?(Se=Ko(),Se!==c?B=Vl(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Ts(),K!==c?(q=Wr(),q!==c?(Se=cl(),Se!==c?B=fi(K,Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Ko(),K!==c?(q=Wr(),q!==c?(Se=wp(),Se!==c?(qt=Wr(),qt!==c?(Ut=Ko(),Ut!==c?B=xs(K,Ut):(A=B,B=c)):(A=B,B=c)):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Ko(),K!==c?(q=Wr(),q!==c?(Se=Op(),Se!==c?(qt=Wr(),qt!==c?(Ut=cl(),Ut!==c?B=Mo(K,Ut):(A=B,B=c)):(A=B,B=c)):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Ko(),K!==c&&(K=Ss(K)),B=K,B===c&&(B=A,K=cl(),K!==c&&(K=Xc(K)),B=K))))))))))),B}function Ts(){var B,K;return B=A,K=uu(),K!==c&&(K=Qi()),B=K,B===c&&(B=A,K=Ql(),K!==c&&(K=pi()),B=K),B}function cl(){var B,K,q,Se;return B=A,K=es(),K!==c?(q=Wr(),q!==c?(Se=Ms(),Se!==c?B=Zc(K,Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B}function es(){var B,K,q,Se;if(B=A,K=A,q=[],Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c)for(;Se!==c;)q.push(Se),Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he));else q=c;return q!==c?K=d.substring(K,A):K=q,K!==c&&(K=ol(K)),B=K,B}function Ms(){var B,K,q,Se,qt;return B=A,K=A,q=d.substr(A,6),q.toLowerCase()===w?A+=6:(q=c,Me===0&&Ze(We)),q===c&&(q=d.substr(A,6),q.toLowerCase()===S?A+=6:(q=c,Me===0&&Ze(Te)),q===c&&(q=d.substr(A,4),q.toLowerCase()===T?A+=4:(q=c,Me===0&&Ze(kt)),q===c&&(q=d.substr(A,3),q.toLowerCase()===M?A+=3:(q=c,Me===0&&Ze(Mt)),q===c&&(q=d.substr(A,4),q.toLowerCase()===R?A+=4:(q=c,Me===0&&Ze(gt)),q===c&&(q=d.substr(A,5),q.toLowerCase()===$?A+=5:(q=c,Me===0&&Ze(ct)),q===c&&(q=d.substr(A,7),q.toLowerCase()===P?A+=7:(q=c,Me===0&&Ze($t)),q===c&&(q=d.substr(A,4),q.toLowerCase()===N?A+=4:(q=c,Me===0&&Ze(Vt))))))))),q!==c?K=d.substring(K,A):K=q,K!==c?(q=d.charAt(A),q.toLowerCase()===V?A++:(q=c,Me===0&&Ze(un)),q===c&&(q=null),Se=A,Me++,qt=tr(),Me--,qt===c?Se=void 0:(A=Se,Se=c),Se!==c?B=Xi(K):(A=B,B=c)):(A=B,B=c),B}function Ko(){var B,K,q,Se,qt,Ut;return B=A,K=kd(),K!==c&&(K=Hl()),B=K,B===c&&(B=A,K=Td(),K!==c&&(K=ws()),B=K,B===c&&(B=A,K=Md(),K!==c&&(K=al()),B=K,B===c&&(B=A,K=Ed(),K!==c&&(K=Jc()),B=K,B===c&&(B=A,K=cl(),K!==c?(q=Wr(),q!==c?(Se=kp(),Se!==c?B=yd(K):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=cl(),K!==c?(q=Wr(),q!==c?(Se=Tp(),Se!==c?(qt=Wr(),qt!==c?(Ut=kd(),Ut!==c?B=vp(K):(A=B,B=c)):(A=B,B=c)):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=Ql(),K!==c?(q=Wr(),q!==c?(Se=ul(),Se!==c?B=il(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=uu(),K!==c?(q=Wr(),q!==c?(Se=ul(),Se!==c?B=Wl(Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=bp(),K!==c?(q=Wr(),q!==c?(Se=Ms(),Se!==c?B=ql(K,Se):(A=B,B=c)):(A=B,B=c)):(A=B,B=c),B===c&&(B=A,K=ul(),K!==c&&(K=Cs(K)),B=K,B===c&&(B=A,K=xp(),K!==c&&(K=Zi(K)),B=K)))))))))),B}function bp(){var B,K;return B=A,K=Cp(),K!==c&&(K=eu()),B=K,B===c&&(B=A,K=Ql(),K!==c&&(K=tu()),B=K,B===c&&(B=A,K=uu(),K!==c&&(K=vd()),B=K)),B}function xp(){var B,K,q,Se,qt,Ut,Rn,Yn,Kn,Wt,wr,Cr,rn,gr,Fr,Ur,Fa,aa,Ln,fl,ia,ns,Go,Zr,pl,mo;if(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c)if(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c)if(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c)if(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c)if(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c)if(Kn=d.charAt(A),se.test(Kn)?A++:(Kn=c,Me===0&&Ze(he)),Kn!==c)if(Wt=d.charAt(A),se.test(Wt)?A++:(Wt=c,Me===0&&Ze(he)),Wt!==c)if(d.charCodeAt(A)===45?(wr=z,A++):(wr=c,Me===0&&Ze(vn)),wr!==c)if(Cr=d.charAt(A),se.test(Cr)?A++:(Cr=c,Me===0&&Ze(he)),Cr!==c)if(rn=d.charAt(A),se.test(rn)?A++:(rn=c,Me===0&&Ze(he)),rn!==c)if(gr=d.charAt(A),bt.test(gr)?A++:(gr=c,Me===0&&Ze(Bn)),gr!==c)if(Fr=d.charAt(A),se.test(Fr)?A++:(Fr=c,Me===0&&Ze(he)),Fr!==c)if(Ur=d.charAt(A),se.test(Ur)?A++:(Ur=c,Me===0&&Ze(he)),Ur!==c)if(d.charCodeAt(A)===58?(Fa=W,A++):(Fa=c,Me===0&&Ze(Wn)),Fa!==c)if(aa=d.charAt(A),se.test(aa)?A++:(aa=c,Me===0&&Ze(he)),aa!==c)if(Ln=d.charAt(A),se.test(Ln)?A++:(Ln=c,Me===0&&Ze(he)),Ln!==c)if(d.charCodeAt(A)===58?(fl=W,A++):(fl=c,Me===0&&Ze(Wn)),fl!==c)if(ia=d.charAt(A),se.test(ia)?A++:(ia=c,Me===0&&Ze(he)),ia!==c)if(ns=d.charAt(A),se.test(ns)?A++:(ns=c,Me===0&&Ze(he)),ns!==c){if(Go=A,Zr=d.charAt(A),Fe.test(Zr)?A++:(Zr=c,Me===0&&Ze(Qt)),Zr!==c){for(pl=[],mo=d.charAt(A),se.test(mo)?A++:(mo=c,Me===0&&Ze(he));mo!==c;)pl.push(mo),mo=d.charAt(A),se.test(mo)?A++:(mo=c,Me===0&&Ze(he));Zr=[Zr,pl],Go=Zr}else A=Go,Go=c;Go===c&&(Go=null),Se=[Se,qt,Ut,Rn,Yn,Kn,Wt,wr,Cr,rn,gr,Fr,Ur,Fa,aa,Ln,fl,ia,ns,Go],q=Se}else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;else A=q,q=c;return q!==c?K=d.substring(K,A):K=q,K!==c&&(K=sl(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c?(Kn=d.charAt(A),se.test(Kn)?A++:(Kn=c,Me===0&&Ze(he)),Kn!==c?(Wt=d.charAt(A),se.test(Wt)?A++:(Wt=c,Me===0&&Ze(he)),Wt!==c?(d.charCodeAt(A)===45?(wr=z,A++):(wr=c,Me===0&&Ze(vn)),wr!==c?(Cr=d.charAt(A),se.test(Cr)?A++:(Cr=c,Me===0&&Ze(he)),Cr!==c?(rn=d.charAt(A),se.test(rn)?A++:(rn=c,Me===0&&Ze(he)),rn!==c?(d.charCodeAt(A)===45?(gr=z,A++):(gr=c,Me===0&&Ze(vn)),gr!==c?(Fr=d.charAt(A),it.test(Fr)?A++:(Fr=c,Me===0&&Ze(In)),Fr!==c?(Ur=d.charAt(A),pt.test(Ur)?A++:(Ur=c,Me===0&&Ze(be)),Ur!==c?(Se=[Se,qt,Ut,Rn,Yn,Kn,Wt,wr,Cr,rn,gr,Fr,Ur],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=ma(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c?(Kn=d.charAt(A),Ft.test(Kn)?A++:(Kn=c,Me===0&&Ze(zn)),Kn!==c?(Wt=d.charAt(A),_t.test(Wt)?A++:(Wt=c,Me===0&&Ze(En)),Wt!==c?(Se=[Se,qt,Ut,Rn,Yn,Kn,Wt],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=nu(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c?(Kn=d.charAt(A),se.test(Kn)?A++:(Kn=c,Me===0&&Ze(he)),Kn!==c?(Wt=d.charAt(A),se.test(Wt)?A++:(Wt=c,Me===0&&Ze(he)),Wt!==c?(d.charCodeAt(A)===45?(wr=z,A++):(wr=c,Me===0&&Ze(vn)),wr!==c?(Cr=d.charAt(A),se.test(Cr)?A++:(Cr=c,Me===0&&Ze(he)),Cr!==c?(rn=d.charAt(A),se.test(rn)?A++:(rn=c,Me===0&&Ze(he)),rn!==c?(gr=d.charAt(A),bt.test(gr)?A++:(gr=c,Me===0&&Ze(Bn)),gr!==c?(Fr=d.charAt(A),se.test(Fr)?A++:(Fr=c,Me===0&&Ze(he)),Fr!==c?(Ur=d.charAt(A),se.test(Ur)?A++:(Ur=c,Me===0&&Ze(he)),Ur!==c?(d.charCodeAt(A)===58?(Fa=W,A++):(Fa=c,Me===0&&Ze(Wn)),Fa!==c?(aa=d.charAt(A),se.test(aa)?A++:(aa=c,Me===0&&Ze(he)),aa!==c?(Ln=d.charAt(A),se.test(Ln)?A++:(Ln=c,Me===0&&Ze(he)),Ln!==c?(Se=[Se,qt,Ut,Rn,Yn,Kn,Wt,wr,Cr,rn,gr,Fr,Ur,Fa,aa,Ln],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=ll(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c?(Kn=d.charAt(A),se.test(Kn)?A++:(Kn=c,Me===0&&Ze(he)),Kn!==c?(Wt=d.charAt(A),se.test(Wt)?A++:(Wt=c,Me===0&&Ze(he)),Wt!==c?(d.charCodeAt(A)===45?(wr=z,A++):(wr=c,Me===0&&Ze(vn)),wr!==c?(Cr=d.charAt(A),se.test(Cr)?A++:(Cr=c,Me===0&&Ze(he)),Cr!==c?(rn=d.charAt(A),se.test(rn)?A++:(rn=c,Me===0&&Ze(he)),rn!==c?(gr=d.charAt(A),bt.test(gr)?A++:(gr=c,Me===0&&Ze(Bn)),gr!==c?(Fr=d.charAt(A),se.test(Fr)?A++:(Fr=c,Me===0&&Ze(he)),Fr!==c?(Ur=d.charAt(A),se.test(Ur)?A++:(Ur=c,Me===0&&Ze(he)),Ur!==c?(Se=[Se,qt,Ut,Rn,Yn,Kn,Wt,wr,Cr,rn,gr,Fr,Ur],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=hi(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c?(Kn=d.charAt(A),se.test(Kn)?A++:(Kn=c,Me===0&&Ze(he)),Kn!==c?(Wt=d.charAt(A),se.test(Wt)?A++:(Wt=c,Me===0&&Ze(he)),Wt!==c?(d.charCodeAt(A)===45?(wr=z,A++):(wr=c,Me===0&&Ze(vn)),wr!==c?(Cr=d.charAt(A),se.test(Cr)?A++:(Cr=c,Me===0&&Ze(he)),Cr!==c?(rn=d.charAt(A),se.test(rn)?A++:(rn=c,Me===0&&Ze(he)),rn!==c?(Se=[Se,qt,Ut,Rn,Yn,Kn,Wt,wr,Cr,rn],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=ru(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(d.charCodeAt(A)===45?(Yn=z,A++):(Yn=c,Me===0&&Ze(vn)),Yn!==c?(Kn=d.charAt(A),se.test(Kn)?A++:(Kn=c,Me===0&&Ze(he)),Kn!==c?(Wt=d.charAt(A),se.test(Wt)?A++:(Wt=c,Me===0&&Ze(he)),Wt!==c?(Se=[Se,qt,Ut,Rn,Yn,Kn,Wt],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=Yl(K)),B=K,B===c&&(B=A,K=A,q=A,Se=d.charAt(A),se.test(Se)?A++:(Se=c,Me===0&&Ze(he)),Se!==c?(qt=d.charAt(A),se.test(qt)?A++:(qt=c,Me===0&&Ze(he)),qt!==c?(Ut=d.charAt(A),se.test(Ut)?A++:(Ut=c,Me===0&&Ze(he)),Ut!==c?(Rn=d.charAt(A),se.test(Rn)?A++:(Rn=c,Me===0&&Ze(he)),Rn!==c?(Se=[Se,qt,Ut,Rn],q=Se):(A=q,q=c)):(A=q,q=c)):(A=q,q=c)):(A=q,q=c),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=ou(K)),B=K))))))),B}function ul(){var B,K,q;return B=A,K=A,q=Os(),q===c&&(q=Rp(),q===c&&(q=$p(),q===c&&(q=Pp(),q===c&&(q=$d(),q===c&&(q=Pd(),q===c&&(q=dl())))))),q!==c?K=d.substring(K,A):K=q,K!==c&&(K=Kl(K)),B=K,B}function wd(){var B,K;return B=A,K=Rd(),K!==c&&(K=Qr()),B=K,B===c&&(B=A,K=Od(),K!==c&&(K=au()),B=K),B}function cu(){var B,K,q,Se;return B=A,K=d.substr(A,3),K.toLowerCase()===H?A+=3:(K=c,Me===0&&Ze(Xt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Sp(){var B,K,q,Se;return B=A,K=d.substr(A,4),K.toLowerCase()===k?A+=4:(K=c,Me===0&&Ze(ie)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Cd(){var B,K,q,Se;return B=A,K=d.substr(A,4),K.toLowerCase()===I?A+=4:(K=c,Me===0&&Ze(Pe)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function wp(){var B,K,q,Se;return B=A,K=d.substr(A,2),K.toLowerCase()===F?A+=2:(K=c,Me===0&&Ze(Le)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function kd(){var B,K,q,Se;return B=A,K=d.substr(A,3),K.toLowerCase()===_?A+=3:(K=c,Me===0&&Ze(qe)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function uu(){var B,K,q,Se;return B=A,K=d.substr(A,4),K.toLowerCase()===j?A+=4:(K=c,Me===0&&Ze(ut)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Cp(){var B,K,q,Se;return B=A,K=d.substr(A,4),K.toLowerCase()===X?A+=4:(K=c,Me===0&&Ze(Nt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Ql(){var B,K,q,Se;return B=A,K=d.substr(A,4),K.toLowerCase()===Q?A+=4:(K=c,Me===0&&Ze(Bt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function kp(){var B,K,q,Se;return B=A,K=d.substr(A,3),K.toLowerCase()===te?A+=3:(K=c,Me===0&&Ze(Dt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Tp(){var B,K,q,Se;return B=A,K=d.substr(A,4),K.toLowerCase()===Z?A+=4:(K=c,Me===0&&Ze(mt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Mp(){var B,K,q,Se;return B=A,K=d.substr(A,6),K.toLowerCase()===G?A+=6:(K=c,Me===0&&Ze(At)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Ep(){var B,K,q,Se;return B=A,K=d.substr(A,5),K.toLowerCase()===ne?A+=5:(K=c,Me===0&&Ze(Et)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function du(){var B,K,q,Se;return B=A,K=d.substr(A,7),K.toLowerCase()===ce?A+=7:(K=c,Me===0&&Ze(wt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Es(){var B,K,q,Se;return B=A,K=d.substr(A,8),K.toLowerCase()===pe?A+=8:(K=c,Me===0&&Ze(Ht)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Op(){var B,K,q,Se;return B=A,K=d.substr(A,3),K.toLowerCase()===oe?A+=3:(K=c,Me===0&&Ze(On)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Td(){var B,K,q,Se;return B=A,K=d.substr(A,5),K.toLowerCase()===ae?A+=5:(K=c,Me===0&&Ze(qn)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Md(){var B,K,q,Se;return B=A,K=d.substr(A,9),K.toLowerCase()===le?A+=9:(K=c,Me===0&&Ze(bn)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Ed(){var B,K,q,Se;return B=A,K=d.substr(A,8),K.toLowerCase()===ge?A+=8:(K=c,Me===0&&Ze(dn)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Od(){var B,K,q,Se;return B=A,K=d.substr(A,3),K.toLowerCase()===ye?A+=3:(K=c,Me===0&&Ze(ue)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Rd(){var B,K,q,Se;return B=A,K=d.substr(A,2),K.toLowerCase()===we?A+=2:(K=c,Me===0&&Ze(fe)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Os(){var B,K,q,Se;return B=A,K=d.substr(A,6),K.toLowerCase()===Ce?A+=6:(K=c,Me===0&&Ze(Ve)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Rp(){var B,K,q,Se;return B=A,K=d.substr(A,7),K.toLowerCase()===$e?A+=7:(K=c,Me===0&&Ze(vt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function $p(){var B,K,q,Se;return B=A,K=d.substr(A,9),K.toLowerCase()===de?A+=9:(K=c,Me===0&&Ze(Ke)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Pp(){var B,K,q,Se;return B=A,K=d.substr(A,8),K.toLowerCase()===ke?A+=8:(K=c,Me===0&&Ze(Zt)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function $d(){var B,K,q,Se;return B=A,K=d.substr(A,6),K.toLowerCase()===et?A+=6:(K=c,Me===0&&Ze(nn)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function Pd(){var B,K,q,Se;return B=A,K=d.substr(A,8),K.toLowerCase()===ze?A+=8:(K=c,Me===0&&Ze(fn)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function dl(){var B,K,q,Se;return B=A,K=d.substr(A,6),K.toLowerCase()===Ae?A+=6:(K=c,Me===0&&Ze(me)),K!==c?(q=A,Me++,Se=tr(),Me--,Se===c?q=void 0:(A=q,q=c),q!==c?(K=[K,q],B=K):(A=B,B=c)):(A=B,B=c),B}function tr(){var B;return B=d.charAt(A),at.test(B)?A++:(B=c,Me===0&&Ze(Ee)),B}function ts(){var B,K;for(Me++,B=[],K=d.charAt(A),Xe.test(K)?A++:(K=c,Me===0&&Ze(yt));K!==c;)B.push(K),K=d.charAt(A),Xe.test(K)?A++:(K=c,Me===0&&Ze(yt));return Me--,K=c,Me===0&&Ze(He),B}function Wr(){var B,K;if(Me++,B=[],K=d.charAt(A),Xe.test(K)?A++:(K=c,Me===0&&Ze(yt)),K!==c)for(;K!==c;)B.push(K),K=d.charAt(A),Xe.test(K)?A++:(K=c,Me===0&&Ze(yt));else B=c;return Me--,B===c&&(K=c,Me===0&&Ze(Rt)),B}if(Ji=v(),f.peg$library)return{peg$result:Ji,peg$currPos:A,peg$FAILED:c,peg$maxFailExpected:za,peg$maxFailPos:Xr};if(Ji!==c&&A===d.length)return Ji;throw Ji!==c&&A<d.length&&Ze(ks()),su(za,Xr<d.length?d.charAt(Xr):null,Xr<d.length?xd(Xr,Xr+1):xd(Xr,Xr))}return A1={StartRules:["temporalFilter"],SyntaxError:a,parse:l},A1}var $R;function xG(){return $R||($R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const t=hp(),n=bG(),r=WC();e.TemporalFilterExpression={parse(l){if(l.match(/^\s*$/))return{parsed:null,log:[]};const d=(0,r.run_parser)(l,n.parse);return d.parsed&&(0,t.isTemporalFilter)(d.parsed)?{parsed:d.parsed,log:[]}:{parsed:null,log:d.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(d=>e.TemporalFilterExpression.unparse(d)).join(" or ");case"and":return l.members.map(d=>e.TemporalFilterExpression.unparse(d)).join(" and ")}}};function o(l,d){return"not"in l&&l.not?"not "+d:d}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`}}})(D1)),D1}var PR;function SG(){return PR||(PR=1,(function(e){var t=Tu&&Tu.__createBinding||(Object.create?(function(l,d,f,c){c===void 0&&(c=f);var m=Object.getOwnPropertyDescriptor(d,f);(!m||("get"in m?!d.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,c,m)}):(function(l,d,f,c){c===void 0&&(c=f),l[c]=d[f]})),n=Tu&&Tu.__exportStar||function(l,d){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,l,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,n(hp(),e);var r=hG();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return r.BooleanFilterExpression}});var o=gG();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return o.NumberFilterExpression}});var a=vG();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return a.StringFilterExpression}});var s=xG();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return s.TemporalFilterExpression}})})(Tu)),Tu}var Yi=SG();function Nu(){return Nu=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},Nu.apply(this,arguments)}const wG=["children","options"],DR=["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"}),AR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},CG=["style","script","pre"],kG=["src","href","data","formAction","srcDoc","action"],TG=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,MG=/mailto:/i,EG=/\n{2,}$/,jR=/^(\s*>[\s\S]*?)(?=\n\n|$)/,OG=/^ *> ?/gm,RG=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,$G=/^ {2,}\n/,PG=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,NR=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,IR=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,DG=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,AG=/^(?:\n *)*\n/,jG=/\r\n?/g,NG=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,IG=/^\[\^([^\]]+)]/,LG=/\f/g,zG=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,FG=/^\s*?\[(x|\s)\]/,LR=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zR=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,FR=/^([^\n]+)\n *(=|-){3,} *\n/,j1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,BG=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,BR=/^<!--[\s\S]*?(?:-->)/,UG=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,N1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,_G=/^\{.*\}$/,VG=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,HG=/^<([^ >]+@[^ >]+)>/,WG=/^<([^ >]+:\/[^ >]+)>/,qG=/-([a-z])?/gi,UR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,YG=/^[^\n]+(?: \n|\n{2,})/,KG=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,GG=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,QG=/^\[([^\]]*)\] ?\[([^\]]*)\]/,XG=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ZG=/\t/g,JG=/(^ *\||\| *$)/g,eQ=/^ *:-+: *$/,tQ=/^ *:-+ *$/,nQ=/^ *-+: *$/,Yb=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Kb="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",rQ=RegExp(`^([*_])\\1${Yb(1)}${Kb}\\1\\1(?!\\1)`),oQ=RegExp(`^([*_])${Yb(0)}${Kb}\\1(?!\\1)`),aQ=RegExp(`^(==)${Yb(0)}${Kb}\\1`),iQ=RegExp(`^(~~)${Yb(0)}${Kb}\\1`),sQ=/^(:[a-zA-Z0-9-_]+:)/,lQ=/^\\([^0-9A-Za-z\s])/,cQ=/\\([^0-9A-Za-z\s])/g,uQ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,dQ=/^\n+/,fQ=/^([ \t]*)/,pQ=/(?:^|\n)( *)$/,qC="(?:\\d+\\.)",YC="(?:[*+-])";function vN(e){return"( *)("+(e===1?qC:YC)+") +"}const bN=vN(1),xN=vN(2);function SN(e){return RegExp("^"+(e===1?bN:xN))}const hQ=SN(1),mQ=SN(2);function wN(e){return RegExp("^"+(e===1?bN:xN)+"[^\\n]*(?:\\n(?!\\1"+(e===1?qC:YC)+" )[^\\n]*)*(\\n|$)","gm")}const gQ=wN(1),yQ=wN(2);function CN(e){const t=e===1?qC:YC;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const kN=CN(1),TN=CN(2);function _R(e,t){const n=t===1,r=n?kN:TN,o=n?gQ:yQ,a=n?hQ:mQ;return{t:s=>a.test(s),o:Xf(function(s,l){const d=pQ.exec(l.prevCapture);return d&&(l.list||!l.inline&&!l.simple)?r.exec(s=d[1]+s):null}),i:1,u(s,l,d){const f=n?+s[2]:void 0,c=s[0].replace(EG,`
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,T=w.indexOf(`
288
+
289
+ `)!==-1||S&&m;m=T;const M=d.inline,R=d.list;let $;d.list=!0,T?(d.inline=!1,$=wm(w)+`
290
+
291
+ `):(d.inline=!0,$=wm(w));const P=l($,d);return d.inline=M,d.list=R,P}),ordered:n,start:f}},l:(s,l,d)=>e(s.ordered?"ol":"ul",{key:d.key,start:s.type==="20"?s.start:void 0},s.items.map(function(f,c){return e("li",{key:c},l(f,d))}))}}const vQ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),bQ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function wm(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function xv(e,t){return e.startsWith(t)}function xQ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(xv(e,n[r]))return!0;return!1}return n(e,t)}function zh(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 SQ(e){return nQ.test(e)?"right":eQ.test(e)?"center":tQ.test(e)?"left":null}function VR(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){if(!s)return;const d=a[a.length-1];d.push.apply(d,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,c)=>{d.trim()==="|"&&(l(),r)?f!==0&&f!==c.length-1&&a.push([]):s+=d}),l(),n.inTable=o,a}function wQ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(JG,"").split("|").map(SQ):[],o=e[3]?(function(s,l,d){return s.trim().split(`
292
+ `).map(function(f){return VR(f,l,d,!0)})})(e[3],t,n):[],a=VR(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 HR(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Xf(e){return e.inline=1,e}function xc(e){return Xf(function(t,n){return n.inline?e.exec(t):null})}function Sc(e){return Xf(function(t,n){return n.inline||n.simple?e.exec(t):null})}function El(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Yy(e){return Xf(function(t){return e.exec(t)})}const CQ=/(javascript|vbscript|data(?!:image)):/i;function kQ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(CQ.test(t))return null}catch{return null}return e}function Is(e){return e&&e.replace(cQ,"$1")}function Sv(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 TQ(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 MQ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const I1=(e,t,n)=>({children:Sv(t,e[2],n)});function L1(){return{}}function z1(){return null}function EQ(...e){return e.filter(Boolean).join(" ")}function F1(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 OQ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Nu({},AR,t.namedCodesToUnicode):AR;const n=t.slugify||zh,r=t.sanitizer||kQ,o=t.createElement||C.createElement,a=[jR,NR,IR,t.enforceAtxHeadings?zR:LR,FR,UR,kN,TN],s=[...a,YG,j1,BR,N1];function l(S,T,...M){const R=F1(t.overrides,S+".props",{});return o((function($,P){const N=F1(P,$);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:F1(P,$+".component",$):$})(S,t.overrides),Nu({},T,R,{className:EQ(T?.className,R.className)||void 0}),...M)}function d(S){S=S.replace(zG,"");let T=!1;t.forceInline?T=!0:t.forceBlock||(T=XG.test(S)===!1);const M=b(v(T?S:wm(S).replace(dQ,"")+`
293
+
294
+ `,{inline:T}));for(;typeof M[M.length-1]=="string"&&!M[M.length-1].trim();)M.pop();if(t.wrapper===null)return M;const R=t.wrapper||(T?"span":"div");let $;if(M.length>1||t.forceWrapper)$=M;else{if(M.length===1)return $=M[0],typeof $=="string"?l("span",{key:"outer"},$):$;$=null}return o(R,{key:"outer"},$)}function f(S,T){if(!T||!T.trim())return null;const M=T.match(TG);return M?M.reduce(function(R,$){const P=$.indexOf("=");if(P!==-1){const N=(function(H){return H.indexOf("-")!==-1&&H.match(UG)===null&&(H=H.replace(qG,function(k,I){return I.toUpperCase()})),H})($.slice(0,P)).trim(),V=(function(H){const k=H[0];return(k==='"'||k==="'")&&H.length>=2&&H[H.length-1]===k?H.slice(1,-1):H})($.slice(P+1).trim()),z=DR[N]||N;if(z==="ref")return R;const W=R[z]=(function(H,k,I,F){return k==="style"?(function(_){const j=[];let X="",Q=!1,te=!1,Z="";if(!_)return j;for(let ne=0;ne<_.length;ne++){const ce=_[ne];if(ce!=='"'&&ce!=="'"||Q||(te?ce===Z&&(te=!1,Z=""):(te=!0,Z=ce)),ce==="("&&X.endsWith("url")?Q=!0:ce===")"&&Q&&(Q=!1),ce!==";"||te||Q)X+=ce;else{const pe=X.trim();if(pe){const oe=pe.indexOf(":");if(oe>0){const ae=pe.slice(0,oe).trim(),le=pe.slice(oe+1).trim();j.push([ae,le])}}X=""}}const G=X.trim();if(G){const ne=G.indexOf(":");if(ne>0){const ce=G.slice(0,ne).trim(),pe=G.slice(ne+1).trim();j.push([ce,pe])}}return j})(I).reduce(function(_,[j,X]){return _[j.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=F(X,H,j),_},{}):kG.indexOf(k)!==-1?F(Is(I),H,k):(I.match(_G)&&(I=Is(I.slice(1,I.length-1))),I==="true"||I!=="false"&&I)})(S,N,V,r);typeof W=="string"&&(j1.test(W)||N1.test(W))&&(R[z]=d(W.trim()))}else $!=="style"&&(R[DR[$]||$]=!0);return R},{}):null}const c=[],m={},y={0:{t:[">"],o:El(jR),i:1,u(S,T,M){const[,R,$]=S[0].replace(OG,"").match(RG);return{alert:R,children:T($,M)}},l(S,T,M){const R={key:M.key};return S.alert&&(R.className="markdown-alert-"+n(S.alert.toLowerCase(),zh),S.children.unshift({attrs:{},children:[{type:"27",text:S.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",R,T(S.children,M))}},1:{o:Yy($G),i:1,u:L1,l:(S,T,M)=>l("br",{key:M.key})},2:{t:S=>{const T=S[0];return T==="-"||T==="*"||T==="_"},o:El(PG),i:1,u:L1,l:(S,T,M)=>l("hr",{key:M.key})},3:{t:[" "],o:El(IR),i:0,u:S=>({lang:void 0,text:Is(wm(S[0].replace(/^ {4}/gm,"")))}),l:(S,T,M)=>l("pre",{key:M.key},l("code",Nu({},S.attrs,{className:S.lang?"lang-"+S.lang:""}),S.text))},4:{t:["```","~~~"],o:El(NR),i:0,u:S=>({attrs:f("code",S[3]||""),lang:S[2]||void 0,text:S[4],type:"3"})},5:{t:["`"],o:Sc(DG),i:3,u:S=>({text:Is(S[2])}),l:(S,T,M)=>l("code",{key:M.key},S.text)},6:{t:["[^"],o:El(NG),i:0,u:S=>(c.push({footnote:S[2],identifier:S[1]}),{}),l:z1},7:{t:["[^"],o:xc(IG),i:1,u:S=>({target:"#"+n(S[1],zh),text:S[1]}),l:(S,T,M)=>l("a",{key:M.key,href:r(S.target,"a","href")},l("sup",{key:M.key},S.text))},8:{t:["[ ]","[x]"],o:xc(FG),i:1,u:S=>({completed:S[1].toLowerCase()==="x"}),l:(S,T,M)=>l("input",{checked:S.completed,key:M.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:El(t.enforceAtxHeadings?zR:LR),i:1,u:(S,T,M)=>({children:Sv(T,S[2],M),id:n(S[2],zh),level:S[1].length}),l:(S,T,M)=>l("h"+S.level,{id:S.id,key:M.key},T(S.children,M))},10:{o:El(FR),i:0,u:(S,T,M)=>({children:Sv(T,S[1],M),level:S[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Yy(j1),i:1,u(S,T,M){const[,R]=S[3].match(fQ),$=RegExp("^"+R,"gm"),P=S[3].replace($,""),N=(V=P,s.some(I=>I.test(V))?MQ:Sv);var V;const z=S[1].toLowerCase(),W=CG.indexOf(z)!==-1,H=(W?z:S[1]).trim(),k={attrs:f(H,S[2]),noInnerParse:W,tag:H};if(M.inAnchor=M.inAnchor||z==="a",W)k.text=S[3];else{const I=M.inHTML;M.inHTML=!0,k.children=N(T,P,M),M.inHTML=I}return M.inAnchor=!1,k},l:(S,T,M)=>l(S.tag,Nu({key:M.key},S.attrs),S.text||(S.children?T(S.children,M):""))},13:{t:["<"],o:Yy(N1),i:1,u(S){const T=S[1].trim();return{attrs:f(T,S[2]||""),tag:T}},l:(S,T,M)=>l(S.tag,Nu({},S.attrs,{key:M.key}))},12:{t:["<!--"],o:Yy(BR),i:1,u:()=>({}),l:z1},14:{t:["!["],o:Sc(bQ),i:1,u:S=>({alt:Is(S[1]),target:Is(S[2]),title:Is(S[3])}),l:(S,T,M)=>l("img",{key:M.key,alt:S.alt||void 0,title:S.title||void 0,src:r(S.target,"img","src")})},15:{t:["["],o:xc(vQ),i:3,u:(S,T,M)=>({children:TQ(T,S[1],M),target:Is(S[2]),title:Is(S[3])}),l:(S,T,M)=>l("a",{key:M.key,href:r(S.target,"a","href"),title:S.title},T(S.children,M))},16:{t:["<"],o:xc(WG),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],type:"15"})},17:{t:(S,T)=>!T.inAnchor&&!t.disableAutoLink&&(xv(S,"http://")||xv(S,"https://")),o:xc(VG),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],title:void 0,type:"15"})},18:{t:["<"],o:xc(HG),i:0,u(S){let T=S[1],M=S[1];return MG.test(M)||(M="mailto:"+M),{children:[{text:T.replace("mailto:",""),type:"27"}],target:M,type:"15"}}},20:_R(l,1),33:_R(l,2),19:{o:El(AG),i:3,u:L1,l:()=>`
295
+ `},21:{o:Xf(function(S,T){if(T.inline||T.simple||T.inHTML&&S.indexOf(`
296
+
297
+ `)===-1&&T.prevCapture.indexOf(`
298
+
299
+ `)===-1)return null;let M="";S.split(`
300
+ `).every($=>($+=`
301
+ `,!a.some(P=>P.test($))&&(M+=$,!!$.trim())));const R=wm(M);return R===""?null:[M,,R]}),i:3,u:I1,l:(S,T,M)=>l("p",{key:M.key},T(S.children,M))},22:{t:["["],o:xc(KG),i:0,u:S=>(m[S[1]]={target:S[2],title:S[4]},{}),l:z1},23:{t:["!["],o:Sc(GG),i:0,u:S=>({alt:S[1]?Is(S[1]):void 0,ref:S[2]}),l:(S,T,M)=>m[S.ref]?l("img",{key:M.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:xc(QG),i:0,u:(S,T,M)=>({children:T(S[1],M),fallbackChildren:S[0],ref:S[2]}),l:(S,T,M)=>m[S.ref]?l("a",{key:M.key,href:r(m[S.ref].target,"a","href"),title:m[S.ref].title},T(S.children,M)):l("span",{key:M.key},S.fallbackChildren)},25:{t:["|"],o:El(UR),i:1,u:wQ,l(S,T,M){const R=S;return l("table",{key:M.key},l("thead",null,l("tr",null,R.header.map(function($,P){return l("th",{key:P,style:HR(R,P)},T($,M))}))),l("tbody",null,R.cells.map(function($,P){return l("tr",{key:P},$.map(function(N,V){return l("td",{key:V,style:HR(R,V)},T(N,M))}))})))}},27:{o:Xf(function(S,T){let M;return xv(S,":")&&(M=sQ.exec(S)),M||uQ.exec(S)}),i:4,u(S){const T=S[0];return{text:T.indexOf("&")===-1?T:T.replace(BG,(M,R)=>t.namedCodesToUnicode[R]||M)}},l:S=>S.text},28:{t:["**","__"],o:Sc(rQ),i:2,u:(S,T,M)=>({children:T(S[2],M)}),l:(S,T,M)=>l("strong",{key:M.key},T(S.children,M))},29:{t:S=>{const T=S[0];return(T==="*"||T==="_")&&S[1]!==T},o:Sc(oQ),i:3,u:(S,T,M)=>({children:T(S[2],M)}),l:(S,T,M)=>l("em",{key:M.key},T(S.children,M))},30:{t:["\\"],o:Sc(lQ),i:1,u:S=>({text:S[1],type:"27"})},31:{t:["=="],o:Sc(aQ),i:3,u:I1,l:(S,T,M)=>l("mark",{key:M.key},T(S.children,M))},32:{t:["~~"],o:Sc(iQ),i:3,u:I1,l:(S,T,M)=>l("del",{key:M.key},T(S.children,M))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const v=(function(S){var T=Object.keys(S);function M(R,$){var P=[];if($.prevCapture=$.prevCapture||"",R.trim())for(;R;)for(var N=0;N<T.length;){var V=T[N],z=S[V];if(!z.t||xQ(R,$,z.t)){var W=z.o(R,$);if(W&&W[0]){R=R.substring(W[0].length);var H=z.u(W,M,$);$.prevCapture+=W[0],H.type||(H.type=V),P.push(H);break}N++}else N++}return $.prevCapture="",P}return T.sort(function(R,$){return S[R].i-S[$].i||(R<$?-1:1)}),function(R,$){return M((function(P){return P.replace(jG,`
302
+ `).replace(LG,"").replace(ZG," ")})(R),$)}})(y),b=(x=(function(S,T){return function(M,R,$){const P=S[M.type].l;return T?T(()=>P(M,R,$),M,R,$):P(M,R,$)}})(y,t.renderRule),function S(T,M={}){if(Array.isArray(T)){const R=M.key,$=[];let P=!1;for(let N=0;N<T.length;N++){M.key=N;const V=S(T[N],M),z=typeof V=="string";z&&P?$[$.length-1]+=V:V!==null&&$.push(V),P=z}return M.key=R,$}return x(T,S,M)});var x;const w=d(e);return c.length?l("div",null,w,l("footer",{key:"footer"},c.map(function(S){return l("div",{id:n(S.identifier,zh),key:S.identifier},S.identifier,b(v(S.footnote,{inline:!0})))}))):w}const RQ=e=>{let{children:t="",options:n}=e,r=(function(o,a){if(o==null)return{};var s,l,d={},f=Object.keys(o);for(l=0;l<f.length;l++)a.indexOf(s=f[l])>=0||(d[s]=o[s]);return d})(e,wG);return C.cloneElement(OQ(t,n),r)},Gb=Na(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"})),KC=Na(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"})),Qb=Na(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"})),$Q=Na(h.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function pa({error:e,context:t}){const n=e.data?.message||"Unknown Error";return h.jsxs(h.Fragment,{children:[t&&h.jsx(Lt,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}const WR=e=>e,PQ=()=>{let e=WR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=WR}}},MN=PQ();function Il(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 Tt(e){if(typeof e!="string")throw new Error(Il(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qR(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Ul(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DQ(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 YR={exports:{}},B1,KR;function AQ(){if(KR)return B1;KR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return B1=e,B1}var U1,GR;function jQ(){if(GR)return U1;GR=1;var e=AQ();function t(){}function n(){}return n.resetWarningCache=t,U1=function(){function r(s,l,d,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},U1}var QR;function NQ(){return QR||(QR=1,YR.exports=jQ()()),YR.exports}var IQ=NQ();const nt=Ul(IQ);function EN(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=EN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=EN(e))&&(r&&(r+=" "),r+=t);return r}function tn(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let d=0;d<a.length;d+=1){const f=a[d];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}var XR={exports:{}},Nr={};/**
303
+ * @license React
304
+ * react-is.production.js
305
+ *
306
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
307
+ *
308
+ * This source code is licensed under the MIT license found in the
309
+ * LICENSE file in the root directory of this source tree.
310
+ */var ZR;function LQ(){if(ZR)return Nr;ZR=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"),d=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 d: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 Nr.ContextConsumer=a,Nr.ContextProvider=s,Nr.Element=e,Nr.ForwardRef=l,Nr.Fragment=n,Nr.Lazy=m,Nr.Memo=c,Nr.Portal=t,Nr.Profiler=o,Nr.StrictMode=r,Nr.Suspense=d,Nr.SuspenseList=f,Nr.isContextConsumer=function(x){return b(x)===a},Nr.isContextProvider=function(x){return b(x)===s},Nr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Nr.isForwardRef=function(x){return b(x)===l},Nr.isFragment=function(x){return b(x)===n},Nr.isLazy=function(x){return b(x)===m},Nr.isMemo=function(x){return b(x)===c},Nr.isPortal=function(x){return b(x)===t},Nr.isProfiler=function(x){return b(x)===o},Nr.isStrictMode=function(x){return b(x)===r},Nr.isSuspense=function(x){return b(x)===d},Nr.isSuspenseList=function(x){return b(x)===f},Nr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===d||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)},Nr.typeOf=b,Nr}var JR;function zQ(){return JR||(JR=1,XR.exports=LQ()),XR.exports}var ON=zQ();function Hs(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 RN(e){if(C.isValidElement(e)||ON.isValidElementType(e)||!Hs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=RN(e[n])}),t}function na(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Hs(e)&&Hs(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||ON.isValidElementType(t[o])?r[o]=t[o]:Hs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Hs(e[o])?r[o]=na(e[o],t[o],n):n.clone?r[o]=Hs(t[o])?RN(t[o]):t[o]:r[o]=t[o]}),r}function Cm(e,t){return t?na(e,t,{clone:!1}):e}function e$(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 FQ(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function BQ(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 UQ(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 d=t(e.breakpoints.not(...l),s);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const Xb={xs:0,sm:600,md:900,lg:1200,xl:1536},t$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Xb[e]}px)`},_Q={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Xb[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ll(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||t$;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||t$;return Object.keys(t).reduce((a,s)=>{if(FQ(o.keys,s)){const l=BQ(r.containerQueries?r:_Q,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||Xb).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 VQ(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function n$(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Zb(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 Hv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Zb(e,n)||r,t&&(o=t(o,r,e)),o}function bo(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],d=s.theme,f=Zb(d,r)||{};return Ll(s,l,c=>{let m=Hv(f,o,c);return c===m&&typeof c=="string"&&(m=Hv(f,o,`${t}${c==="default"?"":Tt(c)}`,c)),n===!1?m:{[n]:m}})};return a.propTypes={},a.filterProps=[t],a}function HQ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const WQ={m:"margin",p:"padding"},qQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},r$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},YQ=HQ(e=>{if(e.length>2)if(r$[e])e=r$[e];else return[e];const[t,n]=e.split(""),r=WQ[t],o=qQ[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),GC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...GC,...QC];function yg(e,t,n,r){const o=Zb(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 XC(e){return yg(e,"spacing",8)}function vg(e,t){return typeof t=="string"||t==null?t:e(t)}function KQ(e,t){return n=>e.reduce((r,o)=>(r[o]=vg(t,n),r),{})}function GQ(e,t,n,r){if(!t.includes(n))return null;const o=YQ(n),a=KQ(o,r),s=e[n];return Ll(e,s,a)}function $N(e,t){const n=XC(e.theme);return Object.keys(e).map(r=>GQ(e,t,r,n)).reduce(Cm,{})}function ao(e){return $N(e,GC)}ao.propTypes={};ao.filterProps=GC;function io(e){return $N(e,QC)}io.propTypes={};io.filterProps=QC;function Jb(...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]?Cm(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Di(e){return typeof e!="number"?e:`${e}px solid`}function Ki(e,t){return bo({prop:e,themeKey:"borders",transform:t})}const QQ=Ki("border",Di),XQ=Ki("borderTop",Di),ZQ=Ki("borderRight",Di),JQ=Ki("borderBottom",Di),eX=Ki("borderLeft",Di),tX=Ki("borderColor"),nX=Ki("borderTopColor"),rX=Ki("borderRightColor"),oX=Ki("borderBottomColor"),aX=Ki("borderLeftColor"),iX=Ki("outline",Di),sX=Ki("outlineColor"),e0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yg(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:vg(t,r)});return Ll(e,e.borderRadius,n)}return null};e0.propTypes={};e0.filterProps=["borderRadius"];Jb(QQ,XQ,ZQ,JQ,eX,tX,nX,rX,oX,aX,e0,iX,sX);const t0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yg(e.theme,"spacing",8),n=r=>({gap:vg(t,r)});return Ll(e,e.gap,n)}return null};t0.propTypes={};t0.filterProps=["gap"];const n0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yg(e.theme,"spacing",8),n=r=>({columnGap:vg(t,r)});return Ll(e,e.columnGap,n)}return null};n0.propTypes={};n0.filterProps=["columnGap"];const r0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yg(e.theme,"spacing",8),n=r=>({rowGap:vg(t,r)});return Ll(e,e.rowGap,n)}return null};r0.propTypes={};r0.filterProps=["rowGap"];const lX=bo({prop:"gridColumn"}),cX=bo({prop:"gridRow"}),uX=bo({prop:"gridAutoFlow"}),dX=bo({prop:"gridAutoColumns"}),fX=bo({prop:"gridAutoRows"}),pX=bo({prop:"gridTemplateColumns"}),hX=bo({prop:"gridTemplateRows"}),mX=bo({prop:"gridTemplateAreas"}),gX=bo({prop:"gridArea"});Jb(t0,n0,r0,lX,cX,uX,dX,fX,pX,hX,mX,gX);function Lf(e,t){return t==="grey"?t:e}const yX=bo({prop:"color",themeKey:"palette",transform:Lf}),vX=bo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Lf}),bX=bo({prop:"backgroundColor",themeKey:"palette",transform:Lf});Jb(yX,vX,bX);function oi(e){return e<=1&&e!==0?`${e*100}%`:e}const xX=bo({prop:"width",transform:oi}),ZC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Xb[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:oi(n)}};return Ll(e,e.maxWidth,t)}return null};ZC.filterProps=["maxWidth"];const SX=bo({prop:"minWidth",transform:oi}),wX=bo({prop:"height",transform:oi}),CX=bo({prop:"maxHeight",transform:oi}),kX=bo({prop:"minHeight",transform:oi});bo({prop:"size",cssProperty:"width",transform:oi});bo({prop:"size",cssProperty:"height",transform:oi});const TX=bo({prop:"boxSizing"});Jb(xX,ZC,SX,wX,CX,kX,TX);const bg={border:{themeKey:"borders",transform:Di},borderTop:{themeKey:"borders",transform:Di},borderRight:{themeKey:"borders",transform:Di},borderBottom:{themeKey:"borders",transform:Di},borderLeft:{themeKey:"borders",transform:Di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Di},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:e0},color:{themeKey:"palette",transform:Lf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Lf},backgroundColor:{themeKey:"palette",transform:Lf},p:{style:io},pt:{style:io},pr:{style:io},pb:{style:io},pl:{style:io},px:{style:io},py:{style:io},padding:{style:io},paddingTop:{style:io},paddingRight:{style:io},paddingBottom:{style:io},paddingLeft:{style:io},paddingX:{style:io},paddingY:{style:io},paddingInline:{style:io},paddingInlineStart:{style:io},paddingInlineEnd:{style:io},paddingBlock:{style:io},paddingBlockStart:{style:io},paddingBlockEnd:{style:io},m:{style:ao},mt:{style:ao},mr:{style:ao},mb:{style:ao},ml:{style:ao},mx:{style:ao},my:{style:ao},margin:{style:ao},marginTop:{style:ao},marginRight:{style:ao},marginBottom:{style:ao},marginLeft:{style:ao},marginX:{style:ao},marginY:{style:ao},marginInline:{style:ao},marginInlineStart:{style:ao},marginInlineEnd:{style:ao},marginBlock:{style:ao},marginBlockStart:{style:ao},marginBlockEnd:{style:ao},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:t0},rowGap:{style:r0},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:oi},maxWidth:{style:ZC},minWidth:{transform:oi},height:{transform:oi},maxHeight:{transform:oi},minHeight:{transform:oi},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 MX(...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 EX(e,t){return typeof e=="function"?e(t):e}function OX(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:c,style:m}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Zb(o,f)||{};return m?m(s):Ll(s,r,v=>{let b=Hv(y,c,v);return v===b&&typeof v=="string"&&(b=Hv(y,c,`${n}${v==="default"?"":Tt(v)}`,v)),d===!1?b:{[d]:b}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??bg;function l(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const c=VQ(o.breakpoints),m=Object.keys(c);let y=c;return Object.keys(f).forEach(v=>{const b=EX(f[v],o);if(b!=null)if(typeof b=="object")if(s[v])y=Cm(y,e(v,b,o,s));else{const x=Ll({theme:o},b,w=>({[v]:w}));MX(x,b)?y[v]=t({sx:b,theme:o,nested:!0}):y=Cm(y,x)}else y=Cm(y,e(v,b,o,s))}),!a&&o.modularCssLayers?{"@layer sx":e$(o,n$(m,y))}:e$(o,n$(m,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Zf=OX();Zf.filterProps=["sx"];const RX=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??bg;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function $X(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=RX(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return Hs(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function PX(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function JC(e,t=0,n=1){return PX(e,t,n)}function DX(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 Uc(e){if(e.type)return e;if(e.charAt(0)==="#")return Uc(DX(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Il(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(Il(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const AX=e=>{const t=Uc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},dm=(e,t)=>{try{return AX(e)}catch{return e}};function o0(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 PN(e){e=Uc(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 d=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),o0({type:l,values:d})}function JS(e){e=Uc(e);let t=e.type==="hsl"||e.type==="hsla"?Uc(PN(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 jX(e,t){const n=JS(e),r=JS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Wv(e,t){return e=Uc(e),t=JC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o0(e)}function Mu(e,t,n){try{return Wv(e,t)}catch{return e}}function a0(e,t){if(e=Uc(e),t=JC(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 o0(e)}function Or(e,t,n){try{return a0(e,t)}catch{return e}}function i0(e,t){if(e=Uc(e),t=JC(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 o0(e)}function Rr(e,t,n){try{return i0(e,t)}catch{return e}}function ew(e,t=.15){return JS(e)>.5?a0(e,t):i0(e,t)}function Ky(e,t,n){try{return ew(e,t)}catch{return e}}const Wm={black:"#000",white:"#fff"},NX={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"},mf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},gf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fh={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},yf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},bf={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function DN(){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:Wm.white,default:Wm.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 AN=DN();function jN(){return{text:{primary:Wm.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:Wm.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 tw=jN();function o$(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=i0(e.main,o):t==="dark"&&(e.dark=a0(e.main,a)))}function a$(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 IX(e="light"){return e==="dark"?{main:yf[200],light:yf[50],dark:yf[400]}:{main:yf[700],light:yf[400],dark:yf[800]}}function LX(e="light"){return e==="dark"?{main:mf[200],light:mf[50],dark:mf[400]}:{main:mf[500],light:mf[300],dark:mf[700]}}function zX(e="light"){return e==="dark"?{main:gf[500],light:gf[300],dark:gf[700]}:{main:gf[700],light:gf[400],dark:gf[800]}}function FX(e="light"){return e==="dark"?{main:vf[400],light:vf[300],dark:vf[700]}:{main:vf[700],light:vf[500],dark:vf[900]}}function BX(e="light"){return e==="dark"?{main:bf[400],light:bf[300],dark:bf[700]}:{main:bf[800],light:bf[500],dark:bf[900]}}function UX(e="light"){return e==="dark"?{main:Fh[400],light:Fh[300],dark:Fh[700]}:{main:"#ed6c02",light:Fh[500],dark:Fh[900]}}function _X(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ek(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||IX(t),l=e.secondary||LX(t),d=e.error||zX(t),f=e.info||FX(t),c=e.success||BX(t),m=e.warning||UX(t);function y(x){return o?_X(x):jX(x,tw.text.primary)>=n?tw.text.primary:AN.text.primary}const v=({color:x,name:w,mainShade:S=500,lightShade:T=300,darkShade:M=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(Il(11,w?` (${w})`:"",S));if(typeof x.main!="string")throw new Error(Il(12,w?` (${w})`:"",JSON.stringify(x.main)));return o?(a$(o,x,"light",T,r),a$(o,x,"dark",M,r)):(o$(x,"light",T,r),o$(x,"dark",M,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=DN():t==="dark"&&(b=jN()),na({common:{...Wm},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:c,name:"success"}),grey:NX,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...b},a)}function VX(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 HX={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 WX(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qX=/[A-Z]|^ms/g,YX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NN=function(e){return e.charCodeAt(1)===45},i$=function(e){return e!=null&&typeof e!="boolean"},_1=WX(function(e){return NN(e)?e:e.replace(qX,"-$&").toLowerCase()}),s$=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(YX,function(n,r,o){return Pc={name:r,styles:o,next:Pc},r})}return HX[e]!==1&&!NN(e)&&typeof t=="number"&&t!==0?t+"px":t};function qv(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 Pc={name:o.name,styles:o.styles,next:Pc},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Pc={name:s.name,styles:s.styles,next:Pc},s=s.next;var l=a.styles+";";return l}return KX(e,t,n)}}var d=n;return d}function KX(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=qv(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;i$(l)&&(r+=_1(a)+":"+s$(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var d=0;d<s.length;d++)i$(s[d])&&(r+=_1(a)+":"+s$(a,s[d])+";");else{var f=qv(e,t,s);switch(a){case"animation":case"animationName":{r+=_1(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var l$=/label:\s*([^\s;{]+)\s*(;|$)/g,Pc;function GX(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="";Pc=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=qv(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=qv(n,t,e[l]),r){var d=a;o+=d[l]}l$.lastIndex=0;for(var f="",c;(c=l$.exec(o))!==null;)f+="-"+c[1];var m=VX(o)+f;return{name:m,styles:o,next:Pc}}function QX(e,t){return Pv(e,t)}function XX(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const c$=[];function Ku(e){return c$[0]=e,GX(c$)}const Po=typeof window<"u"?C.useLayoutEffect:C.useEffect;function ZX(e){return Object.keys(e).length===0}function IN(e=null){const t=C.useContext(sp);return!t||ZX(t)?e:t}const JX=C.createContext(),gs=()=>C.useContext(JX)??!1;function qm(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 d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const f=d;r[a][f]=qm(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=jt(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 eZ=C.createContext(void 0);function tZ(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?qm(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?qm(o,r,t.components.mergeClassNameAndStyle):r}function nZ({props:e,name:t}){const n=C.useContext(eZ);return tZ({props:e,name:t,theme:{components:n}})}let u$=0;function rZ(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(u$+=1,n(`mui-${u$}`))},[t]),r}const oZ={...Pm},d$=oZ.useId;function ys(e){if(d$!==void 0){const t=d$();return e??t}return rZ(e)}const aZ=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 iZ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=aZ(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(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?d(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:d,between:f,only:c,not:m,unit:n,...o}}const sZ={borderRadius:4};function lZ(e=8,t=XC({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 cZ(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 tk(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=iZ(n),d=lZ(o);let f=na({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...sZ,...a}},s);return f=UQ(f),f.applyStyles=cZ,f=t.reduce((c,m)=>na(c,m),f),f.unstable_sxConfig={...bg,...s?.unstable_sxConfig},f.unstable_sx=function(c){return Zf({sx:c,theme:this})},f}const uZ=tk();function dZ(e=uZ){return IN(e)}const f$=(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])})},fZ=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,d])=>{(!n||n&&!n([...a,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,l],Array.isArray(d)?[...s,l]:s):t([...a,l],d,s))})}r(e)},pZ=(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 V1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return fZ(e,(l,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(l,d))){const c=`--${n?`${n}-`:""}${l.join("-")}`,m=pZ(l,d);Object.assign(o,{[c]:m}),f$(a,l,`var(${c})`,f),f$(s,l,`var(${c}, ${m})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function hZ(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:d="light",...f}=e,{vars:c,css:m,varsWithDefaults:y}=V1(f,t);let v=y;const b={},{[d]:x,...w}=s;if(Object.entries(w||{}).forEach(([T,M])=>{const{vars:R,css:$,varsWithDefaults:P}=V1(M,t);v=na(v,P),b[T]={css:$,vars:R}}),x){const{css:T,vars:M,varsWithDefaults:R}=V1(x,t);v=na(v,R),b[d]={css:T,vars:M}}function S(T,M){let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),T){if(R==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${s[T]?.palette?.mode||T})`]:{":root":M}};if(R)return e.defaultColorScheme===T?`:root, ${R.replace("%s",String(T))}`:R.replace("%s",String(T))}return":root"}return{vars:v,generateThemeVars:()=>{let T={...c};return Object.entries(b).forEach(([,{vars:M}])=>{T=na(T,M)}),T},generateStyleSheets:()=>{const T=[],M=e.defaultColorScheme||"light";function R(N,V){Object.keys(V).length&&T.push(typeof N=="string"?{[N]:{...V}}:N)}R(n(void 0,{...m}),m);const{[M]:$,...P}=b;if($){const{css:N}=$,V=s[M]?.palette?.mode,z=!r&&V?{colorScheme:V,...N}:{...N};R(n(M,{...z}),z)}return Object.entries(P).forEach(([N,{css:V}])=>{const z=s[N]?.palette?.mode,W=!r&&z?{colorScheme:z,...V}:{...V};R(n(N,{...W}),W)}),a&&T.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)"}}),T}}}function mZ(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 gZ(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 yZ={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 on(e,t,n="Mui"){const r=yZ[t];return r?`${n}-${r}`:`${MN.generate(e)}-${t}`}function vZ(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function bZ(e){return Math.round(e*1e5)/1e5}const p$={textTransform:"uppercase"},h$='"Roboto", "Helvetica", "Arial", sans-serif';function xZ(e,t){const{fontFamily:n=h$,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:f,pxToRem:c,...m}=typeof t=="function"?t(e):t,y=r/14,v=c||(w=>`${w/d*y}rem`),b=(w,S,T,M,R)=>({fontFamily:n,fontWeight:w,fontSize:v(S),lineHeight:T,...n===h$?{letterSpacing:`${bZ(M/S)}em`}:{},...R,...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,p$),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,p$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return na({htmlFontSize:d,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},m,{clone:!1})}const SZ=.2,wZ=.14,CZ=.12;function Gr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${SZ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wZ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CZ})`].join(",")}const kZ=["none",Gr(0,2,1,-1,0,1,1,0,0,1,3,0),Gr(0,3,1,-2,0,2,2,0,0,1,5,0),Gr(0,3,3,-2,0,3,4,0,0,1,8,0),Gr(0,2,4,-1,0,4,5,0,0,1,10,0),Gr(0,3,5,-1,0,5,8,0,0,1,14,0),Gr(0,3,5,-1,0,6,10,0,0,1,18,0),Gr(0,4,5,-2,0,7,10,1,0,2,16,1),Gr(0,5,5,-3,0,8,10,1,0,3,14,2),Gr(0,5,6,-3,0,9,12,1,0,3,16,2),Gr(0,6,6,-3,0,10,14,1,0,4,18,3),Gr(0,6,7,-4,0,11,15,1,0,4,20,3),Gr(0,7,8,-4,0,12,17,2,0,5,22,4),Gr(0,7,8,-4,0,13,19,2,0,5,24,4),Gr(0,7,9,-4,0,14,21,2,0,5,26,4),Gr(0,8,9,-5,0,15,22,2,0,6,28,5),Gr(0,8,10,-5,0,16,24,2,0,6,30,5),Gr(0,8,11,-5,0,17,26,2,0,6,32,5),Gr(0,9,11,-5,0,18,28,2,0,7,34,6),Gr(0,9,12,-6,0,19,29,2,0,7,36,6),Gr(0,10,13,-6,0,20,31,3,0,8,38,7),Gr(0,10,13,-6,0,21,33,3,0,8,40,7),Gr(0,10,14,-6,0,22,35,3,0,8,42,7),Gr(0,11,14,-7,0,23,36,3,0,9,44,8),Gr(0,11,15,-7,0,24,38,3,0,9,46,8)],TZ={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)"},MZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function m$(e){return`${Math.round(e)}ms`}function EZ(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function OZ(e){const t={...TZ,...e.easing},n={...MZ,...e.duration};return{getAutoHeightDuration:EZ,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...d}=o;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:m$(a)} ${s} ${typeof l=="string"?l:m$(l)}`).join(",")},...e,easing:t,duration:n}}const RZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $Z(e){return Hs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function LN(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];!$Z(l)||s.startsWith("unstable_")?delete r[s]:Hs(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
311
+
312
+ const theme = ${JSON.stringify(t,null,2)};
313
+
314
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
315
+ theme.transitions = createTransitions(theme.transitions || {});
316
+
317
+ export default theme;`}function g$(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const PZ=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 DZ(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})`:Wv(t,PZ(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${g$(n)})`:i0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${g$(n)})`:a0(t,n)}})}function nw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:d,colorSpace:f,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Il(20));const m=ek({...a,colorSpace:f}),y=tk(e);let v=na(y,{mixins:vZ(y.breakpoints,r),palette:m,shadows:kZ.slice(),typography:xZ(m,l),transitions:OZ(s),zIndex:{...RZ}});return v=na(v,c),v=t.reduce((b,x)=>na(b,x),v),v.unstable_sxConfig={...bg,...c?.unstable_sxConfig},v.unstable_sx=function(b){return Zf({sx:b,theme:this})},v.toRuntimeSource=LN,DZ(v),v}function rw(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 AZ=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=rw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function zN(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function FN(e){return e==="dark"?AZ:[]}function jZ(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=ek({...t,colorSpace:o});return{palette:s,opacity:{...zN(s.mode),...n},overlays:r||FN(s.mode),...a}}function NZ(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 IZ=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],LZ=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 IZ(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 zZ(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function lt(e,t,n){!e[t]&&n&&(e[t]=n)}function fm(e){return typeof e!="string"||!e.startsWith("hsl")?e:PN(e)}function Ol(e,t){`${t}Channel`in e||(e[`${t}Channel`]=dm(fm(e[t])))}function FZ(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ls=e=>{try{return e()}catch{}},BZ=(e="mui")=>$A(e);function H1(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=jZ({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=nw({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...zN(a),...n?.opacity},overlays:n?.overlays||FN(a)},l}function UZ(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=NZ,colorSchemeSelector:d=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=BZ(a),{[y]:b,light:x,dark:w,...S}=n,T={...S};let M=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(Il(21,y));let R;s&&(R="oklch");const $=H1(R,T,M,c,y);x&&!T.light&&H1(R,T,x,void 0,"light"),w&&!T.dark&&H1(R,T,w,void 0,"dark");let P={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:d,rootSelector:f,getCssVar:v,colorSchemes:T,font:{...mZ($.typography),...$.font},spacing:FZ(c.spacing)};Object.keys(P.colorSchemes).forEach(H=>{const k=P.colorSchemes[H].palette,I=_=>{const j=_.split("-"),X=j[1],Q=j[2];return v(_,k[X][Q])};k.mode==="light"&&(lt(k.common,"background","#fff"),lt(k.common,"onBackground","#000")),k.mode==="dark"&&(lt(k.common,"background","#000"),lt(k.common,"onBackground","#fff"));function F(_,j,X){if(R){let Q;return _===Mu&&(Q=`transparent ${((1-X)*100).toFixed(0)}%`),_===Or&&(Q=`#000 ${(X*100).toFixed(0)}%`),_===Rr&&(Q=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${R}, ${j}, ${Q})`}return _(j,X)}if(zZ(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){lt(k.Alert,"errorColor",F(Or,k.error.light,.6)),lt(k.Alert,"infoColor",F(Or,k.info.light,.6)),lt(k.Alert,"successColor",F(Or,k.success.light,.6)),lt(k.Alert,"warningColor",F(Or,k.warning.light,.6)),lt(k.Alert,"errorFilledBg",I("palette-error-main")),lt(k.Alert,"infoFilledBg",I("palette-info-main")),lt(k.Alert,"successFilledBg",I("palette-success-main")),lt(k.Alert,"warningFilledBg",I("palette-warning-main")),lt(k.Alert,"errorFilledColor",Ls(()=>k.getContrastText(k.error.main))),lt(k.Alert,"infoFilledColor",Ls(()=>k.getContrastText(k.info.main))),lt(k.Alert,"successFilledColor",Ls(()=>k.getContrastText(k.success.main))),lt(k.Alert,"warningFilledColor",Ls(()=>k.getContrastText(k.warning.main))),lt(k.Alert,"errorStandardBg",F(Rr,k.error.light,.9)),lt(k.Alert,"infoStandardBg",F(Rr,k.info.light,.9)),lt(k.Alert,"successStandardBg",F(Rr,k.success.light,.9)),lt(k.Alert,"warningStandardBg",F(Rr,k.warning.light,.9)),lt(k.Alert,"errorIconColor",I("palette-error-main")),lt(k.Alert,"infoIconColor",I("palette-info-main")),lt(k.Alert,"successIconColor",I("palette-success-main")),lt(k.Alert,"warningIconColor",I("palette-warning-main")),lt(k.AppBar,"defaultBg",I("palette-grey-100")),lt(k.Avatar,"defaultBg",I("palette-grey-400")),lt(k.Button,"inheritContainedBg",I("palette-grey-300")),lt(k.Button,"inheritContainedHoverBg",I("palette-grey-A100")),lt(k.Chip,"defaultBorder",I("palette-grey-400")),lt(k.Chip,"defaultAvatarColor",I("palette-grey-700")),lt(k.Chip,"defaultIconColor",I("palette-grey-700")),lt(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),lt(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),lt(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),lt(k.LinearProgress,"primaryBg",F(Rr,k.primary.main,.62)),lt(k.LinearProgress,"secondaryBg",F(Rr,k.secondary.main,.62)),lt(k.LinearProgress,"errorBg",F(Rr,k.error.main,.62)),lt(k.LinearProgress,"infoBg",F(Rr,k.info.main,.62)),lt(k.LinearProgress,"successBg",F(Rr,k.success.main,.62)),lt(k.LinearProgress,"warningBg",F(Rr,k.warning.main,.62)),lt(k.Skeleton,"bg",R?F(Mu,k.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),lt(k.Slider,"primaryTrack",F(Rr,k.primary.main,.62)),lt(k.Slider,"secondaryTrack",F(Rr,k.secondary.main,.62)),lt(k.Slider,"errorTrack",F(Rr,k.error.main,.62)),lt(k.Slider,"infoTrack",F(Rr,k.info.main,.62)),lt(k.Slider,"successTrack",F(Rr,k.success.main,.62)),lt(k.Slider,"warningTrack",F(Rr,k.warning.main,.62));const _=R?F(Or,k.background.default,.6825):Ky(k.background.default,.8);lt(k.SnackbarContent,"bg",_),lt(k.SnackbarContent,"color",Ls(()=>R?tw.text.primary:k.getContrastText(_))),lt(k.SpeedDialAction,"fabHoverBg",Ky(k.background.paper,.15)),lt(k.StepConnector,"border",I("palette-grey-400")),lt(k.StepContent,"border",I("palette-grey-400")),lt(k.Switch,"defaultColor",I("palette-common-white")),lt(k.Switch,"defaultDisabledColor",I("palette-grey-100")),lt(k.Switch,"primaryDisabledColor",F(Rr,k.primary.main,.62)),lt(k.Switch,"secondaryDisabledColor",F(Rr,k.secondary.main,.62)),lt(k.Switch,"errorDisabledColor",F(Rr,k.error.main,.62)),lt(k.Switch,"infoDisabledColor",F(Rr,k.info.main,.62)),lt(k.Switch,"successDisabledColor",F(Rr,k.success.main,.62)),lt(k.Switch,"warningDisabledColor",F(Rr,k.warning.main,.62)),lt(k.TableCell,"border",F(Rr,F(Mu,k.divider,1),.88)),lt(k.Tooltip,"bg",F(Mu,k.grey[700],.92))}if(k.mode==="dark"){lt(k.Alert,"errorColor",F(Rr,k.error.light,.6)),lt(k.Alert,"infoColor",F(Rr,k.info.light,.6)),lt(k.Alert,"successColor",F(Rr,k.success.light,.6)),lt(k.Alert,"warningColor",F(Rr,k.warning.light,.6)),lt(k.Alert,"errorFilledBg",I("palette-error-dark")),lt(k.Alert,"infoFilledBg",I("palette-info-dark")),lt(k.Alert,"successFilledBg",I("palette-success-dark")),lt(k.Alert,"warningFilledBg",I("palette-warning-dark")),lt(k.Alert,"errorFilledColor",Ls(()=>k.getContrastText(k.error.dark))),lt(k.Alert,"infoFilledColor",Ls(()=>k.getContrastText(k.info.dark))),lt(k.Alert,"successFilledColor",Ls(()=>k.getContrastText(k.success.dark))),lt(k.Alert,"warningFilledColor",Ls(()=>k.getContrastText(k.warning.dark))),lt(k.Alert,"errorStandardBg",F(Or,k.error.light,.9)),lt(k.Alert,"infoStandardBg",F(Or,k.info.light,.9)),lt(k.Alert,"successStandardBg",F(Or,k.success.light,.9)),lt(k.Alert,"warningStandardBg",F(Or,k.warning.light,.9)),lt(k.Alert,"errorIconColor",I("palette-error-main")),lt(k.Alert,"infoIconColor",I("palette-info-main")),lt(k.Alert,"successIconColor",I("palette-success-main")),lt(k.Alert,"warningIconColor",I("palette-warning-main")),lt(k.AppBar,"defaultBg",I("palette-grey-900")),lt(k.AppBar,"darkBg",I("palette-background-paper")),lt(k.AppBar,"darkColor",I("palette-text-primary")),lt(k.Avatar,"defaultBg",I("palette-grey-600")),lt(k.Button,"inheritContainedBg",I("palette-grey-800")),lt(k.Button,"inheritContainedHoverBg",I("palette-grey-700")),lt(k.Chip,"defaultBorder",I("palette-grey-700")),lt(k.Chip,"defaultAvatarColor",I("palette-grey-300")),lt(k.Chip,"defaultIconColor",I("palette-grey-300")),lt(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),lt(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),lt(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),lt(k.LinearProgress,"primaryBg",F(Or,k.primary.main,.5)),lt(k.LinearProgress,"secondaryBg",F(Or,k.secondary.main,.5)),lt(k.LinearProgress,"errorBg",F(Or,k.error.main,.5)),lt(k.LinearProgress,"infoBg",F(Or,k.info.main,.5)),lt(k.LinearProgress,"successBg",F(Or,k.success.main,.5)),lt(k.LinearProgress,"warningBg",F(Or,k.warning.main,.5)),lt(k.Skeleton,"bg",R?F(Mu,k.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),lt(k.Slider,"primaryTrack",F(Or,k.primary.main,.5)),lt(k.Slider,"secondaryTrack",F(Or,k.secondary.main,.5)),lt(k.Slider,"errorTrack",F(Or,k.error.main,.5)),lt(k.Slider,"infoTrack",F(Or,k.info.main,.5)),lt(k.Slider,"successTrack",F(Or,k.success.main,.5)),lt(k.Slider,"warningTrack",F(Or,k.warning.main,.5));const _=R?F(Rr,k.background.default,.985):Ky(k.background.default,.98);lt(k.SnackbarContent,"bg",_),lt(k.SnackbarContent,"color",Ls(()=>R?AN.text.primary:k.getContrastText(_))),lt(k.SpeedDialAction,"fabHoverBg",Ky(k.background.paper,.15)),lt(k.StepConnector,"border",I("palette-grey-600")),lt(k.StepContent,"border",I("palette-grey-600")),lt(k.Switch,"defaultColor",I("palette-grey-300")),lt(k.Switch,"defaultDisabledColor",I("palette-grey-600")),lt(k.Switch,"primaryDisabledColor",F(Or,k.primary.main,.55)),lt(k.Switch,"secondaryDisabledColor",F(Or,k.secondary.main,.55)),lt(k.Switch,"errorDisabledColor",F(Or,k.error.main,.55)),lt(k.Switch,"infoDisabledColor",F(Or,k.info.main,.55)),lt(k.Switch,"successDisabledColor",F(Or,k.success.main,.55)),lt(k.Switch,"warningDisabledColor",F(Or,k.warning.main,.55)),lt(k.TableCell,"border",F(Or,F(Mu,k.divider,1),.68)),lt(k.Tooltip,"bg",F(Mu,k.grey[700],.92))}Ol(k.background,"default"),Ol(k.background,"paper"),Ol(k.common,"background"),Ol(k.common,"onBackground"),Ol(k,"divider"),Object.keys(k).forEach(_=>{const j=k[_];_!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&lt(k[_],"mainChannel",dm(fm(j.main))),j.light&&lt(k[_],"lightChannel",dm(fm(j.light))),j.dark&&lt(k[_],"darkChannel",dm(fm(j.dark))),j.contrastText&&lt(k[_],"contrastTextChannel",dm(fm(j.contrastText))),_==="text"&&(Ol(k[_],"primary"),Ol(k[_],"secondary")),_==="action"&&(j.active&&Ol(k[_],"active"),j.selected&&Ol(k[_],"selected")))})}),P=t.reduce((H,k)=>na(H,k),P);const N={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:LZ(P),enableContrastVars:s},{vars:V,generateThemeVars:z,generateStyleSheets:W}=hZ(P,N);return P.vars=V,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([H,k])=>{P[H]=k}),P.generateThemeVars=z,P.generateStyleSheets=W,P.generateSpacing=function(){return Jw(c.spacing,XC(this))},P.getColorSchemeSelector=gZ(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...bg,...c?.unstable_sxConfig},P.unstable_sx=function(H){return Zf({sx:H,theme:this})},P.toRuntimeSource=LN,P}function y$(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ek({...n===!0?{}:n.palette,mode:t})})}function BN(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",d=o?.[l],f={...o,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return nw(e,...t);let c=n;"palette"in e||f[l]&&(f[l]!==!0?c=f[l].palette:l==="dark"&&(c={mode:"dark"}));const m=nw({...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},y$(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},y$(m,"light",f.light)),m}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),UZ({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const s0=BN(),mp="$$material";function fd(){const e=cp(s0);return e[mp]||e}function _Z(e){return h.jsx(nC,{...e,defaultTheme:s0,themeId:mp})}function VZ(e){const{variants:t,...n}=e,r={variants:t,style:Ku(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ku(o.style))}),r}const HZ=tk();function W1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Vu(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function WZ(e){return e?(t,n)=>n[e]:null}function qZ(e,t,n){e.theme=KZ(e.theme)?n:e.theme[t]||e.theme}function wv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>wv(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Vu(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?Vu(Ku(s),n):s}return UN(e,r.variants,[o],n)}return r?.isProcessed?n?Vu(Ku(r.style),n):r.style:n?Vu(Ku(r),n):r}function UN(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?Vu(Ku(s.style(o)),r):s.style(o))):n.push(r?Vu(Ku(s.style),r):s.style)}return n}function YZ(e={}){const{themeId:t,defaultTheme:n=HZ,rootShouldForwardProp:r=W1,slotShouldForwardProp:o=W1}=e;function a(s){qZ(s,t,n)}return(s,l={})=>{XX(s,$=>$.filter(P=>P!==Zf));const{name:d,slot:f,skipVariantsResolver:c,skipSx:m,overridesResolver:y=WZ(QZ(f)),...v}=l,b=d&&d.startsWith("Mui")||f?"components":"custom",x=c!==void 0?c:f&&f!=="Root"&&f!=="root"||!1,w=m||!1;let S=W1;f==="Root"||f==="root"?S=r:f?S=o:GZ(s)&&(S=void 0);const T=QX(s,{shouldForwardProp:S,label:void 0,...v}),M=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(P){return wv(P,$,P.theme.modularCssLayers?b:void 0)};if(Hs($)){const P=VZ($);return function(N){return P.variants?wv(N,P,N.theme.modularCssLayers?b:void 0):N.theme.modularCssLayers?Vu(P.style,b):P.style}}return $},R=(...$)=>{const P=[],N=$.map(M),V=[];if(P.push(a),d&&y&&V.push(function(H){const k=H.theme.components?.[d]?.styleOverrides;if(!k)return null;const I={};for(const F in k)I[F]=wv(H,k[F],H.theme.modularCssLayers?"theme":void 0);return y(H,I)}),d&&!x&&V.push(function(H){const k=H.theme?.components?.[d]?.variants;return k?UN(H,k,[],H.theme.modularCssLayers?"theme":void 0):null}),w||V.push(Zf),Array.isArray(N[0])){const H=N.shift(),k=new Array(P.length).fill(""),I=new Array(V.length).fill("");let F;F=[...k,...H,...I],F.raw=[...k,...H.raw,...I],P.unshift(F)}const z=[...P,...N,...V],W=T(...z);return s.muiName&&(W.muiName=s.muiName),W};return T.withConfig&&(R.withConfig=T.withConfig),R}}function KZ(e){for(const t in e)return!1;return!0}function GZ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function QZ(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function _N(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ia=e=>_N(e)&&e!=="classes",Ge=YZ({themeId:mp,defaultTheme:s0,rootShouldForwardProp:Ia});function XZ(e){return function(t){return h.jsx(_Z,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function ZZ(){return $X}const Vn=OA;function Hn(e){return nZ(e)}function Gt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=on(e,o,n)}),r}function JZ(e){return on("MuiSvgIcon",e)}Gt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const eJ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Tt(t)}`,`fontSize${Tt(n)}`]};return tn(o,JZ,r)},tJ=Ge("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)}`]]}})(Vn(({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}}]}))),Yv=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:d,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=eJ(b);return h.jsxs(tJ,{as:s,className:jt(w.root,o),focusable:"false",color:d,"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]})});Yv.muiName="SvgIcon";function cr(e,t){function n(r,o){return h.jsx(Yv,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Yv.muiName,C.memo(C.forwardRef(n))}function VN(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 Cv(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function $o(e){return e&&e.ownerDocument||document}function zl(e){return $o(e).defaultView||window}function ow(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function si(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),d=a?t:s,f=C.useCallback(c=>{a||l(c)},[]);return[d,f]}function It(e){const t=C.useRef(e);return Po(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function mr(...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 nJ(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function HN(e,t){if(!e)return t;function n(s,l){const d={};return Object.keys(l).forEach(f=>{nJ(f,l[f])&&typeof s[f]=="function"&&(d[f]=(...c)=>{s[f](...c),l[f](...c)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...l}):e,f=jt(s?.className,l?.className,d?.className),c=n(d,l);return{...l,...d,...c,...!!f&&{className:f},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,o=n(e,r),a=jt(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 nk=cr(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function xg({label:e,onClick:t,disabled:n}){return h.jsx(Yo,{variant:"contained",color:"primary",startIcon:h.jsx(nk,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Sg({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:a,ariaHasPopup:s}){const l=h.jsx("span",{children:h.jsx(Yo,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":a,"aria-haspopup":s,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?h.jsx(Ui,{title:o,children:l}):l}const Jf=cr(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 oa({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:a=!1,actions:s,children:l}){const d=C.useId();return h.jsxs(Yf,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":d,children:[h.jsxs(Gf,{id:d,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:[n,a&&h.jsx(eo,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:h.jsx(Jf,{fontSize:"small"})})]}),h.jsxs(Kf,{sx:{px:3,pb:1,pt:1},children:[r&&h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),h.jsx(fr,{sx:{gap:2,pt:r?0:1},children:l})]}),s&&h.jsx(pj,{sx:{px:3,pb:3,pt:2,gap:1},children:s})]})}function Dhe({left:e,children:t}){const{theme:n}=Bl();return h.jsxs(fr,{direction:"row",sx:{position:"sticky",top:0,zIndex:5,alignItems:"center",justifyContent:"space-between",gap:1,minHeight:48,py:.5,mb:3,bgcolor:n.background,borderBottom:n.border},children:[h.jsx(fr,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0,overflow:"hidden"},children:e}),h.jsx(fr,{direction:"row",sx:{alignItems:"center",gap:.5,flexShrink:0,"& .MuiButton-root":{whiteSpace:"nowrap"}},children:t})]})}var aw={exports:{}},rJ=aw.exports,v$;function oJ(){return v$||(v$=1,(function(e,t){(function(n,r){e.exports=r()})(rJ,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",d="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,T={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(F){var _=["th","st","nd","rd"],j=F%100;return"["+F+(_[(j-20)%10]||_[j]||_[0])+"]"}},M=function(F,_,j){var X=String(F);return!X||X.length>=_?F:""+Array(_+1-X.length).join(j)+F},R={s:M,z:function(F){var _=-F.utcOffset(),j=Math.abs(_),X=Math.floor(j/60),Q=j%60;return(_<=0?"+":"-")+M(X,2,"0")+":"+M(Q,2,"0")},m:function F(_,j){if(_.date()<j.date())return-F(j,_);var X=12*(j.year()-_.year())+(j.month()-_.month()),Q=_.clone().add(X,m),te=j-Q<0,Z=_.clone().add(X+(te?-1:1),m);return+(-(X+(j-Q)/(te?Q-Z:Z-Q))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:m,y:v,w:c,d:f,D:b,h:d,m:l,s,ms:a,Q:y}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},$="en",P={};P[$]=T;var N="$isDayjsObject",V=function(F){return F instanceof k||!(!F||!F[N])},z=function F(_,j,X){var Q;if(!_)return $;if(typeof _=="string"){var te=_.toLowerCase();P[te]&&(Q=te),j&&(P[te]=j,Q=te);var Z=_.split("-");if(!Q&&Z.length>1)return F(Z[0])}else{var G=_.name;P[G]=_,Q=G}return!X&&Q&&($=Q),Q||!X&&$},W=function(F,_){if(V(F))return F.clone();var j=typeof _=="object"?_:{};return j.date=F,j.args=arguments,new k(j)},H=R;H.l=z,H.i=V,H.w=function(F,_){return W(F,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var k=(function(){function F(j){this.$L=z(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[N]=!0}var _=F.prototype;return _.parse=function(j){this.$d=(function(X){var Q=X.date,te=X.utc;if(Q===null)return new Date(NaN);if(H.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var Z=Q.match(w);if(Z){var G=Z[2]-1||0,ne=(Z[7]||"0").substring(0,3);return te?new Date(Date.UTC(Z[1],G,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ne)):new Date(Z[1],G,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ne)}}return new Date(Q)})(j),this.init()},_.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()},_.$utils=function(){return H},_.isValid=function(){return this.$d.toString()!==x},_.isSame=function(j,X){var Q=W(j);return this.startOf(X)<=Q&&Q<=this.endOf(X)},_.isAfter=function(j,X){return W(j)<this.startOf(X)},_.isBefore=function(j,X){return this.endOf(X)<W(j)},_.$g=function(j,X,Q){return H.u(j)?this[X]:this.set(Q,j)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(j,X){var Q=this,te=!!H.u(X)||X,Z=H.p(j),G=function(ye,we){var Ce=H.w(Q.$u?Date.UTC(Q.$y,we,ye):new Date(Q.$y,we,ye),Q);return te?Ce:Ce.endOf(f)},ne=function(ye,we){return H.w(Q.toDate()[ye].apply(Q.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(we)),Q)},ce=this.$W,pe=this.$M,oe=this.$D,ae="set"+(this.$u?"UTC":"");switch(Z){case v:return te?G(1,0):G(31,11);case m:return te?G(1,pe):G(0,pe+1);case c:var le=this.$locale().weekStart||0,ge=(ce<le?ce+7:ce)-le;return G(te?oe-ge:oe+(6-ge),pe);case f:case b:return ne(ae+"Hours",0);case d:return ne(ae+"Minutes",1);case l:return ne(ae+"Seconds",2);case s:return ne(ae+"Milliseconds",3);default:return this.clone()}},_.endOf=function(j){return this.startOf(j,!1)},_.$set=function(j,X){var Q,te=H.p(j),Z="set"+(this.$u?"UTC":""),G=(Q={},Q[f]=Z+"Date",Q[b]=Z+"Date",Q[m]=Z+"Month",Q[v]=Z+"FullYear",Q[d]=Z+"Hours",Q[l]=Z+"Minutes",Q[s]=Z+"Seconds",Q[a]=Z+"Milliseconds",Q)[te],ne=te===f?this.$D+(X-this.$W):X;if(te===m||te===v){var ce=this.clone().set(b,1);ce.$d[G](ne),ce.init(),this.$d=ce.set(b,Math.min(this.$D,ce.daysInMonth())).$d}else G&&this.$d[G](ne);return this.init(),this},_.set=function(j,X){return this.clone().$set(j,X)},_.get=function(j){return this[H.p(j)]()},_.add=function(j,X){var Q,te=this;j=Number(j);var Z=H.p(X),G=function(pe){var oe=W(te);return H.w(oe.date(oe.date()+Math.round(pe*j)),te)};if(Z===m)return this.set(m,this.$M+j);if(Z===v)return this.set(v,this.$y+j);if(Z===f)return G(1);if(Z===c)return G(7);var ne=(Q={},Q[l]=r,Q[d]=o,Q[s]=n,Q)[Z]||1,ce=this.$d.getTime()+j*ne;return H.w(ce,this)},_.subtract=function(j,X){return this.add(-1*j,X)},_.format=function(j){var X=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||x;var te=j||"YYYY-MM-DDTHH:mm:ssZ",Z=H.z(this),G=this.$H,ne=this.$m,ce=this.$M,pe=Q.weekdays,oe=Q.months,ae=Q.meridiem,le=function(we,Ce,$e,de){return we&&(we[Ce]||we(X,te))||$e[Ce].slice(0,de)},ge=function(we){return H.s(G%12||12,we,"0")},ye=ae||function(we,Ce,$e){var de=we<12?"AM":"PM";return $e?de.toLowerCase():de};return te.replace(S,(function(we,Ce){return Ce||(function($e){switch($e){case"YY":return String(X.$y).slice(-2);case"YYYY":return H.s(X.$y,4,"0");case"M":return ce+1;case"MM":return H.s(ce+1,2,"0");case"MMM":return le(Q.monthsShort,ce,oe,3);case"MMMM":return le(oe,ce);case"D":return X.$D;case"DD":return H.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return le(Q.weekdaysMin,X.$W,pe,2);case"ddd":return le(Q.weekdaysShort,X.$W,pe,3);case"dddd":return pe[X.$W];case"H":return String(G);case"HH":return H.s(G,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return ye(G,ne,!0);case"A":return ye(G,ne,!1);case"m":return String(ne);case"mm":return H.s(ne,2,"0");case"s":return String(X.$s);case"ss":return H.s(X.$s,2,"0");case"SSS":return H.s(X.$ms,3,"0");case"Z":return Z}return null})(we)||Z.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(j,X,Q){var te,Z=this,G=H.p(X),ne=W(j),ce=(ne.utcOffset()-this.utcOffset())*r,pe=this-ne,oe=function(){return H.m(Z,ne)};switch(G){case v:te=oe()/12;break;case m:te=oe();break;case y:te=oe()/3;break;case c:te=(pe-ce)/6048e5;break;case f:te=(pe-ce)/864e5;break;case d:te=pe/o;break;case l:te=pe/r;break;case s:te=pe/n;break;default:te=pe}return Q?te:H.a(te)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return P[this.$L]},_.locale=function(j,X){if(!j)return this.$L;var Q=this.clone(),te=z(j,X,!0);return te&&(Q.$L=te),Q},_.clone=function(){return H.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},F})(),I=k.prototype;return W.prototype=I,[["$ms",a],["$s",s],["$m",l],["$H",d],["$W",f],["$M",m],["$y",v],["$D",b]].forEach((function(F){I[F[1]]=function(_){return this.$g(_,F[0],F[1])}})),W.extend=function(F,_){return F.$i||(F(_,k,W),F.$i=!0),W},W.locale=z,W.isDayjs=V,W.unix=function(F){return W(1e3*F)},W.en=P[$],W.Ls=P,W.p={},W}))})(aw)),aw.exports}var aJ=oJ();const $r=Ul(aJ);var iw={exports:{}},iJ=iw.exports,b$;function sJ(){return b$||(b$=1,(function(e,t){(function(n,r){e.exports=r()})(iJ,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,s,l){var d=s.prototype;l.utc=function(x){var w={date:x,utc:!0,args:arguments};return new s(w)},d.utc=function(x){var w=l(this.toDate(),{locale:this.$L,utc:!0});return x?w.add(this.utcOffset(),n):w},d.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var f=d.parse;d.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),f.call(this,x)};var c=d.init;d.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=d.utcOffset;d.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($){$===void 0&&($="");var P=$.match(r);if(!P)return null;var N=(""+P[0]).match(o)||["-",0,0],V=N[0],z=60*+N[1]+ +N[2];return z===0?0:V==="+"?z:-z})(x),x===null))return this;var T=Math.abs(x)<=16?60*x:x;if(T===0)return this.utc(w);var M=this.clone();if(w)return M.$offset=T,M.$u=!1,M;var R=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(M=this.local().add(T+R,n)).$offset=T,M.$x.$localOffset=R,M};var y=d.format;d.format=function(x){var w=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,w)},d.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var v=d.toDate;d.toDate=function(x){return x==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var b=d.diff;d.diff=function(x,w,S){if(x&&this.$u===x.$u)return b.call(this,x,w,S);var T=this.local(),M=l(x).local();return b.call(T,M,w,S)}}}))})(iw)),iw.exports}var lJ=sJ();const rk=Ul(lJ);$r.extend(rk);function Iu(e){return(e??"").startsWith("filter<")}function km(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function ok(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":Yi.StringFilterExpression.unparse({operator:"=",values:[...t]})}function cJ(e){if(e.trim()==="")return[];const{parsed:t}=Yi.StringFilterExpression.parse(e);return WN(t)?t.values:[e]}function uJ(e){return e===void 0||e.trim()===""?!0:WN(Yi.StringFilterExpression.parse(e).parsed)}function WN(e){return e!==null&&Yi.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function dJ(e){return Yi.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function fJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=Yi.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 pJ(e,t){return Yi.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function hJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=Yi.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 Kv=[{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 mJ(e){const t=Kv.find(n=>n.key===e);return t?Yi.TemporalFilterExpression.unparse(t.clause):void 0}function gJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=Yi.TemporalFilterExpression.parse(t);if(n!==null)for(const r of Kv){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 yJ=/^\d{4}-\d{2}-\d{2}$/;function vJ(e,t){const n=$r.utc(t,"YYYY-MM-DD").add(1,"day");return Yi.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function bJ(e){const t=e.trim();if(t==="")return;const{parsed:n}=Yi.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=x$(n.fromMoment),o=x$(n.toMoment);if(r===void 0||o===void 0)return;const a=$r.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!a.isValid()||a.isBefore($r.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:a.format("YYYY-MM-DD")}}function x$(e){return e.moment==="literal"&&yJ.test(e.literal)?e.literal:void 0}const q1="self";function qN(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(S$)).filter(S$):[]}function YN(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function KN(e){return e.tag?.tag("drill")?.text("given")??e.name}function l0(e){if(typeof e=="string"){const t=ok([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 GN(e){return e instanceof Date?l0(e)??"":String(e)}function xJ(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=qN(t);if(n.length===0)return;const r=l0(e.value);if(r!==void 0)return{to:n,given:KN(t),value:r,rawValue:e.value,label:GN(e.value)}}function S$(e){return typeof e=="string"&&e!==""}function SJ(e,t){if(t!==void 0&&!Iu(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 km(t)==="string"&&typeof e=="number"?Number.isFinite(e)?ok([String(e)]):void 0:km(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:l0(e)}function wJ({declaredTypes:e,setGiven:t,documentName:n}){const r=C.useMemo(()=>{const l=new Map;for(const d of e.keys())l.has(d.toLowerCase())||l.set(d.toLowerCase(),d);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,d)=>{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=SJ(d,c);if(m===void 0){console.warn(`Drill declined: ${JSON.stringify(d)} 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 CJ(e,t){if(e!=null){if(e instanceof Date)return ZN(e,t);if(!Array.isArray(e))return String(e)}}function kJ(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 TJ=/^(\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 QN(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 MJ(e,t=!1){const n=QN(e);if(n==="")return;const r=TJ.exec(n);if(!r)return;const[,o,a,s,l,d,f,c,m]=r,y={year:Number(o),month:Number(a),day:Number(s),hour:Number(l??0),minute:Number(d??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=EJ(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 EJ(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 OJ(e){return!RJ.has(e??"")}const RJ=new Set(["boolean","number","date","timestamp","timestamptz"]);function XN(e,t){if(t===""&&!OJ(e))return null;if(Iu(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=QN(t);return MJ(n,e==="date")??n}default:return t}}function $J(e,t){const n={};for(const[r,o]of e){const a=CJ(o,t.get(r));a!==void 0&&(n[r]=a)}return n}function ZN(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 c0(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?ZN(s,t.get(a)):s));return o}function w$(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,XN(t.get(r),o));return n}function C$(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 k$(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function PJ(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function T$(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function DJ({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:a}){const s=C.useMemo(()=>w$(t??{},e),[e,JSON.stringify(t)]),l=C.useRef(null),d=C.useRef(null),f=C.useRef({documentKey:o,params:n}),c=H=>H!==null&&PJ(n??{},H,e);c(l.current)&&(d.current=null),(f.current.documentKey!==o||!T$(n??{},f.current.params??{})&&!c(l.current)&&!c(d.current))&&(f.current={documentKey:o,params:n});const m=f.current.params,y=JSON.stringify(t),v=JSON.stringify(m),b=C.useMemo(()=>w$({...t??{},...m??{}},e),[e,y,v]),x=C.useMemo(()=>JSON.stringify([o??null,k$(t),k$(m)]),[o,y,v]),[w,S]=C.useState(null),T=w?.key===x?w:null;C.useEffect(()=>{w!==null&&w.key!==x&&S(null)},[w,x]);const M=C.useMemo(()=>C$(T?.draft??b,e),[T,b,e]),R=C.useMemo(()=>C$(T?.applied??b,e),[T,b,e]),$=C.useCallback(H=>H?.key===x?H:{key:x,draft:b,applied:b},[x,b]),P=C.useMemo(()=>$J(R,e),[R,e]);l.current===null&&(l.current=P),C.useEffect(()=>{r&&(T$(l.current??{},P)||(d.current=l.current,l.current=P,r(P)))},[P,r]);const N=C.useCallback((H,k)=>{S(I=>{const F=$(I),_=new Map(F.draft);return k===null?_.delete(H):_.set(H,k),{key:F.key,draft:_,applied:a?_:F.applied}})},[a,$]),V=C.useCallback(()=>{S(H=>({key:$(H).key,draft:s,applied:s}))},[$,s]),z=C.useCallback(()=>{S(H=>{const k=$(H);return{key:k.key,draft:k.draft,applied:k.draft}})},[$]),W=C.useMemo(()=>{if(a)return!1;if(M.size!==R.size)return!0;for(const[H,k]of M){const I=R.get(H);if(k instanceof Date&&I instanceof Date){if(k.getTime()!==I.getTime())return!0}else if(Array.isArray(k)&&Array.isArray(I)){if(String(k)!==String(I))return!0}else if(k!==I)return!0}return!1},[a,M,R]);return{draft:M,applied:R,setGiven:N,reset:V,apply:z,pending:W}}const AJ=1e3;function JN(e){const t=e.split(".");return t[t.length-1]}function jJ(e,t){return`run: ${e} -> {
318
+ group_by: ${t}
319
+ order_by: ${JN(t)} asc
320
+ limit: ${AJ}
321
+ }`}function NJ(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=c0(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function IJ(e,t,n,r,o,a){const{apiClients:s}=zr(),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]),d=Y7({queries:l.map(m=>{const y=NJ(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:jJ(v.source,v.dimension),compactJson:!0,versionId:o,givens:y});return LJ(b.data.result,v.dimension===void 0?void 0:JN(v.dimension))}}})}),f=C.useMemo(()=>{const m=new Map;return l.forEach((y,v)=>{const b=d[v]?.data;y.name&&b&&m.set(y.name,b)}),m},[l,JSON.stringify(d.map(m=>m.data))]),c=C.useMemo(()=>{const m=new Set;return l.forEach((y,v)=>{y.name&&d[v]?.isError&&m.add(y.name)}),m},[l,d.map(m=>m.isError).join("|")]);return{options:f,isLoading:d.some(m=>m.isLoading),failed:c}}function LJ(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),d=t!==void 0&&Object.prototype.hasOwnProperty.call(s,t)?t:l[0],f=d===void 0?void 0:s[d];if(f==null)continue;const c=String(f);o.has(c)||(o.add(c),r.push(c))}return r}function eI({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:a,autorun:s,environmentName:l,packageName:d,modelPath:f,versionId:c,documentName:m}){const y=C.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),v=C.useCallback(R=>{t&&o?.(R,Array.from(y.keys()))},[t,o,y]),b=DJ({declaredTypes:y,startingValues:n,params:r,onParamsChange:t?v:void 0,documentKey:a,autorun:s}),{options:x,isLoading:w,failed:S}=IJ(l,d,f,e,c,{values:b.applied,declaredTypes:y}),{canSelf:T,onSelf:M}=wJ({declaredTypes:y,setGiven:b.setGiven,documentName:m});return{...b,declaredTypes:y,options:x,optionsLoading:w,optionsFailed:S,canSelf:T,onSelf:M,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 co(e){const{server:t}=zr(),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 Uj(n,HC)}function Ws(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 G7(t,HC)}const xo=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},u0=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 tI({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===q1?t!==void 0&&(r?.(x)??!0):e!==void 0),[e,t,r]),d=C.useCallback((b,x,w)=>{if(x===q1){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)&&l0(b.value)!==void 0)return{field:b.field.name,rawValue:b.value,label:GN(b.value),...b.context===void 0?{}:{context:b.context}}},[o]),c=C.useCallback(b=>{const x=xJ(b),w=f(b),S=x?l(x.to,x.given):[];if(S.length===0){w&&o?.(w);return}if(S.length===1&&x){d(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??""})},[d,l,o,f]),m=C.useCallback(b=>l(qN(b),KN(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(cd,{open:a!==null,onClose:v,anchorReference:"anchorPosition",anchorPosition:{top:a?.top??0,left:a?.left??0},children:[h.jsx(zv,{sx:{lineHeight:"32px"},children:a?`${a.label} →`:""}),Array.from(new Set(a?.destinations??[])).map(b=>h.jsx(Ii,{onClick:()=>{v(),a?.intent&&d(a.intent,b,a.event)},children:b===q1?n:YN(b)},b))]})}}const Gv=cr(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 De(){return De=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},De.apply(null,arguments)}var sw={exports:{}},zJ=sw.exports,M$;function FJ(){return M$||(M$=1,(function(e,t){(function(n,r){e.exports=r()})(zJ,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-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(d){return d===void 0&&(d=null),this.week(d)}}}))})(sw)),sw.exports}var BJ=FJ();const UJ=Ul(BJ);var lw={exports:{}},_J=lw.exports,E$;function VJ(){return E$||(E$=1,(function(e,t){(function(n,r){e.exports=r()})(_J,(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]+/,d={},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 T=S.match(/([+-]|\d\d)/g),M=60*T[1]+(+T[2]||0);return M===0?0:T[0]==="+"?-M:M})(w)}],y=function(w){var S=d[w];return S&&(S.indexOf?S:S.s.concat(S.f))},v=function(w,S){var T,M=d.meridiem;if(M){for(var R=1;R<=24;R+=1)if(w.indexOf(M(R,0,S))>-1){T=R>12;break}}else T=w===(S?"pm":"PM");return T},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=d.ordinal,T=w.match(/\d+/);if(this.day=T[0],S)for(var M=1;M<=31;M+=1)S(M).replace(/\[|\]/g,"")===w&&(this.day=M)}],w:[s,c("week")],ww:[a,c("week")],M:[s,c("month")],MM:[a,c("month")],MMM:[l,function(w){var S=y("months"),T=(y("monthsShort")||S.map((function(M){return M.slice(0,3)}))).indexOf(w)+1;if(T<1)throw new Error;this.month=T%12||T}],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,T;S=w,T=d&&d.formats;for(var M=(w=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,H,k){var I=k&&k.toUpperCase();return H||T[k]||n[k]||T[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,_,j){return _||j.slice(1)}))}))).match(r),R=M.length,$=0;$<R;$+=1){var P=M[$],N=b[P],V=N&&N[0],z=N&&N[1];M[$]=z?{regex:V,parser:z}:P.replace(/^\[|\]$/g,"")}return function(W){for(var H={},k=0,I=0;k<R;k+=1){var F=M[k];if(typeof F=="string")I+=F.length;else{var _=F.regex,j=F.parser,X=W.slice(I),Q=_.exec(X)[0];j.call(H,Q),W=W.replace(Q,"")}}return(function(te){var Z=te.afternoon;if(Z!==void 0){var G=te.hours;Z?G<12&&(te.hours+=12):G===12&&(te.hours=0),delete te.afternoon}})(H),H}}return function(w,S,T){T.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(f=w.parseTwoDigitYear);var M=S.prototype,R=M.parse;M.parse=function($){var P=$.date,N=$.utc,V=$.args;this.$u=N;var z=V[1];if(typeof z=="string"){var W=V[2]===!0,H=V[3]===!0,k=W||H,I=V[2];H&&(I=V[2]),d=this.$locale(),!W&&I&&(d=T.Ls[I]),this.$d=(function(X,Q,te,Z){try{if(["x","X"].indexOf(Q)>-1)return new Date((Q==="X"?1e3:1)*X);var G=x(Q)(X),ne=G.year,ce=G.month,pe=G.day,oe=G.hours,ae=G.minutes,le=G.seconds,ge=G.milliseconds,ye=G.zone,we=G.week,Ce=new Date,$e=pe||(ne||ce?1:Ce.getDate()),de=ne||Ce.getFullYear(),ke=0;ne&&!ce||(ke=ce>0?ce-1:Ce.getMonth());var et,ze=oe||0,Ae=ae||0,se=le||0,bt=ge||0;return ye?new Date(Date.UTC(de,ke,$e,ze,Ae,se,bt+60*ye.offset*1e3)):te?new Date(Date.UTC(de,ke,$e,ze,Ae,se,bt)):(et=new Date(de,ke,$e,ze,Ae,se,bt),we&&(et=Z(et).week(we).toDate()),et)}catch{return new Date("")}})(P,z,N,T),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),k&&P!=this.format(z)&&(this.$d=new Date("")),d={}}else if(z instanceof Array)for(var F=z.length,_=1;_<=F;_+=1){V[1]=z[_-1];var j=T.apply(this,V);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}_===F&&(this.$d=new Date(""))}else R.call(this,$)}}}))})(lw)),lw.exports}var HJ=VJ();const WJ=Ul(HJ);var cw={exports:{}},qJ=cw.exports,O$;function YJ(){return O$||(O$=1,(function(e,t){(function(n,r){e.exports=r()})(qJ,(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(d){d===void 0&&(d="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,T,M){return T||M.slice(1)}))}))})(d,f===void 0?{}:f);return l.call(this,c)}}}))})(cw)),cw.exports}var KJ=YJ();const GJ=Ul(KJ);var uw={exports:{}},QJ=uw.exports,R$;function XJ(){return R$||(R$=1,(function(e,t){(function(n,r){e.exports=r()})(QJ,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,d){var f=o(a),c=o(s),m=(d=d||"()")[0]==="(",y=d[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))}}}))})(uw)),uw.exports}var ZJ=XJ();const JJ=Ul(ZJ);var dw={exports:{}},eee=dw.exports,$$;function tee(){return $$||($$=1,(function(e,t){(function(n,r){e.exports=r()})(eee,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,d=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 d.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return d.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)}}}))})(dw)),dw.exports}var nee=tee();const ree=Ul(nee);$r.extend(GJ);$r.extend(UJ);$r.extend(JJ);$r.extend(ree);const oee={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"},aee={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"},Y1=["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
+ `),P$=["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
+ `),iee=(e,t)=>t?(...n)=>e(...n).locale(t):e;class fw{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=oee,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof $r.utc<"u",this.hasTimezonePlugin=()=>typeof $r.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 $r.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=$r.tz.guess();return o!=="UTC"?$r.tz(r,o):$r(r)}return $r(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Y1);return $r.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Y1);if(!this.hasTimezonePlugin())throw new Error(P$);const a=r!==void 0&&!r.endsWith("Z");return $r(r).tz(this.cleanTimezone(o),a)},this.getLocaleFormats=()=>{const r=$r.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=()=>$r(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(Y1);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(P$)}return $r.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,d,f)=>d||f.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,l,d)=>{const f=d&&d.toUpperCase();return l||o[d]||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 d=[];for(;l<a;){const f=Math.floor(s/7);d[f]=d[f]||[],d[f].push(l),l=this.addDays(l,1),s+=1}return d},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const a=this.startOfYear(r),s=this.endOfYear(o),l=[];let d=a;for(;this.isBefore(d,s);)l.push(d),d=this.addYears(d,1);return l},this.dayjs=iee($r,t),this.locale=t,this.formats=De({},aee,n),$r.extend(WJ)}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 nI(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qm(t.components[n].defaultProps,r)}function see({props:e,name:t,defaultTheme:n,themeId:r}){let o=dZ(n);return o=o[r]||o,nI({theme:o,name:t,props:e})}function lee(e,t,n,r,o){const[a,s]=C.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Po(()=>{if(!n)return;const l=n(e),d=()=>{s(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),a}const cee={...Pm},rI=cee.useSyncExternalStore;function uee(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,d]=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 rI(d,l,s)}function oI(e={}){const{themeId:t}=e;return function(n,r={}){let o=IN();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:d=null,noSsr:f=!1}=nI({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
+ `)),(rI!==void 0?uee:lee)(c,s,l,d,f)}}oI();const aI=oI({themeId:mp});function Vr({props:e,name:t}){return see({props:e,name:t,defaultTheme:s0,themeId:mp})}const iI=nt.oneOfType([nt.func,nt.object]),D$={};function sI(e,t){const n=C.useRef(D$);return n.current===D$&&(n.current=e(t)),n}const dee=[];function fee(e){C.useEffect(e,dee)}class ak{static create(){return new ak}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 ik(){const e=sI(ak.create).current;return fee(e.disposeEffect),e}function A$(e){try{return e.matches(":focus-visible")}catch{}return!1}function lI(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const pee=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current},hee={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ep(e){return typeof e=="string"}function cI(e,t,n){return e===void 0||ep(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Qv(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 j$(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 uI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=jt(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=Qv({...o,...r}),l=j$(r),d=j$(o),f=t(s),c=jt(f?.className,n?.className,a,o?.className,r?.className),m={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...d,...l};return c.length>0&&(y.className=c),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function d0(e,t,n){return typeof e=="function"?e(t,n):e}function xr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:d0(n,r),{props:l,internalRef:d}=uI({...a,externalSlotProps:s}),f=mr(d,s?.ref,e.additionalProps?.ref);return cI(t,{...l,ref:f},r)}function gp(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Bh=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),mee=({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}},Xv=(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},Tm=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const d=Xv(s,s.date(void 0,l),e);n&&s.isBefore(o,d)&&(o=d),t&&s.isAfter(r,d)&&(r=d);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},gee=(e,t)=>t==null||!e.isValid(t)?null:t,_i=(e,t,n)=>t==null||!e.isValid(t)?n:t,yee=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),sk=(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},dI=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),vee=["year","month","day"],N$=e=>vee.includes(e),lk=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Bh(n,["year"])?o.year:Bh(n,["month"])?o.month:Bh(n,["day"])?o.dayOfMonth:Bh(n,["month","year"])?`${o.month} ${o.year}`:Bh(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},bee=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},xee=["hours","minutes","seconds"],See=e=>xee.includes(e),I$=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),wee=(e,t)=>(n,r)=>e?t.isAfter(n,r):I$(n,t)>I$(r,t),_s={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Cee=e=>Math.max(...e.map(t=>_s[t.type]??1)),Uh=(e,t,n)=>{if(t===_s.year)return e.startOfYear(n);if(t===_s.month)return e.startOfMonth(n);if(t===_s.day)return e.startOfDay(n);let r=n;return t<_s.minutes&&(r=e.setMinutes(r,0)),t<_s.seconds&&(r=e.setSeconds(r,0)),t<_s.milliseconds&&(r=e.setMilliseconds(r,0)),r},kee=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():Uh(t,n,dI(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=Uh(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=Uh(t,n,e.maxDate));const s=wee(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=Uh(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Xv(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=Uh(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Xv(t,a,e.maxTime))),a},fI=(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}},Tee=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},f0=(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))},pI=(e,t,n,r)=>{switch(n){case"month":return sk(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return f0(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[]}},L$="s",Mee=["0","1","2","3","4","5","6","7","8","9"],Eee=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),L$)==="0"?Mee:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),L$))},rd=(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("")},ck=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),z$=(e,t)=>{const n=rd(e,t);return n!==" "&&!Number.isNaN(Number(n))},hI=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},mI=(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=hI(a,o.maxLength)),ck(a,r)},Oee=(e,t,n,r,o,a,s,l)=>{const d=Tee(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=T=>mI(e,T,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);d>0||f?S=b.minimum:S=b.maximum}else S=parseInt(rd(n.value,a),10)+d*w;return S%w!==0&&((d<0||f)&&(S+=w-(w+S)%w),(d>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=pI(e,t,n.type,n.format);if(b.length===0)return n.value;if(m)return d>0||f?b[0]:b[b.length-1];const x=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():v()},uk=(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(rd(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},F$=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Ree=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,gI=(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")}},$ee=(e,t,n)=>{const r=t.some(d=>d.type==="day"),o=[],a=[];for(let d=0;d<t.length;d+=1){const f=t[d];r&&f.type==="weekDay"||(o.push(f.format),a.push(uk(f,"non-input",n)))}const s=o.join(" "),l=a.join(" ");return e.parse(l,s)},Pee=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Dee=(e,t,n)=>{const r=e.map(o=>{const a=uk(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},Aee=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=sk(e,r).reduce((d,f)=>{const c=e.getDaysInMonth(f);return c>d.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:f}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:Ree(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):s,longestMonth:l}),weekDay:({format:d,contentType:f})=>{if(f==="digit"){const c=f0(e,d).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const f=e.getHours(a);return rd(e.formatByString(e.endOfDay(r),d),t)!==f.toString()?{minimum:1,maximum:Number(rd(e.formatByString(e.startOfDay(r),d),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})}},jee=(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=f0(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}},B$={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},U$=(e,t,n,r,o)=>[...n].sort((a,s)=>B$[a.type]-B$[s.type]).reduce((a,s)=>!o||s.modified?jee(e,s,t,a):a,r),Nee=()=>navigator.userAgent.toLowerCase().includes("android"),Iee=(e,t)=>{const n={};if(!t)return e.forEach((d,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((d,f)=>f>=a&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let d=s;d>=a;d-=1)o[d]=l,r[l]=d,l-=1;a=s+1}return e.forEach((d,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]}},pw=(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},Lee=(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}},zee=(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}},Fee=["value","referenceDate"],Js={emptyValue:null,getTodayValue:dI,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Fn(e,Fee);return t!=null&&r.utils.isValid(t)?t:n??kee(r)},cleanValue:gee,areValuesEqual:yee,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)},Bee={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:Pee,getV6InputValueFromSections:Dee,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)},Uee=["localeText"],hw=C.createContext(null),Zv=function(e){const{localeText:t}=e,n=Fn(e,Uee),{utils:r,localeText:o}=C.useContext(hw)??{utils:void 0,localeText:void 0},a=Vr({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:d,dateLibInstance:f,adapterLocale:c,localeText:m}=a,y=C.useMemo(()=>De({},m,o,t),[m,o,t]),v=C.useMemo(()=>{if(!l)return r||null;const w=new l({locale:c,formats:d,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,d,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(hw.Provider,{value:x,children:s})},_ee=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:De({},e)}}}}),yI=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)}},vI={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"},Vee=vI;_ee(vI);const pd=()=>{const e=C.useContext(hw);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(()=>De({},Vee,e.localeText),[e.localeText]);return C.useMemo(()=>De({},e,{localeText:t}),[e,t])},Hr=()=>pd().utils,wg=()=>pd().defaultDates,p0=e=>{const t=Hr(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Hee(e){return typeof e.main=="string"}function Wee(e,t=[]){if(!Hee(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function fa(e=[]){return([,t])=>t&&Wee(t,e)}function qee(e){return on("MuiTypography",e)}const _$=Gt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Yee={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Kee=ZZ(),Gee=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 tn(l,qee,s)},Qee=Ge("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]}})(Vn(({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(fa()).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}}]}))),V$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},br=C.forwardRef(function(e,t){const{color:n,...r}=Hn({props:e,name:"MuiTypography"}),o=!Yee[n],a=Kee({...r,...o&&{color:n}}),{align:s="inherit",className:l,component:d,gutterBottom:f=!1,noWrap:c=!1,paragraph:m=!1,variant:y="body1",variantMapping:v=V$,...b}=a,x={...a,align:s,color:n,className:l,component:d,gutterBottom:f,noWrap:c,paragraph:m,variant:y,variantMapping:v},w=d||(m?"p":v[y]||V$[y])||"span",S=Gee(x);return h.jsx(Qee,{as:w,ref:t,className:jt(S.root,l),...b,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...b.style}})});function Xee(e){return on("MuiPickersToolbar",e)}Gt("MuiPickersToolbar",["root","content"]);const Zee=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Jee=e=>{const{classes:t}=e;return tn({root:["root"],content:["content"]},Xee,t)},ete=Ge("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"}}]})),tte=Ge("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"}}]}),nte=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:a,hidden:s,titleId:l}=n,d=Fn(n,Zee),f=n,c=Jee(f);return s?null:h.jsxs(ete,De({ref:t,className:jt(c.root,o),ownerState:f},d,{children:[h.jsx(br,{color:"text.secondary",variant:"overline",id:l,children:a}),h.jsx(tte,{className:c.content,ownerState:f,children:r})]}))}),_l=()=>pd().localeText;function rte(e){return on("MuiDatePickerToolbar",e)}Gt("MuiDatePickerToolbar",["root","title"]);const ote=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],ate=e=>{const{classes:t}=e;return tn({root:["root"],title:["title"]},rte,t)},ite=Ge(nte,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ste=Ge(br,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),lte=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:d}=n,f=Fn(n,ote),c=Hr(),m=_l(),y=ate(n),v=C.useMemo(()=>{if(!r)return s;const x=lk(c,{format:a,views:l},!0);return c.formatByString(r,x)},[r,a,s,c,l]),b=n;return h.jsx(ite,De({ref:t,toolbarTitle:m.datePickerToolbarTitle,isLandscape:o,className:jt(y.root,d)},f,{children:h.jsx(ste,{variant:"h4",align:o?"left":"center",ownerState:b,className:y.title,children:v})}))});function bI(e,t){const n=Hr(),r=wg(),o=Vr({props:e,name:t}),a=C.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:De({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return De({},o,{localeText:a},mee({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:_i(n,o.minDate,r.minDate),maxDate:_i(n,o.maxDate,r.maxDate),slots:De({toolbar:lte},o.slots)})}const Cg=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:d}=e,f=r.utils.date(void 0,n),c=_i(r.utils,e.minDate,r.defaultDates.minDate),m=_i(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!!(d&&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}};Cg.valueManager=Js;const xI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],cte=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],ute=["minDateTime","maxDateTime"],dte=[...xI,...cte,...ute],SI=e=>dte.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function wI(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,s=pd(),l=C.useRef(n.valueManager.defaultErrorState),d=n({adapter:s,value:r,timezone:o,props:t}),f=n.valueManager.hasError(d);C.useEffect(()=>{a&&!n.valueManager.isSameError(d,l.current)&&a(d,r),l.current=d},[n,a,d,r]);const c=It(m=>n({adapter:s,value:m,timezone:o,props:t}));return{validationError:d,hasValidationError:f,getValidationErrorForNewValue:c}}const h0=C.createContext(void 0);function di(){return C.useContext(h0)}function fte(e){return on("MuiInputAdornment",e)}const H$=Gt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var W$;const pte=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},hte=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 tn(l,fte,t)},mte=Ge("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pte})(Vn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${H$.positionStart}&:not(.${H$.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),CI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:d,variant:f,...c}=n,m=di()||{};let y=f;f&&m.variant,m&&!y&&(y=m.variant);const v={...n,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:s,position:d,variant:y},b=hte(v);return h.jsx(h0.Provider,{value:null,children:h.jsx(mte,{as:a,ownerState:v,className:jt(b.root,o),ref:t,...c,children:typeof r=="string"&&!l?h.jsx(br,{color:"textSecondary",children:r}):h.jsxs(C.Fragment,{children:[d==="start"?W$||(W$=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});class Jv{static create(){return new Jv}static use(){const t=sI(Jv.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=yte(),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 gte(){return Jv.use()}function yte(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function mw(e,t){return mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mw(e,t)}function dk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mw(e,t)}function vte(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function bte(e,t){e.classList?e.classList.add(t):vte(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function q$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function xte(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=q$(e.className,t):e.setAttribute("class",q$(e.className&&e.className.baseVal||"",t))}const Y$={disabled:!1},eb=pn.createContext(null);var kI=function(e){return e.scrollTop},pm="unmounted",Au="exited",ju="entering",Of="entered",gw="exiting",vs=(function(e){dk(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,d;return a.appearStatus=null,r.in?l?(d=Au,a.appearStatus=ju):d=Of:r.unmountOnExit||r.mountOnEnter?d=pm:d=Au,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===pm?{status:Au}: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!==ju&&a!==Of&&(o=ju):(a===ju||a===Of)&&(o=gw)}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===ju){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Rc.findDOMNode(this);a&&kI(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Au&&this.setState({status:pm})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[Rc.findDOMNode(this),s],d=l[0],f=l[1],c=this.getTimeouts(),m=s?c.appear:c.enter;if(!r&&!a||Y$.disabled){this.safeSetState({status:Of},function(){o.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:ju},function(){o.props.onEntering(d,f),o.onTransitionEnd(m,function(){o.safeSetState({status:Of},function(){o.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Rc.findDOMNode(this);if(!o||Y$.disabled){this.safeSetState({status:Au},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:gw},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Au},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:Rc.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],d=l[0],f=l[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===pm)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 pn.createElement(eb.Provider,{value:null},typeof a=="function"?a(r,s):pn.cloneElement(pn.Children.only(a),s))},t})(pn.Component);vs.contextType=eb;vs.propTypes={};function xf(){}vs.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};vs.UNMOUNTED=pm;vs.EXITED=Au;vs.ENTERING=ju;vs.ENTERED=Of;vs.EXITING=gw;var Ste=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return bte(e,n)})},K1=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return xte(e,n)})},fk=(function(e){dk(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,d){var f=r.resolveArguments(l,d),c=f[0],m=f[1];r.removeClasses(c,"exit"),r.addClass(c,m?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,d)},r.onEntering=function(l,d){var f=r.resolveArguments(l,d),c=f[0],m=f[1],y=m?"appear":"enter";r.addClass(c,y,"active"),r.props.onEntering&&r.props.onEntering(l,d)},r.onEntered=function(l,d){var f=r.resolveArguments(l,d),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,d)},r.onExit=function(l){var d=r.resolveArguments(l),f=d[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 d=r.resolveArguments(l),f=d[0];r.addClass(f,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var d=r.resolveArguments(l),f=d[0];r.removeClasses(f,"exit"),r.addClass(f,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,d){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,d]},r.getClassNames=function(l){var d=r.props.classNames,f=typeof d=="string",c=f&&d?d+"-":"",m=f?""+c+l:d[l],y=f?m+"-active":d[l+"Active"],v=f?m+"-done":d[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"),d=l.doneClassName;o==="appear"&&a==="done"&&d&&(s+=" "+d),a==="active"&&r&&kI(r),s&&(this.appliedClasses[o][a]=s,Ste(r,s))},n.removeClasses=function(r,o){var a=this.appliedClasses[o],s=a.base,l=a.active,d=a.done;this.appliedClasses[o]={},s&&K1(r,s),l&&K1(r,l),d&&K1(r,d)},n.render=function(){var r=this.props;r.classNames;var o=Fn(r,["classNames"]);return pn.createElement(vs,De({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(pn.Component);fk.defaultProps={classNames:""};fk.propTypes={};function wte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pk(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 Cte(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 d in t){if(r[d])for(s=0;s<r[d].length;s++){var f=r[d][s];l[r[d][s]]=n(f)}l[d]=n(d)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Hu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kte(e,t){return pk(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Hu(n,"appear",e),enter:Hu(n,"enter",e),exit:Hu(n,"exit",e)})})}function Tte(e,t,n){var r=pk(e.children),o=Cte(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,d=a in r,f=t[a],c=C.isValidElement(f)&&!f.props.in;d&&(!l||c)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Hu(s,"exit",e),enter:Hu(s,"enter",e)}):!d&&l&&!c?o[a]=C.cloneElement(s,{in:!1}):d&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Hu(s,"exit",e),enter:Hu(s,"enter",e)}))}}),o}var Mte=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ete={component:"div",childFactory:function(e){return e}},kg=(function(e){dk(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(wte(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?kte(r,s):Tte(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=pk(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=De({},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,d=Mte(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?pn.createElement(eb.Provider,{value:l},d):pn.createElement(eb.Provider,{value:l},pn.createElement(o,s,d))},t})(pn.Component);kg.propTypes={};kg.defaultProps=Ete;function Ote(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:d,timeout:f}=e,[c,m]=C.useState(!1),y=jt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=jt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&m(!0),C.useEffect(()=>{if(!l&&d!=null){const x=setTimeout(d,f);return()=>{clearTimeout(x)}}},[d,l,f]),h.jsx("span",{className:y,style:v,children:h.jsx("span",{className:b})})}const $i=Gt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yw=550,Rte=80,$te=ui`
329
+ 0% {
330
+ transform: scale(0);
331
+ opacity: 0.1;
332
+ }
333
+
334
+ 100% {
335
+ transform: scale(1);
336
+ opacity: 0.3;
337
+ }
338
+ `,Pte=ui`
339
+ 0% {
340
+ opacity: 1;
341
+ }
342
+
343
+ 100% {
344
+ opacity: 0;
345
+ }
346
+ `,Dte=ui`
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
+ `,Ate=Ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jte=Ge(Ote,{name:"MuiTouchRipple",slot:"Ripple"})`
359
+ opacity: 0;
360
+ position: absolute;
361
+
362
+ &.${$i.rippleVisible} {
363
+ opacity: 0.3;
364
+ transform: scale(1);
365
+ animation-name: ${$te};
366
+ animation-duration: ${yw}ms;
367
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
368
+ }
369
+
370
+ &.${$i.ripplePulsate} {
371
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
372
+ }
373
+
374
+ & .${$i.child} {
375
+ opacity: 1;
376
+ display: block;
377
+ width: 100%;
378
+ height: 100%;
379
+ border-radius: 50%;
380
+ background-color: currentColor;
381
+ }
382
+
383
+ & .${$i.childLeaving} {
384
+ opacity: 0;
385
+ animation-name: ${Pte};
386
+ animation-duration: ${yw}ms;
387
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
388
+ }
389
+
390
+ & .${$i.childPulsate} {
391
+ position: absolute;
392
+ /* @noflip */
393
+ left: 0px;
394
+ top: 0;
395
+ animation-name: ${Dte};
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
+ `,Nte=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,d]=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=ik(),v=C.useRef(null),b=C.useRef(null),x=C.useCallback(M=>{const{pulsate:R,rippleX:$,rippleY:P,rippleSize:N,cb:V}=M;d(z=>[...z,h.jsx(jte,{classes:{ripple:jt(o.ripple,$i.ripple),rippleVisible:jt(o.rippleVisible,$i.rippleVisible),ripplePulsate:jt(o.ripplePulsate,$i.ripplePulsate),child:jt(o.child,$i.child),childLeaving:jt(o.childLeaving,$i.childLeaving),childPulsate:jt(o.childPulsate,$i.childPulsate)},timeout:yw,pulsate:R,rippleX:$,rippleY:P,rippleSize:N},f.current)]),f.current+=1,c.current=V},[o]),w=C.useCallback((M={},R={},$=()=>{})=>{const{pulsate:P=!1,center:N=r||R.pulsate,fakeElement:V=!1}=R;if(M?.type==="mousedown"&&m.current){m.current=!1;return}M?.type==="touchstart"&&(m.current=!0);const z=V?null:b.current,W=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,k,I;if(N||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)H=Math.round(W.width/2),k=Math.round(W.height/2);else{const{clientX:F,clientY:_}=M.touches&&M.touches.length>0?M.touches[0]:M;H=Math.round(F-W.left),k=Math.round(_-W.top)}if(N)I=Math.sqrt((2*W.width**2+W.height**2)/3),I%2===0&&(I+=1);else{const F=Math.max(Math.abs((z?z.clientWidth:0)-H),H)*2+2,_=Math.max(Math.abs((z?z.clientHeight:0)-k),k)*2+2;I=Math.sqrt(F**2+_**2)}M?.touches?v.current===null&&(v.current=()=>{x({pulsate:P,rippleX:H,rippleY:k,rippleSize:I,cb:$})},y.start(Rte,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:P,rippleX:H,rippleY:k,rippleSize:I,cb:$})},[r,x,y]),S=C.useCallback(()=>{w({},{pulsate:!0})},[w]),T=C.useCallback((M,R)=>{if(y.clear(),M?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{T(M,R)});return}v.current=null,d($=>$.length>0?$.slice(1):$),c.current=R},[y]);return C.useImperativeHandle(t,()=>({pulsate:S,start:w,stop:T}),[S,w,T]),h.jsx(Ate,{className:jt($i.root,o.root,a),ref:b,...s,children:h.jsx(kg,{component:null,exit:!0,children:l})})});function Ite(e){return on("MuiButtonBase",e)}const Lte=Gt("MuiButtonBase",["root","disabled","focusVisible"]),zte=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=tn({root:["root",t&&"disabled",n&&"focusVisible"]},Ite,o);return n&&r&&(a.root+=` ${r}`),a},Fte=Ge("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"},[`&.${Lte.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),od=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:c=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:b,onClick:x,onContextMenu:w,onDragLeave:S,onFocus:T,onFocusVisible:M,onKeyDown:R,onKeyUp:$,onMouseDown:P,onMouseLeave:N,onMouseUp:V,onTouchEnd:z,onTouchMove:W,onTouchStart:H,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:F,type:_,...j}=n,X=C.useRef(null),Q=gte(),te=mr(Q.ref,F),[Z,G]=C.useState(!1);d&&Z&&G(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),X.current.focus()}}),[]);const ne=Q.shouldMount&&!f&&!d;C.useEffect(()=>{Z&&m&&!f&&Q.pulsate()},[f,m,Z,Q]);const ce=Rl(Q,"start",P,c),pe=Rl(Q,"stop",w,c),oe=Rl(Q,"stop",S,c),ae=Rl(Q,"stop",V,c),le=Rl(Q,"stop",it=>{Z&&it.preventDefault(),N&&N(it)},c),ge=Rl(Q,"start",H,c),ye=Rl(Q,"stop",z,c),we=Rl(Q,"stop",W,c),Ce=Rl(Q,"stop",it=>{A$(it.target)||G(!1),b&&b(it)},!1),$e=It(it=>{X.current||(X.current=it.currentTarget),A$(it.target)&&(G(!0),M&&M(it)),T&&T(it)}),de=()=>{const it=X.current;return l&&l!=="button"&&!(it.tagName==="A"&&it.href)},ke=It(it=>{m&&!it.repeat&&Z&&it.key===" "&&Q.stop(it,()=>{Q.start(it)}),it.target===it.currentTarget&&de()&&it.key===" "&&it.preventDefault(),R&&R(it),it.target===it.currentTarget&&de()&&it.key==="Enter"&&!d&&(it.preventDefault(),x&&x(it))}),et=It(it=>{m&&it.key===" "&&Z&&!it.defaultPrevented&&Q.stop(it,()=>{Q.pulsate(it)}),$&&$(it),x&&it.target===it.currentTarget&&de()&&it.key===" "&&!it.defaultPrevented&&x(it)});let ze=l;ze==="button"&&(j.href||j.to)&&(ze=v);const Ae={};ze==="button"?(Ae.type=_===void 0?"button":_,Ae.disabled=d):(!j.href&&!j.to&&(Ae.role="button"),d&&(Ae["aria-disabled"]=d));const se=mr(t,X),bt={...n,centerRipple:o,component:l,disabled:d,disableRipple:f,disableTouchRipple:c,focusRipple:m,tabIndex:k,focusVisible:Z},Fe=zte(bt);return h.jsxs(Fte,{as:ze,className:jt(Fe.root,s),ownerState:bt,onBlur:Ce,onClick:x,onContextMenu:pe,onFocus:$e,onKeyDown:ke,onKeyUp:et,onMouseDown:ce,onMouseLeave:le,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ye,onTouchMove:we,onTouchStart:ge,ref:se,tabIndex:d?-1:k,type:_,...Ae,...j,children:[a,ne?h.jsx(Nte,{ref:te,center:o,...I}):null]})});function Rl(e,t,n,r=!1){return It(o=>(n&&n(o),r||e[t](o),!0))}function Bte(e){return on("MuiCircularProgress",e)}Gt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wc=44,vw=ui`
402
+ 0% {
403
+ transform: rotate(0deg);
404
+ }
405
+
406
+ 100% {
407
+ transform: rotate(360deg);
408
+ }
409
+ `,bw=ui`
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
+ `,Ute=typeof vw!="string"?Vc`
425
+ animation: ${vw} 1.4s linear infinite;
426
+ `:null,_te=typeof bw!="string"?Vc`
427
+ animation: ${bw} 1.4s ease-in-out infinite;
428
+ `:null,Vte=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 tn(a,Bte,t)},Hte=Ge("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Tt(n.color)}`]]}})(Vn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ute||{animation:`${vw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(fa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Wte=Ge("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qte=Ge("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Tt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Vn(({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:_te||{animation:`${bw} 1.4s ease-in-out infinite`}}]}))),TI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:d=3.6,value:f=0,variant:c="indeterminate",...m}=n,y={...n,color:o,disableShrink:a,size:s,thickness:d,value:f,variant:c},v=Vte(y),b={},x={},w={};if(c==="determinate"){const S=2*Math.PI*((wc-d)/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(Hte,{className:jt(v.root,r),style:{width:s,height:s,...x,...l},ownerState:y,ref:t,role:"progressbar",...w,...m,children:h.jsx(Wte,{className:v.svg,ownerState:y,viewBox:`${wc/2} ${wc/2} ${wc} ${wc}`,children:h.jsx(qte,{className:v.circle,style:b,ownerState:y,cx:wc,cy:wc,r:(wc-d)/2,fill:"none",strokeWidth:d})})})});function Yte(e){return on("MuiIconButton",e)}const K$=Gt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Kte=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 tn(l,Yte,t)},Gte=Ge(od,{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)}`]]}})(Vn(({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}}]})),Vn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(fa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(fa()).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)}}],[`&.${K$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${K$.loading}`]:{color:"transparent"}}))),Qte=Ge("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"}}]})),Gc=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:d=!1,size:f="medium",id:c,loading:m=null,loadingIndicator:y,...v}=n,b=ys(c),x=y??h.jsx(TI,{"aria-labelledby":b,color:"inherit",size:16}),w={...n,edge:r,color:s,disabled:l,disableFocusRipple:d,loading:m,loadingIndicator:x,size:f},S=Kte(w);return h.jsxs(Gte,{id:m?b:c,className:jt(S.root,a),centerRipple:!0,focusRipple:!d,disabled:l||m,ref:t,...v,ownerState:w,children:[typeof m=="boolean"&&h.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:h.jsx(Qte,{className:S.loadingIndicator,ownerState:w,children:m&&x})}),o]})}),MI=e=>e.scrollTop;function tb(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 xw(e){return`scale(${e}, ${e**2})`}const Xte={entering:{opacity:1,transform:xw(1)},entered:{opacity:1,transform:"none"}},G1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ym=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:d,onEntering:f,onExit:c,onExited:m,onExiting:y,style:v,timeout:b="auto",TransitionComponent:x=vs,...w}=e,S=ik(),T=C.useRef(),M=fd(),R=C.useRef(null),$=mr(R,gp(o),t),P=I=>F=>{if(I){const _=R.current;F===void 0?I(_):I(_,F)}},N=P(f),V=P((I,F)=>{MI(I);const{duration:_,delay:j,easing:X}=tb({style:v,timeout:b,easing:a},{mode:"enter"});let Q;b==="auto"?(Q=M.transitions.getAutoHeightDuration(I.clientHeight),T.current=Q):Q=_,I.style.transition=[M.transitions.create("opacity",{duration:Q,delay:j}),M.transitions.create("transform",{duration:G1?Q:Q*.666,delay:j,easing:X})].join(","),l&&l(I,F)}),z=P(d),W=P(y),H=P(I=>{const{duration:F,delay:_,easing:j}=tb({style:v,timeout:b,easing:a},{mode:"exit"});let X;b==="auto"?(X=M.transitions.getAutoHeightDuration(I.clientHeight),T.current=X):X=F,I.style.transition=[M.transitions.create("opacity",{duration:X,delay:_}),M.transitions.create("transform",{duration:G1?X:X*.666,delay:G1?_:_||X*.333,easing:j})].join(","),I.style.opacity=0,I.style.transform=xw(.75),c&&c(I)}),k=P(m);return h.jsx(x,{appear:r,in:s,nodeRef:R,onEnter:V,onEntered:z,onEntering:N,onExit:H,onExited:k,onExiting:W,addEndListener:I=>{b==="auto"&&S.start(T.current||0,I),n&&n(R.current,I)},timeout:b==="auto"?null:b,...w,children:(I,{ownerState:F,..._})=>C.cloneElement(o,{style:{opacity:0,transform:xw(.75),visibility:I==="exited"&&!s?"hidden":void 0,...Xte[I],...v,...o.props.style},ref:$,..._})})});Ym&&(Ym.muiSupportAuto=!0);const Zte={entering:{opacity:1},entered:{opacity:1}},ad=C.forwardRef(function(e,t){const n=fd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:d,onEnter:f,onEntered:c,onEntering:m,onExit:y,onExited:v,onExiting:b,style:x,timeout:w=r,TransitionComponent:S=vs,...T}=e,M=C.useRef(null),R=mr(M,gp(s),t),$=k=>I=>{if(k){const F=M.current;I===void 0?k(F):k(F,I)}},P=$(m),N=$((k,I)=>{MI(k);const F=tb({style:x,timeout:w,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",F),k.style.transition=n.transitions.create("opacity",F),f&&f(k,I)}),V=$(c),z=$(b),W=$(k=>{const I=tb({style:x,timeout:w,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",I),k.style.transition=n.transitions.create("opacity",I),y&&y(k)}),H=$(v);return h.jsx(S,{appear:a,in:d,nodeRef:M,onEnter:N,onEntered:V,onEntering:P,onExit:W,onExited:H,onExiting:z,addEndListener:k=>{o&&o(M.current,k)},timeout:w,...T,children:(k,{ownerState:I,...F})=>C.cloneElement(s,{style:{opacity:0,visibility:k==="exited"&&!d?"hidden":void 0,...Zte[k],...x,...s.props.style},ref:R,...F})})});function Jte(e){return on("MuiPaper",e)}Gt("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 ene=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return tn(a,Jte,o)},tne=Ge("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}`]]}})(Vn(({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=Hn({props:e,name:"MuiPaper"}),r=fd(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:d="elevation",...f}=n,c={...n,component:a,elevation:s,square:l,variant:d},m=ene(c);return h.jsx(tne,{as:a,ownerState:c,className:jt(m.root,o),ref:t,...f,style:{...d==="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(${Wv("#fff",rw(s))}, ${Wv("#fff",rw(s))})`}},...f.style}})});var $a="top",Vi="bottom",Hi="right",Pa="left",hk="auto",Tg=[$a,Vi,Hi,Pa],tp="start",Km="end",nne="clippingParents",EI="viewport",_h="popper",rne="reference",G$=Tg.reduce(function(e,t){return e.concat([t+"-"+tp,t+"-"+Km])},[]),OI=[].concat(Tg,[hk]).reduce(function(e,t){return e.concat([t,t+"-"+tp,t+"-"+Km])},[]),one="beforeRead",ane="read",ine="afterRead",sne="beforeMain",lne="main",cne="afterMain",une="beforeWrite",dne="write",fne="afterWrite",pne=[one,ane,ine,sne,lne,cne,une,dne,fne];function el(e){return e?(e.nodeName||"").toLowerCase():null}function ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function id(e){var t=ci(e).Element;return e instanceof t||e instanceof Element}function Li(e){var t=ci(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mk(e){if(typeof ShadowRoot>"u")return!1;var t=ci(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hne(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];!Li(a)||!el(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 mne(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(d,f){return d[f]="",d},{});!Li(o)||!el(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(d){o.removeAttribute(d)}))})}}const gne={name:"applyStyles",enabled:!0,phase:"write",fn:hne,effect:mne,requires:["computeStyles"]};function Qs(e){return e.split("-")[0]}var Gu=Math.max,nb=Math.min,np=Math.round;function Sw(){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 RI(){return!/^((?!chrome|android).)*safari/i.test(Sw())}function rp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Li(e)&&(o=e.offsetWidth>0&&np(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&np(r.height)/e.offsetHeight||1);var s=id(e)?ci(e):window,l=s.visualViewport,d=!RI()&&n,f=(r.left+(d&&l?l.offsetLeft:0))/o,c=(r.top+(d&&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 gk(e){var t=rp(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 $I(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fl(e){return ci(e).getComputedStyle(e)}function yne(e){return["table","td","th"].indexOf(el(e))>=0}function Qc(e){return((id(e)?e.ownerDocument:e.document)||window.document).documentElement}function m0(e){return el(e)==="html"?e:e.assignedSlot||e.parentNode||(mk(e)?e.host:null)||Qc(e)}function Q$(e){return!Li(e)||Fl(e).position==="fixed"?null:e.offsetParent}function vne(e){var t=/firefox/i.test(Sw()),n=/Trident/i.test(Sw());if(n&&Li(e)){var r=Fl(e);if(r.position==="fixed")return null}var o=m0(e);for(mk(o)&&(o=o.host);Li(o)&&["html","body"].indexOf(el(o))<0;){var a=Fl(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 Mg(e){for(var t=ci(e),n=Q$(e);n&&yne(n)&&Fl(n).position==="static";)n=Q$(n);return n&&(el(n)==="html"||el(n)==="body"&&Fl(n).position==="static")?t:n||vne(e)||t}function yk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mm(e,t,n){return Gu(e,nb(t,n))}function bne(e,t,n){var r=Mm(e,t,n);return r>n?n:r}function PI(){return{top:0,right:0,bottom:0,left:0}}function DI(e){return Object.assign({},PI(),e)}function AI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xne=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,DI(typeof e!="number"?e:AI(e,Tg))};function Sne(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Qs(n.placement),d=yk(l),f=[Pa,Hi].indexOf(l)>=0,c=f?"height":"width";if(!(!a||!s)){var m=xne(o.padding,n),y=gk(a),v=d==="y"?$a:Pa,b=d==="y"?Vi:Hi,x=n.rects.reference[c]+n.rects.reference[d]-s[d]-n.rects.popper[c],w=s[d]-n.rects.reference[d],S=Mg(a),T=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,M=x/2-w/2,R=m[v],$=T-y[c]-m[b],P=T/2-y[c]/2+M,N=Mm(R,P,$),V=d;n.modifiersData[r]=(t={},t[V]=N,t.centerOffset=N-P,t)}}function wne(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)||$I(t.elements.popper,o)&&(t.elements.arrow=o))}const Cne={name:"arrow",enabled:!0,phase:"main",fn:Sne,effect:wne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function op(e){return e.split("-")[1]}var kne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tne(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:np(n*o)/o||0,y:np(r*o)/o||0}}function X$(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,d=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"),T=s.hasOwnProperty("y"),M=Pa,R=$a,$=window;if(f){var P=Mg(n),N="clientHeight",V="clientWidth";if(P===ci(n)&&(P=Qc(n),Fl(P).position!=="static"&&l==="absolute"&&(N="scrollHeight",V="scrollWidth")),P=P,o===$a||(o===Pa||o===Hi)&&a===Km){R=Vi;var z=m&&P===$&&$.visualViewport?$.visualViewport.height:P[N];x-=z-r.height,x*=d?1:-1}if(o===Pa||(o===$a||o===Vi)&&a===Km){M=Hi;var W=m&&P===$&&$.visualViewport?$.visualViewport.width:P[V];v-=W-r.width,v*=d?1:-1}}var H=Object.assign({position:l},f&&kne),k=c===!0?Tne({x:v,y:x},ci(n)):{x:v,y:x};if(v=k.x,x=k.y,d){var I;return Object.assign({},H,(I={},I[R]=T?"0":"",I[M]=S?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",I))}return Object.assign({},H,(t={},t[R]=T?x+"px":"",t[M]=S?v+"px":"",t.transform="",t))}function Mne(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,d=l===void 0?!0:l,f={placement:Qs(t.placement),variation:op(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,X$(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,X$(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ene={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mne,data:{}};var Gy={passive:!0};function One(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,d=ci(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(c){c.addEventListener("scroll",n.update,Gy)}),l&&d.addEventListener("resize",n.update,Gy),function(){a&&f.forEach(function(c){c.removeEventListener("scroll",n.update,Gy)}),l&&d.removeEventListener("resize",n.update,Gy)}}const Rne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:One,data:{}};var $ne={left:"right",right:"left",bottom:"top",top:"bottom"};function kv(e){return e.replace(/left|right|bottom|top/g,function(t){return $ne[t]})}var Pne={start:"end",end:"start"};function Z$(e){return e.replace(/start|end/g,function(t){return Pne[t]})}function vk(e){var t=ci(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function bk(e){return rp(Qc(e)).left+vk(e).scrollLeft}function Dne(e,t){var n=ci(e),r=Qc(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;var f=RI();(f||!f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l+bk(e),y:d}}function Ane(e){var t,n=Qc(e),r=vk(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Gu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Gu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+bk(e),d=-r.scrollTop;return Fl(o||n).direction==="rtl"&&(l+=Gu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:d}}function xk(e){var t=Fl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function jI(e){return["html","body","#document"].indexOf(el(e))>=0?e.ownerDocument.body:Li(e)&&xk(e)?e:jI(m0(e))}function Em(e,t){var n;t===void 0&&(t=[]);var r=jI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=ci(r),s=o?[a].concat(a.visualViewport||[],xk(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Em(m0(s)))}function ww(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jne(e,t){var n=rp(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 J$(e,t,n){return t===EI?ww(Dne(e,n)):id(t)?jne(t,n):ww(Ane(Qc(e)))}function Nne(e){var t=Em(m0(e)),n=["absolute","fixed"].indexOf(Fl(e).position)>=0,r=n&&Li(e)?Mg(e):e;return id(r)?t.filter(function(o){return id(o)&&$I(o,r)&&el(o)!=="body"}):[]}function Ine(e,t,n,r){var o=t==="clippingParents"?Nne(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(d,f){var c=J$(e,f,r);return d.top=Gu(c.top,d.top),d.right=nb(c.right,d.right),d.bottom=nb(c.bottom,d.bottom),d.left=Gu(c.left,d.left),d},J$(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 NI(e){var t=e.reference,n=e.element,r=e.placement,o=r?Qs(r):null,a=r?op(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(o){case $a:d={x:s,y:t.y-n.height};break;case Vi:d={x:s,y:t.y+t.height};break;case Hi:d={x:t.x+t.width,y:l};break;case Pa:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var f=o?yk(o):null;if(f!=null){var c=f==="y"?"height":"width";switch(a){case tp:d[f]=d[f]-(t[c]/2-n[c]/2);break;case Km:d[f]=d[f]+(t[c]/2-n[c]/2);break}}return d}function Gm(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,d=l===void 0?nne:l,f=n.rootBoundary,c=f===void 0?EI:f,m=n.elementContext,y=m===void 0?_h:m,v=n.altBoundary,b=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,S=DI(typeof w!="number"?w:AI(w,Tg)),T=y===_h?rne:_h,M=e.rects.popper,R=e.elements[b?T:y],$=Ine(id(R)?R:R.contextElement||Qc(e.elements.popper),d,c,s),P=rp(e.elements.reference),N=NI({reference:P,element:M,placement:o}),V=ww(Object.assign({},M,N)),z=y===_h?V:P,W={top:$.top-z.top+S.top,bottom:z.bottom-$.bottom+S.bottom,left:$.left-z.left+S.left,right:z.right-$.right+S.right},H=e.modifiersData.offset;if(y===_h&&H){var k=H[o];Object.keys(W).forEach(function(I){var F=[Hi,Vi].indexOf(I)>=0?1:-1,_=[$a,Vi].indexOf(I)>=0?"y":"x";W[I]+=k[_]*F})}return W}function Lne(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?OI:d,c=op(r),m=c?l?G$:G$.filter(function(b){return op(b)===c}):Tg,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]=Gm(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[Qs(x)],b},{});return Object.keys(v).sort(function(b,x){return v[b]-v[x]})}function zne(e){if(Qs(e)===hk)return[];var t=kv(e);return[Z$(e),t,Z$(t)]}function Fne(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,d=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=Qs(w),T=S===w,M=d||(T||!b?[kv(w)]:zne(w)),R=[w].concat(M).reduce(function(pe,oe){return pe.concat(Qs(oe)===hk?Lne(t,{placement:oe,boundary:c,rootBoundary:m,padding:f,flipVariations:b,allowedAutoPlacements:x}):oe)},[]),$=t.rects.reference,P=t.rects.popper,N=new Map,V=!0,z=R[0],W=0;W<R.length;W++){var H=R[W],k=Qs(H),I=op(H)===tp,F=[$a,Vi].indexOf(k)>=0,_=F?"width":"height",j=Gm(t,{placement:H,boundary:c,rootBoundary:m,altBoundary:y,padding:f}),X=F?I?Hi:Pa:I?Vi:$a;$[_]>P[_]&&(X=kv(X));var Q=kv(X),te=[];if(a&&te.push(j[k]<=0),l&&te.push(j[X]<=0,j[Q]<=0),te.every(function(pe){return pe})){z=H,V=!1;break}N.set(H,te)}if(V)for(var Z=b?3:1,G=function(pe){var oe=R.find(function(ae){var le=N.get(ae);if(le)return le.slice(0,pe).every(function(ge){return ge})});if(oe)return z=oe,"break"},ne=Z;ne>0;ne--){var ce=G(ne);if(ce==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Bne={name:"flip",enabled:!0,phase:"main",fn:Fne,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[$a,Hi,Vi,Pa].some(function(t){return e[t]>=0})}function Une(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Gm(t,{elementContext:"reference"}),l=Gm(t,{altBoundary:!0}),d=eP(s,r),f=eP(l,o,a),c=tP(d),m=tP(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}const _ne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Une};function Vne(e,t,n){var r=Qs(e),o=[Pa,$a].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,[Pa,Hi].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Hne(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=OI.reduce(function(c,m){return c[m]=Vne(m,t.rects,a),c},{}),l=s[t.placement],d=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const Wne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hne};function qne(e){var t=e.state,n=e.name;t.modifiersData[n]=NI({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Yne={name:"popperOffsets",enabled:!0,phase:"read",fn:qne,data:{}};function Kne(e){return e==="x"?"y":"x"}function Gne(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,d=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=Gm(t,{boundary:d,rootBoundary:f,padding:m,altBoundary:c}),S=Qs(t.placement),T=op(t.placement),M=!T,R=yk(S),$=Kne(R),P=t.modifiersData.popperOffsets,N=t.rects.reference,V=t.rects.popper,z=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(P){if(a){var I,F=R==="y"?$a:Pa,_=R==="y"?Vi:Hi,j=R==="y"?"height":"width",X=P[R],Q=X+w[F],te=X-w[_],Z=v?-V[j]/2:0,G=T===tp?N[j]:V[j],ne=T===tp?-V[j]:-N[j],ce=t.elements.arrow,pe=v&&ce?gk(ce):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:PI(),ae=oe[F],le=oe[_],ge=Mm(0,N[j],pe[j]),ye=M?N[j]/2-Z-ge-ae-W.mainAxis:G-ge-ae-W.mainAxis,we=M?-N[j]/2+Z+ge+le+W.mainAxis:ne+ge+le+W.mainAxis,Ce=t.elements.arrow&&Mg(t.elements.arrow),$e=Ce?R==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,de=(I=H?.[R])!=null?I:0,ke=X+ye-de-$e,et=X+we-de,ze=Mm(v?nb(Q,ke):Q,X,v?Gu(te,et):te);P[R]=ze,k[R]=ze-X}if(l){var Ae,se=R==="x"?$a:Pa,bt=R==="x"?Vi:Hi,Fe=P[$],it=$==="y"?"height":"width",pt=Fe+w[se],Ft=Fe-w[bt],_t=[$a,Pa].indexOf(S)!==-1,at=(Ae=H?.[$])!=null?Ae:0,Xe=_t?pt:Fe-N[it]-V[it]-at+W.altAxis,rt=_t?Fe+N[it]+V[it]-at-W.altAxis:Ft,Ne=v&&_t?bne(Xe,Fe,rt):Mm(v?Xe:pt,Fe,v?rt:Ft);P[$]=Ne,k[$]=Ne-Fe}t.modifiersData[r]=k}}const Qne={name:"preventOverflow",enabled:!0,phase:"main",fn:Gne,requiresIfExists:["offset"]};function Xne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zne(e){return e===ci(e)||!Li(e)?vk(e):Xne(e)}function Jne(e){var t=e.getBoundingClientRect(),n=np(t.width)/e.offsetWidth||1,r=np(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ere(e,t,n){n===void 0&&(n=!1);var r=Li(t),o=Li(t)&&Jne(t),a=Qc(t),s=rp(e,o,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((el(t)!=="body"||xk(a))&&(l=Zne(t)),Li(t)?(d=rp(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=bk(a))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function tre(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 d=t.get(l);d&&o(d)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function nre(e){var t=tre(e);return pne.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function rre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ore(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 are(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(s,l,d){d===void 0&&(d=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nP,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:id(s)?Em(s):s.contextElement?Em(s.contextElement):[],popper:Em(l)};var S=nre(ore([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),v(),y.update()},forceUpdate:function(){if(!m){var x=f.elements,w=x.reference,S=x.popper;if(rP(w,S)){f.rects={reference:ere(w,Mg(S),f.options.strategy==="fixed"),popper:gk(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(V){return f.modifiersData[V.name]=Object.assign({},V.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var M=f.orderedModifiers[T],R=M.fn,$=M.options,P=$===void 0?{}:$,N=M.name;typeof R=="function"&&(f=R({state:f,options:P,name:N,instance:y})||f)}}}},update:rre(function(){return new Promise(function(x){y.forceUpdate(),x(f)})}),destroy:function(){b(),m=!0}};if(!rP(s,l))return y;y.setOptions(d).then(function(x){!m&&d.onFirstUpdate&&d.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var w=x.name,S=x.options,T=S===void 0?{}:S,M=x.effect;if(typeof M=="function"){var R=M({state:f,name:w,instance:y,options:T}),$=function(){};c.push(R||$)}})}function b(){c.forEach(function(x){return x()}),c=[]}return y}}var ire=[Rne,Yne,Ene,gne,Wne,Bne,Qne,Cne,_ne],sre=are({defaultModifiers:ire});function lre(e){return typeof e=="function"?e():e}const II=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=C.useState(null),l=mr(C.isValidElement(n)?gp(n):null,t);if(Po(()=>{o||s(lre(r)||document.body)},[r,o]),Po(()=>{if(a&&!o)return ow(t,a),()=>{ow(t,null)}},[t,a,o]),o){if(C.isValidElement(n)){const d={ref:l};return C.cloneElement(n,d)}return n}return a&&pb.createPortal(n,a)});function cre(e){return on("MuiPopper",e)}Gt("MuiPopper",["root"]);function ure(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 Cw(e){return typeof e=="function"?e():e}function dre(e){return e.nodeType!==void 0}const fre=e=>{const{classes:t}=e;return tn({root:["root"]},cre,t)},pre={},hre=C.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:s,open:l,placement:d,popperOptions:f,popperRef:c,slotProps:m={},slots:y={},TransitionProps:v,ownerState:b,...x}=e,w=C.useRef(null),S=mr(w,t),T=C.useRef(null),M=mr(T,c),R=C.useRef(M);Po(()=>{R.current=M},[M]),C.useImperativeHandle(c,()=>T.current,[]);const $=ure(d,o),[P,N]=C.useState($),[V,z]=C.useState(Cw(n));C.useEffect(()=>{T.current&&T.current.forceUpdate()}),C.useEffect(()=>{n&&z(Cw(n))},[n]),Po(()=>{if(!V||!l)return;const F=X=>{N(X.placement)};let _=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{F(X)}}];s!=null&&(_=_.concat(s)),f&&f.modifiers!=null&&(_=_.concat(f.modifiers));const j=sre(V,w.current,{placement:$,...f,modifiers:_});return R.current(j),()=>{j.destroy(),R.current(null)}},[V,a,s,l,f,$]);const W={placement:P};v!==null&&(W.TransitionProps=v);const H=fre(e),k=y.root??"div",I=xr({elementType:k,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:H.root});return h.jsx(k,{...I,children:typeof r=="function"?r(W):r})}),mre=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:d,open:f,placement:c="bottom",popperOptions:m=pre,popperRef:y,style:v,transition:b=!1,slotProps:x={},slots:w={},...S}=e,[T,M]=C.useState(!0),R=()=>{M(!1)},$=()=>{M(!0)};if(!l&&!f&&(!b||T))return null;let P;if(o)P=o;else if(n){const z=Cw(n);P=z&&dre(z)?$o(z).body:$o(null).body}const N=!f&&l&&(!b||T)?"none":void 0,V=b?{in:f,onEnter:R,onExited:$}:void 0;return h.jsx(II,{disablePortal:s,container:P,children:h.jsx(hre,{anchorEl:n,direction:a,disablePortal:s,modifiers:d,ref:t,open:b?!T:f,placement:c,popperOptions:m,popperRef:y,slotProps:x,slots:w,...S,style:{position:"fixed",top:0,left:0,display:N,...v},TransitionProps:V,children:r})})}),gre=Ge(mre,{name:"MuiPopper",slot:"Root"})({}),Sk=C.forwardRef(function(e,t){const n=gs(),r=Hn({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:d,disablePortal:f,keepMounted:c,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:w,slots:S,slotProps:T,...M}=r,R=S?.root??s?.Root,$={anchorEl:o,container:d,disablePortal:f,keepMounted:c,modifiers:m,open:y,placement:v,popperOptions:b,popperRef:x,transition:w,...M};return h.jsx(gre,{as:a,direction:n?"rtl":"ltr",slots:{root:R},slotProps:T??l,...$,ref:t})}),yre=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vre(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 bre(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 xre(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||bre(e))}function Sre(e){const t=[],n=[];return Array.from(e.querySelectorAll(yre)).forEach((r,o)=>{const a=vre(r);a===-1||!xre(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 wre(){return!0}function LI(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Sre,isEnabled:s=wre,open:l}=e,d=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=mr(gp(t),b),w=C.useRef(null);C.useEffect(()=>{!l||!b.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!b.current)return;const M=$o(b.current);return b.current.contains(M.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),v.current&&b.current.focus()),()=>{o||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[l]),C.useEffect(()=>{if(!l||!b.current)return;const M=$o(b.current),R=N=>{w.current=N,!(r||!s()||N.key!=="Tab")&&M.activeElement===b.current&&N.shiftKey&&(d.current=!0,c.current&&c.current.focus())},$=()=>{const N=b.current;if(N===null)return;if(!M.hasFocus()||!s()||d.current){d.current=!1;return}if(N.contains(M.activeElement)||r&&M.activeElement!==f.current&&M.activeElement!==c.current)return;if(M.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let V=[];if((M.activeElement===f.current||M.activeElement===c.current)&&(V=a(b.current)),V.length>0){const z=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=V[0],H=V[V.length-1];typeof W!="string"&&typeof H!="string"&&(z?H.focus():W.focus())}else N.focus()};M.addEventListener("focusin",$),M.addEventListener("keydown",R,!0);const P=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(P),M.removeEventListener("focusin",$),M.removeEventListener("keydown",R,!0)}},[n,r,o,s,l,a]);const S=M=>{m.current===null&&(m.current=M.relatedTarget),v.current=!0,y.current=M.target;const R=t.props.onFocus;R&&R(M)},T=M=>{m.current===null&&(m.current=M.relatedTarget),v.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:S}),h.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:c,"data-testid":"sentinelEnd"})]})}function Cre(e){return on("MuiPickersPopper",e)}Gt("MuiPickersPopper",["root","paper"]);function kre(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Tre=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},ka=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ka(t.shadowRoot):t:null},Mre="@media (pointer: fine)",Ere="@media (prefers-reduced-motion: reduce)",zf=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),oP=zf&&zf[1]?parseInt(zf[1],10):null,aP=zf&&zf[2]?parseInt(zf[2],10):null,Ore=oP&&oP<10||aP&&aP<13||!1,zI=()=>aI(Ere,{defaultMatches:!1})||Ore,Rre=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],$re=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},Cre,t)},Pre=Ge(Sk,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Dre=Ge(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 Are(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function jre(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 d(){a.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),a.current=!1}},[e]);const s=It(d=>{if(!a.current)return;const f=r.current;r.current=!1;const c=$o(o.current);if(!o.current||"clientX"in d&&Are(d,c))return;if(n.current){n.current=!1;return}let m;d.composedPath?m=d.composedPath().indexOf(o.current)>-1:m=!c.documentElement.contains(d.target)||o.current.contains(d.target),!m&&!f&&t(d)}),l=()=>{r.current=!0};return C.useEffect(()=>{if(e){const d=$o(o.current),f=()=>{n.current=!0};return d.addEventListener("touchstart",s),d.addEventListener("touchmove",f),()=>{d.removeEventListener("touchstart",s),d.removeEventListener("touchmove",f)}}},[e,s]),C.useEffect(()=>{if(e){const d=$o(o.current);return d.addEventListener("click",s),()=>{d.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,l,l]}const Nre=C.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:s,paperClasses:l,onPaperClick:d,onPaperTouchStart:f}=e,c=Fn(e,Rre),m=De({},o,{placement:r}),y=xr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:m});return h.jsx(n,De({},c,y,{onClick:v=>{d(v),y.onClick?.(v)},onTouchStart:v=>{f(v),y.onTouchStart?.(v)},ownerState:m,children:a}))});function Ire(e){const t=Vr({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:a,onBlur:s,onDismiss:l,open:d,role:f,placement:c,slots:m,slotProps:y,reduceAnimations:v}=t;C.useEffect(()=>{function _(j){d&&j.key==="Escape"&&l()}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[l,d]);const b=C.useRef(null);C.useEffect(()=>{f==="tooltip"||a&&!a()||(d?b.current=ka(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[d,f,a]);const[x,w,S]=jre(d,s??l),T=C.useRef(null),M=mr(T,o),R=mr(M,x),$=t,P=$re($),N=zI(),V=v??N,z=_=>{_.key==="Escape"&&(_.stopPropagation(),l())},W=m?.desktopTransition??V?ad:Ym,H=m?.desktopTrapFocus??LI,k=m?.desktopPaper??Dre,I=m?.popper??Pre,F=xr({elementType:I,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:f,open:d,anchorEl:n,placement:c,onKeyDown:z},className:P.root,ownerState:t});return h.jsx(I,De({},F,{children:({TransitionProps:_,placement:j})=>h.jsx(H,De({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:f==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:h.jsx(W,De({},_,y?.desktopTransition,{children:h.jsx(Nre,{PaperComponent:k,ownerState:$,popperPlacement:j,ref:R,onPaperClick:w,onPaperTouchStart:S,paperClasses:P.paper,paperSlotProps:y?.desktopPaper,children:r})}))}))}))}const Lre=({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}},wk=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const s=Hr(),l=C.useRef(n),d=t??l.current??a.emptyValue,f=C.useMemo(()=>a.getTimezone(s,d),[s,a,d]),c=It(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,d),[a,s,m,d]),v=It((b,...x)=>{const w=c(b);o?.(w,...x)});return{value:y,handleValueChange:v,timezone:m}},Ck=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:s})=>{const[l,d]=si({name:e,state:"value",controlled:n,default:r??s.emptyValue}),f=It((c,...m)=>{d(c),a?.(c,...m)});return wk({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:f,valueManager:s})},zre=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},Fre=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},Bre=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},Ure=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:s,value:l,defaultValue:d,closeOnSelect:f=r==="desktop",timezone:c,referenceDate:m}=e,{current:y}=C.useRef(d),{current:v}=C.useRef(l!==void 0),[b,x]=C.useState(c),w=Hr(),S=pd(),{isOpen:T,setIsOpen:M}=Lre(e),{timezone:R,value:$,handleValueChange:P}=wk({timezone:c,value:l,defaultValue:y,referenceDate:m,onChange:s,valueManager:t}),[N,V]=C.useState(()=>{let ge;return $!==void 0?ge=$:y!==void 0?ge=y:ge=t.emptyValue,{draft:ge,lastPublishedValue:ge,lastCommittedValue:ge,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),z=t.getTimezone(w,N.draft);b!==c&&(x(c),c&&z&&c!==z&&V(ge=>De({},ge,{draft:t.setTimezone(w,c,ge.draft)})));const{getValidationErrorForNewValue:W}=wI({props:e,validator:o,timezone:R,value:N.draft,onError:e.onError}),H=It(ge=>{const ye={action:ge,dateState:N,hasChanged:et=>!t.areValuesEqual(w,ge.value,et),isControlled:v,closeOnSelect:f},we=zre(ye),Ce=Fre(ye),$e=Bre(ye);V(et=>De({},et,{draft:ge.value,lastPublishedValue:we?ge.value:et.lastPublishedValue,lastCommittedValue:Ce?ge.value:et.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let de=null;const ke=()=>(de||(de={validationError:ge.name==="setValueFromField"?ge.context.validationError:W(ge.value)},ge.name==="setValueFromShortcut"&&(de.shortcut=ge.shortcut)),de);we&&P(ge.value,ke()),Ce&&a&&a(ge.value,ke()),$e&&M(!1)});if(N.lastControlledValue!==l){const ge=t.areValuesEqual(w,N.draft,$);V(ye=>De({},ye,{lastControlledValue:l},ge?{}:{lastCommittedValue:$,lastPublishedValue:$,draft:$,hasBeenModifiedSinceMount:!0}))}const k=It(()=>{H({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),I=It(()=>{H({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),F=It(()=>{H({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),_=It(()=>{H({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=It(()=>{H({value:t.getTodayValue(w,R,n),name:"setValueFromAction",pickerAction:"today"})}),X=It(ge=>{ge.preventDefault(),M(!0)}),Q=It(ge=>{ge?.preventDefault(),M(!1)}),te=It((ge,ye="partial")=>H({name:"setValueFromView",value:ge,selectionState:ye})),Z=It((ge,ye,we)=>H({name:"setValueFromShortcut",value:ge,changeImportance:ye,shortcut:we})),G=It((ge,ye)=>H({name:"setValueFromField",value:ge,context:ye})),ne={onClear:k,onAccept:I,onDismiss:F,onCancel:_,onSetToday:j,onOpen:X,onClose:Q},ce={value:N.draft,onChange:G},pe=C.useMemo(()=>t.cleanValue(w,N.draft),[w,t,N.draft]),oe={value:pe,onChange:te,onClose:Q,open:T},ae=De({},ne,{value:pe,onChange:te,onSelectShortcut:Z,isValid:ge=>{const ye=o({adapter:S,value:ge,timezone:R,props:e});return!t.hasError(ye)}}),le=C.useMemo(()=>({onOpen:X,onClose:Q,open:T}),[T,Q,X]);return{open:T,fieldProps:ce,viewProps:oe,layoutProps:ae,actions:ne,contextValue:le}};function FI({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:s,onFocusedViewChange:l}){const d=C.useRef(n),f=C.useRef(o),c=C.useRef(o.includes(n)?n:o[0]),[m,y]=si({name:"useViews",state:"view",controlled:r,default:c.current}),v=C.useRef(a?m:null),[b,x]=si({name:"useViews",state:"focusedView",controlled:s,default:v.current});C.useEffect(()=>{(d.current&&d.current!==n||f.current&&f.current.some(N=>!o.includes(N)))&&(y(o.includes(n)?n:o[0]),f.current=o,d.current=n)},[n,y,m,o]);const w=o.indexOf(m),S=o[w-1]??null,T=o[w+1]??null,M=It((N,V)=>{x(V?N:z=>N===z?null:z),l?.(N,V)}),R=It(N=>{M(N,!0),N!==m&&(y(N),t&&t(N))}),$=It(()=>{T&&R(T)}),P=It((N,V,z)=>{const W=V==="finish",H=z?o.indexOf(z)<o.length-1:!!T;if(e(N,W&&H?"partial":V,z),z&&z!==m){const k=o[o.indexOf(z)+1];k&&R(k)}else W&&$()});return{view:m,setView:R,focusedView:b,setFocusedView:M,nextView:T,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:$,setValueAndGoToNextView:P}}const _re=["className","sx"],Vre=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:s,open:l,onClose:d}=t,{view:f,views:c,openTo:m,onViewChange:y,viewRenderers:v,timezone:b}=e,x=Fn(e,_re),{view:w,setView:S,defaultView:T,focusedView:M,setFocusedView:R,setValueAndGoToNextView:$}=FI({view:f,views:c,openTo:m,onChange:s,onViewChange:y,autoFocus:r}),{hasUIView:P,viewModeLookup:N}=C.useMemo(()=>c.reduce((I,F)=>{let _;return v[F]!=null?_="UI":_="field",I.viewModeLookup[F]=_,_==="UI"&&(I.hasUIView=!0),I},{hasUIView:!1,viewModeLookup:{}}),[v,c]),V=C.useMemo(()=>c.reduce((I,F)=>v[F]!=null&&See(F)?I+1:I,0),[v,c]),z=N[w],W=It(()=>z==="UI"),[H,k]=C.useState(z==="UI"?w:null);return H!==w&&N[w]==="UI"&&k(w),Po(()=>{z==="field"&&l&&(d(),setTimeout(()=>{a?.current?.setSelectedSections(w),a?.current?.focusField(w)}))},[w]),Po(()=>{if(!l)return;let I=w;z==="field"&&H!=null&&(I=H),I!==T&&N[I]==="UI"&&N[T]==="UI"&&(I=T),I!==w&&S(I),R(I,!0)},[l]),{hasUIView:P,shouldRestoreFocus:W,layoutProps:{views:c,view:H,onViewChange:S},renderCurrentView:()=>{if(H==null)return null;const I=v[H];if(I==null)return null;const F=De({},x,n,t,{views:c,timezone:b,onChange:$,view:H,onViewChange:S,focusedView:M,onFocusedViewChange:R,showViewSwitcher:V>1,timeViewsCount:V});return o?o(v,H,F):I(F)}}};function iP(){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 Hre=(e,t)=>{const[n,r]=C.useState(iP);return Po(()=>{const o=()=>{r(iP())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),kre(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Wre=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=Hre(n.views,o),s=gs();return{layoutProps:De({},n,t,{isLandscape:a,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function qre(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 BI=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:s,rendererInterceptor:l,fieldRef:d})=>{const f=Ure({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),c=Vre({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:d,propsFromPickerValue:f.viewProps,rendererInterceptor:l}),m=Wre({props:e,wrapperVariant:r,propsFromPickerValue:f.layoutProps,propsFromPickerViews:c.layoutProps}),y=qre({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 UI(e){return on("MuiPickersLayout",e)}const Eu=Gt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Yre(e){return on("MuiButton",e)}const Ou=Gt("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"]),Kre=C.createContext({}),Gre=C.createContext(void 0),Qre=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:d}=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=tn(f,Yre,d);return{...d,...c}},_I=[{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}}}],Xre=Ge(od,{shouldForwardProp:e=>Ia(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]}})(Vn(({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"},[`&.${Ou.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]},[`&.${Ou.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ou.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)",[`&.${Ou.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(fa()).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"},[`&.${Ou.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ou.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}),[`&.${Ou.loading}`]:{color:"transparent"}}}]}})),Zre=Ge("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}},..._I]})),Jre=Ge("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}},..._I]})),eoe=Ge("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}}]})),sP=Ge("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),uo=C.forwardRef(function(e,t){const n=C.useContext(Kre),r=C.useContext(Gre),o=qm(n,e),a=Hn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:d="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:T,loadingPosition:M="center",size:R="medium",startIcon:$,type:P,variant:N="text",...V}=a,z=ys(w),W=T??h.jsx(TI,{"aria-labelledby":z,color:"inherit",size:16}),H={...a,color:l,component:d,disabled:c,disableElevation:m,disableFocusRipple:y,fullWidth:x,loading:S,loadingIndicator:W,loadingPosition:M,size:R,type:P,variant:N},k=Qre(H),I=($||S&&M==="start")&&h.jsx(Zre,{className:k.startIcon,ownerState:H,children:$||h.jsx(sP,{className:k.loadingIconPlaceholder,ownerState:H})}),F=(v||S&&M==="end")&&h.jsx(Jre,{className:k.endIcon,ownerState:H,children:v||h.jsx(sP,{className:k.loadingIconPlaceholder,ownerState:H})}),_=r||"",j=typeof S=="boolean"?h.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:S&&h.jsx(eoe,{className:k.loadingIndicator,ownerState:H,children:W})}):null;return h.jsxs(Xre,{ownerState:H,className:jt(n.className,k.root,f,_),component:d,disabled:c||S,focusRipple:!y,focusVisibleClassName:jt(k.focusVisible,b),ref:t,type:P,id:S?z:w,...V,classes:k,children:[I,M!=="end"&&j,s,M==="end"&&j,F]})});function toe(e){return on("MuiDialogActions",e)}Gt("MuiDialogActions",["root","spacing"]);const noe=e=>{const{classes:t,disableSpacing:n}=e;return tn({root:["root",!n&&"spacing"]},toe,t)},roe=Ge("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}}}]}),ooe=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,s={...n,disableSpacing:o},l=noe(s);return h.jsx(roe,{className:jt(l.root,r),ownerState:s,ref:t,...a})}),aoe=["onAccept","onClear","onCancel","onSetToday","actions"];function ioe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,s=Fn(e,aoe),l=_l();if(a==null||a.length===0)return null;const d=a?.map(f=>{switch(f){case"clear":return h.jsx(uo,{onClick:n,children:l.clearButtonLabel},f);case"cancel":return h.jsx(uo,{onClick:r,children:l.cancelButtonLabel},f);case"accept":return h.jsx(uo,{onClick:t,children:l.okButtonLabel},f);case"today":return h.jsx(uo,{onClick:o,children:l.todayButtonLabel},f);default:return null}});return h.jsx(ooe,De({},s,{children:d}))}const Dl=C.createContext({});function soe(e){return on("MuiList",e)}Gt("MuiList",["root","padding","dense","subheader"]);const loe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return tn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},soe,t)},coe=Ge("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}}]}),VI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:d,...f}=n,c=C.useMemo(()=>({dense:s}),[s]),m={...n,component:a,dense:s,disablePadding:l},y=loe(m);return h.jsx(Dl.Provider,{value:c,children:h.jsxs(coe,{as:a,className:jt(y.root,o),ref:t,ownerState:m,...f,children:[d,r]})})});function uoe(e){return on("MuiListItem",e)}Gt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const doe=Gt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function foe(e){return on("MuiListItemSecondaryAction",e)}Gt("MuiListItemSecondaryAction",["root","disableGutters"]);const poe=e=>{const{disableGutters:t,classes:n}=e;return tn({root:["root",t&&"disableGutters"]},foe,n)},hoe=Ge("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}}]}),HI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=C.useContext(Dl),s={...n,disableGutters:a.disableGutters},l=poe(s);return h.jsx(hoe,{className:jt(l.root,r),ownerState:s,ref:t,...o})});HI.muiName="ListItemSecondaryAction";const moe=(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]},goe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return tn({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},uoe,n)},yoe=Ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:moe})(Vn(({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:{[`& > .${doe.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}}]}))),voe=Ge("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),boe=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:s,components:l={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:c,...m}={},dense:y=!1,disableGutters:v=!1,disablePadding:b=!1,divider:x=!1,secondaryAction:w,slotProps:S={},slots:T={},...M}=n,R=C.useContext(Dl),$=C.useMemo(()=>({dense:y||R.dense||!1,alignItems:r,disableGutters:v}),[r,R.dense,y,v]),P=C.useRef(null),N=C.Children.toArray(o),V=N.length&&Cv(N[N.length-1],["ListItemSecondaryAction"]),z={...n,alignItems:r,dense:$.dense,disableGutters:v,disablePadding:b,divider:x,hasSecondaryAction:V},W=goe(z),H=mr(P,t),k=T.root||l.Root||yoe,I=S.root||d.root||{},F={className:jt(W.root,I.className,a),...M};let _=s||"li";return V?(_=!F.component&&!s?"div":_,f==="li"&&(_==="li"?_="div":F.component==="li"&&(F.component="div")),h.jsx(Dl.Provider,{value:$,children:h.jsxs(voe,{as:f,className:jt(W.container,c),ref:H,ownerState:z,...m,children:[h.jsx(k,{...I,...!ep(k)&&{as:_,ownerState:{...z,...I.ownerState}},...F,children:N}),N.pop()]})})):h.jsx(Dl.Provider,{value:$,children:h.jsxs(k,{...I,as:_,ref:H,...!ep(k)&&{ownerState:{...z,...I.ownerState}},...F,children:[N,w&&h.jsx(HI,{children:w})]})})}),xoe=cr(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 Soe(e){return on("MuiChip",e)}const ar=Gt("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 ir(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...d}=t,{component:f,slots:c={[e]:void 0},slotProps:m={[e]:void 0},...y}=a,v=c[e]||r,b=d0(m[e],o),{props:{component:x,...w},internalRef:S}=uI({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),T=mr(S,b?.ref,t.ref),M=e==="root"?x||f:x,R=cI(v,{...e==="root"&&!f&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...w,...M&&!l&&{as:M},...M&&l&&{component:M},ref:T},o);return[v,R]}const woe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:d}=e,f={root:["root",d,n&&"disabled",`size${Tt(r)}`,`color${Tt(o)}`,l&&"clickable",l&&`clickableColor${Tt(o)}`,s&&"deletable",s&&`deletableColor${Tt(o)}`,`${d}${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(d)}Color${Tt(o)}`]};return tn(f,Soe,t)},Coe=Ge("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:d}=n;return[{[`& .${ar.avatar}`]:t.avatar},{[`& .${ar.avatar}`]:t[`avatar${Tt(l)}`]},{[`& .${ar.avatar}`]:t[`avatarColor${Tt(r)}`]},{[`& .${ar.icon}`]:t.icon},{[`& .${ar.icon}`]:t[`icon${Tt(l)}`]},{[`& .${ar.icon}`]:t[`iconColor${Tt(o)}`]},{[`& .${ar.deleteIcon}`]:t.deleteIcon},{[`& .${ar.deleteIcon}`]:t[`deleteIcon${Tt(l)}`]},{[`& .${ar.deleteIcon}`]:t[`deleteIconColor${Tt(r)}`]},{[`& .${ar.deleteIcon}`]:t[`deleteIcon${Tt(d)}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[d],t[`${d}${Tt(r)}`]]}})(Vn(({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",[`&.${ar.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ar.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ar.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ar.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ar.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ar.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ar.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,[`& .${ar.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ar.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(fa(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ar.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:{[`& .${ar.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ar.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ar.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(fa(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ar.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}`)},[`&.${ar.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(fa(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ar.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]}`,[`&.${ar.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ar.avatar}`]:{marginLeft:4},[`& .${ar.avatarSmall}`]:{marginLeft:2},[`& .${ar.icon}`]:{marginLeft:4},[`& .${ar.iconSmall}`]:{marginLeft:2},[`& .${ar.deleteIcon}`]:{marginRight:5},[`& .${ar.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(fa()).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)}`,[`&.${ar.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${ar.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${ar.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),koe=Ge("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 lP(e){return e.key==="Backspace"||e.key==="Delete"}const WI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:s="default",component:l,deleteIcon:d,disabled:f=!1,icon:c,label:m,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:x,size:w="medium",variant:S="filled",tabIndex:T,skipFocusWhenDisabled:M=!1,slots:R={},slotProps:$={},...P}=n,N=C.useRef(null),V=mr(N,t),z=oe=>{oe.stopPropagation(),v&&v(oe)},W=oe=>{oe.currentTarget===oe.target&&lP(oe)&&oe.preventDefault(),b&&b(oe)},H=oe=>{oe.currentTarget===oe.target&&v&&lP(oe)&&v(oe),x&&x(oe)},k=a!==!1&&y?!0:a,I=k||v?od:l||"div",F={...n,component:I,disabled:f,size:w,color:s,iconColor:C.isValidElement(c)&&c.props.color||s,onDelete:!!v,clickable:k,variant:S},_=woe(F),j=I===od?{component:l||"div",focusVisibleClassName:_.focusVisible,...v&&{disableRipple:!0}}:{};let X=null;v&&(X=d&&C.isValidElement(d)?C.cloneElement(d,{className:jt(d.props.className,_.deleteIcon),onClick:z}):h.jsx(xoe,{className:_.deleteIcon,onClick:z}));let Q=null;r&&C.isValidElement(r)&&(Q=C.cloneElement(r,{className:jt(_.avatar,r.props.className)}));let te=null;c&&C.isValidElement(c)&&(te=C.cloneElement(c,{className:jt(_.icon,c.props.className)}));const Z={slots:R,slotProps:$},[G,ne]=ir("root",{elementType:Coe,externalForwardedProps:{...Z,...P},ownerState:F,shouldForwardComponentProp:!0,ref:V,className:jt(_.root,o),additionalProps:{disabled:k&&f?!0:void 0,tabIndex:M&&f?-1:T,...j},getSlotProps:oe=>({...oe,onClick:ae=>{oe.onClick?.(ae),y?.(ae)},onKeyDown:ae=>{oe.onKeyDown?.(ae),W(ae)},onKeyUp:ae=>{oe.onKeyUp?.(ae),H(ae)}})}),[ce,pe]=ir("label",{elementType:koe,externalForwardedProps:Z,ownerState:F,className:_.label});return h.jsxs(G,{as:I,...ne,children:[Q||te,h.jsx(ce,{...pe,children:m}),X]})}),Qm=36,g0=2,y0=320,Toe=280,kk=336,Moe=["items","changeImportance","isLandscape","onChange","isValid"],Eoe=["getValue"];function Ooe(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Fn(e,Moe);if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:d}=l,f=Fn(l,Eoe);const c=d({isValid:o});return De({},f,{label:f.label,onClick:()=>{r(c,n,f)},disabled:!o(c)})});return h.jsx(VI,De({dense:!0,sx:[{maxHeight:kk,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(l=>h.jsx(boe,{children:h.jsx(WI,De({},l))},l.id??l.label))}))}function Roe(e){return e.view!==null}const $oe=e=>{const{classes:t,isLandscape:n}=e;return tn({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},UI,t)},Poe=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:s,views:l,onViewChange:d,value:f,onChange:c,onSelectShortcut:m,isValid:y,isLandscape:v,disabled:b,readOnly:x,children:w,slots:S,slotProps:T}=e,M=$oe(e),R=S?.actionBar??ioe,$=xr({elementType:R,externalSlotProps:T?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:M.actionBar,ownerState:De({},e,{wrapperVariant:t})}),P=h.jsx(R,De({},$)),N=S?.toolbar,V=xr({elementType:N,externalSlotProps:T?.toolbar,additionalProps:{isLandscape:v,onChange:c,value:f,view:s,onViewChange:d,views:l,disabled:b,readOnly:x},className:M.toolbar,ownerState:De({},e,{wrapperVariant:t})}),z=Roe(V)&&N?h.jsx(N,De({},V)):null,W=w,H=S?.tabs,k=s&&H?h.jsx(H,De({view:s,onViewChange:d,className:M.tabs},T?.tabs)):null,I=S?.shortcuts??Ooe,F=xr({elementType:I,externalSlotProps:T?.shortcuts,additionalProps:{isValid:y,isLandscape:v,onChange:m},className:M.shortcuts,ownerState:{isValid:y,isLandscape:v,onChange:m,wrapperVariant:t}}),_=s&&I?h.jsx(I,De({},F)):null;return{toolbar:z,content:W,tabs:k,actionBar:P,shortcuts:_}},Doe=e=>{const{isLandscape:t,classes:n}=e;return tn({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},UI,n)},Aoe=Ge("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Eu.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Eu.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Eu.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Eu.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Eu.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Eu.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Eu.shortcuts}`]:{gridColumn:3}}}]}),joe=Ge("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),qI=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:s,shortcuts:l}=Poe(n),{sx:d,className:f,isLandscape:c,wrapperVariant:m}=n,y=Doe(n);return h.jsxs(Aoe,{ref:t,sx:d,className:jt(y.root,f),ownerState:n,children:[c?l:r,c?r:l,h.jsx(joe,{className:y.contentWrapper,children:m==="desktop"?h.jsxs(C.Fragment,{children:[o,a]}):h.jsxs(C.Fragment,{children:[a,o]})}),s]})}),Noe=C.createContext(null);function YI(e){const{contextValue:t,localeText:n,children:r}=e;return h.jsx(Noe.Provider,{value:t,children:h.jsx(Zv,{localeText:n,children:r})})}const Ioe=["props","getOpenDialogAriaText"],Loe=["ownerState"],zoe=["ownerState"],Foe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Fn(e,Ioe);const{slots:o,slotProps:a,className:s,sx:l,format:d,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,name:b,label:x,inputRef:w,readOnly:S,disabled:T,autoFocus:M,localeText:R,reduceAnimations:$}=t,P=C.useRef(null),N=C.useRef(null),V=ys(),z=a?.toolbar?.hidden??!1,{open:W,actions:H,hasUIView:k,layoutProps:I,renderCurrentView:F,shouldRestoreFocus:_,fieldProps:j,contextValue:X,ownerState:Q}=BI(De({},r,{props:t,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),te=o.inputAdornment??CI,Z=xr({elementType:te,externalSlotProps:a?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),G=Fn(Z,Loe),ne=o.openPickerButton??Gc,ce=xr({elementType:ne,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:T||S,onClick:W?H.onClose:H.onOpen,"aria-label":n(j.value),edge:G.position},ownerState:t}),pe=Fn(ce,zoe),oe=o.openPickerIcon,ae=xr({elementType:oe,externalSlotProps:a?.openPickerIcon,ownerState:Q}),le=o.field,ge=xr({elementType:le,externalSlotProps:a?.field,additionalProps:De({},j,z&&{id:V},{readOnly:S,disabled:T,className:s,sx:l,format:d,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,label:x,name:b,autoFocus:M&&!t.open,focused:W?!0:void 0},w?{inputRef:w}:{}),ownerState:t});k&&(ge.InputProps=De({},ge.InputProps,{ref:P},!t.disableOpenPicker&&{[`${G.position}Adornment`]:h.jsx(te,De({},G,{children:h.jsx(ne,De({},pe,{children:h.jsx(oe,De({},ae))}))}))}));const ye=De({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ge.slots),we=o.layout??qI;let Ce=V;z&&(x?Ce=`${V}-label`:Ce=void 0);const $e=De({},a,{toolbar:De({},a?.toolbar,{titleId:V}),popper:De({"aria-labelledby":Ce},a?.popper)}),de=mr(N,ge.unstableFieldRef);return{renderPicker:()=>h.jsxs(YI,{contextValue:X,localeText:R,children:[h.jsx(le,De({},ge,{slots:ye,slotProps:$e,unstableFieldRef:de})),h.jsx(Ire,De({role:"dialog",placement:"bottom-start",anchorEl:P.current},H,{open:W,slots:o,slotProps:$e,shouldRestoreFocus:_,reduceAnimations:$,children:h.jsx(we,De({},I,$e?.layout,{slots:o,slotProps:$e,children:F()}))}))]})}},Boe=cr(h.jsx("path",{d:"M7 10l5 5 5-5z"})),Uoe=cr(h.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),_oe=cr(h.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Voe=cr(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"}));cr(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"})]}));cr(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"}));cr(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 Hoe=cr(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 Qy(e){return parseInt(e,10)||0}const Woe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qoe(e){for(const t in e)return!1;return!0}function cP(e){return qoe(e)||e.outerHeightStyle===0&&!e.overflowing}const Yoe=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s,...l}=e,{current:d}=C.useRef(s!=null),f=C.useRef(null),c=mr(t,f),m=C.useRef(null),y=C.useRef(null),v=C.useCallback(()=>{const T=f.current,M=y.current;if(!T||!M)return;const R=zl(T).getComputedStyle(T);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};M.style.width=R.width,M.value=T.value||e.placeholder||"x",M.value.slice(-1)===`
429
+ `&&(M.value+=" ");const $=R.boxSizing,P=Qy(R.paddingBottom)+Qy(R.paddingTop),N=Qy(R.borderBottomWidth)+Qy(R.borderTopWidth),V=M.scrollHeight;M.value="x";const z=M.scrollHeight;let W=V;o&&(W=Math.max(Number(o)*z,W)),r&&(W=Math.min(Number(r)*z,W)),W=Math.max(W,z);const H=W+($==="border-box"?P+N:0),k=Math.abs(W-V)<=1;return{outerHeightStyle:H,overflowing:k}},[r,o,e.placeholder]),b=It(()=>{const T=f.current,M=v();if(!T||!M||cP(M))return!1;const R=M.outerHeightStyle;return m.current!=null&&m.current!==R}),x=C.useCallback(()=>{const T=f.current,M=v();if(!T||!M||cP(M))return;const R=M.outerHeightStyle;m.current!==R&&(m.current=R,T.style.height=`${R}px`),T.style.overflow=M.overflowing?"hidden":""},[v]),w=C.useRef(-1);Po(()=>{const T=VN(x),M=f?.current;if(!M)return;const R=zl(M);R.addEventListener("resize",T);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(()=>{b()&&($.unobserve(M),cancelAnimationFrame(w.current),x(),w.current=requestAnimationFrame(()=>{$.observe(M)}))}),$.observe(M)),()=>{T.clear(),cancelAnimationFrame(w.current),R.removeEventListener("resize",T),$&&$.disconnect()}},[v,x,b]),Po(()=>{x()});const S=T=>{d||x();const M=T.target,R=M.value.length,$=M.value.endsWith(`
430
+ `),P=M.selectionStart===R;$&&P&&M.setSelectionRange(R,R),n&&n(T)};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:{...Woe.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function md({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 uP(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rb(e,t=!1){return e&&(uP(e.value)&&e.value!==""||t&&uP(e.defaultValue)&&e.defaultValue!=="")}function Koe(e){return e.startAdornment}function Goe(e){return on("MuiInputBase",e)}const ti=Gt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var dP;const v0=(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]},b0=(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]},Qoe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:d,hiddenLabel:f,multiline:c,readOnly:m,size:y,startAdornment:v,type:b}=e,x={root:["root",`color${Tt(n)}`,r&&"disabled",o&&"error",d&&"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 tn(x,Goe,t)},x0=Ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:v0})(Vn(({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",[`&.${ti.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%"}}]}))),S0=Ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:b0})(Vn(({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] + .${ti.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},[`&.${ti.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"}}]}})),fP=XZ({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Tk=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:s,color:l,components:d={},componentsProps:f={},defaultValue:c,disabled:m,disableInjectingGlobalStyles:y,endAdornment:v,error:b,fullWidth:x=!1,id:w,inputComponent:S="input",inputProps:T={},inputRef:M,margin:R,maxRows:$,minRows:P,multiline:N=!1,name:V,onBlur:z,onChange:W,onClick:H,onFocus:k,onKeyDown:I,onKeyUp:F,placeholder:_,readOnly:j,renderSuffix:X,rows:Q,size:te,slotProps:Z={},slots:G={},startAdornment:ne,type:ce="text",value:pe,...oe}=n,ae=T.value!=null?T.value:pe,{current:le}=C.useRef(ae!=null),ge=C.useRef(),ye=C.useCallback(We=>{},[]),we=mr(ge,M,T.ref,ye),[Ce,$e]=C.useState(!1),de=di(),ke=md({props:n,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=de?de.focused:Ce,C.useEffect(()=>{!de&&m&&Ce&&($e(!1),z&&z())},[de,m,Ce,z]);const et=de&&de.onFilled,ze=de&&de.onEmpty,Ae=C.useCallback(We=>{rb(We)?et&&et():ze&&ze()},[et,ze]);Po(()=>{le&&Ae({value:ae})},[ae,Ae,le]);const se=We=>{k&&k(We),T.onFocus&&T.onFocus(We),de&&de.onFocus?de.onFocus(We):$e(!0)},bt=We=>{z&&z(We),T.onBlur&&T.onBlur(We),de&&de.onBlur?de.onBlur(We):$e(!1)},Fe=(We,...Te)=>{if(!le){const kt=We.target||ge.current;if(kt==null)throw new Error(Il(1));Ae({value:kt.value})}T.onChange&&T.onChange(We,...Te),W&&W(We,...Te)};C.useEffect(()=>{Ae(ge.current)},[]);const it=We=>{ge.current&&We.currentTarget===We.target&&ge.current.focus(),H&&H(We)};let pt=S,Ft=T;N&&pt==="input"&&(Q?Ft={type:void 0,minRows:Q,maxRows:Q,...Ft}:Ft={type:void 0,maxRows:$,minRows:P,...Ft},pt=Yoe);const _t=We=>{Ae(We.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};C.useEffect(()=>{de&&de.setAdornedStart(!!ne)},[de,ne]);const at={...n,color:ke.color||"primary",disabled:ke.disabled,endAdornment:v,error:ke.error,focused:ke.focused,formControl:de,fullWidth:x,hiddenLabel:ke.hiddenLabel,multiline:N,size:ke.size,startAdornment:ne,type:ce},Xe=Qoe(at),rt=G.root||d.Root||x0,Ne=Z.root||f.root||{},he=G.input||d.Input||S0;return Ft={...Ft,...Z.input??f.input},h.jsxs(C.Fragment,{children:[!y&&typeof fP=="function"&&(dP||(dP=h.jsx(fP,{}))),h.jsxs(rt,{...Ne,ref:t,onClick:it,...oe,...!ep(rt)&&{ownerState:{...at,...Ne.ownerState}},className:jt(Xe.root,Ne.className,s,j&&"MuiInputBase-readOnly"),children:[ne,h.jsx(h0.Provider,{value:null,children:h.jsx(he,{"aria-invalid":ke.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:c,disabled:ke.disabled,id:w,onAnimationStart:_t,name:V,placeholder:_,readOnly:j,required:ke.required,rows:Q,value:ae,onKeyDown:I,onKeyUp:F,type:ce,...Ft,...!ep(he)&&{as:pt,ownerState:{...at,...Ft.ownerState}},ref:we,className:jt(Xe.input,Ft.className,j&&"MuiInputBase-readOnly"),onBlur:bt,onChange:Fe,onFocus:se})}),v,X?X({...ke,startAdornment:ne}):null]})]})});function Xoe(e){return on("MuiInput",e)}const Oc={...ti,...Gt("MuiInput",["root","underline","input"])},Zoe=e=>{const{classes:t,disableUnderline:n}=e,r=tn({root:["root",!n&&"underline"],input:["input"]},Xoe,t);return{...t,...r}},Joe=Ge(x0,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...v0(e,t),!n.disableUnderline&&t.underline]}})(Vn(({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"},[`&.${Oc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Oc.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(.${Oc.disabled}, .${Oc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Oc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(fa()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),eae=Ge(S0,{name:"MuiInput",slot:"Input",overridesResolver:b0})({}),Mk=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:d=!1,slotProps:f,slots:c={},type:m="text",...y}=n,v=Zoe(n),b={root:{ownerState:{disableUnderline:r}}},x=f??a?na(f??a,b):b,w=c.root??o.Root??Joe,S=c.input??o.Input??eae;return h.jsx(Tk,{slots:{root:w,input:S},slotProps:x,fullWidth:s,inputComponent:l,multiline:d,ref:t,type:m,...y,classes:v})});Mk.muiName="Input";function tae(e){return on("MuiFilledInput",e)}const ni={...ti,...Gt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},nae=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,d={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=tn(d,tae,t);return{...t,...f}},rae=Ge(x0,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...v0(e,t),!n.disableUnderline&&t.underline]}})(Vn(({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}},[`&.${ni.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ni.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"},[`&.${ni.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ni.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(.${ni.disabled}, .${ni.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ni.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(fa()).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}}]}})),oae=Ge(S0,{name:"MuiFilledInput",slot:"Input",overridesResolver:b0})(Vn(({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}}]}))),Ek=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:d="input",multiline:f=!1,slotProps:c,slots:m={},type:y="text",...v}=n,b={...n,disableUnderline:r,fullWidth:s,inputComponent:d,multiline:f,type:y},x=nae(n),w={root:{ownerState:b},input:{ownerState:b}},S=c??a?na(w,c??a):w,T=m.root??o.Root??rae,M=m.input??o.Input??oae;return h.jsx(Tk,{slots:{root:T,input:M},slotProps:S,fullWidth:s,inputComponent:d,multiline:f,ref:t,type:y,...v,classes:x})});Ek.muiName="Input";var pP;const aae=Ge("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ia})({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%"}),iae=Ge("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ia})(Vn(({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 sae(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",d={...e,notched:a,withLabel:l};return h.jsx(aae,{"aria-hidden":!0,className:r,ownerState:d,...s,children:h.jsx(iae,{ownerState:d,children:l?h.jsx("span",{children:o}):pP||(pP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function lae(e){return on("MuiOutlinedInput",e)}const Mi={...ti,...Gt("MuiOutlinedInput",["root","notchedOutline","input"])},cae=e=>{const{classes:t}=e,n=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lae,t);return{...t,...n}},uae=Ge(x0,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:v0})(Vn(({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 .${Mi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mi.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Mi.focused} .${Mi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(fa()).map(([n])=>({props:{color:n},style:{[`&.${Mi.focused} .${Mi.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Mi.error} .${Mi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Mi.disabled} .${Mi.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"}}]}})),dae=Ge(sae,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Vn(({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}})),fae=Ge(S0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:b0})(Vn(({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}}]}))),Ok=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:d,slots:f={},slotProps:c={},type:m="text",...y}=n,v=cae(n),b=di(),x=md({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??uae,T=f.input??r.Input??fae,[M,R]=ir("notchedOutline",{elementType:dae,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(Tk,{slots:{root:S,input:T},slotProps:c,renderSuffix:$=>h.jsx(M,{...R,notched:typeof d<"u"?d:!!($.startAdornment||$.filled||$.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:m,...y,classes:{...v,notchedOutline:null}})});Ok.muiName="Input";function pae(e){return on("MuiFormLabel",e)}const Om=Gt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hae=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,d={root:["root",`color${Tt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return tn(d,pae,t)},mae=Ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Vn(({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(fa()).map(([t])=>({props:{color:t},style:{[`&.${Om.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Om.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Om.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),gae=Ge("span",{name:"MuiFormLabel",slot:"Asterisk"})(Vn(({theme:e})=>({[`&.${Om.error}`]:{color:(e.vars||e).palette.error.main}}))),yae=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:s="label",disabled:l,error:d,filled:f,focused:c,required:m,...y}=n,v=di(),b=md({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=hae(x);return h.jsxs(mae,{as:s,ownerState:x,className:jt(w.root,o),ref:t,...y,children:[r,b.required&&h.jsxs(gae,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function vae(e){return on("MuiInputLabel",e)}Gt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const bae=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,d={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Tt(r)}`,s],asterisk:[l&&"asterisk"]},f=tn(d,vae,t);return{...t,...f}},xae=Ge(yae,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Om.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]]}})(Vn(({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)"}}]}))),KI=C.forwardRef(function(e,t){const n=Hn({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:s,className:l,...d}=n,f=di();let c=a;typeof c>"u"&&f&&(c=f.filled||f.focused||f.adornedStart);const m=md({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=bae(y);return h.jsx(xae,{"data-shrink":c,ref:t,className:jt(v.root,l),...d,ownerState:y,classes:v})});function Sae(e){return on("MuiFormControl",e)}Gt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const wae=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Tt(n)}`,r&&"fullWidth"]};return tn(o,Sae,t)},Cae=Ge("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%"}}]}),GI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:s="div",disabled:l=!1,error:d=!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:d,fullWidth:c,hiddenLabel:m,margin:y,required:v,size:b,variant:x},T=wae(S),[M,R]=C.useState(()=>{let F=!1;return r&&C.Children.forEach(r,_=>{if(!Cv(_,["Input","Select"]))return;const j=Cv(_,["Select"])?_.props.input:_;j&&Koe(j.props)&&(F=!0)}),F}),[$,P]=C.useState(()=>{let F=!1;return r&&C.Children.forEach(r,_=>{Cv(_,["Input","Select"])&&(rb(_.props,!0)||rb(_.props.inputProps,!0))&&(F=!0)}),F}),[N,V]=C.useState(!1);l&&N&&V(!1);const z=f!==void 0&&!l?f:N;let W;C.useRef(!1);const H=C.useCallback(()=>{P(!0)},[]),k=C.useCallback(()=>{P(!1)},[]),I=C.useMemo(()=>({adornedStart:M,setAdornedStart:R,color:a,disabled:l,error:d,filled:$,focused:z,fullWidth:c,hiddenLabel:m,size:b,onBlur:()=>{V(!1)},onFocus:()=>{V(!0)},onEmpty:k,onFilled:H,registerEffect:W,required:v,variant:x}),[M,a,l,d,$,z,c,m,W,k,H,v,b,x]);return h.jsx(h0.Provider,{value:I,children:h.jsx(Cae,{as:s,ownerState:S,className:jt(T.root,o),ref:t,...w,children:r})})});function kae(e){return on("MuiFormHelperText",e)}const hP=Gt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var mP;const Tae=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:d}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${Tt(r)}`,n&&"contained",l&&"focused",s&&"filled",d&&"required"]};return tn(f,kae,t)},Mae=Ge("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]}})(Vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hP.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hP.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}}]}))),QI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:s,error:l,filled:d,focused:f,margin:c,required:m,variant:y,...v}=n,b=di(),x=md({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=Tae(w);return h.jsx(Mae,{as:a,className:jt(S.root,o),ref:t,...v,ownerState:w,children:r===" "?mP||(mP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function Q1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gP(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function XI(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 Vh(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 d=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!XI(l,a)||d)l=o(e,l,n);else return l.focus(),!0}return!1}const Eae=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:d=!1,onKeyDown:f,variant:c="selectedMenu",...m}=e,y=C.useRef(null),v=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Po(()=>{r&&y.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:M})=>{const R=!y.current.style.width;if(T.clientHeight<y.current.clientHeight&&R){const $=`${lI(zl(T))}px`;y.current.style[M==="rtl"?"paddingLeft":"paddingRight"]=$,y.current.style.width=`calc(100% + ${$})`}return y.current}}),[]);const b=T=>{const M=y.current,R=T.key;if(T.ctrlKey||T.metaKey||T.altKey){f&&f(T);return}const $=$o(M).activeElement;if(R==="ArrowDown")T.preventDefault(),Vh(M,$,d,l,Q1);else if(R==="ArrowUp")T.preventDefault(),Vh(M,$,d,l,gP);else if(R==="Home")T.preventDefault(),Vh(M,null,d,l,Q1);else if(R==="End")T.preventDefault(),Vh(M,null,d,l,gP);else if(R.length===1){const P=v.current,N=R.toLowerCase(),V=performance.now();P.keys.length>0&&(V-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&N!==P.keys[0]&&(P.repeating=!1)),P.lastTime=V,P.keys.push(N);const z=$&&!P.repeating&&XI($,P);P.previousKeyMatched&&(z||Vh(M,$,!1,l,Q1,P))?T.preventDefault():P.previousKeyMatched=!1}f&&f(T)},x=mr(y,t);let w=-1;C.Children.forEach(a,(T,M)=>{if(!C.isValidElement(T)){w===M&&(w+=1,w>=a.length&&(w=-1));return}T.props.disabled||(c==="selectedMenu"&&T.props.selected||w===-1)&&(w=M),w===M&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const S=C.Children.map(a,(T,M)=>{if(M===w){const R={};return o&&(R.autoFocus=!0),T.props.tabIndex===void 0&&c==="selectedMenu"&&(R.tabIndex=0),C.cloneElement(T,R)}return T});return h.jsx(VI,{role:"menu",ref:x,className:s,onKeyDown:b,tabIndex:r?0:-1,...m,children:S})});function Oae(e){const t=$o(e);return t.body===e?zl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Rm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yP(e){return parseInt(zl(e).getComputedStyle(e).paddingRight,10)||0}function Rae(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 vP(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),d=!Rae(s);l&&d&&Rm(s,o)})}function X1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function $ae(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Oae(r)){const a=lI(zl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yP(r)+a}px`;const s=$o(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${yP(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=$o(r).body;else{const a=r.parentElement,s=zl(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 Pae(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Dae{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&&Rm(t.modalRef,!1);const o=Pae(n);vP(n,t.mount,t.modalRef,o,!0);const a=X1(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=X1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=$ae(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=X1(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&&Rm(t.modalRef,n),vP(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&&Rm(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Aae(e){return on("MuiBackdrop",e)}Gt("MuiBackdrop",["root","invisible"]);const jae=e=>{const{classes:t,invisible:n}=e;return tn({root:["root",n&&"invisible"]},Aae,t)},Nae=Ge("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"}}]}),ZI=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:s=!1,open:l,components:d={},componentsProps:f={},slotProps:c={},slots:m={},TransitionComponent:y,transitionDuration:v,...b}=n,x={...n,component:a,invisible:s},w=jae(x),S={transition:y,root:d.Root,...m},T={...f,...c},M={component:a,slots:S,slotProps:T},[R,$]=ir("root",{elementType:Nae,externalForwardedProps:M,className:jt(w.root,o),ownerState:x}),[P,N]=ir("transition",{elementType:ad,externalForwardedProps:M,ownerState:x});return h.jsx(P,{in:l,timeout:v,...b,...N,children:h.jsx(R,{"aria-hidden":!0,...$,classes:w,ref:t,children:r})})});function Iae(e){return typeof e=="function"?e():e}function Lae(e){return e?e.props.hasOwnProperty("in"):!1}const bP=()=>{},Xy=new Dae;function zae(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:d,open:f,rootRef:c}=e,m=C.useRef({}),y=C.useRef(null),v=C.useRef(null),b=mr(v,c),[x,w]=C.useState(!f),S=Lae(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const M=()=>$o(y.current),R=()=>(m.current.modalRef=v.current,m.current.mount=y.current,m.current),$=()=>{Xy.mount(R(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},P=It(()=>{const k=Iae(t)||M().body;Xy.add(R(),k),v.current&&$()}),N=()=>Xy.isTopModal(R()),V=It(k=>{y.current=k,k&&(f&&N()?$():v.current&&Rm(v.current,T))}),z=C.useCallback(()=>{Xy.remove(R(),T)},[T]);C.useEffect(()=>()=>{z()},[z]),C.useEffect(()=>{f?P():(!S||!o)&&z()},[f,z,S,o,P]);const W=k=>I=>{k.onKeyDown?.(I),!(I.key!=="Escape"||I.which===229||!N())&&(n||(I.stopPropagation(),d&&d(I,"escapeKeyDown")))},H=k=>I=>{k.onClick?.(I),I.target===I.currentTarget&&d&&d(I,"backdropClick")};return{getRootProps:(k={})=>{const I=Qv(e);delete I.onTransitionEnter,delete I.onTransitionExited;const F={...I,...k};return{role:"presentation",...F,onKeyDown:W(F),ref:b}},getBackdropProps:(k={})=>{const I=k;return{"aria-hidden":!0,...I,onClick:H(I),open:f}},getTransitionProps:()=>{const k=()=>{w(!1),a&&a()},I=()=>{w(!0),s&&s(),o&&z()};return{onEnter:qR(k,l?.props.onEnter??bP),onExited:qR(I,l?.props.onExited??bP)}},rootRef:b,portalRef:V,isTopModal:N,exited:x,hasTransition:S}}function Fae(e){return on("MuiModal",e)}Gt("MuiModal",["root","hidden","backdrop"]);const Bae=e=>{const{open:t,exited:n,classes:r}=e;return tn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Fae,r)},Uae=Ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Vn(({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"}}]}))),_ae=Ge(ZI,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),JI=C.forwardRef(function(e,t){const n=Hn({name:"MuiModal",props:e}),{BackdropComponent:r=_ae,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:d,container:f,component:c,components:m={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:T=!1,hideBackdrop:M=!1,keepMounted:R=!1,onClose:$,onTransitionEnter:P,onTransitionExited:N,open:V,slotProps:z={},slots:W={},theme:H,...k}=n,I={...n,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:S,disableScrollLock:T,hideBackdrop:M,keepMounted:R},{getRootProps:F,getBackdropProps:_,getTransitionProps:j,portalRef:X,isTopModal:Q,exited:te,hasTransition:Z}=zae({...I,rootRef:t}),G={...I,exited:te},ne=Bae(G),ce={};if(d.props.tabIndex===void 0&&(ce.tabIndex="-1"),Z){const{onEnter:ye,onExited:we}=j();ce.onEnter=ye,ce.onExited=we}const pe={slots:{root:m.Root,backdrop:m.Backdrop,...W},slotProps:{...y,...z}},[oe,ae]=ir("root",{ref:t,elementType:Uae,externalForwardedProps:{...pe,...k,component:c},getSlotProps:F,ownerState:G,className:jt(s,ne?.root,!G.open&&G.exited&&ne?.hidden)}),[le,ge]=ir("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:pe,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ye=>_({...ye,onClick:we=>{ye?.onClick&&ye.onClick(we)}}),className:jt(o?.className,ne?.backdrop),ownerState:G});return!R&&!V&&(!Z||te)?null:h.jsx(II,{ref:X,container:f,disablePortal:w,children:h.jsxs(oe,{...ae,children:[!M&&r?h.jsx(le,{...ge}):null,h.jsx(LI,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:Q,open:V,children:C.cloneElement(d,ce)})]})})});function Vae(e){return on("MuiPopover",e)}Gt("MuiPopover",["root","paper"]);function xP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function SP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function wP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Zy(e){return typeof e=="function"?e():e}const Hae=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},Vae,t)},Wae=Ge(JI,{name:"MuiPopover",slot:"Root"})({}),eL=Ge(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}),qae=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:d,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:T,transitionDuration:M="auto",TransitionProps:R={},disableScrollLock:$=!1,...P}=n,N=C.useRef(),V={...n,anchorOrigin:a,anchorReference:l,elevation:m,marginThreshold:y,transformOrigin:S,TransitionComponent:T,transitionDuration:M,TransitionProps:R},z=Hae(V),W=C.useCallback(()=>{if(l==="anchorPosition")return s;const ye=Zy(o),we=(ye&&ye.nodeType===1?ye:$o(N.current).body).getBoundingClientRect();return{top:we.top+xP(we,a.vertical),left:we.left+SP(we,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),H=C.useCallback(ye=>({vertical:xP(ye,S.vertical),horizontal:SP(ye,S.horizontal)}),[S.horizontal,S.vertical]),k=C.useCallback(ye=>{const we={width:ye.offsetWidth,height:ye.offsetHeight},Ce=H(we);if(l==="none")return{top:null,left:null,transformOrigin:wP(Ce)};const $e=W();let de=$e.top-Ce.vertical,ke=$e.left-Ce.horizontal;const et=de+we.height,ze=ke+we.width,Ae=zl(Zy(o)),se=Ae.innerHeight-y,bt=Ae.innerWidth-y;if(y!==null&&de<y){const Fe=de-y;de-=Fe,Ce.vertical+=Fe}else if(y!==null&&et>se){const Fe=et-se;de-=Fe,Ce.vertical+=Fe}if(y!==null&&ke<y){const Fe=ke-y;ke-=Fe,Ce.horizontal+=Fe}else if(ze>bt){const Fe=ze-bt;ke-=Fe,Ce.horizontal+=Fe}return{top:`${Math.round(de)}px`,left:`${Math.round(ke)}px`,transformOrigin:wP(Ce)}},[o,l,W,H,y]),[I,F]=C.useState(v),_=C.useCallback(()=>{const ye=N.current;if(!ye)return;const we=k(ye);we.top!==null&&ye.style.setProperty("top",we.top),we.left!==null&&(ye.style.left=we.left),ye.style.transformOrigin=we.transformOrigin,F(!0)},[k]);C.useEffect(()=>($&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[o,$,_]);const j=()=>{_()},X=()=>{F(!1)};C.useEffect(()=>{v&&_()}),C.useImperativeHandle(r,()=>v?{updatePosition:()=>{_()}}:null,[v,_]),C.useEffect(()=>{if(!v)return;const ye=VN(()=>{_()}),we=zl(Zy(o));return we.addEventListener("resize",ye),()=>{ye.clear(),we.removeEventListener("resize",ye)}},[o,v,_]);let Q=M;const te={slots:{transition:T,...x},slotProps:{transition:R,paper:b,...w}},[Z,G]=ir("transition",{elementType:Ym,externalForwardedProps:te,ownerState:V,getSlotProps:ye=>({...ye,onEntering:(we,Ce)=>{ye.onEntering?.(we,Ce),j()},onExited:we=>{ye.onExited?.(we),X()}}),additionalProps:{appear:!0,in:v}});M==="auto"&&!Z.muiSupportAuto&&(Q=void 0);const ne=c||(o?$o(Zy(o)).body:void 0),[ce,{slots:pe,slotProps:oe,...ae}]=ir("root",{ref:t,elementType:Wae,externalForwardedProps:{...te,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:HN(typeof w.backdrop=="function"?w.backdrop(V):w.backdrop,{invisible:!0})},container:ne,open:v},ownerState:V,className:jt(z.root,f)}),[le,ge]=ir("paper",{ref:N,className:z.paper,elementType:eL,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:I?void 0:{opacity:0}},ownerState:V});return h.jsx(ce,{...ae,...!ep(ce)&&{slots:pe,slotProps:oe,disableScrollLock:$},children:h.jsx(Z,{...G,timeout:Q,children:h.jsx(le,{...ge,children:d})})})});function Yae(e){return on("MuiMenu",e)}Gt("MuiMenu",["root","paper","list"]);const Kae={vertical:"top",horizontal:"right"},Gae={vertical:"top",horizontal:"left"},Qae=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"],list:["list"]},Yae,t)},Xae=Ge(qae,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Zae=Ge(eL,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jae=Ge(Eae,{name:"MuiMenu",slot:"List"})({outline:0}),eie=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:d,open:f,PaperProps:c={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:v,...b}={},variant:x="selectedMenu",slots:w={},slotProps:S={},...T}=n,M=gs(),R={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:l,onEntering:v,PaperProps:c,transitionDuration:y,TransitionProps:b,variant:x},$=Qae(R),P=r&&!s&&f,N=C.useRef(null),V=(Q,te)=>{N.current&&N.current.adjustStyleForScrollbar(Q,{direction:M?"rtl":"ltr"}),v&&v(Q,te)},z=Q=>{Q.key==="Tab"&&(Q.preventDefault(),d&&d(Q,"tabKeyDown"))};let W=-1;C.Children.map(o,(Q,te)=>{C.isValidElement(Q)&&(Q.props.disabled||(x==="selectedMenu"&&Q.props.selected||W===-1)&&(W=te))});const H={slots:w,slotProps:{list:l,transition:b,paper:c,...S}},k=xr({elementType:w.root,externalSlotProps:S.root,ownerState:R,className:[$.root,a]}),[I,F]=ir("paper",{className:$.paper,elementType:Zae,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:R}),[_,j]=ir("list",{className:jt($.list,l.className),elementType:Jae,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:Q=>({...Q,onKeyDown:te=>{z(te),Q.onKeyDown?.(te)}}),ownerState:R}),X=typeof H.slotProps.transition=="function"?H.slotProps.transition(R):H.slotProps.transition;return h.jsx(Xae,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?Kae:Gae,slots:{root:w.root,paper:I,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:k,paper:F,backdrop:typeof S.backdrop=="function"?S.backdrop(R):S.backdrop,transition:{...X,onEntering:(...Q)=>{V(...Q),X?.onEntering?.(...Q)}}},open:f,ref:t,transitionDuration:y,ownerState:R,...T,classes:m,children:h.jsx(_,{actions:N,autoFocus:r&&(W===-1||s),autoFocusItem:P,variant:x,...j,children:o})})});function tie(e){return on("MuiNativeSelect",e)}const Rk=Gt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nie=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 tn(l,tie,t)},tL=Ge("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Rk.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}}}]})),rie=Ge(tL,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ia,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Rk.multiple}`]:t.multiple}]}})({}),nL=Ge("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Rk.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}}]})),oie=Ge(nL,{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]}})({}),aie=C.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard",...d}=e,f={...e,disabled:r,variant:l,error:o},c=nie(f);return h.jsxs(C.Fragment,{children:[h.jsx(rie,{ownerState:f,className:jt(c.select,n),disabled:r,ref:s||t,...d}),e.multiple?null:h.jsx(oie,{as:a,ownerState:f,className:c.icon})]})});function rL(e){return on("MuiSelect",e)}const Hh=Gt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var CP;const iie=Ge(tL,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Hh.select}`]:t.select},{[`&.${Hh.select}`]:t[n.variant]},{[`&.${Hh.error}`]:t.error},{[`&.${Hh.multiple}`]:t.multiple}]}})({[`&.${Hh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sie=Ge(nL,{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]}})({}),lie=Ge("input",{shouldForwardProp:e=>_N(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function cie(e){return e==null||typeof e=="string"&&!e.trim()}const uie=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 tn(l,rL,t)},die=C.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:d,defaultValue:f,disabled:c,displayEmpty:m,error:y=!1,IconComponent:v,inputRef:b,labelId:x,MenuProps:w={},multiple:S,name:T,onBlur:M,onChange:R,onClose:$,onFocus:P,onOpen:N,open:V,readOnly:z,renderValue:W,required:H,SelectDisplayProps:k={},tabIndex:I,type:F,value:_,variant:j="standard",...X}=e,[Q,te]=si({controlled:_,default:f,name:"Select"}),[Z,G]=si({controlled:V,default:d,name:"Select"}),ne=C.useRef(null),ce=C.useRef(null),[pe,oe]=C.useState(null),{current:ae}=C.useRef(V!=null),[le,ge]=C.useState(),ye=mr(t,b),we=C.useCallback(gt=>{ce.current=gt,gt&&oe(gt)},[]),Ce=pe?.parentNode;C.useImperativeHandle(ye,()=>({focus:()=>{ce.current.focus()},node:ne.current,value:Q}),[Q]),C.useEffect(()=>{d&&Z&&pe&&!ae&&(ge(a?null:Ce.clientWidth),ce.current.focus())},[pe,a]),C.useEffect(()=>{o&&ce.current.focus()},[o]),C.useEffect(()=>{if(!x)return;const gt=$o(ce.current).getElementById(x);if(gt){const ct=()=>{getSelection().isCollapsed&&ce.current.focus()};return gt.addEventListener("click",ct),()=>{gt.removeEventListener("click",ct)}}},[x]);const $e=(gt,ct)=>{gt?N&&N(ct):$&&$(ct),ae||(ge(a?null:Ce.clientWidth),G(gt))},de=gt=>{gt.button===0&&(gt.preventDefault(),ce.current.focus(),$e(!0,gt))},ke=gt=>{$e(!1,gt)},et=C.Children.toArray(s),ze=gt=>{const ct=et.find($t=>$t.props.value===gt.target.value);ct!==void 0&&(te(ct.props.value),R&&R(gt,ct))},Ae=gt=>ct=>{let $t;if(ct.currentTarget.hasAttribute("tabindex")){if(S){$t=Array.isArray(Q)?Q.slice():[];const Vt=Q.indexOf(gt.props.value);Vt===-1?$t.push(gt.props.value):$t.splice(Vt,1)}else $t=gt.props.value;if(gt.props.onClick&&gt.props.onClick(ct),Q!==$t&&(te($t),R)){const Vt=ct.nativeEvent||ct,un=new Vt.constructor(Vt.type,Vt);Object.defineProperty(un,"target",{writable:!0,value:{value:$t,name:T}}),R(un,gt)}S||$e(!1,ct)}},se=gt=>{z||[" ","ArrowUp","ArrowDown","Enter"].includes(gt.key)&&(gt.preventDefault(),$e(!0,gt))},bt=pe!==null&&Z,Fe=gt=>{!bt&&M&&(Object.defineProperty(gt,"target",{writable:!0,value:{value:Q,name:T}}),M(gt))};delete X["aria-invalid"];let it,pt;const Ft=[];let _t=!1;(rb({value:Q})||m)&&(W?it=W(Q):_t=!0);const at=et.map(gt=>{if(!C.isValidElement(gt))return null;let ct;if(S){if(!Array.isArray(Q))throw new Error(Il(2));ct=Q.some($t=>kP($t,gt.props.value)),ct&&_t&&Ft.push(gt.props.children)}else ct=kP(Q,gt.props.value),ct&&_t&&(pt=gt.props.children);return C.cloneElement(gt,{"aria-selected":ct?"true":"false",onClick:Ae(gt),onKeyUp:$t=>{$t.key===" "&&$t.preventDefault(),gt.props.onKeyUp&&gt.props.onKeyUp($t)},role:"option",selected:ct,value:void 0,"data-value":gt.props.value})});_t&&(S?Ft.length===0?it=null:it=Ft.reduce((gt,ct,$t)=>(gt.push(ct),$t<Ft.length-1&&gt.push(", "),gt),[]):it=pt);let Xe=le;!a&&ae&&pe&&(Xe=Ce.clientWidth);let rt;typeof I<"u"?rt=I:rt=c?null:0;const Ne=k.id||(T?`mui-component-select-${T}`:void 0),he={...e,variant:j,value:Q,open:bt,error:y},We=uie(he),Te={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(he):w.slotProps?.paper},kt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(he):w.slotProps?.list},Mt=ys();return h.jsxs(C.Fragment,{children:[h.jsx(iie,{as:"div",ref:we,tabIndex:rt,role:"combobox","aria-controls":bt?Mt: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":H?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:se,onMouseDown:c||z?null:de,onBlur:Fe,onFocus:P,...k,ownerState:he,className:jt(k.className,We.select,l),id:Ne,children:cie(it)?CP||(CP=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):it}),h.jsx(lie,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:T,ref:ne,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:c,className:We.nativeInput,autoFocus:o,required:H,...X,ownerState:he}),h.jsx(sie,{as:v,className:We.icon,ownerState:he}),h.jsx(eie,{id:`menu-${T||""}`,anchorEl:Ce,open:bt,onClose:ke,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:Mt,...kt},paper:{...Te,style:{minWidth:Xe,...Te!=null?Te.style:null}}},children:at})]})}),oL=cr(h.jsx("path",{d:"M7 10l5 5 5-5z"})),fie=e=>{const{classes:t}=e,n=tn({root:["root"]},rL,t);return{...t,...n}},$k={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ia(e)&&e!=="variant"},pie=Ge(Mk,$k)(""),hie=Ge(Ok,$k)(""),mie=Ge(Ek,$k)(""),aL=C.forwardRef(function(e,t){const n=Hn({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:d=!1,IconComponent:f=oL,id:c,input:m,inputProps:y,label:v,labelId:b,MenuProps:x,multiple:w=!1,native:S=!1,onClose:T,onOpen:M,open:R,renderValue:$,SelectDisplayProps:P,variant:N="outlined",...V}=n,z=S?aie:die,W=di(),H=md({props:n,muiFormControl:W,states:["variant","error"]}),k=H.variant||N,I={...n,variant:k,classes:a},F=fie(I),{root:_,...j}=F,X=m||{standard:h.jsx(pie,{ownerState:I}),outlined:h.jsx(hie,{label:v,ownerState:I}),filled:h.jsx(mie,{ownerState:I})}[k],Q=mr(t,gp(X));return h.jsx(C.Fragment,{children:C.cloneElement(X,{inputComponent:z,inputProps:{children:o,error:H.error,IconComponent:f,variant:k,type:void 0,multiple:w,...S?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:d,labelId:b,MenuProps:x,onClose:T,onOpen:M,open:R,renderValue:$,SelectDisplayProps:{id:c,...P}},...y,classes:y?na(j,y.classes):j,...m?m.props.inputProps:{}},...(w&&S||d)&&k==="outlined"?{notched:!0}:{},ref:Q,className:jt(X.props.className,s,F.root),...!m&&{variant:k},...V})})});aL.muiName="Select";function gie(e){return on("MuiTextField",e)}Gt("MuiTextField",["root"]);const yie={standard:Mk,filled:Ek,outlined:Ok},vie=e=>{const{classes:t}=e;return tn({root:["root"]},gie,t)},bie=Ge(GI,{name:"MuiTextField",slot:"Root"})({}),hr=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:d,disabled:f=!1,error:c=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:x,inputProps:w,InputProps:S,inputRef:T,label:M,maxRows:R,minRows:$,multiline:P=!1,name:N,onBlur:V,onChange:z,onFocus:W,placeholder:H,required:k=!1,rows:I,select:F=!1,SelectProps:_,slots:j={},slotProps:X={},type:Q,value:te,variant:Z="outlined",...G}=n,ne={...n,autoFocus:o,color:l,disabled:f,error:c,fullWidth:y,multiline:P,required:k,select:F,variant:Z},ce=vie(ne),pe=ys(b),oe=v&&pe?`${pe}-helper-text`:void 0,ae=M&&pe?`${pe}-label`:void 0,le=yie[Z],ge={slots:j,slotProps:{input:S,inputLabel:x,htmlInput:w,formHelperText:m,select:_,...X}},ye={},we=ge.slotProps.inputLabel;Z==="outlined"&&(we&&typeof we.shrink<"u"&&(ye.notched=we.shrink),ye.label=M),F&&((!_||!_.native)&&(ye.id=void 0),ye["aria-describedby"]=void 0);const[Ce,$e]=ir("root",{elementType:bie,shouldForwardComponentProp:!0,externalForwardedProps:{...ge,...G},ownerState:ne,className:jt(ce.root,s),ref:t,additionalProps:{disabled:f,error:c,fullWidth:y,required:k,color:l,variant:Z}}),[de,ke]=ir("input",{elementType:le,externalForwardedProps:ge,additionalProps:ye,ownerState:ne}),[et,ze]=ir("inputLabel",{elementType:KI,externalForwardedProps:ge,ownerState:ne}),[Ae,se]=ir("htmlInput",{elementType:"input",externalForwardedProps:ge,ownerState:ne}),[bt,Fe]=ir("formHelperText",{elementType:QI,externalForwardedProps:ge,ownerState:ne}),[it,pt]=ir("select",{elementType:aL,externalForwardedProps:ge,ownerState:ne}),Ft=h.jsx(de,{"aria-describedby":oe,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:y,multiline:P,name:N,rows:I,maxRows:R,minRows:$,type:Q,value:te,id:pe,inputRef:T,onBlur:V,onChange:z,onFocus:W,placeholder:H,inputProps:se,slots:{input:j.htmlInput?Ae:void 0},...ke});return h.jsxs(Ce,{...$e,children:[M!=null&&M!==""&&h.jsx(et,{htmlFor:pe,id:ae,...ze,children:M}),F?h.jsx(it,{"aria-describedby":oe,id:pe,labelId:ae,value:te,input:Ft,...pt,children:a}):Ft,v&&h.jsx(bt,{id:oe,...Fe,children:v})]})}),xie=({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},Sie=({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},wie=(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}},Cie=({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 d=fI(e,s),f=gI(e,d.contentType,d.type,s),c=n?f:d.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(d.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);v=d.maxLength,m&&(y=ck(hI(rd(y,o),v),o))}return De({},d,{format:s,maxLength:v,value:y,placeholder:wie(e,r,d,s),hasLeadingZerosInFormat:f,hasLeadingZerosInInput:c,startSeparator:l,endSeparator:"",modified:!1})},kie=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),d=/^([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=d.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(Cie(De({},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},Tie=({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}),TP=e=>{let t=xie(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Sie(De({},e,{expandedFormat:t})),r=kie(De({},e,{expandedFormat:t,escapedParts:n}));return Tie(De({},e,{sections:r}))},Mie=e=>{const t=Hr(),n=_l(),r=pd(),o=gs(),{valueManager:a,fieldValueManager:s,valueType:l,validator:d,internalProps:f,internalProps:{value:c,defaultValue:m,referenceDate:y,onChange:v,format:b,formatDensity:x="dense",selectedSections:w,onSelectedSectionsChange:S,shouldRespectLeadingZeros:T=!1,timezone:M,enableAccessibleFieldDOMStructure:R=!1}}=e,{timezone:$,value:P,handleValueChange:N}=wk({timezone:M,value:c,defaultValue:m,referenceDate:y,onChange:v,valueManager:a}),V=C.useMemo(()=>Eee(t),[t]),z=C.useMemo(()=>Aee(t,V,$),[t,V,$]),W=C.useCallback((oe,ae=null)=>s.getSectionsFromValue(t,oe,ae,le=>TP({utils:t,localeText:n,localizedDigits:V,format:b,date:le,formatDensity:x,shouldRespectLeadingZeros:T,enableAccessibleFieldDOMStructure:R,isRtl:o})),[s,b,n,V,o,T,t,x,R]),[H,k]=C.useState(()=>{const oe=W(P),ae={sections:oe,value:P,referenceValue:a.emptyValue,tempValueStrAndroid:null},le=Cee(oe),ge=a.getInitialReferenceValue({referenceDate:y,value:P,utils:t,props:f,granularity:le,timezone:$});return De({},ae,{referenceValue:ge})}),[I,F]=si({controlled:w,default:null,name:"useField",state:"selectedSections"}),_=oe=>{F(oe),S?.(oe)},j=C.useMemo(()=>pw(I,H.sections),[I,H.sections]),X=j==="all"?0:j,Q=({value:oe,referenceValue:ae,sections:le})=>{if(k(ye=>De({},ye,{sections:le,value:oe,referenceValue:ae,tempValueStrAndroid:null})),a.areValuesEqual(t,H.value,oe))return;const ge={validationError:d({adapter:r,value:oe,timezone:$,props:f})};N(oe,ge)},te=(oe,ae)=>{const le=[...H.sections];return le[oe]=De({},le[oe],{value:ae,modified:!0}),le},Z=()=>{Q({value:a.emptyValue,referenceValue:H.referenceValue,sections:W(a.emptyValue)})},G=()=>{if(X==null)return;const oe=H.sections[X],ae=s.getActiveDateManager(t,H,oe),le=ae.getSections(H.sections).filter(Ce=>Ce.value!=="").length===(oe.value===""?0:1),ge=te(X,""),ye=le?null:t.getInvalidDate(),we=ae.getNewValuesFromNewActiveDate(ye);Q(De({},we,{sections:ge}))},ne=oe=>{const ae=(ye,we)=>{const Ce=t.parse(ye,b);if(Ce==null||!t.isValid(Ce))return null;const $e=TP({utils:t,localeText:n,localizedDigits:V,format:b,date:Ce,formatDensity:x,shouldRespectLeadingZeros:T,enableAccessibleFieldDOMStructure:R,isRtl:o});return U$(t,Ce,$e,we,!1)},le=s.parseValueStr(oe,H.referenceValue,ae),ge=s.updateReferenceValue(t,le,H.referenceValue);Q({value:le,referenceValue:ge,sections:W(le,H.sections)})},ce=({activeSection:oe,newSectionValue:ae,shouldGoToNextSection:le})=>{le&&X<H.sections.length-1&&_(X+1);const ge=s.getActiveDateManager(t,H,oe),ye=te(X,ae),we=ge.getSections(ye),Ce=$ee(t,we,V);let $e,de;if(Ce!=null&&t.isValid(Ce)){const ke=U$(t,Ce,we,ge.referenceDate,!0);$e=ge.getNewValuesFromNewActiveDate(ke),de=!0}else $e=ge.getNewValuesFromNewActiveDate(Ce),de=(Ce!=null&&!t.isValid(Ce))!=(ge.date!=null&&!t.isValid(ge.date));return de?Q(De({},$e,{sections:ye})):k(ke=>De({},ke,$e,{sections:ye,tempValueStrAndroid:null}))},pe=oe=>k(ae=>De({},ae,{tempValueStrAndroid:oe}));return C.useEffect(()=>{const oe=W(H.value);k(ae=>De({},ae,{sections:oe}))},[b,t.locale,o]),C.useEffect(()=>{let oe;a.areValuesEqual(t,H.value,P)?oe=a.getTimezone(t,H.value)!==a.getTimezone(t,P):oe=!0,oe&&k(ae=>De({},ae,{value:P,referenceValue:s.updateReferenceValue(t,P,ae.referenceValue),sections:W(P)}))},[P]),{state:H,activeSectionIndex:X,parsedSelectedSections:j,setSelectedSections:_,clearValue:Z,clearActiveSection:G,updateSectionValue:ce,updateValueFromValueStr:ne,setTempAndroidValueStr:pe,getSectionsFromValue:W,sectionsValueBoundaries:z,localizedDigits:V,timezone:$}},Eie=5e3,Sf=e=>e.saveQuery!=null,Oie=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:a})=>{const s=Hr(),[l,d]=C.useState(null),f=It(()=>d(null));C.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&f()},[e,l,f]),C.useEffect(()=>{if(l!=null){const v=setTimeout(()=>f(),Eie);return()=>{clearTimeout(v)}}return()=>{}},[l,f]);const c=({keyPressed:v,sectionIndex:b},x,w)=>{const S=v.toLowerCase(),T=e[b];if(l!=null&&(!w||w(l.value))&&l.sectionIndex===b){const R=`${l.value}${S}`,$=x(R,T);if(!Sf($))return d({sectionIndex:b,value:R,sectionType:T.type}),$}const M=x(S,T);return Sf(M)&&!M.saveQuery?(f(),null):(d({sectionIndex:b,value:S,sectionType:T.type}),Sf(M)?null:M)},m=v=>{const b=(w,S,T)=>{const M=S.filter(R=>R.toLowerCase().startsWith(T));return M.length===0?{saveQuery:!1}:{sectionValue:M[0],shouldGoToNextSection:M.length===1}},x=(w,S,T,M)=>{const R=$=>pI(s,a,S.type,$);if(S.contentType==="letter")return b(S.format,R(S.format),w);if(T&&M!=null&&fI(s,T).contentType==="letter"){const $=R(T),P=b(T,$,w);return Sf(P)?{saveQuery:!1}:De({},P,{sectionValue:M(P.sectionValue,$)})}return{saveQuery:!1}};return c(v,(w,S)=>{switch(S.type){case"month":{const T=M=>F$(s,M,s.formats.month,S.format);return x(w,S,s.formats.month,T)}case"weekDay":{const T=(M,R)=>R.indexOf(M).toString();return x(w,S,s.formats.weekday,T)}case"meridiem":return x(w,S);default:return{saveQuery:!1}}})},y=v=>{const b=(x,w)=>{const S=rd(x,r),T=Number(S),M=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(T>M.maximum)return{saveQuery:!1};if(T<M.minimum)return{saveQuery:!0};const R=T*10>M.maximum||S.length===M.maximum.toString().length;return{sectionValue:mI(s,T,M,r,w),shouldGoToNextSection:R}};return c(v,(x,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return b(x,w);if(w.type==="month"){gI(s,"digit","month","MM");const S=b(x,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Sf(S))return S;const T=F$(s,S.sectionValue,"MM",w.format);return De({},S,{sectionValue:T})}if(w.type==="weekDay"){const S=b(x,w);if(Sf(S))return S;const T=f0(s,w.format)[Number(S.sectionValue)-1];return De({},S,{sectionValue:T})}return{saveQuery:!1}},x=>z$(x,r))};return{applyCharacterEditing:It(v=>{const b=e[v.sectionIndex],x=z$(v.keyPressed,r)?y(De({},v,{keyPressed:ck(v.keyPressed,r)})):m(v);if(x==null){o(null);return}t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:f}},Rie=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:a,onFocus:s,onInput:l,onPaste:d,focused:f,autoFocus:c=!1},fieldValueManager:m,applyCharacterEditing:y,resetCharacterQuery:v,setSelectedSections:b,parsedSelectedSections:x,state:w,clearActiveSection:S,clearValue:T,updateSectionValue:M,updateValueFromValueStr:R,sectionOrder:$,areAllSectionsEmpty:P,sectionsValueBoundaries:N}=e,V=C.useRef(null),z=mr(r,V),W=_l(),H=Hr(),k=ys(),[I,F]=C.useState(!1),_=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!V.current)return;const de=document.getSelection();if(!de)return;if(x==null){de.rangeCount>0&&V.current.getRoot().contains(de.getRangeAt(0).startContainer)&&de.removeAllRanges(),I&&V.current.getRoot().blur();return}if(!V.current.getRoot().contains(ka(document)))return;const ke=new window.Range;let et;x==="all"?et=V.current.getRoot():w.sections[x].type==="empty"?et=V.current.getSectionContainer(x):et=V.current.getSectionContent(x),ke.selectNodeContents(et),et.focus(),de.removeAllRanges(),de.addRange(ke)},getActiveSectionIndexFromDOM:()=>{const de=ka(document);return!de||!V.current||!V.current.getRoot().contains(de)?null:V.current.getSectionIndexFromDOMElement(de)},focusField:(de=0)=>{if(!V.current||_.getActiveSectionIndexFromDOM()!=null)return;const ke=pw(de,w.sections);F(!0),V.current.getSectionContent(ke).focus()},setSelectedSections:de=>{if(!V.current)return;const ke=pw(de,w.sections);F((ke==="all"?0:ke)!==null),b(de)},isFieldFocused:()=>{const de=ka(document);return!!V.current&&V.current.getRoot().contains(de)}}),[x,b,w.sections,I]),j=It(de=>{if(!V.current)return;const ke=w.sections[de];V.current.getSectionContent(de).innerHTML=ke.value||ke.placeholder,_.syncSelectionToDOM()}),X=It((de,...ke)=>{de.isDefaultPrevented()||!V.current||(F(!0),a?.(de,...ke),x==="all"?setTimeout(()=>{const et=document.getSelection().getRangeAt(0).startOffset;if(et===0){b($.startIndex);return}let ze=0,Ae=0;for(;Ae<et&&ze<w.sections.length;){const se=w.sections[ze];ze+=1,Ae+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}b(ze-1)}):I?V.current.getRoot().contains(de.target)||b($.startIndex):(F(!0),b($.startIndex)))}),Q=It(de=>{if(l?.(de),!V.current||x!=="all")return;const ke=de.target.textContent??"";V.current.getRoot().innerHTML=w.sections.map(et=>`${et.startSeparator}${et.value||et.placeholder}${et.endSeparator}`).join(""),_.syncSelectionToDOM(),ke.length===0||ke.charCodeAt(0)===10?(v(),T(),b("all")):ke.length>1?R(ke):(x==="all"&&b(0),y({keyPressed:ke,sectionIndex:0}))}),te=It(de=>{if(d?.(de),n||x!=="all"){de.preventDefault();return}const ke=de.clipboardData.getData("text");de.preventDefault(),v(),R(ke)}),Z=It((...de)=>{s?.(...de),!(I||!V.current)&&(F(!0),V.current.getSectionIndexFromDOMElement(ka(document))!=null||b($.startIndex))}),G=It((...de)=>{o?.(...de),setTimeout(()=>{if(!V.current)return;const ke=ka(document);!V.current.getRoot().contains(ke)&&(F(!1),b(null))})}),ne=It(de=>ke=>{ke.isDefaultPrevented()||b(de)}),ce=It(de=>{de.preventDefault()}),pe=It(de=>()=>{b(de)}),oe=It(de=>{if(de.preventDefault(),n||t||typeof x!="number")return;const ke=w.sections[x],et=de.clipboardData.getData("text"),ze=/^[a-zA-Z]+$/.test(et),Ae=/^[0-9]+$/.test(et),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(et);ke.contentType==="letter"&&ze||ke.contentType==="digit"&&Ae||ke.contentType==="digit-with-letter"&&se?(v(),M({activeSection:ke,newSectionValue:et,shouldGoToNextSection:!0})):!ze&&!Ae&&(v(),R(et))}),ae=It(de=>{de.preventDefault(),de.dataTransfer.dropEffect="none"}),le=It(de=>{if(!V.current)return;const ke=de.target,et=ke.textContent??"",ze=V.current.getSectionIndexFromDOMElement(ke),Ae=w.sections[ze];if(n||!V.current){j(ze);return}if(et.length===0){if(Ae.value===""){j(ze);return}const se=de.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){j(ze);return}v(),S();return}y({keyPressed:et,sectionIndex:ze}),j(ze)});Po(()=>{if(!(!I||!V.current)){if(x==="all")V.current.getRoot().focus();else if(typeof x=="number"){const de=V.current.getSectionContent(x);de&&de.focus()}}},[x,I]);const ge=C.useMemo(()=>w.sections.reduce((de,ke)=>(de[ke.type]=N[ke.type]({currentDate:null,contentType:ke.contentType,format:ke.format}),de),{}),[N,w.sections]),ye=x==="all",we=C.useMemo(()=>w.sections.map((de,ke)=>{const et=!ye&&!t&&!n;return{container:{"data-sectionindex":ke,onClick:ne(ke)},content:{tabIndex:ye||ke>0?-1:0,contentEditable:!ye&&!t&&!n,role:"spinbutton",id:`${k}-${de.type}`,"aria-labelledby":`${k}-${de.type}`,"aria-readonly":n,"aria-valuenow":zee(de,H),"aria-valuemin":ge[de.type].minimum,"aria-valuemax":ge[de.type].maximum,"aria-valuetext":de.value?Lee(de,H):W.empty,"aria-label":W[de.type],"aria-disabled":t,spellCheck:et?!1:void 0,autoCapitalize:et?"off":void 0,autoCorrect:et?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:et?"next":void 0,children:de.value||de.placeholder,onInput:le,onPaste:oe,onFocus:pe(ke),onDragOver:ae,onMouseUp:ce,inputMode:de.contentType==="letter"?"text":"numeric"},before:{children:de.startSeparator},after:{children:de.endSeparator}}}),[w.sections,pe,oe,ae,le,ne,ce,t,n,ye,W,H,ge,k]),Ce=It(de=>{R(de.target.value)}),$e=C.useMemo(()=>P?"":m.getV7HiddenInputValueFromSections(w.sections),[P,w.sections,m]);return C.useEffect(()=>{if(V.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&&V.current&&V.current.getSectionContent($.startIndex).focus()},[]),{interactions:_,returnedValue:{autoFocus:c,readOnly:n,focused:f??I,sectionListRef:z,onBlur:G,onClick:X,onFocus:Z,onInput:Q,onPaste:te,enableAccessibleFieldDOMStructure:!0,elements:we,tabIndex:x===0?-1:0,contentEditable:ye,value:$e,onChange:Ce,areAllSectionsEmpty:P}}},Pf=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),$ie=(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],d=uk(l,n?"input-rtl":"input-ltr",t),f=`${l.startSeparator}${d}${l.endSeparator}`,c=Pf(f).length,m=f.length,y=Pf(d),v=o+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=v+y.length;a.push(De({},l,{start:r,end:r+c,startInInput:v,endInInput:b})),r+=c,o+=m}return a},Pie=e=>{const t=gs(),n=C.useRef(void 0),r=C.useRef(void 0),{forwardedProps:{onFocus:o,onClick:a,onPaste:s,onBlur:l,inputRef:d,placeholder:f},internalProps:{readOnly:c=!1,disabled:m=!1},parsedSelectedSections:y,activeSectionIndex:v,state:b,fieldValueManager:x,valueManager:w,applyCharacterEditing:S,resetCharacterQuery:T,updateSectionValue:M,updateValueFromValueStr:R,clearActiveSection:$,clearValue:P,setTempAndroidValueStr:N,setSelectedSections:V,getSectionsFromValue:z,areAllSectionsEmpty:W,localizedDigits:H}=e,k=C.useRef(null),I=mr(d,k),F=C.useMemo(()=>$ie(b.sections,H,t),[b.sections,H,t]),_=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!k.current)return;if(y==null){k.current.scrollLeft&&(k.current.scrollLeft=0);return}if(k.current!==ka(document))return;const ae=k.current.scrollTop;if(y==="all")k.current.select();else{const le=F[y],ge=le.type==="empty"?le.startInInput-le.startSeparator.length:le.startInInput,ye=le.type==="empty"?le.endInInput+le.endSeparator.length:le.endInInput;(ge!==k.current.selectionStart||ye!==k.current.selectionEnd)&&k.current===ka(document)&&k.current.setSelectionRange(ge,ye),clearTimeout(r.current),r.current=setTimeout(()=>{k.current&&k.current===ka(document)&&k.current.selectionStart===k.current.selectionEnd&&(k.current.selectionStart!==ge||k.current.selectionEnd!==ye)&&_.syncSelectionToDOM()})}k.current.scrollTop=ae},getActiveSectionIndexFromDOM:()=>{const ae=k.current.selectionStart??0,le=k.current.selectionEnd??0;if(ae===0&&le===0)return null;const ge=ae<=F[0].startInInput?1:F.findIndex(ye=>ye.startInInput-ye.startSeparator.length>ae);return ge===-1?F.length-1:ge-1},focusField:(ae=0)=>{ka(document)!==k.current&&(k.current?.focus(),V(ae))},setSelectedSections:ae=>V(ae),isFieldFocused:()=>k.current===ka(document)}),[k,y,F,V]),j=()=>{const ae=k.current.selectionStart??0;let le;ae<=F[0].startInInput||ae>=F[F.length-1].endInInput?le=1:le=F.findIndex(ye=>ye.startInInput-ye.startSeparator.length>ae);const ge=le===-1?F.length-1:le-1;V(ge)},X=It((...ae)=>{o?.(...ae);const le=k.current;clearTimeout(n.current),n.current=setTimeout(()=>{!le||le!==k.current||v==null&&(le.value.length&&Number(le.selectionEnd)-Number(le.selectionStart)===le.value.length?V("all"):j())})}),Q=It((ae,...le)=>{ae.isDefaultPrevented()||(a?.(ae,...le),j())}),te=It(ae=>{if(s?.(ae),ae.preventDefault(),c||m)return;const le=ae.clipboardData.getData("text");if(typeof y=="number"){const ge=b.sections[y],ye=/^[a-zA-Z]+$/.test(le),we=/^[0-9]+$/.test(le),Ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(le);if(ge.contentType==="letter"&&ye||ge.contentType==="digit"&&we||ge.contentType==="digit-with-letter"&&Ce){T(),M({activeSection:ge,newSectionValue:le,shouldGoToNextSection:!0});return}if(ye||we)return}T(),R(le)}),Z=It((...ae)=>{l?.(...ae),V(null)}),G=It(ae=>{if(c)return;const le=ae.target.value;if(le===""){T(),P();return}const ge=ae.nativeEvent.data,ye=ge&&ge.length>1,we=ye?ge:le,Ce=Pf(we);if(y==="all"&&V(v),v==null||ye){R(ye?ge:Ce);return}let $e;if(y==="all"&&Ce.length===1)$e=Ce;else{const de=Pf(x.getV6InputValueFromSections(F,H,t));let ke=-1,et=-1;for(let se=0;se<de.length;se+=1)ke===-1&&de[se]!==Ce[se]&&(ke=se),et===-1&&de[de.length-se-1]!==Ce[Ce.length-se-1]&&(et=se);const ze=F[v];if(ke<ze.start||de.length-et-1>ze.end)return;const Ae=Ce.length-de.length+ze.end-Pf(ze.endSeparator||"").length;$e=Ce.slice(ze.start+Pf(ze.startSeparator||"").length,Ae)}if($e.length===0){Nee()&&N(we),T(),$();return}S({keyPressed:$e,sectionIndex:v})}),ne=C.useMemo(()=>f!==void 0?f:x.getV6InputValueFromSections(z(w.emptyValue),H,t),[f,x,z,w.emptyValue,H,t]),ce=C.useMemo(()=>b.tempValueStrAndroid??x.getV6InputValueFromSections(b.sections,H,t),[b.sections,x,b.tempValueStrAndroid,H,t]);C.useEffect(()=>(k.current&&k.current===ka(document)&&V("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const pe=C.useMemo(()=>v==null||b.sections[v].contentType==="letter"?"text":"numeric",[v,b.sections]),oe=!(k.current&&k.current===ka(document))&&W;return{interactions:_,returnedValue:{readOnly:c,onBlur:Z,onClick:Q,onFocus:X,onPaste:te,inputRef:I,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:pe,autoComplete:"off",value:oe?"":ce,onChange:G}}},Die=e=>{const t=Hr(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:s=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:f,clearable:c,onClear:m},fieldValueManager:y,valueManager:v,validator:b}=e,x=gs(),w=Mie(e),{state:S,activeSectionIndex:T,parsedSelectedSections:M,setSelectedSections:R,clearValue:$,clearActiveSection:P,updateSectionValue:N,setTempAndroidValueStr:V,sectionsValueBoundaries:z,localizedDigits:W,timezone:H}=w,k=Oie({sections:S.sections,updateSectionValue:N,sectionsValueBoundaries:z,localizedDigits:W,setTempAndroidValueStr:V,timezone:H}),{resetCharacterQuery:I}=k,F=v.areValuesEqual(t,S.value,v.emptyValue),_=a?Rie:Pie,j=C.useMemo(()=>Iee(S.sections,x&&!a),[S.sections,x,a]),{returnedValue:X,interactions:Q}=_(De({},e,w,k,{areAllSectionsEmpty:F,sectionOrder:j})),te=It(oe=>{if(d?.(oe),!s)switch(!0){case((oe.ctrlKey||oe.metaKey)&&String.fromCharCode(oe.keyCode)==="A"&&!oe.shiftKey&&!oe.altKey):{oe.preventDefault(),R("all");break}case oe.key==="ArrowRight":{if(oe.preventDefault(),M==null)R(j.startIndex);else if(M==="all")R(j.endIndex);else{const ae=j.neighbors[M].rightIndex;ae!==null&&R(ae)}break}case oe.key==="ArrowLeft":{if(oe.preventDefault(),M==null)R(j.endIndex);else if(M==="all")R(j.startIndex);else{const ae=j.neighbors[M].leftIndex;ae!==null&&R(ae)}break}case oe.key==="Delete":{if(oe.preventDefault(),l)break;M==null||M==="all"?$():P(),I();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(oe.key):{if(oe.preventDefault(),l||T==null)break;M==="all"&&R(T);const ae=S.sections[T],le=y.getActiveDateManager(t,S,ae),ge=Oee(t,H,ae,oe.key,z,W,le.date,{minutesStep:o});N({activeSection:ae,newSectionValue:ge,shouldGoToNextSection:!1});break}}});Po(()=>{Q.syncSelectionToDOM()});const{hasValidationError:Z}=wI({props:n,validator:b,timezone:H,value:S.value,onError:n.onError}),G=C.useMemo(()=>f!==void 0?f:Z,[Z,f]);C.useEffect(()=>{!G&&T==null&&I()},[S.referenceValue,T,G]),C.useEffect(()=>{S.tempValueStrAndroid!=null&&T!=null&&(I(),P())},[S.sections]),C.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:Q.getActiveSectionIndexFromDOM,setSelectedSections:Q.setSelectedSections,focusField:Q.focusField,isFieldFocused:Q.isFieldFocused}));const ne=It((oe,...ae)=>{oe.preventDefault(),m?.(oe,...ae),$(),Q.isFieldFocused()?R(j.startIndex):Q.focusField(0)}),ce={onKeyDown:te,onClear:ne,error:G,clearable:!!(c&&!F&&!l&&!s)},pe={disabled:s,readOnly:l};return De({},e.forwardedProps,ce,pe,X)},Aie=["clearable","onClear","InputProps","sx","slots","slotProps"],jie=["ownerState"],Nie=e=>{const t=_l(),{clearable:n,onClear:r,InputProps:o,sx:a,slots:s,slotProps:l}=e,d=Fn(e,Aie),f=s?.clearButton??Gc,c=xr({elementType:f,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),m=Fn(c,jie),y=s?.clearIcon??Hoe,v=xr({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return De({},d,{InputProps:De({},o,{endAdornment:h.jsxs(C.Fragment,{children:[n&&h.jsx(CI,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:h.jsx(f,De({},m,{onClick:r,children:h.jsx(y,De({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]]})},Iie=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Lie=(e,t)=>C.useMemo(()=>{const n=De({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return Iie.forEach(o),xI.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),zie=e=>{const t=Hr(),n=wg();return De({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:_i(t,e.minDate,n.minDate),maxDate:_i(t,e.maxDate,n.maxDate)})},Fie=e=>{const t=zie(e),{forwardedProps:n,internalProps:r}=Lie(t,"date");return Die({forwardedProps:n,internalProps:r,valueManager:Js,fieldValueManager:Bee,validator:Cg,valueType:"date"})};function Bie(e){return on("MuiPickersTextField",e)}Gt("MuiPickersTextField",["root","focused","disabled","error","required"]);function Uie(e){return on("MuiPickersInputBase",e)}const Ff=Gt("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function _ie(e){return on("MuiPickersSectionList",e)}const Wh=Gt("MuiPickersSectionList",["root","section","sectionContent"]),Vie=["slots","slotProps","elements","sectionListRef"],iL=Ge("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),sL=Ge("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),lL=Ge("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),cL=Ge("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Hie=e=>{const{classes:t}=e;return tn({root:["root"],section:["section"],sectionContent:["sectionContent"]},_ie,t)};function Wie(e){const{slots:t,slotProps:n,element:r,classes:o}=e,a=t?.section??sL,s=xr({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??cL,d=xr({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),f=t?.sectionSeparator??lL,c=xr({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),m=xr({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return h.jsxs(a,De({},s,{children:[h.jsx(f,De({},c)),h.jsx(l,De({},d)),h.jsx(f,De({},m))]}))}const qie=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:a,sectionListRef:s}=n,l=Fn(n,Vie),d=Hie(n),f=C.useRef(null),c=mr(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(`.${Wh.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return m("getSectionContent").querySelector(`.${Wh.section}[data-sectionindex="${b}"] .${Wh.sectionContent}`)},getSectionIndexFromDOMElement(b){const x=m("getSectionIndexFromDOMElement");if(b==null||!x.contains(b))return null;let w=null;return b.classList.contains(Wh.section)?w=b:b.classList.contains(Wh.sectionContent)&&(w=b.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const y=r?.root??iL,v=xr({elementType:y,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:c,suppressContentEditableWarning:!0},className:d.root,ownerState:{}});return h.jsx(y,De({},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(Wie,{slots:r,slotProps:o,element:b,classes:d},x))})}))}),Yie=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],Kie=e=>Math.round(e*1e5)/1e5,w0=Ge("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>De({},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:`${Kie(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Pk=Ge(iL,{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}}]})),Gie=Ge(sL,{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"})),Qie=Ge(cL,{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"})),Xie=Ge(lL,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Zie=Ge("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(De({},hee)),Jie=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:a,readOnly:s,color:l,size:d,endAdornment:f,startAdornment:c}=e,m={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",a&&"fullWidth",`color${Tt(l)}`,d==="small"&&"inputSizeSmall",!!c&&"adornedStart",!!f&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return tn(m,Uie,o)},Dk=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:d,startAdornment:f,renderSuffix:c,slots:m,slotProps:y,contentEditable:v,tabIndex:b,onInput:x,onPaste:w,onKeyDown:S,name:T,readOnly:M,inputProps:R,inputRef:$,sectionListRef:P}=n,N=Fn(n,Yie),V=C.useRef(null),z=mr(t,V),W=mr(R?.ref,$),H=gs(),k=di();if(!k)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const I=te=>{if(k.disabled){te.stopPropagation();return}k.onFocus?.(te)};C.useEffect(()=>{k&&k.setAdornedStart(!!f)},[k,f]),C.useEffect(()=>{k&&(o?k.onEmpty():k.onFilled())},[k,o]);const F=De({},n,k,{isRtl:H}),_=Jie(F),j=m?.root||w0,X=xr({elementType:j,externalSlotProps:y?.root,externalForwardedProps:N,additionalProps:{"aria-invalid":k.error,ref:z},className:_.root,ownerState:F}),Q=m?.input||Pk;return h.jsxs(j,De({},X,{children:[f,h.jsx(qie,{sectionListRef:P,elements:r,contentEditable:v,tabIndex:b,className:_.sectionsContainer,onFocus:I,onBlur:k.onBlur,onInput:x,onPaste:w,onKeyDown:S,slots:{root:Q,section:Gie,sectionContent:Qie,sectionSeparator:Xie},slotProps:{root:{ownerState:F},sectionContent:{className:Ff.sectionContent},sectionSeparator:({position:te})=>({className:te==="before"?Ff.sectionBefore:Ff.sectionAfter})}}),d,c?c(De({},k)):null,h.jsx(Zie,De({name:T,className:_.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:M,required:k.required,disabled:k.disabled},R,{ref:W}))]}))});function ese(e){return on("MuiPickersOutlinedInput",e)}const ls=De({},Ff,Gt("MuiPickersOutlinedInput",["root","notchedOutline","input"])),tse=["children","className","label","notched","shrink"],nse=Ge("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}}),MP=Ge("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),rse=Ge("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 ose(e){const{className:t,label:n}=e,r=Fn(e,tse),o=n!=null&&n!=="",a=De({},e,{withLabel:o});return h.jsx(nse,De({"aria-hidden":!0,className:t},r,{ownerState:a,children:h.jsx(rse,{ownerState:a,children:o?h.jsx(MP,{children:n}):h.jsx(MP,{className:"notranslate",children:"​"})})}))}const ase=["label","autoFocus","ownerState","notched"],ise=Ge(w0,{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 .${ls.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ls.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ls.focused} .${ls.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ls.disabled}`]:{[`& .${ls.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${ls.error} .${ls.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:{[`&.${ls.focused}:not(.${ls.error}) .${ls.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),sse=Ge(Pk,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),lse=e=>{const{classes:t}=e,n=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ese,t);return De({},t,n)},uL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:a}=n,s=Fn(n,ase),l=di(),d=De({},n,o,l,{color:l?.color||"primary"}),f=lse(d);return h.jsx(Dk,De({slots:{root:ise,input:sse},renderSuffix:c=>h.jsx(ose,{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:d})},s,{label:r,classes:f,ref:t}))});uL.muiName="Input";function cse(e){return on("MuiPickersFilledInput",e)}const Ru=De({},Ff,Gt("MuiPickersFilledInput",["root","underline","input"])),use=["label","autoFocus","disableUnderline","ownerState"],dse=Ge(w0,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>fv(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}},[`&.${Ru.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ru.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"},[`&.${Ru.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ru.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(.${Ru.disabled}, .${Ru.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ru.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),fse=Ge(Pk,{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}}]}),pse=e=>{const{classes:t,disableUnderline:n}=e,r=tn({root:["root",!n&&"underline"],input:["input"]},cse,t);return De({},t,r)},dL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Fn(n,use),l=di(),d=De({},n,a,l,{color:l?.color||"primary"}),f=pse(d);return h.jsx(Dk,De({slots:{root:dse,input:fse},slotProps:{root:{disableUnderline:o}}},s,{label:r,classes:f,ref:t}))});dL.muiName="Input";function hse(e){return on("MuiPickersFilledInput",e)}const qh=De({},Ff,Gt("MuiPickersInput",["root","input"])),mse=["label","autoFocus","disableUnderline","ownerState"],gse=Ge(w0,{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"},[`&.${qh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qh.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(.${qh.disabled}, .${qh.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${qh.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),yse=e=>{const{classes:t,disableUnderline:n}=e,r=tn({root:["root",!n&&"underline"],input:["input"]},hse,t);return De({},t,r)},fL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Fn(n,mse),l=di(),d=De({},n,a,l,{disableUnderline:o,color:l?.color||"primary"}),f=yse(d);return h.jsx(Dk,De({slots:{root:gse}},s,{label:r,classes:f,ref:t}))});fL.muiName="Input";const vse=["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"],bse={standard:fL,filled:dL,outlined:uL},xse=Ge(GI,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Sse=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return tn({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Bie,r)},wse=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:a,color:s="primary",disabled:l=!1,error:d=!1,variant:f="outlined",required:c=!1,InputProps:m,inputProps:y,inputRef:v,sectionListRef:b,elements:x,areAllSectionsEmpty:w,onClick:S,onKeyDown:T,onKeyUp:M,onPaste:R,onInput:$,endAdornment:P,startAdornment:N,tabIndex:V,contentEditable:z,focused:W,value:H,onChange:k,fullWidth:I,id:F,name:_,helperText:j,FormHelperTextProps:X,label:Q,InputLabelProps:te}=n,Z=Fn(n,vse),G=C.useRef(null),ne=mr(t,G),ce=ys(F),pe=j&&ce?`${ce}-helper-text`:void 0,oe=Q&&ce?`${ce}-label`:void 0,ae=De({},n,{color:s,disabled:l,error:d,focused:W,required:c,variant:f}),le=Sse(ae),ge=bse[f];return h.jsxs(xse,De({className:jt(le.root,a),ref:ne,focused:W,onFocus:r,onBlur:o,disabled:l,variant:f,error:d,color:s,fullWidth:I,required:c,ownerState:ae},Z,{children:[h.jsx(KI,De({htmlFor:ce,id:oe},te,{children:Q})),h.jsx(ge,De({elements:x,areAllSectionsEmpty:w,onClick:S,onKeyDown:T,onKeyUp:M,onInput:$,onPaste:R,endAdornment:P,startAdornment:N,tabIndex:V,contentEditable:z,value:H,onChange:k,id:ce,fullWidth:I,inputProps:y,inputRef:v,sectionListRef:b,label:Q,name:_,role:"group","aria-labelledby":oe,"aria-describedby":pe,"aria-live":pe?"polite":void 0},m)),j&&h.jsx(QI,De({id:pe},X,{children:j}))]}))}),Cse=["enableAccessibleFieldDOMStructure"],kse=["InputProps","readOnly"],Tse=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Mse=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Fn(e,Cse);if(t){const{InputProps:m,readOnly:y}=n,v=Fn(n,kse);return De({},v,{InputProps:De({},m??{},{readOnly:y})})}const{onPaste:r,onKeyDown:o,inputMode:a,readOnly:s,InputProps:l,inputProps:d,inputRef:f}=n,c=Fn(n,Tse);return De({},c,{InputProps:De({},l??{},{readOnly:s}),inputProps:De({},d??{},{inputMode:a,onPaste:r,onKeyDown:o,ref:f})})},Ese=["slots","slotProps","InputProps","inputProps"],pL=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:a,inputProps:s}=n,l=Fn(n,Ese),d=n,f=r?.textField??(e.enableAccessibleFieldDOMStructure?wse:hr),c=xr({elementType:f,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:t},ownerState:d});c.inputProps=De({},s,c.inputProps),c.InputProps=De({},a,c.InputProps);const m=Fie(c),y=Mse(m),v=Nie(De({},y,{slots:r,slotProps:o}));return h.jsx(f,De({},v))}),hL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s,timezone:l})=>{const d=pd();return C.useCallback(f=>Cg({adapter:d,value:f,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s}})!==null,[d,e,t,n,r,o,a,s,l])},Ose=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return De({},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))),De({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return De({},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 De({},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")}},Rse=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:d,reduceAnimations:f,shouldDisableDate:c,timezone:m}=e,y=Hr(),v=C.useRef(Ose(!!f,a,y)).current,b=C.useMemo(()=>Js.getInitialReferenceValue({value:t,utils:y,timezone:m,props:e,referenceDate:n,granularity:_s.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(P=>{w(De({type:"changeMonth"},P)),d&&d(P.newMonth)},[d]),T=C.useCallback(P=>{const N=P;y.isSameMonth(N,x.currentMonth)||S({newMonth:y.startOfMonth(N),direction:y.isAfterDay(N,x.currentMonth)?"left":"right"})},[x.currentMonth,S,y]),M=hL({shouldDisableDate:c,minDate:l,maxDate:s,disableFuture:r,disablePast:o,timezone:m}),R=C.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),$=It((P,N)=>{M(P)||w({type:"changeFocusedDay",focusedDay:P,withoutMonthSwitchingAnimation:N})});return{referenceDate:b,calendarState:x,changeMonth:T,changeFocusedDay:$,isDateDisabled:M,onMonthSwitchingAnimationEnd:R,handleChangeMonth:S}},$se=e=>on("MuiPickersFadeTransitionGroup",e);Gt("MuiPickersFadeTransitionGroup",["root"]);const Pse=e=>{const{classes:t}=e;return tn({root:["root"]},$se,t)},Dse=Ge(kg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function mL(e){const t=Vr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Pse(t),l=fd();return o?n:h.jsx(Dse,{className:jt(s.root,r),children:h.jsx(ad,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Ase(e){return on("MuiPickersDay",e)}const $u=Gt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),jse=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Nse=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:l,classes:d}=e,f=s&&!l;return tn({root:["root",t&&!f&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&l&&"dayOutsideMonth",f&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Ase,d)},gL=({theme:e})=>De({},e.typography.caption,{width:Qm,height:Qm,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})`:fs(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:fs(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${$u.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${$u.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}},[`&.${$u.disabled}:not(.${$u.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${$u.disabled}&.${$u.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${g0}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${$u.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),yL=(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]},Ise=Ge(od,{name:"MuiPickersDay",slot:"Root",overridesResolver:yL})(gL),Lse=Ge("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:yL})(({theme:e})=>De({},gL({theme:e}),{opacity:0,pointerEvents:"none"})),Yh=()=>{},zse=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:d=!1,isAnimating:f,onClick:c,onDaySelect:m,onFocus:y=Yh,onBlur:v=Yh,onKeyDown:b=Yh,onMouseDown:x=Yh,onMouseEnter:w=Yh,outsideCurrentMonth:S,selected:T=!1,showDaysOutsideCurrentMonth:M=!1,children:R,today:$=!1}=n,P=Fn(n,jse),N=De({},n,{autoFocus:r,disabled:s,disableHighlightToday:l,disableMargin:d,selected:T,showDaysOutsideCurrentMonth:M,today:$}),V=Nse(N),z=Hr(),W=C.useRef(null),H=mr(W,t);Po(()=>{r&&!s&&!f&&!S&&W.current.focus()},[r,s,f,S]);const k=F=>{x(F),S&&F.preventDefault()},I=F=>{s||m(a),S&&F.currentTarget.focus(),c&&c(F)};return S&&!M?h.jsx(Lse,{className:jt(V.root,V.hiddenDaySpacingFiller,o),ownerState:N,role:P.role}):h.jsx(Ise,De({className:jt(V.root,o),ref:H,centerRipple:!0,disabled:s,tabIndex:T?0:-1,onKeyDown:F=>b(F,a),onFocus:F=>y(F,a),onBlur:F=>v(F,a),onMouseEnter:F=>w(F,a),onClick:I,onMouseDown:k},P,{ownerState:N,children:R||z.format(a,"dayOfMonth")}))}),Fse=C.memo(zse),Bse=e=>on("MuiPickersSlideTransition",e),Ci=Gt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Use=["children","className","reduceAnimations","slideDirection","transKey","classes"],_se=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return tn(r,Bse,t)},Vse=Ge(kg,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ci["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ci["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ci.slideEnterActive}`]:t.slideEnterActive},{[`.${Ci.slideExit}`]:t.slideExit},{[`.${Ci["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ci["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},[`& .${Ci["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ci["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ci.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ci.slideExit}`]:{transform:"translate(0%)"},[`& .${Ci["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ci["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Hse(e){const t=Vr({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Fn(t,Use),l=_se(t),d=fd();if(o)return h.jsx("div",{className:jt(l.root,r),children:n});const f={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return h.jsx(Vse,{className:jt(l.root,r),childFactory:c=>C.cloneElement(c,{classNames:f}),role:"presentation",children:h.jsx(fk,De({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:f},s,{children:n}),a)})}const Wse=e=>on("MuiDayCalendar",e);Gt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const qse=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Yse=["ownerState"],Kse=e=>{const{classes:t}=e;return tn({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Wse,t)},vL=(Qm+g0*2)*6,Gse=Ge("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qse=Ge("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Xse=Ge(br,{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})),Zse=Ge(br,{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})),Jse=Ge(br,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>De({},e.typography.caption,{width:Qm,height:Qm,padding:0,margin:`0 ${g0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ele=Ge("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:vL}),tle=Ge(Hse,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:vL}),nle=Ge("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),rle=Ge("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${g0}px 0`,display:"flex",justifyContent:"center"});function ole(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,d=Fn(e,qse);const{disabled:f,disableHighlightToday:c,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:y,slots:v,slotProps:b,timezone:x}=t,w=Hr(),S=p0(x),T=r!==null&&w.isSameDay(n,r),M=o.some(k=>w.isSameDay(k,n)),R=w.isSameDay(n,S),$=v?.day??Fse,P=xr({elementType:$,externalSlotProps:b?.day,additionalProps:De({disableHighlightToday:c,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:m,"data-timestamp":w.toJsDate(n).valueOf()},d),ownerState:De({},t,{day:n,selected:M})}),N=Fn(P,Yse),V=C.useMemo(()=>f||a(n),[f,a,n]),z=C.useMemo(()=>w.getMonth(n)!==s,[w,n,s]),W=C.useMemo(()=>{const k=w.startOfMonth(w.setMonth(n,s));return y?w.isSameDay(n,w.startOfWeek(k)):w.isSameDay(n,k)},[s,n,y,w]),H=C.useMemo(()=>{const k=w.endOfMonth(w.setMonth(n,s));return y?w.isSameDay(n,w.endOfWeek(k)):w.isSameDay(n,k)},[s,n,y,w]);return h.jsx($,De({},N,{day:n,disabled:V,autoFocus:l&&T,today:R,outsideCurrentMonth:z,isFirstVisibleCell:W,isLastVisibleCell:H,selected:M,tabIndex:T?0:-1,"aria-selected":M,"aria-current":R?"date":void 0}))}function ale(e){const t=Vr({props:e,name:"MuiDayCalendar"}),n=Hr(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:s,focusedDay:l,loading:d,onSelectedDaysChange:f,onMonthSwitchingAnimationEnd:c,readOnly:m,reduceAnimations:y,renderLoading:v=()=>h.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:x,disablePast:w,disableFuture:S,minDate:T,maxDate:M,shouldDisableDate:R,shouldDisableMonth:$,shouldDisableYear:P,dayOfWeekFormatter:N=ze=>n.format(ze,"weekdayShort").charAt(0).toUpperCase(),hasFocus:V,onFocusedViewChange:z,gridLabelId:W,displayWeekNumber:H,fixedWeekNumber:k,autoFocus:I,timezone:F}=t,_=p0(F),j=Kse(t),X=gs(),Q=hL({shouldDisableDate:R,shouldDisableMonth:$,shouldDisableYear:P,minDate:T,maxDate:M,disablePast:w,disableFuture:S,timezone:F}),te=_l(),[Z,G]=si({name:"DayCalendar",state:"hasFocus",controlled:V,default:I??!1}),[ne,ce]=C.useState(()=>l||_),pe=It(ze=>{m||f(ze)}),oe=ze=>{Q(ze)||(r(ze),ce(ze),z?.(!0),G(!0))},ae=It((ze,Ae)=>{switch(ze.key){case"ArrowUp":oe(n.addDays(Ae,-7)),ze.preventDefault();break;case"ArrowDown":oe(n.addDays(Ae,7)),ze.preventDefault();break;case"ArrowLeft":{const se=n.addDays(Ae,X?1:-1),bt=n.addMonths(Ae,X?1:-1),Fe=Tm({utils:n,date:se,minDate:X?se:n.startOfMonth(bt),maxDate:X?n.endOfMonth(bt):se,isDateDisabled:Q,timezone:F});oe(Fe||se),ze.preventDefault();break}case"ArrowRight":{const se=n.addDays(Ae,X?-1:1),bt=n.addMonths(Ae,X?-1:1),Fe=Tm({utils:n,date:se,minDate:X?n.startOfMonth(bt):se,maxDate:X?se:n.endOfMonth(bt),isDateDisabled:Q,timezone:F});oe(Fe||se),ze.preventDefault();break}case"Home":oe(n.startOfWeek(Ae)),ze.preventDefault();break;case"End":oe(n.endOfWeek(Ae)),ze.preventDefault();break;case"PageUp":oe(n.addMonths(Ae,1)),ze.preventDefault();break;case"PageDown":oe(n.addMonths(Ae,-1)),ze.preventDefault();break}}),le=It((ze,Ae)=>oe(Ae)),ge=It((ze,Ae)=>{Z&&n.isSameDay(ne,Ae)&&z?.(!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}`,de=C.useMemo(()=>C.createRef(),[$e]),ke=C.useMemo(()=>{const ze=n.startOfMonth(a),Ae=n.endOfMonth(a);return Q(ne)||n.isAfterDay(ne,Ae)||n.isBeforeDay(ne,ze)?Tm({utils:n,date:ne,minDate:ze,maxDate:Ae,disablePast:w,disableFuture:S,isDateDisabled:Q,timezone:F}):ne},[a,S,w,ne,Q,n,F]),et=C.useMemo(()=>{const ze=n.getWeekArray(a);let Ae=n.addMonths(a,1);for(;k&&ze.length<k;){const se=n.getWeekArray(Ae),bt=n.isSameDay(ze[ze.length-1][0],se[0][0]);se.slice(bt?1:0).forEach(Fe=>{ze.length<k&&ze.push(Fe)}),Ae=n.addMonths(Ae,1)}return ze},[a,k,n]);return h.jsxs(Gse,{role:"grid","aria-labelledby":W,className:j.root,children:[h.jsxs(Qse,{role:"row",className:j.header,children:[H&&h.jsx(Zse,{variant:"caption",role:"columnheader","aria-label":te.calendarWeekNumberHeaderLabel,className:j.weekNumberLabel,children:te.calendarWeekNumberHeaderText}),bee(n,_).map((ze,Ae)=>h.jsx(Xse,{variant:"caption",role:"columnheader","aria-label":n.format(ze,"weekday"),className:j.weekDayLabel,children:N(ze)},Ae.toString()))]}),d?h.jsx(ele,{className:j.loadingContainer,children:v()}):h.jsx(tle,De({transKey:$e,onExited:c,reduceAnimations:y,slideDirection:b,className:jt(o,j.slideTransition)},x,{nodeRef:de,children:h.jsx(nle,{ref:de,role:"rowgroup",className:j.monthContainer,children:et.map((ze,Ae)=>h.jsxs(rle,{role:"row",className:j.weekContainer,"aria-rowindex":Ae+1,children:[H&&h.jsx(Jse,{className:j.weekNumber,role:"rowheader","aria-label":te.calendarWeekNumberAriaLabelText(n.getWeekNumber(ze[0])),children:te.calendarWeekNumberText(n.getWeekNumber(ze[0]))}),ze.map((se,bt)=>h.jsx(ole,{parentProps:t,day:se,selectedDays:Ce,focusableDay:ke,onKeyDown:ae,onFocus:le,onBlur:ge,onDaySelect:pe,isDateDisabled:Q,currentMonthNumber:ye,isViewFocused:Z,"aria-colindex":bt+1},se.toString()))]},`week-${ze[0]}`))})}))]})}function ile(e){return on("MuiPickersMonth",e)}const Jy=Gt("MuiPickersMonth",["root","monthButton","disabled","selected"]),sle=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],lle=e=>{const{disabled:t,selected:n,classes:r}=e;return tn({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ile,r)},cle=Ge("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%"}}]}),ule=Ge("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Jy.disabled}`]:t.disabled},{[`&.${Jy.selected}`]:t.selected}]})(({theme:e})=>De({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})`:fs(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:fs(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Jy.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Jy.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),dle=C.memo(function(e){const t=Vr({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:d,onClick:f,onKeyDown:c,onFocus:m,onBlur:y,"aria-current":v,"aria-label":b,slots:x,slotProps:w}=t,S=Fn(t,sle),T=C.useRef(null),M=lle(t);Po(()=>{n&&T.current?.focus()},[n]);const R=x?.monthButton??ule,$=xr({elementType:R,externalSlotProps:w?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:d,ref:T,type:"button",role:"radio","aria-current":v,"aria-checked":s,"aria-label":b,onClick:P=>f(P,l),onKeyDown:P=>c(P,l),onFocus:P=>m(P,l),onBlur:P=>y(P,l)},ownerState:t,className:M.monthButton});return h.jsx(cle,De({className:jt(M.root,r),ownerState:t},S,{children:h.jsx(R,De({},$))}))});function fle(e){return on("MuiMonthCalendar",e)}Gt("MuiMonthCalendar",["root"]);const ple=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],hle=e=>{const{classes:t}=e;return tn({root:["root"]},fle,t)};function mle(e,t){const n=Hr(),r=wg(),o=Vr({props:e,name:t});return De({disableFuture:!1,disablePast:!1},o,{minDate:_i(n,o.minDate,r.minDate),maxDate:_i(n,o.maxDate,r.maxDate)})}const gle=Ge("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:y0,boxSizing:"border-box"}),yle=C.forwardRef(function(e,t){const n=mle(e,"MuiMonthCalendar"),{className:r,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:d,disablePast:f,maxDate:c,minDate:m,onChange:y,shouldDisableMonth:v,readOnly:b,autoFocus:x=!1,onMonthFocus:w,hasFocus:S,onFocusedViewChange:T,monthsPerRow:M=3,timezone:R,gridLabelId:$,slots:P,slotProps:N}=n,V=Fn(n,ple),{value:z,handleValueChange:W,timezone:H}=Ck({name:"MonthCalendar",timezone:R,value:o,defaultValue:a,referenceDate:s,onChange:y,valueManager:Js}),k=p0(H),I=gs(),F=Hr(),_=C.useMemo(()=>Js.getInitialReferenceValue({value:z,utils:F,props:n,timezone:H,referenceDate:s,granularity:_s.month}),[]),j=n,X=hle(j),Q=C.useMemo(()=>F.getMonth(k),[F,k]),te=C.useMemo(()=>z!=null?F.getMonth(z):null,[z,F]),[Z,G]=C.useState(()=>te||F.getMonth(_)),[ne,ce]=si({name:"MonthCalendar",state:"hasFocus",controlled:S,default:x??!1}),pe=It(Ce=>{ce(Ce),T&&T(Ce)}),oe=C.useCallback(Ce=>{const $e=F.startOfMonth(f&&F.isAfter(k,m)?k:m),de=F.startOfMonth(d&&F.isBefore(k,c)?k:c),ke=F.startOfMonth(Ce);return F.isBefore(ke,$e)||F.isAfter(ke,de)?!0:v?v(ke):!1},[d,f,c,m,k,v,F]),ae=It((Ce,$e)=>{if(b)return;const de=F.setMonth(z??_,$e);W(de)}),le=It(Ce=>{oe(F.setMonth(z??_,Ce))||(G(Ce),pe(!0),w&&w(Ce))});C.useEffect(()=>{G(Ce=>te!==null&&Ce!==te?te:Ce)},[te]);const ge=It((Ce,$e)=>{switch(Ce.key){case"ArrowUp":le((12+$e-3)%12),Ce.preventDefault();break;case"ArrowDown":le((12+$e+3)%12),Ce.preventDefault();break;case"ArrowLeft":le((12+$e+(I?1:-1))%12),Ce.preventDefault();break;case"ArrowRight":le((12+$e+(I?-1:1))%12),Ce.preventDefault();break}}),ye=It((Ce,$e)=>{le($e)}),we=It((Ce,$e)=>{Z===$e&&pe(!1)});return h.jsx(gle,De({ref:t,className:jt(X.root,r),ownerState:j,role:"radiogroup","aria-labelledby":$},V,{children:sk(F,z??_).map(Ce=>{const $e=F.getMonth(Ce),de=F.format(Ce,"monthShort"),ke=F.format(Ce,"month"),et=$e===te,ze=l||oe(Ce);return h.jsx(dle,{selected:et,value:$e,onClick:ae,onKeyDown:ge,autoFocus:ne&&$e===Z,disabled:ze,tabIndex:$e===Z&&!ze?0:-1,onFocus:ye,onBlur:we,"aria-current":Q===$e?"date":void 0,"aria-label":ke,monthsPerRow:M,slots:P,slotProps:N,children:de},de)})}))});function vle(e){return on("MuiPickersYear",e)}const ev=Gt("MuiPickersYear",["root","yearButton","selected","disabled"]),ble=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],xle=e=>{const{disabled:t,selected:n,classes:r}=e;return tn({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},vle,r)},Sle=Ge("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%"}}]}),wle=Ge("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ev.disabled}`]:t.disabled},{[`&.${ev.selected}`]:t.selected}]})(({theme:e})=>De({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})`:fs(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:fs(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Cle=C.memo(function(e){const t=Vr({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:d,onClick:f,onKeyDown:c,onFocus:m,onBlur:y,"aria-current":v,slots:b,slotProps:x}=t,w=Fn(t,ble),S=C.useRef(null),T=xle(t);Po(()=>{n&&S.current?.focus()},[n]);const M=b?.yearButton??wle,R=xr({elementType:M,externalSlotProps:x?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:d,ref:S,type:"button",role:"radio","aria-current":v,"aria-checked":s,onClick:$=>f($,l),onKeyDown:$=>c($,l),onFocus:$=>m($,l),onBlur:$=>y($,l)},ownerState:t,className:T.yearButton});return h.jsx(Sle,De({className:jt(T.root,r),ownerState:t},w,{children:h.jsx(M,De({},R))}))});function kle(e){return on("MuiYearCalendar",e)}Gt("MuiYearCalendar",["root"]);const Tle=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Mle=e=>{const{classes:t}=e;return tn({root:["root"]},kle,t)};function Ele(e,t){const n=Hr(),r=wg(),o=Vr({props:e,name:t});return De({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:_i(n,o.minDate,r.minDate),maxDate:_i(n,o.maxDate,r.maxDate)})}const Ole=Ge("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:y0,maxHeight:Toe,boxSizing:"border-box",position:"relative"}),Rle=C.forwardRef(function(e,t){const n=Ele(e,"MuiYearCalendar"),{autoFocus:r,className:o,value:a,defaultValue:s,referenceDate:l,disabled:d,disableFuture:f,disablePast:c,maxDate:m,minDate:y,onChange:v,readOnly:b,shouldDisableYear:x,onYearFocus:w,hasFocus:S,onFocusedViewChange:T,yearsOrder:M="asc",yearsPerRow:R,timezone:$,gridLabelId:P,slots:N,slotProps:V}=n,z=Fn(n,Tle),{value:W,handleValueChange:H,timezone:k}=Ck({name:"YearCalendar",timezone:$,value:a,defaultValue:s,referenceDate:l,onChange:v,valueManager:Js}),I=p0(k),F=gs(),_=Hr(),j=C.useMemo(()=>Js.getInitialReferenceValue({value:W,utils:_,props:n,timezone:k,referenceDate:l,granularity:_s.year}),[]),X=n,Q=Mle(X),te=C.useMemo(()=>_.getYear(I),[_,I]),Z=C.useMemo(()=>W!=null?_.getYear(W):null,[W,_]),[G,ne]=C.useState(()=>Z||_.getYear(j)),[ce,pe]=si({name:"YearCalendar",state:"hasFocus",controlled:S,default:r??!1}),oe=It(Ae=>{pe(Ae),T&&T(Ae)}),ae=C.useCallback(Ae=>{if(c&&_.isBeforeYear(Ae,I)||f&&_.isAfterYear(Ae,I)||y&&_.isBeforeYear(Ae,y)||m&&_.isAfterYear(Ae,m))return!0;if(!x)return!1;const se=_.startOfYear(Ae);return x(se)},[f,c,m,y,I,x,_]),le=It((Ae,se)=>{if(b)return;const bt=_.setYear(W??j,se);H(bt)}),ge=It(Ae=>{ae(_.setYear(W??j,Ae))||(ne(Ae),oe(!0),w?.(Ae))});C.useEffect(()=>{ne(Ae=>Z!==null&&Ae!==Z?Z:Ae)},[Z]);const ye=M!=="desc"?R*1:R*-1,we=F&&M==="asc"||!F&&M==="desc"?-1:1,Ce=It((Ae,se)=>{switch(Ae.key){case"ArrowUp":ge(se-ye),Ae.preventDefault();break;case"ArrowDown":ge(se+ye),Ae.preventDefault();break;case"ArrowLeft":ge(se-we),Ae.preventDefault();break;case"ArrowRight":ge(se+we),Ae.preventDefault();break}}),$e=It((Ae,se)=>{ge(se)}),de=It((Ae,se)=>{G===se&&oe(!1)}),ke=C.useRef(null),et=mr(t,ke);C.useEffect(()=>{if(r||ke.current===null)return;const Ae=ke.current.querySelector('[tabindex="0"]');if(!Ae)return;const se=Ae.offsetHeight,bt=Ae.offsetTop,Fe=ke.current.clientHeight,it=ke.current.scrollTop,pt=bt+se;se>Fe||bt<it||(ke.current.scrollTop=pt-Fe/2-se/2)},[r]);const ze=_.getYearRange([y,m]);return M==="desc"&&ze.reverse(),h.jsx(Ole,De({ref:et,className:jt(Q.root,o),ownerState:X,role:"radiogroup","aria-labelledby":P},z,{children:ze.map(Ae=>{const se=_.getYear(Ae),bt=se===Z,Fe=d||ae(Ae);return h.jsx(Cle,{selected:bt,value:se,onClick:le,onKeyDown:Ce,autoFocus:ce&&se===G,disabled:Fe,tabIndex:se===G&&!Fe?0:-1,onFocus:$e,onBlur:de,"aria-current":te===se?"date":void 0,yearsPerRow:R,slots:N,slotProps:V,children:_.format(Ae,"year")},_.format(Ae,"year"))})}))}),$le=e=>on("MuiPickersCalendarHeader",e),Ple=Gt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Dle(e){return on("MuiPickersArrowSwitcher",e)}Gt("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Ale=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],jle=["ownerState"],Nle=["ownerState"],Ile=Ge("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Lle=Ge("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),EP=Ge(Gc,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),zle=e=>{const{classes:t}=e;return tn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Dle,t)},Fle=C.forwardRef(function(e,t){const n=gs(),r=Vr({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:d,isNextHidden:f,onGoToNext:c,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:v,onGoToPrevious:b,previousLabel:x,labelId:w}=r,S=Fn(r,Ale),T=r,M=zle(T),R={isDisabled:d,isHidden:f,goTo:c,label:m},$={isDisabled:y,isHidden:v,goTo:b,label:x},P=s?.previousIconButton??EP,N=xr({elementType:P,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:De({},T,{hidden:$.isHidden}),className:jt(M.button,M.previousIconButton)}),V=s?.nextIconButton??EP,z=xr({elementType:V,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"start",onClick:R.goTo},ownerState:De({},T,{hidden:R.isHidden}),className:jt(M.button,M.nextIconButton)}),W=s?.leftArrowIcon??Uoe,H=xr({elementType:W,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:M.leftArrowIcon}),k=Fn(H,jle),I=s?.rightArrowIcon??_oe,F=xr({elementType:I,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:M.rightArrowIcon}),_=Fn(F,Nle);return h.jsxs(Ile,De({ref:t,className:jt(M.root,a),ownerState:T},S,{children:[h.jsx(P,De({},N,{children:n?h.jsx(I,De({},_)):h.jsx(W,De({},k))})),o?h.jsx(br,{variant:"subtitle1",component:"span",id:w,children:o}):h.jsx(Lle,{className:M.spacer,ownerState:T}),h.jsx(V,De({},z,{children:n?h.jsx(W,De({},k)):h.jsx(I,De({},_))}))]}))});function Ble(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Hr();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 Ule(e,{disablePast:t,minDate:n,timezone:r}){const o=Hr();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 _le=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Vle=["ownerState"],Hle=e=>{const{classes:t}=e;return tn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$le,t)},Wle=Ge("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}),qle=Ge("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>De({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Yle=Ge("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Kle=Ge(Gc,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Ple.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Gle=Ge(Boe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Qle=C.forwardRef(function(e,t){const n=_l(),r=Hr(),o=Vr({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:d,disableFuture:f,disablePast:c,maxDate:m,minDate:y,onMonthChange:v,onViewChange:b,view:x,reduceAnimations:w,views:S,labelId:T,className:M,timezone:R,format:$=`${r.formats.month} ${r.formats.year}`}=o,P=Fn(o,_le),N=o,V=Hle(o),z=a?.switchViewButton??Kle,W=xr({elementType:z,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:N,className:V.switchViewButton}),H=a?.switchViewIcon??Gle,k=xr({elementType:H,externalSlotProps:s?.switchViewIcon,ownerState:N,className:V.switchViewIcon}),I=Fn(k,Vle),F=()=>v(r.addMonths(l,1),"left"),_=()=>v(r.addMonths(l,-1),"right"),j=Ble(l,{disableFuture:f,maxDate:m,timezone:R}),X=Ule(l,{disablePast:c,minDate:y,timezone:R}),Q=()=>{if(!(S.length===1||!b||d))if(S.length===2)b(S.find(Z=>Z!==x)||S[0]);else{const Z=S.indexOf(x)!==0?0:1;b(S[Z])}};if(S.length===1&&S[0]==="year")return null;const te=r.formatByString(l,$);return h.jsxs(Wle,De({},P,{ownerState:N,className:jt(V.root,M),ref:t,children:[h.jsxs(qle,{role:"presentation",onClick:Q,ownerState:N,"aria-live":"polite",className:V.labelContainer,children:[h.jsx(mL,{reduceAnimations:w,transKey:te,children:h.jsx(Yle,{id:T,ownerState:N,className:V.label,children:te})}),S.length>1&&!d&&h.jsx(z,De({},W,{children:h.jsx(H,De({},I))}))]}),h.jsx(ad,{in:x==="day",appear:!w,enter:!w,children:h.jsx(Fle,{slots:a,slotProps:s,onGoToPrevious:_,isPreviousDisabled:X,previousLabel:n.previousMonth,onGoToNext:F,isNextDisabled:j,nextLabel:n.nextMonth})})]}))}),Xle=Ge("div")({overflow:"hidden",width:y0,maxHeight:kk,display:"flex",flexDirection:"column",margin:"0 auto"}),Zle=e=>on("MuiDateCalendar",e);Gt("MuiDateCalendar",["root","viewTransitionContainer"]);const Jle=["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"],ece=e=>{const{classes:t}=e;return tn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Zle,t)};function tce(e,t){const n=Hr(),r=wg(),o=zI(),a=Vr({props:e,name:t});return De({},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:_i(n,a.minDate,r.minDate),maxDate:_i(n,a.maxDate,r.maxDate)})}const nce=Ge(Xle,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:kk}),rce=Ge(mL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),oce=C.forwardRef(function(e,t){const n=Hr(),r=ys(),o=tce(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:d,referenceDate:f,disableFuture:c,disablePast:m,onChange:y,onYearChange:v,onMonthChange:b,reduceAnimations:x,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:T,view:M,views:R,openTo:$,className:P,disabled:N,readOnly:V,minDate:z,maxDate:W,disableHighlightToday:H,focusedView:k,onFocusedViewChange:I,showDaysOutsideCurrentMonth:F,fixedWeekNumber:_,dayOfWeekFormatter:j,slots:X,slotProps:Q,loading:te,renderLoading:Z,displayWeekNumber:G,yearsOrder:ne,yearsPerRow:ce,monthsPerRow:pe,timezone:oe}=o,ae=Fn(o,Jle),{value:le,handleValueChange:ge,timezone:ye}=Ck({name:"DateCalendar",timezone:oe,value:l,defaultValue:d,referenceDate:f,onChange:y,valueManager:Js}),{view:we,setView:Ce,focusedView:$e,setFocusedView:de,goToNextView:ke,setValueAndGoToNextView:et}=FI({view:M,views:R,openTo:$,onChange:ge,onViewChange:s,autoFocus:a,focusedView:k,onFocusedViewChange:I}),{referenceDate:ze,calendarState:Ae,changeFocusedDay:se,changeMonth:bt,handleChangeMonth:Fe,isDateDisabled:it,onMonthSwitchingAnimationEnd:pt}=Rse({value:le,referenceDate:f,reduceAnimations:x,onMonthChange:b,minDate:z,maxDate:W,shouldDisableDate:w,disablePast:m,disableFuture:c,timezone:ye}),Ft=N&&le||z,_t=N&&le||W,at=`${r}-grid-label`,Xe=$e!==null,rt=X?.calendarHeader??Qle,Ne=xr({elementType:rt,externalSlotProps:Q?.calendarHeader,additionalProps:{views:R,view:we,currentMonth:Ae.currentMonth,onViewChange:Ce,onMonthChange:(un,vn)=>Fe({newMonth:un,direction:vn}),minDate:Ft,maxDate:_t,disabled:N,disablePast:m,disableFuture:c,reduceAnimations:x,timezone:ye,labelId:at},ownerState:o}),he=It(un=>{const vn=n.startOfMonth(un),Bn=n.endOfMonth(un),Wn=it(un)?Tm({utils:n,date:un,minDate:n.isBefore(z,vn)?vn:z,maxDate:n.isAfter(W,Bn)?Bn:W,disablePast:m,disableFuture:c,isDateDisabled:it,timezone:ye}):un;Wn?(et(Wn,"finish"),b?.(vn)):(ke(),bt(vn)),se(Wn,!0)}),We=It(un=>{const vn=n.startOfYear(un),Bn=n.endOfYear(un),Wn=it(un)?Tm({utils:n,date:un,minDate:n.isBefore(z,vn)?vn:z,maxDate:n.isAfter(W,Bn)?Bn:W,disablePast:m,disableFuture:c,isDateDisabled:it,timezone:ye}):un;Wn?(et(Wn,"finish"),v?.(Wn)):(ke(),bt(vn)),se(Wn,!0)}),Te=It(un=>ge(un&&Xv(n,un,le??ze),"finish",we));C.useEffect(()=>{le!=null&&n.isValid(le)&&bt(le)},[le]);const kt=o,Mt=ece(kt),gt={disablePast:m,disableFuture:c,maxDate:W,minDate:z},ct={disableHighlightToday:H,readOnly:V,disabled:N,timezone:ye,gridLabelId:at,slots:X,slotProps:Q},$t=C.useRef(we);C.useEffect(()=>{$t.current!==we&&($e===$t.current&&de(we,!0),$t.current=we)},[$e,de,we]);const Vt=C.useMemo(()=>[le],[le]);return h.jsxs(nce,De({ref:t,className:jt(Mt.root,P),ownerState:kt},ae,{children:[h.jsx(rt,De({},Ne,{slots:X,slotProps:Q})),h.jsx(rce,{reduceAnimations:x,className:Mt.viewTransitionContainer,transKey:we,ownerState:kt,children:h.jsxs("div",{children:[we==="year"&&h.jsx(Rle,De({},gt,ct,{value:le,onChange:We,shouldDisableYear:T,hasFocus:Xe,onFocusedViewChange:un=>de("year",un),yearsOrder:ne,yearsPerRow:ce,referenceDate:ze})),we==="month"&&h.jsx(yle,De({},gt,ct,{hasFocus:Xe,className:P,value:le,onChange:he,shouldDisableMonth:S,onFocusedViewChange:un=>de("month",un),monthsPerRow:pe,referenceDate:ze})),we==="day"&&h.jsx(ale,De({},Ae,gt,ct,{onMonthSwitchingAnimationEnd:pt,onFocusedDayChange:se,reduceAnimations:x,selectedDays:Vt,onSelectedDaysChange:Te,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:T,hasFocus:Xe,onFocusedViewChange:un=>de("day",un),showDaysOutsideCurrentMonth:F,fixedWeekNumber:_,dayOfWeekFormatter:j,displayWeekNumber:G,loading:te,renderLoading:Z}))]})})]}))}),Bf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:d,className:f,classes:c,disableFuture:m,disablePast:y,minDate:v,maxDate:b,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:T,onMonthChange:M,monthsPerRow:R,onYearChange:$,yearsOrder:P,yearsPerRow:N,slots:V,slotProps:z,loading:W,renderLoading:H,disableHighlightToday:k,readOnly:I,disabled:F,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:j,sx:X,autoFocus:Q,fixedWeekNumber:te,displayWeekNumber:Z,timezone:G})=>h.jsx(oce,{view:e,onViewChange:t,views:n.filter(N$),focusedView:r&&N$(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:d,className:f,classes:c,disableFuture:m,disablePast:y,minDate:v,maxDate:b,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:T,onMonthChange:M,monthsPerRow:R,onYearChange:$,yearsOrder:P,yearsPerRow:N,slots:V,slotProps:z,loading:W,renderLoading:H,disableHighlightToday:k,readOnly:I,disabled:F,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:j,sx:X,autoFocus:Q,fixedWeekNumber:te,displayWeekNumber:Z,timezone:G}),bL=C.forwardRef(function(e,t){const n=_l(),r=Hr(),o=bI(e,"MuiDesktopDatePicker"),a=De({day:Bf,month:Bf,year:Bf},o.viewRenderers),s=De({},o,{viewRenderers:a,format:lk(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:De({openPickerIcon:Voe,field:pL},o.slots),slotProps:De({},o.slotProps,{field:d=>De({},d0(o.slotProps?.field,d),SI(o),{ref:t}),toolbar:De({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=Foe({props:s,valueManager:Js,valueType:"date",getOpenDialogAriaText:yI({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Cg});return l()});bL.propTypes={autoFocus:nt.bool,className:nt.string,closeOnSelect:nt.bool,dayOfWeekFormatter:nt.func,defaultValue:nt.object,disabled:nt.bool,disableFuture:nt.bool,disableHighlightToday:nt.bool,disableOpenPicker:nt.bool,disablePast:nt.bool,displayWeekNumber:nt.bool,enableAccessibleFieldDOMStructure:nt.any,fixedWeekNumber:nt.number,format:nt.string,formatDensity:nt.oneOf(["dense","spacious"]),inputRef:iI,label:nt.node,loading:nt.bool,localeText:nt.object,maxDate:nt.object,minDate:nt.object,monthsPerRow:nt.oneOf([3,4]),name:nt.string,onAccept:nt.func,onChange:nt.func,onClose:nt.func,onError:nt.func,onMonthChange:nt.func,onOpen:nt.func,onSelectedSectionsChange:nt.func,onViewChange:nt.func,onYearChange:nt.func,open:nt.bool,openTo:nt.oneOf(["day","month","year"]),orientation:nt.oneOf(["landscape","portrait"]),readOnly:nt.bool,reduceAnimations:nt.bool,referenceDate:nt.object,renderLoading:nt.func,selectedSections:nt.oneOfType([nt.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),nt.number]),shouldDisableDate:nt.func,shouldDisableMonth:nt.func,shouldDisableYear:nt.func,showDaysOutsideCurrentMonth:nt.bool,slotProps:nt.object,slots:nt.object,sx:nt.oneOfType([nt.arrayOf(nt.oneOfType([nt.func,nt.object,nt.bool])),nt.func,nt.object]),timezone:nt.string,value:nt.object,view:nt.oneOf(["day","month","year"]),viewRenderers:nt.shape({day:nt.func,month:nt.func,year:nt.func}),views:nt.arrayOf(nt.oneOf(["day","month","year"]).isRequired),yearsOrder:nt.oneOf(["asc","desc"]),yearsPerRow:nt.oneOf([3,4])};function ace(e){return on("MuiDialogContent",e)}Gt("MuiDialogContent",["root","dividers"]);const ice=Gt("MuiDialogTitle",["root"]),sce=e=>{const{classes:t,dividers:n}=e;return tn({root:["root",n&&"dividers"]},ace,t)},lce=Ge("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Vn(({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:{[`.${ice.root} + &`]:{paddingTop:0}}}]}))),cce=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,s={...n,dividers:o},l=sce(s);return h.jsx(lce,{className:jt(l.root,r),ownerState:s,ref:t,...a})});function uce(e){return on("MuiDialog",e)}const $m=Gt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),dce=C.createContext({}),fce=Ge(ZI,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),pce=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 tn(s,uce,t)},hce=Ge(JI,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),mce=Ge("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"}}}]}),gce=Ge(hd,{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]}})(Vn(({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)`,[`&.${$m.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}`,[`&.${$m.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,[`&.${$m.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yce=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiDialog"}),r=fd(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:d,BackdropProps:f,children:c,className:m,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:x="sm",onClick:w,onClose:S,open:T,PaperComponent:M=hd,PaperProps:R={},scroll:$="paper",slots:P={},slotProps:N={},TransitionComponent:V=ad,transitionDuration:z=o,TransitionProps:W,...H}=n,k={...n,disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:x,scroll:$},I=pce(k),F=C.useRef(),_=$e=>{F.current=$e.target===$e.currentTarget},j=$e=>{w&&w($e),F.current&&(F.current=null,S&&S($e,"backdropClick"))},X=ys(s),Q=C.useMemo(()=>({titleId:X}),[X]),te={transition:V,...P},Z={transition:W,paper:R,backdrop:f,...N},G={slots:te,slotProps:Z},[ne,ce]=ir("root",{elementType:hce,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:k,className:jt(I.root,m),ref:t}),[pe,oe]=ir("backdrop",{elementType:fce,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:k}),[ae,le]=ir("paper",{elementType:gce,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:k,className:jt(I.paper,R.className)}),[ge,ye]=ir("container",{elementType:mce,externalForwardedProps:G,ownerState:k,className:I.container}),[we,Ce]=ir("transition",{elementType:ad,externalForwardedProps:G,ownerState:k,additionalProps:{appear:!0,in:T,timeout:z,role:"presentation"}});return h.jsx(ne,{closeAfterTransition:!0,slots:{backdrop:pe},slotProps:{backdrop:{transitionDuration:z,as:d,...oe}},disableEscapeKeyDown:y,onClose:S,open:T,onClick:j,...ce,...H,children:h.jsx(we,{...Ce,children:h.jsx(ge,{onMouseDown:_,...ye,children:h.jsx(ae,{as:M,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":X,"aria-modal":l,...le,children:h.jsx(dce.Provider,{value:Q,children:c})})})})})}),vce=Ge(yce)({[`& .${$m.container}`]:{outline:0},[`& .${$m.paper}`]:{outline:0,minWidth:y0}}),bce=Ge(cce)({"&:first-of-type":{padding:0}});function xce(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:a}=e,s=o?.dialog??vce,l=o?.mobileTransition??ad;return h.jsx(s,De({open:r,onClose:n},a?.dialog,{TransitionComponent:l,TransitionProps:a?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:a?.mobilePaper,children:h.jsx(bce,{children:t})}))}const Sce=["props","getOpenDialogAriaText"],wce=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Fn(e,Sce);const{slots:o,slotProps:a,className:s,sx:l,format:d,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,name:b,label:x,inputRef:w,readOnly:S,disabled:T,localeText:M}=t,R=C.useRef(null),$=ys(),P=a?.toolbar?.hidden??!1,{open:N,actions:V,layoutProps:z,renderCurrentView:W,fieldProps:H,contextValue:k}=BI(De({},r,{props:t,fieldRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),I=o.field,F=xr({elementType:I,externalSlotProps:a?.field,additionalProps:De({},H,P&&{id:$},!(T||S)&&{onClick:V.onOpen,onKeyDown:Tre(V.onOpen)},{readOnly:S??!0,disabled:T,className:s,sx:l,format:d,formatDensity:f,enableAccessibleFieldDOMStructure:c,selectedSections:m,onSelectedSectionsChange:y,timezone:v,label:x,name:b},w?{inputRef:w}:{}),ownerState:t});F.inputProps=De({},F.inputProps,{"aria-label":n(H.value)});const _=De({textField:o.textField},F.slots),j=o.layout??qI;let X=$;P&&(x?X=`${$}-label`:X=void 0);const Q=De({},a,{toolbar:De({},a?.toolbar,{titleId:$}),mobilePaper:De({"aria-labelledby":X},a?.mobilePaper)}),te=mr(R,F.unstableFieldRef);return{renderPicker:()=>h.jsxs(YI,{contextValue:k,localeText:M,children:[h.jsx(I,De({},F,{slots:_,slotProps:Q,unstableFieldRef:te})),h.jsx(xce,De({},V,{open:N,slots:o,slotProps:Q,children:h.jsx(j,De({},z,Q?.layout,{slots:o,slotProps:Q,children:W()}))}))]})}},xL=C.forwardRef(function(e,t){const n=_l(),r=Hr(),o=bI(e,"MuiMobileDatePicker"),a=De({day:Bf,month:Bf,year:Bf},o.viewRenderers),s=De({},o,{viewRenderers:a,format:lk(r,o,!1),slots:De({field:pL},o.slots),slotProps:De({},o.slotProps,{field:d=>De({},d0(o.slotProps?.field,d),SI(o),{ref:t}),toolbar:De({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=wce({props:s,valueManager:Js,valueType:"date",getOpenDialogAriaText:yI({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Cg});return l()});xL.propTypes={autoFocus:nt.bool,className:nt.string,closeOnSelect:nt.bool,dayOfWeekFormatter:nt.func,defaultValue:nt.object,disabled:nt.bool,disableFuture:nt.bool,disableHighlightToday:nt.bool,disableOpenPicker:nt.bool,disablePast:nt.bool,displayWeekNumber:nt.bool,enableAccessibleFieldDOMStructure:nt.any,fixedWeekNumber:nt.number,format:nt.string,formatDensity:nt.oneOf(["dense","spacious"]),inputRef:iI,label:nt.node,loading:nt.bool,localeText:nt.object,maxDate:nt.object,minDate:nt.object,monthsPerRow:nt.oneOf([3,4]),name:nt.string,onAccept:nt.func,onChange:nt.func,onClose:nt.func,onError:nt.func,onMonthChange:nt.func,onOpen:nt.func,onSelectedSectionsChange:nt.func,onViewChange:nt.func,onYearChange:nt.func,open:nt.bool,openTo:nt.oneOf(["day","month","year"]),orientation:nt.oneOf(["landscape","portrait"]),readOnly:nt.bool,reduceAnimations:nt.bool,referenceDate:nt.object,renderLoading:nt.func,selectedSections:nt.oneOfType([nt.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),nt.number]),shouldDisableDate:nt.func,shouldDisableMonth:nt.func,shouldDisableYear:nt.func,showDaysOutsideCurrentMonth:nt.bool,slotProps:nt.object,slots:nt.object,sx:nt.oneOfType([nt.arrayOf(nt.oneOfType([nt.func,nt.object,nt.bool])),nt.func,nt.object]),timezone:nt.string,value:nt.object,view:nt.oneOf(["day","month","year"]),viewRenderers:nt.shape({day:nt.func,month:nt.func,year:nt.func}),views:nt.arrayOf(nt.oneOf(["day","month","year"]).isRequired),yearsOrder:nt.oneOf(["asc","desc"]),yearsPerRow:nt.oneOf([3,4])};const Cce=["desktopModeMediaQuery"],ob=C.forwardRef(function(e,t){const n=Vr({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=Mre}=n,o=Fn(n,Cce);return aI(r,{defaultMatches:!0})?h.jsx(bL,De({ref:t},o)):h.jsx(xL,De({ref:t},o))});function kce(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"?Tce(n):n}function Tce(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}$r.extend(rk);const OP=14,Mce=42;function Ece(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 Oce({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:a}){const s=e.label??e.name??"",l=e.type??"string",d=Ece(e),f=kce(l,e.default),c=f!==void 0?`Default: ${f===""?"(empty)":f}`:void 0,m=d||c?h.jsxs(h.Fragment,{children:[d,d&&c?h.jsx("br",{}):null,c]}):void 0,y=l==="string"||km(l)==="string",v=!Iu(l)||typeof t!="string"||uJ(t),b=_=>h.jsx(ai,{label:s,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:h.jsxs(h.Fragment,{children:[`Not a ${_}. Clear it to pick one.`,m?h.jsx("br",{}):null,m]}),slotProps:{input:{endAdornment:h.jsx(Z1,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),x=Iu(l),w=e.control==="multiselect"&&x,S=Iu(l),T=e.control==="select"||e.control==="multiselect",M=T?S?typeof t=="string"?cJ(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(T&&y&&v&&!(!w&&M.length>1)){const _=j=>{const X=S?ok(j):void 0;if(j.length===0||X===""){n(null);return}n(S?X:j[0])};return h.jsx(OH,{multiple:w,disableCloseOnSelect:w,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:a?"Options unavailable":"No matching values",value:w?M:M[0]??null,onChange:(j,X)=>_(X===null?[]:Array.isArray(X)?X:[X]),renderInput:j=>h.jsx(ai,{...j,label:s,size:"small",placeholder:M.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(sg,{size:16}),j.InputProps.endAdornment]})}}}),fullWidth:!0})}const R=Iu(l)&&km(l)==="number",{rangeMin:$,rangeMax:P}=e,N=R&&typeof t=="string"?fJ(t):void 0,V=R&&typeof t=="string"?hJ(t):void 0;if((R||l==="number")&&$!==void 0&&P!==void 0&&(!R||t===void 0||t===null||t===""||N!==void 0||V!==void 0)){const _=V??(N!==void 0?[N,P]:void 0),j=R?_?.[0]:typeof t=="number"?t:void 0;if(j===void 0&&t!==void 0&&t!==null&&t!=="")return b("number");const X=j??$,Q=_??[$,P],te=Q[1]>=P?`≥ ${Q[0]}`:`${Q[0]} to ${Q[1]}`,Z=R&&t==="",G=j!==void 0||Z;return h.jsxs(DS,{fullWidth:!0,children:[h.jsxs(Kt,{sx:{height:Mce,px:`${OP}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[h.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,children:[h.jsx(Lt,{variant:"body2",color:"text.secondary",noWrap:!0,children:s}),h.jsx(Lt,{variant:"body2",sx:{fontWeight:600},children:G?Z?"Any":R?te:String(X):R?"Any":f??"Unset"}),G&&h.jsx(eo,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:h.jsx(Gv,{fontSize:"small"})})]}),h.jsx(Tq,{size:"small",min:$,max:P,value:R?Q:X,disableSwap:R,valueLabelDisplay:"auto","aria-label":R?void 0:s,getAriaLabel:R?ne=>ne===0?`${s} from`:`${s} to`:void 0,sx:{py:0,mt:.5},onChange:(ne,ce)=>{if(R){const[pe,oe]=Array.isArray(ce)?[ce[0],ce[1]]:[ce,ce];if(pe<=$&&oe>=P){n(null);return}n(oe>=P?dJ(pe):pJ(pe,oe));return}n(Array.isArray(ce)?ce[0]:ce)}})]}),m&&h.jsx(AS,{sx:{mx:`${OP}px`},children:m})]})}const z=Iu(l)?km(l):void 0,W=z==="date"||z==="timestamp"||z==="timestamptz",H=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),k=t==null||H;if(W&&!H){const _=Rce(t);if(_!==void 0)return h.jsx($ce,{label:s,state:_,onChange:n,helperNode:m,defaultDisplay:f})}if(W&&k){const _=H?$r.utc(t):null;return h.jsx(Zv,{dateAdapter:fw,children:h.jsx(ob,{label:s,value:_?.isValid()?_: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 _=typeof t=="boolean";if(!_&&t!==void 0&&t!==null)return b("true or false");const j=e.default?.trim()==="true";return h.jsxs(DS,{children:[h.jsxs(fr,{direction:"row",alignItems:"center",children:[h.jsx(EC,{control:h.jsx(g8,{checked:_?t:j,onChange:X=>n(X.target.checked)}),label:s}),_&&h.jsx(eo,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:h.jsx(Gv,{fontSize:"small"})})]}),m&&h.jsx(AS,{children:m})]})}if(l==="number"){const _=typeof t=="number"?t:"",j=t!=null;return j&&t!==""&&typeof t!="number"?b("number"):h.jsx(ai,{label:s,type:"number",value:_,onChange:X=>{const Q=X.target.value;n(Q===""?null:Number(Q))},placeholder:f,helperText:m,slotProps:{input:{endAdornment:j&&h.jsx(Z1,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const _=t instanceof Date?t:typeof t=="string"?(X=>X instanceof Date?X:null)(XN(l,t)):null,j=_?$r.utc(_):null;return t!=null&&t!==""&&_===null?b("date"):h.jsx(Zv,{dateAdapter:fw,children:h.jsx(ob,{label:s,value:j,onChange:X=>n(X?kJ(X,_??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:m},field:{clearable:!0,onClear:()=>n(null)}}})})}const I=typeof t=="string"?t:"",F=t!=null;return h.jsx(ai,{label:s,value:I,onChange:_=>n(_.target.value),placeholder:F?void 0:f??(l.startsWith("filter<")?l:void 0),helperText:m,slotProps:{input:{endAdornment:F&&h.jsx(Z1,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Z1({onClear:e}){return h.jsx(FW,{position:"end",children:h.jsx(eo,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:h.jsx(Gv,{fontSize:"small"})})})}function Rce(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=gJ(e);if(t!==void 0)return{kind:"preset",key:t};const n=bJ(e);if(n!==void 0)return{kind:"days",...n}}const tv="__custom__",J1="__any__";function $ce({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"),[d,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?tv:t.kind==="preset"?t.key:t.kind==="any"?J1:"",y=b=>{f(b),b.from&&b.to&&!$r.utc(b.to).isBefore($r.utc(b.from))&&n(vJ(b.from,b.to))},v=b=>{const x=b?$r.utc(b):null;return x?.isValid()?x:null};return h.jsxs(fr,{direction:"row",spacing:1,"data-testid":"time-range",children:[h.jsxs(ai,{select:!0,label:e,value:m,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:b=>{if(b===tv)return"Custom range";if(b===J1)return"Any time";const x=Kv.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(Gv,{fontSize:"small"})}):void 0}},onChange:b=>{const x=b.target.value;if(x===tv){l(!0);return}l(!1);const w=mJ(x);w!==void 0&&n(w)},children:[t.kind==="any"&&h.jsx(Ii,{value:J1,children:"Any time"}),Kv.map(b=>h.jsx(Ii,{value:b.key,children:b.label},b.key)),h.jsx(Ii,{value:tv,children:"Custom range"})]}),s&&h.jsxs(Zv,{dateAdapter:fw,children:[h.jsx(ob,{label:"From",value:v(d.from),onChange:b=>y({...d,from:b?b.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),h.jsx(ob,{label:"To",value:v(d.to),minDate:v(d.from)??void 0,onChange:b=>y({...d,to:b?b.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function SL({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:a,optionsLoading:s,optionsFailed:l,apply:d,title:f}){if(e.length===0)return null;const c=Array.from(t.values()).some(v=>v!==null),m=e.map(v=>h.jsx(Kt,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:h.jsx(Oce,{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(fr,{direction:"row",alignItems:"center",spacing:1,children:[d&&h.jsx(Yo,{variant:"contained",size:"small",disableElevation:!0,onClick:d.onApply,disabled:!d.pending,sx:{textTransform:"none"},children:"Apply"}),c&&h.jsx(Yo,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?h.jsx(ja,{elevation:0,sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"background.paper"},children:h.jsxs(fr,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[m,h.jsx(Kt,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:y})]})}):h.jsxs(ja,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[h.jsxs(fr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[h.jsx(Lt,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:f??"Parameters"}),y]}),h.jsx(Kt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:m})]})}const Pce=/^(https?|mailto|tel):/i,Dce=/^[a-z][a-z0-9+.-]*:/i;function Ace({href:e,title:t,children:n,context:r}){const o=!!e&&Dce.test(e),a=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!a||!r){const m=o&&!Pce.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}`),d=l.pathname.slice(1)+l.search+l.hash,f=`/${r.environmentName}/${r.packageName}/${d}`,{onNavigate:c}=r;return h.jsx("a",{href:f,title:t,onClick:c?m=>{m.preventDefault(),c(f,m)}:void 0,children:n})}const jce={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 ab({children:e,variant:t="caption",links:n,sx:r}){return h.jsx(Kt,{sx:[jce[t],...Array.isArray(r)?r:[r]],children:h.jsx(RQ,{options:{overrides:{a:{component:Ace,props:{context:n}}}},children:e})})}function ra({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(Kt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[h.jsx(sg,{size:t,color:n,thickness:r}),e&&h.jsx(Lt,{variant:s,color:"text.secondary",children:e})]});return o?h.jsx(Kt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}const Nce=new Set(["bar","line","chart","scatter_chart"]),Ice=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function Ahe(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":Nce.has(e)?"container":"content"}function jhe(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&Ice.has(e)}function Nhe(e){return e==="dashboard"?3:2}function Lce(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function Ihe(e,t){const n=Lce(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const zce=400,Fce=700,Bce=600,Uce=800,_ce=400,RP=2e3;function Vce(e){return e===void 0?RP:Math.min(e,RP)}function Hce({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??_ce:t===void 0||t<=0?Vce(n):n===void 0?t:Math.min(n,t)}const Wce=2,qce=16;function Yce(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function Kce({tiles:e,columns:t,keyOf:n,renderTile:r}){return h.jsx(Kt,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${qce}px`},children:e.map((o,a)=>h.jsx(Kt,{sx:{display:"grid",minWidth:0,gridColumn:{md:Yce(o,t)}},children:r(o,a)},n(o,a)))})}const Gce=cr(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 Qce(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function Ak(e,{enabled:t=!0}={}){const{apiClients:n}=zr();return co({queryKey:Qce(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,...sG})}const wL=cr(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 Uf({sx:e,...t}){const{theme:n}=Bl();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 Xce=new Set(["warn","error"]);function Zce(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Xce.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 Jce=C.lazy(()=>Lo(()=>import("./RenderedResult-BnPzJ9Jf.es-Dme58kt1.js"),[]).then(e=>e.c));function jk({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o}){const a=C.useRef(null),[s,l]=C.useState(void 0),[d,f]=C.useState(void 0),[c,m]=C.useState(!1),y=Zce(r);if(!e)return null;if(n>0&&e.length>n&&!c)return h.jsxs(Kt,{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($Q,{sx:{fontSize:48,color:"#757575"}}),h.jsx(Lt,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),h.jsx(Yo,{variant:"contained",color:"primary",onClick:()=>m(!0),children:"Proceed"})]});const v=h.jsx(ra,{text:"Loading...",centered:!0,size:32}),b=Hce({sizing:s,contentHeight:d,maxHeight:t});return h.jsxs(Kt,{ref:a,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden"},children:[e&&h.jsx(C.Suspense,{fallback:v,children:h.jsx(Jce,{result:e,height:b,onSizeChange:f,onSizing:l,drill:o})}),y&&h.jsx(Kt,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:h.jsx(Ui,{title:y.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:h.jsx(Uf,{"aria-label":"Render tag warnings",children:h.jsx(wL,{fontSize:"small",color:y.severity==="error"?"error":"warning"})})})})]})}function Nk({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:a,transform:s}){const{data:l,isSuccess:d,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(Kt,{sx:{p:2},children:h.jsx(pa,{context:t,error:c})}):d?h.jsx(jk,{result:y,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:a}):h.jsx(ra,{text:n})}const eue=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"]),tue={value:`# big_value
435
+ `},nue=/^#\(malloy\)[\s\S]*\bcalculation\b/;function rue(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&nue.test(t.value.trim())):!1}function oue(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(rue))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 aue(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(eue.has(o))return!0}return!1}function iue(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!oue(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return aue(r)?e:JSON.stringify({...t,annotations:[tue,...n]})}const CL=20,sue={radius:"8px",padding:`${CL}px`};function Lhe(e,t=sue){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 lue({borderless:e=!1,sx:t,children:n}){const{theme:r}=Bl();return h.jsx(ja,{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":`${CL}px`},...Array.isArray(t)?t:[t]],children:n})}function cue({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=Bl();return h.jsxs(Kt,{sx:{pb:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[h.jsxs(Kt,{sx:{minWidth:0,flex:1},children:[h.jsx(Lt,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&h.jsx(Lt,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function $P(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?YN(t):e}function PP({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:a,label:s,subtitle:l,borderless:d,givens:f,declaredTypes:c,givenNames:m,height:y,maxResultSize:v,drill:b,onExplore:x}){const{theme:w}=Bl(),S=Ak({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:a!==void 0?`run: ${a}`:void 0,givens:c0(f,c,m)});return h.jsxs(lue,{borderless:d,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(cue,{title:s??$P(a),subtitle:l,tooltip:a,action:x&&h.jsx(Ui,{title:"Explore from here",children:h.jsx(eo,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${s??$P(a)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:w.tileTitle},children:h.jsx(Gce,{fontSize:"small"})})})}),h.jsx(Nk,{state:S,context:a??o??r,maxHeight:y,maxResultSize:v,drill:b,transform:a!==void 0?iue:void 0})]})}function DP({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 AP(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function uue(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:d,getOptionLabel:f})=>{let c=s?d.trim():d;n&&(c=c.toLowerCase()),t&&(c=AP(c));const m=c?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=AP(v)),o==="start"?v.startsWith(c):v.includes(c)}):l;return typeof r=="number"?m.slice(0,r):m}}const due=uue(),jP=5,fue=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),pue=[];function NP(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function hue(e){const{unstable_isActiveElementInListbox:t=fue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:d=!1,componentName:f="useAutocomplete",defaultValue:c=e.multiple?pue:null,disableClearable:m=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:b=!1,disableListWrap:x=!1,filterOptions:w=due,filterSelectedOptions:S=!1,freeSolo:T=!1,getOptionDisabled:M,getOptionKey:R,getOptionLabel:$=ue=>ue.label??ue,groupBy:P,handleHomeEndKeys:N=!e.freeSolo,id:V,includeInputInList:z=!1,inputValue:W,isOptionEqualToValue:H=(ue,fe)=>ue===fe,multiple:k=!1,onChange:I,onClose:F,onHighlightChange:_,onInputChange:j,onOpen:X,open:Q,openOnFocus:te=!1,options:Z,readOnly:G=!1,renderValue:ne,selectOnFocus:ce=!e.freeSolo,value:pe}=e,oe=ys(V);let ae=$;ae=ue=>{const fe=$(ue);return typeof fe!="string"?String(fe):fe};const le=C.useRef(!1),ge=C.useRef(!0),ye=C.useRef(null),we=C.useRef(null),[Ce,$e]=C.useState(null),[de,ke]=C.useState(-1),et=o?0:-1,ze=C.useRef(et),Ae=C.useRef(NP(c??pe,k,ae)).current,[se,bt]=si({controlled:pe,default:c,name:f}),[Fe,it]=si({controlled:W,default:Ae,name:f,state:"inputValue"}),[pt,Ft]=C.useState(!1),_t=C.useCallback((ue,fe,Ve)=>{if(!(k?se.length<fe.length:fe!==null)&&!l)return;const vt=NP(fe,k,ae,ne);Fe!==vt&&(it(vt),j&&j(ue,vt,Ve))},[ae,Fe,k,j,it,l,se,ne]),[at,Xe]=si({controlled:Q,default:!1,name:f,state:"open"}),[rt,Ne]=C.useState(!0),he=!k&&se!=null&&Fe===ae(se),We=at&&!G,Te=We?w(Z.filter(ue=>!(S&&(k?se:[se]).some(fe=>fe!==null&&H(ue,fe)))),{inputValue:he&&rt?"":Fe,getOptionLabel:ae}):[],kt=pee({filteredOptions:Te,value:se,inputValue:Fe});C.useEffect(()=>{const ue=se!==kt.value;pt&&!ue||T&&!ue||_t(null,se,"reset")},[se,_t,pt,kt.value,T]);const Mt=at&&Te.length>0&&!G,gt=It(ue=>{if(ue===-1)ye.current.focus();else{const fe=ne?"data-item-index":"data-tag-index";Ce.querySelector(`[${fe}="${ue}"]`).focus()}});C.useEffect(()=>{k&&de>se.length-1&&(ke(-1),gt(-1))},[se,k,de,gt]);function ct(ue,fe){if(!we.current||ue<0||ue>=Te.length)return-1;let Ve=ue;for(;;){const vt=we.current.querySelector(`[data-option-index="${Ve}"]`),Ke=b?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!Ke)return Ve;if(fe==="next"?Ve=(Ve+1)%Te.length:Ve=(Ve-1+Te.length)%Te.length,Ve===ue)return-1}}const $t=It(({event:ue,index:fe,reason:Ve})=>{if(ze.current=fe,fe===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${oe}-option-${fe}`),_&&["mouse","keyboard","touch"].includes(Ve)&&_(ue,fe===-1?null:Te[fe],Ve),!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(fe===-1){Ke.scrollTop=0;return}const Zt=we.current.querySelector(`[data-option-index="${fe}"]`);if(Zt&&(Zt.classList.add(`${n}-focused`),Ve==="keyboard"&&Zt.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&Ve!=="mouse"&&Ve!=="touch")){const nn=Zt,fn=Ke.clientHeight+Ke.scrollTop,me=nn.offsetTop+nn.offsetHeight;me>fn?Ke.scrollTop=me-Ke.clientHeight:nn.offsetTop-nn.offsetHeight*(P?1.3:0)<Ke.scrollTop&&(Ke.scrollTop=nn.offsetTop-nn.offsetHeight*(P?1.3:0))}}),Vt=It(({event:ue,diff:fe,direction:Ve="next",reason:vt})=>{if(!We)return;const Ke=ct((()=>{const Zt=Te.length-1;if(fe==="reset")return et;if(fe==="start")return 0;if(fe==="end")return Zt;const nn=ze.current+fe;return nn<0?nn===-1&&z?-1:x&&ze.current!==-1||Math.abs(fe)>1?0:Zt:nn>Zt?nn===Zt+1&&z?-1:x||Math.abs(fe)>1?Zt:0:nn})(),Ve);if($t({index:Ke,reason:vt,event:ue}),r&&fe!=="reset")if(Ke===-1)ye.current.value=Fe;else{const Zt=ae(Te[Ke]);ye.current.value=Zt,Zt.toLowerCase().indexOf(Fe.toLowerCase())===0&&Fe.length>0&&ye.current.setSelectionRange(Fe.length,Zt.length)}}),un=!DP({array1:kt.filteredOptions,array2:Te,parser:ae}),vn=()=>{const ue=(fe,Ve)=>{const vt=fe?ae(fe):"",Ke=Ve?ae(Ve):"";return vt===Ke};if(ze.current!==-1&&!DP({array1:kt.filteredOptions,array2:Te,parser:ae})&&kt.inputValue===Fe&&(k?se.length===kt.value.length&&kt.value.every((fe,Ve)=>ae(se[Ve])===ae(fe)):ue(kt.value,se))){const fe=kt.filteredOptions[ze.current];if(fe)return Te.findIndex(Ve=>ae(Ve)===ae(fe))}return-1},Bn=C.useCallback(()=>{if(!We)return;const ue=vn();if(ue!==-1){ze.current=ue;return}const fe=k?se[0]:se;if(Te.length===0||fe==null){Vt({diff:"reset"});return}if(we.current){if(fe!=null){const Ve=Te[ze.current];if(k&&Ve&&se.findIndex(Ke=>H(Ve,Ke))!==-1)return;const vt=Te.findIndex(Ke=>H(Ke,fe));vt===-1?Vt({diff:"reset"}):$t({index:vt});return}if(ze.current>=Te.length-1){$t({index:Te.length-1});return}$t({index:ze.current})}},[Te.length,k?!1:se,S,Vt,$t,We,Fe,k]),Wn=It(ue=>{ow(we,ue),ue&&Bn()});C.useEffect(()=>{un&&Bn()},[Bn,un]);const Qt=ue=>{at||(Xe(!0),Ne(!0),X&&X(ue))},In=(ue,fe)=>{at&&(Xe(!1),F&&F(ue,fe))},be=(ue,fe,Ve,vt)=>{if(k){if(se.length===fe.length&&se.every((Ke,Zt)=>Ke===fe[Zt]))return}else if(se===fe)return;I&&I(ue,fe,Ve,vt),bt(fe)},zn=C.useRef(!1),En=(ue,fe,Ve="selectOption",vt="options")=>{let Ke=Ve,Zt=fe;if(k){Zt=Array.isArray(se)?se.slice():[];const nn=Zt.findIndex(fn=>H(fe,fn));nn===-1?Zt.push(fe):vt!=="freeSolo"&&(Zt.splice(nn,1),Ke="removeOption")}_t(ue,Zt,Ke),be(ue,Zt,Ke,{option:fe}),!y&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&In(ue,Ke),(s===!0||s==="touch"&&zn.current||s==="mouse"&&!zn.current)&&ye.current.blur()};function Xt(ue,fe){if(ue===-1)return-1;let Ve=ue;for(;;){if(fe==="next"&&Ve===se.length||fe==="previous"&&Ve===-1)return-1;const vt=ne?"data-item-index":"data-tag-index",Ke=Ce.querySelector(`[${vt}="${Ve}"]`);if(!Ke||!Ke.hasAttribute("tabindex")||Ke.disabled||Ke.getAttribute("aria-disabled")==="true")Ve+=fe==="next"?1:-1;else return Ve}}const ie=(ue,fe)=>{if(!k)return;Fe===""&&In(ue,"toggleInput");let Ve=de;de===-1?Fe===""&&fe==="previous"&&(Ve=se.length-1):(Ve+=fe==="next"?1:-1,Ve<0&&(Ve=0),Ve===se.length&&(Ve=-1)),Ve=Xt(Ve,fe),ke(Ve),gt(Ve)},Pe=ue=>{le.current=!0,it(""),j&&j(ue,"","clear"),be(ue,k?[]:null,"clear")},Le=ue=>fe=>{if(ue.onKeyDown&&ue.onKeyDown(fe),!fe.defaultMuiPrevented&&(de!==-1&&!["ArrowLeft","ArrowRight"].includes(fe.key)&&(ke(-1),gt(-1)),fe.which!==229))switch(fe.key){case"Home":We&&N&&(fe.preventDefault(),Vt({diff:"start",direction:"next",reason:"keyboard",event:fe}));break;case"End":We&&N&&(fe.preventDefault(),Vt({diff:"end",direction:"previous",reason:"keyboard",event:fe}));break;case"PageUp":fe.preventDefault(),Vt({diff:-jP,direction:"previous",reason:"keyboard",event:fe}),Qt(fe);break;case"PageDown":fe.preventDefault(),Vt({diff:jP,direction:"next",reason:"keyboard",event:fe}),Qt(fe);break;case"ArrowDown":fe.preventDefault(),Vt({diff:1,direction:"next",reason:"keyboard",event:fe}),Qt(fe);break;case"ArrowUp":fe.preventDefault(),Vt({diff:-1,direction:"previous",reason:"keyboard",event:fe}),Qt(fe);break;case"ArrowLeft":!k&&ne?gt(0):ie(fe,"previous");break;case"ArrowRight":!k&&ne?gt(-1):ie(fe,"next");break;case"Enter":if(ze.current!==-1&&We){const Ve=Te[ze.current],vt=M?M(Ve):!1;if(fe.preventDefault(),vt)return;En(fe,Ve,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else T&&Fe!==""&&he===!1&&(k&&fe.preventDefault(),En(fe,Fe,"createOption","freeSolo"));break;case"Escape":We?(fe.preventDefault(),fe.stopPropagation(),In(fe,"escape")):d&&(Fe!==""||k&&se.length>0||ne)&&(fe.preventDefault(),fe.stopPropagation(),Pe(fe));break;case"Backspace":if(k&&!G&&Fe===""&&se.length>0){const Ve=de===-1?se.length-1:de,vt=se.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:se[Ve]})}!k&&ne&&!G&&(bt(null),gt(-1));break;case"Delete":if(k&&!G&&Fe===""&&se.length>0&&de!==-1){const Ve=de,vt=se.slice();vt.splice(Ve,1),be(fe,vt,"removeOption",{option:se[Ve]})}!k&&ne&&!G&&(bt(null),gt(-1));break}},qe=ue=>{Ft(!0),te&&!le.current&&Qt(ue)},ut=ue=>{if(t(we)){ye.current.focus();return}Ft(!1),ge.current=!0,le.current=!1,a&&ze.current!==-1&&We?En(ue,Te[ze.current],"blur"):a&&T&&Fe!==""?En(ue,Fe,"blur","freeSolo"):l&&_t(ue,se,"blur"),In(ue,"blur")},Nt=ue=>{const fe=ue.target.value;Fe!==fe&&(it(fe),Ne(!1),j&&j(ue,fe,"input")),fe===""?!m&&!k&&be(ue,null,"clear"):Qt(ue)},Bt=ue=>{const fe=Number(ue.currentTarget.getAttribute("data-option-index"));ze.current!==fe&&$t({event:ue,index:fe,reason:"mouse"})},Dt=ue=>{$t({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},mt=ue=>{const fe=Number(ue.currentTarget.getAttribute("data-option-index"));En(ue,Te[fe],"selectOption"),zn.current=!1},At=ue=>fe=>{const Ve=se.slice();Ve.splice(ue,1),be(fe,Ve,"removeOption",{option:se[ue]})},Et=ue=>{be(ue,null,"removeOption",{option:se})},wt=ue=>{at?In(ue,"toggleInput"):Qt(ue)},Ht=ue=>{ue.currentTarget.contains(ue.target)&&ue.target.getAttribute("id")!==oe&&ue.preventDefault()},On=ue=>{ue.currentTarget.contains(ue.target)&&(ye.current.focus(),ce&&ge.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),ge.current=!1)},qn=ue=>{!v&&(Fe===""||!at)&&wt(ue)};let bn=T&&Fe.length>0;bn=bn||(k?se.length>0:se!==null);let dn=Te;return P&&(dn=Te.reduce((ue,fe,Ve)=>{const vt=P(fe);return ue.length>0&&ue[ue.length-1].group===vt?ue[ue.length-1].options.push(fe):ue.push({key:Ve,index:Ve,group:vt,options:[fe]}),ue},[])),v&&pt&&ut(),{getRootProps:(ue={})=>({...ue,onKeyDown:Le(ue),onMouseDown:Ht,onClick:On}),getInputLabelProps:()=>({id:`${oe}-label`,htmlFor:oe}),getInputProps:()=>({id:oe,value:Fe,onBlur:ut,onFocus:qe,onChange:Nt,onMouseDown:qn,"aria-activedescendant":We?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Mt?`${oe}-listbox`:void 0,"aria-expanded":Mt,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getItemProps:({index:ue=0}={})=>({...k&&{key:ue},...ne?{"data-item-index":ue}:{"data-tag-index":ue},tabIndex:-1,...!G&&{onDelete:k?At(ue):Et}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getTagProps:({index:ue})=>({key:ue,"data-tag-index":ue,tabIndex:-1,...!G&&{onDelete:At(ue)}}),getListboxProps:()=>({role:"listbox",id:`${oe}-listbox`,"aria-labelledby":`${oe}-label`,ref:Wn,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:fe})=>{const Ve=(k?se:[se]).some(Ke=>Ke!=null&&H(fe,Ke)),vt=M?M(fe):!1;return{key:R?.(fe)??ae(fe),tabIndex:-1,role:"option",id:`${oe}-option-${ue}`,onMouseMove:Bt,onClick:mt,onTouchStart:Dt,"data-option-index":ue,"aria-disabled":vt,"aria-selected":Ve}},id:oe,inputValue:Fe,value:se,dirty:bn,expanded:We&&Ce,popupOpen:We,focused:pt||de!==-1,anchorEl:Ce,setAnchorEl:$e,focusedItem:de,focusedTag:de,groupedOptions:dn}}function mue(e){return on("MuiListSubheader",e)}Gt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const gue=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 tn(s,mue,t)},yue=Ge("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]}})(Vn(({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}}]}))),kw=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:d=!1,...f}=n,c={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:d},m=gue(c);return h.jsx(yue,{as:a,className:jt(m.root,r),ref:t,ownerState:c,...f})});kw&&(kw.muiSkipListHighlight=!0);const vue=cr(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 bue(e){return on("MuiAutocomplete",e)}const Qn=Gt("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 IP,LP;const xue=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:d,popupOpen:f,size:c}=e,m={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",d&&"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 tn(m,bue,t)},Sue=Ge("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${Qn.tag}`]:t.tag},{[`& .${Qn.tag}`]:t[`tagSize${Tt(l)}`]},{[`& .${Qn.inputRoot}`]:t.inputRoot},{[`& .${Qn.input}`]:t.input},{[`& .${Qn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Qn.focused} .${Qn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Qn.clearIndicator}`]:{visibility:"visible"}},[`& .${Qn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Qn.inputRoot}`]:{[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:30},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:56},[`& .${Qn.input}`]:{width:0,minWidth:30}},[`& .${Oc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Oc.root}.${ti.sizeSmall}`]:{[`& .${Oc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Mi.root}`]:{padding:9,[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:39},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:65},[`& .${Qn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Qn.endAdornment}`]:{right:9}},[`& .${Mi.root}.${ti.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Qn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ni.root}`]:{paddingTop:19,paddingLeft:8,[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:39},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:65},[`& .${ni.input}`]:{padding:"7px 4px"},[`& .${Qn.endAdornment}`]:{right:9}},[`& .${ni.root}.${ti.sizeSmall}`]:{paddingBottom:1,[`& .${ni.input}`]:{padding:"2.5px 4px"}},[`& .${ti.hiddenLabel}`]:{paddingTop:8},[`& .${ni.root}.${ti.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Qn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ni.root}.${ti.hiddenLabel}.${ti.sizeSmall}`]:{[`& .${Qn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Qn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Qn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Qn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Qn.inputRoot}`]:{flexWrap:"wrap"}}}]}),wue=Ge("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Cue=Ge(Gc,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),kue=Ge(Gc,{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)"}}]}),Tue=Ge(Sk,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Vn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Mue=Ge(hd,{name:"MuiAutocomplete",slot:"Paper"})(Vn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Eue=Ge("div",{name:"MuiAutocomplete",slot:"Loading"})(Vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Oue=Ge("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Rue=Ge("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Vn(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Qn.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"},[`&.${Qn.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"},[`&.${Qn.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),[`&.${Qn.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}},[`&.${Qn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),$ue=Ge(kw,{name:"MuiAutocomplete",slot:"GroupLabel"})(Vn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Pue=Ge("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Qn.option}`]:{paddingLeft:24}}),Due=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:d,clearIcon:f=IP||(IP=h.jsx(vue,{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:T=!1,disabledItemsFocusable:M=!1,disableListWrap:R=!1,disablePortal:$=!1,filterOptions:P,filterSelectedOptions:N=!1,forcePopupIcon:V="auto",freeSolo:z=!1,fullWidth:W=!1,getLimitTagsText:H=me=>`+${me}`,getOptionDisabled:k,getOptionKey:I,getOptionLabel:F,isOptionEqualToValue:_,groupBy:j,handleHomeEndKeys:X=!n.freeSolo,id:Q,includeInputInList:te=!1,inputValue:Z,limitTags:G=-1,ListboxComponent:ne,ListboxProps:ce,loading:pe=!1,loadingText:oe="Loading…",multiple:ae=!1,noOptionsText:le="No options",onChange:ge,onClose:ye,onHighlightChange:we,onInputChange:Ce,onOpen:$e,open:de,openOnFocus:ke=!1,openText:et="Open",options:ze,PaperComponent:Ae,PopperComponent:se,popupIcon:bt=LP||(LP=h.jsx(oL,{})),readOnly:Fe=!1,renderGroup:it,renderInput:pt,renderOption:Ft,renderTags:_t,renderValue:at,selectOnFocus:Xe=!n.freeSolo,size:rt="medium",slots:Ne={},slotProps:he={},value:We,...Te}=n,{getRootProps:kt,getInputProps:Mt,getInputLabelProps:gt,getPopupIndicatorProps:ct,getClearProps:$t,getItemProps:Vt,getListboxProps:un,getOptionProps:vn,value:Bn,dirty:Wn,expanded:Qt,id:In,popupOpen:be,focused:zn,focusedItem:En,anchorEl:Xt,setAnchorEl:ie,inputValue:Pe,groupedOptions:Le}=hue({...n,componentName:"Autocomplete"}),qe=!w&&!T&&Wn&&!Fe,ut=(!z||V===!0)&&V!==!1,{onMouseDown:Nt}=Mt(),{ref:Bt,...Dt}=un(),mt=F||(me=>me.label??me),At={...n,disablePortal:$,expanded:Qt,focused:zn,fullWidth:W,getOptionLabel:mt,hasClearIcon:qe,hasPopupIcon:ut,inputFocused:En===-1,popupOpen:be,size:rt},Et=xue(At),wt={slots:{paper:Ae,popper:se,...Ne},slotProps:{chip:l,listbox:ce,...b,...he}},[Ht,On]=ir("listbox",{elementType:Rue,externalForwardedProps:wt,ownerState:At,className:Et.listbox,additionalProps:Dt,ref:Bt}),[qn,bn]=ir("paper",{elementType:hd,externalForwardedProps:wt,ownerState:At,className:Et.paper}),[dn,ue]=ir("popper",{elementType:Sk,externalForwardedProps:wt,ownerState:At,className:Et.popper,additionalProps:{disablePortal:$,style:{width:Xt?Xt.clientWidth:null},role:"presentation",anchorEl:Xt,open:be}});let fe;const Ve=me=>({className:Et.tag,disabled:T,...Vt(me)});if(ae?Bn.length>0&&(_t?fe=_t(Bn,Ve,At):at?fe=at(Bn,Ve,At):fe=Bn.map((me,Ee)=>{const{key:He,...yt}=Ve({index:Ee});return h.jsx(WI,{label:mt(me),size:rt,...yt,...wt.slotProps.chip},He)})):at&&Bn!=null&&(fe=at(Bn,Ve,At)),G>-1&&Array.isArray(fe)){const me=fe.length-G;!zn&&me>0&&(fe=fe.splice(0,G),fe.push(h.jsx("span",{className:Et.tag,children:H(me)},fe.length)))}const vt=it||(me=>h.jsxs("li",{children:[h.jsx($ue,{className:Et.groupLabel,ownerState:At,component:"div",children:me.group}),h.jsx(Pue,{className:Et.groupUl,ownerState:At,children:me.children})]},me.key)),Ke=Ft||((me,Ee)=>{const{key:He,...yt}=me;return h.jsx("li",{...yt,children:mt(Ee)},He)}),Zt=(me,Ee)=>{const He=vn({option:me,index:Ee});return Ke({...He,className:Et.option},me,{selected:He["aria-selected"],index:Ee,inputValue:Pe},At)},nn=wt.slotProps.clearIndicator,fn=wt.slotProps.popupIndicator;return h.jsxs(C.Fragment,{children:[h.jsx(Sue,{ref:t,className:jt(Et.root,d),ownerState:At,...kt(Te),children:pt({id:In,disabled:T,fullWidth:!0,size:rt==="small"?"small":void 0,InputLabelProps:gt(),InputProps:{ref:ie,className:Et.inputRoot,startAdornment:fe,onMouseDown:me=>{me.target===me.currentTarget&&Nt(me)},...(qe||ut)&&{endAdornment:h.jsxs(wue,{className:Et.endAdornment,ownerState:At,children:[qe?h.jsx(Cue,{...$t(),"aria-label":y,title:y,ownerState:At,...nn,className:jt(Et.clearIndicator,nn?.className),children:f}):null,ut?h.jsx(kue,{...ct(),disabled:T,"aria-label":be?v:et,title:be?v:et,ownerState:At,...fn,className:jt(Et.popupIndicator,fn?.className),children:bt}):null]})}},inputProps:{className:Et.input,disabled:T,readOnly:Fe,...Mt()}})}),Xt?h.jsx(Tue,{as:dn,...ue,children:h.jsxs(Mue,{as:qn,...bn,children:[pe&&Le.length===0?h.jsx(Eue,{className:Et.loading,ownerState:At,children:oe}):null,Le.length===0&&!z&&!pe?h.jsx(Oue,{className:Et.noOptions,ownerState:At,role:"presentation",onMouseDown:me=>{me.preventDefault()},children:le}):null,Le.length>0?h.jsx(Ht,{as:ne,...On,children:Le.map((me,Ee)=>j?vt({key:me.key,group:me.group,children:me.options.map((He,yt)=>Zt(He,me.index+yt))}):Zt(me,Ee))}):null]})}):null]})});function Aue({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a}){return pn.useEffect(()=>{o&&o(t)},[t,o]),h.jsx(fN,{children:h.jsxs(V6,{spacing:2,component:"section",children:[h.jsx(Nue,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:a}),h.jsx(bA,{height:"5px"})]})})}function eS(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function jue({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a}){const[s,l]=pn.useState(n||eS()),[d,f]=pn.useState(void 0);pn.useEffect(()=>{n&&l(n)},[n]);const[c,m]=pn.useState([]),{MalloyExplorerProvider:y,QueryPanel:v,ResizableCollapsiblePanel:b,ResultPanel:x,SourcePanel:w}=r;pn.useEffect(()=>{t&&t(s)},[t,s]);const{environmentName:S,packageName:T,versionId:M}=xo(a),{apiClients:R}=zr(),$=Ws({mutationFn:()=>{const z=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:()=>{$.reset(),f(void 0)},response:{result:{}}}),l({...s,query:z}),R.models.executeQueryModel(S,T,e.modelPath,{query:z,sourceName:void 0,queryName:void 0,versionId:M})},onSuccess:z=>{if(z){const W=JSON.parse(z.data.result);l({...s,malloyResult:W}),f(H=>H?{...H,executionState:"finished",response:{result:W}}:void 0)}},onError:z=>{f(void 0),console.error("Query execution error:",z)}}),[P,N]=pn.useState(e.sourceInfo.name);pn.useEffect(()=>{P!==e.sourceInfo.name&&(N(e.sourceInfo.name),l(eS()),f(void 0))},[e,P]);const V=pn.useCallback(z=>{l({...s,malloyQuery:z,malloyResult:void 0})},[s]);return P!==e.sourceInfo.name?h.jsx("div",{children:"Loading..."}):h.jsx(pN,{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:V,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(eS())})}),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{$.mutate()}catch(z){console.error("Error running query:",z)}}})}),h.jsx(x,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:z=>l({...s,malloyQuery:z}),submittedQuery:d,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Nue(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([Lo(()=>import("./index-BhkeAzTe.js"),__vite__mapDeps([0,1,2,3,4,5,6])),Lo(()=>import("./index-hVLQwLRj.js").then(d=>d.i),__vite__mapDeps([4,3,2]))]).then(([d,f])=>{l&&(n(d),o(f),s(!1))}).catch(d=>{console.error("Failed to load Malloy components:",d),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?h.jsx(OK,{children:h.jsx(pN,{children:h.jsx(bA,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):h.jsx(jue,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Ik(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:a}=xo(e),{apiClients:s}=zr();return co({queryKey:["package",r,o,n,a],queryFn:async()=>(await s.models.getModel(r,o,n,a)).data,enabled:t})}function kL({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a}){const[s,l]=pn.useState(r);pn.useEffect(()=>{l(r)},[r]);const{data:d,isError:f,isLoading:c,error:m}=Ik(a,!e),{modelPath:y}=xo(a),v=e||d;if(c&&!e)return h.jsx(ra,{text:"Fetching Model..."});if(f&&!e)return console.log("error",m),h.jsx(pa,{error:m,context:`ModelExplorer > ${y}`});if(!v)return h.jsx(ra,{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(kK,{variant:"outlined",children:[h.jsx(TK,{children:h.jsx(fr,{sx:{flexDirection:"row"},children:h.jsx(Due,{size:"small",id:"size-small-standard",disablePortal:!0,options:b,value:x,onChange:(w,S)=>{if(!S)return;const T=b.indexOf(S);T>=0&&(l(T),o?.(T))},renderInput:w=>h.jsx(hr,{...w}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),h.jsx(fN,{children:h.jsxs(fr,{spacing:2,component:"section",children:[Array.isArray(v.sourceInfos)&&v.sourceInfos.length>0&&h.jsx(Aue,{sourceAndPaths:v.sourceInfos.map(w=>({sourceInfo:JSON.parse(w),modelPath:y})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:a}),h.jsx(Kt,{height:"5px"})]})})]})}function Lk({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:s,initialSelectedSourceIndex:l,onChange:d,onSourceChange:f}){return h.jsxs(Yf,{open:e,onClose:t,fullScreen:!0,children:[h.jsxs(Gf,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,h.jsx(eo,{onClick:t,sx:{color:"text.secondary"},children:h.jsx(Jf,{})})]}),h.jsx(Kf,{children:a?h.jsx(kL,{resourceUri:n,data:r,existingQuery:s,initialSelectedSourceIndex:l,onChange:d,onSourceChange:f}):h.jsx("div",{children:"No valid import statement found in cell"})})]})}function Iue(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function Lue(e,t){if(e==null||e==="")return;const n=r=>`'${Iue(r)}'`;switch(t===void 0?zue(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=zP(e);return r&&`@${r}`}case"timestamp":{const r=zP(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 zue(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 zP(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 Tw="[A-Za-z_][A-Za-z0-9_]*",FP=e=>new RegExp(`^${Tw}$`).test(e);function zhe(e,t,n){const r=new Map,o=new RegExp(`^\\s*${n}:\\s*(${Tw})\\s+is\\b\\s*(.*)$`);let a;for(let s=0;s<e.length;s++){const l=e[s],d=new RegExp(`^\\s*source:\\s*(${Tw})\\s+is\\b`).exec(l);if(d){a=d[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 Fhe(e,t,n){const r=new RegExp(`^\\s*${t}:\\s*${n}\\s+is\\b`);return e.findIndex(o=>r.test(o))}const Bhe=e=>e.findIndex(t=>t.trimStart().startsWith("##")&&t.includes("artifact"));function Uhe(e){const t=new Map,n=o=>/^([A-Z_][A-Z0-9_]*)\s*::/.exec(o)?.[1],r=(o,a,s)=>{const l=a.trim(),d=n(l);d&&t.set(d,{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 Fue(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 BP=()=>typeof performance<"u"?performance.now():Date.now(),TL=200;function Bue(e){const t=Lue(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${TL} }`}function zk(e){const t=Fue(e);if(!(!t||t.refinement!==void 0||!FP(t.source)||!FP(t.view)))return{source:t.source,view:t.view}}const Uue=e=>zk(e)?.source;function _ue({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s,onDone:l}){const{theme:d}=Bl(),f=e?Bue(e):void 0;return h.jsxs(Yf,{open:e!==void 0,onClose:s,maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Gf,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[h.jsxs(Kt,{children:[e?h.jsxs(h.Fragment,{children:["Rows where"," ",h.jsx(Kt,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",h.jsx(Lt,{component:"div",variant:"caption",sx:{color:d.tileTitle,mt:.25},children:e?`The first ${TL} 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(Jf,{fontSize:"small"})})]}),h.jsxs(Kf,{dividers:!0,sx:{p:0,minHeight:240},children:[f===void 0&&e&&h.jsx(Lt,{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(Vue,{query:f,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:a,...l?{onDone:l}:{}})]}),h.jsxs(pj,{sx:{px:3,py:1.5},children:[f!==void 0&&h.jsx(Lt,{variant:"caption",sx:{mr:"auto",color:d.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:f,children:f}),h.jsx(Yo,{onClick:s,children:"Close"})]})]})}function Vue({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onDone:s}){const l=Ak({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:a}),{isSuccess:d,isError:f}=l,c=C.useRef(void 0);return C.useEffect(()=>{c.current=BP()},[e]),C.useEffect(()=>{c.current===void 0||!d&&!f||(s?.(d,BP()-c.current),c.current=void 0)},[d,f,s]),h.jsx(Kt,{sx:{p:1},children:h.jsx(Nk,{state:l,context:e})})}function Hue({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,onClose:a}){const s=u0({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:l}=Ik(s,e!==void 0),d=C.useMemo(()=>{const c=Uue(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=zk(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(Lk,{open:!0,onClose:a,resourceUri:s,data:l,title:`Explore: ${e}`,existingQuery:f,initialSelectedSourceIndex:d})}function _he({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:a,maxResultSize:s,onEvent:l}){const d=xo(e),{apiClients:f}=zr(),c=d.environmentName??"",m=d.packageName??"",y=d.versionId,v=!!d.environmentName&&!!d.packageName,{data:b,isSuccess:x,isError:w,error:S}=co({queryKey:["dashboard",c,m,y,t],queryFn:()=>f.dashboards.getDashboard(c,m,t,y),enabled:v}),T=b?.data,M=C.useMemo(()=>T?.givens??[],[T]),R=eI({specs:M,loaded:x,startingValues:T?.startingGivens,params:n,onGivensChange:r,documentKey:`${c}/${m}/${y??""}/${t}`,autorun:T?.autorun!==!1,environmentName:c,packageName:m,modelPath:T?.path,versionId:y,documentName:t}),{applied:$,declaredTypes:P,canSelf:N,onSelf:V}=R,[z,W]=C.useState(void 0),[H,k]=C.useState(void 0),I=C.useCallback(G=>{const ne=zk(G.context);ne!==void 0&&W({...ne,field:G.field,rawValue:G.rawValue,label:G.label})},[]),F=C.useMemo(()=>c0($,P),[$,P]),{drill:_,drillMenu:j}=tI({onNavigate:o,onSelf:V,canSelf:N,selfLabel:"Filter this dashboard",onRows:I}),X=C.useCallback(G=>({canDrill:_.canDrill,onClick:ne=>_.onClick({...ne,context:G})}),[_]);if(!v)return h.jsxs($c,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(w)return h.jsx(pa,{context:`${c} > ${m} > ${t}`,error:S});if(!x||!T)return h.jsx(ra,{text:"Loading dashboard…"});if(T.error)return h.jsxs(fr,{spacing:2,children:[h.jsx(UP,{manifest:T}),h.jsx($c,{severity:"error",children:T.error})]});const Q=T.path,te=T.tiles??[],Z=T.dashboardColumns??Wce;return h.jsxs(fr,{spacing:2,children:[h.jsx(UP,{manifest:T}),h.jsx(SL,{...R.panel,layout:"bar"}),Q===void 0?h.jsx($c,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):T.query!==void 0?h.jsx(PP,{environmentName:c,packageName:m,versionId:y,modelPath:Q,queryName:T.query,givens:$,declaredTypes:P,height:a,maxResultSize:s,drill:_}):te.length>0?h.jsx(Kce,{tiles:te,columns:Z,keyOf:(G,ne)=>`${ne}:${G.query}`,renderTile:G=>h.jsx(PP,{environmentName:c,packageName:m,versionId:y,modelPath:Q,tile:G.query,label:G.label,subtitle:G.subtitle,borderless:G.borderless,givens:$,declaredTypes:P,givenNames:G.givenNames,height:a??zce,maxResultSize:s,drill:X(G.query),onExplore:()=>{k(G.query),l?.({type:"dashboard.explored",tile:G.query})}})}):h.jsx($c,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),j,Q!==void 0&&h.jsxs(h.Fragment,{children:[h.jsx(_ue,{request:z,environmentName:c,packageName:m,...y===void 0?{}:{versionId:y},modelPath:Q,givens:F,onClose:()=>W(void 0),onDone:(G,ne)=>{z&&l?.({type:"dashboard.rows_shown",source:z.source,view:z.view,field:z.field,ok:G,durationMs:ne})}}),h.jsx(Hue,{tile:H,environmentName:c,packageName:m,...y===void 0?{}:{versionId:y},modelPath:Q,onClose:()=>k(void 0)})]})]})}function UP({manifest:e}){return h.jsx(Wue,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function Wue({title:e,description:t}){return h.jsxs(Kt,{children:[h.jsx(Lt,{variant:"h5",sx:{fontWeight:600},children:e}),t&&h.jsx(ab,{variant:"caption",children:t})]})}const que=cr(h.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),ML=C.createContext(void 0);function Yue({children:e,documentStorage:t}){const n=C.useMemo(()=>({documentStorage:t}),[t]);return h.jsx(ML.Provider,{value:n,children:e})}function Kue(){return C.useContext(ML)}const Gue=cr(h.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}));function EL({label:e,href:t,onClick:n}){return h.jsxs(a9,{...t===void 0?{component:"button",type:"button"}:{href:t},onClick:r=>{const o=r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||r.button!==0;t!==void 0&&o||(r.preventDefault(),n(r))},underline:"none","aria-label":`Back to ${e}`,sx:{display:"inline-flex",alignItems:"center",gap:.5,cursor:"pointer",color:"text.secondary",fontSize:"0.875rem",mb:2,border:0,p:0,background:"none",font:"inherit","&:hover":{color:"primary.main"}},children:[h.jsx(Gue,{sx:{fontSize:18}}),"Back to ",e]})}function Vhe(){const e=eg();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 Hhe(){const[e]=k4(),t=eg(),n=tl(),r=C.useMemo(()=>Object.fromEntries(e.entries()),[e]),o=C.useRef(new Set),a=C.useCallback((s,l)=>{const d=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 d)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 OL=cr(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"})),Que="publisher:resize";function Xue(e){return typeof e=="object"&&e!==null&&e.type===Que&&typeof e.height=="number"}function RL(e){return e.replace(/\/api\/v0\/?$/,"")}function Zue({server:e,environmentName:t,packageName:n,path:r}){const o=r.startsWith("public/")?r.slice(7):r;return`${RL(e)}/environments/${encodeURIComponent(t)}/packages/${encodeURIComponent(n)}/`+o}function Jue(e){try{const{environmentName:t,packageName:n,modelPath:r}=xo(e);return!t||!n||!r?null:{environmentName:t,packageName:n,dataAppPath:r}}catch{return null}}function Whe({resourceUri:e}){const{server:t,apiClients:n}=zr(),r=Jue(e),o=r?.environmentName??"",a=r?.packageName??"",s=r?.dataAppPath??"",l=C.useMemo(()=>Zue({server:t,environmentName:o,packageName:a,path:s}),[t,o,a,s]),d=co({queryKey:["data-apps",o,a],queryFn:()=>n.dataApps.listDataApps(o,a),enabled:!!r}).data?.data?.find(b=>b.path===s),f=d?.title??s,c=d?.fit==="viewport",m=C.useRef(null),[y,v]=C.useState(120);return C.useEffect(()=>{if(c)return;function b(x){Xue(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(Kt,{sx:{p:3,...c?{height:"100%",display:"flex",flexDirection:"column"}:{maxWidth:1200,mx:"auto"}},children:[h.jsxs(fr,{direction:"row",alignItems:"baseline",spacing:1,sx:{mb:1,flexShrink:0},children:[h.jsx(Lt,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:f}),h.jsx(Lt,{variant:"caption",color:"text.secondary",sx:{fontFamily:Ai},children:s}),h.jsx(Kt,{sx:{flex:1}}),h.jsx(Ui,{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(OL,{fontSize:"small"})})})]}),h.jsx(Kt,{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(Kt,{sx:{p:3,maxWidth:1200,mx:"auto"},children:[h.jsx(Lt,{variant:"h6",sx:{fontWeight:600},children:"Can't open data app"}),h.jsxs(Lt,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["This data app link is missing an environment, package, or path:",h.jsx(Kt,{component:"span",sx:{fontFamily:Ai,ml:1},children:e})]})]})}function us({title:e,count:t,description:n,action:r,children:o}){const a=C.useId();return h.jsxs(Kt,{component:"section","aria-labelledby":a,sx:{mb:4},children:[h.jsxs(fr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:n?0:1,minHeight:40},children:[h.jsxs(fr,{direction:"row",alignItems:"baseline",spacing:1,children:[h.jsx(Lt,{id:a,variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:e}),t!==void 0&&h.jsxs(Lt,{variant:"caption",color:"text.secondary",children:["(",t,")"]})]}),r]}),n&&h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:n}),h.jsx(Kt,{children:o})]})}function ede({resourceUri:e}){const{environmentName:t}=xo(e),{apiClients:n}=zr(),[r,o]=C.useState(!1),a=90,{data:s,isSuccess:l,isError:d,error:f}=co({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&&!d&&h.jsx(ra,{text:"Fetching About..."}),l&&c&&h.jsxs(us,{title:"Readme",children:[h.jsx(ab,{variant:"caption",children:r||!y?c:v}),y&&h.jsx(Kt,{sx:{mt:1},children:h.jsx(Sg,{label:r?"Read less":"Read more",onClick:()=>o(!r)})})]}),d&&h.jsx(pa,{error:f,context:`${t} > About`})]})}function tde(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=ik();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=It((w,S)=>{r?.(w,S)}),d=It(w=>{!r||w==null||s.start(w,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&d(t),s.clear),[o,t,d,s]);const f=w=>{r?.(w,"clickaway")},c=s.clear,m=C.useCallback(()=>{t!=null&&d(a??t*.5)},[t,a,d]),y=w=>S=>{const T=w.onBlur;T?.(S),m()},v=w=>S=>{const T=w.onFocus;T?.(S),c()},b=w=>S=>{const T=w.onMouseEnter;T?.(S),c()},x=w=>S=>{const T=w.onMouseLeave;T?.(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={...Qv(e),...Qv(w)};return{role:"presentation",...w,...S,onBlur:y(S),onFocus:v(S),onMouseEnter:b(S),onMouseLeave:x(S)}},onClickAway:f}}function _P(e){return e.substring(2).toLowerCase()}function nde(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function rde(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),d=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const c=mr(gp(t),l),m=It(b=>{const x=f.current;f.current=!1;const w=$o(l.current);if(!d.current||!l.current||"clientX"in b&&nde(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=_P(a),x=$o(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=_P(r),x=$o(l.current);return x.addEventListener(b,m),()=>{x.removeEventListener(b,m)}}},[m,r]),C.cloneElement(t,v)}function ode(e){return on("MuiSnackbarContent",e)}Gt("MuiSnackbarContent",["root","message","action"]);const ade=e=>{const{classes:t}=e;return tn({root:["root"],action:["action"],message:["message"]},ode,t)},ide=Ge(hd,{name:"MuiSnackbarContent",slot:"Root"})(Vn(({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(ew(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ew(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),sde=Ge("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),lde=Ge("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),cde=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:s="alert",...l}=n,d=n,f=ade(d);return h.jsxs(ide,{role:s,elevation:6,className:jt(f.root,o),ownerState:d,ref:t,...l,children:[h.jsx(sde,{className:f.message,ownerState:d,children:a}),r?h.jsx(lde,{className:f.action,ownerState:d,children:r}):null]})});function ude(e){return on("MuiSnackbar",e)}Gt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const dde=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Tt(n.vertical)}${Tt(n.horizontal)}`]};return tn(r,ude,t)},fde=Ge("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)}`]]}})(Vn(({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%)"}}}]}))),pde=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiSnackbar"}),r=fd(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:f,className:c,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:v=!1,message:b,onBlur:x,onClose:w,onFocus:S,onMouseEnter:T,onMouseLeave:M,open:R,resumeHideDuration:$,slots:P={},slotProps:N={},TransitionComponent:V,transitionDuration:z=o,TransitionProps:{onEnter:W,onExited:H,...k}={},...I}=n,F={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:d,disableWindowBlurListener:v,TransitionComponent:V,transitionDuration:z},_=dde(F),{getRootProps:j,onClickAway:X}=tde({...F}),[Q,te]=C.useState(!0),Z=$e=>{te(!0),H&&H($e)},G=($e,de)=>{te(!1),W&&W($e,de)},ne={slots:{transition:V,...P},slotProps:{content:y,clickAwayListener:m,transition:k,...N}},[ce,pe]=ir("root",{ref:t,className:[_.root,c],elementType:fde,getSlotProps:j,externalForwardedProps:{...ne,...I},ownerState:F}),[oe,{ownerState:ae,...le}]=ir("clickAwayListener",{elementType:rde,externalForwardedProps:ne,getSlotProps:$e=>({onClickAway:(...de)=>{const ke=de[0];$e.onClickAway?.(...de),!ke?.defaultMuiPrevented&&X(...de)}}),ownerState:F}),[ge,ye]=ir("content",{elementType:cde,shouldForwardComponentProp:!0,externalForwardedProps:ne,additionalProps:{message:b,action:a},ownerState:F}),[we,Ce]=ir("transition",{elementType:Ym,externalForwardedProps:ne,getSlotProps:$e=>({onEnter:(...de)=>{$e.onEnter?.(...de),G(...de)},onExited:(...de)=>{$e.onExited?.(...de),Z(...de)}}),additionalProps:{appear:!0,in:R,timeout:z,direction:s==="top"?"down":"up"},ownerState:F});return!R&&Q?null:h.jsx(oe,{...le,...P.clickAwayListener&&{ownerState:ae},children:h.jsx(ce,{...pe,children:h.jsx(we,{...Ce,children:f||h.jsx(ge,{...ye})})})})});let Mw;function hde(e){Mw=e}function VP(e){if(Mw)try{Mw(e)}catch{}}function $l(e,t,n){return(async r=>{const o=Date.now();try{const a=await n(r);return VP({type:"console.mutation",resource:e,action:t,ok:!0,durationMs:Date.now()-o}),a}catch(a){throw VP({type:"console.mutation",resource:e,action:t,ok:!1,durationMs:Date.now()-o,reason:a instanceof Error?a.message:"An unknown error occurred"}),a}})}function yp({mutationFn:e,success:t,invalidates:n,closeDialog:r,resource:o,action:a}){const s=dd(),[l,d]=C.useState(""),f=Ws({mutationFn:$l(o,a,e),onSuccess(){r();for(const c of n)s.invalidateQueries({queryKey:c});d(t)},onError(c){d(c instanceof Error?c.message:"An unknown error occurred")}});return{mutate:f.mutate,isPending:f.isPending,notice:h.jsx(pde,{open:l!=="",autoHideDuration:6e3,onClose:()=>d(""),message:l})}}const $L="https://docs.malloydata.dev/documentation",HP=`${$L}/user_guides/publishing`,nv="https://github.com/malloydata/publisher/blob/main/docs",kc={docsHome:`${$L}/`,publishing:`${HP}/publishing`,mcpAgents:`${HP}/mcp_agents`,surfaces:`${nv}/choosing-a-surface.md`,givens:`${nv}/givens.md`,materialization:`${nv}/materialization.md`,connections:`${nv}/connections.md`};function mde({resourceUri:e}){const[t,n]=C.useState(!1),{apiClients:r}=zr(),{environmentName:o}=xo(e),a=yp({mutationFn(l){return r.packages.createPackage(o,{name:l.name,description:l.description,location:l.location})},success:"Package created",invalidates:[["packages",o]],closeDialog:()=>n(!1),resource:"package",action:"create"}),s=l=>{l.preventDefault();const d=new FormData(l.currentTarget),f=d.get("name")?.toString(),c=d.get("description")?.toString(),m=d.get("location")?.toString();a.mutate({name:f,description:c,location:m})};return h.jsxs(h.Fragment,{children:[h.jsx(xg,{label:"Package",onClick:()=>n(!0)}),h.jsx(oa,{open:t,onClose:()=>n(!1),title:"New package",description:h.jsxs(h.Fragment,{children:["A package is a directory of Malloy models and their data. Give its location as a GitHub, S3 or GCS URL, or an absolute path the server can read; see the"," ",h.jsx(Kt,{component:"a",href:kc.publishing,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary"},children:"package format"}),"."]}),actions:h.jsxs(h.Fragment,{children:[h.jsx(Yo,{disabled:a.isPending,onClick:()=>n(!1),children:"Cancel"}),h.jsx(Yo,{type:"submit",form:"package-form",variant:"contained",loading:a.isPending,children:"Create package"})]}),children:h.jsx("form",{onSubmit:s,id:"package-form",children:h.jsxs(fr,{sx:{gap:2},children:[h.jsx(ai,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),h.jsx(ai,{id:"description",name:"description",label:"Description",multiline:!0,rows:3,fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),h.jsx(ai,{id:"location",name:"location",label:"Location",type:"text",placeholder:"e.g. s3://my-bucket/my-package.zip",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}})]})})}),a.notice]})}const gde=cr(h.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}));function C0({icon:e,tint:t,label:n,mono:r,description:o,rightLabel:a,trailingAction:s,onClick:l,ariaLabel:d}){const f=!!l;return h.jsxs(Kt,{onClick:l,onKeyDown:f?c=>{l&&(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),l(c))}:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":d,sx:c=>({display:"flex",alignItems:"center",gap:1.5,py:1,px:1,mx:-1,cursor:f?"pointer":"default",borderRadius:1.5,transition:"background-color 0.1s","&:hover":f?{backgroundColor:c.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"grey.100"}:void 0,"&:focus-visible":f?{outline:"2px solid",outlineColor:"primary.main",outlineOffset:2}:void 0}),children:[h.jsx(Kt,{sx:{width:32,height:32,borderRadius:1,bgcolor:t,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e}),h.jsxs(Kt,{sx:{flex:1,minWidth:0,display:"flex",alignItems:"baseline",gap:1.5},children:[h.jsx(Lt,{variant:"body2",sx:{...r?{fontFamily:Ai}:{},flexShrink:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o&&h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})]}),a&&h.jsx(Lt,{variant:"caption",color:"text.secondary",sx:{flexShrink:0},children:a}),s&&h.jsx(Kt,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:s})]})}const PL=cr(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"})),yde=Gt("MuiBox",["root"]),vde=BN(),Ta=oC({themeId:mp,defaultTheme:vde,defaultClassName:yde.root,generateClassName:MN.generate}),k0=dC({createStyledComponent:Ge("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Hn({props:e,name:"MuiStack"})}),WP=Gt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function bde(e){return on("MuiListItemIcon",e)}const qP=Gt("MuiListItemIcon",["root","alignItemsFlexStart"]),xde=e=>{const{alignItems:t,classes:n}=e;return tn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},bde,n)},Sde=Ge("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Vn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Fk=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=C.useContext(Dl),s={...n,alignItems:a.alignItems},l=xde(s);return h.jsx(Sde,{className:jt(l.root,r),ownerState:s,ref:t,...o})});function wde(e){return on("MuiListItemText",e)}const Df=Gt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Cde=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return tn({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},wde,t)},kde=Ge("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Df.primary}`]:t.primary},{[`& .${Df.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,[`.${_$.root}:where(& .${Df.primary})`]:{display:"block"},[`.${_$.root}:where(& .${Df.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Bk=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:c,slots:m={},slotProps:y={},...v}=n,{dense:b}=C.useContext(Dl);let x=l??r,w=f;const S={...n,disableTypography:a,inset:s,primary:!!x,secondary:!!w,dense:b},T=Cde(S),M={slots:m,slotProps:{primary:d,secondary:c,...y}},[R,$]=ir("root",{className:jt(T.root,o),elementType:kde,externalForwardedProps:{...M,...v},ownerState:S,ref:t}),[P,N]=ir("primary",{className:T.primary,elementType:br,externalForwardedProps:M,ownerState:S}),[V,z]=ir("secondary",{className:T.secondary,elementType:br,externalForwardedProps:M,ownerState:S});return x!=null&&x.type!==br&&!a&&(x=h.jsx(P,{variant:b?"body2":"body1",component:N?.variant?void 0:"span",...N,children:x})),w!=null&&w.type!==br&&!a&&(w=h.jsx(V,{variant:"body2",color:"textSecondary",...z,children:w})),h.jsxs(R,{...$,children:[x,w]})});function Tde(e){return on("MuiMenuItem",e)}const Kh=Gt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Mde=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Ede=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=tn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Tde,s);return{...s,...l}},Ode=Ge(od,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Mde})(Vn(({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"}},[`&.${Kh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Kh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Kh.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)}},[`&.${Kh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WP.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WP.inset}`]:{marginLeft:52},[`& .${Df.root}`]:{marginTop:0,marginBottom:0},[`& .${Df.inset}`]:{paddingLeft:36},[`& .${qP.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,[`& .${qP.root} svg`]:{fontSize:"1.25rem"}}}]}))),Wo=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:c,className:m,...y}=n,v=C.useContext(Dl),b=C.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),x=C.useRef(null);Po(()=>{r&&x.current&&x.current.focus()},[r]);const w={...n,dense:b.dense,divider:s,disableGutters:l},S=Ede(n),T=mr(x,t);let M;return n.disabled||(M=c!==void 0?c:-1),h.jsx(Dl.Provider,{value:b,children:h.jsx(Ode,{ref:T,role:f,tabIndex:M,component:o,focusVisibleClassName:jt(S.focusVisible,d),className:jt(S.root,m),...y,ownerState:w,classes:S})})}),Pl={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:[]},hm={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",databricks:"databricksConnection",mysql:"mysqlConnection",duckdb:"duckdbConnection",motherduck:"motherduckConnection",ducklake:"ducklakeConnection",publisher:"publisherConnection"},DL=Object.values(bR).filter(e=>e!==bR.Publisher),Ew={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",gcs:"gcsConnection",s3:"s3Connection",azure:"azureConnection"},Xm=[{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"}}],Zm=[{label:"Key ID",name:"keyId",type:"text",required:!0},{label:"Secret",name:"secret",type:"password",required:!0}],Rde=[{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 ib(e){return e==="postgres"||e==="bigquery"||e==="snowflake"?Pl[e]||[]:e==="s3"?Xm:e==="gcs"?Zm:e==="azure"?Rde:[]}function $de({onSubmit:e,isSubmitting:t}){const[n,r]=C.useState(!1),[o,a]=C.useState("postgres"),[s,l]=C.useState([]),[d,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 R=>{R.preventDefault();const $=new FormData(R.currentTarget),P=$.get("name")?.toString(),N=$.get("type")?.toString(),V=Pl[N];if(!P)throw new Error("Name is required");if(!N)throw new Error("Type is required");let z;if(N==="ducklake"){const W={};if(d==="postgres"){const I=Pl.postgres,F={};if(I.forEach(_=>{const j=$.get(`ducklake_pg_${_.name}`)?.toString();j&&(F[_.name]=j)}),Object.keys(F).length===0)throw new Error("DuckLake requires catalog connection");W.postgresConnection=F}const H=$.get("ducklake_bucketUrl")?.toString();if(!H)throw new Error("DuckLake requires a bucket URL");const k={bucketUrl:H};if(c==="s3"){const I={};if(Xm.forEach(F=>{const _=$.get(`ducklake_s3_${F.name}`)?.toString();_&&(I[F.name]=_)}),I.provider==="credential_chain")delete I.accessKeyId,delete I.secretAccessKey,delete I.sessionToken;else{if(delete I.chain,!I.accessKeyId)throw new Error("S3 Access Key ID is required");if(!I.secretAccessKey)throw new Error("S3 Secret Access Key is required")}Object.keys(I).length>0&&(k.s3Connection=I)}else if(c==="gcs"){const I={};if(Zm.forEach(F=>{const _=$.get(`ducklake_gcs_${F.name}`)?.toString();_&&(I[F.name]=_)}),!I.keyId)throw new Error("GCS Key ID is required");if(!I.secret)throw new Error("GCS Secret is required");Object.keys(I).length>0&&(k.gcsConnection=I)}z={name:P,type:N,ducklakeConnection:{catalog:W,storage:k}}}else if(N==="duckdb"){if(s.length===0)throw new Error("DuckDB connection must have at least one attached database");const W=s.map((H,k)=>{const I=H.dbType,F=$.get(`attachedDb_${k}_name`)?.toString();if(!F)throw new Error(`Attached database at index ${k} must have a name`);const _={name:F,type:I},j=ib(I);if(j&&j.length>0){const X={};if(j.forEach(te=>{const Z=$.get(`attachedDb_${k}_${te.name}`)?.toString();Z&&(X[te.name]=Z)}),I==="s3"){if(X.provider==="credential_chain")delete X.accessKeyId,delete X.secretAccessKey,delete X.sessionToken;else if(delete X.chain,!X.accessKeyId||!X.secretAccessKey)throw new Error(`Attached database "${F}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const Q=Ew[I];Q&&(_[Q]=X)}return _});z={name:P,type:N,duckdbConnection:{attachedDatabases:W}}}else{const W={};if(V.forEach(H=>{const k=$.get(H.name)?.toString();k&&(W[H.name]=k)}),N==="postgres"){if(!W.connectionString?.trim()){const H=["host","port","databaseName","userName","password"];for(const k of H)if(!W[k])throw new Error(`${V.find(I=>I.name===k)?.label||k} is required`)}}else if(N==="bigquery"){if(!W.serviceAccountKeyJson)throw new Error("Service Account Key JSON is required")}else if(N==="snowflake"){if(!W.account)throw new Error("Account is required");if(!W.username)throw new Error("Username is required");if(!W.warehouse)throw new Error("Warehouse is required");if(!W.password&&!W.privateKey)throw new Error("Either password or private key is required")}else if(N==="trino"){if(!W.server)throw new Error("Server is required");if(!W.user)throw new Error("User is required");if(W.server.trim().startsWith("https://")&&!W.password&&!W.peakaKey)throw new Error("Password is required for HTTPS connections (or use Peaka Key)")}else if(N==="mysql"){const H=["host","port","database","user","password"];for(const k of H)if(!W[k])throw new Error(`${V.find(I=>I.name===k)?.label||k} is required`)}else if(N==="motherduck"){if(!W.accessToken)throw new Error("Access Token is required")}else if(N==="databricks"){if(!W.host)throw new Error("Host is required");if(!W.path)throw new Error("HTTP Path is required");const H=W.oauthClientId&&W.oauthClientSecret;if(!W.token&&!H)throw new Error("Either Access Token or OAuth Client ID + Secret is required")}z={name:P,type:N,[hm[N]]:W}}await e(z),x()},S=()=>{l([...s,{name:"",dbType:"postgres"}])},T=R=>{l(s.filter(($,P)=>P!==R))},M=(R,$)=>{const P=[...s];P[R]={...P[R],dbType:$},l(P)};return h.jsxs(pn.Fragment,{children:[h.jsx(xg,{label:"Connection",onClick:b}),h.jsx(oa,{open:n,onClose:x,title:"New connection",description:"Add a connection so packages in this environment can query your database with Malloy.",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{disabled:t,onClick:x,children:"Cancel"}),h.jsx(uo,{type:"submit",form:"connection-form",variant:"contained",loading:t,children:"Create connection"})]}),children:h.jsx("form",{onSubmit:w,id:"connection-form",children:h.jsxs(k0,{sx:{gap:2},children:[h.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small"}),h.jsx(hr,{id:"type",name:"type",label:"Connection Type",fullWidth:!0,size:"small",value:o,select:!0,onChange:R=>a(R.target.value),children:DL.map(R=>h.jsx(Wo,{value:R,children:R},R))}),o==="ducklake"?h.jsxs(Ta,{sx:{mt:2},children:[h.jsxs(Ta,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),h.jsx(hr,{id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,size:"small",value:d,select:!0,onChange:R=>f(R.target.value),children:h.jsx(Wo,{value:"postgres",children:"PostgreSQL"})}),d==="postgres"&&h.jsx(h.Fragment,{children:Pl.postgres.map(R=>h.jsx(hr,{id:`ducklake_pg_${R.name}`,name:`ducklake_pg_${R.name}`,label:R.label,type:R.type,fullWidth:!0,size:"small"},`pg_${R.name}`))})]}),h.jsxs(Ta,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),h.jsxs(hr,{id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,size:"small",value:c,select:!0,onChange:R=>m(R.target.value),children:[h.jsx(Wo,{value:"s3",children:"S3"}),h.jsx(Wo,{value:"gcs",children:"GCS"})]}),h.jsx(hr,{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,size:"small"}),c==="s3"&&h.jsxs(h.Fragment,{children:[h.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),Xm.filter(R=>R.visibleWhen?y===R.visibleWhen.value:!0).map(R=>h.jsx(hr,{id:`ducklake_s3_${R.name}`,name:`ducklake_s3_${R.name}`,label:R.label,type:R.selectOptions?void 0:R.type,fullWidth:!0,size:"small",required:R.required,select:!!R.selectOptions,defaultValue:R.selectOptions?y:void 0,onChange:R.name==="provider"?$=>v($.target.value):void 0,placeholder:R.name==="region"?"us-east-1":void 0,children:R.selectOptions?.map($=>h.jsx(Wo,{value:$.value,children:$.label},$.value))},`s3_${R.name}`))]}),c==="gcs"&&h.jsxs(h.Fragment,{children:[h.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),Zm.map(R=>h.jsx(hr,{id:`ducklake_gcs_${R.name}`,name:`ducklake_gcs_${R.name}`,label:R.label,type:R.type,fullWidth:!0,size:"small",required:R.required},`gcs_${R.name}`))]})]})]}):o==="duckdb"?h.jsxs(Ta,{sx:{mt:2},children:[h.jsxs(Ta,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),h.jsx(Sg,{label:"Database",icon:h.jsx(nk,{}),onClick:S,ariaLabel:"Add database"})]}),s.length===0&&h.jsx(br,{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((R,$)=>{const P=ib(R.dbType);return h.jsxs(Ta,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsxs(Ta,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsxs(br,{variant:"subtitle2",children:["Database ",$+1]}),h.jsx(Gc,{onClick:()=>T($),size:"small",color:"error",children:h.jsx(PL,{fontSize:"small"})})]}),h.jsx(hr,{required:!0,id:`attachedDb_${$}_name`,name:`attachedDb_${$}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:R.name}),h.jsx(hr,{id:`attachedDb_${$}_type`,name:`attachedDb_${$}_type`,label:"Database Type",fullWidth:!0,size:"small",value:R.dbType,select:!0,onChange:N=>M($,N.target.value),children:Object.values(gN).map(N=>h.jsx(Wo,{value:N,children:N},N))}),P.filter(N=>N.visibleWhen?(R[N.visibleWhen.field]||P.find(V=>V.name===N.visibleWhen?.field)?.selectOptions?.[0]?.value)===N.visibleWhen.value:!0).map(N=>h.jsx(hr,{id:`attachedDb_${$}_${N.name}`,name:`attachedDb_${$}_${N.name}`,label:N.label,type:N.selectOptions?void 0:N.type,fullWidth:!0,size:"small",required:N.required,select:!!N.selectOptions,defaultValue:N.selectOptions?.[0]?.value,onChange:N.selectOptions?V=>{const z=[...s];z[$]={...z[$],[N.name]:V.target.value},l(z)}:void 0,children:N.selectOptions?.map(V=>h.jsx(Wo,{value:V.value,children:V.label},V.value))},N.name))]},$)})]}):Pl[o].map(R=>h.jsx(hr,{id:R.name,name:R.name,label:R.label,type:R.type,fullWidth:!0,size:"small",required:R.required},R.name))]})})})]})}function Pde({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),s=()=>{a(!0)},l=()=>{a(!1),t()};return h.jsxs(pn.Fragment,{children:[h.jsxs(Wo,{"aria-label":`Delete connection ${e?.name??""}`.trim(),onClick:d=>{d.stopPropagation(),s()},sx:{color:"error.main"},children:[h.jsx(Fk,{sx:{color:"inherit"},children:h.jsx(Gb,{fontSize:"small"})}),h.jsx(Bk,{children:"Delete"})]}),h.jsx(oa,{open:o,onClose:l,title:"Delete connection",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{onClick:l,children:"Cancel"}),h.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>r(),loading:n,children:"Delete connection"})]}),children:h.jsxs(br,{variant:"body2",children:["Delete ",h.jsx("strong",{children:e.name}),"? Packages that query through it stop working, and this cannot be undone."]})})]})}const YP=new Set(["password","connectionString","privateKey","privateKeyPass","serviceAccountKeyJson","token","oauthClientSecret","accessToken","peakaKey","secret","secretAccessKey","sessionToken","clientSecret","sasUrl"]);function KP(e){const t=e.duckdbConnection?.attachedDatabases;return!t||t.length===0?[]:t.map(n=>({name:n.name||"",dbType:n.type||"postgres"}))}function GP(e){const t=e.ducklakeConnection;return t&&t.storage?.gcsConnection?"gcs":"s3"}function Dde({connection:e,onSubmit:t,isSubmitting:n,onCloseDialog:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(e.type),d=pn.useMemo(()=>new Set(e.withheldFields??[]),[e.withheldFields]),[f,c]=C.useState(()=>KP(e)),[m,y]=C.useState("postgres"),[v,b]=C.useState(()=>GP(e)),[x,w]=C.useState(()=>e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),S=()=>{c(KP(e)),l(e.type),w(e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),y("postgres"),b(GP(e)),a(!0)},T=()=>{a(!1),r?.()},M=async z=>{z.preventDefault();const W=new FormData(z.currentTarget),H=W.get("name")?.toString(),k=W.get("type")?.toString(),I=Pl[k];if(!H)throw new Error("Name is required");if(!k)throw new Error("Type is required");let F;if(k==="ducklake"){const _={};if(m==="postgres"){const Q=Pl.postgres,te={};if(Q.forEach(Z=>{const G=W.get(`ducklake_pg_${Z.name}`)?.toString();G&&(te[Z.name]=G)}),Object.keys(te).length===0)throw new Error("DuckLake requires catalog connection");_.postgresConnection=te}const j=W.get("ducklake_bucketUrl")?.toString();if(!j)throw new Error("DuckLake requires a bucket URL");const X={bucketUrl:j};if(v==="s3"){const Q={};Xm.forEach(Z=>{const G=W.get(`ducklake_s3_${Z.name}`)?.toString();G&&(Q[Z.name]=G)});const te=e.ducklakeConnection?.storage?.s3Connection;if(te&&(!Q.provider&&te.provider&&(Q.provider=te.provider),!Q.chain&&te.chain&&(Q.chain=te.chain),!Q.accessKeyId&&te.accessKeyId&&(Q.accessKeyId=te.accessKeyId)),Q.provider==="credential_chain")delete Q.accessKeyId,delete Q.secretAccessKey,delete Q.sessionToken;else if(delete Q.chain,!Q.accessKeyId)throw new Error("S3 Access Key ID is required");Object.keys(Q).length>0&&(X.s3Connection=Q)}else if(v==="gcs"){const Q={};Zm.forEach(Z=>{const G=W.get(`ducklake_gcs_${Z.name}`)?.toString();G&&(Q[Z.name]=G)});const te=e.ducklakeConnection?.storage?.gcsConnection;if(te&&!Q.keyId&&te.keyId&&(Q.keyId=te.keyId),!Q.keyId)throw new Error("GCS Key ID is required");Object.keys(Q).length>0&&(X.gcsConnection=Q)}F={name:H,type:k,ducklakeConnection:{catalog:_,storage:X}}}else if(k==="duckdb"){if(f.length===0)throw new Error("DuckDB connection must have at least one attached database");const _=f.map((j,X)=>{const Q=j.dbType,te=W.get(`attachedDb_${X}_name`)?.toString();if(!te)throw new Error(`Attached database at index ${X} must have a name`);const Z={name:te,type:Q},G=ib(Q);if(G&&G.length>0){const ne={};if(G.forEach(pe=>{const oe=W.get(`attachedDb_${X}_${pe.name}`)?.toString();oe&&(ne[pe.name]=oe)}),Q==="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 ce=Ew[Q];ce&&(Z[ce]=ne)}return Z});F={name:H,type:k,duckdbConnection:{attachedDatabases:_}}}else{const _=e[hm[k]]||{},j={};if(I.forEach(X=>{const Q=W.get(X.name)?.toString(),te=_[X.name];Q?j[X.name]=Q:YP.has(X.name)||(Q!==void 0?j[X.name]=Q:te&&(j[X.name]=te))}),k==="postgres"){const X=["host","port","databaseName","userName"],Q=d.has("postgresConnection.connectionString");if(!(j.connectionString?.trim()||Q)){const te=X;for(const Z of te)if(!j[Z])throw new Error(`${I.find(G=>G.name===Z)?.label||Z} is required`)}}else if(k==="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(k==="trino"){if(!j.server)throw new Error("Server is required");if(!j.user)throw new Error("User is required")}else if(k==="mysql"){const X=["host","port","database","user"];for(const Q of X)if(!j[Q])throw new Error(`${I.find(te=>te.name===Q)?.label||Q} is required`)}else if(k==="databricks"){if(!j.host)throw new Error("Host is required");if(!j.path)throw new Error("HTTP Path is required")}F={name:H,type:k,[hm[k]]:j}}await t(F),T()},R=()=>{c([...f,{name:"",dbType:"postgres"}])},$=z=>{c(f.filter((W,H)=>H!==z))},P=(z,W)=>{const H=[...f];H[z]={...H[z],dbType:W},c(H)},N=(z,W)=>{const H=e.duckdbConnection?.attachedDatabases;if(!H||!H[z])return"";const k=H[z],I=Ew[k.type||""];return I&&k[I]?k[I][W]??"":""},V=z=>{const W=e.ducklakeConnection;if(!W)return"";if(z.startsWith("pg_")){const H=z.replace("pg_","");return W.catalog?.postgresConnection?.[H]??""}if(z==="bucketUrl")return W.storage?.bucketUrl??"";if(z.startsWith("s3_")){const H=z.replace("s3_","");return W.storage?.s3Connection?.[H]??""}if(z.startsWith("gcs_")){const H=z.replace("gcs_","");return W.storage?.gcsConnection?.[H]??""}return""};return h.jsxs(pn.Fragment,{children:[h.jsxs(Wo,{"aria-label":`Edit connection ${e?.name??""}`.trim(),onClick:z=>{z.preventDefault(),z.stopPropagation(),S()},children:[h.jsx(Fk,{children:h.jsx(KC,{fontSize:"small"})}),h.jsx(Bk,{children:"Edit"})]}),h.jsx(oa,{open:o,onClose:T,title:"Edit connection",description:"Change how packages in this environment reach your database.",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{disabled:n,onClick:T,children:"Cancel"}),h.jsx(uo,{type:"submit",form:"connection-form",variant:"contained",loading:n,children:"Save changes"})]}),children:h.jsx("form",{onSubmit:M,id:"connection-form",children:h.jsxs(k0,{sx:{gap:2},children:[h.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",defaultValue:e.name}),h.jsx(hr,{id:"type",name:"type",label:"Connection Type",fullWidth:!0,size:"small",value:s,select:!0,onChange:z=>l(z.target.value),children:DL.map(z=>h.jsx(Wo,{value:z,children:z},z))}),s==="ducklake"?h.jsxs(Ta,{sx:{mt:2},children:[h.jsxs(Ta,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),h.jsx(hr,{id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,size:"small",value:m,select:!0,onChange:z=>y(z.target.value),children:h.jsx(Wo,{value:"postgres",children:"PostgreSQL"})}),m==="postgres"&&h.jsx(h.Fragment,{children:Pl.postgres.map(z=>h.jsx(hr,{id:`ducklake_pg_${z.name}`,name:`ducklake_pg_${z.name}`,label:z.label,type:z.type,fullWidth:!0,size:"small",defaultValue:V(`pg_${z.name}`)},`pg_${z.name}`))})]}),h.jsxs(Ta,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),h.jsxs(hr,{id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,size:"small",value:v,select:!0,onChange:z=>b(z.target.value),children:[h.jsx(Wo,{value:"s3",children:"S3"}),h.jsx(Wo,{value:"gcs",children:"GCS"})]}),h.jsx(hr,{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,size:"small",defaultValue:V("bucketUrl")}),v==="s3"&&h.jsxs(h.Fragment,{children:[h.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),Xm.filter(z=>z.visibleWhen?x===z.visibleWhen.value:!0).map(z=>h.jsx(hr,{id:`ducklake_s3_${z.name}`,name:`ducklake_s3_${z.name}`,label:z.label,type:z.selectOptions?void 0:z.type,fullWidth:!0,size:"small",required:z.required&&z.name!=="secretAccessKey",select:!!z.selectOptions,defaultValue:z.selectOptions?x:V(`s3_${z.name}`),onChange:z.name==="provider"?W=>w(W.target.value):void 0,placeholder:z.name==="region"?"us-east-1":z.name==="secretAccessKey"&&d.has("ducklakeConnection.storage.s3Connection.secretAccessKey")?"Leave empty to keep existing":void 0,children:z.selectOptions?.map(W=>h.jsx(Wo,{value:W.value,children:W.label},W.value))},`s3_${z.name}`))]}),v==="gcs"&&h.jsxs(h.Fragment,{children:[h.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),Zm.map(z=>h.jsx(hr,{id:`ducklake_gcs_${z.name}`,name:`ducklake_gcs_${z.name}`,label:z.label,type:z.type,fullWidth:!0,size:"small",required:z.required&&z.name!=="secret",defaultValue:V(`gcs_${z.name}`),placeholder:z.name==="secret"&&d.has("ducklakeConnection.storage.gcsConnection.secret")?"Leave empty to keep existing":void 0},`gcs_${z.name}`))]})]})]}):s==="duckdb"?h.jsxs(Ta,{sx:{mt:2},children:[h.jsxs(Ta,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),h.jsx(Sg,{label:"Database",icon:h.jsx(nk,{}),onClick:R,ariaLabel:"Add database"})]}),f.length===0&&h.jsx(br,{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((z,W)=>{const H=ib(z.dbType);return h.jsxs(Ta,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[h.jsxs(Ta,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[h.jsxs(br,{variant:"subtitle2",children:["Database ",W+1]}),h.jsx(Gc,{"aria-label":`Remove attached database ${W+1}`,onClick:()=>$(W),size:"small",color:"error",children:h.jsx(PL,{fontSize:"small"})})]}),h.jsx(hr,{required:!0,id:`attachedDb_${W}_name`,name:`attachedDb_${W}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:z.name}),h.jsx(hr,{id:`attachedDb_${W}_type`,name:`attachedDb_${W}_type`,label:"Database Type",fullWidth:!0,size:"small",value:z.dbType,select:!0,onChange:k=>P(W,k.target.value),children:Object.values(gN).map(k=>h.jsx(Wo,{value:k,children:k},k))}),H.filter(k=>k.visibleWhen?(z[k.visibleWhen.field]||N(W,k.visibleWhen.field)||H.find(I=>I.name===k.visibleWhen?.field)?.selectOptions?.[0]?.value)===k.visibleWhen.value:!0).map(k=>h.jsx(hr,{id:`attachedDb_${W}_${k.name}`,name:`attachedDb_${W}_${k.name}`,label:k.label,type:k.selectOptions?void 0:k.type,fullWidth:!0,size:"small",required:k.required,select:!!k.selectOptions,defaultValue:N(W,k.name)||k.selectOptions?.[0]?.value,onChange:k.selectOptions?I=>{const F=[...f];F[W]={...F[W],[k.name]:I.target.value},c(F)}:void 0,children:k.selectOptions?.map(I=>h.jsx(Wo,{value:I.value,children:I.label},I.value))},k.name))]},W)})]}):Pl[s].map(z=>{const W=e?.[hm[s]??""]?.[z.name??""]??"",H=z.type==="password"||YP.has(z.name),k=d.has(`${hm[s]??""}.${z.name}`);return h.jsx(hr,{id:z.name,name:z.name,label:z.label,type:z.type,fullWidth:!0,size:"small",required:z.required&&!H&&!W,defaultValue:W,placeholder:k?"Leave empty to keep existing":void 0,helperText:H?k?"Stored value is not shown. Leave empty to keep it.":"No value stored.":void 0},z.name)})]})})})]})}function QP(e,t){return!e||e.type!=="duckdb"?!1:(e.duckdbConnection?.attachedDatabases||[]).some(n=>n.type==="azure"&&n.name===t)}function Ade(e){return e.startsWith("gs://")||e.startsWith("s3://")||e.startsWith("https://")||e.startsWith("abfss://")||e.startsWith("az://")}function jde({connectionName:e,resourceUri:t,schema:n,connection:r}){const{apiClients:o}=zr(),{environmentName:a}=xo(t),[s,l]=pn.useState(null),[d,f]=pn.useState(n||null),[c,m]=pn.useState(!1),{data:y,isError:v,isLoading:b,error:x}=co({queryKey:["schemas",a,e],queryFn:()=>o.connections.listSchemas(a,e)}),w=y?.data||[];return h.jsxs(Rf,{container:!0,spacing:1,children:[!n&&h.jsx(Rf,{size:{xs:12,md:4},children:h.jsxs(ja,{sx:{p:1,m:0},children:[h.jsxs(Kt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[h.jsx(Lt,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),h.jsx(EC,{control:h.jsx(wj,{checked:c,onChange:S=>m(S.target.checked)}),label:"Hidden Schemas"})]}),h.jsx(Bc,{sx:{mt:"2px"}}),h.jsxs(Kt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&h.jsx(ra,{text:"Loading schemas..."}),v&&h.jsx(pa,{error:x,context:`${a} > ${e} > Schemas`}),!b&&!v&&w.length===0&&h.jsx(Lt,{variant:"body2",children:"No Schemas"}),!b&&!v&&w.length>0&&h.jsx($C,{dense:!0,disablePadding:!0,children:w.map(S=>{const T=S.name;return S.isHidden&&!c?null:h.jsx(hj,{selected:d===T,onClick:()=>{f(T),l(null)},children:h.jsx(Kc,{primary:T})},T)})})]})]})}),h.jsx(Rf,{size:{xs:12,md:n?6:4},children:d&&h.jsx(ja,{sx:{p:1,m:0},children:h.jsx(Lde,{connectionName:e,schemaName:d,onTableSelect:S=>{l(S)},resourceUri:t,connection:r})})}),h.jsx(Rf,{size:{xs:12,md:n?6:4},children:d&&s&&h.jsx(Nde,{environmentName:a,connectionName:e,schemaName:d,tableResource:s})})]})}function Nde({environmentName:e,connectionName:t,schemaName:n,tableResource:r}){const{apiClients:o}=zr(),{data:a,isLoading:s,isError:l,error:d}=co({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(ja,{sx:{p:1,m:0},children:[l&&h.jsx(pa,{error:d,context:`${e} > ${t} > ${n} > ${r}`}),!l&&h.jsx(Ide,{table:f,loading:s})]})}function Ide({table:e,loading:t}){return t?h.jsx(ra,{text:"Loading columns..."}):h.jsxs(h.Fragment,{children:[h.jsxs(Lt,{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(Bc,{}),h.jsx(Kt,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:h.jsx(l7,{children:h.jsxs(ug,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[h.jsx(fg,{children:h.jsxs(Zs,{children:[h.jsx(Xn,{children:"NAME"}),h.jsx(Xn,{children:"TYPE"})]})}),h.jsx(dg,{children:e.columns?.sort((n,r)=>n.name.localeCompare(r.name))?.map(n=>h.jsxs(Zs,{children:[h.jsx(Xn,{children:n.name}),h.jsx(Xn,{children:n.type})]},n.name))})]})})})]})}function Lde({connectionName:e,schemaName:t,onTableSelect:n,resourceUri:r,connection:o}){const{environmentName:a}=xo(r),{apiClients:s}=zr(),[l,d]=C.useState(""),{data:f,isSuccess:c,isError:m,error:y,isLoading:v}=co({queryKey:["tablesInSchema",a,e,t],queryFn:()=>s.connections.listTables(a,e,t)}),b=QP(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,T)=>x(S.resource).localeCompare(x(T.resource))):[];return h.jsxs(h.Fragment,{children:[h.jsx(Lt,{variant:"overline",fontWeight:"bold",children:Ade(t)||QP(o,t)?`Files in ${t}`:`Tables in ${t}`}),h.jsx(Bc,{}),h.jsx(Kt,{sx:{mt:1,mb:1},children:h.jsx(ai,{size:"small",fullWidth:!0,placeholder:"Search tables...",value:l,onChange:S=>d(S.target.value),variant:"outlined"})}),h.jsx(Bc,{}),h.jsxs(Kt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[v&&h.jsx(ra,{text:"Fetching Tables..."}),m&&h.jsx(pa,{error:y,context:`${a} > ${e} > ${t}`}),c&&w.length===0&&h.jsx(Lt,{variant:"body2",children:"No Tables"}),c&&f?.data&&f.data.length>0&&h.jsx($C,{dense:!0,disablePadding:!0,children:w.map(S=>{let T=x(S.resource);return!b&&S.resource.includes("://")&&(T=S.resource.split("/").pop()||S.resource),h.jsx(hj,{onClick:()=>n(S.resource),children:h.jsx(Kc,{primary:T,secondary:S.columns.length>0?`${S.columns.length} columns`:void 0})},S.resource)})})]})]})}const zde={bigquery:"BigQuery",snowflake:"Snowflake",postgres:"PostgreSQL",mysql:"MySQL",trino:"Trino",databricks:"Databricks",duckdb:"DuckDB",ducklake:"DuckLake",s3:"S3",gcs:"GCS",azure:"Azure"};function Fde(e){return e?zde[e]??e:""}function Bde({resourceUri:e}){const{apiClients:t,mutable:n}=zr(),r=dd(),{environmentName:o}=xo(e),[a,s]=C.useState(""),[l,d]=C.useState(null),f=u0({environmentName:o,connectionName:l}),{data:c,isSuccess:m,isError:y,error:v}=co({queryKey:["connections",o],queryFn:()=>t.connections.listConnections(o)}),b=Ws({mutationFn:$l("connection","create",M=>t.environments.updateEnvironment(o,{name:o,connections:[...c.data,M]})),onSuccess(){s("Connection added successfully"),r.invalidateQueries({queryKey:["connections",o]})},onError(M){s(M.message)}}),x=Ws({mutationFn:$l("connection","update",M=>t.environments.updateEnvironment(o,{name:o,connections:c.data.map(R=>R.name===M.name?M:R)})),onSuccess(M,R){s(`Connection ${R.name} updated successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(M){s(M.message)}}),w=Ws({mutationFn:$l("connection","delete",M=>{if(!M.name)throw new Error("Cannot delete a connection with no name");return t.connections.deleteConnection(o,M.name)}),onSuccess(M,R){s(`Connection ${R.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(M){s(M.message)}}),S=m?[...c.data].sort((M,R)=>(M.name??"").localeCompare(R.name??"")):[],T=b.isPending||x.isPending||w.isPending;return h.jsxs(us,{title:"Connections",...m?{count:S.length}:{},description:"Database connections available to packages in this environment",...n&&m?{action:h.jsx($de,{onSubmit:M=>b.mutateAsync(M),isSubmitting:b.isPending})}:{},children:[!m&&!y&&h.jsx(Lt,{variant:"body2",color:"text.secondary",children:"Fetching Connections..."}),y&&h.jsx(pa,{error:v,context:`${o} > Connections`}),m&&S.length===0&&h.jsx(Lt,{variant:"body2",color:"text.secondary",children:"No connections yet."}),m&&S.length>0&&h.jsx(fr,{children:S.map(M=>h.jsx(Ude,{connection:M,mutable:n,isMutating:T,onOpenExplorer:()=>d(M.name??null),onEdit:R=>x.mutateAsync(R),onDelete:R=>w.mutateAsync(R)},M.name))}),h.jsx(Fb,{open:a!=="",autoHideDuration:6e3,onClose:()=>s(""),message:a}),h.jsx(oa,{open:l!==null,onClose:()=>d(null),maxWidth:"lg",title:`Connection explorer: ${l??""}`,showClose:!0,children:l&&h.jsx(jde,{resourceUri:f,connectionName:l,connection:c?.data?.find(M=>M.name===l)})})]})}function Ude({connection:e,mutable:t,isMutating:n,onOpenExplorer:r,onEdit:o,onDelete:a}){const[s,l]=C.useState(null),d=!!s,f=m=>{m.stopPropagation(),l(m.currentTarget)},c=()=>l(null);return h.jsx(C0,{icon:h.jsx(gde,{sx:{fontSize:18}}),tint:VC.connection,label:e.name??"",ariaLabel:e.name??"",description:Fde(e.type),onClick:r,...t?{trailingAction:h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small",onClick:f,"aria-label":`Connection actions for ${e.name??""}`.trim(),children:h.jsx(Qb,{fontSize:"small"})}),h.jsxs(cd,{anchorEl:s,open:d,onClose:c,onClick:m=>m.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[h.jsx(Dde,{connection:e,onSubmit:o,isSubmitting:n,onCloseDialog:c}),h.jsx(Pde,{connection:e,onCloseDialog:c,isMutating:n,onDelete:()=>a(e)})]})]})}:{}})}const _de=cr([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 Vde({resourceUri:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=zr(),a=()=>{r(!0)},s=()=>{r(!1),t()},{environmentName:l,packageName:d}=xo(e),f=yp({mutationFn:()=>o.packages.deletePackage(l,d),success:"Package deleted",invalidates:[["packages",l]],closeDialog:s,resource:"package",action:"delete"});return h.jsxs(pn.Fragment,{children:[h.jsxs(Ii,{onClick:a,children:[h.jsx(dp,{children:h.jsx(Gb,{fontSize:"small"})}),h.jsx(Kc,{children:"Delete"})]}),h.jsx(oa,{open:n,onClose:s,title:"Delete package",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{onClick:s,children:"Cancel"}),h.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>f.mutate(),loading:f.isPending,children:"Delete package"})]}),children:h.jsxs(br,{variant:"body2",children:["Delete ",h.jsx("strong",{children:d}),"? The package stops being served and this cannot be undone."]})}),f.notice]})}function Hde({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=C.useState(!1),{apiClients:a}=zr(),s=()=>{o(!0)},l=()=>{o(!1),n()},{packageName:d,environmentName:f}=xo(t),c=yp({mutationFn(y){return a.packages.updatePackage(f,d,{name:d,description:y.description})},success:"Package updated",invalidates:[["packages",f]],closeDialog:l,resource:"package",action:"update"}),m=y=>{y.preventDefault();const v=new FormData(y.currentTarget).get("description")?.toString();c.mutate({description:v})};return h.jsxs(pn.Fragment,{children:[h.jsxs(Ii,{onClick:s,children:[h.jsx(dp,{children:h.jsx(KC,{fontSize:"small"})}),h.jsx(Kc,{children:"Edit"})]}),h.jsx(oa,{open:r,onClose:l,title:"Edit package",description:`What ${e.name} is, for the people who open it.`,actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{disabled:c.isPending,onClick:l,children:"Cancel"}),h.jsx(uo,{type:"submit",form:"package-form",variant:"contained",loading:c.isPending,children:"Save changes"})]}),children:h.jsx("form",{onSubmit:m,id:"package-form",children:h.jsxs(fr,{sx:{gap:2},children:[h.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",disabled:!0,type:"text",fullWidth:!0,size:"small",defaultValue:e.name,InputLabelProps:{shrink:!0}}),h.jsx(hr,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,size:"small",defaultValue:e.description,InputLabelProps:{shrink:!0}})]})})}),c.notice]})}function Wde({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=zr(),{environmentName:r}=xo(t),{data:o,isSuccess:a,isError:s,error:l}=co({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});if(s)return h.jsx(pa,{error:l,context:`${r} > Packages`});if(!a)return h.jsx(ra,{text:"Fetching Packages..."});const d=[...o.data].sort((f,c)=>f.name.localeCompare(c.name));return h.jsx(fr,{children:d.map(f=>{const c=u0({environmentName:r,packageName:f.name});return h.jsx(qde,{pkg:f,packageResourceUri:c,onSelectPackage:e},f.name)})})}function qde({pkg:e,packageResourceUri:t,onSelectPackage:n}){const{mutable:r}=zr(),[o,a]=C.useState(null),s=!!o,l=f=>{f.stopPropagation(),a(f.currentTarget)},d=()=>a(null);return h.jsx(C0,{icon:h.jsx(_de,{sx:{fontSize:18}}),tint:VC.package,label:e.name,ariaLabel:e.name,...e.description?{description:e.description}:{},onClick:f=>n(e.name,f),...r?{trailingAction:h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small",onClick:l,"aria-label":`Package actions for ${e.name}`,children:h.jsx(Qb,{fontSize:"small"})}),h.jsxs(cd,{anchorEl:o,open:s,onClose:d,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[h.jsx(Hde,{package:e,resourceUri:t,onCloseDialog:d}),h.jsx(Vde,{resourceUri:t,onCloseDialog:d})]})]})}:{}})}function qhe({onSelectPackage:e,resourceUri:t}){const{apiClients:n,mutable:r}=zr(),{environmentName:o}=xo(t),a=co({queryKey:["packages",o],queryFn:()=>n.packages.listPackages(o)});return C.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})},[]),h.jsxs(TC,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[h.jsxs(Kt,{sx:{mb:4},children:[h.jsx(Kt,{children:h.jsx(EL,{label:"Publisher",onClick:s=>e("/",s)})}),h.jsx(Lt,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:o}),h.jsx(Lt,{variant:"body2",color:"text.secondary",children:"Manage packages and database connections in this environment. Open a package to explore its models and notebooks."})]}),h.jsx(us,{title:"Packages",...a.isSuccess?{count:a.data.data.length}:{},description:"Published packages available for use in this environment",...r?{action:h.jsx(mde,{resourceUri:t})}:{},children:h.jsx(Wde,{onSelectPackage:e,resourceUri:t})}),h.jsx(Bde,{resourceUri:t}),h.jsx(ede,{resourceUri:t})]})}$r.extend(rk);const Yde=cr(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"})),AL=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(" ")+"..."},jL=(e,t)=>{const n=(e.readme||void 0)?.split(`
436
+ `)??[];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(`
437
+ `)};function XP(){const[e,t]=C.useState(!1),{apiClients:n}=zr(),r=()=>{t(!0)},o=()=>{t(!1)},a=yp({mutationFn(l){return n.environments.createEnvironment({name:l.name,readme:jL({name:l.name,readme:""},l.description)})},success:"Environment created",invalidates:[["environments"]],closeDialog:o,resource:"environment",action:"create"}),s=async l=>{l.preventDefault();const d=new FormData(l.currentTarget),f=d.get("name")?.toString(),c=d.get("description")?.toString();if(!f)throw new Error("Name is required");a.mutate({name:f,description:c})};return h.jsxs(pn.Fragment,{children:[h.jsx(xg,{label:"Environment",onClick:r}),h.jsx(oa,{open:e,onClose:o,title:"New environment",description:"An environment holds packages and the connections they query through.",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{disabled:a.isPending,onClick:o,children:"Cancel"}),h.jsx(uo,{type:"submit",form:"environment-form",variant:"contained",loading:a.isPending,children:"Create environment"})]}),children:h.jsx("form",{onSubmit:s,id:"environment-form",children:h.jsxs(k0,{sx:{gap:2},children:[h.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),h.jsx(hr,{id:"description",name:"description",label:"Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}})]})})}),a.notice]})}function Kde({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=zr(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=yp({mutationFn:()=>o.environments.deleteEnvironment(e.name),success:"Environment deleted",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"delete"});return h.jsxs(pn.Fragment,{children:[h.jsxs(Ii,{onClick:a,children:[h.jsx(dp,{children:h.jsx(Gb,{fontSize:"small"})}),h.jsx(Kc,{children:"Delete"})]}),h.jsx(oa,{open:n,onClose:s,title:"Delete environment",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{onClick:s,children:"Cancel"}),h.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>l.mutate(),loading:l.isPending,children:"Delete environment"})]}),children:h.jsxs(br,{variant:"body2",children:["Delete ",h.jsx("strong",{children:e.name}),"? Its packages stop being served and this cannot be undone."]})}),l.notice]})}function Gde({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=zr(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=yp({mutationFn(f){return o.environments.updateEnvironment(e.name,{name:e.name,readme:jL({name:e.name,readme:e.readme},f.description)})},success:"Environment updated",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"update"}),d=f=>{f.preventDefault();const c=new FormData(f.currentTarget).get("description")?.toString();l.mutate({description:c})};return h.jsxs(pn.Fragment,{children:[h.jsxs(Ii,{onClick:a,children:[h.jsx(dp,{children:h.jsx(KC,{fontSize:"small"})}),h.jsx(Kc,{children:"Edit"})]}),h.jsx(oa,{open:n,onClose:s,title:"Edit environment",description:"What this environment is, for the people who open it.",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{disabled:l.isPending,onClick:s,children:"Cancel"}),h.jsx(uo,{type:"submit",form:"environment-form",variant:"contained",loading:l.isPending,children:"Save changes"})]}),children:h.jsx("form",{onSubmit:d,id:"environment-form",children:h.jsxs(k0,{sx:{gap:2},children:[h.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",disabled:!0,type:"text",fullWidth:!0,size:"small",defaultValue:e.name,InputLabelProps:{shrink:!0}}),h.jsx(hr,{id:"description",name:"description",label:"Description",type:"text",fullWidth:!0,size:"small",defaultValue:AL(e.readme),InputLabelProps:{shrink:!0}})]})})}),l.notice]})}const Qde=[{title:"Model",body:"An agent writes what the data means in Malloy — sources, joins, measures — from a warehouse or a file, and validates each edit without a restart.",href:kc.publishing},{title:"Analyze",body:"Claude, Cursor, Codex or an agent you build asks over MCP; applications and BI tools use REST. Every question runs against the model, never the raw tables.",href:kc.mcpAgents},{title:"Surface",body:"Dashboards declared in Malloy, notebooks, and no-build HTML data apps, all shipped inside the package, plus this Console for browsing them.",href:kc.surfaces},{title:"Govern",body:"Runtime parameters, row-level filters and per-source gates are declared in the model, so every surface reads the same rules rather than writing its own.",href:kc.givens},{title:"Optimize",body:"One annotation materializes an expensive source into a table, and another rolls a measure up to a coarser grain, rebuilt on demand or on a schedule.",href:kc.materialization},{title:"Run anywhere",body:"DuckDB is built in for CSV, Parquet, JSON and Excel; BigQuery, Snowflake, Postgres, Databricks, MotherDuck and more connect by configuration.",href:kc.connections}];function Xde({href:e,children:t}){return h.jsx(Kt,{component:"a",href:e,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary",textDecoration:"underline"},children:t})}function Yhe({onClickEnvironment:e}){const{apiClients:t,mutable:n}=zr(),{data:r,isSuccess:o,isError:a,error:s}=co({queryKey:["environments"],queryFn:()=>t.environments.listEnvironments()});if(a)return h.jsx(pa,{error:s,context:"Environments List"});if(!o)return h.jsx(ra,{text:"Loading environments..."});const l=r.data??[];return h.jsxs(TC,{maxWidth:"md",sx:{py:6},children:[h.jsxs(Kt,{sx:{mb:5},children:[h.jsx(Lt,{variant:"h3",component:"h1",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Publisher"}),h.jsx(Lt,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"The analytics engine for Malloy."}),h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6},children:"One data model, served over MCP and REST to AI agents, applications and BI tools. Write down what your data means — the sources, the joins, the measures, who may see what — and every surface asks the same model, so the same question returns the same numbers tomorrow."})]}),h.jsx(Rf,{container:!0,spacing:4,sx:{mb:5},children:Qde.map(d=>h.jsx(Rf,{size:{xs:12,sm:6},children:h.jsxs(fr,{spacing:1,children:[h.jsx(Lt,{variant:"body2",component:"a",href:d.href,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,color:"text.primary",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:d.title}),h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6},children:d.body})]})},d.title))}),h.jsx(Bc,{sx:{my:4}}),l.length>0?h.jsx(us,{title:"Environments",count:l.length,description:"Published environments available on this server",...n?{action:h.jsx(XP,{})}:{},children:h.jsx(fr,{children:l.map(d=>h.jsx(Zde,{environment:d,...e?{onClickEnvironment:e}:{}},d.name))})}):h.jsxs(Kt,{sx:{mb:4},children:[h.jsx(Lt,{variant:"h5",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Get started"}),h.jsx(Lt,{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(XP,{}):h.jsx(Yo,{variant:"contained",color:"primary",href:kc.publishing,target:"_blank",rel:"noopener noreferrer",children:"Learn how to create models"})]}),h.jsx(Bc,{sx:{my:4}}),h.jsxs(Lt,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6,mt:2},children:["Join the"," ",h.jsx(Xde,{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 Zde({environment:e,onClickEnvironment:t}){const{mutable:n}=zr(),[r,o]=C.useState(null),a=!!r,s=AL(e.readme),l=f=>{f.stopPropagation(),o(f.currentTarget)},d=()=>o(null);return h.jsx(C0,{icon:h.jsx(Yde,{sx:{fontSize:18}}),tint:VC.environment,label:e.name??"",ariaLabel:e.name??"",...s?{description:s}:{},...e.name&&t?{onClick:f=>t(`/${e.name}/`,f)}:{},...n?{trailingAction:h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small",onClick:l,"aria-label":`Environment actions for ${e.name}`,children:h.jsx(Qb,{fontSize:"small"})}),h.jsxs(cd,{anchorEl:r,open:a,onClose:d,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[h.jsx(Gde,{environment:e,onCloseDialog:d}),h.jsx(Kde,{environment:e,onCloseDialog:d})]})]})}:{}})}var wf={},Qa={},Gh={},Cf={},ZP={},JP;function Jde(){return JP||(JP=1,Object.defineProperty(ZP,"__esModule",{value:!0})),ZP}var Qh={},Xh={},eD;function gd(){if(eD)return Xh;eD=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.CronField=void 0;let e=class NL{#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(NL.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=>d=>new RegExp(`^\\d{0,2}${d}$`).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,d)=>this.#o.indexOf(l)!==d);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 Xh.CronField=e,Xh}var tD;function efe(){if(tD)return Qh;tD=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.CronDayOfMonth=void 0;const e=gd(),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 Qh.CronDayOfMonth=o,Qh}var Zh={},nD;function tfe(){if(nD)return Zh;nD=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.CronDayOfWeek=void 0;const e=gd(),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 Zh.CronDayOfWeek=o,Zh}var Jh={},rD;function nfe(){if(rD)return Jh;rD=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.CronHour=void 0;const e=gd(),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 Jh.CronHour=o,Jh}var em={},oD;function rfe(){if(oD)return em;oD=1,Object.defineProperty(em,"__esModule",{value:!0}),em.CronMinute=void 0;const e=gd(),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 em.CronMinute=o,em}var tm={},aD={},wa={},iD;function ofe(){if(iD)return wa;iD=1,Object.defineProperty(wa,"__esModule",{value:!0});class e extends Error{}class t extends e{constructor(O){super(`Invalid DateTime: ${O.toMessage()}`)}}class n extends e{constructor(O){super(`Invalid Interval: ${O.toMessage()}`)}}class r extends e{constructor(O){super(`Invalid Duration: ${O.toMessage()}`)}}class o extends e{}class a extends e{constructor(O){super(`Invalid unit ${O}`)}}class s extends e{}class l extends e{constructor(){super("Zone is an abstract class")}}const d="numeric",f="short",c="long",m={year:d,month:d,day:d},y={year:d,month:f,day:d},v={year:d,month:f,day:d,weekday:f},b={year:d,month:c,day:d},x={year:d,month:c,day:d,weekday:c},w={hour:d,minute:d},S={hour:d,minute:d,second:d},T={hour:d,minute:d,second:d,timeZoneName:f},M={hour:d,minute:d,second:d,timeZoneName:c},R={hour:d,minute:d,hourCycle:"h23"},$={hour:d,minute:d,second:d,hourCycle:"h23"},P={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:f},N={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:c},V={year:d,month:d,day:d,hour:d,minute:d},z={year:d,month:d,day:d,hour:d,minute:d,second:d},W={year:d,month:f,day:d,hour:d,minute:d},H={year:d,month:f,day:d,hour:d,minute:d,second:d},k={year:d,month:f,day:d,weekday:f,hour:d,minute:d},I={year:d,month:c,day:d,hour:d,minute:d,timeZoneName:f},F={year:d,month:c,day:d,hour:d,minute:d,second:d,timeZoneName:f},_={year:d,month:c,day:d,weekday:c,hour:d,minute:d,timeZoneName:c},j={year:d,month:c,day:d,weekday:c,hour:d,minute:d,second:d,timeZoneName:c};class X{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(O,L){throw new l}formatOffset(O,L){throw new l}offset(O){throw new l}equals(O){throw new l}get isValid(){throw new l}}let Q=null;class te extends X{static get instance(){return Q===null&&(Q=new te),Q}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(O,{format:L,locale:Y}){return Zc(O,L,Y)}formatOffset(O,L){return ws(this.offset(O),L)}offset(O){return-new Date(O).getTimezoneOffset()}equals(O){return O.type==="system"}get isValid(){return!0}}const Z=new Map;function G(U){let O=Z.get(U);return O===void 0&&(O=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:U,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Z.set(U,O)),O}const ne={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ce(U,O){const L=U.format(O).replace(/\u200E/g,""),Y=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(L),[,ee,ve,Oe,je,Ue,Ot,gn]=Y;return[Oe,ee,ve,je,Ue,Ot,gn]}function pe(U,O){const L=U.formatToParts(O),Y=[];for(let ee=0;ee<L.length;ee++){const{type:ve,value:Oe}=L[ee],je=ne[ve];ve==="era"?Y[je]=Oe:Ke(je)||(Y[je]=parseInt(Oe,10))}return Y}const oe=new Map;class ae extends X{static create(O){let L=oe.get(O);return L===void 0&&oe.set(O,L=new ae(O)),L}static resetCache(){oe.clear(),Z.clear()}static isValidSpecifier(O){return this.isValidZone(O)}static isValidZone(O){if(!O)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:O}).format(),!0}catch{return!1}}constructor(O){super(),this.zoneName=O,this.valid=ae.isValidZone(O)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(O,{format:L,locale:Y}){return Zc(O,L,Y,this.name)}formatOffset(O,L){return ws(this.offset(O),L)}offset(O){if(!this.valid)return NaN;const L=new Date(O);if(isNaN(L))return NaN;const Y=G(this.name);let[ee,ve,Oe,je,Ue,Ot,gn]=Y.formatToParts?pe(Y,L):ce(Y,L);je==="BC"&&(ee=-Math.abs(ee)+1);const jn=Ss({year:ee,month:ve,day:Oe,hour:Ue===24?0:Ue,minute:Ot,second:gn,millisecond:0});let lr=+L;const Sn=lr%1e3;return lr-=Sn>=0?Sn:1e3+Sn,(jn-lr)/(60*1e3)}equals(O){return O.type==="iana"&&O.name===this.name}get isValid(){return this.valid}}let le={};function ge(U,O={}){const L=JSON.stringify([U,O]);let Y=le[L];return Y||(Y=new Intl.ListFormat(U,O),le[L]=Y),Y}const ye=new Map;function we(U,O={}){const L=JSON.stringify([U,O]);let Y=ye.get(L);return Y===void 0&&(Y=new Intl.DateTimeFormat(U,O),ye.set(L,Y)),Y}const Ce=new Map;function $e(U,O={}){const L=JSON.stringify([U,O]);let Y=Ce.get(L);return Y===void 0&&(Y=new Intl.NumberFormat(U,O),Ce.set(L,Y)),Y}const de=new Map;function ke(U,O={}){const{base:L,...Y}=O,ee=JSON.stringify([U,Y]);let ve=de.get(ee);return ve===void 0&&(ve=new Intl.RelativeTimeFormat(U,O),de.set(ee,ve)),ve}let et=null;function ze(){return et||(et=new Intl.DateTimeFormat().resolvedOptions().locale,et)}const Ae=new Map;function se(U){let O=Ae.get(U);return O===void 0&&(O=new Intl.DateTimeFormat(U).resolvedOptions(),Ae.set(U,O)),O}const bt=new Map;function Fe(U){let O=bt.get(U);if(!O){const L=new Intl.Locale(U);O="getWeekInfo"in L?L.getWeekInfo():L.weekInfo,"minimalDays"in O||(O={...We,...O}),bt.set(U,O)}return O}function it(U){const O=U.indexOf("-x-");O!==-1&&(U=U.substring(0,O));const L=U.indexOf("-u-");if(L===-1)return[U];{let Y,ee;try{Y=we(U).resolvedOptions(),ee=U}catch{const je=U.substring(0,L);Y=we(je).resolvedOptions(),ee=je}const{numberingSystem:ve,calendar:Oe}=Y;return[ee,ve,Oe]}}function pt(U,O,L){return(L||O)&&(U.includes("-u-")||(U+="-u"),L&&(U+=`-ca-${L}`),O&&(U+=`-nu-${O}`)),U}function Ft(U){const O=[];for(let L=1;L<=12;L++){const Y=mn.utc(2009,L,1);O.push(U(Y))}return O}function _t(U){const O=[];for(let L=1;L<=7;L++){const Y=mn.utc(2016,11,13+L);O.push(U(Y))}return O}function at(U,O,L,Y){const ee=U.listingMode();return ee==="error"?null:ee==="en"?L(O):Y(O)}function Xe(U){return U.numberingSystem&&U.numberingSystem!=="latn"?!1:U.numberingSystem==="latn"||!U.locale||U.locale.startsWith("en")||se(U.locale).numberingSystem==="latn"}class rt{constructor(O,L,Y){this.padTo=Y.padTo||0,this.floor=Y.floor||!1;const{padTo:ee,floor:ve,...Oe}=Y;if(!L||Object.keys(Oe).length>0){const je={useGrouping:!1,...Y};Y.padTo>0&&(je.minimumIntegerDigits=Y.padTo),this.inf=$e(O,je)}}format(O){if(this.inf){const L=this.floor?Math.floor(O):O;return this.inf.format(L)}else{const L=this.floor?Math.floor(O):Vl(O,3);return sr(L,this.padTo)}}}class Ne{constructor(O,L,Y){this.opts=Y,this.originalZone=void 0;let ee;if(this.opts.timeZone)this.dt=O;else if(O.zone.type==="fixed"){const Oe=-1*(O.offset/60),je=Oe>=0?`Etc/GMT+${Oe}`:`Etc/GMT${Oe}`;O.offset!==0&&ae.create(je).valid?(ee=je,this.dt=O):(ee="UTC",this.dt=O.offset===0?O:O.setZone("UTC").plus({minutes:O.offset}),this.originalZone=O.zone)}else O.zone.type==="system"?this.dt=O:O.zone.type==="iana"?(this.dt=O,ee=O.zone.name):(ee="UTC",this.dt=O.setZone("UTC").plus({minutes:O.offset}),this.originalZone=O.zone);const ve={...this.opts};ve.timeZone=ve.timeZone||ee,this.dtf=we(L,ve)}format(){return this.originalZone?this.formatToParts().map(({value:O})=>O).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const O=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?O.map(L=>{if(L.type==="timeZoneName"){const Y=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...L,value:Y}}else return L}):O}resolvedOptions(){return this.dtf.resolvedOptions()}}class he{constructor(O,L,Y){this.opts={style:"long",...Y},!L&&Ee()&&(this.rtf=ke(O,Y))}format(O,L){return this.rtf?this.rtf.format(O,L):Yl(L,O,this.opts.numeric,this.opts.style!=="long")}formatToParts(O,L){return this.rtf?this.rtf.formatToParts(O,L):[]}}const We={firstDay:1,minimalDays:4,weekend:[6,7]};class Te{static fromOpts(O){return Te.create(O.locale,O.numberingSystem,O.outputCalendar,O.weekSettings,O.defaultToEN)}static create(O,L,Y,ee,ve=!1){const Oe=O||qe.defaultLocale,je=Oe||(ve?"en-US":ze()),Ue=L||qe.defaultNumberingSystem,Ot=Y||qe.defaultOutputCalendar,gn=Yt(ee)||qe.defaultWeekSettings;return new Te(je,Ue,Ot,gn,Oe)}static resetCache(){et=null,ye.clear(),Ce.clear(),de.clear(),Ae.clear(),bt.clear()}static fromObject({locale:O,numberingSystem:L,outputCalendar:Y,weekSettings:ee}={}){return Te.create(O,L,Y,ee)}constructor(O,L,Y,ee,ve){const[Oe,je,Ue]=it(O);this.locale=Oe,this.numberingSystem=L||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 O=this.isEnglish(),L=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return O&&L?"en":"intl"}clone(O){return!O||Object.getOwnPropertyNames(O).length===0?this:Te.create(O.locale||this.specifiedLocale,O.numberingSystem||this.numberingSystem,O.outputCalendar||this.outputCalendar,Yt(O.weekSettings)||this.weekSettings,O.defaultToEN||!1)}redefaultToEN(O={}){return this.clone({...O,defaultToEN:!0})}redefaultToSystem(O={}){return this.clone({...O,defaultToEN:!1})}months(O,L=!1){return at(this,O,il,()=>{const Y=this.intl==="ja"||this.intl.startsWith("ja-");L&=!Y;const ee=L?{month:O,day:"numeric"}:{month:O},ve=L?"format":"standalone";if(!this.monthsCache[ve][O]){const Oe=Y?je=>this.dtFormatter(je,ee).format():je=>this.extract(je,ee,"month");this.monthsCache[ve][O]=Ft(Oe)}return this.monthsCache[ve][O]})}weekdays(O,L=!1){return at(this,O,Zi,()=>{const Y=L?{weekday:O,year:"numeric",month:"long",day:"numeric"}:{weekday:O},ee=L?"format":"standalone";return this.weekdaysCache[ee][O]||(this.weekdaysCache[ee][O]=_t(ve=>this.extract(ve,Y,"weekday"))),this.weekdaysCache[ee][O]})}meridiems(){return at(this,void 0,()=>eu,()=>{if(!this.meridiemCache){const O={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[mn.utc(2016,11,13,9),mn.utc(2016,11,13,19)].map(L=>this.extract(L,O,"dayperiod"))}return this.meridiemCache})}eras(O){return at(this,O,ma,()=>{const L={era:O};return this.eraCache[O]||(this.eraCache[O]=[mn.utc(-40,1,1),mn.utc(2017,1,1)].map(Y=>this.extract(Y,L,"era"))),this.eraCache[O]})}extract(O,L,Y){const ee=this.dtFormatter(O,L),ve=ee.formatToParts(),Oe=ve.find(je=>je.type.toLowerCase()===Y);return Oe?Oe.value:null}numberFormatter(O={}){return new rt(this.intl,O.forceSimple||this.fastNumbers,O)}dtFormatter(O,L={}){return new Ne(O,this.intl,L)}relFormatter(O={}){return new he(this.intl,this.isEnglish(),O)}listFormatter(O={}){return ge(this.intl,O)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||se(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:He()?Fe(this.locale):We}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(O){return this.locale===O.locale&&this.numberingSystem===O.numberingSystem&&this.outputCalendar===O.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let kt=null;class Mt extends X{static get utcInstance(){return kt===null&&(kt=new Mt(0)),kt}static instance(O){return O===0?Mt.utcInstance:new Mt(O)}static parseSpecifier(O){if(O){const L=O.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(L)return new Mt(ol(L[1],L[2]))}return null}constructor(O){super(),this.fixed=O}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ws(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ws(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(O,L){return ws(this.fixed,L)}get isUniversal(){return!0}offset(){return this.fixed}equals(O){return O.type==="fixed"&&O.fixed===this.fixed}get isValid(){return!0}}class gt extends X{constructor(O){super(),this.zoneName=O}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(U,O){if(Ke(U)||U===null)return O;if(U instanceof X)return U;if(fn(U)){const L=U.toLowerCase();return L==="default"?O:L==="local"||L==="system"?te.instance:L==="utc"||L==="gmt"?Mt.utcInstance:Mt.parseSpecifier(L)||ae.create(U)}else return Zt(U)?Mt.instance(U):typeof U=="object"&&"offset"in U&&typeof U.offset=="function"?U:new gt(U)}const $t={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Vt={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]},un=$t.hanidec.replace(/[\[|\]]/g,"").split("");function vn(U){let O=parseInt(U,10);if(isNaN(O)){O="";for(let L=0;L<U.length;L++){const Y=U.charCodeAt(L);if(U[L].search($t.hanidec)!==-1)O+=un.indexOf(U[L]);else for(const ee in Vt){const[ve,Oe]=Vt[ee];Y>=ve&&Y<=Oe&&(O+=Y-ve)}}return parseInt(O,10)}else return O}const Bn=new Map;function Wn(){Bn.clear()}function Qt({numberingSystem:U},O=""){const L=U||"latn";let Y=Bn.get(L);Y===void 0&&(Y=new Map,Bn.set(L,Y));let ee=Y.get(O);return ee===void 0&&(ee=new RegExp(`${$t[L]}${O}`),Y.set(O,ee)),ee}let In=()=>Date.now(),be="system",zn=null,En=null,Xt=null,ie=60,Pe,Le=null;class qe{static get now(){return In}static set now(O){In=O}static set defaultZone(O){be=O}static get defaultZone(){return ct(be,te.instance)}static get defaultLocale(){return zn}static set defaultLocale(O){zn=O}static get defaultNumberingSystem(){return En}static set defaultNumberingSystem(O){En=O}static get defaultOutputCalendar(){return Xt}static set defaultOutputCalendar(O){Xt=O}static get defaultWeekSettings(){return Le}static set defaultWeekSettings(O){Le=Yt(O)}static get twoDigitCutoffYear(){return ie}static set twoDigitCutoffYear(O){ie=O%100}static get throwOnInvalid(){return Pe}static set throwOnInvalid(O){Pe=O}static resetCaches(){Te.resetCache(),ae.resetCache(),mn.resetCache(),Wn()}}class ut{constructor(O,L){this.reason=O,this.explanation=L}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Nt=[0,31,59,90,120,151,181,212,243,273,304,334],Bt=[0,31,60,91,121,152,182,213,244,274,305,335];function Dt(U,O){return new ut("unit out of range",`you specified ${O} (of type ${typeof O}) as a ${U}, which is invalid`)}function mt(U,O,L){const Y=new Date(Date.UTC(U,O-1,L));U<100&&U>=0&&Y.setUTCFullYear(Y.getUTCFullYear()-1900);const ee=Y.getUTCDay();return ee===0?7:ee}function At(U,O,L){return L+(fi(U)?Bt:Nt)[O-1]}function Et(U,O){const L=fi(U)?Bt:Nt,Y=L.findIndex(ve=>ve<O),ee=O-L[Y];return{month:Y+1,day:ee}}function wt(U,O){return(U-O+7)%7+1}function Ht(U,O=4,L=1){const{year:Y,month:ee,day:ve}=U,Oe=At(Y,ee,ve),je=wt(mt(Y,ee,ve),L);let Ue=Math.floor((Oe-je+14-O)/7),Ot;return Ue<1?(Ot=Y-1,Ue=Qi(Ot,O,L)):Ue>Qi(Y,O,L)?(Ot=Y+1,Ue=1):Ot=Y,{weekYear:Ot,weekNumber:Ue,weekday:je,...al(U)}}function On(U,O=4,L=1){const{weekYear:Y,weekNumber:ee,weekday:ve}=U,Oe=wt(mt(Y,1,O),L),je=xs(Y);let Ue=ee*7+ve-Oe-7+O,Ot;Ue<1?(Ot=Y-1,Ue+=xs(Ot)):Ue>je?(Ot=Y+1,Ue-=xs(Y)):Ot=Y;const{month:gn,day:jn}=Et(Ot,Ue);return{year:Ot,month:gn,day:jn,...al(U)}}function qn(U){const{year:O,month:L,day:Y}=U,ee=At(O,L,Y);return{year:O,ordinal:ee,...al(U)}}function bn(U){const{year:O,ordinal:L}=U,{month:Y,day:ee}=Et(O,L);return{year:O,month:Y,day:ee,...al(U)}}function dn(U,O){if(!Ke(U.localWeekday)||!Ke(U.localWeekNumber)||!Ke(U.localWeekYear)){if(!Ke(U.weekday)||!Ke(U.weekNumber)||!Ke(U.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return Ke(U.localWeekday)||(U.weekday=U.localWeekday),Ke(U.localWeekNumber)||(U.weekNumber=U.localWeekNumber),Ke(U.localWeekYear)||(U.weekYear=U.localWeekYear),delete U.localWeekday,delete U.localWeekNumber,delete U.localWeekYear,{minDaysInFirstWeek:O.getMinDaysInFirstWeek(),startOfWeek:O.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function ue(U,O=4,L=1){const Y=nn(U.weekYear),ee=xn(U.weekNumber,1,Qi(U.weekYear,O,L)),ve=xn(U.weekday,1,7);return Y?ee?ve?!1:Dt("weekday",U.weekday):Dt("week",U.weekNumber):Dt("weekYear",U.weekYear)}function fe(U){const O=nn(U.year),L=xn(U.ordinal,1,xs(U.year));return O?L?!1:Dt("ordinal",U.ordinal):Dt("year",U.year)}function Ve(U){const O=nn(U.year),L=xn(U.month,1,12),Y=xn(U.day,1,Mo(U.year,U.month));return O?L?Y?!1:Dt("day",U.day):Dt("month",U.month):Dt("year",U.year)}function vt(U){const{hour:O,minute:L,second:Y,millisecond:ee}=U,ve=xn(O,0,23)||O===24&&L===0&&Y===0&&ee===0,Oe=xn(L,0,59),je=xn(Y,0,59),Ue=xn(ee,0,999);return ve?Oe?je?Ue?!1:Dt("millisecond",ee):Dt("second",Y):Dt("minute",L):Dt("hour",O)}function Ke(U){return typeof U>"u"}function Zt(U){return typeof U=="number"}function nn(U){return typeof U=="number"&&U%1===0}function fn(U){return typeof U=="string"}function me(U){return Object.prototype.toString.call(U)==="[object Date]"}function Ee(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function He(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yt(U){return Array.isArray(U)?U:[U]}function Rt(U,O,L){if(U.length!==0)return U.reduce((Y,ee)=>{const ve=[O(ee),ee];return Y&&L(Y[0],ve[0])===Y[0]?Y:ve},null)[1]}function Ct(U,O){return O.reduce((L,Y)=>(L[Y]=U[Y],L),{})}function St(U,O){return Object.prototype.hasOwnProperty.call(U,O)}function Yt(U){if(U==null)return null;if(typeof U!="object")throw new s("Week settings must be an object");if(!xn(U.firstDay,1,7)||!xn(U.minimalDays,1,7)||!Array.isArray(U.weekend)||U.weekend.some(O=>!xn(O,1,7)))throw new s("Invalid week settings");return{firstDay:U.firstDay,minimalDays:U.minimalDays,weekend:Array.from(U.weekend)}}function xn(U,O,L){return nn(U)&&U>=O&&U<=L}function ur(U,O){return U-O*Math.floor(U/O)}function sr(U,O=2){const L=U<0;let Y;return L?Y="-"+(""+-U).padStart(O,"0"):Y=(""+U).padStart(O,"0"),Y}function La(U){if(!(Ke(U)||U===null||U===""))return parseInt(U,10)}function Gi(U){if(!(Ke(U)||U===null||U===""))return parseFloat(U)}function bs(U){if(!(Ke(U)||U===null||U==="")){const O=parseFloat("0."+U)*1e3;return Math.floor(O)}}function Vl(U,O,L="round"){const Y=10**O;switch(L){case"expand":return U>0?Math.ceil(U*Y)/Y:Math.floor(U*Y)/Y;case"trunc":return Math.trunc(U*Y)/Y;case"round":return Math.round(U*Y)/Y;case"floor":return Math.floor(U*Y)/Y;case"ceil":return Math.ceil(U*Y)/Y;default:throw new RangeError(`Value rounding ${L} is out of range`)}}function fi(U){return U%4===0&&(U%100!==0||U%400===0)}function xs(U){return fi(U)?366:365}function Mo(U,O){const L=ur(O-1,12)+1,Y=U+(O-L)/12;return L===2?fi(Y)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][L-1]}function Ss(U){let O=Date.UTC(U.year,U.month-1,U.day,U.hour,U.minute,U.second,U.millisecond);return U.year<100&&U.year>=0&&(O=new Date(O),O.setUTCFullYear(U.year,U.month-1,U.day)),+O}function Xc(U,O,L){return-wt(mt(U,1,O),L)+O-1}function Qi(U,O=4,L=1){const Y=Xc(U,O,L),ee=Xc(U+1,O,L);return(xs(U)-Y+ee)/7}function pi(U){return U>99?U:U>qe.twoDigitCutoffYear?1900+U:2e3+U}function Zc(U,O,L,Y=null){const ee=new Date(U),ve={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};Y&&(ve.timeZone=Y);const Oe={timeZoneName:O,...ve},je=new Intl.DateTimeFormat(L,Oe).formatToParts(ee).find(Ue=>Ue.type.toLowerCase()==="timezonename");return je?je.value:null}function ol(U,O){let L=parseInt(U,10);Number.isNaN(L)&&(L=0);const Y=parseInt(O,10)||0,ee=L<0||Object.is(L,-0)?-Y:Y;return L*60+ee}function Xi(U){const O=Number(U);if(typeof U=="boolean"||U===""||!Number.isFinite(O))throw new s(`Invalid unit value ${U}`);return O}function Hl(U,O){const L={};for(const Y in U)if(St(U,Y)){const ee=U[Y];if(ee==null)continue;L[O(Y)]=Xi(ee)}return L}function ws(U,O){const L=Math.trunc(Math.abs(U/60)),Y=Math.trunc(Math.abs(U%60)),ee=U>=0?"+":"-";switch(O){case"short":return`${ee}${sr(L,2)}:${sr(Y,2)}`;case"narrow":return`${ee}${L}${Y>0?`:${Y}`:""}`;case"techie":return`${ee}${sr(L,2)}${sr(Y,2)}`;default:throw new RangeError(`Value format ${O} is out of range for property format`)}}function al(U){return Ct(U,["hour","minute","second","millisecond"])}const Jc=["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"],vp=["J","F","M","A","M","J","J","A","S","O","N","D"];function il(U){switch(U){case"narrow":return[...vp];case"short":return[...yd];case"long":return[...Jc];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 Wl=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ql=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Cs=["M","T","W","T","F","S","S"];function Zi(U){switch(U){case"narrow":return[...Cs];case"short":return[...ql];case"long":return[...Wl];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const eu=["AM","PM"],tu=["Before Christ","Anno Domini"],vd=["BC","AD"],sl=["B","A"];function ma(U){switch(U){case"narrow":return[...sl];case"short":return[...vd];case"long":return[...tu];default:return null}}function nu(U){return eu[U.hour<12?0:1]}function ll(U,O){return Zi(O)[U.weekday-1]}function hi(U,O){return il(O)[U.month-1]}function ru(U,O){return ma(O)[U.year<0?0:1]}function Yl(U,O,L="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(U)===-1;if(L==="auto"&&ve){const jn=U==="days";switch(O){case 1:return jn?"tomorrow":`next ${ee[U][0]}`;case-1:return jn?"yesterday":`last ${ee[U][0]}`;case 0:return jn?"today":`this ${ee[U][0]}`}}const Oe=Object.is(O,-0)||O<0,je=Math.abs(O),Ue=je===1,Ot=ee[U],gn=Y?Ue?Ot[1]:Ot[2]||Ot[1]:Ue?ee[U][0]:U;return Oe?`${je} ${gn} ago`:`in ${je} ${gn}`}function ou(U,O){let L="";for(const Y of U)Y.literal?L+=Y.val:L+=O(Y.val);return L}const Kl={D:m,DD:y,DDD:b,DDDD:x,t:w,tt:S,ttt:T,tttt:M,T:R,TT:$,TTT:P,TTTT:N,f:V,ff:W,fff:I,ffff:_,F:z,FF:H,FFF:F,FFFF:j};class Qr{static create(O,L={}){return new Qr(O,L)}static parseFormat(O){let L=null,Y="",ee=!1;const ve=[];for(let Oe=0;Oe<O.length;Oe++){const je=O.charAt(Oe);je==="'"?((Y.length>0||ee)&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y===""?"'":Y}),L=null,Y="",ee=!ee):ee||je===L?Y+=je:(Y.length>0&&ve.push({literal:/^\s+$/.test(Y),val:Y}),Y=je,L=je)}return Y.length>0&&ve.push({literal:ee||/^\s+$/.test(Y),val:Y}),ve}static macroTokenToFormatOpts(O){return Kl[O]}constructor(O,L){this.opts=L,this.loc=O,this.systemLoc=null}formatWithSystemDefault(O,L){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(O,{...this.opts,...L}).format()}dtFormatter(O,L={}){return this.loc.dtFormatter(O,{...this.opts,...L})}formatDateTime(O,L){return this.dtFormatter(O,L).format()}formatDateTimeParts(O,L){return this.dtFormatter(O,L).formatToParts()}formatInterval(O,L){return this.dtFormatter(O.start,L).dtf.formatRange(O.start.toJSDate(),O.end.toJSDate())}resolvedOptions(O,L){return this.dtFormatter(O,L).resolvedOptions()}num(O,L=0,Y=void 0){if(this.opts.forceSimple)return sr(O,L);const ee={...this.opts};return L>0&&(ee.padTo=L),Y&&(ee.signDisplay=Y),this.loc.numberFormatter(ee).format(O)}formatDateTimeFromString(O,L){const Y=this.loc.listingMode()==="en",ee=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",ve=(Sn,qr)=>this.loc.extract(O,Sn,qr),Oe=Sn=>O.isOffsetFixed&&O.offset===0&&Sn.allowZ?"Z":O.isValid?O.zone.formatOffset(O.ts,Sn.format):"",je=()=>Y?nu(O):ve({hour:"numeric",hourCycle:"h12"},"dayperiod"),Ue=(Sn,qr)=>Y?hi(O,Sn):ve(qr?{month:Sn}:{month:Sn,day:"numeric"},"month"),Ot=(Sn,qr)=>Y?ll(O,Sn):ve(qr?{weekday:Sn}:{weekday:Sn,month:"long",day:"numeric"},"weekday"),gn=Sn=>{const qr=Qr.macroTokenToFormatOpts(Sn);return qr?this.formatWithSystemDefault(O,qr):Sn},jn=Sn=>Y?ru(O,Sn):ve({era:Sn},"era"),lr=Sn=>{switch(Sn){case"S":return this.num(O.millisecond);case"u":case"SSS":return this.num(O.millisecond,3);case"s":return this.num(O.second);case"ss":return this.num(O.second,2);case"uu":return this.num(Math.floor(O.millisecond/10),2);case"uuu":return this.num(Math.floor(O.millisecond/100));case"m":return this.num(O.minute);case"mm":return this.num(O.minute,2);case"h":return this.num(O.hour%12===0?12:O.hour%12);case"hh":return this.num(O.hour%12===0?12:O.hour%12,2);case"H":return this.num(O.hour);case"HH":return this.num(O.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 O.zone.offsetName(O.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return O.zone.offsetName(O.ts,{format:"long",locale:this.loc.locale});case"z":return O.zoneName;case"a":return je();case"d":return ee?ve({day:"numeric"},"day"):this.num(O.day);case"dd":return ee?ve({day:"2-digit"},"day"):this.num(O.day,2);case"c":return this.num(O.weekday);case"ccc":return Ot("short",!0);case"cccc":return Ot("long",!0);case"ccccc":return Ot("narrow",!0);case"E":return this.num(O.weekday);case"EEE":return Ot("short",!1);case"EEEE":return Ot("long",!1);case"EEEEE":return Ot("narrow",!1);case"L":return ee?ve({month:"numeric",day:"numeric"},"month"):this.num(O.month);case"LL":return ee?ve({month:"2-digit",day:"numeric"},"month"):this.num(O.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(O.month);case"MM":return ee?ve({month:"2-digit"},"month"):this.num(O.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(O.year);case"yy":return ee?ve({year:"2-digit"},"year"):this.num(O.year.toString().slice(-2),2);case"yyyy":return ee?ve({year:"numeric"},"year"):this.num(O.year,4);case"yyyyyy":return ee?ve({year:"numeric"},"year"):this.num(O.year,6);case"G":return jn("short");case"GG":return jn("long");case"GGGGG":return jn("narrow");case"kk":return this.num(O.weekYear.toString().slice(-2),2);case"kkkk":return this.num(O.weekYear,4);case"W":return this.num(O.weekNumber);case"WW":return this.num(O.weekNumber,2);case"n":return this.num(O.localWeekNumber);case"nn":return this.num(O.localWeekNumber,2);case"ii":return this.num(O.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(O.localWeekYear,4);case"o":return this.num(O.ordinal);case"ooo":return this.num(O.ordinal,3);case"q":return this.num(O.quarter);case"qq":return this.num(O.quarter,2);case"X":return this.num(Math.floor(O.ts/1e3));case"x":return this.num(O.ts);default:return gn(Sn)}};return ou(Qr.parseFormat(L),lr)}formatDurationFromString(O,L){const Y=this.opts.signMode==="negativeLargestOnly"?-1:1,ee=gn=>{switch(gn[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=(gn,jn)=>lr=>{const Sn=ee(lr);if(Sn){const qr=jn.isNegativeDuration&&Sn!==jn.largestUnit?Y:1;let Ao;return this.opts.signMode==="negativeLargestOnly"&&Sn!==jn.largestUnit?Ao="never":this.opts.signMode==="all"?Ao="always":Ao="auto",this.num(gn.get(Sn)*qr,lr.length,Ao)}else return lr},Oe=Qr.parseFormat(L),je=Oe.reduce((gn,{literal:jn,val:lr})=>jn?gn:gn.concat(lr),[]),Ue=O.shiftTo(...je.map(ee).filter(gn=>gn)),Ot={isNegativeDuration:Ue<0,largestUnit:Object.keys(Ue.values)[0]};return ou(Oe,ve(Ue,Ot))}}const au=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function A(...U){const O=U.reduce((L,Y)=>L+Y.source,"");return RegExp(`^${O}$`)}function ho(...U){return O=>U.reduce(([L,Y,ee],ve)=>{const[Oe,je,Ue]=ve(O,ee);return[{...L,...Oe},je||Y,Ue]},[{},null,1]).slice(0,2)}function Xr(U,...O){if(U==null)return[null,null];for(const[L,Y]of O){const ee=L.exec(U);if(ee)return Y(ee)}return[null,null]}function za(...U){return(O,L)=>{const Y={};let ee;for(ee=0;ee<U.length;ee++)Y[U[ee]]=La(O[L+ee]);return[Y,null,L+ee]}}const Me=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Ji=`(?:${Me.source}?(?:\\[(${au.source})\\])?)?`,An=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Do=RegExp(`${An.source}${Ji}`),ks=RegExp(`(?:[Tt]${Do.source})?`),iu=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xd=/(\d{4})-?(\d{3})/,Ze=za("weekYear","weekNumber","weekDay"),su=za("year","ordinal"),lu=/(\d{4})-(\d\d)-(\d\d)/,Gl=RegExp(`${An.source} ?(?:${Me.source}|(${au.source}))?`),Sd=RegExp(`(?: ${Gl.source})?`);function Ts(U,O,L){const Y=U[O];return Ke(Y)?L:La(Y)}function cl(U,O){return[{year:Ts(U,O),month:Ts(U,O+1,1),day:Ts(U,O+2,1)},null,O+3]}function es(U,O){return[{hours:Ts(U,O,0),minutes:Ts(U,O+1,0),seconds:Ts(U,O+2,0),milliseconds:bs(U[O+3])},null,O+4]}function Ms(U,O){const L=!U[O]&&!U[O+1],Y=ol(U[O+1],U[O+2]),ee=L?null:Mt.instance(Y);return[{},ee,O+3]}function Ko(U,O){const L=U[O]?ae.create(U[O]):null;return[{},L,O+1]}const bp=RegExp(`^T?${An.source}$`),xp=/^-?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 ul(U){const[O,L,Y,ee,ve,Oe,je,Ue,Ot]=U,gn=O[0]==="-",jn=Ue&&Ue[0]==="-",lr=(Sn,qr=!1)=>Sn!==void 0&&(qr||Sn&&gn)?-Sn:Sn;return[{years:lr(Gi(L)),months:lr(Gi(Y)),weeks:lr(Gi(ee)),days:lr(Gi(ve)),hours:lr(Gi(Oe)),minutes:lr(Gi(je)),seconds:lr(Gi(Ue),Ue==="-0"),milliseconds:lr(bs(Ot),jn)}]}const wd={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function cu(U,O,L,Y,ee,ve,Oe){const je={year:O.length===2?pi(La(O)):La(O),month:yd.indexOf(L)+1,day:La(Y),hour:La(ee),minute:La(ve)};return Oe&&(je.second=La(Oe)),U&&(je.weekday=U.length>3?Wl.indexOf(U)+1:ql.indexOf(U)+1),je}const Sp=/^(?:(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 Cd(U){const[,O,L,Y,ee,ve,Oe,je,Ue,Ot,gn,jn]=U,lr=cu(O,ee,Y,L,ve,Oe,je);let Sn;return Ue?Sn=wd[Ue]:Ot?Sn=0:Sn=ol(gn,jn),[lr,new Mt(Sn)]}function wp(U){return U.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const kd=/^(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$/,uu=/^(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$/,Cp=/^(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 Ql(U){const[,O,L,Y,ee,ve,Oe,je]=U;return[cu(O,ee,Y,L,ve,Oe,je),Mt.utcInstance]}function kp(U){const[,O,L,Y,ee,ve,Oe,je]=U;return[cu(O,je,L,Y,ee,ve,Oe),Mt.utcInstance]}const Tp=A(iu,ks),Mp=A(bd,ks),Ep=A(xd,ks),du=A(Do),Es=ho(cl,es,Ms,Ko),Op=ho(Ze,es,Ms,Ko),Td=ho(su,es,Ms,Ko),Md=ho(es,Ms,Ko);function Ed(U){return Xr(U,[Tp,Es],[Mp,Op],[Ep,Td],[du,Md])}function Od(U){return Xr(wp(U),[Sp,Cd])}function Rd(U){return Xr(U,[kd,Ql],[uu,Ql],[Cp,kp])}function Os(U){return Xr(U,[xp,ul])}const Rp=ho(es);function $p(U){return Xr(U,[bp,Rp])}const Pp=A(lu,Sd),$d=A(Gl),Pd=ho(es,Ms,Ko);function dl(U){return Xr(U,[Pp,Es],[$d,Pd])}const tr="Invalid Duration",ts={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}},Wr={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},...ts},B=146097/400,K=146097/4800,q={years:{quarters:4,months:12,weeks:B/7,days:B,hours:B*24,minutes:B*24*60,seconds:B*24*60*60,milliseconds:B*24*60*60*1e3},quarters:{months:3,weeks:B/28,days:B/4,hours:B*24/4,minutes:B*24*60/4,seconds:B*24*60*60/4,milliseconds:B*24*60*60*1e3/4},months:{weeks:K/7,days:K,hours:K*24,minutes:K*24*60,seconds:K*24*60*60,milliseconds:K*24*60*60*1e3},...ts},Se=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qt=Se.slice(0).reverse();function Ut(U,O,L=!1){const Y={values:L?O.values:{...U.values,...O.values||{}},loc:U.loc.clone(O.loc),conversionAccuracy:O.conversionAccuracy||U.conversionAccuracy,matrix:O.matrix||U.matrix};return new Wt(Y)}function Rn(U,O){var L;let Y=(L=O.milliseconds)!=null?L:0;for(const ee of qt.slice(1))O[ee]&&(Y+=O[ee]*U[ee].milliseconds);return Y}function Yn(U,O){const L=Rn(U,O)<0?-1:1;Se.reduceRight((Y,ee)=>{if(Ke(O[ee]))return Y;if(Y){const ve=O[Y]*L,Oe=U[ee][Y],je=Math.floor(ve/Oe);O[ee]+=je*L,O[Y]-=je*Oe*L}return ee},null),Se.reduce((Y,ee)=>{if(Ke(O[ee]))return Y;if(Y){const ve=O[Y]%1;O[Y]-=ve,O[ee]+=ve*U[Y][ee]}return ee},null)}function Kn(U){const O={};for(const[L,Y]of Object.entries(U))Y!==0&&(O[L]=Y);return O}class Wt{constructor(O){const L=O.conversionAccuracy==="longterm"||!1;let Y=L?q:Wr;O.matrix&&(Y=O.matrix),this.values=O.values,this.loc=O.loc||Te.create(),this.conversionAccuracy=L?"longterm":"casual",this.invalid=O.invalid||null,this.matrix=Y,this.isLuxonDuration=!0}static fromMillis(O,L){return Wt.fromObject({milliseconds:O},L)}static fromObject(O,L={}){if(O==null||typeof O!="object")throw new s(`Duration.fromObject: argument expected to be an object, got ${O===null?"null":typeof O}`);return new Wt({values:Hl(O,Wt.normalizeUnit),loc:Te.fromObject(L),conversionAccuracy:L.conversionAccuracy,matrix:L.matrix})}static fromDurationLike(O){if(Zt(O))return Wt.fromMillis(O);if(Wt.isDuration(O))return O;if(typeof O=="object")return Wt.fromObject(O);throw new s(`Unknown duration argument ${O} of type ${typeof O}`)}static fromISO(O,L){const[Y]=Os(O);return Y?Wt.fromObject(Y,L):Wt.invalid("unparsable",`the input "${O}" can't be parsed as ISO 8601`)}static fromISOTime(O,L){const[Y]=$p(O);return Y?Wt.fromObject(Y,L):Wt.invalid("unparsable",`the input "${O}" can't be parsed as ISO 8601`)}static invalid(O,L=null){if(!O)throw new s("need to specify a reason the Duration is invalid");const Y=O instanceof ut?O:new ut(O,L);if(qe.throwOnInvalid)throw new r(Y);return new Wt({invalid:Y})}static normalizeUnit(O){const L={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"}[O&&O.toLowerCase()];if(!L)throw new a(O);return L}static isDuration(O){return O&&O.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(O,L={}){const Y={...L,floor:L.round!==!1&&L.floor!==!1};return this.isValid?Qr.create(this.loc,Y).formatDurationFromString(this,O):tr}toHuman(O={}){if(!this.isValid)return tr;const L=O.showZeros!==!1,Y=Se.map(ee=>{const ve=this.values[ee];return Ke(ve)||ve===0&&!L?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...O,unit:ee.slice(0,-1)}).format(ve)}).filter(ee=>ee);return this.loc.listFormatter({type:"conjunction",style:O.listStyle||"narrow",...O}).format(Y)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let O="P";return this.years!==0&&(O+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(O+=this.months+this.quarters*3+"M"),this.weeks!==0&&(O+=this.weeks+"W"),this.days!==0&&(O+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(O+="T"),this.hours!==0&&(O+=this.hours+"H"),this.minutes!==0&&(O+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(O+=Vl(this.seconds+this.milliseconds/1e3,3)+"S"),O==="P"&&(O+="T0S"),O}toISOTime(O={}){if(!this.isValid)return null;const L=this.toMillis();return L<0||L>=864e5?null:(O={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...O,includeOffset:!1},mn.fromMillis(L,{zone:"UTC"}).toISOTime(O))}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?Rn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(O){if(!this.isValid)return this;const L=Wt.fromDurationLike(O),Y={};for(const ee of Se)(St(L.values,ee)||St(this.values,ee))&&(Y[ee]=L.get(ee)+this.get(ee));return Ut(this,{values:Y},!0)}minus(O){if(!this.isValid)return this;const L=Wt.fromDurationLike(O);return this.plus(L.negate())}mapUnits(O){if(!this.isValid)return this;const L={};for(const Y of Object.keys(this.values))L[Y]=Xi(O(this.values[Y],Y));return Ut(this,{values:L},!0)}get(O){return this[Wt.normalizeUnit(O)]}set(O){if(!this.isValid)return this;const L={...this.values,...Hl(O,Wt.normalizeUnit)};return Ut(this,{values:L})}reconfigure({locale:O,numberingSystem:L,conversionAccuracy:Y,matrix:ee}={}){const ve={loc:this.loc.clone({locale:O,numberingSystem:L}),matrix:ee,conversionAccuracy:Y};return Ut(this,ve)}as(O){return this.isValid?this.shiftTo(O).get(O):NaN}normalize(){if(!this.isValid)return this;const O=this.toObject();return Yn(this.matrix,O),Ut(this,{values:O},!0)}rescale(){if(!this.isValid)return this;const O=Kn(this.normalize().shiftToAll().toObject());return Ut(this,{values:O},!0)}shiftTo(...O){if(!this.isValid)return this;if(O.length===0)return this;O=O.map(Oe=>Wt.normalizeUnit(Oe));const L={},Y={},ee=this.toObject();let ve;for(const Oe of Se)if(O.indexOf(Oe)>=0){ve=Oe;let je=0;for(const Ot in Y)je+=this.matrix[Ot][Oe]*Y[Ot],Y[Ot]=0;Zt(ee[Oe])&&(je+=ee[Oe]);const Ue=Math.trunc(je);L[Oe]=Ue,Y[Oe]=(je*1e3-Ue*1e3)/1e3}else Zt(ee[Oe])&&(Y[Oe]=ee[Oe]);for(const Oe in Y)Y[Oe]!==0&&(L[ve]+=Oe===ve?Y[Oe]:Y[Oe]/this.matrix[ve][Oe]);return Yn(this.matrix,L),Ut(this,{values:L},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const O={};for(const L of Object.keys(this.values))O[L]=this.values[L]===0?0:-this.values[L];return Ut(this,{values:O},!0)}removeZeros(){if(!this.isValid)return this;const O=Kn(this.values);return Ut(this,{values:O},!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(O){if(!this.isValid||!O.isValid||!this.loc.equals(O.loc))return!1;function L(Y,ee){return Y===void 0||Y===0?ee===void 0||ee===0:Y===ee}for(const Y of Se)if(!L(this.values[Y],O.values[Y]))return!1;return!0}}const wr="Invalid Interval";function Cr(U,O){return!U||!U.isValid?rn.invalid("missing or invalid start"):!O||!O.isValid?rn.invalid("missing or invalid end"):O<U?rn.invalid("end before start",`The end of an interval must be after its start, but you had start=${U.toISO()} and end=${O.toISO()}`):null}class rn{constructor(O){this.s=O.start,this.e=O.end,this.invalid=O.invalid||null,this.isLuxonInterval=!0}static invalid(O,L=null){if(!O)throw new s("need to specify a reason the Interval is invalid");const Y=O instanceof ut?O:new ut(O,L);if(qe.throwOnInvalid)throw new n(Y);return new rn({invalid:Y})}static fromDateTimes(O,L){const Y=Ha(O),ee=Ha(L);return Cr(Y,ee)??new rn({start:Y,end:ee})}static after(O,L){const Y=Wt.fromDurationLike(L),ee=Ha(O);return rn.fromDateTimes(ee,ee.plus(Y))}static before(O,L){const Y=Wt.fromDurationLike(L),ee=Ha(O);return rn.fromDateTimes(ee.minus(Y),ee)}static fromISO(O,L){const[Y,ee]=(O||"").split("/",2);if(Y&&ee){let ve,Oe;try{ve=mn.fromISO(Y,L),Oe=ve.isValid}catch{Oe=!1}let je,Ue;try{je=mn.fromISO(ee,L),Ue=je.isValid}catch{Ue=!1}if(Oe&&Ue)return rn.fromDateTimes(ve,je);if(Oe){const Ot=Wt.fromISO(ee,L);if(Ot.isValid)return rn.after(ve,Ot)}else if(Ue){const Ot=Wt.fromISO(Y,L);if(Ot.isValid)return rn.before(je,Ot)}}return rn.invalid("unparsable",`the input "${O}" can't be parsed as ISO 8601`)}static isInterval(O){return O&&O.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(O="milliseconds"){return this.isValid?this.toDuration(O).get(O):NaN}count(O="milliseconds",L){if(!this.isValid)return NaN;const Y=this.start.startOf(O,L);let ee;return L!=null&&L.useLocaleWeeks?ee=this.end.reconfigure({locale:Y.locale}):ee=this.end,ee=ee.startOf(O,L),Math.floor(ee.diff(Y,O).get(O))+(ee.valueOf()!==this.end.valueOf())}hasSame(O){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,O):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(O){return this.isValid?this.s>O:!1}isBefore(O){return this.isValid?this.e<=O:!1}contains(O){return this.isValid?this.s<=O&&this.e>O:!1}set({start:O,end:L}={}){return this.isValid?rn.fromDateTimes(O||this.s,L||this.e):this}splitAt(...O){if(!this.isValid)return[];const L=O.map(Ha).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=L[ve]||this.e,je=+Oe>+this.e?this.e:Oe;Y.push(rn.fromDateTimes(ee,je)),ee=je,ve+=1}return Y}splitBy(O){const L=Wt.fromDurationLike(O);if(!this.isValid||!L.isValid||L.as("milliseconds")===0)return[];let{s:Y}=this,ee=1,ve;const Oe=[];for(;Y<this.e;){const je=this.start.plus(L.mapUnits(Ue=>Ue*ee));ve=+je>+this.e?this.e:je,Oe.push(rn.fromDateTimes(Y,ve)),Y=ve,ee+=1}return Oe}divideEqually(O){return this.isValid?this.splitBy(this.length()/O).slice(0,O):[]}overlaps(O){return this.e>O.s&&this.s<O.e}abutsStart(O){return this.isValid?+this.e==+O.s:!1}abutsEnd(O){return this.isValid?+O.e==+this.s:!1}engulfs(O){return this.isValid?this.s<=O.s&&this.e>=O.e:!1}equals(O){return!this.isValid||!O.isValid?!1:this.s.equals(O.s)&&this.e.equals(O.e)}intersection(O){if(!this.isValid)return this;const L=this.s>O.s?this.s:O.s,Y=this.e<O.e?this.e:O.e;return L>=Y?null:rn.fromDateTimes(L,Y)}union(O){if(!this.isValid)return this;const L=this.s<O.s?this.s:O.s,Y=this.e>O.e?this.e:O.e;return rn.fromDateTimes(L,Y)}static merge(O){const[L,Y]=O.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&&L.push(Y),L}static xor(O){let L=null,Y=0;const ee=[],ve=O.map(Ue=>[{time:Ue.s,type:"s"},{time:Ue.e,type:"e"}]),Oe=Array.prototype.concat(...ve),je=Oe.sort((Ue,Ot)=>Ue.time-Ot.time);for(const Ue of je)Y+=Ue.type==="s"?1:-1,Y===1?L=Ue.time:(L&&+L!=+Ue.time&&ee.push(rn.fromDateTimes(L,Ue.time)),L=null);return rn.merge(ee)}difference(...O){return rn.xor([this].concat(O)).map(L=>this.intersection(L)).filter(L=>L&&!L.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:wr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(O=m,L={}){return this.isValid?Qr.create(this.s.loc.clone(L),O).formatInterval(this):wr}toISO(O){return this.isValid?`${this.s.toISO(O)}/${this.e.toISO(O)}`:wr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:wr}toISOTime(O){return this.isValid?`${this.s.toISOTime(O)}/${this.e.toISOTime(O)}`:wr}toFormat(O,{separator:L=" – "}={}){return this.isValid?`${this.s.toFormat(O)}${L}${this.e.toFormat(O)}`:wr}toDuration(O,L){return this.isValid?this.e.diff(this.s,O,L):Wt.invalid(this.invalidReason)}mapEndpoints(O){return rn.fromDateTimes(O(this.s),O(this.e))}}class gr{static hasDST(O=qe.defaultZone){const L=mn.now().setZone(O).set({month:12});return!O.isUniversal&&L.offset!==L.set({month:6}).offset}static isValidIANAZone(O){return ae.isValidZone(O)}static normalizeZone(O){return ct(O,qe.defaultZone)}static getStartOfWeek({locale:O=null,locObj:L=null}={}){return(L||Te.create(O)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:O=null,locObj:L=null}={}){return(L||Te.create(O)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:O=null,locObj:L=null}={}){return(L||Te.create(O)).getWeekendDays().slice()}static months(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||Te.create(L,Y,ve)).months(O)}static monthsFormat(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null,outputCalendar:ve="gregory"}={}){return(ee||Te.create(L,Y,ve)).months(O,!0)}static weekdays(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||Te.create(L,Y,null)).weekdays(O)}static weekdaysFormat(O="long",{locale:L=null,numberingSystem:Y=null,locObj:ee=null}={}){return(ee||Te.create(L,Y,null)).weekdays(O,!0)}static meridiems({locale:O=null}={}){return Te.create(O).meridiems()}static eras(O="short",{locale:L=null}={}){return Te.create(L,null,"gregory").eras(O)}static features(){return{relative:Ee(),localeWeek:He()}}}function Fr(U,O){const L=ee=>ee.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),Y=L(O)-L(U);return Math.floor(Wt.fromMillis(Y).as("days"))}function Ur(U,O,L){const Y=[["years",(Ue,Ot)=>Ot.year-Ue.year],["quarters",(Ue,Ot)=>Ot.quarter-Ue.quarter+(Ot.year-Ue.year)*4],["months",(Ue,Ot)=>Ot.month-Ue.month+(Ot.year-Ue.year)*12],["weeks",(Ue,Ot)=>{const gn=Fr(Ue,Ot);return(gn-gn%7)/7}],["days",Fr]],ee={},ve=U;let Oe,je;for(const[Ue,Ot]of Y)L.indexOf(Ue)>=0&&(Oe=Ue,ee[Ue]=Ot(U,O),je=ve.plus(ee),je>O?(ee[Ue]--,U=ve.plus(ee),U>O&&(je=U,ee[Ue]--,U=ve.plus(ee))):U=je);return[U,ee,je,Oe]}function Fa(U,O,L,Y){let[ee,ve,Oe,je]=Ur(U,O,L);const Ue=O-ee,Ot=L.filter(jn=>["hours","minutes","seconds","milliseconds"].indexOf(jn)>=0);Ot.length===0&&(Oe<O&&(Oe=ee.plus({[je]:1})),Oe!==ee&&(ve[je]=(ve[je]||0)+Ue/(Oe-ee)));const gn=Wt.fromObject(ve,Y);return Ot.length>0?Wt.fromMillis(Ue,Y).shiftTo(...Ot).plus(gn):gn}const aa="missing Intl.DateTimeFormat.formatToParts support";function Ln(U,O=L=>L){return{regex:U,deser:([L])=>O(vn(L))}}const fl="[  ]",ia=new RegExp(fl,"g");function ns(U){return U.replace(/\./g,"\\.?").replace(ia,fl)}function Go(U){return U.replace(/\./g,"").replace(ia," ").toLowerCase()}function Zr(U,O){return U===null?null:{regex:RegExp(U.map(ns).join("|")),deser:([L])=>U.findIndex(Y=>Go(L)===Go(Y))+O}}function pl(U,O){return{regex:U,deser:([,L,Y])=>ol(L,Y),groups:O}}function mo(U){return{regex:U,deser:([O])=>O}}function Xl(U){return U.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Dp(U,O){const L=Qt(O),Y=Qt(O,"{2}"),ee=Qt(O,"{3}"),ve=Qt(O,"{4}"),Oe=Qt(O,"{6}"),je=Qt(O,"{1,2}"),Ue=Qt(O,"{1,3}"),Ot=Qt(O,"{1,6}"),gn=Qt(O,"{1,9}"),jn=Qt(O,"{2,4}"),lr=Qt(O,"{4,6}"),Sn=Ao=>({regex:RegExp(Xl(Ao.val)),deser:([ga])=>ga,literal:!0}),qr=(Ao=>{if(U.literal)return Sn(Ao);switch(Ao.val){case"G":return Zr(O.eras("short"),0);case"GG":return Zr(O.eras("long"),0);case"y":return Ln(Ot);case"yy":return Ln(jn,pi);case"yyyy":return Ln(ve);case"yyyyy":return Ln(lr);case"yyyyyy":return Ln(Oe);case"M":return Ln(je);case"MM":return Ln(Y);case"MMM":return Zr(O.months("short",!0),1);case"MMMM":return Zr(O.months("long",!0),1);case"L":return Ln(je);case"LL":return Ln(Y);case"LLL":return Zr(O.months("short",!1),1);case"LLLL":return Zr(O.months("long",!1),1);case"d":return Ln(je);case"dd":return Ln(Y);case"o":return Ln(Ue);case"ooo":return Ln(ee);case"HH":return Ln(Y);case"H":return Ln(je);case"hh":return Ln(Y);case"h":return Ln(je);case"mm":return Ln(Y);case"m":return Ln(je);case"q":return Ln(je);case"qq":return Ln(Y);case"s":return Ln(je);case"ss":return Ln(Y);case"S":return Ln(Ue);case"SSS":return Ln(ee);case"u":return mo(gn);case"uu":return mo(je);case"uuu":return Ln(L);case"a":return Zr(O.meridiems(),0);case"kkkk":return Ln(ve);case"kk":return Ln(jn,pi);case"W":return Ln(je);case"WW":return Ln(Y);case"E":case"c":return Ln(L);case"EEE":return Zr(O.weekdays("short",!1),1);case"EEEE":return Zr(O.weekdays("long",!1),1);case"ccc":return Zr(O.weekdays("short",!0),1);case"cccc":return Zr(O.weekdays("long",!0),1);case"Z":case"ZZ":return pl(new RegExp(`([+-]${je.source})(?::(${Y.source}))?`),2);case"ZZZ":return pl(new RegExp(`([+-]${je.source})(${Y.source})?`),2);case"z":return mo(/[a-z_+-/]{1,256}?/i);case" ":return mo(/[^\S\n\r]/);default:return Sn(Ao)}})(U)||{invalidReason:aa};return qr.token=U,qr}const Eg={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 hl(U,O,L){const{type:Y,value:ee}=U;if(Y==="literal"){const Ue=/^\s+$/.test(ee);return{literal:!Ue,val:Ue?" ":ee}}const ve=O[Y];let Oe=Y;Y==="hour"&&(O.hour12!=null?Oe=O.hour12?"hour12":"hour24":O.hourCycle!=null?O.hourCycle==="h11"||O.hourCycle==="h12"?Oe="hour12":Oe="hour24":Oe=L.hour12?"hour12":"hour24");let je=Eg[Oe];if(typeof je=="object"&&(je=je[ve]),je)return{literal:!1,val:je}}function Og(U){return[`^${U.map(O=>O.regex).reduce((O,L)=>`${O}(${L.source})`,"")}$`,U]}function Rg(U,O,L){const Y=U.match(O);if(Y){const ee={};let ve=1;for(const Oe in L)if(St(L,Oe)){const je=L[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 $g(U){const O=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 L=null,Y;return Ke(U.z)||(L=ae.create(U.z)),Ke(U.Z)||(L||(L=new Mt(U.Z)),Y=U.Z),Ke(U.q)||(U.M=(U.q-1)*3+1),Ke(U.h)||(U.h<12&&U.a===1?U.h+=12:U.h===12&&U.a===0&&(U.h=0)),U.G===0&&U.y&&(U.y=-U.y),Ke(U.u)||(U.S=bs(U.u)),[Object.keys(U).reduce((ee,ve)=>{const Oe=O(ve);return Oe&&(ee[Oe]=U[ve]),ee},{}),L,Y]}let Ap=null;function T0(){return Ap||(Ap=mn.fromMillis(1555555555555)),Ap}function M0(U,O){if(U.literal)return U;const L=Qr.macroTokenToFormatOpts(U.val),Y=Ip(L,O);return Y==null||Y.includes(void 0)?U:Y}function jp(U,O){return Array.prototype.concat(...U.map(L=>M0(L,O)))}class Np{constructor(O,L){if(this.locale=O,this.format=L,this.tokens=jp(Qr.parseFormat(L),O),this.units=this.tokens.map(Y=>Dp(Y,O)),this.disqualifyingUnit=this.units.find(Y=>Y.invalidReason),!this.disqualifyingUnit){const[Y,ee]=Og(this.units);this.regex=RegExp(Y,"i"),this.handlers=ee}}explainFromTokens(O){if(this.isValid){const[L,Y]=Rg(O,this.regex,this.handlers),[ee,ve,Oe]=Y?$g(Y):[null,null,void 0];if(St(Y,"a")&&St(Y,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:O,tokens:this.tokens,regex:this.regex,rawMatches:L,matches:Y,result:ee,zone:ve,specificOffset:Oe}}else return{input:O,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Dd(U,O,L){return new Np(U,L).explainFromTokens(O)}function Ba(U,O,L){const{result:Y,zone:ee,specificOffset:ve,invalidReason:Oe}=Dd(U,O,L);return[Y,ee,ve,Oe]}function Ip(U,O){if(!U)return null;const L=Qr.create(O,U).dtFormatter(T0()),Y=L.formatToParts(),ee=L.resolvedOptions();return Y.map(ve=>hl(ve,U,ee))}const Qo="Invalid DateTime",sa=864e13;function mi(U){return new ut("unsupported zone",`the zone "${U.name}" is not supported`)}function fu(U){return U.weekData===null&&(U.weekData=Ht(U.c)),U.weekData}function Zl(U){return U.localWeekData===null&&(U.localWeekData=Ht(U.c,U.loc.getMinDaysInFirstWeek(),U.loc.getStartOfWeek())),U.localWeekData}function gi(U,O){const L={ts:U.ts,zone:U.zone,c:U.c,o:U.o,loc:U.loc,invalid:U.invalid};return new mn({...L,...O,old:L})}function Ad(U,O,L){let Y=U-O*60*1e3;const ee=L.offset(Y);if(O===ee)return[Y,O];Y-=(ee-O)*60*1e3;const ve=L.offset(Y);return ee===ve?[Y,ee]:[U-Math.min(ee,ve)*60*1e3,Math.max(ee,ve)]}function rs(U,O){U+=O*60*1e3;const L=new Date(U);return{year:L.getUTCFullYear(),month:L.getUTCMonth()+1,day:L.getUTCDate(),hour:L.getUTCHours(),minute:L.getUTCMinutes(),second:L.getUTCSeconds(),millisecond:L.getUTCMilliseconds()}}function pu(U,O,L){return Ad(Ss(U),O,L)}function hu(U,O){const L=U.o,Y=U.c.year+Math.trunc(O.years),ee=U.c.month+Math.trunc(O.months)+Math.trunc(O.quarters)*3,ve={...U.c,year:Y,month:ee,day:Math.min(U.c.day,Mo(Y,ee))+Math.trunc(O.days)+Math.trunc(O.weeks)*7},Oe=Wt.fromObject({years:O.years-Math.trunc(O.years),quarters:O.quarters-Math.trunc(O.quarters),months:O.months-Math.trunc(O.months),weeks:O.weeks-Math.trunc(O.weeks),days:O.days-Math.trunc(O.days),hours:O.hours,minutes:O.minutes,seconds:O.seconds,milliseconds:O.milliseconds}).as("milliseconds"),je=Ss(ve);let[Ue,Ot]=Ad(je,L,U.zone);return Oe!==0&&(Ue+=Oe,Ot=U.zone.offset(Ue)),{ts:Ue,o:Ot}}function Ua(U,O,L,Y,ee,ve){const{setZone:Oe,zone:je}=L;if(U&&Object.keys(U).length!==0||O){const Ue=O||je,Ot=mn.fromObject(U,{...L,zone:Ue,specificOffset:ve});return Oe?Ot:Ot.setZone(je)}else return mn.invalid(new ut("unparsable",`the input "${ee}" can't be parsed as ${Y}`))}function jd(U,O,L=!0){return U.isValid?Qr.create(Te.create("en-US"),{allowZ:L,forceSimple:!0}).formatDateTimeFromString(U,O):null}function Bo(U,O,L){const Y=U.c.year>9999||U.c.year<0;let ee="";if(Y&&U.c.year>=0&&(ee+="+"),ee+=sr(U.c.year,Y?6:4),L==="year")return ee;if(O){if(ee+="-",ee+=sr(U.c.month),L==="month")return ee;ee+="-"}else if(ee+=sr(U.c.month),L==="month")return ee;return ee+=sr(U.c.day),ee}function Nd(U,O,L,Y,ee,ve,Oe){let je=!L||U.c.millisecond!==0||U.c.second!==0,Ue="";switch(Oe){case"day":case"month":case"year":break;default:if(Ue+=sr(U.c.hour),Oe==="hour")break;if(O){if(Ue+=":",Ue+=sr(U.c.minute),Oe==="minute")break;je&&(Ue+=":",Ue+=sr(U.c.second))}else{if(Ue+=sr(U.c.minute),Oe==="minute")break;je&&(Ue+=sr(U.c.second))}if(Oe==="second")break;je&&(!Y||U.c.millisecond!==0)&&(Ue+=".",Ue+=sr(U.c.millisecond,3))}return ee&&(U.isOffsetFixed&&U.offset===0&&!ve?Ue+="Z":U.o<0?(Ue+="-",Ue+=sr(Math.trunc(-U.o/60)),Ue+=":",Ue+=sr(Math.trunc(-U.o%60))):(Ue+="+",Ue+=sr(Math.trunc(U.o/60)),Ue+=":",Ue+=sr(Math.trunc(U.o%60)))),ve&&(Ue+="["+U.zone.ianaName+"]"),Ue}const yi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pg={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Id={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vi=["year","month","day","hour","minute","second","millisecond"],Lp=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],zp=["year","ordinal","hour","minute","second","millisecond"];function os(U){const O={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"}[U.toLowerCase()];if(!O)throw new a(U);return O}function ml(U){switch(U.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return os(U)}}function Ld(U){if(_a===void 0&&(_a=qe.now()),U.type!=="iana")return U.offset(_a);const O=U.name;let L=Va.get(O);return L===void 0&&(L=U.offset(_a),Va.set(O,L)),L}function mu(U,O){const L=ct(O.zone,qe.defaultZone);if(!L.isValid)return mn.invalid(mi(L));const Y=Te.fromObject(O);let ee,ve;if(Ke(U.year))ee=qe.now();else{for(const Ue of vi)Ke(U[Ue])&&(U[Ue]=yi[Ue]);const Oe=Ve(U)||vt(U);if(Oe)return mn.invalid(Oe);const je=Ld(L);[ee,ve]=pu(U,je,L)}return new mn({ts:ee,zone:L,loc:Y,o:ve})}function la(U,O,L){const Y=Ke(L.round)?!0:L.round,ee=Ke(L.rounding)?"trunc":L.rounding,ve=(je,Ue)=>(je=Vl(je,Y||L.calendary?0:2,L.calendary?"round":ee),O.loc.clone(L).relFormatter(L).format(je,Ue)),Oe=je=>L.calendary?O.hasSame(U,je)?0:O.startOf(je).diff(U.startOf(je),je).get(je):O.diff(U,je).get(je);if(L.unit)return ve(Oe(L.unit),L.unit);for(const je of L.units){const Ue=Oe(je);if(Math.abs(Ue)>=1)return ve(Ue,je)}return ve(U>O?-0:0,L.units[L.units.length-1])}function ca(U){let O={},L;return U.length>0&&typeof U[U.length-1]=="object"?(O=U[U.length-1],L=Array.from(U).slice(0,U.length-1)):L=Array.from(U),[O,L]}let _a;const Va=new Map;class mn{constructor(O){const L=O.zone||qe.defaultZone;let Y=O.invalid||(Number.isNaN(O.ts)?new ut("invalid input"):null)||(L.isValid?null:mi(L));this.ts=Ke(O.ts)?qe.now():O.ts;let ee=null,ve=null;if(!Y)if(O.old&&O.old.ts===this.ts&&O.old.zone.equals(L))[ee,ve]=[O.old.c,O.old.o];else{const Oe=Zt(O.o)&&!O.old?O.o:L.offset(this.ts);ee=rs(this.ts,Oe),Y=Number.isNaN(ee.year)?new ut("invalid input"):null,ee=Y?null:ee,ve=Y?null:Oe}this._zone=L,this.loc=O.loc||Te.create(),this.invalid=Y,this.weekData=null,this.localWeekData=null,this.c=ee,this.o=ve,this.isLuxonDateTime=!0}static now(){return new mn({})}static local(){const[O,L]=ca(arguments),[Y,ee,ve,Oe,je,Ue,Ot]=L;return mu({year:Y,month:ee,day:ve,hour:Oe,minute:je,second:Ue,millisecond:Ot},O)}static utc(){const[O,L]=ca(arguments),[Y,ee,ve,Oe,je,Ue,Ot]=L;return O.zone=Mt.utcInstance,mu({year:Y,month:ee,day:ve,hour:Oe,minute:je,second:Ue,millisecond:Ot},O)}static fromJSDate(O,L={}){const Y=me(O)?O.valueOf():NaN;if(Number.isNaN(Y))return mn.invalid("invalid input");const ee=ct(L.zone,qe.defaultZone);return ee.isValid?new mn({ts:Y,zone:ee,loc:Te.fromObject(L)}):mn.invalid(mi(ee))}static fromMillis(O,L={}){if(Zt(O))return O<-sa||O>sa?mn.invalid("Timestamp out of range"):new mn({ts:O,zone:ct(L.zone,qe.defaultZone),loc:Te.fromObject(L)});throw new s(`fromMillis requires a numerical input, but received a ${typeof O} with value ${O}`)}static fromSeconds(O,L={}){if(Zt(O))return new mn({ts:O*1e3,zone:ct(L.zone,qe.defaultZone),loc:Te.fromObject(L)});throw new s("fromSeconds requires a numerical input")}static fromObject(O,L={}){O=O||{};const Y=ct(L.zone,qe.defaultZone);if(!Y.isValid)return mn.invalid(mi(Y));const ee=Te.fromObject(L),ve=Hl(O,ml),{minDaysInFirstWeek:Oe,startOfWeek:je}=dn(ve,ee),Ue=qe.now(),Ot=Ke(L.specificOffset)?Y.offset(Ue):L.specificOffset,gn=!Ke(ve.ordinal),jn=!Ke(ve.year),lr=!Ke(ve.month)||!Ke(ve.day),Sn=jn||lr,qr=ve.weekYear||ve.weekNumber;if((Sn||gn)&&qr)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(lr&&gn)throw new o("Can't mix ordinal dates with month/day");const Ao=qr||ve.weekday&&!Sn;let ga,ya,va=rs(Ue,Ot);Ao?(ga=Lp,ya=Pg,va=Ht(va,Oe,je)):gn?(ga=zp,ya=Id,va=qn(va)):(ga=vi,ya=yi);let bi=!1;for(const Rs of ga){const Ag=ve[Rs];Ke(Ag)?bi?ve[Rs]=ya[Rs]:ve[Rs]=va[Rs]:bi=!0}const Fp=Ao?ue(ve,Oe,je):gn?fe(ve):Ve(ve),zd=Fp||vt(ve);if(zd)return mn.invalid(zd);const gu=Ao?On(ve,Oe,je):gn?bn(ve):ve,[Fd,gl]=pu(gu,Ot,Y),to=new mn({ts:Fd,zone:Y,o:gl,loc:ee});return ve.weekday&&Sn&&O.weekday!==to.weekday?mn.invalid("mismatched weekday",`you can't specify both a weekday of ${ve.weekday} and a date of ${to.toISO()}`):to.isValid?to:mn.invalid(to.invalid)}static fromISO(O,L={}){const[Y,ee]=Ed(O);return Ua(Y,ee,L,"ISO 8601",O)}static fromRFC2822(O,L={}){const[Y,ee]=Od(O);return Ua(Y,ee,L,"RFC 2822",O)}static fromHTTP(O,L={}){const[Y,ee]=Rd(O);return Ua(Y,ee,L,"HTTP",L)}static fromFormat(O,L,Y={}){if(Ke(O)||Ke(L))throw new s("fromFormat requires an input string and a format");const{locale:ee=null,numberingSystem:ve=null}=Y,Oe=Te.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0}),[je,Ue,Ot,gn]=Ba(Oe,O,L);return gn?mn.invalid(gn):Ua(je,Ue,Y,`format ${L}`,O,Ot)}static fromString(O,L,Y={}){return mn.fromFormat(O,L,Y)}static fromSQL(O,L={}){const[Y,ee]=dl(O);return Ua(Y,ee,L,"SQL",O)}static invalid(O,L=null){if(!O)throw new s("need to specify a reason the DateTime is invalid");const Y=O instanceof ut?O:new ut(O,L);if(qe.throwOnInvalid)throw new t(Y);return new mn({invalid:Y})}static isDateTime(O){return O&&O.isLuxonDateTime||!1}static parseFormatForOpts(O,L={}){const Y=Ip(O,Te.fromObject(L));return Y?Y.map(ee=>ee?ee.val:null).join(""):null}static expandFormat(O,L={}){return jp(Qr.parseFormat(O),Te.fromObject(L)).map(Y=>Y.val).join("")}static resetCache(){_a=void 0,Va.clear()}get(O){return this[O]}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?fu(this).weekYear:NaN}get weekNumber(){return this.isValid?fu(this).weekNumber:NaN}get weekday(){return this.isValid?fu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Zl(this).weekday:NaN}get localWeekNumber(){return this.isValid?Zl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Zl(this).weekYear:NaN}get ordinal(){return this.isValid?qn(this.c).ordinal:NaN}get monthShort(){return this.isValid?gr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?gr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?gr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?gr.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 O=864e5,L=6e4,Y=Ss(this.c),ee=this.zone.offset(Y-O),ve=this.zone.offset(Y+O),Oe=this.zone.offset(Y-ee*L),je=this.zone.offset(Y-ve*L);if(Oe===je)return[this];const Ue=Y-Oe*L,Ot=Y-je*L,gn=rs(Ue,Oe),jn=rs(Ot,je);return gn.hour===jn.hour&&gn.minute===jn.minute&&gn.second===jn.second&&gn.millisecond===jn.millisecond?[gi(this,{ts:Ue}),gi(this,{ts:Ot})]:[this]}get isInLeapYear(){return fi(this.year)}get daysInMonth(){return Mo(this.year,this.month)}get daysInYear(){return this.isValid?xs(this.year):NaN}get weeksInWeekYear(){return this.isValid?Qi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Qi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(O={}){const{locale:L,numberingSystem:Y,calendar:ee}=Qr.create(this.loc.clone(O),O).resolvedOptions(this);return{locale:L,numberingSystem:Y,outputCalendar:ee}}toUTC(O=0,L={}){return this.setZone(Mt.instance(O),L)}toLocal(){return this.setZone(qe.defaultZone)}setZone(O,{keepLocalTime:L=!1,keepCalendarTime:Y=!1}={}){if(O=ct(O,qe.defaultZone),O.equals(this.zone))return this;if(O.isValid){let ee=this.ts;if(L||Y){const ve=O.offset(this.ts),Oe=this.toObject();[ee]=pu(Oe,ve,O)}return gi(this,{ts:ee,zone:O})}else return mn.invalid(mi(O))}reconfigure({locale:O,numberingSystem:L,outputCalendar:Y}={}){const ee=this.loc.clone({locale:O,numberingSystem:L,outputCalendar:Y});return gi(this,{loc:ee})}setLocale(O){return this.reconfigure({locale:O})}set(O){if(!this.isValid)return this;const L=Hl(O,ml),{minDaysInFirstWeek:Y,startOfWeek:ee}=dn(L,this.loc),ve=!Ke(L.weekYear)||!Ke(L.weekNumber)||!Ke(L.weekday),Oe=!Ke(L.ordinal),je=!Ke(L.year),Ue=!Ke(L.month)||!Ke(L.day),Ot=je||Ue,gn=L.weekYear||L.weekNumber;if((Ot||Oe)&&gn)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 jn;ve?jn=On({...Ht(this.c,Y,ee),...L},Y,ee):Ke(L.ordinal)?(jn={...this.toObject(),...L},Ke(L.day)&&(jn.day=Math.min(Mo(jn.year,jn.month),jn.day))):jn=bn({...qn(this.c),...L});const[lr,Sn]=pu(jn,this.o,this.zone);return gi(this,{ts:lr,o:Sn})}plus(O){if(!this.isValid)return this;const L=Wt.fromDurationLike(O);return gi(this,hu(this,L))}minus(O){if(!this.isValid)return this;const L=Wt.fromDurationLike(O).negate();return gi(this,hu(this,L))}startOf(O,{useLocaleWeeks:L=!1}={}){if(!this.isValid)return this;const Y={},ee=Wt.normalizeUnit(O);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(L){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(O,L){return this.isValid?this.plus({[O]:1}).startOf(O,L).minus(1):this}toFormat(O,L={}){return this.isValid?Qr.create(this.loc.redefaultToEN(L)).formatDateTimeFromString(this,O):Qo}toLocaleString(O=m,L={}){return this.isValid?Qr.create(this.loc.clone(L),O).formatDateTime(this):Qo}toLocaleParts(O={}){return this.isValid?Qr.create(this.loc.clone(O),O).formatDateTimeParts(this):[]}toISO({format:O="extended",suppressSeconds:L=!1,suppressMilliseconds:Y=!1,includeOffset:ee=!0,extendedZone:ve=!1,precision:Oe="milliseconds"}={}){if(!this.isValid)return null;Oe=os(Oe);const je=O==="extended";let Ue=Bo(this,je,Oe);return vi.indexOf(Oe)>=3&&(Ue+="T"),Ue+=Nd(this,je,L,Y,ee,ve,Oe),Ue}toISODate({format:O="extended",precision:L="day"}={}){return this.isValid?Bo(this,O==="extended",os(L)):null}toISOWeekDate(){return jd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:O=!1,suppressSeconds:L=!1,includeOffset:Y=!0,includePrefix:ee=!1,extendedZone:ve=!1,format:Oe="extended",precision:je="milliseconds"}={}){return this.isValid?(je=os(je),(ee&&vi.indexOf(je)>=3?"T":"")+Nd(this,Oe==="extended",L,O,Y,ve,je)):null}toRFC2822(){return jd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return jd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Bo(this,!0):null}toSQLTime({includeOffset:O=!0,includeZone:L=!1,includeOffsetSpace:Y=!0}={}){let ee="HH:mm:ss.SSS";return(L||O)&&(Y&&(ee+=" "),L?ee+="z":O&&(ee+="ZZ")),jd(this,ee,!0)}toSQL(O={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(O)}`:null}toString(){return this.isValid?this.toISO():Qo}[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(O={}){if(!this.isValid)return{};const L={...this.c};return O.includeConfig&&(L.outputCalendar=this.outputCalendar,L.numberingSystem=this.loc.numberingSystem,L.locale=this.loc.locale),L}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(O,L="milliseconds",Y={}){if(!this.isValid||!O.isValid)return Wt.invalid("created by diffing an invalid DateTime");const ee={locale:this.locale,numberingSystem:this.numberingSystem,...Y},ve=yt(L).map(Wt.normalizeUnit),Oe=O.valueOf()>this.valueOf(),je=Oe?this:O,Ue=Oe?O:this,Ot=Fa(je,Ue,ve,ee);return Oe?Ot.negate():Ot}diffNow(O="milliseconds",L={}){return this.diff(mn.now(),O,L)}until(O){return this.isValid?rn.fromDateTimes(this,O):this}hasSame(O,L,Y){if(!this.isValid)return!1;const ee=O.valueOf(),ve=this.setZone(O.zone,{keepLocalTime:!0});return ve.startOf(L,Y)<=ee&&ee<=ve.endOf(L,Y)}equals(O){return this.isValid&&O.isValid&&this.valueOf()===O.valueOf()&&this.zone.equals(O.zone)&&this.loc.equals(O.loc)}toRelative(O={}){if(!this.isValid)return null;const L=O.base||mn.fromObject({},{zone:this.zone}),Y=O.padding?this<L?-O.padding:O.padding:0;let ee=["years","months","days","hours","minutes","seconds"],ve=O.unit;return Array.isArray(O.unit)&&(ee=O.unit,ve=void 0),la(L,this.plus(Y),{...O,numeric:"always",units:ee,unit:ve})}toRelativeCalendar(O={}){return this.isValid?la(O.base||mn.fromObject({},{zone:this.zone}),this,{...O,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...O){if(!O.every(mn.isDateTime))throw new s("min requires all arguments be DateTimes");return Rt(O,L=>L.valueOf(),Math.min)}static max(...O){if(!O.every(mn.isDateTime))throw new s("max requires all arguments be DateTimes");return Rt(O,L=>L.valueOf(),Math.max)}static fromFormatExplain(O,L,Y={}){const{locale:ee=null,numberingSystem:ve=null}=Y,Oe=Te.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});return Dd(Oe,O,L)}static fromStringExplain(O,L,Y={}){return mn.fromFormatExplain(O,L,Y)}static buildFormatParser(O,L={}){const{locale:Y=null,numberingSystem:ee=null}=L,ve=Te.fromOpts({locale:Y,numberingSystem:ee,defaultToEN:!0});return new Np(ve,O)}static fromFormatParser(O,L,Y={}){if(Ke(O)||Ke(L))throw new s("fromFormatParser requires an input string and a format parser");const{locale:ee=null,numberingSystem:ve=null}=Y,Oe=Te.fromOpts({locale:ee,numberingSystem:ve,defaultToEN:!0});if(!Oe.equals(L.locale))throw new s(`fromFormatParser called with a locale of ${Oe}, but the format parser was created for ${L.locale}`);const{result:je,zone:Ue,specificOffset:Ot,invalidReason:gn}=L.explainFromTokens(O);return gn?mn.invalid(gn):Ua(je,Ue,Y,`format ${L.format}`,O,Ot)}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 T}static get TIME_WITH_LONG_OFFSET(){return M}static get TIME_24_SIMPLE(){return R}static get TIME_24_WITH_SECONDS(){return $}static get TIME_24_WITH_SHORT_OFFSET(){return P}static get TIME_24_WITH_LONG_OFFSET(){return N}static get DATETIME_SHORT(){return V}static get DATETIME_SHORT_WITH_SECONDS(){return z}static get DATETIME_MED(){return W}static get DATETIME_MED_WITH_SECONDS(){return H}static get DATETIME_MED_WITH_WEEKDAY(){return k}static get DATETIME_FULL(){return I}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return _}static get DATETIME_HUGE_WITH_SECONDS(){return j}}function Ha(U){if(mn.isDateTime(U))return U;if(U&&U.valueOf&&Zt(U.valueOf()))return mn.fromJSDate(U);if(U&&typeof U=="object")return mn.fromObject(U);throw new s(`Unknown datetime argument: ${U}, of type ${typeof U}`)}const Dg="3.7.2";return wa.DateTime=mn,wa.Duration=Wt,wa.FixedOffsetZone=Mt,wa.IANAZone=ae,wa.Info=gr,wa.Interval=rn,wa.InvalidZone=gt,wa.Settings=qe,wa.SystemZone=te,wa.VERSION=Dg,wa.Zone=X,wa}var sD;function Uk(){return sD||(sD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronDate=e.DAYS_IN_MONTH=e.DateMathOp=e.TimeUnit=void 0;const t=ofe();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 d={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,d):typeof s=="number"?this.#e=t.DateTime.fromMillis(s,d):(this.#e=t.DateTime.fromISO(s,d),this.#e.isValid||(this.#e=t.DateTime.fromRFC2822(s,d)),this.#e.isValid||(this.#e=t.DateTime.fromSQL(s,d)),this.#e.isValid||(this.#e=t.DateTime.fromFormat(s,"EEE, d MMM yyyy HH:mm:ss",d))):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 d=o.#o(this.#e.year);return s===e.DAYS_IN_MONTH[l-1]-(d?0:1)}return s===e.DAYS_IN_MONTH[l-1]}isLastWeekdayOfMonth(){const{day:s,month:l}=this.#e;let d;return l===2?d=e.DAYS_IN_MONTH[l-1]-(o.#o(this.#e.year)?0:1):d=e.DAYS_IN_MONTH[l-1],s>d-7}applyDateOperation(s,l,d){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?d!==24&&(this.dstStart=f+1):m===0&&this.getMinutes()===0&&this.getSeconds()===0&&d!==24&&(this.dstEnd=c)}#r(){return this.#e.toUTC()}}e.CronDate=o,e.default=o})(aD)),aD}var lD;function afe(){if(lD)return tm;lD=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.CronMonth=void 0;const e=Uk(),t=gd(),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 tm.CronMonth=a,tm}var nm={},cD;function ife(){if(cD)return nm;cD=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.CronSecond=void 0;const e=gd(),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 nm.CronSecond=o,nm}var uD;function _k(){return uD||(uD=1,(function(e){var t=Cf&&Cf.__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=Cf&&Cf.__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(Jde(),e),n(efe(),e),n(tfe(),e),n(gd(),e),n(nfe(),e),n(rfe(),e),n(afe(),e),n(ife(),e)})(Cf)),Cf}var dD;function IL(){if(dD)return Gh;dD=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.CronFieldCollection=void 0;const e=_k();let t=class mm{#e;#t;#n;#o;#r;#a;static from(r,o){return new mm({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:d}){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(!d)throw new Error("Validation error, Field dayOfWeek is missing");if(l.values.length===1&&!s.hasLastChar&&d.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=d,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,d)=>{if(a===void 0){a={start:s,count:1};return}const f=d[l-1]||a.start,c=d[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 d={length:r.end-r.start+1};return Array.from(d,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=mm.compactField(a);if(s.length===1){const l=mm.#s(r,s[0],o);if(l)return l}return s.map(l=>{const d=l.count===1?l.start.toString():mm.#i(l,o);return r instanceof e.CronDayOfWeek&&r.nthDay>0?`${d}#${r.nthDay}`:d}).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 Gh.CronFieldCollection=t,Gh}var fD={},pD;function LL(){return pD||(pD=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=Uk();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 d=new t.CronDate(l,this.#t);this.#o&&d.getTime()<this.#o.getTime()?l=this.#o:this.#r&&d.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 d=new t.CronDate(a);return d.setEndOfDay(),this.#s=s,this.#i=l.getUTCOffset()!==d.getUTCOffset(),this.#i}#u(a,s,l){const d=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(d,l))}#p(a,s,l){const d=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(d,l)),a.setSeconds(this.#l(f,l))}static#f(a,s){const l=s.isLastWeekdayOfMonth();return a.some(d=>{const f=parseInt(d.toString().charAt(0),10)%7;if(Number.isNaN(f))throw new Error(`Invalid last weekday of the month expression: ${d}`);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:d,month:f}=this.#a,c=new t.CronDate(a,this.#t);return!(!s.values.includes(c.getSeconds())||!l.values.includes(c.getMinutes())||!d.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,d=this.#a.dayOfWeek.isWildcard,f=!d,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&&!d&&m)}#g(a,s,l){const d=this.#a.hour.values,f=d,c=a.getHours(),m=r.#c(c,d),y=a.dstEnd===c;if(a.dstStart!==null&&a.dstStart===c-1&&r.#c(a.dstStart,d))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),d=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(d===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})(fD)),fD}var rv={},hD;function sfe(){if(hD)return rv;hD=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.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 rv}var mD;function Ow(){if(mD)return Qa;mD=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.CronExpressionParser=Qa.DayOfWeek=Qa.Months=Qa.CronUnit=Qa.PredefinedExpressions=void 0;const e=IL(),t=LL(),n=sfe(),r=_k();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||(Qa.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||(Qa.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||(Qa.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||(Qa.DayOfWeek=l={}));let d=class Xa{static parse(c,m={}){const{strict:y=!1,hashSeed:v}=m,b=(0,n.seededRandom)(v);c=o[c]||c;const x=Xa.#e(c,y);if(!(x.dayOfMonth==="*"||x.dayOfWeek==="*"||!y))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");const w=Xa.#t(a.Second,x.second,r.CronSecond.constraints,b),S=Xa.#t(a.Minute,x.minute,r.CronMinute.constraints,b),T=Xa.#t(a.Hour,x.hour,r.CronHour.constraints,b),M=Xa.#t(a.Month,x.month,r.CronMonth.constraints,b),R=Xa.#t(a.DayOfMonth,x.dayOfMonth,r.CronDayOfMonth.constraints,b),{dayOfWeek:$,nthDayOfWeek:P}=Xa.#d(x.dayOfWeek),N=Xa.#t(a.DayOfWeek,$,r.CronDayOfWeek.constraints,b),V=new e.CronFieldCollection({second:new r.CronSecond(w,{rawValue:x.second}),minute:new r.CronMinute(S,{rawValue:x.minute}),hour:new r.CronHour(T,{rawValue:x.hour}),dayOfMonth:new r.CronDayOfMonth(R,{rawValue:x.dayOfMonth}),month:new r.CronMonth(M,{rawValue:x.month}),dayOfWeek:new r.CronDayOfWeek(N,{rawValue:x.dayOfWeek,nthDayOfWeek:P})});return new t.CronExpression(V,{...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,T,M]=y;return{second:b,minute:x,hour:w,dayOfMonth:S,month:T,dayOfWeek:M}}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 T=parseInt(x,10),M=parseInt(w,10),R=parseInt(S,10);if(T>M)throw new Error(`Invalid range: ${T}-${M}, min > max`);if(R<=0)throw new Error(`Invalid step: ${R}, must be positive`);const $=Math.max(T,m.min),P=Math.floor(v*R),N=[];for(let V=Math.floor($/R)*R+P;V<=M;V+=R)V>=$&&N.push(V);return N.join(",")}else if(x&&w){const T=parseInt(x,10),M=parseInt(w,10);if(T>M)throw new Error(`Invalid range: ${T}-${M}, min > max`);return String(Math.floor(v*(M-T+1))+T)}else if(S){const T=parseInt(S,10);if(T<=0)throw new Error(`Invalid step: ${T}, must be positive`);const M=Math.floor(v*T),R=[];for(let $=Math.floor(m.min/T)*T+M;$<=m.max;$+=T)$>=m.min&&R.push($);return R.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(Xa.#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(Xa.#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}`),Xa.#l(c,v[0],parseInt(v[1],10),y)):Xa.#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 Qa.CronExpressionParser=d,Qa}var cs={};const lfe={},cfe=Object.freeze(Object.defineProperty({__proto__:null,default:lfe},Symbol.toStringTag,{value:"Module"})),gD=DQ(cfe);var yD;function ufe(){if(yD)return cs;yD=1;var e=cs&&cs.__createBinding||(Object.create?(function(a,s,l,d){d===void 0&&(d=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,d,f)}):(function(a,s,l,d){d===void 0&&(d=l),a[d]=s[l]})),t=cs&&cs.__setModuleDefault||(Object.create?(function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}):function(a,s){a.default=s}),n=cs&&cs.__importStar||(function(){var a=function(s){return a=Object.getOwnPropertyNames||function(l){var d=[];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(d[d.length]=f);return d},a(s)};return function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var d=a(s),f=0;f<d.length;f++)d[f]!=="default"&&e(l,s,d[f]);return t(l,s),l}})();Object.defineProperty(cs,"__esModule",{value:!0}),cs.CronFileParser=void 0;const r=Ow();let o=class Tv{static async parseFile(s){const{readFile:l}=await Promise.resolve().then(()=>n(gD)),d=await l(s,"utf8");return Tv.#e(d)}static parseFileSync(s){const{readFileSync:l}=gD,d=l(s,"utf8");return Tv.#e(d)}static#e(s){const l=s.split(`
438
+ `),d={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;d.variables[y]=v.replace(/["']/g,"");continue}try{const y=Tv.#t(c);d.expressions.push(y.interval)}catch(y){d.errors[c]=y}}return d}static#t(s){const l=s.split(" ");return{interval:r.CronExpressionParser.parse(l.slice(0,5).join(" ")),command:l.slice(5,l.length)}}};return cs.CronFileParser=o,cs}var vD;function dfe(){return vD||(vD=1,(function(e){var t=wf&&wf.__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=wf&&wf.__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=Ow();var o=Uk();Object.defineProperty(e,"CronDate",{enumerable:!0,get:function(){return o.CronDate}});var a=IL();Object.defineProperty(e,"CronFieldCollection",{enumerable:!0,get:function(){return a.CronFieldCollection}});var s=LL();Object.defineProperty(e,"CronExpression",{enumerable:!0,get:function(){return s.CronExpression}});var l=Ow();Object.defineProperty(e,"CronExpressionParser",{enumerable:!0,get:function(){return l.CronExpressionParser}});var d=ufe();Object.defineProperty(e,"CronFileParser",{enumerable:!0,get:function(){return d.CronFileParser}}),n(_k(),e),e.default=r.CronExpressionParser})(wf)),wf}var ffe=dfe(),bD={exports:{}},xD;function pfe(){return xD||(xD=1,(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:((s,l,d)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=d(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,T){return S!==null&&T!==null?S-T: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($){var P=$.replace(/\D/,""),N=P;return v.dayOfWeekStartIndexZero?P=="7"&&(N="0"):N=(parseInt(P)-1).toString(),$.replace(P,N)}),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($){var P=$.replace(/\D/,""),N=P;return v.monthStartIndexZero&&(N=(parseInt(P)+1).toString()),$.replace(P,N)});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 T=0;T<y.length;T++)if(y[T].indexOf(",")!=-1&&(y[T]=y[T].split(",").filter(function($){return $!==""}).join(",")||"*"),y[T]=="*/1"&&(y[T]="*"),y[T].indexOf("/")>-1&&!/^\*|\-|\,/.test(y[T])){var M=null;switch(T){case 4:M="12";break;case 5:M="6";break;case 6:M="9999";break;default:M=null;break}if(M!==null){var R=y[T].split("/");y[T]="".concat(R[0],"-").concat(M,"/").concat(R[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,d)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=d(823),c=d(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,T=x.verbose,M=T===void 0?!1:T,R=x.dayOfWeekStartIndexZero,$=R===void 0?!0:R,P=x.monthStartIndexZero,N=P===void 0?!1:P,V=x.use24HourTimeFormat,z=x.locale,W=z===void 0?null:z,H={throwExceptionOnParseError:S,verbose:M,dayOfWeekStartIndexZero:$,monthStartIndexZero:N,use24HourTimeFormat:V,locale:W};H.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var k=new y(v,H);return k.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(),T=this.getDayOfMonthDescription(),M=this.getMonthDescription(),R=this.getDayOfWeekDescription(),$=this.getYearDescription();x+=S+T+R+M+$,x=this.transformVerbosity(x,!!this.options.verbose),x=x.charAt(0).toLocaleUpperCase()+x.substr(1)}catch(P){if(!this.options.throwExceptionOnParseError)x=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(P)}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 T=x.split(",");w+=this.i18n.at();for(var M=0;M<T.length;M++)w+=" ",w+=this.formatTime(T[M],b,""),M<T.length-2&&(w+=","),M==T.length-2&&(w+=this.i18n.spaceAnd())}else{var R=this.getSecondsDescription(),$=this.getMinutesDescription(),P=this.getHoursDescription();if(w+=R,w&&$&&(w+=", "),w+=$,$===P)return w;w&&P&&(w+=", "),w+=P}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(M){var R=M.split("-");R.length===2&&w.push({value:R[1],index:x+1}),x+=R.length});var S=0,T=this.getSegmentDescription(b,this.i18n.everyHour(),function(M){var R=w.find(function(P){return P.value===M&&P.index===S}),$=R&&v.expressionParts[1]!=="0";return S++,$?v.formatTime(M,"59",""):v.formatTime(M,"0","")},function(M){return f.StringUtilities.format(v.i18n.everyX0Hours(M),M)},function(M){return v.i18n.betweenX0AndX1()},function(M){return v.i18n.atX0()});return T},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 T=w;w.indexOf("#")>-1?T=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(T=T.replace("L",""));var M=parseInt(T),R=v.i18n.daysOfTheWeekInCase?v.i18n.daysOfTheWeekInCase(S)[M]:b[M];if(w.indexOf("#")>-1){var $=null,P=w.substring(w.indexOf("#")+1),N=w.substring(0,w.indexOf("#"));switch(P){case"1":$=v.i18n.first(N);break;case"2":$=v.i18n.second(N);break;case"3":$=v.i18n.third(N);break;case"4":$=v.i18n.fourth(N);break;case"5":$=v.i18n.fifth(N);break}R=$+" "+R}return R},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var S=w.substring(0,w.indexOf("-")),T=v.expressionParts[3]!="*";return T?v.i18n.commaAndX0ThroughX1(S):v.i18n.commaX0ThroughX1(S)},function(w){var S=null;if(w.indexOf("#")>-1){var T=w.substring(w.indexOf("#")+1),M=w.substring(0,w.indexOf("#"));S=v.i18n.commaOnThe(T,M).trim()+v.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)S=v.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var R=v.expressionParts[3]!="*";S=R?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","")),T=S==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),S.toString());b=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),T);break}else{var M=x.match(/L-(\d{1,2})/);if(M){var R=M[1];b=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(R),R);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";b=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function($){return $=="L"?v.i18n.lastDay():v.i18n.dayX0?f.StringUtilities.format(v.i18n.dayX0(),$):$},function($){return $=="1"?v.i18n.commaEveryDay():v.i18n.commaEveryX0Days($)},function($){return v.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return v.i18n.commaOnDayX0OfTheMonth($)})}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,T){var M=null,R=v.indexOf("/")>-1,$=v.indexOf("-")>-1,P=v.indexOf(",")>-1;if(!v)M="";else if(v==="*")M=b;else if(!R&&!$&&!P)M=f.StringUtilities.format(T(v),x(v));else if(P){for(var N=v.split(","),V="",z=0;z<N.length;z++)if(z>0&&N.length>2&&(V+=",",z<N.length-1&&(V+=" ")),z>0&&N.length>1&&(z==N.length-1||N.length==2)&&(V+="".concat(this.i18n.spaceAnd()," ")),N[z].indexOf("/")>-1||N[z].indexOf("-")>-1){var W=N[z].indexOf("-")>-1&&N[z].indexOf("/")==-1,H=this.getSegmentDescription(N[z],b,x,w,W?this.i18n.commaX0ThroughX1:S,T);W&&(H=H.replace(", ","")),V+=H}else R?V+=this.getSegmentDescription(N[z],b,x,w,S,T):V+=x(N[z]);R?M=V:M=f.StringUtilities.format(T(v),V)}else if(R){var N=v.split("/");if(M=f.StringUtilities.format(w(N[1]),N[1]),N[0].indexOf("-")>-1){var k=this.generateRangeSegmentDescription(N[0],S,x);k.indexOf(", ")!=0&&(M+=", "),M+=k}else if(N[0].indexOf("*")==-1){var I=f.StringUtilities.format(T(N[0]),x(N[0]));I=I.replace(", ",""),M+=f.StringUtilities.format(this.i18n.commaStartingX0(),I)}}else $&&(M=this.generateRangeSegmentDescription(v,S,x));return M},y.prototype.generateRangeSegmentDescription=function(v,b,x){var w="",S=v.split("-"),T=x(S[0],1),M=x(S[1],2),R=b(v);return w+=f.StringUtilities.format(R,T,M),w},y.prototype.formatTime=function(v,b,x){var w=0,S=0,T=parseInt(v)+w,M=parseInt(b)+S;M>=60?(M-=60,T+=1):M<0&&(M+=60,T-=1),T>=24?T=T-24:T<0&&(T=24+T);var R="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),R=$?"".concat(this.getPeriod(T)," "):" ".concat(this.getPeriod(T)),T>12&&(T-=12),T===0&&(T=12));var P="";return x&&(P=":".concat(("00"+x).substring(x.length))),"".concat($?R:"").concat(("00"+T.toString()).substring(T.toString().length),":").concat(("00"+M.toString()).substring(M.toString().length)).concat(P).concat($?"":R)},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],T=S[0],M=S[1];v=v.replace(new RegExp(T,"g"),M)}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,d)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=d(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 d=(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=d}),515:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function d(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);d(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);d(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);d(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);d(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);d(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);d(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 d=(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=d})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var d=r[s]={exports:{}};return n[s](d,d.exports,o),d.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),d=o(747);l.ExpressionDescriptor.initialize(new d.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(bD)),bD.exports}var hfe=pfe();const mfe=Ul(hfe),gfe=new Set(["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC","SUN","MON","TUE","WED","THU","FRI","SAT"]);function yfe(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)&&!gfe.has(n.toUpperCase()))return!1}return!0}function zL(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(!yfe(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=mfe.toString(t,{use24HourTimeFormat:!0,verbose:!1}),r=ffe.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 FL(e){return e?e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!1})+" UTC":"—"}function vfe({onSubmit:e,isSubmitting:t,disabled:n,disabledReason:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),d=()=>a(!1),f=async()=>{try{await e({forceRefresh:s}),a(!1)}catch{}},c=h.jsx("span",{children:h.jsx(xg,{label:"Materialization",onClick:()=>a(!0),disabled:n})});return h.jsxs(h.Fragment,{children:[n&&r?h.jsx(Ui,{title:r,children:c}):c,h.jsx(oa,{open:o,onClose:d,title:"New materialization",description:"Compile the package, build a table for every persist source, and load them so queries serve from the tables.",actions:h.jsxs(h.Fragment,{children:[h.jsx(Yo,{onClick:d,children:"Cancel"}),h.jsx(Yo,{variant:"contained",loading:t,onClick:f,children:"Materialize"})]}),children:h.jsx(wW,{children:h.jsx(EC,{control:h.jsx(wj,{checked:s,onChange:m=>l(m.target.checked)}),label:"Force refresh (rebuild even if unchanged)"})})})]})}function Rw({children:e}){return h.jsx(Lt,{variant:"caption",component:"h6",sx:{display:"block",textTransform:"uppercase",letterSpacing:"0.06em",fontWeight:600,color:"text.secondary",mb:1},children:e})}function sb(e){return e===da.Pending||e===da.ManifestRowsReady}function bfe(e){return e===da.ManifestFileReady||e===da.Failed||e===da.Cancelled}function BL(e){switch(e){case da.ManifestFileReady:return"Done";case da.Failed:return"Failed";case da.Cancelled:return"Cancelled";case da.Pending:case da.ManifestRowsReady:return"Pending";default:return"Unknown"}}function $w(e){switch(e){case da.ManifestRowsReady:return"info";case da.ManifestFileReady:return"success";case da.Failed:return"error";case da.Cancelled:return"warning";case da.Pending:default:return"default"}}function UL(e){return e.metadata??{}}function xfe(e){return e.trigger==="SCHEDULER"?"Scheduled":"Manual"}function _L(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 d=Math.floor(s/60),f=s%60;return`${d}h ${f}m`}function Pw(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 Sfe(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 wfe({entries:e,builtAt:t}){const n=Object.entries(e??{});return h.jsxs(Kt,{children:[h.jsxs(fr,{direction:"row",alignItems:"baseline",justifyContent:"space-between",children:[h.jsx(Rw,{children:"Build manifest"}),t&&h.jsxs(Lt,{variant:"caption",color:"text.secondary",children:["Built ",Pw(t)]})]}),n.length===0?h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"No materialized tables yet."}):h.jsxs(ug,{size:"small",children:[h.jsx(fg,{children:h.jsxs(Zs,{children:[h.jsx(Xn,{children:"Source"}),h.jsx(Xn,{children:"Table name"}),h.jsx(Xn,{children:"Connection"}),h.jsx(Xn,{children:"Realization"}),h.jsx(Xn,{align:"right",children:"Rows"})]})}),h.jsx(dg,{children:n.map(([r,o])=>h.jsxs(Zs,{children:[h.jsx(Xn,{sx:{fontFamily:Ai},children:o.sourceName??r}),h.jsx(Xn,{sx:{fontFamily:Ai},children:o.physicalTableName??"-"}),h.jsx(Xn,{sx:{fontFamily:Ai},children:o.connectionName??"-"}),h.jsx(Xn,{children:o.realization??"-"}),h.jsx(Xn,{align:"right",children:o.rowCount??"-"})]},r))})]})]})}function VL({meta:e}){const t=e.trigger==="SCHEDULER";return h.jsx(Ui,{title:t?"Fired by the materialization schedule":"Triggered manually",children:h.jsx(Lt,{variant:"body2",color:"text.secondary",children:xfe(e)})})}function Cfe({materialization:e,buildPlan:t,onClose:n}){const r=e?UL(e):{},o=Object.values(t?.sources??{});return h.jsx(Yf,{open:e!==null,onClose:n,maxWidth:"md",fullWidth:!0,"aria-labelledby":"materialization-detail-title",children:e&&h.jsxs(h.Fragment,{children:[h.jsxs(Gf,{sx:{pr:6,pb:1.5},id:"materialization-detail-title",children:[h.jsxs(fr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:.75},children:[h.jsx(oj,{size:"small",label:BL(e.status),color:$w(e.status),variant:sb(e.status)?"filled":"outlined"}),h.jsx(VL,{meta:r})]}),h.jsx(Lt,{variant:"subtitle1",sx:{fontWeight:600},children:e.packageName??"Materialization"}),h.jsx(Lt,{variant:"caption",color:"text.secondary",sx:{fontFamily:Ai,wordBreak:"break-all"},children:e.id}),h.jsx(eo,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8},children:h.jsx(Jf,{fontSize:"small"})})]}),h.jsxs(Kf,{dividers:!0,children:[h.jsxs(Kt,{sx:{bgcolor:"action.hover",borderRadius:2,p:2,mb:3,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:2},children:[h.jsx(rm,{label:"Started",value:Pw(e.startedAt??e.createdAt)}),h.jsx(rm,{label:"Completed",value:Pw(e.completedAt)}),h.jsx(rm,{label:"Duration",value:_L(e.startedAt,e.completedAt)}),h.jsx(rm,{label:"Sources",value:`${r.sourcesBuilt??0} built · ${r.sourcesReused??0} reused`}),h.jsx(rm,{label:"Force refresh",value:r.forceRefresh?"Yes":"No"})]}),e.error&&h.jsxs(Kt,{sx:{borderRadius:2,p:2,mb:3,border:"1px solid",borderColor:"error.main"},children:[h.jsx(Rw,{children:h.jsx(Kt,{component:"span",sx:{color:"error.main"},children:"Error"})}),h.jsx(Lt,{variant:"body2",sx:{fontFamily:Ai,whiteSpace:"pre-wrap"},children:e.error})]}),h.jsxs(Kt,{sx:{mb:3},children:[h.jsx(Rw,{children:"Build plan"}),o.length===0?h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"This package has no persist sources."}):h.jsxs(ug,{size:"small",children:[h.jsx(fg,{children:h.jsxs(Zs,{children:[h.jsx(Xn,{children:"Source"}),h.jsx(Xn,{children:"Connection"}),h.jsx(Xn,{children:"Dialect"}),h.jsx(Xn,{align:"right",children:"Columns"}),h.jsx(Xn,{children:"Source Entity ID"})]})}),h.jsx(dg,{children:o.map(a=>h.jsxs(Zs,{children:[h.jsx(Xn,{sx:{fontFamily:Ai},children:a.name}),h.jsx(Xn,{sx:{fontFamily:Ai},children:a.connectionName}),h.jsx(Xn,{children:a.dialect??"-"}),h.jsx(Xn,{align:"right",children:a.columns?.length??0}),h.jsx(Xn,{sx:{fontFamily:Ai,fontSize:"0.75rem",wordBreak:"break-all",maxWidth:220},children:a.sourceEntityId})]},a.sourceID))})]})]}),h.jsx(wfe,{entries:e.manifest?.entries,builtAt:e.manifest?.builtAt})]})]})})}function rm({label:e,value:t}){return h.jsxs(Kt,{children:[h.jsx(Lt,{variant:"caption",color:"text.secondary",display:"block",children:e}),h.jsx(Lt,{variant:"body2",children:t})]})}const kfe=cr(h.jsx("path",{d:"M6 6h12v12H6z"}));function Tfe(e){return on("PrivateSwitchBase",e)}Gt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Mfe=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 tn(a,Tfe,t)},Efe=Ge(od,{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}}]}),Ofe=Ge("input",{name:"MuiSwitchBase",shouldForwardProp:Ia})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rfe=C.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:d=!1,icon:f,id:c,inputProps:m,inputRef:y,name:v,onBlur:b,onChange:x,onFocus:w,readOnly:S,required:T=!1,tabIndex:M,type:R,value:$,slots:P={},slotProps:N={},...V}=e,[z,W]=si({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),H=di(),k=pe=>{w&&w(pe),H&&H.onFocus&&H.onFocus(pe)},I=pe=>{b&&b(pe),H&&H.onBlur&&H.onBlur(pe)},F=pe=>{if(pe.nativeEvent.defaultPrevented)return;const oe=pe.target.checked;W(oe),x&&x(pe,oe)};let _=s;H&&typeof _>"u"&&(_=H.disabled);const j=R==="checkbox"||R==="radio",X={...e,checked:z,disabled:_,disableFocusRipple:l,edge:d},Q=Mfe(X),te={slots:P,slotProps:{input:m,...N}},[Z,G]=ir("root",{ref:t,elementType:Efe,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...V},getSlotProps:pe=>({...pe,onFocus:oe=>{pe.onFocus?.(oe),k(oe)},onBlur:oe=>{pe.onBlur?.(oe),I(oe)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:_,role:void 0,tabIndex:null}}),[ne,ce]=ir("input",{ref:y,elementType:Ofe,className:Q.input,externalForwardedProps:te,getSlotProps:pe=>({...pe,onChange:oe=>{pe.onChange?.(oe),F(oe)}}),ownerState:X,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:_,id:j?c:void 0,name:v,readOnly:S,required:T,tabIndex:M,type:R,...R==="checkbox"&&$===void 0?{}:{value:$}}});return h.jsxs(Z,{...G,children:[h.jsx(ne,{...ce}),z?o:f]})}),$fe=cr(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"})),Pfe=cr(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"})),Dfe=cr(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 Afe(e){return on("MuiCheckbox",e)}const tS=Gt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jfe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Tt(r)}`,`size${Tt(o)}`]},s=tn(a,Afe,t);return{...t,...s}},Nfe=Ge(Rfe,{shouldForwardProp:e=>Ia(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)}`]]}})(Vn(({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(fa()).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(fa()).map(([t])=>({props:{color:t},style:{[`&.${tS.checked}, &.${tS.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${tS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Ife=h.jsx(Pfe,{}),Lfe=h.jsx($fe,{}),zfe=h.jsx(Dfe,{}),Ffe=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Ife,color:o="primary",icon:a=Lfe,indeterminate:s=!1,indeterminateIcon:l=zfe,inputProps:d,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},T=jfe(S),M=v.input??d,[R,$]=ir("root",{ref:t,elementType:Nfe,className:jt(T.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:HN(typeof M=="function"?M(S):M,{"data-indeterminate":s})}}});return h.jsx(R,{...$,classes:T})});function Bfe(e){return on("MuiFormControlLabel",e)}const gm=Gt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ufe=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 tn(s,Bfe,t)},_fe=Ge("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gm.label}`]:t.label},t.root,t[`labelPlacement${Tt(n.labelPlacement)}`]]}})(Vn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${gm.disabled}`]:{cursor:"default"},[`& .${gm.label}`]:{[`&.${gm.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}}]}))),Vfe=Ge("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Vn(({theme:e})=>({[`&.${gm.error}`]:{color:(e.vars||e).palette.error.main}}))),Hfe=C.forwardRef(function(e,t){const n=Hn({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:d,inputRef:f,label:c,labelPlacement:m="end",name:y,onChange:v,required:b,slots:x={},slotProps:w={},value:S,...T}=n,M=di(),R=l??s.props.disabled??M?.disabled,$=b??s.props.required,P={disabled:R,required:$};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof s.props[F]>"u"&&typeof n[F]<"u"&&(P[F]=n[F])});const N=md({props:n,muiFormControl:M,states:["error"]}),V={...n,disabled:R,labelPlacement:m,required:$,error:N.error},z=Ufe(V),W={slots:x,slotProps:{...a,...w}},[H,k]=ir("typography",{elementType:br,externalForwardedProps:W,ownerState:V});let I=c;return I!=null&&I.type!==br&&!d&&(I=h.jsx(H,{component:"span",...k,className:jt(z.label,k?.className),children:I})),h.jsxs(_fe,{className:jt(z.root,o),ownerState:V,ref:t,...T,children:[C.cloneElement(s,P),$?h.jsxs("div",{children:[I,h.jsxs(Vfe,{ownerState:V,"aria-hidden":!0,className:z.asterisk,children:[" ","*"]})]}):I]})});function Wfe({materialization:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),d=()=>a(!0),f=()=>{a(!1),l(!1),t()};return h.jsxs(pn.Fragment,{children:[h.jsxs(Wo,{"aria-label":`Delete materialization ${e?.id??""}`.trim(),onClick:c=>{c.stopPropagation(),d()},sx:{color:"error.main"},children:[h.jsx(Fk,{sx:{color:"inherit"},children:h.jsx(Gb,{fontSize:"small"})}),h.jsx(Bk,{children:"Delete"})]}),h.jsxs(oa,{open:o,onClose:f,title:"Delete materialization",actions:h.jsxs(h.Fragment,{children:[h.jsx(uo,{onClick:f,children:"Cancel"}),h.jsx(uo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>r(s),loading:n,children:"Delete run"})]}),children:[h.jsx(br,{variant:"body2",children:"Delete this run's record? This cannot be undone."}),h.jsx(Hfe,{control:h.jsx(Ffe,{checked:s,onChange:c=>l(c.target.checked)}),label:"Also drop the materialized tables this run produced"})]})]})}function qfe({materializations:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){return e.length===0?h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:"No materializations yet."}):h.jsxs(ug,{size:"small",sx:{"& td, & th":{borderColor:"divider"},"& td:first-of-type, & th:first-of-type":{pl:0},"& td:last-of-type, & th:last-of-type":{pr:0},"& th":{color:"text.secondary",fontWeight:600}},children:[h.jsx(fg,{children:h.jsxs(Zs,{children:[h.jsx(Xn,{children:"Status"}),h.jsx(Xn,{children:"Trigger"}),h.jsx(Xn,{children:"Started"}),h.jsx(Xn,{children:"Duration"}),h.jsx(Xn,{children:"Sources"}),h.jsx(Xn,{align:"right",children:"Actions"})]})}),h.jsx(dg,{children:e.map(s=>h.jsx(Yfe,{materialization:s,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a},s.id))})]})}function Yfe({materialization:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){const[s,l]=C.useState(null),d=!!s,f=()=>l(null),c=UL(e),m=c.sourcesBuilt!==void 0||c.sourcesReused!==void 0?`${c.sourcesBuilt??0} built, ${c.sourcesReused??0} reused`:"-",y=sb(e.status),v=bfe(e.status),b=e.error??void 0,x=t&&(y||v);return h.jsxs(Zs,{hover:!0,sx:{cursor:"pointer","&:focus-visible":{outline:"2px solid",outlineColor:"primary.main",outlineOffset:"-2px"}},onClick:()=>a(e),onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),a(e))},role:"button",tabIndex:0,"aria-label":`View materialization ${e.id??""} details`.trim(),children:[h.jsx(Xn,{children:h.jsxs(Kt,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(Lt,{variant:"body2",sx:{fontWeight:500,color:$w(e.status)==="default"?"text.primary":`${$w(e.status)}.main`},children:BL(e.status)}),b&&h.jsx(Ui,{title:b,children:h.jsx(wL,{fontSize:"small",color:"error"})})]})}),h.jsx(Xn,{children:h.jsx(VL,{meta:c})}),h.jsx(Xn,{children:Sfe(e.startedAt??e.createdAt)}),h.jsx(Xn,{children:_L(e.startedAt,e.completedAt)}),h.jsx(Xn,{children:m}),h.jsx(Xn,{align:"right",onClick:w=>w.stopPropagation(),children:x&&h.jsxs(h.Fragment,{children:[h.jsx(eo,{size:"small","aria-label":`Materialization actions for ${e.id??""}`.trim(),onClick:w=>l(w.currentTarget),children:h.jsx(Qb,{fontSize:"small"})}),h.jsxs(cd,{anchorEl:s,open:d,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[t&&y&&h.jsxs(Ii,{"aria-label":`Stop materialization ${e.id??""}`.trim(),disabled:n,onClick:()=>{f(),r(e)},children:[h.jsx(dp,{children:h.jsx(kfe,{fontSize:"small"})}),h.jsx(Kc,{children:"Stop"})]}),t&&v&&h.jsx(Wfe,{materialization:e,isMutating:n,onCloseDialog:f,onDelete:w=>o(e,w)})]})]})})]})}const Kfe=cr(h.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z"})),Gfe={package:"Materialized artifacts are shared across versions",version:"Materialized artifacts are per published version"};function Qfe({scope:e,disabled:t,disabledReason:n,isSubmitting:r,onChange:o}){const[a,s]=C.useState(null),l=async d=>{s(null),d!==e&&await o(d).catch(()=>{})};return h.jsxs(h.Fragment,{children:[h.jsx(Sg,{label:"Scope",icon:h.jsx(Kfe,{}),onClick:d=>s(d.currentTarget),disabled:t||r,...n?{disabledReason:n}:{},ariaHasPopup:"menu",ariaLabel:`Scope: ${e}`}),h.jsx(cd,{anchorEl:a,open:!!a,onClose:()=>s(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:["package","version"].map(d=>h.jsxs(Ii,{selected:d===e,onClick:()=>void l(d),children:[h.jsx(dp,{sx:{minWidth:32},children:d===e&&h.jsx(que,{fontSize:"small"})}),h.jsx(Kc,{primary:d,secondary:Gfe[d]})]},d))})]})}const Xfe=cr([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")]),SD="0 6 * * *";function Zfe({currentSchedule:e,isSubmitting:t,disabled:n,disabledReason:r,onSubmit:o}){const[a,s]=C.useState(!1),[l,d]=C.useState(e??SD),f=()=>{d(e??SD),s(!0)},c=()=>s(!1),m=zL(l),y=async v=>{try{await o(v),s(!1)}catch{}};return h.jsxs(h.Fragment,{children:[h.jsx(Sg,{label:"Schedule",icon:h.jsx(Xfe,{}),onClick:f,disabled:n,...r?{disabledReason:r}:{},ariaHasPopup:"dialog",ariaLabel:e?"Edit schedule":"Set schedule"}),h.jsxs(oa,{open:a,onClose:c,title:e?"Edit schedule":"Set schedule",description:"The publisher rebuilds this package's materializations on this cadence: a 5-field UNIX cron, in UTC. In a hosted deployment the change takes effect on your next publish.",actions:h.jsxs(h.Fragment,{children:[e&&h.jsx(Yo,{color:"error",loading:t,onClick:()=>y(null),sx:{mr:"auto"},children:"Clear schedule"}),h.jsx(Yo,{onClick:c,children:"Cancel"}),h.jsx(Yo,{variant:"contained",loading:t,disabled:!m.valid,onClick:()=>y(l.trim()),children:"Save schedule"})]}),children:[h.jsx(ai,{autoFocus:!0,fullWidth:!0,size:"small",label:"Cron expression",value:l,onChange:v=>d(v.target.value),error:l.trim()!==""&&!m.valid,helperText:m.valid?`${m.description} · next run ${FL(m.nextRun)}`:m.error,slotProps:{htmlInput:{style:{fontFamily:Ai}}}}),h.jsxs($c,{severity:"info",children:["A schedule runs only on version-scoped packages, so saving one sets ",h.jsx("code",{children:"scope: version"})," for this package."]})]})]})}const Jfe=3e3;function epe({resourceUri:e}){const{apiClients:t,mutable:n}=zr(),r=dd(),{environmentName:o,packageName:a}=xo(e),[s,l]=C.useState(""),[d,f]=C.useState(null);if(!a)throw new Error("Materializations requires a package in the resource URI");const c=co({queryKey:["materializations",o,a],queryFn:()=>t.materializations.listMaterializations(o,a),refetchInterval:I=>(I.state.data?.data??[]).some(F=>sb(F.status))?Jfe:!1}),m=co({queryKey:["package",o,a],queryFn:()=>t.packages.getPackage(o,a)}),y=()=>r.invalidateQueries({queryKey:["materializations",o,a]}),v=Ws({mutationFn:$l("materialization","create",I=>t.materializations.createMaterialization(o,a,{forceRefresh:I.forceRefresh})),onSuccess(){l("Materialization requested"),y()},onError(I){l(I.message),y()}}),b=Ws({mutationFn:$l("materialization","update",I=>t.materializations.materializationAction(o,a,I.id,GK.Stop)),onSuccess(){l("Materialization stopped"),y()},onError(I){l(I.message)}}),x=Ws({mutationFn:$l("materialization","delete",({materialization:I,dropTables:F})=>t.materializations.deleteMaterialization(o,a,I.id,F)),onSuccess(){l("Materialization deleted"),y()},onError(I){l(I.message)}}),w=m.data?.data,S=Ws({mutationFn:$l("schedule","update",I=>t.packages.updatePackage(o,a,{name:a,description:w?.description,...I?{scope:Vy.Version}:{},materialization:{schedule:I}})),onSuccess(I,F){l(F?"Schedule updated":"Schedule cleared"),r.invalidateQueries({queryKey:["package",o,a]})},onError(I){l(I.message)}}),T=Ws({mutationFn:$l("scope","update",I=>t.packages.updatePackage(o,a,{name:a,description:w?.description,scope:I})),onSuccess(){l("Scope updated"),r.invalidateQueries({queryKey:["package",o,a]})},onError(I){l(I.message)}}),M=c.data?.data??[],R=M.find(I=>I.id===d)??null,$=M.some(I=>sb(I.status)),P=v.isPending||b.isPending||x.isPending,N=w?.materialization?.schedule??null,V=w?.scope===Vy.Version?"version":"package",z=!!w?.manifestLocation,W=!!w?.materialization?.freshness,H=N?zL(N):null,k=z?"Control-plane managed: refresh is driven by the control plane, not the built-in scheduler.":[H?H.valid?`${H.description} (${N}), next run ${FL(H.nextRun)}`:`Unrecognized cron expression (${N})`:W?"Refreshed by a freshness policy; a cron schedule does not apply":"On demand only, no schedule set",`scope: ${V}`].join(" · ");return h.jsxs(h.Fragment,{children:[h.jsxs(us,{title:"Materializations",count:c.isSuccess?M.length:void 0,action:n&&h.jsxs(fr,{direction:"row",spacing:1,alignItems:"center",children:[!z&&h.jsx(Qfe,{scope:V,disabled:!!N,disabledReason:"A schedule requires version scope. Clear the schedule to change it.",isSubmitting:T.isPending,onChange:I=>T.mutateAsync(I==="version"?Vy.Version:Vy.Package)}),!z&&h.jsx(Zfe,{currentSchedule:N,isSubmitting:S.isPending,disabled:W,disabledReason:"This package declares a freshness policy; a schedule and freshness are mutually exclusive.",onSubmit:I=>S.mutateAsync(I)}),h.jsx(vfe,{onSubmit:I=>v.mutateAsync(I),isSubmitting:v.isPending,disabled:$,disabledReason:"A materialization is already pending or running for this package."})]}),children:[m.isSuccess&&h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:k}),c.isError&&h.jsx(pa,{error:c.error,context:`${o} > ${a} > Materializations`}),!c.isSuccess&&!c.isError&&h.jsx(ra,{text:"Loading materializations..."}),c.isSuccess&&h.jsx(qfe,{materializations:M,mutable:n,isMutating:P,onStop:I=>b.mutate(I),onDelete:(I,F)=>x.mutate({materialization:I,dropTables:F}),onViewDetails:I=>f(I.id??null)})]}),h.jsx(Cfe,{materialization:R,buildPlan:m.data?.data?.buildPlan??null,onClose:()=>f(null)}),h.jsx(Fb,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})}const HL=cr(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"})),lb=cr(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"})),tpe=cr(h.jsx("path",{d:"M8 5v14l11-7z"})),nS={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"}]}}},npe={...nS,patterns:[...nS.patterns,{include:"#docvar"}],repository:{...nS.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},rpe={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"}]}}},ope="github-light",ape="github-dark";let rS;function ipe(){return rS||(rS=(async()=>{const[{createHighlighterCore:e},{createOnigurumaEngine:t},{default:n},{default:r},{default:o},{default:a},{default:s}]=await Promise.all([Lo(()=>import("./core-B8oMW4sm.es-hOkwvru5.js"),__vite__mapDeps([7,8])),Lo(()=>import("./engine-oniguruma-C4vnmooL.es-jdkXmgTr.js"),[]),Lo(()=>import("./sql-DCkt643-.es-COK4E0Yg.js"),[]),Lo(()=>import("./json-71t8ZF9g.es-BQoSv7ci.js"),[]),Lo(()=>import("./typescript-buWNZFwO.es-Dj6nwHGl.js"),[]),Lo(()=>import("./github-light-JYsPkUQd.es-DAi9KRSo.js"),[]),Lo(()=>import("./github-dark-DenFmJkN.es-DHJKELXO.js"),[])]);return e({engine:t(Lo(()=>import("./wasm-DQxwEHae.es-CG6Dc4jp.js"),[])),themes:[a,s],langs:[n,r,o,{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...npe},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...rpe}]})})()),rS}async function Dw(e,t,n="light"){return(await ipe()).codeToHtml(e,{lang:t,theme:n==="dark"?ape:ope})}function WL({open:e,onClose:t,result:n,title:r="Results",renderLogs:o,drill:a}){return h.jsx(oa,{open:e,onClose:t,title:r,maxWidth:!1,showClose:!0,children:h.jsx(Kt,{sx:{height:"70vh",overflow:"auto"},children:h.jsx(jk,{result:n,maxHeight:Uce,maxResultSize:1e6,renderLogs:o,drill:a})})})}function spe({queryName:e,annotations:t,resourceUri:n,runOnDemand:r=!1,maxResultSize:o=0}){const[a,s]=pn.useState(),[l,d]=pn.useState(!1),[f,c]=pn.useState(!1),{packageName:m,environmentName:y,versionId:v,modelPath:b}=xo(n),x=!r||f,w=Ak({environmentName:y,packageName:m,modelPath:b,versionId:v,queryName:e},{enabled:x}),S=w.data,{mode:T}=Bl();return C.useEffect(()=>{if(t&&t.length>0){const M=t.map(R=>`// ${R}`).join(`
439
+ `);Dw(M,"typescript",T).then(R=>{s(R)})}},[t,T]),h.jsxs(Kt,{children:[a&&h.jsx(Kt,{sx:{marginBottom:"16px"},children:h.jsx(Lt,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:h.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:a}})})}),h.jsxs(Kt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[h.jsx(Lt,{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(Uf,{"aria-label":"Expand results",onClick:()=>d(!0),children:h.jsx(lb,{})})]}),h.jsxs(um,{sx:{position:"relative"},children:[r&&!f&&h.jsxs(Kt,{sx:{padding:"40px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[h.jsx(Lt,{variant:"body2",color:"text.secondary",children:"Click Run to execute the query"}),h.jsx(Yo,{variant:"contained",startIcon:h.jsx(tpe,{}),onClick:()=>c(!0),children:"Run Query"})]}),x&&h.jsx(Nk,{state:w,context:e,maxHeight:Bce,maxResultSize:o})]}),h.jsx(WL,{open:l,onClose:()=>d(!1),result:S?.data?.result||"",renderLogs:S?.data?.renderLogs,title:`Query: ${e}`})]})}function Khe({onChange:e,resourceUri:t,runOnDemand:n=!1,maxResultSize:r=0}){const{modelPath:o}=xo(t),{data:a,isError:s,isLoading:l,error:d}=Ik(t),[f,c]=pn.useState(!1),[m,y]=pn.useState(),[v,b]=pn.useState(0),[x,w]=C.useState(""),S=a?.modelDef,T=pn.useMemo(()=>{if(!S)return!1;try{const P=JSON.parse(S);return Array.isArray(P.imports)&&P.imports.length>0}catch{return!1}},[S]);if(l)return h.jsx(ra,{text:"Fetching Model..."});if(s)return console.log("error",d),h.jsx(pa,{error:d,context:`Model > ${o}`});const M=P=>{y(P),e&&e(P)},R=P=>{b(P)},$=()=>{const P=window.location.href;navigator.clipboard.writeText(P).then(()=>w("URL copied to clipboard!")).catch(()=>w("Failed to copy URL"))};return h.jsxs(h.Fragment,{children:[h.jsxs(Kt,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(a?.sourceInfos)&&a.sourceInfos.length>0&&h.jsxs(fr,{spacing:2,component:"section",children:[h.jsxs(Kt,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[h.jsx(Lt,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),h.jsx(Ui,{title:"Click to copy link",children:h.jsx(HL,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer"},onClick:$})})]}),h.jsx(kL,{data:a,onChange:M,onSourceChange:R,existingQuery:m,initialSelectedSourceIndex:v,resourceUri:t}),h.jsx(Uf,{"aria-label":"Expand results",sx:{position:"absolute",top:"90px",right:"4px",zIndex:2},onClick:()=>c(!0),children:h.jsx(lb,{})})]}),a?.queries?.length>0&&h.jsxs(fr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[h.jsx(Kt,{sx:{padding:"0 0 16px 0"},children:h.jsx(Lt,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),a.queries.map(P=>h.jsx(spe,{queryName:P.name,annotations:P.annotations,resourceUri:t,runOnDemand:n,maxResultSize:r},P.name))]}),(!Array.isArray(a?.sourceInfos)||a.sourceInfos.length===0)&&!(a?.queries&&a.queries.length>0)&&h.jsxs(Kt,{sx:{textAlign:"center",py:6},children:[h.jsx(Lt,{variant:"body1",sx:{color:"text.secondary",marginBottom:"8px"},children:"This model exposes no sources or queries."}),T&&h.jsxs(Lt,{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(Lk,{open:f,onClose:()=>c(!1),resourceUri:t,data:a,title:`Model: ${o.split("/").pop()}`,existingQuery:m,initialSelectedSourceIndex:v,onChange:M,onSourceChange:R})]}),h.jsx(Fb,{open:x!=="",autoHideDuration:6e3,onClose:()=>w(""),message:x})]})}function lpe({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 cpe(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 upe=cr(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"})),dpe=cr(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 fpe(e){const{environmentName:t,packageName:n}=xo(e.resourceUri);if(!t||!n)throw new Error("Environment and Package name must be provided for query embedding.");return JSON.stringify({...e})}function ppe({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,index:o,maxResultSize:a,isExecuting:s,pendingRerun:l,onNavigate:d,onDrillSelf:f,canDrillSelf:c,onDrillNavigate:m}){const[y,v]=pn.useState(!1),[b,x]=pn.useState(!1),[w,S]=pn.useState(!1),[T,M]=pn.useState(),[R,$]=pn.useState(),[P,N]=pn.useState(!1),[V,z]=C.useState(""),{environmentName:W,packageName:H,modelPath:k}=xo(r),I={environmentName:W,packageName:H,sourcePath:k,onNavigate:d},{drill:F,drillMenu:_}=tI({onNavigate:m,onSelf:f,canSelf:c,selfLabel:"Filter this notebook"}),j=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,X=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,Q=oe=>oe.split(`
440
+ `).filter(ae=>!ae.trimStart().startsWith("##")).join(`
441
+ `),te=!!e.text&&(j.test(e.text)||X.test(e.text)),Z=()=>{if(!e.newSources||e.newSources.length===0)return 0;let oe=[],ae="";if(e.text){const le=e.text.match(j);le&&(oe=le[1].split(",").map(ye=>ye.trim()));const ge=e.text.match(X);ge&&(ae=ge[1].trim())}for(let le=0;le<e.newSources.length;le++)try{const ge=JSON.parse(e.newSources[le]);if(oe.length>0&&oe.includes(ge.name)||ae&&ae===ge.path)return le}catch{continue}return 0},G=e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r}:void 0,ne=fpe({query:e.text,resourceUri:r}),{mode:ce}=Bl();C.useEffect(()=>{e.type==="code"&&Dw(Q(e.text),"malloy",ce).then(oe=>{M(oe)})},[e,ce]),C.useEffect(()=>{Dw(ne,"typescript",ce).then(oe=>{$(oe)})},[ne,ce]);const pe=()=>{const oe=window.location.href;navigator.clipboard.writeText(oe).then(()=>z("URL copied to clipboard!")).catch(()=>z("Failed to copy URL"))};return e.type==="markdown"&&h.jsx(Kt,{children:h.jsxs(Kt,{children:[o===0?h.jsxs(fr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[h.jsx(ab,{variant:"document",links:I,children:e.text}),h.jsx(Ui,{title:"Click to copy link",children:h.jsx(HL,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer",marginTop:"26px"},onClick:pe})})]}):h.jsx(ab,{variant:"document",links:I,children:e.text}),h.jsx(Fb,{open:V!=="",autoHideDuration:6e3,onClose:()=>z(""),message:V})]})})||e.type==="code"&&h.jsxs(Kt,{children:[(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&h.jsx(fr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"2px"},children:e.newSources&&e.newSources.length>0&&h.jsx(um,{sx:{position:"relative",padding:"0"},children:h.jsxs(Kt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[T&&h.jsx("span",{dangerouslySetInnerHTML:{__html:T},style:{fontFamily:"monospace",fontSize:"14px",flex:1,marginRight:"8px"}}),te&&h.jsx(Uf,{"aria-label":"Data sources",sx:{flexShrink:0},onClick:()=>N(!0),children:h.jsx(lb,{})})]})})}),h.jsx(Lk,{open:P,onClose:()=>N(!1),title:"Data Sources",hasValidImport:te,resourceUri:r,data:G,initialSelectedSourceIndex:Z()}),h.jsxs(Yf,{open:y,onClose:()=>v(!1),maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Gf,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",h.jsx(eo,{onClick:()=>v(!1),sx:{color:"text.secondary"},children:h.jsx(Jf,{})})]}),h.jsx(Kf,{children:h.jsx(Kt,{sx:oe=>({border:`1px solid ${oe.palette.divider}`,borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:oe.palette.background.paper,color:oe.palette.text.primary}),children:h.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:T}})})})]}),h.jsxs(Yf,{open:b,onClose:()=>x(!1),maxWidth:"lg",fullWidth:!0,children:[h.jsxs(Gf,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",h.jsx(eo,{onClick:()=>x(!1),sx:{color:"text.secondary"},children:h.jsx(Jf,{})})]}),h.jsx(Kf,{children:h.jsxs(fr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[h.jsx(Lt,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:R}}),h.jsx(Ui,{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(dpe,{})})})]})})]}),h.jsx(WL,{open:w,onClose:()=>S(!1),result:e.result||"",title:"Results",drill:F}),s&&!e.result&&!e.error&&!te&&!(e.newSources&&e.newSources.length>0)&&h.jsx(um,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:h.jsx(sg,{size:32})}),!e.result&&e.error&&h.jsxs(um,{sx:{p:2},children:[h.jsx(Lt,{variant:"body2",sx:{color:"error.main"},children:"This cell could not be run."}),h.jsx(Lt,{variant:"body2",component:"pre",sx:{color:"text.secondary",whiteSpace:"pre-wrap",m:0,mt:1},children:e.error})]}),e.result&&l&&h.jsx(JW,{"aria-label":"a re-run is pending",sx:{mb:1,height:2,borderRadius:1}}),e.result&&h.jsxs(um,{sx:{position:"relative"},children:[h.jsx(Kt,{sx:{paddingTop:"24px"},children:h.jsx(jk,{result:e.result,maxHeight:Fce,maxResultSize:a,drill:F})}),_,h.jsxs(fr,{sx:{position:"absolute",top:"-12px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&h.jsx(Uf,{"aria-label":"Malloy code",onClick:oe=>{oe.stopPropagation(),v(!0)},children:h.jsx(upe,{})}),h.jsx(Uf,{"aria-label":"Expand results",onClick:()=>S(!0),children:h.jsx(lb,{})})]})]})]})}const hpe=4,mpe=400;function gpe(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 ype({resourceUri:e,maxResultSize:t=0,givens:n,onGivensChange:r,onNavigate:o,onDrillNavigate:a}){const{apiClients:s}=zr(),{environmentName:l,packageName:d,versionId:f,modelPath:c}=xo(e),{data:m,isSuccess:y,isError:v,error:b}=co({queryKey:[e],queryFn:async()=>(await s.notebooks.getNotebook(l,d,c,f)).data}),[x,w]=C.useState([]),[S,T]=C.useState(!1),[M,R]=C.useState(!1),$=C.useRef(void 0),[P,N]=C.useState(null),V=cpe(m),z=m?.autorun!==!1,W=eI({specs:V,loaded:y,startingValues:m?.startingGivens,params:n,onGivensChange:r,documentKey:e,autorun:z,environmentName:l,packageName:d,modelPath:c,versionId:f,documentName:c}),{applied:H,declaredTypes:k,canSelf:I,onSelf:F}=W,_=C.useCallback(pe=>{const oe=c0(pe,k);return Object.keys(oe).length>0?JSON.stringify(oe):void 0},[k]),j=C.useRef(0),X=C.useRef(null),Q=C.useRef(null),te=C.useRef(void 0);C.useEffect(()=>()=>{X.current?.abort(),Q.current=null,clearTimeout(te.current?.timer),te.current=void 0},[]);const Z=C.useCallback(async(pe=new Map)=>{if(!y||!m?.notebookCells)return;const oe=++j.current;X.current?.abort();const ae=new AbortController;X.current=ae,w(m.notebookCells.map(ge=>({...ge}))),T(!0),N(null);const le=_(pe);try{const ge=[];for(let we=0;we<m.notebookCells.length;we++){const Ce=m.notebookCells[we];if(Ce.type==="markdown")continue;const $e=we,de=async()=>{try{const ke=await s.notebooks.executeNotebookCell(l,d,c,$e,f,void 0,void 0,le,{signal:ae.signal});if(j.current!==oe)return;const et=ke.data,ze=et.result,Ae=Ce.newSources||et.newSources;w(se=>{const bt=[...se];return bt[$e]||(bt[$e]={...Ce}),bt[$e]={...bt[$e],result:ze,newSources:Ae},bt})}catch(ke){if(ae.signal.aborted||j.current!==oe)return;console.error(`Error executing cell ${$e}:`,ke);const et=gpe(ke);w(ze=>{const Ae=[...ze];return Ae[$e]||(Ae[$e]={...Ce}),Ae[$e]={...Ae[$e],error:et},Ae})}};ge.push(de)}const ye=[];for(const we of ge){const Ce=we().then(()=>{ye.splice(ye.indexOf(Ce),1)});ye.push(Ce),ye.length>=hpe&&await Promise.race(ye)}await Promise.all(ye)}catch(ge){if(ae.signal.aborted||j.current!==oe)return;console.error("Error executing notebook cells:",ge),N(ge)}finally{j.current===oe&&(T(!1),X.current=null)}},[y,m,_,l,d,c,f,s.notebooks]),G=C.useRef(0),ne=C.useRef(void 0);ne.current!==m&&(ne.current=m,G.current+=1);const ce=G.current;return C.useEffect(()=>{const pe=`${e}|${ce}`,oe=`${pe}|${_(H)??""}`;$.current!==void 0&&$.current!==pe&&(X.current?.abort(),X.current=null),$.current=pe;const ae=lpe({ready:y&&!!m?.notebookCells,lastRunKey:Q.current,pendingKey:te.current?.key,runKey:oe,documentKey:pe});if(ae.cancelPending&&(clearTimeout(te.current?.timer),te.current=void 0,R(!1)),ae.dispatch==="none")return;const le=()=>{te.current=void 0,R(!1),Q.current=oe,Z(H)};if(ae.dispatch==="now"){le();return}R(!0),te.current={key:oe,timer:setTimeout(le,mpe)}},[y,m,ce,e,H,_,Z]),h.jsx(MK,{children:h.jsx(EK,{children:h.jsxs(fr,{spacing:3,component:"section",children:[h.jsx(SL,{...W.panel}),!y&&!v&&h.jsx(ra,{text:"Fetching Notebook..."}),y&&(x.length>0?x:m?.notebookCells||[]).map((pe,oe)=>h.jsx(ppe,{cell:pe,index:oe,resourceUri:e,maxResultSize:t,isExecuting:S,pendingRerun:M,onNavigate:o,onDrillNavigate:a,onDrillSelf:V.length>0?F:void 0,canDrillSelf:I},oe)),v&&b.status===404&&h.jsxs(Lt,{variant:"body2",sx:{color:"text.secondary"},children:[h.jsx("code",{children:`${l} > ${d} > ${c}`})," ","not found."]}),v&&b.status!==404&&h.jsx(pa,{error:b,context:`${l} > ${d} > ${c}`}),P&&h.jsx(pa,{error:{message:P.message,status:500,name:"ExecutionError"},context:"Notebook Execution"})]})})})}const vpe=cr(h.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}));function bpe(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)}function xpe({title:e,modelPath:t,source:n,view:r}){const o=`${n}_tiles`,a=`${r}_tile`;return["##! experimental.givens",`## artifact { title=${`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`} tiles=["${o} -> ${a}"] } dashboard { columns=12 }`,`import { ${n} } from "../${t}"`,"",`source: ${o} is ${n} extend {`," # colspan=6",` view: ${a} is ${r}`,"}",""].join(`
442
+ `)}function Spe({open:e,environmentName:t,packageName:n,models:r,existing:o,onClose:a,onCreated:s}){const{apiClients:l}=zr(),[d,f]=C.useState(""),[c,m]=C.useState(""),[y,v]=C.useState(""),[b,x]=C.useState(!1),[w,S]=C.useState(!1),[T,M]=C.useState(void 0),R=co({queryKey:["new-dashboard-models",t,n,r],queryFn:async()=>await Promise.all(r.map(async k=>{try{const I=await l.models.getModel(t,n,k);return{path:k,sources:I.data.sources??[]}}catch{return{path:k,sources:[]}}})),enabled:e&&r.length>0}),$=C.useMemo(()=>{const k=new Map;for(const I of R.data??[]){const F=[];for(const _ of I.sources)if(typeof _.name=="string")for(const j of _.views??[])typeof j.name=="string"&&F.push({source:_.name,view:j.name});F.length>0&&k.set(I.path,F)}return k},[R.data]),P=C.useMemo(()=>$.get(d)??[],[$,d]),N=P.find(k=>`${k.source}::${k.view}`===c);C.useEffect(()=>{if(!e)return;const k=[...$.keys()];d===""&&k.length>0&&f(k[0])},[e,$,d]),C.useEffect(()=>{!e||P.length===0||N===void 0&&m(`${P[0].source}::${P[0].view}`)},[e,P,N]),C.useEffect(()=>{!e||b||N===void 0||v(N.view.replace(/_/g," "))},[e,b,N]),C.useEffect(()=>{e||(f(""),m(""),v(""),x(!1),M(void 0))},[e]);const V=bpe(y),z=o.includes(V),W=N!==void 0&&V!==""&&!z,H=async()=>{if(!(!W||N===void 0)){S(!0),M(void 0);try{await l.models.updateModelSource(t,n,`dashboards/${V}.malloy`,{source:xpe({title:y,modelPath:d,source:N.source,view:N.view})}),s(V)}catch(k){const I=k.response?.data?.message;M(I??(k instanceof Error?k.message:String(k)))}finally{S(!1)}}};return h.jsx(oa,{open:e,onClose:a,title:"New dashboard",description:"A dashboard is a Malloy file in the package. Pick what its first tile shows; the rest is the builder.",actions:h.jsxs(h.Fragment,{children:[h.jsx(Yo,{onClick:a,disabled:w,children:"Cancel"}),h.jsx(Yo,{variant:"contained",disabled:!W||w,onClick:()=>void H(),children:"Create dashboard"})]}),children:h.jsxs(fr,{sx:{gap:2,pt:1},children:[R.isSuccess&&$.size===0&&h.jsx($c,{severity:"info",children:"A dashboard starts from a view of a source, and no model in this package declares one yet. Add a view to a source and this list fills in."}),h.jsx(ai,{select:!0,size:"small",label:"Model",value:d,disabled:$.size===0,onChange:k=>{f(k.target.value),m("")},inputProps:{"aria-label":"Model"},helperText:R.isLoading?"Reading the package's models…":$.size===1?"The only model with a view to put on a tile.":"Models with a view to put on a tile.",children:[...$.keys()].map(k=>h.jsx(Ii,{value:k,children:k},k))}),h.jsx(ai,{select:!0,size:"small",label:"First tile",value:N?c:"",disabled:P.length===0,onChange:k=>m(k.target.value),inputProps:{"aria-label":"First tile"},helperText:P.length===1?"The only view this model offers; more tiles are added in the builder.":"A view of a source; more tiles are added in the builder.",children:P.map(k=>h.jsxs(Ii,{value:`${k.source}::${k.view}`,children:[k.source," → ",k.view]},`${k.source}::${k.view}`))}),h.jsx(ai,{size:"small",label:"Title",value:y,onChange:k=>{x(!0),v(k.target.value)},inputProps:{"aria-label":"Dashboard title"},error:z,helperText:z?`dashboards/${V}.malloy already exists in this package.`:V?`Written as dashboards/${V}.malloy, and opened in the builder.`:"Names the file too."}),T&&h.jsx($c,{severity:"error",children:T})]})})}const wpe={dashboard:_r.blue,report:_r.violet,model:_r.cyan,dataApp:_r.pink,data:_r.lime,materialization:_r.amber};function Cpe({type:e,size:t=18,sx:n,...r}){return h.jsx(Yv,{...r,viewBox:"0 0 24 24",sx:{width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",...n},children:kpe[e]()})}const kpe={report:Tpe,model:Mpe,data:Epe,materialization:Ope,dataApp:$pe,dashboard:Rpe};function Tpe(){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 Mpe(){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 Epe(){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 Ope(){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 Rpe(){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 $pe(){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 wD="README.malloynb";function Ghe({onClickPackageFile:e,resourceUri:t}){const{apiClients:n,server:r,mutable:o}=zr(),a=dd(),s=e??(G=>{window.location.href=G}),{environmentName:l,packageName:d,versionId:f}=xo(t),[c,m]=C.useState(null),[y,v]=C.useState(!1),b=Kue()?.documentStorage,[x,w]=C.useState([]),S=`${l}/${d}/dashboards/`,T=C.useCallback(async()=>{if(!b)return;const G=await b.listWorkspaces(!0),ne=[];for(const ce of G)for(const pe of await b.listDocuments(ce,"dashboard"))pe.path.startsWith(S)&&ne.push(pe);w(ne)},[b,S]);C.useEffect(()=>{T()},[T]);const M=G=>G.path.slice(S.length).replace(/\.malloy$/,""),R=co({queryKey:["package",l,d,f],queryFn:()=>n.packages.getPackage(l,d,f,!1)}),$=co({queryKey:["notebooks",l,d,f],queryFn:()=>n.notebooks.listNotebooks(l,d,f)}),P=co({queryKey:["models",l,d,f],queryFn:()=>n.models.listModels(l,d,f)}),N=co({queryKey:["databases",l,d,f],queryFn:()=>n.databases.listDatabases(l,d,f)}),V=co({queryKey:["data-apps",l,d],queryFn:async()=>{try{return await n.dataApps.listDataApps(l,d)}catch(G){const ne=G?.response?.status;if(ne===404||ne===void 0)return{data:[]};throw G}}}).data?.data??[],z=co({queryKey:["dashboards",l,d,f],queryFn:async()=>{try{return await n.dashboards.listDashboards(l,d,f)}catch(G){const ne=G?.response?.status;if(ne===404||ne===void 0)return{data:[]};throw G}}}),W=G=>G.title&&G.title!==G.name?G.title:G.name??"",H=G=>G.title&&G.title!==G.path?G.title:G.path??"",k=(z.data?.data??[]).slice().sort((G,ne)=>W(G).localeCompare(W(ne))),I=($.data?.data??[]).slice().sort((G,ne)=>H(G).localeCompare(H(ne))),F=new Set(k.map(G=>G.path).filter(G=>G!==void 0)),_=(P.data?.data??[]).slice().filter(G=>!F.has(G.path)).sort((G,ne)=>G.path.localeCompare(ne.path)),j=(N.data?.data??[]).slice().sort((G,ne)=>G.path.localeCompare(ne.path)),X=R.data?.data?.description??"",Q=I.some(G=>G.path===wD),te=u0({environmentName:l,packageName:d,versionId:f,modelPath:wD}),Z=!$.isSuccess&&!$.isError||!z.isSuccess&&!z.isError;return R.isError?h.jsx(pa,{error:R.error,context:`${l} > ${d}`}):h.jsxs(TC,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[h.jsxs(Kt,{sx:{mb:4},children:[h.jsx(EL,{label:l,onClick:G=>s(`/${l}/`,G)}),h.jsx(Lt,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:d}),X&&h.jsx(Lt,{variant:"body2",color:"text.secondary",children:X})]}),Z&&h.jsx(ra,{text:"Loading package..."}),h.jsx(Spe,{open:y,environmentName:l,packageName:d,models:_.map(G=>G.path).filter(G=>typeof G=="string"&&G.endsWith(".malloy")&&!G.startsWith("dashboards/")),existing:k.map(G=>G.name).filter(G=>typeof G=="string"),onClose:()=>v(!1),onCreated:G=>{v(!1),a.invalidateQueries({queryKey:["dashboards"]}),s(`/${l}/${d}/dashboards/${encodeURIComponent(G)}/edit`)}}),!Z&&h.jsxs(h.Fragment,{children:[z.isError&&h.jsx(Kt,{sx:{mb:4},children:h.jsx($c,{severity:"warning",children:"Could not list this package's dashboards, so any it has are missing from this page."})}),(k.length>0||o)&&h.jsxs(us,{title:"Dashboards",count:k.length,action:o?h.jsx(xg,{label:"Dashboard",onClick:()=>v(!0)}):void 0,children:[k.length===0&&h.jsx(oS,{label:"No dashboards yet"}),k.map(G=>{const ne=!!G.title&&G.title!==G.name;return h.jsx(kf,{type:"dashboard",label:ne?G.title:G.name,rightLabel:ne?G.name:void 0,onClick:ce=>s(`/${l}/${d}/dashboards/`+encodeURIComponent(G.name??""),ce)},G.name)})]}),x.length>0&&h.jsx(us,{title:"Drafts",count:x.length,children:x.map(G=>h.jsx(kf,{type:"dashboard",label:M(G),rightLabel:"saved in this browser",onClick:ne=>s(`/${l}/${d}/dashboards/${encodeURIComponent(M(G))}/edit`,ne),trailingAction:h.jsx(Ui,{title:"Delete this draft",children:h.jsx(eo,{size:"small","aria-label":`Delete draft ${M(G)}`,onClick:ne=>{ne.stopPropagation(),b?.deleteDocument(G).then(T)},children:h.jsx(vpe,{fontSize:"small"})})})},G.path))}),I.length>0&&h.jsx(us,{title:"Notebooks",count:I.length,children:I.map(G=>{const ne=!!G.title&&G.title!==G.path;return h.jsx(kf,{type:"report",label:ne?G.title:G.path,rightLabel:ne?G.path:void 0,onClick:ce=>s(`/${l}/${d}/${G.path}`,ce)},G.path)})}),V.length>0&&h.jsx(us,{title:"Data Apps",count:V.length,children:V.map(G=>{const ne=!!G.title&&G.title!==G.path,ce=`${RL(r)}${G.resource}`;return h.jsx(kf,{type:"dataApp",label:ne?G.title:G.path,rightLabel:ne?G.path:void 0,onClick:pe=>{e?e(`/${l}/${d}/data-apps/${G.path}`,pe):pe&&(pe.metaKey||pe.ctrlKey)?window.open(ce,"_blank"):window.location.href=ce},trailingAction:h.jsx(Ui,{title:"Open standalone in new tab",children:h.jsx(eo,{size:"small",href:ce,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",onClick:pe=>pe.stopPropagation(),sx:{color:"text.secondary"},children:h.jsx(OL,{fontSize:"small"})})})},G.path)})}),h.jsxs(us,{title:"Semantic Models",count:_.length,children:[_.map(G=>h.jsx(kf,{type:"model",label:G.path,onClick:ne=>s(`/${l}/${d}/${G.path}`,ne)},G.path)),_.length===0&&h.jsx(oS,{label:"No models"})]}),h.jsxs(us,{title:"Package Data",count:j.length,children:[j.map(G=>h.jsx(kf,{type:"data",label:G.path,rightLabel:G.info?Ppe(G.info.rowCount):"Unreadable",onClick:()=>m(G)},G.path)),j.length===0&&h.jsx(oS,{label:"No data files"})]}),h.jsx(epe,{resourceUri:t}),Q&&h.jsx(Kt,{sx:{mt:6},children:h.jsx(ype,{resourceUri:te,onNavigate:s})})]}),h.jsxs(oa,{open:c!==null,onClose:()=>m(null),title:c?.path??"Columns",showClose:!0,children:[c?.error&&h.jsx(Lt,{variant:"body2",color:"error",children:c.error}),c?.info?.columns&&h.jsxs(ug,{size:"small",children:[h.jsx(fg,{children:h.jsxs(Zs,{children:[h.jsx(Xn,{children:"Column"}),h.jsx(Xn,{children:"Type"})]})}),h.jsx(dg,{children:c.info.columns.map(G=>h.jsxs(Zs,{children:[h.jsx(Xn,{component:"th",scope:"row",children:G.name}),h.jsx(Xn,{children:G.type})]},G.name))})]})]})]})}function kf({type:e,label:t,rightLabel:n,onClick:r,trailingAction:o}){return h.jsx(C0,{icon:h.jsx(Cpe,{type:e}),tint:wpe[e],label:t,mono:!0,...n===void 0?{}:{rightLabel:n},...r===void 0?{}:{onClick:r},...o===void 0?{}:{trailingAction:o}})}function oS({label:e}){return h.jsx(Lt,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:e})}function Ppe(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`}const Aw={name:"Local",description:"Stored in this browser only",writeable:!0},jw="publisher:document:";class Dpe{async listWorkspaces(t){return[Aw]}async listDocuments(t,n){if(t.name!==Aw.name)return[];const r=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o),s=a===null?void 0:Ape(a);s&&(n===void 0||s.type===n)&&r.push(s)}return r}async getDocument(t){const n=localStorage.getItem(om(t));if(n===null)throw CD(t);return n}async saveDocument(t,n){localStorage.setItem(om(t),n)}async deleteDocument(t){const n=om(t);if(localStorage.getItem(n)===null)throw CD(t);localStorage.removeItem(n)}async moveDocument(t,n){const r=await this.getDocument(t);localStorage.setItem(om(n),r),localStorage.removeItem(om(t))}}function om(e){return`${jw}${e.type}:${e.path}`}function Ape(e){if(!e.startsWith(jw))return;const t=e.slice(jw.length),n=t.indexOf(":");if(n<=0)return;const r=t.slice(0,n);if(!(r!=="dashboard"&&r!=="notebook"))return{workspace:Aw.name,type:r,path:t.slice(n+1)}}function CD(e){return new Error(`No ${e.type} at ${e.workspace}/${e.path}`)}const kD="[publisher.dashboard]",TD="[publisher.console]";function Qhe(e){return t=>{const n=t.type.endsWith("_refused")||t.type==="dashboard.rows_shown"&&!t.ok,r={...e,...t,at:new Date().toISOString()};n?console.warn(kD,r):console.info(kD,r)}}function jpe(e){const t={...e,at:new Date().toISOString()};e.ok?console.info(TD,t):console.warn(TD,t)}const Co={white:"#FFFFFF",offWhite:"#F8FAFC",grey:{light:"#E2E8F0",mid:"#64748B"},black:"#0F172A",semantic:{success:{main:_r.emerald,light:"#D1FAE5",dark:"#047857"},warning:{main:_r.amber,light:"#FEF3C7",dark:"#92400E"},error:{main:_r.red,light:"#FEE2E2",dark:"#B91C1C"},info:{main:_r.blue,light:"#DBEAFE",dark:"#1D4ED8"}}},Xhe='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',ov='"Inter", "Helvetica Neue", "Arial", sans-serif',ki={50:Co.offWhite,100:"#F1F5F9",200:Co.grey.light,300:"#CBD5E1",400:"#94A3B8",500:Co.grey.mid,600:"#475569",700:"#334155",800:"#1E293B",900:Co.black},Zhe={headerHeight:56},aS="0 1px 3px rgba(0, 0, 0, 0.1)",Npe="#0f172a",Ipe="#1e293b",Lpe="#f1f5f9",zpe="#cbd5e1",Fpe="#334155",qL=(e="light")=>{const t=e==="dark",n=t?Npe:Co.white,r=t?Ipe:Co.white,o=t?Lpe:Co.black,a=t?zpe:Co.grey.mid,s=t?Fpe:Co.grey.light,l=t?"#60a5fa":_r.blue,d=t?"#93c5fd":"#1d4ed8",f=t?"#0f172a":"#ffffff";return Rb({cssVariables:{nativeColor:!0},palette:{mode:e,primary:{main:l,light:Co.grey.light,dark:d,contrastText:f},secondary:{main:Co.grey.mid,light:Co.grey.light,dark:Co.black},grey:ki,success:Co.semantic.success,warning:Co.semantic.warning,error:Co.semantic.error,info:Co.semantic.info,background:{default:n,paper:r},text:{primary:o,secondary:a},divider:s},typography:{fontFamily:ov,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":`${ki[300]} ${ki[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:t?"#1e293b":ki[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:t?"#475569":ki[300],borderRadius:"4px","&:hover":{background:t?"#64748b":ki[400]}},"&::-webkit-scrollbar-corner":{background:t?"#1e293b":ki[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:20,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:aS}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}},outlined:{color:o,borderColor:t?"#475569":ki[300],"&:hover":{borderColor:t?"#64748b":ki[400],backgroundColor:t?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:aS,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:ov,fontSize:"0.875rem",color:o}}},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":ki[300]},"&.Mui-focused":{borderColor:t?"#64748b":ki[400],outline:"none"}}}},MuiMenuItem:{styleOverrides:{root:{fontFamily:ov,fontSize:"0.875rem"}}},MuiInputBase:{styleOverrides:{root:{fontFamily:ov}}},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:ki[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)":Co.offWhite},"&.Mui-selected":{backgroundColor:t?"rgba(255, 255, 255, 0.12)":Co.offWhite,color:o,"& .MuiListItemIcon-root":{color:o},"& .MuiListItemText-primary":{color:o},"&:hover":{backgroundColor:t?"rgba(255, 255, 255, 0.16)":Co.grey.light}}}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:r,color:o,boxShadow:aS}}}}})};qL("light");function Bpe({children:e}){const{mode:t}=Bl(),n=C.useMemo(()=>qL(t),[t]);return h.jsxs(kU,{theme:n,children:[h.jsx(C8,{}),e]})}const Upe=C.lazy(()=>Lo(()=>import("./HomePage-D_srvBnZ.js"),[])),_pe=C.lazy(()=>Lo(()=>import("./MainPage-CzHkstrF.js"),__vite__mapDeps([9,10]))),Vpe=C.lazy(()=>Lo(()=>import("./ModelPage-CoQ07DHX.js"),[])),Hpe=C.lazy(()=>Lo(()=>import("./PackagePage-CUeUHOnm.js"),[])),Wpe=C.lazy(()=>Lo(()=>import("./EnvironmentPage-BnxD6uzV.js"),[])),qpe=C.lazy(()=>Lo(()=>import("./RouteError-gRAhsKGi.js"),[])),Ype=C.lazy(()=>Lo(()=>import("./ThemeEditorPage-C2gOJTU1.js"),__vite__mapDeps([11,10,12]))),Kpe=(e="/",t=new Dpe,n)=>(hde(jpe),y4([{path:e,element:h.jsx(fG,{children:h.jsx(Yue,{documentStorage:t,children:h.jsx(Bpe,{children:h.jsx(C.Suspense,{fallback:h.jsx(ra,{}),children:h.jsx(_pe,{headerProps:n})})})})}),errorElement:h.jsx(qpe,{}),children:[{index:!0,element:h.jsx(Upe,{})},{path:"settings/theme",element:h.jsx(Ype,{})},{path:"settings",element:h.jsx(qF,{to:"/settings/theme",replace:!0})},{path:":environmentName",element:h.jsx(Wpe,{})},{path:":environmentName/:packageName",element:h.jsx(Hpe,{})},{path:":environmentName/:packageName/*",element:h.jsx(Vpe,{})}]}])),Gpe=Kpe("/");g5.createRoot(document.getElementById("root")).render(h.jsx(C.StrictMode,{children:h.jsx($4,{router:Gpe})}));export{kc as $,Dn as A,Xu as B,tt as C,ha as D,Ys as E,Bl as F,Ui as G,eg as H,eo as I,Vhe as J,tl as K,Xpe as L,dj as M,Kt as N,oj as O,ja as P,$C as Q,Pm as R,xS as S,Lt as T,zr as U,Uj as V,hj as W,dp as X,Kc as Y,Zhe as Z,Zpe as _,Aa as a,cue as a$,ra as a0,Hhe as a1,Qhe as a2,EL as a3,Dhe as a4,Sg as a5,_he as a6,u0 as a7,Lo as a8,pn as a9,CL as aA,Ahe as aB,Lhe as aC,jhe as aD,Ihe as aE,Lce as aF,Nhe as aG,Rc as aH,pb as aI,Yi as aJ,SG as aK,MD as aL,Wce as aM,BP as aN,Wue as aO,Kce as aP,Kue as aQ,co as aR,pa as aS,que as aT,zhe as aU,Fue as aV,qce as aW,nk as aX,cr as aY,Bc as aZ,lue as a_,fr as aa,ype as ab,Whe as ac,Khe as ad,Zue as ae,Xhe as af,a9 as ag,Ghe as ah,qhe as ai,zF as aj,TC as ak,GO as al,ai as am,C9 as an,hN as ao,vR as ap,Ii as aq,dd as ar,G7 as as,$c as at,qH as au,QH as av,Fb as aw,oa as ax,Yo as ay,PK as az,ln as b,g8 as b0,EC as b1,wj as b2,eI as b3,PP as b4,zce as b5,$P as b6,SL as b7,Uhe as b8,Bhe as b9,Fhe as ba,OH as bb,Lue as bc,Fm as bd,Ir as be,Qpe as bf,Na as c,an as d,gS as e,cn as f,VB as g,Yhe as h,zs as i,h as j,Pt as k,sn as l,Jt as m,Wc as n,nl as o,po as p,ld as q,C as r,ot as s,jl as t,tC as u,zA as v,Nv as w,VA as x,ig as y,FA as z};